@agentxm/extension-model 0.35.0 → 0.37.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/dist/src/unstable/agent-capabilities/catalog.d.ts +19197 -4977
- 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 +56 -4
- package/dist/src/unstable/agent-capabilities/data/agents/amp.js +52 -4
- 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 +169 -68
- package/dist/src/unstable/agent-capabilities/data/agents/command-code.js +156 -64
- 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 +286 -14
- package/dist/src/unstable/agent-capabilities/data/agents/opencode.js +261 -16
- 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 +196 -72
- package/dist/src/unstable/agent-capabilities/data/agents/qoder.js +182 -72
- 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 +37 -60
- package/dist/src/unstable/agent-capabilities/identity.d.ts +2 -0
- package/dist/src/unstable/agent-capabilities/identity.js +3 -0
- package/dist/src/unstable/agent-capabilities/index.d.ts +2 -2
- package/dist/src/unstable/agent-capabilities/index.js +2 -2
- package/dist/src/unstable/agent-capabilities/schema.d.ts +769 -761
- package/dist/src/unstable/agent-capabilities/schema.js +188 -91
- package/dist/src/unstable/agents/registry.d.ts +3 -17
- package/dist/src/unstable/agents/registry.js +2 -29
- package/dist/src/unstable/agents/types.d.ts +19 -53
- package/dist/src/unstable/agents/types.js +2 -4
- package/dist/src/unstable/extensions/common.d.ts +1 -2
- package/dist/src/unstable/extensions/common.js +1 -2
- package/dist/src/unstable/extensions/name-patterns.d.ts +5 -3
- package/dist/src/unstable/extensions/name-patterns.js +31 -32
- package/dist/src/unstable/path-types.d.ts +6 -0
- package/dist/src/unstable/path-types.js +20 -0
- package/dist/src/unstable/sources/forge-grammar.d.ts +46 -10
- package/dist/src/unstable/sources/forge-grammar.js +153 -33
- package/dist/src/unstable/sources/parser.d.ts +3 -5
- package/dist/src/unstable/sources/parser.js +14 -31
- package/dist/src/unstable/sources/printer.js +16 -35
- package/dist/src/unstable/sources/types.d.ts +1 -93
- package/dist/src/unstable/sources/types.js +1 -48
- package/package.json +3 -3
|
@@ -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 },
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { PER_AGENT_EXTENSION_TYPES } from "../extensions/common.js";
|
|
7
7
|
import { AGENTS } from "./catalog.js";
|
|
8
|
-
import {
|
|
8
|
+
import { isConfigurableAgentId } from "./identity.js";
|
|
9
9
|
import { LEAF_EXTENSION_TYPES } from "../extension-types/schema.js";
|
|
10
10
|
import { SUPPORTED_AXM_SUPPORT, } from "./schema.js";
|
|
11
11
|
import {} from "../extensions/common.js";
|
|
@@ -43,27 +43,22 @@ const capabilityForType = (agent, type) => {
|
|
|
43
43
|
return agent.capabilities[type];
|
|
44
44
|
return undefined;
|
|
45
45
|
};
|
|
46
|
-
const configurableAgentIds = new Set(CONFIGURABLE_AGENT_IDS);
|
|
47
|
-
const isConfigurableAgentId = (id) => configurableAgentIds.has(id);
|
|
48
46
|
const deriveAgentId = (agent) => {
|
|
49
47
|
if (isConfigurableAgentId(agent.id))
|
|
50
48
|
return agent.id;
|
|
51
49
|
throw new Error(`Cannot derive filesystem descriptor for non-configurable agent: ${agent.id}`);
|
|
52
50
|
};
|
|
53
|
-
const firstPathSegment = (path) => path.split("/")
|
|
51
|
+
const firstPathSegment = (path) => path.split("/").find((segment) => segment.length > 0);
|
|
54
52
|
const deriveRootDir = (agent) => agent.rootDir === null
|
|
55
53
|
? undefined
|
|
56
54
|
: agent.rootDir ||
|
|
57
|
-
("
|
|
58
|
-
? 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 ?? "")
|
|
59
57
|
: undefined);
|
|
60
58
|
/** @experimental This API is unstable and may change without notice. */
|
|
61
59
|
export const deriveSkillConvention = (directory) => directory === ".agents/skills" || directory.startsWith(".agents/skills/")
|
|
62
60
|
? "universal"
|
|
63
61
|
: "vendor";
|
|
64
|
-
const deriveAdditionalSkillReadPaths = (agent) => "additionalReadPaths" in agent.capabilities.skill.native
|
|
65
|
-
? (agent.capabilities.skill.native.additionalReadPaths ?? [])
|
|
66
|
-
: [];
|
|
67
62
|
const detectionMarkerKey = (marker) => marker.kind === "executable" ? `executable:${marker.name}` : `${marker.kind}:${marker.path}`;
|
|
68
63
|
const fileMarker = (path) => ({
|
|
69
64
|
kind: "file",
|
|
@@ -76,10 +71,13 @@ const appendMarker = (markers, marker) => {
|
|
|
76
71
|
};
|
|
77
72
|
const appendFileMarkers = (markersByScope, locations) => {
|
|
78
73
|
for (const location of locations) {
|
|
79
|
-
|
|
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));
|
|
80
79
|
}
|
|
81
80
|
};
|
|
82
|
-
const hasConfigFiles = (capability) => "configFiles" in capability;
|
|
83
81
|
const deriveDetection = (agent, rootDir) => {
|
|
84
82
|
const projectMarkers = new Map();
|
|
85
83
|
const userMarkers = new Map();
|
|
@@ -95,18 +93,18 @@ const deriveDetection = (agent, rootDir) => {
|
|
|
95
93
|
note: null,
|
|
96
94
|
});
|
|
97
95
|
}
|
|
98
|
-
const
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
if (hasConfigFiles(agent.permissions.native)) {
|
|
108
|
-
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);
|
|
109
105
|
}
|
|
106
|
+
if ("locations" in agent.permissions.native)
|
|
107
|
+
appendFileMarkers(markersByScope, agent.permissions.native.locations);
|
|
110
108
|
for (const marker of agent.detection.project.markers) {
|
|
111
109
|
appendMarker(projectMarkers, marker);
|
|
112
110
|
}
|
|
@@ -122,48 +120,27 @@ const deriveDetection = (agent, rootDir) => {
|
|
|
122
120
|
};
|
|
123
121
|
const deriveSubagentsDescriptor = (agent) => {
|
|
124
122
|
const subagents = agent.capabilities.subagent;
|
|
125
|
-
if (!
|
|
126
|
-
return undefined;
|
|
127
|
-
if (!("directory" in subagents.native))
|
|
123
|
+
if (!("locations" in subagents.native))
|
|
128
124
|
return undefined;
|
|
129
125
|
return {
|
|
130
|
-
|
|
126
|
+
locations: subagents.native.locations,
|
|
131
127
|
scopes: subagents.native.scopes,
|
|
132
|
-
|
|
128
|
+
writerSupported: isCapabilitySupported(subagents),
|
|
133
129
|
};
|
|
134
130
|
};
|
|
135
131
|
const deriveInstructionsDescriptor = (agent) => {
|
|
136
132
|
const instructions = agent.instructions;
|
|
137
|
-
if (!
|
|
133
|
+
if (!("kind" in instructions.native))
|
|
138
134
|
return undefined;
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
if (file === undefined)
|
|
149
|
-
return undefined;
|
|
150
|
-
return {
|
|
151
|
-
kind: "own-file",
|
|
152
|
-
file,
|
|
153
|
-
...(instructions.native.importSyntax === null
|
|
154
|
-
? {}
|
|
155
|
-
: { importSyntax: instructions.native.importSyntax }),
|
|
156
|
-
...rulesDir,
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
case "rules-dir": {
|
|
160
|
-
return {
|
|
161
|
-
kind: "rules-dir",
|
|
162
|
-
dir: instructions.native.directory,
|
|
163
|
-
format: "frontmatter",
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
}
|
|
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
|
+
};
|
|
167
144
|
};
|
|
168
145
|
/** @experimental This API is unstable and may change without notice. */
|
|
169
146
|
export const deriveAgentDescriptor = (agent) => {
|
|
@@ -171,11 +148,11 @@ export const deriveAgentDescriptor = (agent) => {
|
|
|
171
148
|
const instructions = deriveInstructionsDescriptor(agent);
|
|
172
149
|
const rootDir = deriveRootDir(agent);
|
|
173
150
|
const detection = deriveDetection(agent, rootDir);
|
|
174
|
-
const skills =
|
|
175
|
-
"directory" in agent.capabilities.skill.native
|
|
151
|
+
const skills = "locations" in agent.capabilities.skill.native
|
|
176
152
|
? {
|
|
177
|
-
|
|
178
|
-
|
|
153
|
+
locations: agent.capabilities.skill.native.locations,
|
|
154
|
+
scopes: agent.capabilities.skill.native.scopes,
|
|
155
|
+
writerSupported: isCapabilitySupported(agent.capabilities.skill),
|
|
179
156
|
}
|
|
180
157
|
: undefined;
|
|
181
158
|
return {
|
|
@@ -5,6 +5,8 @@ export declare const CONFIGURABLE_AGENT_IDS: readonly ["adal", "aider-desk", "am
|
|
|
5
5
|
/** @experimental This API is unstable and may change without notice. */
|
|
6
6
|
export type ConfigurableAgentId = (typeof CONFIGURABLE_AGENT_IDS)[number];
|
|
7
7
|
/** @experimental This API is unstable and may change without notice. */
|
|
8
|
+
export declare const isConfigurableAgentId: (id: string) => id is ConfigurableAgentId;
|
|
9
|
+
/** @experimental This API is unstable and may change without notice. */
|
|
8
10
|
export declare const HOSTED_AGENT_IDS: readonly ["chatgpt", "claude-ai", "cowork", "gemini-app"];
|
|
9
11
|
/** @experimental This API is unstable and may change without notice. */
|
|
10
12
|
export type HostedAgentId = (typeof HOSTED_AGENT_IDS)[number];
|
|
@@ -65,6 +65,9 @@ export const CONFIGURABLE_AGENT_IDS = [
|
|
|
65
65
|
"zed",
|
|
66
66
|
"zenflow",
|
|
67
67
|
];
|
|
68
|
+
const configurableAgentIdSet = new Set(CONFIGURABLE_AGENT_IDS);
|
|
69
|
+
/** @experimental This API is unstable and may change without notice. */
|
|
70
|
+
export const isConfigurableAgentId = (id) => configurableAgentIdSet.has(id);
|
|
68
71
|
/** @experimental This API is unstable and may change without notice. */
|
|
69
72
|
export const HOSTED_AGENT_IDS = ["chatgpt", "claude-ai", "cowork", "gemini-app"];
|
|
70
73
|
/** @experimental This API is unstable and may change without notice. */
|
|
@@ -4,13 +4,13 @@
|
|
|
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 McpServersKey, 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";
|
|
11
11
|
export { CAPABILITY_VERIFICATION_BUDGET_DAYS, capabilityVerificationAgeReport, type AgentCapabilitySlot, type CapabilityVerificationAge, } from "./verification.js";
|
|
12
12
|
export { agentCapabilityStatus, agentSupportsType, axmIntegrationStatus, canonicalCoverage, deriveAgentDescriptor, deriveSkillConvention, deriveHookPortability, getSupportedAgentsForExtension, getSupportedAgentsForExtensionType, getSupportedAgentsForExtensionTypes, getSupportedExtensionTypesForAgent, isCapabilitySupported, isLeafExtensionType, listCapabilities, installable, toNativeAgent, type AgentCapabilityStatus, type AxmIntegrationStatus, type CapabilityListing, type ExtensionCompatibilityInput, type HookDecisionKind, type HookDecisionRequirement, type HookInstallabilityVerdict, type HookInstallBinding, type HookPortabilityRequirement, type HookPortabilityVerdict, type NativeAgent, type NativeAgentCapabilities, } from "./derive.js";
|
|
13
13
|
export { AGENTS, AGENTS_BY_ID, CONFIGURABLE_AGENTS_BY_ID, HOSTED_AGENTS_BY_ID } from "./catalog.js";
|
|
14
|
-
export { AGENT_IDS, AgentIdSchema, CONFIGURABLE_AGENT_IDS, HOSTED_AGENT_IDS, type AgentId, type ConfigurableAgentId, type HostedAgentId, } from "./identity.js";
|
|
14
|
+
export { AGENT_IDS, AgentIdSchema, CONFIGURABLE_AGENT_IDS, HOSTED_AGENT_IDS, isConfigurableAgentId, type AgentId, type ConfigurableAgentId, type HostedAgentId, } from "./identity.js";
|
|
15
15
|
export { agentById } from "./lookup.js";
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -4,13 +4,13 @@
|
|
|
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";
|
|
11
11
|
export { CAPABILITY_VERIFICATION_BUDGET_DAYS, capabilityVerificationAgeReport, } from "./verification.js";
|
|
12
12
|
export { agentCapabilityStatus, agentSupportsType, axmIntegrationStatus, canonicalCoverage, deriveAgentDescriptor, deriveSkillConvention, deriveHookPortability, getSupportedAgentsForExtension, getSupportedAgentsForExtensionType, getSupportedAgentsForExtensionTypes, getSupportedExtensionTypesForAgent, isCapabilitySupported, isLeafExtensionType, listCapabilities, installable, toNativeAgent, } from "./derive.js";
|
|
13
13
|
export { AGENTS, AGENTS_BY_ID, CONFIGURABLE_AGENTS_BY_ID, HOSTED_AGENTS_BY_ID } from "./catalog.js";
|
|
14
|
-
export { AGENT_IDS, AgentIdSchema, CONFIGURABLE_AGENT_IDS, HOSTED_AGENT_IDS, } from "./identity.js";
|
|
14
|
+
export { AGENT_IDS, AgentIdSchema, CONFIGURABLE_AGENT_IDS, HOSTED_AGENT_IDS, isConfigurableAgentId, } from "./identity.js";
|
|
15
15
|
export { agentById } from "./lookup.js";
|
|
16
16
|
//# sourceMappingURL=index.js.map
|