Skip to content

Commit d6758b6

Browse files
chore(release): version packages (#3)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7e241d6 commit d6758b6

10 files changed

Lines changed: 68 additions & 86 deletions

‎.tegami/2026-06-30-hook-async-and-command-frontmatter.md‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎.tegami/2026-07-01-dev-watch.md‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎.tegami/2026-07-01-init-command.md‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎.tegami/2026-07-01-npm-source.md‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎.tegami/2026-07-01-package-readme.md‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎.tegami/2026-07-01-uninstall.md‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎.tegami/publish-lock.yaml‎

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
core:changelogs:
2-
- content: "---\npackages:\n '@jalco/ap-sdk':\n type: minor\n---\n\n## Ship companion files with a plugin\n\n`Plugin.files` bundles companion files at the plugin root — hook scripts,\nreference docs, JSON read by the plugin's instructions — emitted into every\nharness build tree at their path. The new `readDir` helper loads a whole `src/`\nfolder (recursively, preserving the executable bit), so hooks can reference their\nscripts via the harness's plugin-root variable (e.g. `${CLAUDE_PLUGIN_ROOT}/…`).\n"
3-
filename: 2026-06-30-companion-files.md
2+
- content: "---\npackages:\n '@jalco/ap-sdk':\n type: minor\n---\n\n## Per-hook `async` flag and command frontmatter passthrough\n\n- `Hook.async` — mark a hook fire-and-forget. Emitted natively where the harness\n models it (Claude Code `\"async\": true`); on harnesses that don't, it's dropped\n with an `unsupported-option` warning and the hook runs synchronously within its\n timeout. `ap-sdk port` round-trips it from an existing `hooks.json`.\n- `Command.frontmatter` — the same escape hatch already on `Skill` and\n `Subagent`, now on `Command`. Extra fields merge into the generated command\n frontmatter on YAML-frontmatter harnesses (Claude, Codex, OpenCode, Pi,\n Copilot, Windsurf); known fields win a clash. Gemini (TOML) and Cursor (plain\n markdown) ignore it. `ap-sdk port` captures unknown command fields into it.\n"
3+
filename: 2026-06-30-hook-async-and-command-frontmatter.md
44
v: 0.0.0
5-
- content: "---\npackages:\n '@jalco/ap-sdk':\n type: minor\n---\n\n## Load plugin text from files, plus more hook events\n\n- New `readText` / `readTextFrom` helpers load instructions, skill and command\n bodies, and subagent prompts from a `src/` folder instead of inlining big\n strings — resolve paths relative to the plugin via `import.meta.url`.\n- New portable hook events: `notification`, `permission-request`,\n `subagent-stop`, `pre-compact`, and `session-end`, translated to each harness's\n native names. A harness with no native form for an event now emits a structured\n warning and skips it instead of guessing.\n"
6-
filename: 2026-06-30-file-loading-and-hook-events.md
5+
- content: "---\npackages:\n '@jalco/ap-sdk':\n type: minor\n---\n\n## Add `ap-sdk dev`\n\nWatch mode for plugin authors: `ap-sdk dev` rebuilds on every change to the\nplugin and its referenced files, and `--install` drops the result straight\ninto your local harness dirs. Errors keep the watcher alive.\n"
6+
filename: 2026-07-01-dev-watch.md
77
v: 0.0.0
8-
- content: "---\npackages:\n '@jalco/ap-sdk':\n type: minor\n---\n\n## Frontmatter passthrough on skills and subagents\n\n`defineSkill` and `defineSubagent` accept a `frontmatter` escape hatch for extra\nnative frontmatter fields the SDK doesn't model (e.g. `effort`, a nested\n`stage:` block). It's merged into every skill's `SKILL.md` and into subagent YAML\nfrontmatter (Claude, OpenCode, Copilot, Gemini); the SDK's own fields win on a\nkey clash.\n"
9-
filename: 2026-06-30-frontmatter-passthrough.md
8+
- content: "---\npackages:\n '@jalco/ap-sdk':\n type: minor\n---\n\n## Add `ap-sdk init`\n\nScaffold a new plugin project with one command. `ap-sdk init my-plugin` writes\na working `plugin.ts` (a skill, a command, and instructions) that passes\n`ap-sdk check` as-is, plus a `.gitignore` entry for `.aps-out/`.\n"
9+
filename: 2026-07-01-init-command.md
1010
v: 0.0.0
11-
- content: "---\npackages:\n '@jalco/ap-sdk':\n type: minor\n---\n\n## Install companion files into local harness dirs\n\n`ap-sdk install` now relocates a plugin's companion files (`plugin.files`) into\neach harness's config root (e.g. `.claude/`, `.gemini/`), preserving each file's\nsubpath and executable bit — not just into the build tree. Harnesses declare the\nlocation via a new optional `filesInstallDir(scope)` on the Harness contract.\n"
12-
filename: 2026-06-30-install-companion-files.md
11+
- content: "---\npackages:\n '@jalco/ap-sdk':\n type: minor\n---\n\n## Install plugins from npm\n\n`ap-sdk install npm:<package>` (and `check`/`build` with the same spec)\nfetches a published package from the npm registry, verifies it's a\ncompatible plugin, and installs it — with `npm:<package>@<version>` for\npinning. Packages can point at a non-root plugin file via an\n`ap-sdk.plugin` field in package.json.\n"
12+
filename: 2026-07-01-npm-source.md
1313
v: 0.0.0
14-
- content: "---\npackages:\n '@jalco/ap-sdk':\n type: minor\n---\n\n## `ap-sdk port` — generate a portable plugin from an existing one\n\nNew `ap-sdk port [dir]` reads an existing plugin/config in any harness's native\nlayout (auto-detected: Claude Code, Codex, Gemini, Copilot, Cursor, Windsurf,\nOpenCode, Pi, or a generic skills/commands/agents tree) and writes a `plugin.ts`\nthat **loads its files** — mapping the manifest, instruction file, `**/SKILL.md`\nskills, commands, agents (model + extra frontmatter), and hooks (native event\nnames → portable), and shipping companion directories via `readDir`. Adds\n`readBody` / `readBodyFrom` helpers that load a body from its native\n`frontmatter + body` file.\n"
15-
filename: 2026-06-30-port-command.md
14+
- content: "---\npackages:\n '@jalco/ap-sdk':\n type: patch\n---\n\n### Add a package README\n\nThe npm page for `@jalco/ap-sdk` now has a readme covering the full feature\nsurface (skills, commands, subagents, hooks, MCP, shared tools) and the\n`ap-sdk port` migration path.\n"
15+
filename: 2026-07-01-package-readme.md
16+
v: 0.0.0
17+
- content: "---\npackages:\n '@jalco/ap-sdk':\n type: minor\n---\n\n## Add `ap-sdk uninstall`\n\n`install` now records what it wrote to an install manifest\n(`.ap-sdk/install-manifest.json`), and `ap-sdk uninstall <plugin-id>` cleanly\nreverses it — deleting the plugin's files and removing only its entries from\nmerged configs (instruction blocks, MCP servers, hooks).\n"
18+
filename: 2026-07-01-uninstall.md
1619
v: 0.0.0
1720
core:packages:
1821
- id: npm:@jal-co/docs
1922
updated: true
2023
- changelogIds:
21-
- 2026-06-30-companion-files.md
22-
- 2026-06-30-file-loading-and-hook-events.md
23-
- 2026-06-30-frontmatter-passthrough.md
24-
- 2026-06-30-install-companion-files.md
25-
- 2026-06-30-port-command.md
24+
- 2026-06-30-hook-async-and-command-frontmatter.md
25+
- 2026-07-01-dev-watch.md
26+
- 2026-07-01-init-command.md
27+
- 2026-07-01-npm-source.md
28+
- 2026-07-01-package-readme.md
29+
- 2026-07-01-uninstall.md
2630
id: npm:@jalco/ap-sdk
2731
updated: true

‎apps/docs/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jal-co/docs",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"private": true,
55
"scripts": {
66
"build": "next build",

‎packages/agent-plugin-sdk/CHANGELOG.md‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
## @jalco/ap-sdk@0.4.0
2+
3+
### Per-hook `async` flag and command frontmatter passthrough
4+
5+
- `Hook.async` — mark a hook fire-and-forget. Emitted natively where the harness
6+
models it (Claude Code `"async": true`); on harnesses that don't, it's dropped
7+
with an `unsupported-option` warning and the hook runs synchronously within its
8+
timeout. `ap-sdk port` round-trips it from an existing `hooks.json`.
9+
- `Command.frontmatter` — the same escape hatch already on `Skill` and
10+
`Subagent`, now on `Command`. Extra fields merge into the generated command
11+
frontmatter on YAML-frontmatter harnesses (Claude, Codex, OpenCode, Pi,
12+
Copilot, Windsurf); known fields win a clash. Gemini (TOML) and Cursor (plain
13+
markdown) ignore it. `ap-sdk port` captures unknown command fields into it.
14+
15+
### Add `ap-sdk dev`
16+
17+
Watch mode for plugin authors: `ap-sdk dev` rebuilds on every change to the
18+
plugin and its referenced files, and `--install` drops the result straight
19+
into your local harness dirs. Errors keep the watcher alive.
20+
21+
### Add `ap-sdk init`
22+
23+
Scaffold a new plugin project with one command. `ap-sdk init my-plugin` writes
24+
a working `plugin.ts` (a skill, a command, and instructions) that passes
25+
`ap-sdk check` as-is, plus a `.gitignore` entry for `.aps-out/`.
26+
27+
### Install plugins from npm
28+
29+
`ap-sdk install npm:<package>` (and `check`/`build` with the same spec)
30+
fetches a published package from the npm registry, verifies it's a
31+
compatible plugin, and installs it — with `npm:<package>@<version>` for
32+
pinning. Packages can point at a non-root plugin file via an
33+
`ap-sdk.plugin` field in package.json.
34+
35+
### Add a package README
36+
37+
The npm page for `@jalco/ap-sdk` now has a readme covering the full feature
38+
surface (skills, commands, subagents, hooks, MCP, shared tools) and the
39+
`ap-sdk port` migration path.
40+
41+
### Add `ap-sdk uninstall`
42+
43+
`install` now records what it wrote to an install manifest
44+
(`.ap-sdk/install-manifest.json`), and `ap-sdk uninstall <plugin-id>` cleanly
45+
reverses it — deleting the plugin's files and removing only its entries from
46+
merged configs (instruction blocks, MCP servers, hooks).
47+
148
## @jalco/ap-sdk@0.3.0
249

350
### Ship companion files with a plugin

‎packages/agent-plugin-sdk/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jalco/ap-sdk",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Write a plugin once, ship it to every agent harness. Define skills, commands, and tools in one place and generate native plugin artifacts for Claude Code, Codex, Pi, and OpenCode.",
55
"type": "module",
66
"license": "MIT",

0 commit comments

Comments
 (0)