Merge pull request #682 from kaoru0822-kitauji/fix/disable-unmanaged-skill-sync

fix(cli): disable unmanaged skill synchronization
This commit is contained in:
Kaoru0822
2026-10-05 23:32:18 -07:00
committed by GitHub
4 changed files with 55 additions and 22 deletions
+23 -11
View File
@@ -24,7 +24,7 @@
"cross-spawn": "7.0.6", "cross-spawn": "7.0.6",
"diff": "9.0.0", "diff": "9.0.0",
"ignore": "7.0.6", "ignore": "7.0.6",
"incur": "0.4.13", "incur": "0.6.1",
"isomorphic-git": "1.38.7", "isomorphic-git": "1.38.7",
"jsonc-parser": "3.3.1", "jsonc-parser": "3.3.1",
"pino": "10.4.0", "pino": "10.4.0",
@@ -2054,9 +2054,9 @@
} }
}, },
"node_modules/@toon-format/toon": { "node_modules/@toon-format/toon": {
"version": "2.3.0", "version": "2.3.1",
"resolved": "https://registry.npmjs.org/@toon-format/toon/-/toon-2.3.0.tgz", "resolved": "https://registry.npmjs.org/@toon-format/toon/-/toon-2.3.1.tgz",
"integrity": "sha512-/Ew9etdRQKVMnm9fDaCG0JjyAOK/O7T0M97oum1aW4W+UR8ZhVVPBanIV7oWgHBiGlnVxV9M55PWQCHofDV07w==", "integrity": "sha512-sWqEMeAJGMda9qRrfPKrX3C4c33CO9SJuvJzzrcBEn5sbDB+k6pSLkDsfN0rVnLQwR97MV3sDgVbcxQNsq8xVw==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/@turbo/darwin-64": { "node_modules/@turbo/darwin-64": {
@@ -3581,27 +3581,39 @@
} }
}, },
"node_modules/incur": { "node_modules/incur": {
"version": "0.4.13", "version": "0.6.1",
"resolved": "https://registry.npmjs.org/incur/-/incur-0.4.13.tgz", "resolved": "https://registry.npmjs.org/incur/-/incur-0.6.1.tgz",
"integrity": "sha512-BeKlYFLIsRCgC8IxsUd3S2/4kPeZaNf1Rbz+Kz41jQII4jOgr7j5w4KYe00aAEQa3V0Ur57BVxE5JDTx8L2s5Q==", "integrity": "sha512-QgaPKsKH+/3SLdUTSkCYwMWzL56vO3wn7iheEwKE0jOtWSa9Irzn8KeyhkRIkTzHW0ReiQwo0EtT8bBGR9PpMw==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cfworker/json-schema": "^4.1.1", "@cfworker/json-schema": "^4.1.1",
"@modelcontextprotocol/server": "^2.0.0-alpha.2", "@modelcontextprotocol/server": "2.0.0-alpha.4",
"@scalar/openapi-types": "^0.8.0", "@scalar/openapi-types": "^0.8.0",
"@toon-format/toon": "^2.1.0", "@toon-format/toon": "^2.3.1",
"tokenx": "^1.3.0", "tokenx": "^1.3.0",
"yaml": "^2.8.2", "yaml": "^2.8.2",
"zod": "^4.3.6" "zod": "^4.3.6"
}, },
"bin": { "bin": {
"incur": "dist/bin.js", "incur": "dist/cli/index.js",
"incur.src": "src/bin.ts" "incur.src": "src/cli/index.ts"
}, },
"engines": { "engines": {
"node": ">=22" "node": ">=22"
} }
}, },
"node_modules/incur/node_modules/@modelcontextprotocol/server": {
"version": "2.0.0-alpha.4",
"resolved": "https://registry.npmjs.org/@modelcontextprotocol/server/-/server-2.0.0-alpha.4.tgz",
"integrity": "sha512-/KEo3ZJ50HlagHp0lz2vPgfBZFtXHu6zTBXT9XqPc+4O9i4+IbBVWKq/a9yAfv/ifp0u3+mRo8SUk5kMKzhN8A==",
"license": "MIT",
"dependencies": {
"zod": "^4.2.0"
},
"engines": {
"node": ">=20"
}
},
"node_modules/inherits": { "node_modules/inherits": {
"version": "2.0.4", "version": "2.0.4",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+1 -1
View File
@@ -179,7 +179,7 @@
"cross-spawn": "7.0.6", "cross-spawn": "7.0.6",
"diff": "9.0.0", "diff": "9.0.0",
"ignore": "7.0.6", "ignore": "7.0.6",
"incur": "0.4.13", "incur": "0.6.1",
"isomorphic-git": "1.38.7", "isomorphic-git": "1.38.7",
"jsonc-parser": "3.3.1", "jsonc-parser": "3.3.1",
"pino": "10.4.0", "pino": "10.4.0",
+1 -10
View File
@@ -1,5 +1,4 @@
import { Cli } from "incur"; import { Cli } from "incur";
import { fileURLToPath } from "node:url";
import { createLogger, parseLogLevel } from "./logger.js"; import { createLogger, parseLogLevel } from "./logger.js";
import { PRODUCT_IDENTITY } from "./identity.js"; import { PRODUCT_IDENTITY } from "./identity.js";
@@ -40,15 +39,7 @@ export const createCli = (
instructions: instructions:
"Ask what software, artifact, protocol, or behavior the user wants to understand, then choose the available investigation capabilities that can produce evidence.", "Ask what software, artifact, protocol, or behavior the user wants to understand, then choose the available investigation capabilities that can produce evidence.",
}, },
sync: { sync: false,
cwd: fileURLToPath(new URL("..", import.meta.url)),
include: ["skills/*"],
suggestions: [
"understand how a software feature works",
"investigate an artifact or observed behavior",
"check my REA setup",
],
},
}); });
registerSetupCommands(cli, logger); registerSetupCommands(cli, logger);
+30
View File
@@ -0,0 +1,30 @@
import { readdir } from "node:fs/promises";
import { describe, expect } from "vitest";
import { workspaceCliTest } from "../../support/cli/workspaceCliFixture.js";
const CLI_INTEGRATION_TIMEOUT_MS = 60_000;
describe("CLI skill lifecycle boundary", () => {
workspaceCliTest(
"does not expose the unmanaged Incur skill generator",
async ({ cli, workspace }) => {
const help = await cli.run({
arguments: ["--help"],
environment: workspace.environment,
});
expect(help).toMatchObject({ exitCode: 0 });
expect(help.stdout).not.toMatch(/^\s+skills\b/mu);
const result = await cli.run({
arguments: ["skills", "add"],
environment: workspace.environment,
});
expect(result.exitCode).toBe(1);
expect(result.stdout).toContain("COMMAND_NOT_FOUND");
await expect(readdir(workspace.home)).resolves.toEqual([]);
},
CLI_INTEGRATION_TIMEOUT_MS,
);
});