@enactprotocol/shared 2.1.22 → 2.1.24
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/execution/command.d.ts +38 -4
- package/dist/execution/command.d.ts.map +1 -1
- package/dist/execution/command.js +42 -8
- package/dist/execution/command.js.map +1 -1
- package/dist/execution/index.d.ts +1 -1
- package/dist/execution/index.d.ts.map +1 -1
- package/dist/execution/index.js.map +1 -1
- package/dist/execution/types.d.ts +6 -0
- package/dist/execution/types.d.ts.map +1 -1
- package/dist/manifest/index.d.ts +2 -2
- package/dist/manifest/index.d.ts.map +1 -1
- package/dist/manifest/index.js +1 -1
- package/dist/manifest/index.js.map +1 -1
- package/dist/manifest/loader.d.ts +14 -4
- package/dist/manifest/loader.d.ts.map +1 -1
- package/dist/manifest/loader.js +12 -8
- package/dist/manifest/loader.js.map +1 -1
- package/dist/manifest/validator.d.ts +21 -4
- package/dist/manifest/validator.d.ts.map +1 -1
- package/dist/manifest/validator.js +72 -47
- package/dist/manifest/validator.js.map +1 -1
- package/dist/resolver.d.ts +3 -0
- package/dist/resolver.d.ts.map +1 -1
- package/dist/resolver.js +12 -5
- package/dist/resolver.js.map +1 -1
- package/package.json +2 -2
- package/src/execution/command.ts +58 -7
- package/src/execution/index.ts +1 -0
- package/src/execution/types.ts +6 -0
- package/src/manifest/index.ts +3 -0
- package/src/manifest/loader.ts +29 -9
- package/src/manifest/validator.ts +102 -57
- package/src/resolver.ts +18 -6
- package/tests/execution/command.test.ts +231 -0
- package/tests/manifest/validator.test.ts +77 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Handles ${parameter} substitution in command templates with proper escaping.
|
|
5
5
|
*
|
|
6
|
+
* ## Parameter Recognition
|
|
7
|
+
*
|
|
8
|
+
* Only `${...}` patterns that match parameters defined in the tool's inputSchema
|
|
9
|
+
* are substituted. Other `${...}` patterns (like bash variables, arrays, etc.)
|
|
10
|
+
* are passed through unchanged to the shell.
|
|
11
|
+
*
|
|
12
|
+
* This allows natural use of shell syntax:
|
|
13
|
+
* - `${name}` - Substituted if "name" is in inputSchema
|
|
14
|
+
* - `${MY_VAR}` - Passed through to bash (not in inputSchema)
|
|
15
|
+
* - `${array[$i]}` - Passed through to bash (not in inputSchema)
|
|
16
|
+
*
|
|
6
17
|
* ## Quoting Behavior
|
|
7
18
|
*
|
|
8
19
|
* Enact automatically applies shell-escaping (quoting) to parameter values
|
|
@@ -26,6 +37,17 @@
|
|
|
26
37
|
* 3. Emit a warning to help tool authors fix their templates
|
|
27
38
|
*/
|
|
28
39
|
import type { InterpolationOptions, ParsedCommand } from "./types";
|
|
40
|
+
/**
|
|
41
|
+
* Options for parsing a command template
|
|
42
|
+
*/
|
|
43
|
+
export interface ParseCommandOptions {
|
|
44
|
+
/**
|
|
45
|
+
* Set of known parameter names from the inputSchema.
|
|
46
|
+
* Only ${...} patterns matching these names will be treated as parameters.
|
|
47
|
+
* If not provided, ALL ${...} patterns are treated as parameters (legacy behavior).
|
|
48
|
+
*/
|
|
49
|
+
knownParameters?: Set<string>;
|
|
50
|
+
}
|
|
29
51
|
/**
|
|
30
52
|
* Parse a command template into tokens
|
|
31
53
|
*
|
|
@@ -33,10 +55,15 @@ import type { InterpolationOptions, ParsedCommand } from "./types";
|
|
|
33
55
|
* - Parameters with modifiers: ${param:raw}
|
|
34
56
|
* - Parameters surrounded by quotes: '${param}' or "${param}"
|
|
35
57
|
*
|
|
58
|
+
* When knownParameters is provided, only ${...} patterns matching known parameter
|
|
59
|
+
* names are treated as parameters. Other patterns are kept as literals, allowing
|
|
60
|
+
* natural shell syntax like ${MY_VAR} or ${array[$i]} to pass through.
|
|
61
|
+
*
|
|
36
62
|
* @param command - Command template with ${parameter} placeholders
|
|
63
|
+
* @param options - Parse options including knownParameters
|
|
37
64
|
* @returns Parsed command with tokens and parameter list
|
|
38
65
|
*/
|
|
39
|
-
export declare function parseCommand(command: string): ParsedCommand;
|
|
66
|
+
export declare function parseCommand(command: string, options?: ParseCommandOptions): ParsedCommand;
|
|
40
67
|
/**
|
|
41
68
|
* Shell-escape a value for safe inclusion in a command
|
|
42
69
|
*
|
|
@@ -70,6 +97,9 @@ export declare function valueToString(value: unknown, jsonifyObjects?: boolean):
|
|
|
70
97
|
* - Raw parameters: `${param:raw}` - no quoting applied
|
|
71
98
|
* - Quoted parameters: `'${param}'` - quotes stripped, warning emitted
|
|
72
99
|
*
|
|
100
|
+
* When knownParameters is provided in options, only matching ${...} patterns
|
|
101
|
+
* are substituted. Other patterns pass through unchanged for shell processing.
|
|
102
|
+
*
|
|
73
103
|
* @param command - Command template or parsed command
|
|
74
104
|
* @param params - Parameter values
|
|
75
105
|
* @param options - Interpolation options
|
|
@@ -108,10 +138,12 @@ export declare function needsShellWrap(command: string): boolean;
|
|
|
108
138
|
* Prepare a command for execution
|
|
109
139
|
*
|
|
110
140
|
* Parses the command and determines if it needs shell wrapping.
|
|
141
|
+
* When knownParameters is provided, only matching ${...} patterns are
|
|
142
|
+
* substituted, allowing shell syntax to pass through unchanged.
|
|
111
143
|
*
|
|
112
144
|
* @param command - Command template
|
|
113
145
|
* @param params - Parameter values for interpolation
|
|
114
|
-
* @param options - Interpolation options
|
|
146
|
+
* @param options - Interpolation options (including knownParameters)
|
|
115
147
|
* @returns Command ready for execution [program, ...args]
|
|
116
148
|
*/
|
|
117
149
|
export declare function prepareCommand(command: string, params: Record<string, unknown>, options?: InterpolationOptions): string[];
|
|
@@ -120,14 +152,16 @@ export declare function prepareCommand(command: string, params: Record<string, u
|
|
|
120
152
|
*
|
|
121
153
|
* @param command - Parsed command
|
|
122
154
|
* @param params - Provided parameters
|
|
155
|
+
* @param options - Parse options including knownParameters
|
|
123
156
|
* @returns Array of missing parameter names
|
|
124
157
|
*/
|
|
125
|
-
export declare function getMissingParams(command: string | ParsedCommand, params: Record<string, unknown
|
|
158
|
+
export declare function getMissingParams(command: string | ParsedCommand, params: Record<string, unknown>, options?: ParseCommandOptions): string[];
|
|
126
159
|
/**
|
|
127
160
|
* Get all parameters in a command template
|
|
128
161
|
*
|
|
129
162
|
* @param command - Command template
|
|
163
|
+
* @param options - Parse options including knownParameters
|
|
130
164
|
* @returns Array of parameter names
|
|
131
165
|
*/
|
|
132
|
-
export declare function getCommandParams(command: string): string[];
|
|
166
|
+
export declare function getCommandParams(command: string, options?: ParseCommandOptions): string[];
|
|
133
167
|
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/execution/command.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/execution/command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,OAAO,KAAK,EAAgB,oBAAoB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAQjF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB,GAAG,aAAa,CA+F9F;AAED;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAejD;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,EAAE,cAAc,UAAO,GAAG,MAAM,CAkB3E;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,GAAG,aAAa,EAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,GAAE,oBAAyB,GACjC,MAAM,CA6DR;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAgD1D;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAEvD;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAGvD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,GAAE,oBAAyB,GACjC,MAAM,EAAE,CAmBV;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,GAAG,aAAa,EAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,GAAE,mBAAwB,GAChC,MAAM,EAAE,CAIV;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAwB,GAAG,MAAM,EAAE,CAE7F"}
|
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Handles ${parameter} substitution in command templates with proper escaping.
|
|
5
5
|
*
|
|
6
|
+
* ## Parameter Recognition
|
|
7
|
+
*
|
|
8
|
+
* Only `${...}` patterns that match parameters defined in the tool's inputSchema
|
|
9
|
+
* are substituted. Other `${...}` patterns (like bash variables, arrays, etc.)
|
|
10
|
+
* are passed through unchanged to the shell.
|
|
11
|
+
*
|
|
12
|
+
* This allows natural use of shell syntax:
|
|
13
|
+
* - `${name}` - Substituted if "name" is in inputSchema
|
|
14
|
+
* - `${MY_VAR}` - Passed through to bash (not in inputSchema)
|
|
15
|
+
* - `${array[$i]}` - Passed through to bash (not in inputSchema)
|
|
16
|
+
*
|
|
6
17
|
* ## Quoting Behavior
|
|
7
18
|
*
|
|
8
19
|
* Enact automatically applies shell-escaping (quoting) to parameter values
|
|
@@ -37,10 +48,16 @@ const PARAM_PATTERN = /\$\{([^}:]+)(?::([^}]+))?\}/g;
|
|
|
37
48
|
* - Parameters with modifiers: ${param:raw}
|
|
38
49
|
* - Parameters surrounded by quotes: '${param}' or "${param}"
|
|
39
50
|
*
|
|
51
|
+
* When knownParameters is provided, only ${...} patterns matching known parameter
|
|
52
|
+
* names are treated as parameters. Other patterns are kept as literals, allowing
|
|
53
|
+
* natural shell syntax like ${MY_VAR} or ${array[$i]} to pass through.
|
|
54
|
+
*
|
|
40
55
|
* @param command - Command template with ${parameter} placeholders
|
|
56
|
+
* @param options - Parse options including knownParameters
|
|
41
57
|
* @returns Parsed command with tokens and parameter list
|
|
42
58
|
*/
|
|
43
|
-
export function parseCommand(command) {
|
|
59
|
+
export function parseCommand(command, options = {}) {
|
|
60
|
+
const { knownParameters } = options;
|
|
44
61
|
const tokens = [];
|
|
45
62
|
const parameters = [];
|
|
46
63
|
let lastIndex = 0;
|
|
@@ -52,6 +69,14 @@ export function parseCommand(command) {
|
|
|
52
69
|
const paramName = match[1];
|
|
53
70
|
const modifier = match[2]; // e.g., "raw"
|
|
54
71
|
const isRaw = modifier === "raw";
|
|
72
|
+
// Check if this is a known parameter (or if we're in legacy mode with no filter)
|
|
73
|
+
const isKnownParameter = !knownParameters || (paramName && knownParameters.has(paramName));
|
|
74
|
+
if (!isKnownParameter) {
|
|
75
|
+
// Not a known parameter - skip and continue
|
|
76
|
+
// The text will be included in the next literal segment
|
|
77
|
+
match = PARAM_PATTERN.exec(command);
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
55
80
|
// Check if preceded by a quote
|
|
56
81
|
let startIndex = match.index;
|
|
57
82
|
let surroundingQuotes;
|
|
@@ -171,6 +196,9 @@ export function valueToString(value, jsonifyObjects = true) {
|
|
|
171
196
|
* - Raw parameters: `${param:raw}` - no quoting applied
|
|
172
197
|
* - Quoted parameters: `'${param}'` - quotes stripped, warning emitted
|
|
173
198
|
*
|
|
199
|
+
* When knownParameters is provided in options, only matching ${...} patterns
|
|
200
|
+
* are substituted. Other patterns pass through unchanged for shell processing.
|
|
201
|
+
*
|
|
174
202
|
* @param command - Command template or parsed command
|
|
175
203
|
* @param params - Parameter values
|
|
176
204
|
* @param options - Interpolation options
|
|
@@ -178,8 +206,10 @@ export function valueToString(value, jsonifyObjects = true) {
|
|
|
178
206
|
* @throws Error if required parameter is missing and onMissing is "error"
|
|
179
207
|
*/
|
|
180
208
|
export function interpolateCommand(command, params, options = {}) {
|
|
181
|
-
const { escape: shouldEscape = true, jsonifyObjects = true, onMissing = "error", onWarning, } = options;
|
|
182
|
-
const parsed = typeof command === "string"
|
|
209
|
+
const { escape: shouldEscape = true, jsonifyObjects = true, onMissing = "error", onWarning, knownParameters, } = options;
|
|
210
|
+
const parsed = typeof command === "string"
|
|
211
|
+
? parseCommand(command, knownParameters ? { knownParameters } : {})
|
|
212
|
+
: command;
|
|
183
213
|
const parts = [];
|
|
184
214
|
for (const token of parsed.tokens) {
|
|
185
215
|
if (token.type === "literal") {
|
|
@@ -299,10 +329,12 @@ export function needsShellWrap(command) {
|
|
|
299
329
|
* Prepare a command for execution
|
|
300
330
|
*
|
|
301
331
|
* Parses the command and determines if it needs shell wrapping.
|
|
332
|
+
* When knownParameters is provided, only matching ${...} patterns are
|
|
333
|
+
* substituted, allowing shell syntax to pass through unchanged.
|
|
302
334
|
*
|
|
303
335
|
* @param command - Command template
|
|
304
336
|
* @param params - Parameter values for interpolation
|
|
305
|
-
* @param options - Interpolation options
|
|
337
|
+
* @param options - Interpolation options (including knownParameters)
|
|
306
338
|
* @returns Command ready for execution [program, ...args]
|
|
307
339
|
*/
|
|
308
340
|
export function prepareCommand(command, params, options = {}) {
|
|
@@ -327,19 +359,21 @@ export function prepareCommand(command, params, options = {}) {
|
|
|
327
359
|
*
|
|
328
360
|
* @param command - Parsed command
|
|
329
361
|
* @param params - Provided parameters
|
|
362
|
+
* @param options - Parse options including knownParameters
|
|
330
363
|
* @returns Array of missing parameter names
|
|
331
364
|
*/
|
|
332
|
-
export function getMissingParams(command, params) {
|
|
333
|
-
const parsed = typeof command === "string" ? parseCommand(command) : command;
|
|
365
|
+
export function getMissingParams(command, params, options = {}) {
|
|
366
|
+
const parsed = typeof command === "string" ? parseCommand(command, options) : command;
|
|
334
367
|
return parsed.parameters.filter((param) => params[param] === undefined);
|
|
335
368
|
}
|
|
336
369
|
/**
|
|
337
370
|
* Get all parameters in a command template
|
|
338
371
|
*
|
|
339
372
|
* @param command - Command template
|
|
373
|
+
* @param options - Parse options including knownParameters
|
|
340
374
|
* @returns Array of parameter names
|
|
341
375
|
*/
|
|
342
|
-
export function getCommandParams(command) {
|
|
343
|
-
return parseCommand(command).parameters;
|
|
376
|
+
export function getCommandParams(command, options = {}) {
|
|
377
|
+
return parseCommand(command, options).parameters;
|
|
344
378
|
}
|
|
345
379
|
//# sourceMappingURL=command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../src/execution/command.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"command.js","sourceRoot":"","sources":["../../src/execution/command.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAIH;;;GAGG;AACH,MAAM,aAAa,GAAG,8BAA8B,CAAC;AAcrD;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,YAAY,CAAC,OAAe,EAAE,UAA+B,EAAE;IAC7E,MAAM,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC;IACpC,MAAM,MAAM,GAAmB,EAAE,CAAC;IAClC,MAAM,UAAU,GAAa,EAAE,CAAC;IAEhC,IAAI,SAAS,GAAG,CAAC,CAAC;IAClB,IAAI,KAAK,GAA2B,IAAI,CAAC;IAEzC,oBAAoB;IACpB,aAAa,CAAC,SAAS,GAAG,CAAC,CAAC;IAE5B,KAAK,GAAG,aAAa,CA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cAAc,CAAC,YAAY,CAAC,EAAE,CAAC;QACjC,OAAO,aAAa,CAAC,YAAY,CAAC,CAAC;IACrC,CAAC;IAED,uBAAuB;IACvB,OAAO,gBAAgB,CAAC,YAAY,CAAC,CAAC;AACxC,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAC9B,OAA+B,EAC/B,MAA+B,EAC/B,UAA+B,EAAE;IAEjC,MAAM,MAAM,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAEtF,OAAO,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,SAAS,CAAC,CAAC;AAC1E,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAe,EAAE,UAA+B,EAAE;IACjF,OAAO,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,UAAU,CAAC;AACnD,CAAC"}
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
export type { ExecutionInput, FileInput, ExecutionOutput, ExecutionResult, ExecutionMetadata, ExecutionError, ExecutionErrorCode, ExecutionOptions, RetryConfig, ContainerRuntime, RuntimeDetection, RuntimeStatus, EngineHealth, EngineState, ExecutionProvider, ParsedCommand, CommandToken, InterpolationOptions, CommandWarning, CommandWarningCode, InputValidationResult, InputValidationError, DryRunResult, } from "./types.js";
|
|
8
8
|
export { DEFAULT_RETRY_CONFIG } from "./types.js";
|
|
9
9
|
export { detectRuntime, clearRuntimeCache, isRuntimeAvailable, getAvailableRuntimes, RuntimeStatusTracker, createRuntimeTracker, } from "./runtime.js";
|
|
10
|
-
export { parseCommand, interpolateCommand, shellEscape, parseCommandArgs, prepareCommand, getMissingParams, } from "./command.js";
|
|
10
|
+
export { parseCommand, interpolateCommand, shellEscape, parseCommandArgs, prepareCommand, getMissingParams, type ParseCommandOptions, } from "./command.js";
|
|
11
11
|
export { validateInputs, applyDefaults, getRequiredParams, getParamInfo, } from "./validation.js";
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/execution/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EAEV,cAAc,EACd,SAAS,EACT,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAElB,gBAAgB,EAChB,WAAW,EAEX,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EAEb,YAAY,EACZ,WAAW,EAEX,iBAAiB,EAEjB,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAElB,qBAAqB,EACrB,oBAAoB,EAEpB,YAAY,GACb,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/execution/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EAEV,cAAc,EACd,SAAS,EACT,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAElB,gBAAgB,EAChB,WAAW,EAEX,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EAEb,YAAY,EACZ,WAAW,EAEX,iBAAiB,EAEjB,aAAa,EACb,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAElB,qBAAqB,EACrB,oBAAoB,EAEpB,YAAY,GACb,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAGlD,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,KAAK,mBAAmB,GACzB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,YAAY,GACb,MAAM,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/execution/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAqCH,YAAY;AACZ,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,oBAAoB;AACpB,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAEtB,wBAAwB;AACxB,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/execution/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAqCH,YAAY;AACZ,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAElD,oBAAoB;AACpB,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAEtB,wBAAwB;AACxB,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,gBAAgB,GAEjB,MAAM,cAAc,CAAC;AAEtB,mBAAmB;AACnB,OAAO,EACL,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,YAAY,GACb,MAAM,iBAAiB,CAAC;AAEzB,kEAAkE;AAClE,2EAA2E"}
|
|
@@ -258,6 +258,12 @@ export interface InterpolationOptions {
|
|
|
258
258
|
onMissing?: "error" | "empty" | "keep";
|
|
259
259
|
/** Callback for warnings (e.g., potential double-quoting) */
|
|
260
260
|
onWarning?: (warning: CommandWarning) => void;
|
|
261
|
+
/**
|
|
262
|
+
* Set of known parameter names from the inputSchema.
|
|
263
|
+
* Only ${...} patterns matching these names will be substituted.
|
|
264
|
+
* If not provided, ALL ${...} patterns are treated as parameters (legacy behavior).
|
|
265
|
+
*/
|
|
266
|
+
knownParameters?: Set<string>;
|
|
261
267
|
}
|
|
262
268
|
/**
|
|
263
269
|
* Warning types for command processing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/execution/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAMtD;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAClC,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,qCAAqC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,+B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|
|
2
2
|
* Manifest module exports
|
|
3
3
|
*/
|
|
4
4
|
export { ManifestParseError, parseManifest, parseManifestAuto, parseYaml, extractFrontmatter, detectFormat, type ManifestFormat, } from "./parser";
|
|
5
|
-
export { validateManifest, validateManifestStrict, isValidToolName, isValidVersion, isValidTimeout, ToolManifestSchema, } from "./validator";
|
|
6
|
-
export { ManifestLoadError, loadManifest, loadManifestFromDir, findManifestFile, hasManifest, tryLoadManifest, tryLoadManifestFromDir, type LoadedManifest, } from "./loader";
|
|
5
|
+
export { validateManifest, validateManifestStrict, isValidToolName, isValidLocalToolName, isValidVersion, isValidTimeout, ToolManifestSchema, type ValidateManifestOptions, } from "./validator";
|
|
6
|
+
export { ManifestLoadError, loadManifest, loadManifestFromDir, findManifestFile, hasManifest, tryLoadManifest, tryLoadManifestFromDir, type LoadedManifest, type LoadManifestOptions, } from "./loader";
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/manifest/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,KAAK,cAAc,GACpB,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,cAAc,EACd,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/manifest/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,YAAY,EACZ,KAAK,cAAc,GACpB,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,sBAAsB,EACtB,KAAK,cAAc,EACnB,KAAK,mBAAmB,GACzB,MAAM,UAAU,CAAC"}
|
package/dist/manifest/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Parser
|
|
5
5
|
export { ManifestParseError, parseManifest, parseManifestAuto, parseYaml, extractFrontmatter, detectFormat, } from "./parser";
|
|
6
6
|
// Validator
|
|
7
|
-
export { validateManifest, validateManifestStrict, isValidToolName, isValidVersion, isValidTimeout, ToolManifestSchema, } from "./validator";
|
|
7
|
+
export { validateManifest, validateManifestStrict, isValidToolName, isValidLocalToolName, isValidVersion, isValidTimeout, ToolManifestSchema, } from "./validator";
|
|
8
8
|
// Loader
|
|
9
9
|
export { ManifestLoadError, loadManifest, loadManifestFromDir, findManifestFile, hasManifest, tryLoadManifest, tryLoadManifestFromDir, } from "./loader";
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/manifest/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,SAAS;AACT,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,YAAY,GAEb,MAAM,UAAU,CAAC;AAElB,YAAY;AACZ,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,cAAc,EACd,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/manifest/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,SAAS;AACT,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,YAAY,GAEb,MAAM,UAAU,CAAC;AAElB,YAAY;AACZ,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,kBAAkB,GAEnB,MAAM,aAAa,CAAC;AAErB,SAAS;AACT,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,sBAAsB,GAGvB,MAAM,UAAU,CAAC"}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Provides high-level functions to load tool manifests from files
|
|
5
5
|
*/
|
|
6
6
|
import type { ToolManifest, ValidationResult } from "../types/manifest";
|
|
7
|
+
import { type ValidateManifestOptions } from "./validator";
|
|
7
8
|
/**
|
|
8
9
|
* Error thrown when loading a manifest fails
|
|
9
10
|
*/
|
|
@@ -27,24 +28,31 @@ export interface LoadedManifest {
|
|
|
27
28
|
/** Validation warnings (if any) */
|
|
28
29
|
warnings?: ValidationResult["warnings"];
|
|
29
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Options for loading a manifest
|
|
33
|
+
*/
|
|
34
|
+
export interface LoadManifestOptions extends ValidateManifestOptions {
|
|
35
|
+
}
|
|
30
36
|
/**
|
|
31
37
|
* Load a manifest from a file path
|
|
32
38
|
*
|
|
33
39
|
* @param filePath - Path to the manifest file (SKILL.md, enact.md, enact.yaml, or enact.yml)
|
|
40
|
+
* @param options - Options for loading and validation
|
|
34
41
|
* @returns LoadedManifest with validated manifest and metadata
|
|
35
42
|
* @throws ManifestLoadError if file doesn't exist, parse fails, or validation fails
|
|
36
43
|
*/
|
|
37
|
-
export declare function loadManifest(filePath: string): LoadedManifest;
|
|
44
|
+
export declare function loadManifest(filePath: string, options?: LoadManifestOptions): LoadedManifest;
|
|
38
45
|
/**
|
|
39
46
|
* Find and load a manifest from a directory
|
|
40
47
|
*
|
|
41
48
|
* Searches for SKILL.md, enact.md, enact.yaml, or enact.yml in the given directory
|
|
42
49
|
*
|
|
43
50
|
* @param dir - Directory to search for manifest
|
|
51
|
+
* @param options - Options for loading and validation
|
|
44
52
|
* @returns LoadedManifest if found
|
|
45
53
|
* @throws ManifestLoadError if no manifest found or loading fails
|
|
46
54
|
*/
|
|
47
|
-
export declare function loadManifestFromDir(dir: string): LoadedManifest;
|
|
55
|
+
export declare function loadManifestFromDir(dir: string, options?: LoadManifestOptions): LoadedManifest;
|
|
48
56
|
/**
|
|
49
57
|
* Find a manifest file in a directory without loading it
|
|
50
58
|
*
|
|
@@ -63,14 +71,16 @@ export declare function hasManifest(dir: string): boolean;
|
|
|
63
71
|
* Try to load a manifest, returning null instead of throwing
|
|
64
72
|
*
|
|
65
73
|
* @param filePath - Path to the manifest file
|
|
74
|
+
* @param options - Options for loading and validation
|
|
66
75
|
* @returns LoadedManifest or null if loading fails
|
|
67
76
|
*/
|
|
68
|
-
export declare function tryLoadManifest(filePath: string): LoadedManifest | null;
|
|
77
|
+
export declare function tryLoadManifest(filePath: string, options?: LoadManifestOptions): LoadedManifest | null;
|
|
69
78
|
/**
|
|
70
79
|
* Try to load a manifest from a directory, returning null instead of throwing
|
|
71
80
|
*
|
|
72
81
|
* @param dir - Directory to search
|
|
82
|
+
* @param options - Options for loading and validation
|
|
73
83
|
* @returns LoadedManifest or null if no manifest found or loading fails
|
|
74
84
|
*/
|
|
75
|
-
export declare function tryLoadManifestFromDir(dir: string): LoadedManifest | null;
|
|
85
|
+
export declare function tryLoadManifestFromDir(dir: string, options?: LoadManifestOptions): LoadedManifest | null;
|
|
76
86
|
//# sourceMappingURL=loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/manifest/loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAkB,YAAY,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/manifest/loader.ts"],"names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I,CAMvB;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,mBAAwB,GAChC,cAAc,GAAG,IAAI,CAMvB"}
|
package/dist/manifest/loader.js
CHANGED
|
@@ -25,10 +25,11 @@ export class ManifestLoadError extends Error {
|
|
|
25
25
|
* Load a manifest from a file path
|
|
26
26
|
*
|
|
27
27
|
* @param filePath - Path to the manifest file (SKILL.md, enact.md, enact.yaml, or enact.yml)
|
|
28
|
+
* @param options - Options for loading and validation
|
|
28
29
|
* @returns LoadedManifest with validated manifest and metadata
|
|
29
30
|
* @throws ManifestLoadError if file doesn't exist, parse fails, or validation fails
|
|
30
31
|
*/
|
|
31
|
-
export function loadManifest(filePath) {
|
|
32
|
+
export function loadManifest(filePath, options = {}) {
|
|
32
33
|
// Check file exists
|
|
33
34
|
if (!existsSync(filePath)) {
|
|
34
35
|
throw new ManifestLoadError(`Manifest file not found: ${filePath}`, filePath);
|
|
@@ -53,7 +54,7 @@ export function loadManifest(filePath) {
|
|
|
53
54
|
throw new ManifestLoadError(`Failed to parse manifest: ${error.message}`, filePath, error);
|
|
54
55
|
}
|
|
55
56
|
// Validate the manifest
|
|
56
|
-
const validation = validateManifest(parsed.manifest);
|
|
57
|
+
const validation = validateManifest(parsed.manifest, options);
|
|
57
58
|
if (!validation.valid) {
|
|
58
59
|
const errorMessages = validation.errors?.map((e) => ` - ${e.path}: ${e.message}`).join("\n") ?? "";
|
|
59
60
|
throw new ManifestLoadError(`Manifest validation failed:\n${errorMessages}`, filePath);
|
|
@@ -78,15 +79,16 @@ export function loadManifest(filePath) {
|
|
|
78
79
|
* Searches for SKILL.md, enact.md, enact.yaml, or enact.yml in the given directory
|
|
79
80
|
*
|
|
80
81
|
* @param dir - Directory to search for manifest
|
|
82
|
+
* @param options - Options for loading and validation
|
|
81
83
|
* @returns LoadedManifest if found
|
|
82
84
|
* @throws ManifestLoadError if no manifest found or loading fails
|
|
83
85
|
*/
|
|
84
|
-
export function loadManifestFromDir(dir) {
|
|
86
|
+
export function loadManifestFromDir(dir, options = {}) {
|
|
85
87
|
// Try each manifest filename in order of preference
|
|
86
88
|
for (const filename of MANIFEST_FILES) {
|
|
87
89
|
const filePath = join(dir, filename);
|
|
88
90
|
if (existsSync(filePath)) {
|
|
89
|
-
return loadManifest(filePath);
|
|
91
|
+
return loadManifest(filePath, options);
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
throw new ManifestLoadError(`No manifest found in directory: ${dir}. Expected one of: ${MANIFEST_FILES.join(", ")}`, dir);
|
|
@@ -119,11 +121,12 @@ export function hasManifest(dir) {
|
|
|
119
121
|
* Try to load a manifest, returning null instead of throwing
|
|
120
122
|
*
|
|
121
123
|
* @param filePath - Path to the manifest file
|
|
124
|
+
* @param options - Options for loading and validation
|
|
122
125
|
* @returns LoadedManifest or null if loading fails
|
|
123
126
|
*/
|
|
124
|
-
export function tryLoadManifest(filePath) {
|
|
127
|
+
export function tryLoadManifest(filePath, options = {}) {
|
|
125
128
|
try {
|
|
126
|
-
return loadManifest(filePath);
|
|
129
|
+
return loadManifest(filePath, options);
|
|
127
130
|
}
|
|
128
131
|
catch {
|
|
129
132
|
return null;
|
|
@@ -133,11 +136,12 @@ export function tryLoadManifest(filePath) {
|
|
|
133
136
|
* Try to load a manifest from a directory, returning null instead of throwing
|
|
134
137
|
*
|
|
135
138
|
* @param dir - Directory to search
|
|
139
|
+
* @param options - Options for loading and validation
|
|
136
140
|
* @returns LoadedManifest or null if no manifest found or loading fails
|
|
137
141
|
*/
|
|
138
|
-
export function tryLoadManifestFromDir(dir) {
|
|
142
|
+
export function tryLoadManifestFromDir(dir, options = {}) {
|
|
139
143
|
try {
|
|
140
|
-
return loadManifestFromDir(dir);
|
|
144
|
+
return loadManifestFromDir(dir, options);
|
|
141
145
|
}
|
|
142
146
|
catch {
|
|
143
147
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../src/manifest/loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../src/manifest/loader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EAAgC,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE7E;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAGxB;IACA;IAHlB,YACE,OAAe,EACC,QAAgB,EAChB,aAAqB;QAErC,KAAK,CAAC,OAAO,CAAC,CAAC;QAHC,aAAQ,GAAR,QAAQ,CAAQ;QAChB,kBAAa,GAAb,aAAa,CAAQ;QAGrC,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;IAClC,CAAC;CACF;AAyBD;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,QAAgB,EAAE,UAA+B,EAAE;IAC9E,oBAAoB;IACpB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,iBAAiB,CAAC,4BAA4B,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC;IAChF,CAAC;IAED,oBAAoB;IACpB,IAAI,OAAe,C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;GAMG;AACH,MAAM,UAAU,eAAe,CAC7B,QAAgB,EAChB,UAA+B,EAAE;IAEjC,IAAI,CAAC;QACH,OAAO,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACzC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CACpC,GAAW,EACX,UAA+B,EAAE;IAEjC,IAAI,CAAC;QACH,OAAO,mBAAmB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { z } from "zod/v4";
|
|
7
7
|
import type { ToolManifest, ValidationResult } from "../types/manifest";
|
|
8
8
|
/**
|
|
9
|
-
* Complete tool manifest schema
|
|
9
|
+
* Complete tool manifest schema (strict - requires hierarchical names)
|
|
10
10
|
*/
|
|
11
11
|
declare const ToolManifestSchema: z.ZodObject<{
|
|
12
12
|
name: z.ZodString;
|
|
@@ -63,26 +63,43 @@ declare const ToolManifestSchema: z.ZodObject<{
|
|
|
63
63
|
description: z.ZodOptional<z.ZodString>;
|
|
64
64
|
}, z.core.$strip>>>;
|
|
65
65
|
}, z.core.$loose>;
|
|
66
|
+
/**
|
|
67
|
+
* Options for manifest validation
|
|
68
|
+
*/
|
|
69
|
+
export interface ValidateManifestOptions {
|
|
70
|
+
/**
|
|
71
|
+
* Allow simple tool names without hierarchy (e.g., "my-tool" instead of "org/my-tool").
|
|
72
|
+
* Use this for local tools that won't be published.
|
|
73
|
+
* @default false
|
|
74
|
+
*/
|
|
75
|
+
allowSimpleNames?: boolean;
|
|
76
|
+
}
|
|
66
77
|
/**
|
|
67
78
|
* Validate a tool manifest
|
|
68
79
|
*
|
|
69
80
|
* @param manifest - The manifest to validate (parsed but unvalidated)
|
|
81
|
+
* @param options - Validation options
|
|
70
82
|
* @returns ValidationResult with valid flag, errors, and warnings
|
|
71
83
|
*/
|
|
72
|
-
export declare function validateManifest(manifest: unknown): ValidationResult;
|
|
84
|
+
export declare function validateManifest(manifest: unknown, options?: ValidateManifestOptions): ValidationResult;
|
|
73
85
|
/**
|
|
74
86
|
* Validate and return the typed manifest
|
|
75
87
|
* Throws if validation fails
|
|
76
88
|
*
|
|
77
89
|
* @param manifest - The manifest to validate
|
|
90
|
+
* @param options - Validation options
|
|
78
91
|
* @returns The validated ToolManifest
|
|
79
92
|
* @throws Error if validation fails
|
|
80
93
|
*/
|
|
81
|
-
export declare function validateManifestStrict(manifest: unknown): ToolManifest;
|
|
94
|
+
export declare function validateManifestStrict(manifest: unknown, options?: ValidateManifestOptions): ToolManifest;
|
|
82
95
|
/**
|
|
83
|
-
* Check if a string is a valid tool name
|
|
96
|
+
* Check if a string is a valid tool name (hierarchical format for publishing)
|
|
84
97
|
*/
|
|
85
98
|
export declare function isValidToolName(name: string): boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Check if a string is a valid local tool name (allows simple names)
|
|
101
|
+
*/
|
|
102
|
+
export declare function isValidLocalToolName(name: string): boolean;
|
|
86
103
|
/**
|
|
87
104
|
* Check if a string is a valid semver version
|
|
88
105
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../src/manifest/validator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EACV,YAAY,EAEZ,gBAAgB,EAEjB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../src/manifest/validator.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAC3B,OAAO,KAAK,EACV,YAAY,EAEZ,gBAAgB,EAEjB,MAAM,mBAAmB,CAAC;AA+I3B;;GAEG;AACH,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAkC,CAAC;AAoG3D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,OAAO,EACjB,OAAO,GAAE,uBAA4B,GACpC,gBAAgB,CAmBlB;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,QAAQ,EAAE,OAAO,EACjB,OAAO,GAAE,uBAA4B,GACpC,YAAY,CASd;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAErD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEvD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAEvD;AAGD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|