diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index bd63115..6a69b10 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json", "name": "toolfactory", - "version": "0.4.9", + "version": "0.4.10", "description": "Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex / Cursor bundles, OpenClaw and Hermes plugins, CLIs, and packages, with the tests and releases to match.", "author": { "name": "GoatInAHat" @@ -25,7 +25,7 @@ "command": "npx", "args": [ "-y", - "toolfactory@0.4.9", + "toolfactory@0.4.10", "mcp" ] } diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.json index b5e0d63..cb22818 100644 --- a/.codex-plugin/plugin.json +++ b/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "toolfactory", - "version": "0.4.9", + "version": "0.4.10", "description": "Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex / Cursor bundles, OpenClaw and Hermes plugins, CLIs, and packages, with the tests and releases to match.", "author": { "name": "GoatInAHat" @@ -25,7 +25,7 @@ "command": "npx", "args": [ "-y", - "toolfactory@0.4.9", + "toolfactory@0.4.10", "mcp" ] } diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index 59a9b24..61da803 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "toolfactory", - "version": "0.4.9", + "version": "0.4.10", "description": "Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex / Cursor bundles, OpenClaw and Hermes plugins, CLIs, and packages, with the tests and releases to match.", "author": { "name": "GoatInAHat" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 16915a4..f50a6ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -134,9 +134,9 @@ jobs: - name: npm tarball run: npm pack --pack-destination dist/release - name: MCPB bundle - run: rm -rf dist/mcpb && mkdir -p dist/mcpb && tar -xzf dist/release/toolfactory-0.4.9.tgz -C dist/mcpb --strip-components=1 && npm --prefix dist/mcpb install --omit=dev --ignore-scripts && cp hosts/mcpb/manifest.json dist/mcpb/manifest.json && npx -y @anthropic-ai/mcpb@2.1.2 pack dist/mcpb dist/release/toolfactory.mcpb + run: rm -rf dist/mcpb && mkdir -p dist/mcpb && tar -xzf dist/release/toolfactory-0.4.10.tgz -C dist/mcpb --strip-components=1 && npm --prefix dist/mcpb install --omit=dev --ignore-scripts && cp hosts/mcpb/manifest.json dist/mcpb/manifest.json && npx -y @anthropic-ai/mcpb@2.1.2 pack dist/mcpb dist/release/toolfactory.mcpb - name: OpenClaw plugin tarball - run: npm --prefix hosts/openclaw install && npm --prefix hosts/openclaw run build && cp hosts/openclaw/package.json hosts/openclaw/package.json.prepack && (trap 'mv hosts/openclaw/package.json.prepack hosts/openclaw/package.json' EXIT; (cd hosts/openclaw && npm pkg set 'dependencies.toolfactory=0.4.9') && npm pack ./hosts/openclaw --pack-destination dist/release) + run: npm --prefix hosts/openclaw install && npm --prefix hosts/openclaw run build && cp hosts/openclaw/package.json hosts/openclaw/package.json.prepack && (trap 'mv hosts/openclaw/package.json.prepack hosts/openclaw/package.json' EXIT; (cd hosts/openclaw && npm pkg set 'dependencies.toolfactory=0.4.10') && npm pack ./hosts/openclaw --pack-destination dist/release) - name: DSH bundle tarball run: npm pack ./hosts/dsh --pack-destination dist/release - name: plugin bundle @@ -175,7 +175,7 @@ jobs: - name: npm publish env: NPM_TOKEN: ${{ vars.NPM_TRUSTED_PUBLISHER != 'true' && secrets.NPM_TOKEN || '' }} - run: 'if npm view toolfactory@0.4.9 version >/dev/null 2>&1; then echo "::notice::npm: toolfactory@0.4.9 already published; skipping immutable version."; elif [ "$NPM_TRUSTED_PUBLISHER" = true ]; then npm publish ./release-assets/toolfactory-0.4.9.tgz --access public; else NODE_AUTH_TOKEN="$NPM_TOKEN" npm publish ./release-assets/toolfactory-0.4.9.tgz --access public; fi' + run: 'if npm view toolfactory@0.4.10 version >/dev/null 2>&1; then echo "::notice::npm: toolfactory@0.4.10 already published; skipping immutable version."; elif [ "$NPM_TRUSTED_PUBLISHER" = true ]; then npm publish ./release-assets/toolfactory-0.4.10.tgz --access public; else NODE_AUTH_TOKEN="$NPM_TOKEN" npm publish ./release-assets/toolfactory-0.4.10.tgz --access public; fi' publish-oci: needs: gate if: needs.gate.outputs.oci == 'true' @@ -224,7 +224,7 @@ jobs: - name: wait for npm registry visibility run: |- for attempt in {1..60}; do - if npm view toolfactory@0.4.9 version >/dev/null 2>&1; then exit 0; fi + if npm view toolfactory@0.4.10 version >/dev/null 2>&1; then exit 0; fi sleep 10 done echo "::error::npm version is not registry-visible after publication; not registering an unavailable package." diff --git a/CHANGELOG.md b/CHANGELOG.md index 19011c6..53556c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.4.10 + +- Grant the generated ClawHub release jobs the permissions ClawHub's reusable workflows request (`id-token: write`, plus `actions: read` for the package leg). Without them GitHub refused to start those jobs, so tools that publish to ClawHub had to keep `release.yml` by hand, which then stopped following new versions. + ## 0.4.9 - Refresh the web scaffold's lucide-react dependency to ^1.74.0 to match the official shadcn output; the web scaffold drift validator failed for every generated tool until then. diff --git a/README.md b/README.md index 8aa4a85..fc94368 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ generated and every surface still installs, builds and publishes. - **Gemini CLI extension** — `gemini extensions install https://github.com/GoatInAHat/toolfactory` - **OpenClaw plugin** — `openclaw plugins install --link hosts/openclaw` from a checkout - **Hermes plugin** — `hermes plugins install https://github.com/GoatInAHat/toolfactory#hosts/hermes/toolfactory_hermes` -- **DSH plugin** (experimental) — `dsh plugin --profile add ./hosts/dsh` from a checkout, or the release tarball `toolfactory-dsh-0.4.9.tgz` +- **DSH plugin** (experimental) — `dsh plugin --profile add ./hosts/dsh` from a checkout, or the release tarball `toolfactory-dsh-0.4.10.tgz` - **Web app** — `npx -y toolfactory mcp --http --open` serves the operations page beside the MCP endpoint on one port and opens it; over MCP or a skill, the `web` operation does the same and returns the URL. diff --git a/dev.toolfactory/lock.json b/dev.toolfactory/lock.json index d80840c..fd03906 100644 --- a/dev.toolfactory/lock.json +++ b/dev.toolfactory/lock.json @@ -1,5 +1,5 @@ { - "toolfactoryVersion": "0.4.9", + "toolfactoryVersion": "0.4.10", "files": { ".agents/mcp/servers.json": { "sha256": "09ea6f67acacefa8901eaea338b1cedd86e99a1fdad21eecb89e502b69a10789", @@ -57,7 +57,7 @@ ] }, ".claude-plugin/plugin.json": { - "sha256": "952693523bbcba63c956f0ffeafe5f378da5aac38736de8729e2eaf6c8e8e5f2", + "sha256": "0f1bcd2627c8c7d65d3fe9183b94c7d346ebb0d58af2cb1bf7470f2ca1788433", "state": "generated", "keys": [ "$schema", @@ -80,7 +80,7 @@ "state": "generated" }, ".codex-plugin/plugin.json": { - "sha256": "c9e31509a36e86854995d9a23d45b61b8de6cfc8c21a89120800335e27d0e2a3", + "sha256": "5bb9ed9ff75099d4c469f4d9fcf6cfac0fbbb67859fe54f32fa6662bbd461c95", "state": "generated", "keys": [ "name", @@ -103,7 +103,7 @@ ] }, ".cursor-plugin/plugin.json": { - "sha256": "f41f25151ecef9172ee8de2946cf3fdd6fc45824deabc431997d059c100ba1c6", + "sha256": "20174f7721a1095c49aabd53822f30206933bfb17b3318f392be0ae5507d43a8", "state": "generated", "keys": [ "name", @@ -161,7 +161,7 @@ "state": "generated" }, ".github/workflows/release.yml": { - "sha256": "f7ef5cd53d6a8b80d9f5fd1984a67353d735e2b18d3404fe42ed2ad57b8e5eba", + "sha256": "5f1cfa2f3c620cf9f8173147bb8bb7361e6dc1db94b4eb2cedb46081da7da56e", "state": "generated" }, ".gitignore": { @@ -209,7 +209,7 @@ "state": "generated" }, "gemini-extension.json": { - "sha256": "feb2f6bcb12ad73aa318dbb65c436bdff58432e0c3008045d12016fec26860e6", + "sha256": "74f8adf86cf8d0a8c76a2e2d34a7a48af176d58c6c82bde9d059ca98cc1a4398", "state": "generated", "keys": [ "name", @@ -231,7 +231,7 @@ ] }, "hosts/dsh/cordis.patch.yml": { - "sha256": "b3d8aabd8e0a13be569e1513276f4b6ee5809919ccdd19bfc4c0129c44013f80", + "sha256": "d70779d18acf90aa634f98859cd752789af93d647538e8e6b301aa2aaaea2465", "state": "generated", "regions": [ { @@ -241,7 +241,7 @@ ] }, "hosts/dsh/package.json": { - "sha256": "b385e3aaf61b5d5bbe01d85ad1017f22b9fb69d663f4ffb208dcebec1fc621e9", + "sha256": "a11a38c35cc5063179be74e35e0275a06f7afce589a877a3abad364094d5c828", "state": "generated", "keys": [ "name", @@ -253,7 +253,7 @@ ] }, "hosts/hermes/pyproject.toml": { - "sha256": "48ffd3e36ef17eab84a8380a80764e7b877d3488518d7b542124c62ca7b03a93", + "sha256": "4d17bda2b5e256b2e4fdb239826ca8bb3813d200d91720c1f65e0ceea77970db", "state": "generated", "keys": [ "project.name", @@ -287,7 +287,7 @@ ] }, "hosts/hermes/toolfactory_hermes/plugin.yaml": { - "sha256": "2fcd074588e0f44981474aa62e161e1839ed16dff6a7e29d69d510bc9f8f15ff", + "sha256": "5e6114fcb8c8cfac6a8dce331e1f287bdbef6f5f9e01a3996d68da8613906b75", "state": "generated", "keys": [ "manifest_version", @@ -302,7 +302,7 @@ ] }, "hosts/mcpb/manifest.json": { - "sha256": "a944d375f9395958ce3cca38aaf5ed7b387a24f45dd01b3751a3573550235efd", + "sha256": "6a003010396daf59690a30996f4d6873beff60187313ffddfeded347a60042ab", "state": "generated" }, "hosts/openclaw/.npmrc": { @@ -318,7 +318,7 @@ "state": "generated" }, "hosts/openclaw/openclaw.plugin.json": { - "sha256": "5840865ed133dc5549668bbfd67b7081d6cf5f4a1d9a27670bc4ebc943eb474a", + "sha256": "c48c187771157a65b8192dde6e1f0b0e09d954fd09756f2690285a45f6edbe82", "state": "generated", "keys": [ "id", @@ -334,7 +334,7 @@ ] }, "hosts/openclaw/package.json": { - "sha256": "ee72ed91fb0bf07832ea78427967d944211f4ff4b3606a309aa097bab00872a3", + "sha256": "bf4e04b4b009a34c643b6c19197e66bf3e0e72a038c29c0a00eb9022479bd136", "state": "generated", "keys": [ "name", @@ -406,7 +406,7 @@ "state": "generated" }, "mcp.json": { - "sha256": "58b4dd8b26e3fe56f56298385ad7cc601f4e3cee890409a0bfc97d969b0f3421", + "sha256": "794ab5f1e08cc9273731db06bcab8a22d9acc45588cc15c0def6c35cadc6dae0", "state": "generated", "keys": [ "$schema", @@ -416,7 +416,7 @@ ] }, "package.json": { - "sha256": "1a97cf6198c92d0e069c63124f20cf477507ee5f1fffed915449731b0fc67101", + "sha256": "462d7f7b509c94f6b8406d3afd4caea558947c6522a369a156c049192c9b04ba", "state": "generated", "keys": [ "name", @@ -434,7 +434,7 @@ ] }, "README.md": { - "sha256": "af0108bed02791dd13a32fc24fcc1c5c5ddb2c8172c783712887fb2d1624b34e", + "sha256": "c02b61eb5738b50e85e3070d53007a13f0e70e2d46647581422638ea8f82cdc7", "state": "generated", "regions": [ { @@ -454,7 +454,7 @@ ] }, "server.json": { - "sha256": "8de58cdb36897630c75285e337d5459277a3820405a6a010c110678dfc679705", + "sha256": "49f8885fddd8c749a45a01f1891ad3755cead0eb9690a9d94e89b8c744783efc", "state": "generated" }, "skills/toolfactory/SKILL.md": { @@ -472,7 +472,7 @@ ] }, "src/toolfactory/cli.ts": { - "sha256": "e7a4e4de85724ccd5510b7503590ffc1c7441be4d3d1da8264d180f2d2eb4961", + "sha256": "40e7925aac19fa6cb18fc83c439e4148729009751ab70680fb60c88b7f395883", "state": "generated" }, "src/toolfactory/config.ts": { @@ -480,7 +480,7 @@ "state": "generated" }, "src/toolfactory/mcp.ts": { - "sha256": "e5417e59fe9edbe0c464f3442545da1b206ea907c0a85027bbf417f802c8fc0e", + "sha256": "ada850c14e903901b0c032c8c0d5197987a691d6d00fa07fd54be648b3305eb5", "state": "generated" }, "src/toolfactory/types.ts": { @@ -504,7 +504,7 @@ "state": "generated" }, "web/package.json": { - "sha256": "eaae023d3ea9d18394aa52a0e828f8992911cec1a29ab74517fb8ae770eb30d4", + "sha256": "935da8b8cce1d855025481501841483449ca88fc3364435020874e72843d0555", "state": "generated", "keys": [ "name", @@ -564,7 +564,7 @@ "state": "generated" }, "web/src/ops.json": { - "sha256": "545a2a78d3c1d5d65b78420d00935e99c652f23c230b1956956a82f26dae60b8", + "sha256": "02774f21255d10439c06169aef60d69c5ca05884e9bcab79ee558b12477ad79c", "state": "generated" }, "web/src/schema-form.tsx": { diff --git a/gemini-extension.json b/gemini-extension.json index 3881585..58a63dd 100644 --- a/gemini-extension.json +++ b/gemini-extension.json @@ -1,13 +1,13 @@ { "name": "toolfactory", - "version": "0.4.9", + "version": "0.4.10", "description": "Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex / Cursor bundles, OpenClaw and Hermes plugins, CLIs, and packages, with the tests and releases to match.", "mcpServers": { "toolfactory": { "command": "npx", "args": [ "-y", - "toolfactory@0.4.9", + "toolfactory@0.4.10", "mcp" ] } diff --git a/hosts/dsh/cordis.patch.yml b/hosts/dsh/cordis.patch.yml index d9c0b74..019b169 100644 --- a/hosts/dsh/cordis.patch.yml +++ b/hosts/dsh/cordis.patch.yml @@ -8,7 +8,7 @@ command: npx args: - -y - - toolfactory@0.4.9 + - toolfactory@0.4.10 - mcp failOnStartupError: true # /tf:mcp diff --git a/hosts/dsh/package.json b/hosts/dsh/package.json index a8d9f45..01372d5 100644 --- a/hosts/dsh/package.json +++ b/hosts/dsh/package.json @@ -1,6 +1,6 @@ { "name": "toolfactory-dsh", - "version": "0.4.9", + "version": "0.4.10", "description": "DSH bundle for toolfactory: attaches its MCP server through @deepseek-ai/dsh-mcp-client.", "license": "MIT", "files": [ diff --git a/hosts/hermes/pyproject.toml b/hosts/hermes/pyproject.toml index 37faf63..8df8203 100644 --- a/hosts/hermes/pyproject.toml +++ b/hosts/hermes/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "toolfactory-hermes-plugin" -version = "0.4.9" +version = "0.4.10" description = "Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex / Cursor bundles, OpenClaw and Hermes plugins, CLIs, and packages, with the tests and releases to match. — Hermes plugin." license = "MIT" requires-python = ">=3.11" diff --git a/hosts/hermes/toolfactory_hermes/plugin.yaml b/hosts/hermes/toolfactory_hermes/plugin.yaml index 9464eaf..65fcd0d 100644 --- a/hosts/hermes/toolfactory_hermes/plugin.yaml +++ b/hosts/hermes/toolfactory_hermes/plugin.yaml @@ -1,6 +1,6 @@ manifest_version: 1 name: toolfactory -version: 0.4.9 +version: 0.4.10 description: Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex / Cursor bundles, OpenClaw and Hermes plugins, CLIs, and packages, with the tests and releases to match. diff --git a/hosts/mcpb/manifest.json b/hosts/mcpb/manifest.json index c8925e7..688fb39 100644 --- a/hosts/mcpb/manifest.json +++ b/hosts/mcpb/manifest.json @@ -2,7 +2,7 @@ "manifest_version": "0.2", "name": "toolfactory", "display_name": "toolfactory", - "version": "0.4.9", + "version": "0.4.10", "description": "Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex / Cursor bundles, OpenClaw and Hermes plugins, CLIs, and packages, with the tests and releases to match.", "author": { "name": "GoatInAHat" diff --git a/hosts/openclaw/openclaw.plugin.json b/hosts/openclaw/openclaw.plugin.json index 83a5d6e..69901b5 100644 --- a/hosts/openclaw/openclaw.plugin.json +++ b/hosts/openclaw/openclaw.plugin.json @@ -2,7 +2,7 @@ "id": "toolfactory", "name": "Toolfactory", "description": "Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex / Cursor bundles, OpenClaw and Hermes plugins, CLIs, and packages, with the tests and releases to match.", - "version": "0.4.9", + "version": "0.4.10", "configSchema": { "type": "object", "properties": {}, diff --git a/hosts/openclaw/package.json b/hosts/openclaw/package.json index 6246f6d..f81b8ee 100644 --- a/hosts/openclaw/package.json +++ b/hosts/openclaw/package.json @@ -1,6 +1,6 @@ { "name": "openclaw-plugin-toolfactory", - "version": "0.4.9", + "version": "0.4.10", "description": "Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex / Cursor bundles, OpenClaw and Hermes plugins, CLIs, and packages, with the tests and releases to match.", "type": "module", "private": true, diff --git a/mcp.json b/mcp.json index abe00bf..8ca9081 100644 --- a/mcp.json +++ b/mcp.json @@ -6,7 +6,7 @@ "command": "npx", "args": [ "-y", - "toolfactory@0.4.9", + "toolfactory@0.4.10", "mcp" ] } diff --git a/package.json b/package.json index 64c2fd3..3552b2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "toolfactory", - "version": "0.4.9", + "version": "0.4.10", "description": "Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex / Cursor bundles, OpenClaw and Hermes plugins, CLIs, and packages, with the tests and releases to match.", "license": "MIT", "repository": { diff --git a/plugin.json b/plugin.json index 9b2f77c..542dd10 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "toolfactory", - "version": "0.4.9", + "version": "0.4.10", "description": "Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex / Cursor bundles, OpenClaw and Hermes plugins, CLIs, and packages, with the tests and releases to match.", "author": { "name": "GoatInAHat" }, "homepage": "https://github.com/GoatInAHat/toolfactory", diff --git a/server.json b/server.json index e613c41..40bb884 100644 --- a/server.json +++ b/server.json @@ -2,7 +2,7 @@ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json", "name": "io.github.GoatInAHat/toolfactory", "description": "Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex", - "version": "0.4.9", + "version": "0.4.10", "repository": { "url": "https://github.com/GoatInAHat/toolfactory", "source": "github" @@ -12,14 +12,14 @@ { "registryType": "npm", "identifier": "toolfactory", - "version": "0.4.9", + "version": "0.4.10", "transport": { "type": "stdio" } }, { "registryType": "oci", - "identifier": "ghcr.io/goatinahat/toolfactory:0.4.9", + "identifier": "ghcr.io/goatinahat/toolfactory:0.4.10", "transport": { "type": "stdio" } diff --git a/src/surfaces/workflows.test.ts b/src/surfaces/workflows.test.ts index 3502d1d..58b058a 100644 --- a/src/surfaces/workflows.test.ts +++ b/src/surfaces/workflows.test.ts @@ -357,14 +357,23 @@ describe("workflows", () => { expect(release.jobs["publish-clawhub-skill"].secrets.clawhub_token).toContain("CLAWHUB_TOKEN"); expect(release.jobs.release.needs.at(-1)).toBe("publish-clawhub-skill"); - // Every job that runs steps declares its own permissions; the workflow-call leg inherits the - // file's `contents: read`. + // Every job declares its own permissions. The ClawHub workflow calls grant what ClawHub's + // reusable jobs request, or GitHub refuses to start them. const withoutPermissions = Object.entries( release.jobs as Record, ) .filter(([, job]) => job.permissions === undefined) .map(([name]) => name); - expect(withoutPermissions).toEqual(["publish-clawhub", "publish-clawhub-skill"]); + expect(withoutPermissions).toEqual([]); + expect(release.jobs["publish-clawhub"].permissions).toEqual({ + contents: "read", + actions: "read", + "id-token": "write", + }); + expect(release.jobs["publish-clawhub-skill"].permissions).toEqual({ + contents: "read", + "id-token": "write", + }); expect(release.permissions).toEqual({ contents: "read" }); expect(release.jobs["publish-oci"].permissions).toEqual({ contents: "read", diff --git a/src/surfaces/workflows.ts b/src/surfaces/workflows.ts index 1fab3df..dc73ba3 100644 --- a/src/surfaces/workflows.ts +++ b/src/surfaces/workflows.ts @@ -651,8 +651,10 @@ exit 1`, if: "${{ !cancelled() && needs.package.result == 'success' && !contains(needs.*.result, 'failure') && needs.gate.outputs.clawhub_package == 'true' }}", // Last (§7): content-fingerprint deduped by ClawHub, therefore safe to retry. The reusable // workflow has no build step, so it publishes the tarball the `package` job already built - // rather than the repository subdirectory. It is a workflow call, so it has no `permissions` - // block of its own and inherits the file's `contents: read`. + // rather than the repository subdirectory. A called workflow's jobs can only narrow what + // the caller grants, and ClawHub's publish job asks for `actions: read` and + // `id-token: write`; under the file's `contents: read` alone GitHub refuses to start it. + permissions: { contents: "read", actions: "read", "id-token": "write" }, needs: needsOf(["gate", "package", ...priorLegs]), uses: "openclaw/clawhub/.github/workflows/package-publish.yml@main", with: { @@ -677,6 +679,8 @@ exit 1`, // ClawHub's own reusable workflow derives slug/name/version from SKILL.md and dedupes by // content fingerprint, same as `clawhub package publish` above — safe to retry. jobs["publish-clawhub-skill"] = compact({ + // ClawHub's skill-publish job asks for `id-token: write`, which the caller must grant. + permissions: { contents: "read", "id-token": "write" }, if: gated("clawhub-skill"), needs: "gate", uses: "openclaw/clawhub/.github/workflows/skill-publish.yml@main", diff --git a/src/toolfactory/cli.ts b/src/toolfactory/cli.ts index a955eb5..dde390b 100644 --- a/src/toolfactory/cli.ts +++ b/src/toolfactory/cli.ts @@ -13,7 +13,7 @@ const operations = [...authored, web]; const program = new Command() .name("toolfactory") .description("Build an agent tool once; ship it as Agent Skills, MCP servers, Agent Plugins / Claude / Codex / Cursor bundles, OpenClaw and Hermes plugins, CLIs, and packages, with the tests and releases to match.") - .version("0.4.9"); + .version("0.4.10"); for (const op of operations) { if (!serves(op, "cli")) continue; diff --git a/src/toolfactory/mcp.ts b/src/toolfactory/mcp.ts index e21b535..4c123ce 100644 --- a/src/toolfactory/mcp.ts +++ b/src/toolfactory/mcp.ts @@ -33,7 +33,7 @@ const introspecting = Boolean(process.env.TOOLFACTORY_INTROSPECT); /** Builds one server instance with every servable operation registered; called once for stdio, once per HTTP request. */ function createServer(): McpServer { - const server = new McpServer({ name: "toolfactory", version: "0.4.9" }); + const server = new McpServer({ name: "toolfactory", version: "0.4.10" }); for (const op of operations) { if (!introspecting && !serves(op, "mcp")) continue; server.registerTool( diff --git a/web/package.json b/web/package.json index b651a29..ab19bf5 100644 --- a/web/package.json +++ b/web/package.json @@ -1,7 +1,7 @@ { "name": "toolfactory-web", "private": true, - "version": "0.4.9", + "version": "0.4.10", "type": "module", "scripts": { "dev": "vite",