@agentxm/extension-model 0.38.0 → 0.39.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 +1820 -96
- package/dist/src/unstable/agent-capabilities/catalog.js +2 -1
- package/dist/src/unstable/agent-capabilities/data/agents/augment.d.ts +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/augment.js +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/claude-code.d.ts +21 -3
- package/dist/src/unstable/agent-capabilities/data/agents/claude-code.js +18 -3
- package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.d.ts +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.js +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/codex.d.ts +3 -2
- package/dist/src/unstable/agent-capabilities/data/agents/codex.js +3 -2
- package/dist/src/unstable/agent-capabilities/data/agents/cursor.d.ts +186 -10
- package/dist/src/unstable/agent-capabilities/data/agents/cursor.js +223 -10
- package/dist/src/unstable/agent-capabilities/data/agents/deepagents.d.ts +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/deepagents.js +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.d.ts +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.js +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.d.ts +19 -1
- package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.js +16 -1
- package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.d.ts +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.js +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/index.d.ts +1 -0
- package/dist/src/unstable/agent-capabilities/data/agents/index.js +1 -0
- package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.d.ts +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.js +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/opencode.d.ts +2 -1
- package/dist/src/unstable/agent-capabilities/data/agents/opencode.js +2 -1
- package/dist/src/unstable/agent-capabilities/data/agents/pi.d.ts +105 -6
- package/dist/src/unstable/agent-capabilities/data/agents/pi.js +77 -6
- package/dist/src/unstable/agent-capabilities/data/agents/qoder.d.ts +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/qoder.js +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.d.ts +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.js +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/roo.d.ts +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/roo.js +1 -1
- package/dist/src/unstable/agent-capabilities/data/agents/vscode.d.ts +263 -0
- package/dist/src/unstable/agent-capabilities/data/agents/vscode.js +139 -0
- package/dist/src/unstable/agent-capabilities/derive.d.ts +14 -22
- package/dist/src/unstable/agent-capabilities/derive.js +40 -51
- package/dist/src/unstable/agent-capabilities/identity.d.ts +3 -3
- package/dist/src/unstable/agent-capabilities/identity.js +1 -0
- package/dist/src/unstable/agent-capabilities/schema.d.ts +50 -12
- package/dist/src/unstable/agent-capabilities/schema.js +10 -2
- package/dist/src/unstable/agents/types.d.ts +1 -1
- package/dist/src/unstable/extensions/common.d.ts +17 -3
- package/dist/src/unstable/extensions/common.js +8 -8
- package/dist/src/unstable/extensions/installable-types.d.ts +2 -2
- package/dist/src/unstable/extensions/refs/mcp-server.d.ts +16 -2
- package/dist/src/unstable/extensions/refs/mcp-server.js +12 -1
- package/dist/src/unstable/extensions/refs/ref-base.d.ts +17 -2
- package/dist/src/unstable/extensions/refs/ref-base.js +16 -1
- package/dist/src/unstable/extensions/refs/skill.d.ts +14 -2
- package/dist/src/unstable/extensions/refs/skill.js +0 -9
- package/dist/src/unstable/hooks/manifest-schema.d.ts +221 -105
- package/dist/src/unstable/hooks/manifest-schema.js +271 -87
- package/dist/src/unstable/hooks/resolution.d.ts +24 -0
- package/dist/src/unstable/hooks/resolution.js +99 -0
- package/dist/src/unstable/sources/http-artifact.d.ts +24 -0
- package/dist/src/unstable/sources/http-artifact.js +46 -0
- package/dist/src/unstable/sources/printer.js +14 -1
- package/dist/src/unstable/sources/source-host-provider.d.ts +3 -0
- package/dist/src/unstable/sources/types.d.ts +16 -6
- package/dist/src/unstable/sources/types.js +2 -0
- package/dist/src/unstable/subagents/manifest-schema.d.ts +48 -18
- package/dist/src/unstable/subagents/manifest-schema.js +85 -18
- package/package.json +10 -2
|
@@ -1,137 +1,243 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* @experimental This API is unstable and may change without notice.
|
|
5
|
-
*/
|
|
1
|
+
/** Native Hook package contract. @experimental */
|
|
2
|
+
import * as Result from "effect/Result";
|
|
6
3
|
import * as Schema from "effect/Schema";
|
|
7
4
|
export declare const HOOK_MANIFEST_FILENAME = "hook.json";
|
|
8
5
|
export declare const HOOK_EXTENSION_DIR = "hooks";
|
|
9
6
|
export declare const HOOK_MANIFEST_SCHEMA_URL = "https://axm.sh/schemas/hook.schema.json";
|
|
10
7
|
export declare const HookRuntimeSchema: Schema.Literals<readonly ["bash", "node", "python"]>;
|
|
11
|
-
/** @experimental */
|
|
12
8
|
export type HookRuntime = Schema.Schema.Type<typeof HookRuntimeSchema>;
|
|
13
|
-
export declare const
|
|
14
|
-
/**
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
readonly tools: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["file.read", "file.write", "file.edit", "shell.exec", "web.fetch", "mcp.call"]>>>;
|
|
9
|
+
export declare const HookPackagePathSchema: Schema.NonEmptyString;
|
|
10
|
+
/** Symbolic references are preserved, never resolved against the author's environment. */
|
|
11
|
+
export declare const HookEnvironmentReferenceSchema: Schema.Struct<{
|
|
12
|
+
readonly env: Schema.NonEmptyString;
|
|
18
13
|
}>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const HookDecisionRequirementSchema: Schema.Union<readonly [Schema.Struct<{
|
|
22
|
-
readonly kind: Schema.Literal<"observe">;
|
|
14
|
+
export declare const HookValueSchema: Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
15
|
+
readonly config: Schema.NonEmptyString;
|
|
23
16
|
}>, Schema.Struct<{
|
|
24
|
-
readonly
|
|
25
|
-
|
|
17
|
+
readonly env: Schema.NonEmptyString;
|
|
18
|
+
}>]>;
|
|
19
|
+
export type HookValue = Schema.Schema.Type<typeof HookValueSchema>;
|
|
20
|
+
export declare const HookConfigurationValueSchema: Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Struct<{
|
|
21
|
+
readonly env: Schema.NonEmptyString;
|
|
22
|
+
}>]>;
|
|
23
|
+
export type HookConfigurationValue = Schema.Schema.Type<typeof HookConfigurationValueSchema>;
|
|
24
|
+
export declare const HookConfigurationValuesSchema: Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.String, Schema.Finite, Schema.Boolean, Schema.Struct<{
|
|
25
|
+
readonly env: Schema.NonEmptyString;
|
|
26
|
+
}>]>>;
|
|
27
|
+
export type HookConfigurationValues = Schema.Schema.Type<typeof HookConfigurationValuesSchema>;
|
|
28
|
+
export declare const HookConfigurationFieldSchema: Schema.Union<readonly [Schema.Struct<{
|
|
29
|
+
readonly type: Schema.Literal<"string">;
|
|
30
|
+
readonly default: Schema.optional<Schema.String>;
|
|
31
|
+
readonly secret: Schema.optional<Schema.Boolean>;
|
|
32
|
+
readonly allowEmpty: Schema.optional<Schema.Boolean>;
|
|
33
|
+
readonly minLength: Schema.optional<Schema.Int>;
|
|
34
|
+
readonly maxLength: Schema.optional<Schema.Int>;
|
|
35
|
+
readonly description: Schema.optional<Schema.NonEmptyString>;
|
|
36
|
+
readonly required: Schema.optional<Schema.Boolean>;
|
|
26
37
|
}>, Schema.Struct<{
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
38
|
+
readonly type: Schema.Literal<"number">;
|
|
39
|
+
readonly default: Schema.optional<Schema.Finite>;
|
|
40
|
+
readonly minimum: Schema.optional<Schema.Finite>;
|
|
41
|
+
readonly maximum: Schema.optional<Schema.Finite>;
|
|
42
|
+
readonly description: Schema.optional<Schema.NonEmptyString>;
|
|
43
|
+
readonly required: Schema.optional<Schema.Boolean>;
|
|
44
|
+
}>, Schema.Struct<{
|
|
45
|
+
readonly type: Schema.Literal<"boolean">;
|
|
46
|
+
readonly default: Schema.optional<Schema.Boolean>;
|
|
47
|
+
readonly description: Schema.optional<Schema.NonEmptyString>;
|
|
48
|
+
readonly required: Schema.optional<Schema.Boolean>;
|
|
49
|
+
}>, Schema.Struct<{
|
|
50
|
+
readonly type: Schema.Literal<"enum">;
|
|
51
|
+
readonly values: Schema.NonEmptyArray<Schema.NonEmptyString>;
|
|
52
|
+
readonly default: Schema.optional<Schema.NonEmptyString>;
|
|
53
|
+
readonly description: Schema.optional<Schema.NonEmptyString>;
|
|
54
|
+
readonly required: Schema.optional<Schema.Boolean>;
|
|
29
55
|
}>]>;
|
|
30
|
-
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
readonly
|
|
56
|
+
export type HookConfigurationField = Schema.Schema.Type<typeof HookConfigurationFieldSchema>;
|
|
57
|
+
export declare const HookBindingRequirementsSchema: Schema.Struct<{
|
|
58
|
+
readonly outcomes: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["allow", "deny", "ask"]>>>;
|
|
59
|
+
readonly operations: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["modify-input", "inject-context", "modify-output", "synthesize", "redact"]>>>;
|
|
34
60
|
}>;
|
|
35
|
-
export declare const
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
readonly
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
61
|
+
export declare const HookCommandHandlerSchema: Schema.Struct<{
|
|
62
|
+
readonly type: Schema.Literal<"command">;
|
|
63
|
+
readonly name: Schema.optional<Schema.NonEmptyString>;
|
|
64
|
+
readonly runtime: Schema.Literals<readonly ["bash", "node", "python"]>;
|
|
65
|
+
readonly entrypoint: Schema.NonEmptyString;
|
|
66
|
+
readonly args: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
67
|
+
readonly config: Schema.NonEmptyString;
|
|
68
|
+
}>, Schema.Struct<{
|
|
69
|
+
readonly env: Schema.NonEmptyString;
|
|
70
|
+
}>]>>>;
|
|
71
|
+
readonly env: Schema.optional<Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
72
|
+
readonly config: Schema.NonEmptyString;
|
|
73
|
+
}>, Schema.Struct<{
|
|
74
|
+
readonly env: Schema.NonEmptyString;
|
|
75
|
+
}>]>>>;
|
|
76
|
+
readonly timeoutMs: Schema.optional<Schema.Int>;
|
|
77
|
+
}>;
|
|
78
|
+
export type HookCommandHandler = Schema.Schema.Type<typeof HookCommandHandlerSchema>;
|
|
79
|
+
export declare const HookEventSchema: Schema.NonEmptyString;
|
|
80
|
+
export type HookEvent = Schema.Schema.Type<typeof HookEventSchema>;
|
|
81
|
+
export declare const HookBindingSchema: Schema.Struct<{
|
|
82
|
+
readonly id: Schema.NonEmptyString;
|
|
83
|
+
readonly event: Schema.NonEmptyString;
|
|
84
|
+
readonly matcher: Schema.optional<Schema.NonEmptyString>;
|
|
85
|
+
readonly handler: Schema.Struct<{
|
|
86
|
+
readonly type: Schema.Literal<"command">;
|
|
87
|
+
readonly name: Schema.optional<Schema.NonEmptyString>;
|
|
88
|
+
readonly runtime: Schema.Literals<readonly ["bash", "node", "python"]>;
|
|
89
|
+
readonly entrypoint: Schema.NonEmptyString;
|
|
90
|
+
readonly args: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
91
|
+
readonly config: Schema.NonEmptyString;
|
|
47
92
|
}>, Schema.Struct<{
|
|
48
|
-
readonly
|
|
49
|
-
|
|
93
|
+
readonly env: Schema.NonEmptyString;
|
|
94
|
+
}>]>>>;
|
|
95
|
+
readonly env: Schema.optional<Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
96
|
+
readonly config: Schema.NonEmptyString;
|
|
50
97
|
}>, Schema.Struct<{
|
|
51
|
-
readonly
|
|
52
|
-
|
|
53
|
-
|
|
98
|
+
readonly env: Schema.NonEmptyString;
|
|
99
|
+
}>]>>>;
|
|
100
|
+
readonly timeoutMs: Schema.optional<Schema.Int>;
|
|
101
|
+
}>;
|
|
102
|
+
readonly requires: Schema.optional<Schema.Struct<{
|
|
103
|
+
readonly outcomes: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["allow", "deny", "ask"]>>>;
|
|
104
|
+
readonly operations: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["modify-input", "inject-context", "modify-output", "synthesize", "redact"]>>>;
|
|
54
105
|
}>>;
|
|
55
106
|
}>;
|
|
56
|
-
export
|
|
57
|
-
|
|
58
|
-
readonly
|
|
59
|
-
|
|
60
|
-
}>>;
|
|
61
|
-
readonly matcherRaw: Schema.optional<Schema.NonEmptyString>;
|
|
62
|
-
readonly targets: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
63
|
-
readonly matcherRaw: Schema.optional<Schema.NonEmptyString>;
|
|
64
|
-
}>>>;
|
|
107
|
+
export type HookBinding = Schema.Schema.Type<typeof HookBindingSchema>;
|
|
108
|
+
export declare const HookImplementationSchema: Schema.Struct<{
|
|
109
|
+
readonly id: Schema.NonEmptyString;
|
|
110
|
+
readonly protocol: Schema.Literals<readonly ["adal", "fx", "muse-code", "mimo-code", "coder-agents", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "vscode", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>;
|
|
65
111
|
readonly requires: Schema.optional<Schema.Struct<{
|
|
66
|
-
readonly
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
112
|
+
readonly hostVersion: Schema.optional<Schema.brand<Schema.NonEmptyString, "VersionRange">>;
|
|
113
|
+
readonly profiles: Schema.optional<Schema.NonEmptyArray<Schema.NonEmptyString>>;
|
|
114
|
+
readonly platforms: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["darwin", "linux", "win32"]>>>;
|
|
115
|
+
readonly scopes: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["project", "user"]>>>;
|
|
116
|
+
}>>;
|
|
117
|
+
readonly bindings: Schema.NonEmptyArray<Schema.Struct<{
|
|
118
|
+
readonly id: Schema.NonEmptyString;
|
|
119
|
+
readonly event: Schema.NonEmptyString;
|
|
120
|
+
readonly matcher: Schema.optional<Schema.NonEmptyString>;
|
|
121
|
+
readonly handler: Schema.Struct<{
|
|
122
|
+
readonly type: Schema.Literal<"command">;
|
|
123
|
+
readonly name: Schema.optional<Schema.NonEmptyString>;
|
|
124
|
+
readonly runtime: Schema.Literals<readonly ["bash", "node", "python"]>;
|
|
125
|
+
readonly entrypoint: Schema.NonEmptyString;
|
|
126
|
+
readonly args: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
127
|
+
readonly config: Schema.NonEmptyString;
|
|
128
|
+
}>, Schema.Struct<{
|
|
129
|
+
readonly env: Schema.NonEmptyString;
|
|
130
|
+
}>]>>>;
|
|
131
|
+
readonly env: Schema.optional<Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
132
|
+
readonly config: Schema.NonEmptyString;
|
|
133
|
+
}>, Schema.Struct<{
|
|
134
|
+
readonly env: Schema.NonEmptyString;
|
|
135
|
+
}>]>>>;
|
|
136
|
+
readonly timeoutMs: Schema.optional<Schema.Int>;
|
|
137
|
+
}>;
|
|
138
|
+
readonly requires: Schema.optional<Schema.Struct<{
|
|
70
139
|
readonly outcomes: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["allow", "deny", "ask"]>>>;
|
|
71
|
-
}>, Schema.Struct<{
|
|
72
|
-
readonly kind: Schema.Literal<"modify">;
|
|
73
140
|
readonly operations: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["modify-input", "inject-context", "modify-output", "synthesize", "redact"]>>>;
|
|
74
|
-
}
|
|
141
|
+
}>>;
|
|
75
142
|
}>>;
|
|
76
143
|
}>;
|
|
77
|
-
|
|
78
|
-
export
|
|
79
|
-
|
|
80
|
-
readonly
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
readonly
|
|
144
|
+
export type HookImplementation = Schema.Schema.Type<typeof HookImplementationSchema>;
|
|
145
|
+
export declare const HookFixtureSchema: Schema.Struct<{
|
|
146
|
+
readonly id: Schema.NonEmptyString;
|
|
147
|
+
readonly implementation: Schema.NonEmptyString;
|
|
148
|
+
readonly binding: Schema.NonEmptyString;
|
|
149
|
+
readonly input: Schema.NonEmptyString;
|
|
150
|
+
readonly expect: Schema.Struct<{
|
|
151
|
+
readonly exitCode: Schema.Int;
|
|
152
|
+
readonly stdout: Schema.optional<Schema.NonEmptyString>;
|
|
153
|
+
readonly stderr: Schema.optional<Schema.NonEmptyString>;
|
|
154
|
+
}>;
|
|
84
155
|
}>;
|
|
85
|
-
|
|
86
|
-
export type HookCapabilities = Schema.Schema.Type<typeof HookCapabilitiesSchema>;
|
|
87
|
-
/**
|
|
88
|
-
* Schema for hook manifest files (hook.json).
|
|
89
|
-
*
|
|
90
|
-
* Hooks distribute an executable body plus agent event bindings. Install
|
|
91
|
-
* materializes the body under agent_extensions and registers native agent hook
|
|
92
|
-
* settings that invoke the materialized entrypoint.
|
|
93
|
-
*
|
|
94
|
-
* @experimental This API is unstable and may change without notice.
|
|
95
|
-
*/
|
|
156
|
+
export type HookFixture = Schema.Schema.Type<typeof HookFixtureSchema>;
|
|
96
157
|
export declare const HookManifestSchema: Schema.Struct<{
|
|
158
|
+
readonly enhances: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
159
|
+
readonly requires: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
160
|
+
readonly recommendedPacks: Schema.optional<Schema.$Array<Schema.brand<Schema.NonEmptyString, "PackSpec">>>;
|
|
161
|
+
readonly standalone: Schema.optional<Schema.Boolean>;
|
|
97
162
|
readonly type: Schema.Literal<"hook">;
|
|
98
163
|
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
99
164
|
readonly title: Schema.optional<Schema.NonEmptyString>;
|
|
100
|
-
readonly
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
readonly on: Schema.Literals<readonly ["session.start", "prompt.submit", "turn.end", "tool.pre", "tool.post", "subagent.stop", "compaction.pre"]>;
|
|
104
|
-
readonly match: Schema.optional<Schema.Struct<{
|
|
105
|
-
readonly tools: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["file.read", "file.write", "file.edit", "shell.exec", "web.fetch", "mcp.call"]>>>;
|
|
106
|
-
}>>;
|
|
107
|
-
readonly matcherRaw: Schema.optional<Schema.NonEmptyString>;
|
|
108
|
-
readonly targets: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
109
|
-
readonly matcherRaw: Schema.optional<Schema.NonEmptyString>;
|
|
110
|
-
}>>>;
|
|
165
|
+
readonly implementations: Schema.NonEmptyArray<Schema.Struct<{
|
|
166
|
+
readonly id: Schema.NonEmptyString;
|
|
167
|
+
readonly protocol: Schema.Literals<readonly ["adal", "fx", "muse-code", "mimo-code", "coder-agents", "aider-desk", "amp", "antigravity", "antigravity-cli", "augment", "claude-code", "cline", "codearts-agent", "codebuddy", "codemaker", "codestudio", "codex", "command-code", "continue", "cortex", "crush", "cursor", "deepagents", "devin", "dexto", "droid", "firebender", "forgecode", "gemini-cli", "github-copilot-cli", "goose", "grok-cli", "hermes", "ibm-bob", "iflow-cli", "junie", "lingma", "kilo", "kimi-cli", "kiro-cli", "kode", "mcpjam", "minimax-code", "mistral-vibe", "mux", "neovate", "openclaw", "opencode", "openhands", "ona", "pi", "vscode", "pochi", "qoder", "qoder-cn", "qwen-code", "replit", "roo", "rovodev", "tabnine-cli", "trae-cn", "trae", "warp", "windsurf", "zencoder", "zed", "zenflow"]>;
|
|
111
168
|
readonly requires: Schema.optional<Schema.Struct<{
|
|
112
|
-
readonly
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
169
|
+
readonly hostVersion: Schema.optional<Schema.brand<Schema.NonEmptyString, "VersionRange">>;
|
|
170
|
+
readonly profiles: Schema.optional<Schema.NonEmptyArray<Schema.NonEmptyString>>;
|
|
171
|
+
readonly platforms: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["darwin", "linux", "win32"]>>>;
|
|
172
|
+
readonly scopes: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["project", "user"]>>>;
|
|
173
|
+
}>>;
|
|
174
|
+
readonly bindings: Schema.NonEmptyArray<Schema.Struct<{
|
|
175
|
+
readonly id: Schema.NonEmptyString;
|
|
176
|
+
readonly event: Schema.NonEmptyString;
|
|
177
|
+
readonly matcher: Schema.optional<Schema.NonEmptyString>;
|
|
178
|
+
readonly handler: Schema.Struct<{
|
|
179
|
+
readonly type: Schema.Literal<"command">;
|
|
180
|
+
readonly name: Schema.optional<Schema.NonEmptyString>;
|
|
181
|
+
readonly runtime: Schema.Literals<readonly ["bash", "node", "python"]>;
|
|
182
|
+
readonly entrypoint: Schema.NonEmptyString;
|
|
183
|
+
readonly args: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
184
|
+
readonly config: Schema.NonEmptyString;
|
|
185
|
+
}>, Schema.Struct<{
|
|
186
|
+
readonly env: Schema.NonEmptyString;
|
|
187
|
+
}>]>>>;
|
|
188
|
+
readonly env: Schema.optional<Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
189
|
+
readonly config: Schema.NonEmptyString;
|
|
190
|
+
}>, Schema.Struct<{
|
|
191
|
+
readonly env: Schema.NonEmptyString;
|
|
192
|
+
}>]>>>;
|
|
193
|
+
readonly timeoutMs: Schema.optional<Schema.Int>;
|
|
194
|
+
}>;
|
|
195
|
+
readonly requires: Schema.optional<Schema.Struct<{
|
|
116
196
|
readonly outcomes: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["allow", "deny", "ask"]>>>;
|
|
117
|
-
}>, Schema.Struct<{
|
|
118
|
-
readonly kind: Schema.Literal<"modify">;
|
|
119
197
|
readonly operations: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["modify-input", "inject-context", "modify-output", "synthesize", "redact"]>>>;
|
|
120
|
-
}
|
|
198
|
+
}>>;
|
|
121
199
|
}>>;
|
|
122
200
|
}>>;
|
|
123
|
-
readonly
|
|
124
|
-
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
201
|
+
readonly configuration: Schema.optional<Schema.$Record<Schema.NonEmptyString, Schema.Union<readonly [Schema.Struct<{
|
|
202
|
+
readonly type: Schema.Literal<"string">;
|
|
203
|
+
readonly default: Schema.optional<Schema.String>;
|
|
204
|
+
readonly secret: Schema.optional<Schema.Boolean>;
|
|
205
|
+
readonly allowEmpty: Schema.optional<Schema.Boolean>;
|
|
206
|
+
readonly minLength: Schema.optional<Schema.Int>;
|
|
207
|
+
readonly maxLength: Schema.optional<Schema.Int>;
|
|
208
|
+
readonly description: Schema.optional<Schema.NonEmptyString>;
|
|
209
|
+
readonly required: Schema.optional<Schema.Boolean>;
|
|
210
|
+
}>, Schema.Struct<{
|
|
211
|
+
readonly type: Schema.Literal<"number">;
|
|
212
|
+
readonly default: Schema.optional<Schema.Finite>;
|
|
213
|
+
readonly minimum: Schema.optional<Schema.Finite>;
|
|
214
|
+
readonly maximum: Schema.optional<Schema.Finite>;
|
|
215
|
+
readonly description: Schema.optional<Schema.NonEmptyString>;
|
|
216
|
+
readonly required: Schema.optional<Schema.Boolean>;
|
|
217
|
+
}>, Schema.Struct<{
|
|
218
|
+
readonly type: Schema.Literal<"boolean">;
|
|
219
|
+
readonly default: Schema.optional<Schema.Boolean>;
|
|
220
|
+
readonly description: Schema.optional<Schema.NonEmptyString>;
|
|
221
|
+
readonly required: Schema.optional<Schema.Boolean>;
|
|
222
|
+
}>, Schema.Struct<{
|
|
223
|
+
readonly type: Schema.Literal<"enum">;
|
|
224
|
+
readonly values: Schema.NonEmptyArray<Schema.NonEmptyString>;
|
|
225
|
+
readonly default: Schema.optional<Schema.NonEmptyString>;
|
|
226
|
+
readonly description: Schema.optional<Schema.NonEmptyString>;
|
|
227
|
+
readonly required: Schema.optional<Schema.Boolean>;
|
|
228
|
+
}>]>>>;
|
|
229
|
+
readonly assets: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
230
|
+
readonly fixtures: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
231
|
+
readonly id: Schema.NonEmptyString;
|
|
232
|
+
readonly implementation: Schema.NonEmptyString;
|
|
233
|
+
readonly binding: Schema.NonEmptyString;
|
|
234
|
+
readonly input: Schema.NonEmptyString;
|
|
235
|
+
readonly expect: Schema.Struct<{
|
|
236
|
+
readonly exitCode: Schema.Int;
|
|
237
|
+
readonly stdout: Schema.optional<Schema.NonEmptyString>;
|
|
238
|
+
readonly stderr: Schema.optional<Schema.NonEmptyString>;
|
|
239
|
+
}>;
|
|
240
|
+
}>>>;
|
|
135
241
|
readonly publish: Schema.optional<Schema.Struct<{
|
|
136
242
|
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
137
243
|
readonly ignore: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
@@ -170,6 +276,16 @@ export declare const HookManifestSchema: Schema.Struct<{
|
|
|
170
276
|
}>>>;
|
|
171
277
|
readonly $schema: Schema.optional<Schema.String>;
|
|
172
278
|
}>;
|
|
173
|
-
/** @experimental */
|
|
174
279
|
export type HookManifest = Schema.Schema.Type<typeof HookManifestSchema>;
|
|
280
|
+
/** Files required to install and activate any declared implementation. */
|
|
281
|
+
export declare const requiredHookRuntimeFiles: (manifest: HookManifest) => ReadonlyArray<string>;
|
|
282
|
+
/** Source-authoring closure; fixtures may be omitted from a distributed package. */
|
|
283
|
+
export declare const referencedHookPackageFiles: (manifest: HookManifest) => ReadonlyArray<string>;
|
|
284
|
+
export interface HookConfigurationIssue {
|
|
285
|
+
readonly key: string;
|
|
286
|
+
readonly code: "unknown" | "missing" | "invalid";
|
|
287
|
+
readonly message: string;
|
|
288
|
+
}
|
|
289
|
+
/** Explicit consumer values override author defaults; no source objects are mutated. */
|
|
290
|
+
export declare const resolveHookConfiguration: (manifest: Pick<HookManifest, "configuration">, values?: Readonly<Record<string, unknown>>) => Result.Result<Readonly<Record<string, HookConfigurationValue>>, ReadonlyArray<HookConfigurationIssue>>;
|
|
175
291
|
//# sourceMappingURL=manifest-schema.d.ts.map
|