@agentxm/extension-model 0.36.0 → 0.37.3
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/dist/src/unstable/agent-capabilities/catalog.d.ts +19377 -5019
- package/dist/src/unstable/agent-capabilities/data/agents/adal.d.ts +31 -3
- package/dist/src/unstable/agent-capabilities/data/agents/adal.js +27 -3
- package/dist/src/unstable/agent-capabilities/data/agents/aider-desk.d.ts +19 -2
- package/dist/src/unstable/agent-capabilities/data/agents/aider-desk.js +17 -2
- package/dist/src/unstable/agent-capabilities/data/agents/amp.d.ts +57 -5
- package/dist/src/unstable/agent-capabilities/data/agents/amp.js +53 -5
- package/dist/src/unstable/agent-capabilities/data/agents/antigravity-cli.d.ts +68 -6
- package/dist/src/unstable/agent-capabilities/data/agents/antigravity-cli.js +61 -6
- package/dist/src/unstable/agent-capabilities/data/agents/antigravity.d.ts +179 -53
- package/dist/src/unstable/agent-capabilities/data/agents/antigravity.js +152 -42
- package/dist/src/unstable/agent-capabilities/data/agents/augment.d.ts +176 -64
- package/dist/src/unstable/agent-capabilities/data/agents/augment.js +162 -64
- package/dist/src/unstable/agent-capabilities/data/agents/chatgpt.d.ts +3 -1
- package/dist/src/unstable/agent-capabilities/data/agents/chatgpt.js +3 -1
- package/dist/src/unstable/agent-capabilities/data/agents/claude-ai.d.ts +2 -0
- package/dist/src/unstable/agent-capabilities/data/agents/claude-ai.js +2 -0
- package/dist/src/unstable/agent-capabilities/data/agents/claude-code.d.ts +238 -75
- package/dist/src/unstable/agent-capabilities/data/agents/claude-code.js +222 -78
- package/dist/src/unstable/agent-capabilities/data/agents/cline.d.ts +115 -55
- package/dist/src/unstable/agent-capabilities/data/agents/cline.js +100 -47
- package/dist/src/unstable/agent-capabilities/data/agents/codearts-agent.d.ts +140 -63
- package/dist/src/unstable/agent-capabilities/data/agents/codearts-agent.js +123 -52
- package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.d.ts +211 -76
- package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.js +197 -79
- package/dist/src/unstable/agent-capabilities/data/agents/codestudio.d.ts +46 -4
- package/dist/src/unstable/agent-capabilities/data/agents/codestudio.js +40 -4
- package/dist/src/unstable/agent-capabilities/data/agents/codex.d.ts +242 -68
- package/dist/src/unstable/agent-capabilities/data/agents/codex.js +213 -59
- package/dist/src/unstable/agent-capabilities/data/agents/command-code.d.ts +171 -70
- package/dist/src/unstable/agent-capabilities/data/agents/command-code.js +158 -66
- package/dist/src/unstable/agent-capabilities/data/agents/continue.d.ts +79 -7
- package/dist/src/unstable/agent-capabilities/data/agents/continue.js +75 -7
- package/dist/src/unstable/agent-capabilities/data/agents/cortex.d.ts +116 -9
- package/dist/src/unstable/agent-capabilities/data/agents/cortex.js +110 -9
- package/dist/src/unstable/agent-capabilities/data/agents/cowork.d.ts +4 -0
- package/dist/src/unstable/agent-capabilities/data/agents/cowork.js +4 -0
- package/dist/src/unstable/agent-capabilities/data/agents/crush.d.ts +165 -60
- package/dist/src/unstable/agent-capabilities/data/agents/crush.js +151 -54
- package/dist/src/unstable/agent-capabilities/data/agents/cursor.d.ts +230 -55
- package/dist/src/unstable/agent-capabilities/data/agents/cursor.js +205 -51
- package/dist/src/unstable/agent-capabilities/data/agents/deepagents.d.ts +100 -5
- package/dist/src/unstable/agent-capabilities/data/agents/deepagents.js +86 -5
- package/dist/src/unstable/agent-capabilities/data/agents/devin.d.ts +224 -77
- package/dist/src/unstable/agent-capabilities/data/agents/devin.js +203 -70
- package/dist/src/unstable/agent-capabilities/data/agents/dexto.d.ts +28 -2
- package/dist/src/unstable/agent-capabilities/data/agents/dexto.js +26 -2
- package/dist/src/unstable/agent-capabilities/data/agents/droid.d.ts +93 -8
- package/dist/src/unstable/agent-capabilities/data/agents/droid.js +87 -8
- package/dist/src/unstable/agent-capabilities/data/agents/firebender.d.ts +119 -8
- package/dist/src/unstable/agent-capabilities/data/agents/firebender.js +112 -13
- package/dist/src/unstable/agent-capabilities/data/agents/forgecode.d.ts +94 -6
- package/dist/src/unstable/agent-capabilities/data/agents/forgecode.js +82 -6
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-app.d.ts +2 -0
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-app.js +2 -0
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.d.ts +218 -56
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.js +193 -55
- package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.d.ts +201 -66
- package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.js +188 -69
- package/dist/src/unstable/agent-capabilities/data/agents/goose.d.ts +37 -3
- package/dist/src/unstable/agent-capabilities/data/agents/goose.js +34 -5
- package/dist/src/unstable/agent-capabilities/data/agents/grok-cli.d.ts +98 -6
- package/dist/src/unstable/agent-capabilities/data/agents/grok-cli.js +83 -6
- package/dist/src/unstable/agent-capabilities/data/agents/hermes.d.ts +105 -42
- package/dist/src/unstable/agent-capabilities/data/agents/hermes.js +87 -28
- package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.d.ts +173 -61
- package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.js +152 -52
- package/dist/src/unstable/agent-capabilities/data/agents/iflow-cli.d.ts +47 -5
- package/dist/src/unstable/agent-capabilities/data/agents/iflow-cli.js +41 -5
- package/dist/src/unstable/agent-capabilities/data/agents/junie.d.ts +130 -42
- package/dist/src/unstable/agent-capabilities/data/agents/junie.js +121 -39
- package/dist/src/unstable/agent-capabilities/data/agents/kilo.d.ts +187 -65
- package/dist/src/unstable/agent-capabilities/data/agents/kilo.js +169 -62
- package/dist/src/unstable/agent-capabilities/data/agents/kimi-cli.d.ts +147 -60
- package/dist/src/unstable/agent-capabilities/data/agents/kimi-cli.js +134 -53
- package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.d.ts +138 -50
- package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.js +121 -39
- package/dist/src/unstable/agent-capabilities/data/agents/kode.d.ts +45 -5
- package/dist/src/unstable/agent-capabilities/data/agents/kode.js +39 -5
- package/dist/src/unstable/agent-capabilities/data/agents/lingma.d.ts +19 -2
- package/dist/src/unstable/agent-capabilities/data/agents/lingma.js +17 -2
- package/dist/src/unstable/agent-capabilities/data/agents/mcpjam.d.ts +16 -1
- package/dist/src/unstable/agent-capabilities/data/agents/mcpjam.js +14 -1
- package/dist/src/unstable/agent-capabilities/data/agents/mistral-vibe.d.ts +93 -8
- package/dist/src/unstable/agent-capabilities/data/agents/mistral-vibe.js +87 -8
- package/dist/src/unstable/agent-capabilities/data/agents/mux.d.ts +46 -4
- package/dist/src/unstable/agent-capabilities/data/agents/mux.js +40 -4
- package/dist/src/unstable/agent-capabilities/data/agents/neovate.d.ts +111 -59
- package/dist/src/unstable/agent-capabilities/data/agents/neovate.js +97 -50
- package/dist/src/unstable/agent-capabilities/data/agents/ona.d.ts +41 -4
- package/dist/src/unstable/agent-capabilities/data/agents/ona.js +37 -4
- package/dist/src/unstable/agent-capabilities/data/agents/openclaw.d.ts +14 -1
- package/dist/src/unstable/agent-capabilities/data/agents/openclaw.js +12 -1
- package/dist/src/unstable/agent-capabilities/data/agents/opencode.d.ts +338 -20
- package/dist/src/unstable/agent-capabilities/data/agents/opencode.js +289 -22
- package/dist/src/unstable/agent-capabilities/data/agents/openhands.d.ts +53 -4
- package/dist/src/unstable/agent-capabilities/data/agents/openhands.js +49 -4
- package/dist/src/unstable/agent-capabilities/data/agents/pi.d.ts +69 -2
- package/dist/src/unstable/agent-capabilities/data/agents/pi.js +56 -2
- package/dist/src/unstable/agent-capabilities/data/agents/pochi.d.ts +96 -44
- package/dist/src/unstable/agent-capabilities/data/agents/pochi.js +81 -33
- package/dist/src/unstable/agent-capabilities/data/agents/qoder-cn.d.ts +70 -6
- package/dist/src/unstable/agent-capabilities/data/agents/qoder-cn.js +75 -7
- package/dist/src/unstable/agent-capabilities/data/agents/qoder.d.ts +201 -77
- package/dist/src/unstable/agent-capabilities/data/agents/qoder.js +186 -75
- package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.d.ts +169 -57
- package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.js +154 -56
- package/dist/src/unstable/agent-capabilities/data/agents/replit.d.ts +16 -1
- package/dist/src/unstable/agent-capabilities/data/agents/replit.js +14 -1
- package/dist/src/unstable/agent-capabilities/data/agents/roo.d.ts +60 -7
- package/dist/src/unstable/agent-capabilities/data/agents/roo.js +51 -7
- package/dist/src/unstable/agent-capabilities/data/agents/rovodev.d.ts +70 -6
- package/dist/src/unstable/agent-capabilities/data/agents/rovodev.js +64 -6
- package/dist/src/unstable/agent-capabilities/data/agents/tabnine-cli.d.ts +92 -7
- package/dist/src/unstable/agent-capabilities/data/agents/tabnine-cli.js +85 -7
- package/dist/src/unstable/agent-capabilities/data/agents/trae-cn.d.ts +72 -33
- package/dist/src/unstable/agent-capabilities/data/agents/trae-cn.js +64 -29
- package/dist/src/unstable/agent-capabilities/data/agents/trae.d.ts +72 -33
- package/dist/src/unstable/agent-capabilities/data/agents/trae.js +64 -29
- package/dist/src/unstable/agent-capabilities/data/agents/warp.d.ts +31 -3
- package/dist/src/unstable/agent-capabilities/data/agents/warp.js +27 -3
- package/dist/src/unstable/agent-capabilities/data/agents/windsurf.d.ts +126 -41
- package/dist/src/unstable/agent-capabilities/data/agents/windsurf.js +110 -39
- package/dist/src/unstable/agent-capabilities/data/agents/zed.d.ts +31 -3
- package/dist/src/unstable/agent-capabilities/data/agents/zed.js +27 -3
- package/dist/src/unstable/agent-capabilities/data/agents/zencoder.d.ts +41 -5
- package/dist/src/unstable/agent-capabilities/data/agents/zencoder.js +37 -5
- package/dist/src/unstable/agent-capabilities/data/agents/zenflow.d.ts +34 -2
- package/dist/src/unstable/agent-capabilities/data/agents/zenflow.js +31 -4
- package/dist/src/unstable/agent-capabilities/derive.js +36 -57
- package/dist/src/unstable/agent-capabilities/index.d.ts +1 -1
- package/dist/src/unstable/agent-capabilities/index.js +1 -1
- package/dist/src/unstable/agent-capabilities/schema.d.ts +775 -767
- package/dist/src/unstable/agent-capabilities/schema.js +192 -103
- package/dist/src/unstable/agents/registry.d.ts +1 -1
- package/dist/src/unstable/agents/registry.js +1 -13
- package/dist/src/unstable/agents/types.d.ts +16 -48
- package/dist/src/unstable/agents/types.js +2 -2
- package/dist/src/unstable/extensions/common.d.ts +1 -2
- package/dist/src/unstable/extensions/common.js +1 -2
- package/dist/src/unstable/sources/printer.js +7 -1
- package/package.json +3 -3
|
@@ -36,10 +36,32 @@ export declare const zencoderAgent: {
|
|
|
36
36
|
readonly scopes: readonly ["user", "project"];
|
|
37
37
|
readonly standardsCompliance: "full";
|
|
38
38
|
readonly convention: "universal";
|
|
39
|
-
readonly
|
|
40
|
-
|
|
39
|
+
readonly locations: readonly [{
|
|
40
|
+
readonly scope: "project";
|
|
41
|
+
readonly root: "project";
|
|
42
|
+
readonly path: ".agents/skills";
|
|
43
|
+
readonly shape: "directory";
|
|
44
|
+
readonly role: "primary";
|
|
45
|
+
readonly status: "canonical";
|
|
46
|
+
readonly applicability: {
|
|
47
|
+
readonly kind: "always";
|
|
48
|
+
};
|
|
49
|
+
readonly provenance: {
|
|
50
|
+
readonly kind: "capability-sources";
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
readonly scope: "project";
|
|
54
|
+
readonly root: "project";
|
|
41
55
|
readonly path: ".zencoder/skills";
|
|
56
|
+
readonly shape: "directory";
|
|
57
|
+
readonly role: "additional";
|
|
42
58
|
readonly status: "deprecated";
|
|
59
|
+
readonly applicability: {
|
|
60
|
+
readonly kind: "always";
|
|
61
|
+
};
|
|
62
|
+
readonly provenance: {
|
|
63
|
+
readonly kind: "capability-sources";
|
|
64
|
+
};
|
|
43
65
|
}];
|
|
44
66
|
};
|
|
45
67
|
readonly axm: {
|
|
@@ -67,6 +89,8 @@ export declare const zencoderAgent: {
|
|
|
67
89
|
readonly variables: "none";
|
|
68
90
|
readonly defaults: false;
|
|
69
91
|
};
|
|
92
|
+
readonly locations: readonly [];
|
|
93
|
+
readonly entryDialect: null;
|
|
70
94
|
};
|
|
71
95
|
readonly axm: {
|
|
72
96
|
readonly status: "unsupported";
|
|
@@ -128,10 +152,22 @@ export declare const zencoderAgent: {
|
|
|
128
152
|
readonly standardsCompliance: "partial";
|
|
129
153
|
readonly convention: "vendor";
|
|
130
154
|
readonly kind: "rules-dir";
|
|
131
|
-
readonly
|
|
155
|
+
readonly locations: readonly [{
|
|
156
|
+
readonly scope: "project";
|
|
157
|
+
readonly root: "project";
|
|
158
|
+
readonly path: ".zencoder/rules";
|
|
159
|
+
readonly shape: "directory";
|
|
160
|
+
readonly role: "primary";
|
|
161
|
+
readonly status: "canonical";
|
|
162
|
+
readonly applicability: {
|
|
163
|
+
readonly kind: "always";
|
|
164
|
+
};
|
|
165
|
+
readonly provenance: {
|
|
166
|
+
readonly kind: "capability-sources";
|
|
167
|
+
};
|
|
168
|
+
}];
|
|
132
169
|
readonly nestedDiscovery: false;
|
|
133
170
|
readonly importSyntax: null;
|
|
134
|
-
readonly directory: ".zencoder/rules";
|
|
135
171
|
};
|
|
136
172
|
readonly axm: {
|
|
137
173
|
readonly status: "supported";
|
|
@@ -152,7 +188,7 @@ export declare const zencoderAgent: {
|
|
|
152
188
|
readonly sources: readonly ["https://docs.zencoder.ai/llms-full.txt"];
|
|
153
189
|
readonly scopes: readonly ["user"];
|
|
154
190
|
readonly mechanism: readonly ["ui-only"];
|
|
155
|
-
readonly
|
|
191
|
+
readonly locations: readonly [];
|
|
156
192
|
readonly grammar: null;
|
|
157
193
|
readonly prerequisites: readonly [];
|
|
158
194
|
readonly cliFlags: readonly [];
|
|
@@ -28,8 +28,28 @@ export const zencoderAgent = {
|
|
|
28
28
|
scopes: ["user", "project"],
|
|
29
29
|
standardsCompliance: "full",
|
|
30
30
|
convention: "universal",
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
locations: [
|
|
32
|
+
{
|
|
33
|
+
scope: "project",
|
|
34
|
+
root: "project",
|
|
35
|
+
path: ".agents/skills",
|
|
36
|
+
shape: "directory",
|
|
37
|
+
role: "primary",
|
|
38
|
+
status: "canonical",
|
|
39
|
+
applicability: { kind: "always" },
|
|
40
|
+
provenance: { kind: "capability-sources" },
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
scope: "project",
|
|
44
|
+
root: "project",
|
|
45
|
+
path: ".zencoder/skills",
|
|
46
|
+
shape: "directory",
|
|
47
|
+
role: "additional",
|
|
48
|
+
status: "deprecated",
|
|
49
|
+
applicability: { kind: "always" },
|
|
50
|
+
provenance: { kind: "capability-sources" },
|
|
51
|
+
},
|
|
52
|
+
],
|
|
33
53
|
},
|
|
34
54
|
axm: {
|
|
35
55
|
status: "supported",
|
|
@@ -52,6 +72,8 @@ export const zencoderAgent = {
|
|
|
52
72
|
variables: "none",
|
|
53
73
|
defaults: false,
|
|
54
74
|
},
|
|
75
|
+
locations: [],
|
|
76
|
+
entryDialect: null,
|
|
55
77
|
},
|
|
56
78
|
axm: {
|
|
57
79
|
status: "unsupported",
|
|
@@ -101,10 +123,20 @@ export const zencoderAgent = {
|
|
|
101
123
|
standardsCompliance: "partial",
|
|
102
124
|
convention: "vendor",
|
|
103
125
|
kind: "rules-dir",
|
|
104
|
-
|
|
126
|
+
locations: [
|
|
127
|
+
{
|
|
128
|
+
scope: "project",
|
|
129
|
+
root: "project",
|
|
130
|
+
path: ".zencoder/rules",
|
|
131
|
+
shape: "directory",
|
|
132
|
+
role: "primary",
|
|
133
|
+
status: "canonical",
|
|
134
|
+
applicability: { kind: "always" },
|
|
135
|
+
provenance: { kind: "capability-sources" },
|
|
136
|
+
},
|
|
137
|
+
],
|
|
105
138
|
nestedDiscovery: false,
|
|
106
139
|
importSyntax: null,
|
|
107
|
-
directory: ".zencoder/rules",
|
|
108
140
|
},
|
|
109
141
|
axm: {
|
|
110
142
|
status: "supported",
|
|
@@ -121,7 +153,7 @@ export const zencoderAgent = {
|
|
|
121
153
|
sources: ["https://docs.zencoder.ai/llms-full.txt"],
|
|
122
154
|
scopes: ["user"],
|
|
123
155
|
mechanism: ["ui-only"],
|
|
124
|
-
|
|
156
|
+
locations: [],
|
|
125
157
|
grammar: null,
|
|
126
158
|
prerequisites: [],
|
|
127
159
|
cliFlags: [],
|
|
@@ -41,13 +41,45 @@ export declare const zenflowAgent: {
|
|
|
41
41
|
readonly scopes: readonly ["user", "project"];
|
|
42
42
|
readonly standardsCompliance: "full";
|
|
43
43
|
readonly convention: "universal";
|
|
44
|
-
readonly
|
|
45
|
-
|
|
44
|
+
readonly locations: readonly [{
|
|
45
|
+
readonly scope: "project";
|
|
46
|
+
readonly root: "project";
|
|
47
|
+
readonly path: ".agents/skills";
|
|
48
|
+
readonly shape: "directory";
|
|
49
|
+
readonly role: "primary";
|
|
50
|
+
readonly status: "canonical";
|
|
51
|
+
readonly applicability: {
|
|
52
|
+
readonly kind: "always";
|
|
53
|
+
};
|
|
54
|
+
readonly provenance: {
|
|
55
|
+
readonly kind: "capability-sources";
|
|
56
|
+
};
|
|
57
|
+
}, {
|
|
58
|
+
readonly scope: "project";
|
|
59
|
+
readonly root: "project";
|
|
46
60
|
readonly path: ".claude/skills";
|
|
61
|
+
readonly shape: "directory";
|
|
62
|
+
readonly role: "additional";
|
|
47
63
|
readonly status: "compat";
|
|
64
|
+
readonly applicability: {
|
|
65
|
+
readonly kind: "always";
|
|
66
|
+
};
|
|
67
|
+
readonly provenance: {
|
|
68
|
+
readonly kind: "capability-sources";
|
|
69
|
+
};
|
|
48
70
|
}, {
|
|
71
|
+
readonly scope: "project";
|
|
72
|
+
readonly root: "project";
|
|
49
73
|
readonly path: ".zencoder/skills";
|
|
74
|
+
readonly shape: "directory";
|
|
75
|
+
readonly role: "additional";
|
|
50
76
|
readonly status: "deprecated";
|
|
77
|
+
readonly applicability: {
|
|
78
|
+
readonly kind: "always";
|
|
79
|
+
};
|
|
80
|
+
readonly provenance: {
|
|
81
|
+
readonly kind: "capability-sources";
|
|
82
|
+
};
|
|
51
83
|
}];
|
|
52
84
|
};
|
|
53
85
|
readonly axm: {
|
|
@@ -23,10 +23,37 @@ export const zenflowAgent = {
|
|
|
23
23
|
scopes: ["user", "project"],
|
|
24
24
|
standardsCompliance: "full",
|
|
25
25
|
convention: "universal",
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
locations: [
|
|
27
|
+
{
|
|
28
|
+
scope: "project",
|
|
29
|
+
root: "project",
|
|
30
|
+
path: ".agents/skills",
|
|
31
|
+
shape: "directory",
|
|
32
|
+
role: "primary",
|
|
33
|
+
status: "canonical",
|
|
34
|
+
applicability: { kind: "always" },
|
|
35
|
+
provenance: { kind: "capability-sources" },
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
scope: "project",
|
|
39
|
+
root: "project",
|
|
40
|
+
path: ".claude/skills",
|
|
41
|
+
shape: "directory",
|
|
42
|
+
role: "additional",
|
|
43
|
+
status: "compat",
|
|
44
|
+
applicability: { kind: "always" },
|
|
45
|
+
provenance: { kind: "capability-sources" },
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
scope: "project",
|
|
49
|
+
root: "project",
|
|
50
|
+
path: ".zencoder/skills",
|
|
51
|
+
shape: "directory",
|
|
52
|
+
role: "additional",
|
|
53
|
+
status: "deprecated",
|
|
54
|
+
applicability: { kind: "always" },
|
|
55
|
+
provenance: { kind: "capability-sources" },
|
|
56
|
+
},
|
|
30
57
|
],
|
|
31
58
|
},
|
|
32
59
|
axm: { status: "supported", lastVerified: "2026-08-05", writer: null },
|
|
@@ -48,20 +48,17 @@ const deriveAgentId = (agent) => {
|
|
|
48
48
|
return agent.id;
|
|
49
49
|
throw new Error(`Cannot derive filesystem descriptor for non-configurable agent: ${agent.id}`);
|
|
50
50
|
};
|
|
51
|
-
const firstPathSegment = (path) => path.split("/")
|
|
51
|
+
const firstPathSegment = (path) => path.split("/").find((segment) => segment.length > 0);
|
|
52
52
|
const deriveRootDir = (agent) => agent.rootDir === null
|
|
53
53
|
? undefined
|
|
54
54
|
: agent.rootDir ||
|
|
55
|
-
("
|
|
56
|
-
? firstPathSegment(agent.capabilities.skill.native.
|
|
55
|
+
("locations" in agent.capabilities.skill.native
|
|
56
|
+
? firstPathSegment(agent.capabilities.skill.native.locations.find((location) => location.scope === "project" && location.role === "primary")?.path ?? "")
|
|
57
57
|
: undefined);
|
|
58
58
|
/** @experimental This API is unstable and may change without notice. */
|
|
59
59
|
export const deriveSkillConvention = (directory) => directory === ".agents/skills" || directory.startsWith(".agents/skills/")
|
|
60
60
|
? "universal"
|
|
61
61
|
: "vendor";
|
|
62
|
-
const deriveAdditionalSkillReadPaths = (agent) => "additionalReadPaths" in agent.capabilities.skill.native
|
|
63
|
-
? (agent.capabilities.skill.native.additionalReadPaths ?? [])
|
|
64
|
-
: [];
|
|
65
62
|
const detectionMarkerKey = (marker) => marker.kind === "executable" ? `executable:${marker.name}` : `${marker.kind}:${marker.path}`;
|
|
66
63
|
const fileMarker = (path) => ({
|
|
67
64
|
kind: "file",
|
|
@@ -74,10 +71,13 @@ const appendMarker = (markers, marker) => {
|
|
|
74
71
|
};
|
|
75
72
|
const appendFileMarkers = (markersByScope, locations) => {
|
|
76
73
|
for (const location of locations) {
|
|
77
|
-
|
|
74
|
+
if (location.shape !== "file" ||
|
|
75
|
+
location.applicability.kind !== "always" ||
|
|
76
|
+
location.root === "xdg-config")
|
|
77
|
+
continue;
|
|
78
|
+
appendMarker(markersByScope[location.scope], fileMarker(location.root === "home" ? `~/${location.path}` : location.path));
|
|
78
79
|
}
|
|
79
80
|
};
|
|
80
|
-
const hasConfigFiles = (capability) => "configFiles" in capability;
|
|
81
81
|
const deriveDetection = (agent, rootDir) => {
|
|
82
82
|
const projectMarkers = new Map();
|
|
83
83
|
const userMarkers = new Map();
|
|
@@ -93,18 +93,18 @@ const deriveDetection = (agent, rootDir) => {
|
|
|
93
93
|
note: null,
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
if (hasConfigFiles(agent.permissions.native)) {
|
|
106
|
-
appendFileMarkers(markersByScope, agent.permissions.native.configFiles);
|
|
96
|
+
for (const [kind, capability] of Object.entries(agent.capabilities)) {
|
|
97
|
+
if (kind !== "mcp-server" && kind !== "hook")
|
|
98
|
+
continue;
|
|
99
|
+
if (!("locations" in capability.native))
|
|
100
|
+
continue;
|
|
101
|
+
const locations = kind === "mcp-server"
|
|
102
|
+
? capability.native.locations.filter((location) => !("attribution" in location) || location.attribution !== "shared")
|
|
103
|
+
: capability.native.locations;
|
|
104
|
+
appendFileMarkers(markersByScope, locations);
|
|
107
105
|
}
|
|
106
|
+
if ("locations" in agent.permissions.native)
|
|
107
|
+
appendFileMarkers(markersByScope, agent.permissions.native.locations);
|
|
108
108
|
for (const marker of agent.detection.project.markers) {
|
|
109
109
|
appendMarker(projectMarkers, marker);
|
|
110
110
|
}
|
|
@@ -120,48 +120,27 @@ const deriveDetection = (agent, rootDir) => {
|
|
|
120
120
|
};
|
|
121
121
|
const deriveSubagentsDescriptor = (agent) => {
|
|
122
122
|
const subagents = agent.capabilities.subagent;
|
|
123
|
-
if (!
|
|
124
|
-
return undefined;
|
|
125
|
-
if (!("directory" in subagents.native))
|
|
123
|
+
if (!("locations" in subagents.native))
|
|
126
124
|
return undefined;
|
|
127
125
|
return {
|
|
128
|
-
|
|
126
|
+
locations: subagents.native.locations,
|
|
129
127
|
scopes: subagents.native.scopes,
|
|
130
|
-
|
|
128
|
+
writerSupported: isCapabilitySupported(subagents),
|
|
131
129
|
};
|
|
132
130
|
};
|
|
133
131
|
const deriveInstructionsDescriptor = (agent) => {
|
|
134
132
|
const instructions = agent.instructions;
|
|
135
|
-
if (!
|
|
133
|
+
if (!("kind" in instructions.native))
|
|
136
134
|
return undefined;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
if (file === undefined)
|
|
147
|
-
return undefined;
|
|
148
|
-
return {
|
|
149
|
-
kind: "own-file",
|
|
150
|
-
file,
|
|
151
|
-
...(instructions.native.importSyntax === null
|
|
152
|
-
? {}
|
|
153
|
-
: { importSyntax: instructions.native.importSyntax }),
|
|
154
|
-
...rulesDir,
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
case "rules-dir": {
|
|
158
|
-
return {
|
|
159
|
-
kind: "rules-dir",
|
|
160
|
-
dir: instructions.native.directory,
|
|
161
|
-
format: "frontmatter",
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
}
|
|
135
|
+
return {
|
|
136
|
+
kind: instructions.native.kind,
|
|
137
|
+
locations: instructions.native.locations,
|
|
138
|
+
scopes: instructions.native.scopes,
|
|
139
|
+
writerSupported: isCapabilitySupported(instructions),
|
|
140
|
+
...(instructions.native.importSyntax === null
|
|
141
|
+
? {}
|
|
142
|
+
: { importSyntax: instructions.native.importSyntax }),
|
|
143
|
+
};
|
|
165
144
|
};
|
|
166
145
|
/** @experimental This API is unstable and may change without notice. */
|
|
167
146
|
export const deriveAgentDescriptor = (agent) => {
|
|
@@ -169,11 +148,11 @@ export const deriveAgentDescriptor = (agent) => {
|
|
|
169
148
|
const instructions = deriveInstructionsDescriptor(agent);
|
|
170
149
|
const rootDir = deriveRootDir(agent);
|
|
171
150
|
const detection = deriveDetection(agent, rootDir);
|
|
172
|
-
const skills =
|
|
173
|
-
"directory" in agent.capabilities.skill.native
|
|
151
|
+
const skills = "locations" in agent.capabilities.skill.native
|
|
174
152
|
? {
|
|
175
|
-
|
|
176
|
-
|
|
153
|
+
locations: agent.capabilities.skill.native.locations,
|
|
154
|
+
scopes: agent.capabilities.skill.native.scopes,
|
|
155
|
+
writerSupported: isCapabilitySupported(agent.capabilities.skill),
|
|
177
156
|
}
|
|
178
157
|
: undefined;
|
|
179
158
|
return {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @experimental All exports from this module are unstable and may change without notice.
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
export { AgentIdFromYamlSchema, AgentCapabilitiesSchema, AgentInterfaceSchema, AgentLifecycleSchema, AgentLifecycleStateSchema, AgentSchema, ActiveAxmSupportSchema, AvailabilitySchema, AxmSupportSchema, CANONICAL_HOOK_EVENTS, CANONICAL_HOOK_EVENT_IDS, CANONICAL_HOOK_TOOL_IDS, CapabilityTargetingEntrySchema, CapabilityTargetingSchema, CanonicalHookEventIdSchema, CanonicalHookEventSchema, CanonicalHookToolIdSchema, ConfigFileFormatSchema,
|
|
7
|
+
export { AgentIdFromYamlSchema, AgentCapabilitiesSchema, AgentInterfaceSchema, AgentLifecycleSchema, AgentLifecycleStateSchema, AgentSchema, ActiveAxmSupportSchema, AvailabilitySchema, AxmSupportSchema, CANONICAL_HOOK_EVENTS, CANONICAL_HOOK_EVENT_IDS, CANONICAL_HOOK_TOOL_IDS, CapabilityTargetingEntrySchema, CapabilityTargetingSchema, CanonicalHookEventIdSchema, CanonicalHookEventSchema, CanonicalHookToolIdSchema, ConfigFileFormatSchema, NativeConfigReadLocationSchema, ConventionSchema, DetectionMarkerSchema, DetectionSchema, DetectionSignalSchema, InactiveAxmSupportSchema, LastVerifiedDateSchema, HookBlockOutcomeSchema, HookCommandNameSerializationSchema, HookDecisionCapabilitySchema, HookEventMappingSchema, HookEntryDialectSchema, HookEventTierSchema, HookMatcherKindSchema, HookMatcherSerializationSchema, HookMatcherSchema, HookMechanismFamilySchema, HookModifyOperationSchema, HookTimeoutSerializationSchema, HookToolMappingSchema, HostedInstallArtifactSchema, HostedInstallDeliverySchema, HostedInstallTargetSchema, McpEnvExpansionSchema, McpExtensionCapabilitySchema, McpEntryDialectSchema, McpActivationFieldRepresentationSchema, McpActivationFieldSchema, McpTypeFieldRepresentationSchema, McpTypeFieldSchema, McpTransportSchema, NativeCapabilityBaseSchema, NativeReadLocationSchema, PermissionCliFlagSchema, PermissionGrammarSchema, PermissionGrammarStyleSchema, PermissionGrantSchema, PermissionMechanismSchema, PermissionPrerequisiteSchema, PermissionsExtensionCapabilitySchema, PluginDescriptorSchema, PluginDetectionConfigKeySchema, PluginDetectionPathSchema, PluginDetectionSchema, PluginDistributionMechanismSchema, PluginDistributionSchema, ProvenanceSchema, RuleInstructionsImportSyntaxSchema, RuleInstructionsKindSchema, RulesExtensionCapabilitySchema, ScopeSchema, ScopeDetectionSchema, SkillsExtensionCapabilitySchema, StandardsComplianceSchema, SubagentsExtensionCapabilitySchema, SUPPORTED_AXM_SUPPORT, VendorStatusSchema, type Agent, type AgentCapabilities, type AgentExtensionCapability, type ActiveAxmSupport, type AgentIdFromYaml, type AgentInterface, type AgentLifecycle, type AgentLifecycleState, type Availability, type AxmCapabilityState, type AxmSupport, type CanonicalHookEvent, type CanonicalHookEventId, type CanonicalHookToolId, type ConfigFileFormat, type NativeConfigReadLocation, type Convention, type Detection, type DetectionMarker, type DetectionSignal, type HookBlockOutcome, type HookCommandNameSerialization, type HookDecisionCapability, type HookEventMapping, type HookEventTier, type HookMatcher, type HookMatcherKind, type HookMatcherSerialization, type HookMechanismFamily, type HookModifyOperation, type HookTimeoutSerialization, type HookToolMapping, type HostedInstallArtifact, type HostedInstallDelivery, type HostedInstallTarget, type HooksSerializer, type HooksWriter, type HookEntryDialect, type InactiveAxmSupport, type LastVerifiedDate, type McpEnvExpansion, type McpExtensionCapability, type McpActivationField, type McpActivationFieldRepresentation, type McpConfig, type McpEntryDialect, type McpConfigTarget, type McpTargetAttribution, type McpRemoteDialect, type McpServersPath, type McpStdioDialect, type McpTypeField, type McpTypeFieldRepresentation, type McpTransport, type PermissionCliFlag, type PermissionGrammar, type PermissionGrammarStyle, type PermissionGrant, type PermissionMechanism, type PermissionPrerequisite, type PermissionsExtensionCapability, type NativeCapability, type NativeCapabilityBase, type NativeReadLocation, type PluginDescriptor, type PluginDetection, type PluginDetectionConfigKey, type PluginDetectionPath, type PluginDistribution, type PluginDistributionMechanism, type Provenance, type RuleInstructionsImportSyntax, type RuleInstructionsKind, type RulesExtensionCapability, type Scope, type ScopeDetection, type SkillsExtensionCapability, type StandardsCompliance, type SubagentsExtensionCapability, type VendorStatus, } from "./schema.js";
|
|
8
8
|
export { DocLinkSchema, LEAF_EXTENSION_TYPES, StandardSchema, UrlSchema, type DocLink, type LeafExtensionType, type Standard, type Url, } from "../extension-types/schema.js";
|
|
9
9
|
export { type PerAgentType } from "../extensions/common.js";
|
|
10
10
|
export { STANDARDS } from "../extension-types/standards.js";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @experimental All exports from this module are unstable and may change without notice.
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
export { AgentIdFromYamlSchema, AgentCapabilitiesSchema, AgentInterfaceSchema, AgentLifecycleSchema, AgentLifecycleStateSchema, AgentSchema, ActiveAxmSupportSchema, AvailabilitySchema, AxmSupportSchema, CANONICAL_HOOK_EVENTS, CANONICAL_HOOK_EVENT_IDS, CANONICAL_HOOK_TOOL_IDS, CapabilityTargetingEntrySchema, CapabilityTargetingSchema, CanonicalHookEventIdSchema, CanonicalHookEventSchema, CanonicalHookToolIdSchema, ConfigFileFormatSchema,
|
|
7
|
+
export { AgentIdFromYamlSchema, AgentCapabilitiesSchema, AgentInterfaceSchema, AgentLifecycleSchema, AgentLifecycleStateSchema, AgentSchema, ActiveAxmSupportSchema, AvailabilitySchema, AxmSupportSchema, CANONICAL_HOOK_EVENTS, CANONICAL_HOOK_EVENT_IDS, CANONICAL_HOOK_TOOL_IDS, CapabilityTargetingEntrySchema, CapabilityTargetingSchema, CanonicalHookEventIdSchema, CanonicalHookEventSchema, CanonicalHookToolIdSchema, ConfigFileFormatSchema, NativeConfigReadLocationSchema, ConventionSchema, DetectionMarkerSchema, DetectionSchema, DetectionSignalSchema, InactiveAxmSupportSchema, LastVerifiedDateSchema, HookBlockOutcomeSchema, HookCommandNameSerializationSchema, HookDecisionCapabilitySchema, HookEventMappingSchema, HookEntryDialectSchema, HookEventTierSchema, HookMatcherKindSchema, HookMatcherSerializationSchema, HookMatcherSchema, HookMechanismFamilySchema, HookModifyOperationSchema, HookTimeoutSerializationSchema, HookToolMappingSchema, HostedInstallArtifactSchema, HostedInstallDeliverySchema, HostedInstallTargetSchema, McpEnvExpansionSchema, McpExtensionCapabilitySchema, McpEntryDialectSchema, McpActivationFieldRepresentationSchema, McpActivationFieldSchema, McpTypeFieldRepresentationSchema, McpTypeFieldSchema, McpTransportSchema, NativeCapabilityBaseSchema, NativeReadLocationSchema, PermissionCliFlagSchema, PermissionGrammarSchema, PermissionGrammarStyleSchema, PermissionGrantSchema, PermissionMechanismSchema, PermissionPrerequisiteSchema, PermissionsExtensionCapabilitySchema, PluginDescriptorSchema, PluginDetectionConfigKeySchema, PluginDetectionPathSchema, PluginDetectionSchema, PluginDistributionMechanismSchema, PluginDistributionSchema, ProvenanceSchema, RuleInstructionsImportSyntaxSchema, RuleInstructionsKindSchema, RulesExtensionCapabilitySchema, ScopeSchema, ScopeDetectionSchema, SkillsExtensionCapabilitySchema, StandardsComplianceSchema, SubagentsExtensionCapabilitySchema, SUPPORTED_AXM_SUPPORT, VendorStatusSchema, } from "./schema.js";
|
|
8
8
|
export { DocLinkSchema, LEAF_EXTENSION_TYPES, StandardSchema, UrlSchema, } from "../extension-types/schema.js";
|
|
9
9
|
export {} from "../extensions/common.js";
|
|
10
10
|
export { STANDARDS } from "../extension-types/standards.js";
|