@kuznai/inception-engine 1.0.0 → 1.0.2
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 +1 -1
- package/dist/src/core/adapters/agent-definitions.js +1 -1
- package/dist/src/core/adapters/execution-config.js +2 -4
- package/dist/src/core/deploy.js +1 -1
- package/dist/src/core/revert.js +2 -4
- package/dist/src/formatters.js +14 -11
- package/dist/src/schemas/manifest.d.ts +64 -64
- package/dist/src/schemas/registry.d.ts +27 -27
- package/dist/test/unit/formatters.test.js +4 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -543,7 +543,7 @@ inception-engine init <directory> [options]
|
|
|
543
543
|
| `--debug` | Show full error stack traces |
|
|
544
544
|
| `--help` | Show help message |
|
|
545
545
|
|
|
546
|
-
With `--plan`, deploy and revert print a grouped action preview by agent. Each planned change includes the source path when applicable, the resolved target path, and action-specific details such as JSON/TOML patch
|
|
546
|
+
With `--plan`, deploy and revert print a grouped action preview by agent. Each planned change includes the action verb, the source path when applicable, the resolved target path, and action-specific details such as indented JSON/TOML patch payload blocks or emitted frontmatter content.
|
|
547
547
|
|
|
548
548
|
### Examples
|
|
549
549
|
|
|
@@ -30,7 +30,7 @@ function resolveTomlDefinitionsSurface(agentId, scope) {
|
|
|
30
30
|
? (agent.agentDefinitionsTomlRepoSupport ??
|
|
31
31
|
agent.agentDefinitionsTomlSupport)
|
|
32
32
|
: agent.agentDefinitionsTomlSupport;
|
|
33
|
-
if (
|
|
33
|
+
if (tomlSupport?.status !== "supported")
|
|
34
34
|
return undefined;
|
|
35
35
|
return tomlSupport;
|
|
36
36
|
}
|
|
@@ -15,8 +15,7 @@ export function compileExecutionConfigActions(entry, detectedAgents, home) {
|
|
|
15
15
|
if (!detectedAgents.includes(agentId))
|
|
16
16
|
continue;
|
|
17
17
|
const agent = AGENT_REGISTRY_BY_ID[agentId];
|
|
18
|
-
if (
|
|
19
|
-
agent.executionConfigSupport.status !== "supported") {
|
|
18
|
+
if (agent.executionConfigSupport?.status !== "supported") {
|
|
20
19
|
warnings.push({
|
|
21
20
|
kind: "confidence",
|
|
22
21
|
message: `Agent "${agentId}" does not support modeled execution configuration surfaces — skipping "${entry.name}"`,
|
|
@@ -43,8 +42,7 @@ export function compileExecutionConfigReverts(entry, agentFilter, home) {
|
|
|
43
42
|
if (agentFilter && !agentFilter.includes(agentId))
|
|
44
43
|
continue;
|
|
45
44
|
const agent = AGENT_REGISTRY_BY_ID[agentId];
|
|
46
|
-
if (
|
|
47
|
-
agent.executionConfigSupport.status !== "supported") {
|
|
45
|
+
if (agent.executionConfigSupport?.status !== "supported") {
|
|
48
46
|
continue;
|
|
49
47
|
}
|
|
50
48
|
const rawTarget = resolvePlaceholders(agent.executionConfigSupport.path[platform], entry.name, home);
|
package/dist/src/core/deploy.js
CHANGED
|
@@ -183,7 +183,7 @@ function collectApprovedGlobalSurfaceTemplates(agentId) {
|
|
|
183
183
|
];
|
|
184
184
|
const approved = new Set();
|
|
185
185
|
for (const support of supports) {
|
|
186
|
-
if (
|
|
186
|
+
if (support?.status !== "supported")
|
|
187
187
|
continue;
|
|
188
188
|
approved.add(normalizeTemplatePath(support.path.posix.join("/")));
|
|
189
189
|
approved.add(normalizeTemplatePath(support.path.windows.join("/")));
|
package/dist/src/core/revert.js
CHANGED
|
@@ -449,8 +449,7 @@ async function revertConfigPatch(action, dryRun, verbose, home, planned, deps) {
|
|
|
449
449
|
return result;
|
|
450
450
|
}
|
|
451
451
|
const entry = await lookupDeployment(home, action.target, deps.registry);
|
|
452
|
-
if (
|
|
453
|
-
entry.kind !== "config-patch" ||
|
|
452
|
+
if (entry?.kind !== "config-patch" ||
|
|
454
453
|
entry.skill !== action.skill ||
|
|
455
454
|
entry.agent !== action.agent) {
|
|
456
455
|
logger.warn(label, `skipping: ${action.target} is not in the deployment registry — not managed by inception-engine`);
|
|
@@ -507,8 +506,7 @@ async function revertTomlPatch(action, dryRun, verbose, home, planned, deps) {
|
|
|
507
506
|
return result;
|
|
508
507
|
}
|
|
509
508
|
const entry = await lookupDeployment(home, action.target, deps.registry);
|
|
510
|
-
if (
|
|
511
|
-
entry.kind !== "config-patch" ||
|
|
509
|
+
if (entry?.kind !== "config-patch" ||
|
|
512
510
|
entry.skill !== action.skill ||
|
|
513
511
|
entry.agent !== action.agent) {
|
|
514
512
|
logger.warn(label, `skipping: ${action.target} is not in the deployment registry — not managed by inception-engine`);
|
package/dist/src/formatters.js
CHANGED
|
@@ -27,32 +27,35 @@ export function formatDryRunPlan(planned) {
|
|
|
27
27
|
}
|
|
28
28
|
function formatPlannedChange(change) {
|
|
29
29
|
const icon = styleText("cyan", "○");
|
|
30
|
-
const
|
|
31
|
-
const lines = [
|
|
32
|
-
` ${icon} ${kind} ${change.verb} ${styleText("bold", change.skill)}`,
|
|
33
|
-
];
|
|
30
|
+
const lines = [` ${icon} ${change.verb} ${styleText("bold", change.skill)}`];
|
|
34
31
|
if (change.source !== undefined) {
|
|
35
32
|
lines.push(` source: ${styleText("dim", change.source)}`);
|
|
36
33
|
}
|
|
37
34
|
lines.push(` target: ${styleText("dim", change.target)}`);
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
lines.push(` ${
|
|
35
|
+
const detailLines = formatChangeDetail(change);
|
|
36
|
+
if (detailLines) {
|
|
37
|
+
lines.push(...detailLines.map((line) => ` ${line}`));
|
|
41
38
|
}
|
|
42
39
|
return lines.join("\n");
|
|
43
40
|
}
|
|
44
41
|
function formatChangeDetail(change) {
|
|
45
42
|
if (change.verb === "patch-config" && change.patch !== undefined) {
|
|
46
|
-
return
|
|
43
|
+
return formatJsonDetail("patch", change.patch);
|
|
47
44
|
}
|
|
48
45
|
if (change.verb === "unapply-patch" && change.patch !== undefined) {
|
|
49
|
-
return
|
|
46
|
+
return formatJsonDetail("undo", change.patch);
|
|
50
47
|
}
|
|
51
48
|
if (change.verb === "patch-toml" && change.patch !== undefined) {
|
|
52
|
-
return
|
|
49
|
+
return formatJsonDetail("patch", change.patch);
|
|
53
50
|
}
|
|
54
51
|
if (change.verb === "emit-frontmatter" && change.frontmatter !== undefined) {
|
|
55
|
-
return
|
|
52
|
+
return formatJsonDetail("frontmatter", change.frontmatter);
|
|
56
53
|
}
|
|
57
54
|
return null;
|
|
58
55
|
}
|
|
56
|
+
function formatJsonDetail(label, value) {
|
|
57
|
+
const jsonLines = JSON.stringify(value, null, 2)
|
|
58
|
+
.split("\n")
|
|
59
|
+
.map((line) => styleText("dim", line));
|
|
60
|
+
return [`${label}:`, ...jsonLines.map((line) => ` ${line}`)];
|
|
61
|
+
}
|
|
@@ -2,124 +2,124 @@ import { z } from "zod";
|
|
|
2
2
|
declare const AGENT_IDS: readonly ["claude-code", "codex", "gemini-cli", "antigravity", "opencode", "github-copilot"];
|
|
3
3
|
export { AGENT_IDS };
|
|
4
4
|
export declare const AgentIdSchema: z.ZodEnum<{
|
|
5
|
+
antigravity: "antigravity";
|
|
5
6
|
"claude-code": "claude-code";
|
|
6
7
|
codex: "codex";
|
|
7
8
|
"gemini-cli": "gemini-cli";
|
|
8
|
-
antigravity: "antigravity";
|
|
9
|
-
opencode: "opencode";
|
|
10
9
|
"github-copilot": "github-copilot";
|
|
10
|
+
opencode: "opencode";
|
|
11
11
|
}>;
|
|
12
12
|
export type AgentId = z.output<typeof AgentIdSchema>;
|
|
13
13
|
export declare const SkillEntrySchema: z.ZodObject<{
|
|
14
14
|
name: z.ZodString;
|
|
15
15
|
path: z.ZodString;
|
|
16
16
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
17
|
+
antigravity: "antigravity";
|
|
17
18
|
"claude-code": "claude-code";
|
|
18
19
|
codex: "codex";
|
|
19
20
|
"gemini-cli": "gemini-cli";
|
|
20
|
-
antigravity: "antigravity";
|
|
21
|
-
opencode: "opencode";
|
|
22
21
|
"github-copilot": "github-copilot";
|
|
23
|
-
|
|
22
|
+
opencode: "opencode";
|
|
23
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
24
24
|
}, z.core.$strip>;
|
|
25
25
|
export declare const FileEntrySchema: z.ZodObject<{
|
|
26
26
|
name: z.ZodString;
|
|
27
27
|
path: z.ZodString;
|
|
28
28
|
target: z.ZodString;
|
|
29
29
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
30
|
+
antigravity: "antigravity";
|
|
30
31
|
"claude-code": "claude-code";
|
|
31
32
|
codex: "codex";
|
|
32
33
|
"gemini-cli": "gemini-cli";
|
|
33
|
-
antigravity: "antigravity";
|
|
34
|
-
opencode: "opencode";
|
|
35
34
|
"github-copilot": "github-copilot";
|
|
36
|
-
|
|
35
|
+
opencode: "opencode";
|
|
36
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
export declare const ConfigEntrySchema: z.ZodObject<{
|
|
39
39
|
name: z.ZodString;
|
|
40
40
|
target: z.ZodString;
|
|
41
41
|
patch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
42
42
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
43
|
+
antigravity: "antigravity";
|
|
43
44
|
"claude-code": "claude-code";
|
|
44
45
|
codex: "codex";
|
|
45
46
|
"gemini-cli": "gemini-cli";
|
|
46
|
-
antigravity: "antigravity";
|
|
47
|
-
opencode: "opencode";
|
|
48
47
|
"github-copilot": "github-copilot";
|
|
49
|
-
|
|
48
|
+
opencode: "opencode";
|
|
49
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
51
|
export declare const McpServerEntrySchema: z.ZodObject<{
|
|
52
52
|
name: z.ZodString;
|
|
53
53
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
54
|
+
antigravity: "antigravity";
|
|
54
55
|
"claude-code": "claude-code";
|
|
55
56
|
codex: "codex";
|
|
56
57
|
"gemini-cli": "gemini-cli";
|
|
57
|
-
antigravity: "antigravity";
|
|
58
|
-
opencode: "opencode";
|
|
59
58
|
"github-copilot": "github-copilot";
|
|
60
|
-
|
|
59
|
+
opencode: "opencode";
|
|
60
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
61
61
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
62
62
|
scope: z.ZodDefault<z.ZodEnum<{
|
|
63
|
+
devcontainer: "devcontainer";
|
|
63
64
|
global: "global";
|
|
64
65
|
repo: "repo";
|
|
65
66
|
workspace: "workspace";
|
|
66
|
-
devcontainer: "devcontainer";
|
|
67
67
|
}>>;
|
|
68
68
|
}, z.core.$strip>;
|
|
69
69
|
export declare const AgentRuleEntrySchema: z.ZodObject<{
|
|
70
70
|
name: z.ZodString;
|
|
71
71
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
72
|
+
antigravity: "antigravity";
|
|
72
73
|
"claude-code": "claude-code";
|
|
73
74
|
codex: "codex";
|
|
74
75
|
"gemini-cli": "gemini-cli";
|
|
75
|
-
antigravity: "antigravity";
|
|
76
|
-
opencode: "opencode";
|
|
77
76
|
"github-copilot": "github-copilot";
|
|
78
|
-
|
|
77
|
+
opencode: "opencode";
|
|
78
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
79
79
|
path: z.ZodString;
|
|
80
80
|
scope: z.ZodDefault<z.ZodEnum<{
|
|
81
|
+
"copilot-repo": "copilot-repo";
|
|
82
|
+
"copilot-scoped": "copilot-scoped";
|
|
81
83
|
global: "global";
|
|
82
84
|
repo: "repo";
|
|
83
85
|
workspace: "workspace";
|
|
84
|
-
"copilot-repo": "copilot-repo";
|
|
85
|
-
"copilot-scoped": "copilot-scoped";
|
|
86
86
|
}>>;
|
|
87
87
|
targetDir: z.ZodOptional<z.ZodString>;
|
|
88
88
|
}, z.core.$strip>;
|
|
89
89
|
export declare const PermissionsEntrySchema: z.ZodObject<{
|
|
90
90
|
name: z.ZodString;
|
|
91
91
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
92
|
+
antigravity: "antigravity";
|
|
92
93
|
"claude-code": "claude-code";
|
|
93
94
|
codex: "codex";
|
|
94
95
|
"gemini-cli": "gemini-cli";
|
|
95
|
-
antigravity: "antigravity";
|
|
96
|
-
opencode: "opencode";
|
|
97
96
|
"github-copilot": "github-copilot";
|
|
98
|
-
|
|
97
|
+
opencode: "opencode";
|
|
98
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
99
99
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
100
100
|
}, z.core.$strip>;
|
|
101
101
|
export declare const ExecutionConfigEntrySchema: z.ZodObject<{
|
|
102
102
|
name: z.ZodString;
|
|
103
103
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
104
|
+
antigravity: "antigravity";
|
|
104
105
|
"claude-code": "claude-code";
|
|
105
106
|
codex: "codex";
|
|
106
107
|
"gemini-cli": "gemini-cli";
|
|
107
|
-
antigravity: "antigravity";
|
|
108
|
-
opencode: "opencode";
|
|
109
108
|
"github-copilot": "github-copilot";
|
|
110
|
-
|
|
109
|
+
opencode: "opencode";
|
|
110
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
111
111
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
112
112
|
}, z.core.$strip>;
|
|
113
113
|
export declare const AgentDefinitionEntrySchema: z.ZodObject<{
|
|
114
114
|
name: z.ZodString;
|
|
115
115
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
116
|
+
antigravity: "antigravity";
|
|
116
117
|
"claude-code": "claude-code";
|
|
117
118
|
codex: "codex";
|
|
118
119
|
"gemini-cli": "gemini-cli";
|
|
119
|
-
antigravity: "antigravity";
|
|
120
|
-
opencode: "opencode";
|
|
121
120
|
"github-copilot": "github-copilot";
|
|
122
|
-
|
|
121
|
+
opencode: "opencode";
|
|
122
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
123
123
|
path: z.ZodString;
|
|
124
124
|
scope: z.ZodDefault<z.ZodEnum<{
|
|
125
125
|
global: "global";
|
|
@@ -130,13 +130,13 @@ export declare const AgentDefinitionEntrySchema: z.ZodObject<{
|
|
|
130
130
|
export declare const HookEntrySchema: z.ZodObject<{
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
133
|
+
antigravity: "antigravity";
|
|
133
134
|
"claude-code": "claude-code";
|
|
134
135
|
codex: "codex";
|
|
135
136
|
"gemini-cli": "gemini-cli";
|
|
136
|
-
antigravity: "antigravity";
|
|
137
|
-
opencode: "opencode";
|
|
138
137
|
"github-copilot": "github-copilot";
|
|
139
|
-
|
|
138
|
+
opencode: "opencode";
|
|
139
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
140
140
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
141
141
|
}, z.core.$strip>;
|
|
142
142
|
export declare const ManifestSchema: z.ZodObject<{
|
|
@@ -144,100 +144,100 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
144
144
|
name: z.ZodString;
|
|
145
145
|
path: z.ZodString;
|
|
146
146
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
147
|
+
antigravity: "antigravity";
|
|
147
148
|
"claude-code": "claude-code";
|
|
148
149
|
codex: "codex";
|
|
149
150
|
"gemini-cli": "gemini-cli";
|
|
150
|
-
antigravity: "antigravity";
|
|
151
|
-
opencode: "opencode";
|
|
152
151
|
"github-copilot": "github-copilot";
|
|
153
|
-
|
|
152
|
+
opencode: "opencode";
|
|
153
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
154
154
|
}, z.core.$strip>>;
|
|
155
155
|
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
156
156
|
name: z.ZodString;
|
|
157
157
|
path: z.ZodString;
|
|
158
158
|
target: z.ZodString;
|
|
159
159
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
160
|
+
antigravity: "antigravity";
|
|
160
161
|
"claude-code": "claude-code";
|
|
161
162
|
codex: "codex";
|
|
162
163
|
"gemini-cli": "gemini-cli";
|
|
163
|
-
antigravity: "antigravity";
|
|
164
|
-
opencode: "opencode";
|
|
165
164
|
"github-copilot": "github-copilot";
|
|
166
|
-
|
|
165
|
+
opencode: "opencode";
|
|
166
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
167
167
|
}, z.core.$strip>>>;
|
|
168
168
|
configs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
169
169
|
name: z.ZodString;
|
|
170
170
|
target: z.ZodString;
|
|
171
171
|
patch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
172
172
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
173
|
+
antigravity: "antigravity";
|
|
173
174
|
"claude-code": "claude-code";
|
|
174
175
|
codex: "codex";
|
|
175
176
|
"gemini-cli": "gemini-cli";
|
|
176
|
-
antigravity: "antigravity";
|
|
177
|
-
opencode: "opencode";
|
|
178
177
|
"github-copilot": "github-copilot";
|
|
179
|
-
|
|
178
|
+
opencode: "opencode";
|
|
179
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
180
180
|
}, z.core.$strip>>>;
|
|
181
181
|
mcpServers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
182
182
|
name: z.ZodString;
|
|
183
183
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
184
|
+
antigravity: "antigravity";
|
|
184
185
|
"claude-code": "claude-code";
|
|
185
186
|
codex: "codex";
|
|
186
187
|
"gemini-cli": "gemini-cli";
|
|
187
|
-
antigravity: "antigravity";
|
|
188
|
-
opencode: "opencode";
|
|
189
188
|
"github-copilot": "github-copilot";
|
|
190
|
-
|
|
189
|
+
opencode: "opencode";
|
|
190
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
191
191
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
192
192
|
scope: z.ZodDefault<z.ZodEnum<{
|
|
193
|
+
devcontainer: "devcontainer";
|
|
193
194
|
global: "global";
|
|
194
195
|
repo: "repo";
|
|
195
196
|
workspace: "workspace";
|
|
196
|
-
devcontainer: "devcontainer";
|
|
197
197
|
}>>;
|
|
198
198
|
}, z.core.$strip>>>;
|
|
199
199
|
agentRules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
200
200
|
name: z.ZodString;
|
|
201
201
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
202
|
+
antigravity: "antigravity";
|
|
202
203
|
"claude-code": "claude-code";
|
|
203
204
|
codex: "codex";
|
|
204
205
|
"gemini-cli": "gemini-cli";
|
|
205
|
-
antigravity: "antigravity";
|
|
206
|
-
opencode: "opencode";
|
|
207
206
|
"github-copilot": "github-copilot";
|
|
208
|
-
|
|
207
|
+
opencode: "opencode";
|
|
208
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
209
209
|
path: z.ZodString;
|
|
210
210
|
scope: z.ZodDefault<z.ZodEnum<{
|
|
211
|
+
"copilot-repo": "copilot-repo";
|
|
212
|
+
"copilot-scoped": "copilot-scoped";
|
|
211
213
|
global: "global";
|
|
212
214
|
repo: "repo";
|
|
213
215
|
workspace: "workspace";
|
|
214
|
-
"copilot-repo": "copilot-repo";
|
|
215
|
-
"copilot-scoped": "copilot-scoped";
|
|
216
216
|
}>>;
|
|
217
217
|
targetDir: z.ZodOptional<z.ZodString>;
|
|
218
218
|
}, z.core.$strip>>>;
|
|
219
219
|
permissions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
220
220
|
name: z.ZodString;
|
|
221
221
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
222
|
+
antigravity: "antigravity";
|
|
222
223
|
"claude-code": "claude-code";
|
|
223
224
|
codex: "codex";
|
|
224
225
|
"gemini-cli": "gemini-cli";
|
|
225
|
-
antigravity: "antigravity";
|
|
226
|
-
opencode: "opencode";
|
|
227
226
|
"github-copilot": "github-copilot";
|
|
228
|
-
|
|
227
|
+
opencode: "opencode";
|
|
228
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
229
229
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
230
230
|
}, z.core.$strip>>>;
|
|
231
231
|
agentDefinitions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
232
232
|
name: z.ZodString;
|
|
233
233
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
234
|
+
antigravity: "antigravity";
|
|
234
235
|
"claude-code": "claude-code";
|
|
235
236
|
codex: "codex";
|
|
236
237
|
"gemini-cli": "gemini-cli";
|
|
237
|
-
antigravity: "antigravity";
|
|
238
|
-
opencode: "opencode";
|
|
239
238
|
"github-copilot": "github-copilot";
|
|
240
|
-
|
|
239
|
+
opencode: "opencode";
|
|
240
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
241
241
|
path: z.ZodString;
|
|
242
242
|
scope: z.ZodDefault<z.ZodEnum<{
|
|
243
243
|
global: "global";
|
|
@@ -248,25 +248,25 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
248
248
|
hooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
249
249
|
name: z.ZodString;
|
|
250
250
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
251
|
+
antigravity: "antigravity";
|
|
251
252
|
"claude-code": "claude-code";
|
|
252
253
|
codex: "codex";
|
|
253
254
|
"gemini-cli": "gemini-cli";
|
|
254
|
-
antigravity: "antigravity";
|
|
255
|
-
opencode: "opencode";
|
|
256
255
|
"github-copilot": "github-copilot";
|
|
257
|
-
|
|
256
|
+
opencode: "opencode";
|
|
257
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
258
258
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
259
259
|
}, z.core.$strip>>>;
|
|
260
260
|
executionConfigs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
261
261
|
name: z.ZodString;
|
|
262
262
|
agents: z.ZodPipe<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
263
|
+
antigravity: "antigravity";
|
|
263
264
|
"claude-code": "claude-code";
|
|
264
265
|
codex: "codex";
|
|
265
266
|
"gemini-cli": "gemini-cli";
|
|
266
|
-
antigravity: "antigravity";
|
|
267
|
-
opencode: "opencode";
|
|
268
267
|
"github-copilot": "github-copilot";
|
|
269
|
-
|
|
268
|
+
opencode: "opencode";
|
|
269
|
+
}>>>, z.ZodTransform<("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[], ("antigravity" | "claude-code" | "codex" | "gemini-cli" | "github-copilot" | "opencode")[]>>;
|
|
270
270
|
config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
271
271
|
}, z.core.$strip>>>;
|
|
272
272
|
}, z.core.$strip>;
|
|
@@ -281,10 +281,10 @@ export type HookEntry = z.infer<typeof HookEntrySchema>;
|
|
|
281
281
|
export type ExecutionConfigEntry = z.infer<typeof ExecutionConfigEntrySchema>;
|
|
282
282
|
export type Manifest = z.infer<typeof ManifestSchema>;
|
|
283
283
|
export declare const AgentListSchema: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
284
|
+
antigravity: "antigravity";
|
|
284
285
|
"claude-code": "claude-code";
|
|
285
286
|
codex: "codex";
|
|
286
287
|
"gemini-cli": "gemini-cli";
|
|
287
|
-
antigravity: "antigravity";
|
|
288
|
-
opencode: "opencode";
|
|
289
288
|
"github-copilot": "github-copilot";
|
|
289
|
+
opencode: "opencode";
|
|
290
290
|
}>>>>;
|
|
@@ -6,16 +6,16 @@ declare const SkillDirRegistryEntrySchema: z.ZodObject<{
|
|
|
6
6
|
source: z.ZodString;
|
|
7
7
|
skill: z.ZodString;
|
|
8
8
|
agent: z.ZodEnum<{
|
|
9
|
+
antigravity: "antigravity";
|
|
9
10
|
"claude-code": "claude-code";
|
|
10
11
|
codex: "codex";
|
|
11
12
|
"gemini-cli": "gemini-cli";
|
|
12
|
-
antigravity: "antigravity";
|
|
13
|
-
opencode: "opencode";
|
|
14
13
|
"github-copilot": "github-copilot";
|
|
14
|
+
opencode: "opencode";
|
|
15
15
|
}>;
|
|
16
16
|
method: z.ZodOptional<z.ZodEnum<{
|
|
17
|
-
symlink: "symlink";
|
|
18
17
|
copy: "copy";
|
|
18
|
+
symlink: "symlink";
|
|
19
19
|
}>>;
|
|
20
20
|
deployed: z.ZodString;
|
|
21
21
|
}, z.core.$strip>;
|
|
@@ -26,12 +26,12 @@ declare const FileWriteRegistryEntrySchema: z.ZodObject<{
|
|
|
26
26
|
source: z.ZodString;
|
|
27
27
|
skill: z.ZodString;
|
|
28
28
|
agent: z.ZodEnum<{
|
|
29
|
+
antigravity: "antigravity";
|
|
29
30
|
"claude-code": "claude-code";
|
|
30
31
|
codex: "codex";
|
|
31
32
|
"gemini-cli": "gemini-cli";
|
|
32
|
-
antigravity: "antigravity";
|
|
33
|
-
opencode: "opencode";
|
|
34
33
|
"github-copilot": "github-copilot";
|
|
34
|
+
opencode: "opencode";
|
|
35
35
|
}>;
|
|
36
36
|
deployed: z.ZodString;
|
|
37
37
|
}, z.core.$strip>;
|
|
@@ -43,12 +43,12 @@ declare const ConfigPatchRegistryEntrySchema: z.ZodObject<{
|
|
|
43
43
|
undoPatch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
44
44
|
skill: z.ZodString;
|
|
45
45
|
agent: z.ZodEnum<{
|
|
46
|
+
antigravity: "antigravity";
|
|
46
47
|
"claude-code": "claude-code";
|
|
47
48
|
codex: "codex";
|
|
48
49
|
"gemini-cli": "gemini-cli";
|
|
49
|
-
antigravity: "antigravity";
|
|
50
|
-
opencode: "opencode";
|
|
51
50
|
"github-copilot": "github-copilot";
|
|
51
|
+
opencode: "opencode";
|
|
52
52
|
}>;
|
|
53
53
|
deployed: z.ZodString;
|
|
54
54
|
}, z.core.$strip>;
|
|
@@ -62,12 +62,12 @@ declare const FrontmatterEmitRegistryEntrySchema: z.ZodObject<{
|
|
|
62
62
|
hadFrontmatter: z.ZodOptional<z.ZodBoolean>;
|
|
63
63
|
skill: z.ZodString;
|
|
64
64
|
agent: z.ZodEnum<{
|
|
65
|
+
antigravity: "antigravity";
|
|
65
66
|
"claude-code": "claude-code";
|
|
66
67
|
codex: "codex";
|
|
67
68
|
"gemini-cli": "gemini-cli";
|
|
68
|
-
antigravity: "antigravity";
|
|
69
|
-
opencode: "opencode";
|
|
70
69
|
"github-copilot": "github-copilot";
|
|
70
|
+
opencode: "opencode";
|
|
71
71
|
}>;
|
|
72
72
|
deployed: z.ZodString;
|
|
73
73
|
}, z.core.$strip>;
|
|
@@ -78,16 +78,16 @@ export declare const RegistryEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
78
78
|
source: z.ZodString;
|
|
79
79
|
skill: z.ZodString;
|
|
80
80
|
agent: z.ZodEnum<{
|
|
81
|
+
antigravity: "antigravity";
|
|
81
82
|
"claude-code": "claude-code";
|
|
82
83
|
codex: "codex";
|
|
83
84
|
"gemini-cli": "gemini-cli";
|
|
84
|
-
antigravity: "antigravity";
|
|
85
|
-
opencode: "opencode";
|
|
86
85
|
"github-copilot": "github-copilot";
|
|
86
|
+
opencode: "opencode";
|
|
87
87
|
}>;
|
|
88
88
|
method: z.ZodOptional<z.ZodEnum<{
|
|
89
|
-
symlink: "symlink";
|
|
90
89
|
copy: "copy";
|
|
90
|
+
symlink: "symlink";
|
|
91
91
|
}>>;
|
|
92
92
|
deployed: z.ZodString;
|
|
93
93
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -97,12 +97,12 @@ export declare const RegistryEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
97
97
|
source: z.ZodString;
|
|
98
98
|
skill: z.ZodString;
|
|
99
99
|
agent: z.ZodEnum<{
|
|
100
|
+
antigravity: "antigravity";
|
|
100
101
|
"claude-code": "claude-code";
|
|
101
102
|
codex: "codex";
|
|
102
103
|
"gemini-cli": "gemini-cli";
|
|
103
|
-
antigravity: "antigravity";
|
|
104
|
-
opencode: "opencode";
|
|
105
104
|
"github-copilot": "github-copilot";
|
|
105
|
+
opencode: "opencode";
|
|
106
106
|
}>;
|
|
107
107
|
deployed: z.ZodString;
|
|
108
108
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -113,12 +113,12 @@ export declare const RegistryEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
113
113
|
undoPatch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
114
114
|
skill: z.ZodString;
|
|
115
115
|
agent: z.ZodEnum<{
|
|
116
|
+
antigravity: "antigravity";
|
|
116
117
|
"claude-code": "claude-code";
|
|
117
118
|
codex: "codex";
|
|
118
119
|
"gemini-cli": "gemini-cli";
|
|
119
|
-
antigravity: "antigravity";
|
|
120
|
-
opencode: "opencode";
|
|
121
120
|
"github-copilot": "github-copilot";
|
|
121
|
+
opencode: "opencode";
|
|
122
122
|
}>;
|
|
123
123
|
deployed: z.ZodString;
|
|
124
124
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -131,12 +131,12 @@ export declare const RegistryEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
131
131
|
hadFrontmatter: z.ZodOptional<z.ZodBoolean>;
|
|
132
132
|
skill: z.ZodString;
|
|
133
133
|
agent: z.ZodEnum<{
|
|
134
|
+
antigravity: "antigravity";
|
|
134
135
|
"claude-code": "claude-code";
|
|
135
136
|
codex: "codex";
|
|
136
137
|
"gemini-cli": "gemini-cli";
|
|
137
|
-
antigravity: "antigravity";
|
|
138
|
-
opencode: "opencode";
|
|
139
138
|
"github-copilot": "github-copilot";
|
|
139
|
+
opencode: "opencode";
|
|
140
140
|
}>;
|
|
141
141
|
deployed: z.ZodString;
|
|
142
142
|
}, z.core.$strip>], "kind">;
|
|
@@ -149,16 +149,16 @@ export declare const RegistrySchema: z.ZodObject<{
|
|
|
149
149
|
source: z.ZodString;
|
|
150
150
|
skill: z.ZodString;
|
|
151
151
|
agent: z.ZodEnum<{
|
|
152
|
+
antigravity: "antigravity";
|
|
152
153
|
"claude-code": "claude-code";
|
|
153
154
|
codex: "codex";
|
|
154
155
|
"gemini-cli": "gemini-cli";
|
|
155
|
-
antigravity: "antigravity";
|
|
156
|
-
opencode: "opencode";
|
|
157
156
|
"github-copilot": "github-copilot";
|
|
157
|
+
opencode: "opencode";
|
|
158
158
|
}>;
|
|
159
159
|
method: z.ZodOptional<z.ZodEnum<{
|
|
160
|
-
symlink: "symlink";
|
|
161
160
|
copy: "copy";
|
|
161
|
+
symlink: "symlink";
|
|
162
162
|
}>>;
|
|
163
163
|
deployed: z.ZodString;
|
|
164
164
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -168,12 +168,12 @@ export declare const RegistrySchema: z.ZodObject<{
|
|
|
168
168
|
source: z.ZodString;
|
|
169
169
|
skill: z.ZodString;
|
|
170
170
|
agent: z.ZodEnum<{
|
|
171
|
+
antigravity: "antigravity";
|
|
171
172
|
"claude-code": "claude-code";
|
|
172
173
|
codex: "codex";
|
|
173
174
|
"gemini-cli": "gemini-cli";
|
|
174
|
-
antigravity: "antigravity";
|
|
175
|
-
opencode: "opencode";
|
|
176
175
|
"github-copilot": "github-copilot";
|
|
176
|
+
opencode: "opencode";
|
|
177
177
|
}>;
|
|
178
178
|
deployed: z.ZodString;
|
|
179
179
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -184,12 +184,12 @@ export declare const RegistrySchema: z.ZodObject<{
|
|
|
184
184
|
undoPatch: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
185
185
|
skill: z.ZodString;
|
|
186
186
|
agent: z.ZodEnum<{
|
|
187
|
+
antigravity: "antigravity";
|
|
187
188
|
"claude-code": "claude-code";
|
|
188
189
|
codex: "codex";
|
|
189
190
|
"gemini-cli": "gemini-cli";
|
|
190
|
-
antigravity: "antigravity";
|
|
191
|
-
opencode: "opencode";
|
|
192
191
|
"github-copilot": "github-copilot";
|
|
192
|
+
opencode: "opencode";
|
|
193
193
|
}>;
|
|
194
194
|
deployed: z.ZodString;
|
|
195
195
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -202,12 +202,12 @@ export declare const RegistrySchema: z.ZodObject<{
|
|
|
202
202
|
hadFrontmatter: z.ZodOptional<z.ZodBoolean>;
|
|
203
203
|
skill: z.ZodString;
|
|
204
204
|
agent: z.ZodEnum<{
|
|
205
|
+
antigravity: "antigravity";
|
|
205
206
|
"claude-code": "claude-code";
|
|
206
207
|
codex: "codex";
|
|
207
208
|
"gemini-cli": "gemini-cli";
|
|
208
|
-
antigravity: "antigravity";
|
|
209
|
-
opencode: "opencode";
|
|
210
209
|
"github-copilot": "github-copilot";
|
|
210
|
+
opencode: "opencode";
|
|
211
211
|
}>;
|
|
212
212
|
deployed: z.ZodString;
|
|
213
213
|
}, z.core.$strip>], "kind">>;
|
|
@@ -64,11 +64,12 @@ describe("formatDryRunPlan", () => {
|
|
|
64
64
|
assert.match(output, /write-file alpha/);
|
|
65
65
|
assert.match(output, /source: \/source\/alpha\.md/);
|
|
66
66
|
assert.match(output, /target: \/targets\/alpha\.md/);
|
|
67
|
-
assert.match(output, /undo:\s+\{"enabled":null\}/);
|
|
68
|
-
assert.match(output, /patch:\s+\{"approval_policy":"suggest"\}/);
|
|
69
|
-
assert.match(output, /frontmatter
|
|
67
|
+
assert.match(output, /undo:\n\s+\{\n\s+"enabled": null\n\s+\}/);
|
|
68
|
+
assert.match(output, /patch:\n\s+\{\n\s+"approval_policy": "suggest"\n\s+\}/);
|
|
69
|
+
assert.match(output, /frontmatter:\n\s+\{\n\s+"tools": \[\n\s+"github"\n\s+\]\n\s+\}/);
|
|
70
70
|
assert.match(output, /remove zeta/);
|
|
71
71
|
assert.doesNotMatch(output, /source: \/targets\/zeta\.md/);
|
|
72
72
|
assert.match(output, /patch-config beta/);
|
|
73
|
+
assert.doesNotMatch(output, /\[config-patch\]/);
|
|
73
74
|
});
|
|
74
75
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kuznai/inception-engine",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Deploy AI agent skills from a git repo to user home directories",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Damian Piątkowski",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"test:posix": "node --test --test-isolation=none test/unit/*.test.ts test/os/cross-platform/*.test.ts test/os/posix/*.test.ts"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"smol-toml": "^1.
|
|
51
|
-
"yaml": "^2.
|
|
52
|
-
"zod": "^4.
|
|
50
|
+
"smol-toml": "^1.8.0",
|
|
51
|
+
"yaml": "^2.9.0",
|
|
52
|
+
"zod": "^4.5.4"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@biomejs/biome": "^2.
|
|
56
|
-
"@types/node": "^25.
|
|
57
|
-
"typescript": "^
|
|
55
|
+
"@biomejs/biome": "^2.5.11",
|
|
56
|
+
"@types/node": "^25.9.5",
|
|
57
|
+
"typescript": "^7.0.2"
|
|
58
58
|
}
|
|
59
59
|
}
|