@kuznai/inception-engine 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -22
- package/dist/{config → src/config}/agents.js +87 -14
- package/dist/{core → src/core}/adapters/agent-definitions.d.ts +0 -12
- package/dist/src/core/adapters/agent-definitions.js +162 -0
- package/dist/{core → src/core}/adapters/frontmatter.d.ts +10 -0
- package/dist/{core → src/core}/adapters/frontmatter.js +23 -6
- package/dist/{core → src/core}/adapters/mcp.js +17 -20
- package/dist/{core → src/core}/adapters/permissions.js +16 -20
- package/dist/{core → src/core}/adapters/rules.js +26 -50
- package/dist/src/core/capabilities.d.ts +47 -0
- package/dist/src/core/capabilities.js +280 -0
- package/dist/{core → src/core}/deploy.js +70 -41
- package/dist/{core → src/core}/init.js +18 -24
- package/dist/src/core/merge-patch.d.ts +4 -0
- package/dist/src/core/merge-patch.js +46 -0
- package/dist/{core → src/core}/ownership.js +13 -0
- package/dist/{core → src/core}/preflight.js +141 -29
- package/dist/{core → src/core}/revert.js +86 -26
- package/dist/{core → src/core}/validation.js +20 -0
- package/dist/{schemas → src/schemas}/manifest.d.ts +20 -0
- package/dist/{schemas → src/schemas}/manifest.js +11 -0
- package/dist/{schemas → src/schemas}/registry.d.ts +36 -0
- package/dist/{schemas → src/schemas}/registry.js +12 -4
- package/dist/{types.d.ts → src/types.d.ts} +13 -0
- package/dist/test/helpers/fs.d.ts +2 -0
- package/dist/test/helpers/fs.js +17 -0
- package/dist/test/helpers/path.d.ts +10 -0
- package/dist/test/helpers/path.js +15 -0
- package/dist/test/helpers/skill-dir-scenarios.d.ts +7 -0
- package/dist/test/helpers/skill-dir-scenarios.js +206 -0
- package/dist/test/helpers/skill-dir.d.ts +7 -0
- package/dist/test/helpers/skill-dir.js +46 -0
- package/dist/test/os/cross-platform/cross-platform.test.d.ts +1 -0
- package/dist/test/os/cross-platform/cross-platform.test.js +328 -0
- package/dist/test/os/posix/skill-dir.test.d.ts +1 -0
- package/dist/test/os/posix/skill-dir.test.js +19 -0
- package/dist/test/os/windows/revert-integration.test.d.ts +1 -0
- package/dist/test/os/windows/revert-integration.test.js +72 -0
- package/dist/test/os/windows/skill-dir.test.d.ts +1 -0
- package/dist/test/os/windows/skill-dir.test.js +19 -0
- package/dist/test/unit/adapters.test.d.ts +1 -0
- package/dist/test/unit/adapters.test.js +947 -0
- package/dist/test/unit/capabilities.test.d.ts +1 -0
- package/dist/test/unit/capabilities.test.js +71 -0
- package/dist/test/unit/cli.test.d.ts +1 -0
- package/dist/test/unit/cli.test.js +834 -0
- package/dist/test/unit/deploy.test.d.ts +1 -0
- package/dist/test/unit/deploy.test.js +2481 -0
- package/dist/test/unit/detect.test.d.ts +1 -0
- package/dist/test/unit/detect.test.js +192 -0
- package/dist/test/unit/enterprise.test.d.ts +1 -0
- package/dist/test/unit/enterprise.test.js +106 -0
- package/dist/test/unit/frontmatter.test.d.ts +1 -0
- package/dist/test/unit/frontmatter.test.js +102 -0
- package/dist/test/unit/gemini-north-star.test.d.ts +1 -0
- package/dist/test/unit/gemini-north-star.test.js +243 -0
- package/dist/test/unit/manifest.test.d.ts +1 -0
- package/dist/test/unit/manifest.test.js +737 -0
- package/dist/test/unit/migration-golden.test.d.ts +1 -0
- package/dist/test/unit/migration-golden.test.js +197 -0
- package/dist/test/unit/ownership.test.d.ts +1 -0
- package/dist/test/unit/ownership.test.js +587 -0
- package/dist/test/unit/preflight.test.d.ts +1 -0
- package/dist/test/unit/preflight.test.js +501 -0
- package/dist/test/unit/resolve.test.d.ts +1 -0
- package/dist/test/unit/resolve.test.js +119 -0
- package/dist/test/unit/revert.test.d.ts +1 -0
- package/dist/test/unit/revert.test.js +1004 -0
- package/dist/test/unit/toml.test.d.ts +1 -0
- package/dist/test/unit/toml.test.js +55 -0
- package/package.json +1 -1
- package/dist/core/adapters/agent-definitions.js +0 -91
- /package/dist/{config → src/config}/agents.d.ts +0 -0
- /package/dist/{config → src/config}/manifest.d.ts +0 -0
- /package/dist/{config → src/config}/manifest.js +0 -0
- /package/dist/{core → src/core}/adapters/index.d.ts +0 -0
- /package/dist/{core → src/core}/adapters/index.js +0 -0
- /package/dist/{core → src/core}/adapters/mcp.d.ts +0 -0
- /package/dist/{core → src/core}/adapters/permissions.d.ts +0 -0
- /package/dist/{core → src/core}/adapters/rules.d.ts +0 -0
- /package/dist/{core → src/core}/adapters/toml.d.ts +0 -0
- /package/dist/{core → src/core}/adapters/toml.js +0 -0
- /package/dist/{core → src/core}/deploy.d.ts +0 -0
- /package/dist/{core → src/core}/detect.d.ts +0 -0
- /package/dist/{core → src/core}/detect.js +0 -0
- /package/dist/{core → src/core}/init.d.ts +0 -0
- /package/dist/{core → src/core}/ownership.d.ts +0 -0
- /package/dist/{core → src/core}/preflight.d.ts +0 -0
- /package/dist/{core → src/core}/resolve.d.ts +0 -0
- /package/dist/{core → src/core}/resolve.js +0 -0
- /package/dist/{core → src/core}/revert.d.ts +0 -0
- /package/dist/{core → src/core}/runtime-paths.d.ts +0 -0
- /package/dist/{core → src/core}/runtime-paths.js +0 -0
- /package/dist/{core → src/core}/validation.d.ts +0 -0
- /package/dist/{errors.d.ts → src/errors.d.ts} +0 -0
- /package/dist/{errors.js → src/errors.js} +0 -0
- /package/dist/{formatters.d.ts → src/formatters.d.ts} +0 -0
- /package/dist/{formatters.js → src/formatters.js} +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{index.js → src/index.js} +0 -0
- /package/dist/{logger.d.ts → src/logger.d.ts} +0 -0
- /package/dist/{logger.js → src/logger.js} +0 -0
- /package/dist/{schemas → src/schemas}/errors.d.ts +0 -0
- /package/dist/{schemas → src/schemas}/errors.js +0 -0
- /package/dist/{types.js → src/types.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import { describe, it } from "node:test";
|
|
3
|
+
import { describeCapabilityConfidence, planCapabilityForDeploy, shouldInitIncludeAgent, } from "../../src/core/capabilities.js";
|
|
4
|
+
describe("capabilities planner", () => {
|
|
5
|
+
it("treats antigravity agentRules as deployable but not init-default", () => {
|
|
6
|
+
const plan = planCapabilityForDeploy({
|
|
7
|
+
agentId: "antigravity",
|
|
8
|
+
capability: "agentRules",
|
|
9
|
+
entryName: "shared-rules",
|
|
10
|
+
targetAgentIds: ["antigravity"],
|
|
11
|
+
scope: "global",
|
|
12
|
+
});
|
|
13
|
+
assert.equal(plan.outcome, "action");
|
|
14
|
+
assert.equal(shouldInitIncludeAgent("antigravity", "agentRules"), false);
|
|
15
|
+
});
|
|
16
|
+
it("treats github-copilot skills as shared-through claude-code", () => {
|
|
17
|
+
const plan = planCapabilityForDeploy({
|
|
18
|
+
agentId: "github-copilot",
|
|
19
|
+
capability: "skills",
|
|
20
|
+
entryName: "my-skill",
|
|
21
|
+
targetAgentIds: ["github-copilot"],
|
|
22
|
+
});
|
|
23
|
+
assert.equal(plan.outcome, "warn");
|
|
24
|
+
if (plan.outcome !== "warn")
|
|
25
|
+
return;
|
|
26
|
+
assert.match(plan.warning.message, /via "claude-code"/);
|
|
27
|
+
assert.equal(shouldInitIncludeAgent("github-copilot", "skills"), false);
|
|
28
|
+
});
|
|
29
|
+
it("marks github-copilot rules redundant when claude-code is also targeted", () => {
|
|
30
|
+
const plan = planCapabilityForDeploy({
|
|
31
|
+
agentId: "github-copilot",
|
|
32
|
+
capability: "agentRules",
|
|
33
|
+
entryName: "shared-rules",
|
|
34
|
+
targetAgentIds: ["claude-code", "github-copilot"],
|
|
35
|
+
scope: "global",
|
|
36
|
+
});
|
|
37
|
+
assert.equal(plan.outcome, "redundant");
|
|
38
|
+
});
|
|
39
|
+
it("reports unsupported for github-copilot MCP with global scope (no user-level config)", () => {
|
|
40
|
+
const confidence = describeCapabilityConfidence("github-copilot", "mcpServers", "global");
|
|
41
|
+
assert.match(confidence.message ?? "", /unsupported/);
|
|
42
|
+
});
|
|
43
|
+
it("reports supported for github-copilot MCP with scope: repo", () => {
|
|
44
|
+
const plan = planCapabilityForDeploy({
|
|
45
|
+
agentId: "github-copilot",
|
|
46
|
+
capability: "mcpServers",
|
|
47
|
+
entryName: "my-mcp",
|
|
48
|
+
targetAgentIds: ["github-copilot"],
|
|
49
|
+
scope: "repo",
|
|
50
|
+
});
|
|
51
|
+
assert.equal(plan.outcome, "action");
|
|
52
|
+
if (plan.outcome !== "action")
|
|
53
|
+
return;
|
|
54
|
+
assert.equal(plan.confidence, "documented");
|
|
55
|
+
});
|
|
56
|
+
it("reports supported for github-copilot MCP with scope: workspace", () => {
|
|
57
|
+
const plan = planCapabilityForDeploy({
|
|
58
|
+
agentId: "github-copilot",
|
|
59
|
+
capability: "mcpServers",
|
|
60
|
+
entryName: "my-mcp",
|
|
61
|
+
targetAgentIds: ["github-copilot"],
|
|
62
|
+
scope: "workspace",
|
|
63
|
+
});
|
|
64
|
+
assert.equal(plan.outcome, "action");
|
|
65
|
+
});
|
|
66
|
+
it("reports documented confidence for gemini-cli agentDefinitions (surface is now fully documented)", () => {
|
|
67
|
+
const confidence = describeCapabilityConfidence("gemini-cli", "agentDefinitions");
|
|
68
|
+
assert.equal(confidence.confidence, "documented");
|
|
69
|
+
assert.equal(confidence.message, null);
|
|
70
|
+
});
|
|
71
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|