@kuznai/inception-engine 0.12.0 → 0.14.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 +9 -4
- package/dist/config/agents.js +25 -12
- package/dist/core/adapters/frontmatter.d.ts +26 -0
- package/dist/core/adapters/frontmatter.js +120 -0
- package/dist/core/adapters/index.d.ts +3 -3
- package/dist/core/adapters/index.js +3 -3
- package/dist/core/adapters/mcp.d.ts +4 -4
- package/dist/core/adapters/mcp.js +78 -21
- package/dist/core/adapters/rules.d.ts +2 -2
- package/dist/core/adapters/rules.js +5 -5
- package/dist/core/adapters/toml.d.ts +19 -0
- package/dist/core/adapters/toml.js +96 -0
- package/dist/core/deploy.js +136 -46
- package/dist/core/init.js +127 -8
- package/dist/core/resolve.d.ts +1 -1
- package/dist/core/resolve.js +3 -2
- package/dist/core/revert.d.ts +2 -2
- package/dist/core/revert.js +68 -7
- package/dist/core/runtime-paths.d.ts +1 -1
- package/dist/core/runtime-paths.js +16 -3
- package/dist/schemas/manifest.js +4 -2
- package/dist/types.d.ts +34 -4
- package/package.json +3 -1
package/dist/types.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export interface SupportedAgentSurface {
|
|
|
9
9
|
status: "supported";
|
|
10
10
|
path: AgentPaths;
|
|
11
11
|
schemaLabel: string;
|
|
12
|
+
mcpPatchKey?: string;
|
|
12
13
|
}
|
|
13
14
|
export interface UnsupportedAgentSurface {
|
|
14
15
|
status: "unsupported";
|
|
@@ -63,7 +64,23 @@ export interface ConfigPatchDeployAction {
|
|
|
63
64
|
patch: unknown;
|
|
64
65
|
confidence?: Confidence;
|
|
65
66
|
}
|
|
66
|
-
export
|
|
67
|
+
export interface TomlPatchDeployAction {
|
|
68
|
+
kind: "toml-patch";
|
|
69
|
+
skill: string;
|
|
70
|
+
agent: AgentId;
|
|
71
|
+
target: string;
|
|
72
|
+
config: Record<string, unknown>;
|
|
73
|
+
confidence?: Confidence;
|
|
74
|
+
}
|
|
75
|
+
export interface FrontmatterEmitDeployAction {
|
|
76
|
+
kind: "frontmatter-emit";
|
|
77
|
+
skill: string;
|
|
78
|
+
agent: AgentId;
|
|
79
|
+
target: string;
|
|
80
|
+
frontmatter: Record<string, unknown>;
|
|
81
|
+
confidence?: Confidence;
|
|
82
|
+
}
|
|
83
|
+
export type DeployAction = SkillDirDeployAction | FileWriteDeployAction | ConfigPatchDeployAction | TomlPatchDeployAction | FrontmatterEmitDeployAction;
|
|
67
84
|
export interface SkillDirRevertAction {
|
|
68
85
|
kind: "skill-dir";
|
|
69
86
|
skill: string;
|
|
@@ -82,17 +99,30 @@ export interface ConfigPatchRevertAction {
|
|
|
82
99
|
agent: AgentId;
|
|
83
100
|
target: string;
|
|
84
101
|
}
|
|
85
|
-
export
|
|
86
|
-
|
|
102
|
+
export interface TomlPatchRevertAction {
|
|
103
|
+
kind: "toml-patch";
|
|
104
|
+
skill: string;
|
|
105
|
+
agent: AgentId;
|
|
106
|
+
target: string;
|
|
107
|
+
}
|
|
108
|
+
export interface FrontmatterEmitRevertAction {
|
|
109
|
+
kind: "frontmatter-emit";
|
|
110
|
+
skill: string;
|
|
111
|
+
agent: AgentId;
|
|
112
|
+
target: string;
|
|
113
|
+
}
|
|
114
|
+
export type RevertAction = SkillDirRevertAction | FileWriteRevertAction | ConfigPatchRevertAction | TomlPatchRevertAction | FrontmatterEmitRevertAction;
|
|
115
|
+
export type PlannedChangeVerb = "create-symlink" | "copy-dir" | "write-file" | "patch-config" | "patch-toml" | "emit-frontmatter" | "remove" | "unapply-patch";
|
|
87
116
|
export interface PlannedChange {
|
|
88
117
|
verb: PlannedChangeVerb;
|
|
89
|
-
kind: "skill-dir" | "file-write" | "config-patch";
|
|
118
|
+
kind: "skill-dir" | "file-write" | "config-patch" | "toml-patch" | "frontmatter-emit";
|
|
90
119
|
skill: string;
|
|
91
120
|
agent: AgentId;
|
|
92
121
|
source?: string;
|
|
93
122
|
target: string;
|
|
94
123
|
method?: "symlink" | "copy";
|
|
95
124
|
patch?: Record<string, unknown>;
|
|
125
|
+
frontmatter?: Record<string, unknown>;
|
|
96
126
|
confidence?: Confidence;
|
|
97
127
|
}
|
|
98
128
|
export interface CliOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kuznai/inception-engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
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,6 +47,8 @@
|
|
|
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
|
+
"front-matter": "^4.0.2",
|
|
51
|
+
"smol-toml": "^1.6.1",
|
|
50
52
|
"zod": "^4.0.0"
|
|
51
53
|
},
|
|
52
54
|
"devDependencies": {
|