@agentxm/registry-protocol 0.28.4-bootstrap.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/LICENSE +110 -0
- package/README.md +13 -0
- package/dist/src/unstable/content/agent-skills-standard.d.ts +17 -0
- package/dist/src/unstable/content/agent-skills-standard.js +24 -0
- package/dist/src/unstable/content/frontmatter.d.ts +52 -0
- package/dist/src/unstable/content/frontmatter.js +115 -0
- package/dist/src/unstable/content/index.d.ts +11 -0
- package/dist/src/unstable/content/index.js +11 -0
- package/dist/src/unstable/content/skill-content.d.ts +43 -0
- package/dist/src/unstable/content/skill-content.js +184 -0
- package/dist/src/unstable/content/skill-types.d.ts +22 -0
- package/dist/src/unstable/content/skill-types.js +9 -0
- package/dist/src/unstable/content/subagent-content.d.ts +58 -0
- package/dist/src/unstable/content/subagent-content.js +101 -0
- package/dist/src/unstable/knowledge/index.d.ts +8 -0
- package/dist/src/unstable/knowledge/index.js +8 -0
- package/dist/src/unstable/knowledge/knowledge-search.d.ts +32 -0
- package/dist/src/unstable/knowledge/knowledge-search.js +147 -0
- package/dist/src/unstable/knowledge/okf.d.ts +86 -0
- package/dist/src/unstable/knowledge/okf.js +1090 -0
- package/dist/src/unstable/lint/catalog/hook/decision-portability.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/hook/decision-portability.js +40 -0
- package/dist/src/unstable/lint/catalog/hook/entrypoint-exists.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/hook/entrypoint-exists.js +39 -0
- package/dist/src/unstable/lint/catalog/hook/envelope.d.ts +6 -0
- package/dist/src/unstable/lint/catalog/hook/envelope.js +15 -0
- package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/hook/matcher-raw-portability.js +51 -0
- package/dist/src/unstable/lint/catalog/hook.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/hook.js +17 -0
- package/dist/src/unstable/lint/catalog/knowledge/diagnostics.d.ts +128 -0
- package/dist/src/unstable/lint/catalog/knowledge/diagnostics.js +78 -0
- package/dist/src/unstable/lint/catalog/knowledge/envelope.d.ts +6 -0
- package/dist/src/unstable/lint/catalog/knowledge/envelope.js +15 -0
- package/dist/src/unstable/lint/catalog/knowledge.d.ts +5 -0
- package/dist/src/unstable/lint/catalog/knowledge.js +11 -0
- package/dist/src/unstable/lint/catalog/mcp-server/envelope.d.ts +6 -0
- package/dist/src/unstable/lint/catalog/mcp-server/envelope.js +15 -0
- package/dist/src/unstable/lint/catalog/mcp-server.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/mcp-server.js +6 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.d.ts +28 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-keys-recognized.js +38 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-present.d.ts +17 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-present.js +24 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.d.ts +25 -0
- package/dist/src/unstable/lint/catalog/pack/manifest-schema-valid.js +33 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/contexts.d.ts +51 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/contexts.js +45 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/vft.d.ts +60 -0
- package/dist/src/unstable/lint/catalog/pack-accessor/vft.js +85 -0
- package/dist/src/unstable/lint/catalog/pack.d.ts +37 -0
- package/dist/src/unstable/lint/catalog/pack.js +47 -0
- package/dist/src/unstable/lint/catalog/rule/envelope.d.ts +6 -0
- package/dist/src/unstable/lint/catalog/rule/envelope.js +15 -0
- package/dist/src/unstable/lint/catalog/rule.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/rule.js +6 -0
- package/dist/src/unstable/lint/catalog/shared/envelope-rules.d.ts +93 -0
- package/dist/src/unstable/lint/catalog/shared/envelope-rules.js +89 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-json.d.ts +18 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-json.js +28 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-present.d.ts +25 -0
- package/dist/src/unstable/lint/catalog/shared/manifest-present.js +37 -0
- package/dist/src/unstable/lint/catalog/shared/recommended-packs-rules.d.ts +70 -0
- package/dist/src/unstable/lint/catalog/shared/recommended-packs-rules.js +139 -0
- package/dist/src/unstable/lint/catalog/shared/schema-rule.d.ts +58 -0
- package/dist/src/unstable/lint/catalog/shared/schema-rule.js +103 -0
- package/dist/src/unstable/lint/catalog/skill/frontmatter-parseable.d.ts +31 -0
- package/dist/src/unstable/lint/catalog/skill/frontmatter-parseable.js +148 -0
- package/dist/src/unstable/lint/catalog/skill/frontmatter-standard-valid.d.ts +13 -0
- package/dist/src/unstable/lint/catalog/skill/frontmatter-standard-valid.js +61 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.d.ts +26 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-keys-recognized.js +41 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-present.d.ts +23 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-present.js +32 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-schema-valid.d.ts +21 -0
- package/dist/src/unstable/lint/catalog/skill/manifest-schema-valid.js +36 -0
- package/dist/src/unstable/lint/catalog/skill/recommended-packs-valid.d.ts +8 -0
- package/dist/src/unstable/lint/catalog/skill/recommended-packs-valid.js +12 -0
- package/dist/src/unstable/lint/catalog/skill/skill-md-present.d.ts +17 -0
- package/dist/src/unstable/lint/catalog/skill/skill-md-present.js +37 -0
- package/dist/src/unstable/lint/catalog/skill/standalone-declaration-valid.d.ts +8 -0
- package/dist/src/unstable/lint/catalog/skill/standalone-declaration-valid.js +12 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/contexts.d.ts +61 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/contexts.js +55 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/vft.d.ts +77 -0
- package/dist/src/unstable/lint/catalog/skill-accessor/vft.js +135 -0
- package/dist/src/unstable/lint/catalog/skill.d.ts +44 -0
- package/dist/src/unstable/lint/catalog/skill.js +64 -0
- package/dist/src/unstable/lint/catalog/subagent/envelope.d.ts +6 -0
- package/dist/src/unstable/lint/catalog/subagent/envelope.js +15 -0
- package/dist/src/unstable/lint/catalog/subagent.d.ts +4 -0
- package/dist/src/unstable/lint/catalog/subagent.js +6 -0
- package/dist/src/unstable/lint/compose-path.d.ts +28 -0
- package/dist/src/unstable/lint/compose-path.js +64 -0
- package/dist/src/unstable/lint/config.d.ts +103 -0
- package/dist/src/unstable/lint/config.js +140 -0
- package/dist/src/unstable/lint/context.d.ts +246 -0
- package/dist/src/unstable/lint/context.js +21 -0
- package/dist/src/unstable/lint/describe-document.d.ts +31 -0
- package/dist/src/unstable/lint/describe-document.js +50 -0
- package/dist/src/unstable/lint/evaluate.d.ts +47 -0
- package/dist/src/unstable/lint/evaluate.js +82 -0
- package/dist/src/unstable/lint/issues-to-findings.d.ts +35 -0
- package/dist/src/unstable/lint/issues-to-findings.js +149 -0
- package/dist/src/unstable/lint/publish.d.ts +49 -0
- package/dist/src/unstable/lint/publish.js +86 -0
- package/dist/src/unstable/lint/rule.d.ts +98 -0
- package/dist/src/unstable/lint/rule.js +18 -0
- package/dist/src/unstable/publish/archive-guardrails.d.ts +39 -0
- package/dist/src/unstable/publish/archive-guardrails.js +250 -0
- package/dist/src/unstable/publish/filtered-package-validation.d.ts +24 -0
- package/dist/src/unstable/publish/filtered-package-validation.js +117 -0
- package/dist/src/unstable/publish/index.d.ts +12 -0
- package/dist/src/unstable/publish/index.js +12 -0
- package/dist/src/unstable/publish/ingest-limits.d.ts +25 -0
- package/dist/src/unstable/publish/ingest-limits.js +41 -0
- package/dist/src/unstable/publish/input-normalization.d.ts +40 -0
- package/dist/src/unstable/publish/input-normalization.js +125 -0
- package/dist/src/unstable/publish/manifest-policy.d.ts +611 -0
- package/dist/src/unstable/publish/manifest-policy.js +196 -0
- package/dist/src/unstable/publish/test-zip-helpers.d.ts +13 -0
- package/dist/src/unstable/publish/test-zip-helpers.js +117 -0
- package/dist/src/unstable/publish/visibility.d.ts +161 -0
- package/dist/src/unstable/publish/visibility.js +124 -0
- package/dist/src/unstable/registry/discover-schema.d.ts +68 -0
- package/dist/src/unstable/registry/discover-schema.js +35 -0
- package/dist/src/unstable/registry/index.d.ts +9 -0
- package/dist/src/unstable/registry/index.js +9 -0
- package/dist/src/unstable/registry/publication-set.d.ts +303 -0
- package/dist/src/unstable/registry/publication-set.js +507 -0
- package/dist/src/unstable/registry/release-age-policy.d.ts +57 -0
- package/dist/src/unstable/registry/release-age-policy.js +117 -0
- package/dist/src/unstable/registry/schema.d.ts +220 -0
- package/dist/src/unstable/registry/schema.js +114 -0
- package/dist/src/unstable/suggested-action.d.ts +19 -0
- package/dist/src/unstable/suggested-action.js +42 -0
- package/package.json +214 -0
|
@@ -0,0 +1,611 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Result from "effect/Result";
|
|
3
|
+
import * as Schema from "effect/Schema";
|
|
4
|
+
import { type ExtensionName, type ExtensionType } from "@agentxm/extension-model/unstable/extensions/common";
|
|
5
|
+
import { type Handle } from "@agentxm/extension-model/unstable/extensions/handle";
|
|
6
|
+
import { type Version } from "@agentxm/extension-model/unstable/version-constraints";
|
|
7
|
+
import type { ArchiveGuardrailError, ZipEntry } from "./archive-guardrails.js";
|
|
8
|
+
declare const ManifestError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
9
|
+
readonly _tag: "ManifestError";
|
|
10
|
+
} & Readonly<A>;
|
|
11
|
+
export declare class ManifestError extends ManifestError_base<{
|
|
12
|
+
readonly code: "manifest_missing" | "manifest_multiple" | "manifest_invalid_json" | "manifest_schema_invalid" | "companion_package_purl_has_version" | "companion_package_scheme_mismatch" | "companion_package_invalid" | "declared_manifest_mismatch";
|
|
13
|
+
readonly detail: string;
|
|
14
|
+
readonly details?: unknown;
|
|
15
|
+
}> {
|
|
16
|
+
}
|
|
17
|
+
export declare const MANIFEST_FILENAME_BY_TYPE: {
|
|
18
|
+
readonly skill: "skill.json";
|
|
19
|
+
readonly "mcp-server": "mcp.json";
|
|
20
|
+
readonly subagent: "subagent.json";
|
|
21
|
+
readonly pack: "pack.json";
|
|
22
|
+
readonly rule: "rule.json";
|
|
23
|
+
readonly hook: "hook.json";
|
|
24
|
+
readonly knowledge: "knowledge.json";
|
|
25
|
+
};
|
|
26
|
+
export declare const manifestFilenameForType: (type: ExtensionType) => string;
|
|
27
|
+
export declare const ManifestIdentitySchema: Schema.Struct<{
|
|
28
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
29
|
+
readonly type: Schema.Literals<readonly ("skill" | "mcp-server" | "subagent" | "rule" | "hook" | "knowledge" | "pack")[]>;
|
|
30
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
31
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
32
|
+
}>;
|
|
33
|
+
export type ManifestIdentity = Schema.Schema.Type<typeof ManifestIdentitySchema>;
|
|
34
|
+
export declare const manifestSchemaForType: (type: ExtensionType) => Schema.Struct<{
|
|
35
|
+
readonly type: Schema.Literal<"skill">;
|
|
36
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
37
|
+
readonly enhances: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
38
|
+
readonly requires: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
39
|
+
readonly fallback: Schema.optional<Schema.Literals<readonly ["auto", "none"]>>;
|
|
40
|
+
readonly recommendedPacks: Schema.optional<Schema.$Array<Schema.brand<Schema.NonEmptyString, "PackSpec">>>;
|
|
41
|
+
readonly standalone: Schema.optional<Schema.Boolean>;
|
|
42
|
+
readonly publish: Schema.optional<Schema.Struct<{
|
|
43
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
44
|
+
readonly ignore: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
45
|
+
}>>;
|
|
46
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
47
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
48
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
49
|
+
readonly description: Schema.optional<Schema.String>;
|
|
50
|
+
readonly keywords: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
51
|
+
readonly repository: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
52
|
+
readonly type: Schema.optional<Schema.NonEmptyString>;
|
|
53
|
+
readonly url: Schema.NonEmptyString;
|
|
54
|
+
readonly directory: Schema.optional<Schema.NonEmptyString>;
|
|
55
|
+
}>]>>;
|
|
56
|
+
readonly homepage: Schema.optional<Schema.String>;
|
|
57
|
+
readonly license: Schema.optional<Schema.String>;
|
|
58
|
+
readonly bugs: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
59
|
+
readonly url: Schema.optional<Schema.NonEmptyString>;
|
|
60
|
+
readonly email: Schema.optional<Schema.NonEmptyString>;
|
|
61
|
+
}>]>>;
|
|
62
|
+
readonly authors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
63
|
+
readonly name: Schema.String;
|
|
64
|
+
readonly email: Schema.optional<Schema.String>;
|
|
65
|
+
readonly url: Schema.optional<Schema.String>;
|
|
66
|
+
}>>>;
|
|
67
|
+
readonly packages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
68
|
+
readonly purl: Schema.brand<Schema.NonEmptyString, "PackageIdentityPurl">;
|
|
69
|
+
readonly versionRange: Schema.optional<Schema.brand<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
70
|
+
readonly raw: Schema.NonEmptyString;
|
|
71
|
+
readonly scheme: Schema.NonEmptyString;
|
|
72
|
+
readonly constraints: Schema.$Array<Schema.Struct<{
|
|
73
|
+
readonly comparator: Schema.Literals<readonly ["=", "!=", "<", "<=", ">", ">="]>;
|
|
74
|
+
readonly version: Schema.NonEmptyString;
|
|
75
|
+
}>>;
|
|
76
|
+
}>>, Schema.NonEmptyString, never, never>, "VersRange">>;
|
|
77
|
+
}>>>;
|
|
78
|
+
readonly $schema: Schema.optional<Schema.String>;
|
|
79
|
+
}> | Schema.Struct<{
|
|
80
|
+
readonly type: Schema.Literal<"mcp-server">;
|
|
81
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
82
|
+
readonly server: Schema.Struct<{
|
|
83
|
+
readonly $schema: Schema.optional<Schema.String>;
|
|
84
|
+
readonly name: Schema.NonEmptyString;
|
|
85
|
+
readonly description: Schema.NonEmptyString;
|
|
86
|
+
readonly version: Schema.String;
|
|
87
|
+
readonly title: Schema.optional<Schema.NonEmptyString>;
|
|
88
|
+
readonly packages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
89
|
+
readonly registryType: Schema.String;
|
|
90
|
+
readonly identifier: Schema.String;
|
|
91
|
+
readonly transport: Schema.Union<readonly [Schema.Struct<{
|
|
92
|
+
readonly type: Schema.Literal<"stdio">;
|
|
93
|
+
}>, Schema.Struct<{
|
|
94
|
+
readonly type: Schema.Literal<"streamable-http">;
|
|
95
|
+
readonly url: Schema.NonEmptyString;
|
|
96
|
+
readonly headers: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
97
|
+
readonly name: Schema.String;
|
|
98
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
99
|
+
readonly default: Schema.optional<Schema.String>;
|
|
100
|
+
readonly description: Schema.optional<Schema.String>;
|
|
101
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
102
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
103
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
104
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
105
|
+
readonly value: Schema.optional<Schema.String>;
|
|
106
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
107
|
+
}>>>;
|
|
108
|
+
}>, Schema.Struct<{
|
|
109
|
+
readonly type: Schema.Literal<"sse">;
|
|
110
|
+
readonly url: Schema.NonEmptyString;
|
|
111
|
+
readonly headers: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
112
|
+
readonly name: Schema.String;
|
|
113
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
114
|
+
readonly default: Schema.optional<Schema.String>;
|
|
115
|
+
readonly description: Schema.optional<Schema.String>;
|
|
116
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
117
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
118
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
119
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
120
|
+
readonly value: Schema.optional<Schema.String>;
|
|
121
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
122
|
+
}>>>;
|
|
123
|
+
}>]>;
|
|
124
|
+
readonly version: Schema.optional<Schema.NonEmptyString>;
|
|
125
|
+
readonly registryBaseUrl: Schema.optional<Schema.String>;
|
|
126
|
+
readonly runtimeHint: Schema.optional<Schema.String>;
|
|
127
|
+
readonly runtimeArguments: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
128
|
+
readonly type: Schema.Literal<"positional">;
|
|
129
|
+
readonly isRepeated: Schema.optional<Schema.Boolean>;
|
|
130
|
+
readonly valueHint: Schema.String;
|
|
131
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
132
|
+
readonly default: Schema.optional<Schema.String>;
|
|
133
|
+
readonly description: Schema.optional<Schema.String>;
|
|
134
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
135
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
136
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
137
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
138
|
+
readonly value: Schema.optional<Schema.String>;
|
|
139
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
140
|
+
}>, Schema.Struct<{
|
|
141
|
+
readonly type: Schema.Literal<"positional">;
|
|
142
|
+
readonly isRepeated: Schema.optional<Schema.Boolean>;
|
|
143
|
+
readonly value: Schema.String;
|
|
144
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
145
|
+
readonly default: Schema.optional<Schema.String>;
|
|
146
|
+
readonly description: Schema.optional<Schema.String>;
|
|
147
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
148
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
149
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
150
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
151
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
152
|
+
}>]>, Schema.Struct<{
|
|
153
|
+
readonly type: Schema.Literal<"named">;
|
|
154
|
+
readonly name: Schema.String;
|
|
155
|
+
readonly isRepeated: Schema.optional<Schema.Boolean>;
|
|
156
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
157
|
+
readonly default: Schema.optional<Schema.String>;
|
|
158
|
+
readonly description: Schema.optional<Schema.String>;
|
|
159
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
160
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
161
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
162
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
163
|
+
readonly value: Schema.optional<Schema.String>;
|
|
164
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
165
|
+
}>]>>>;
|
|
166
|
+
readonly packageArguments: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Union<readonly [Schema.Struct<{
|
|
167
|
+
readonly type: Schema.Literal<"positional">;
|
|
168
|
+
readonly isRepeated: Schema.optional<Schema.Boolean>;
|
|
169
|
+
readonly valueHint: Schema.String;
|
|
170
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
171
|
+
readonly default: Schema.optional<Schema.String>;
|
|
172
|
+
readonly description: Schema.optional<Schema.String>;
|
|
173
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
174
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
175
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
176
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
177
|
+
readonly value: Schema.optional<Schema.String>;
|
|
178
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
179
|
+
}>, Schema.Struct<{
|
|
180
|
+
readonly type: Schema.Literal<"positional">;
|
|
181
|
+
readonly isRepeated: Schema.optional<Schema.Boolean>;
|
|
182
|
+
readonly value: Schema.String;
|
|
183
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
184
|
+
readonly default: Schema.optional<Schema.String>;
|
|
185
|
+
readonly description: Schema.optional<Schema.String>;
|
|
186
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
187
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
188
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
189
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
190
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
191
|
+
}>]>, Schema.Struct<{
|
|
192
|
+
readonly type: Schema.Literal<"named">;
|
|
193
|
+
readonly name: Schema.String;
|
|
194
|
+
readonly isRepeated: Schema.optional<Schema.Boolean>;
|
|
195
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
196
|
+
readonly default: Schema.optional<Schema.String>;
|
|
197
|
+
readonly description: Schema.optional<Schema.String>;
|
|
198
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
199
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
200
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
201
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
202
|
+
readonly value: Schema.optional<Schema.String>;
|
|
203
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
204
|
+
}>]>>>;
|
|
205
|
+
readonly environmentVariables: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
206
|
+
readonly name: Schema.String;
|
|
207
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
208
|
+
readonly default: Schema.optional<Schema.String>;
|
|
209
|
+
readonly description: Schema.optional<Schema.String>;
|
|
210
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
211
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
212
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
213
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
214
|
+
readonly value: Schema.optional<Schema.String>;
|
|
215
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
216
|
+
}>>>;
|
|
217
|
+
readonly fileSha256: Schema.optional<Schema.String>;
|
|
218
|
+
}>>>;
|
|
219
|
+
readonly remotes: Schema.optional<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
220
|
+
readonly type: Schema.Literal<"streamable-http">;
|
|
221
|
+
readonly url: Schema.NonEmptyString;
|
|
222
|
+
readonly headers: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
223
|
+
readonly name: Schema.String;
|
|
224
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
225
|
+
readonly default: Schema.optional<Schema.String>;
|
|
226
|
+
readonly description: Schema.optional<Schema.String>;
|
|
227
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
228
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
229
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
230
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
231
|
+
readonly value: Schema.optional<Schema.String>;
|
|
232
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
233
|
+
}>>>;
|
|
234
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
235
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
236
|
+
readonly default: Schema.optional<Schema.String>;
|
|
237
|
+
readonly description: Schema.optional<Schema.String>;
|
|
238
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
239
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
240
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
241
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
242
|
+
readonly value: Schema.optional<Schema.String>;
|
|
243
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
244
|
+
}>>>;
|
|
245
|
+
}>, Schema.Struct<{
|
|
246
|
+
readonly type: Schema.Literal<"sse">;
|
|
247
|
+
readonly url: Schema.NonEmptyString;
|
|
248
|
+
readonly headers: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
249
|
+
readonly name: Schema.String;
|
|
250
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
251
|
+
readonly default: Schema.optional<Schema.String>;
|
|
252
|
+
readonly description: Schema.optional<Schema.String>;
|
|
253
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
254
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
255
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
256
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
257
|
+
readonly value: Schema.optional<Schema.String>;
|
|
258
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
259
|
+
}>>>;
|
|
260
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
261
|
+
readonly choices: Schema.optional<Schema.$Array<Schema.String>>;
|
|
262
|
+
readonly default: Schema.optional<Schema.String>;
|
|
263
|
+
readonly description: Schema.optional<Schema.String>;
|
|
264
|
+
readonly format: Schema.optional<Schema.Literals<readonly ["string", "number", "boolean", "filepath"]>>;
|
|
265
|
+
readonly isRequired: Schema.optional<Schema.Boolean>;
|
|
266
|
+
readonly isSecret: Schema.optional<Schema.Boolean>;
|
|
267
|
+
readonly placeholder: Schema.optional<Schema.String>;
|
|
268
|
+
readonly value: Schema.optional<Schema.String>;
|
|
269
|
+
readonly variables: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
270
|
+
}>>>;
|
|
271
|
+
}>]>>>;
|
|
272
|
+
readonly repository: Schema.optional<Schema.Struct<{
|
|
273
|
+
readonly url: Schema.String;
|
|
274
|
+
readonly source: Schema.String;
|
|
275
|
+
readonly id: Schema.optional<Schema.String>;
|
|
276
|
+
readonly subfolder: Schema.optional<Schema.String>;
|
|
277
|
+
}>>;
|
|
278
|
+
readonly icons: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
279
|
+
readonly src: Schema.NonEmptyString;
|
|
280
|
+
readonly mimeType: Schema.optional<Schema.Literals<readonly ["image/png", "image/jpeg", "image/jpg", "image/svg+xml", "image/webp"]>>;
|
|
281
|
+
readonly sizes: Schema.optional<Schema.$Array<Schema.String>>;
|
|
282
|
+
readonly theme: Schema.optional<Schema.Literals<readonly ["light", "dark"]>>;
|
|
283
|
+
}>>>;
|
|
284
|
+
readonly websiteUrl: Schema.optional<Schema.String>;
|
|
285
|
+
readonly _meta: Schema.optional<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
286
|
+
}>;
|
|
287
|
+
readonly enhances: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
288
|
+
readonly requires: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
289
|
+
readonly fallback: Schema.optional<Schema.Literals<readonly ["auto", "none"]>>;
|
|
290
|
+
readonly recommendedPacks: Schema.optional<Schema.$Array<Schema.brand<Schema.NonEmptyString, "PackSpec">>>;
|
|
291
|
+
readonly standalone: Schema.optional<Schema.Boolean>;
|
|
292
|
+
readonly publish: Schema.optional<Schema.Struct<{
|
|
293
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
294
|
+
readonly ignore: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
295
|
+
}>>;
|
|
296
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
297
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
298
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
299
|
+
readonly description: Schema.optional<Schema.String>;
|
|
300
|
+
readonly keywords: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
301
|
+
readonly repository: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
302
|
+
readonly type: Schema.optional<Schema.NonEmptyString>;
|
|
303
|
+
readonly url: Schema.NonEmptyString;
|
|
304
|
+
readonly directory: Schema.optional<Schema.NonEmptyString>;
|
|
305
|
+
}>]>>;
|
|
306
|
+
readonly homepage: Schema.optional<Schema.String>;
|
|
307
|
+
readonly license: Schema.optional<Schema.String>;
|
|
308
|
+
readonly bugs: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
309
|
+
readonly url: Schema.optional<Schema.NonEmptyString>;
|
|
310
|
+
readonly email: Schema.optional<Schema.NonEmptyString>;
|
|
311
|
+
}>]>>;
|
|
312
|
+
readonly authors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
313
|
+
readonly name: Schema.String;
|
|
314
|
+
readonly email: Schema.optional<Schema.String>;
|
|
315
|
+
readonly url: Schema.optional<Schema.String>;
|
|
316
|
+
}>>>;
|
|
317
|
+
readonly packages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
318
|
+
readonly purl: Schema.brand<Schema.NonEmptyString, "PackageIdentityPurl">;
|
|
319
|
+
readonly versionRange: Schema.optional<Schema.brand<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
320
|
+
readonly raw: Schema.NonEmptyString;
|
|
321
|
+
readonly scheme: Schema.NonEmptyString;
|
|
322
|
+
readonly constraints: Schema.$Array<Schema.Struct<{
|
|
323
|
+
readonly comparator: Schema.Literals<readonly ["=", "!=", "<", "<=", ">", ">="]>;
|
|
324
|
+
readonly version: Schema.NonEmptyString;
|
|
325
|
+
}>>;
|
|
326
|
+
}>>, Schema.NonEmptyString, never, never>, "VersRange">>;
|
|
327
|
+
}>>>;
|
|
328
|
+
readonly $schema: Schema.optional<Schema.String>;
|
|
329
|
+
}> | Schema.Struct<{
|
|
330
|
+
readonly type: Schema.Literal<"subagent">;
|
|
331
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
332
|
+
readonly enhances: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
333
|
+
readonly requires: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
334
|
+
readonly fallback: Schema.optional<Schema.Literals<readonly ["auto", "none"]>>;
|
|
335
|
+
readonly recommendedPacks: Schema.optional<Schema.$Array<Schema.brand<Schema.NonEmptyString, "PackSpec">>>;
|
|
336
|
+
readonly standalone: Schema.optional<Schema.Boolean>;
|
|
337
|
+
readonly publish: Schema.optional<Schema.Struct<{
|
|
338
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
339
|
+
readonly ignore: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
340
|
+
}>>;
|
|
341
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
342
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
343
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
344
|
+
readonly description: Schema.optional<Schema.String>;
|
|
345
|
+
readonly keywords: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
346
|
+
readonly repository: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
347
|
+
readonly type: Schema.optional<Schema.NonEmptyString>;
|
|
348
|
+
readonly url: Schema.NonEmptyString;
|
|
349
|
+
readonly directory: Schema.optional<Schema.NonEmptyString>;
|
|
350
|
+
}>]>>;
|
|
351
|
+
readonly homepage: Schema.optional<Schema.String>;
|
|
352
|
+
readonly license: Schema.optional<Schema.String>;
|
|
353
|
+
readonly bugs: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
354
|
+
readonly url: Schema.optional<Schema.NonEmptyString>;
|
|
355
|
+
readonly email: Schema.optional<Schema.NonEmptyString>;
|
|
356
|
+
}>]>>;
|
|
357
|
+
readonly authors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
358
|
+
readonly name: Schema.String;
|
|
359
|
+
readonly email: Schema.optional<Schema.String>;
|
|
360
|
+
readonly url: Schema.optional<Schema.String>;
|
|
361
|
+
}>>>;
|
|
362
|
+
readonly packages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
363
|
+
readonly purl: Schema.brand<Schema.NonEmptyString, "PackageIdentityPurl">;
|
|
364
|
+
readonly versionRange: Schema.optional<Schema.brand<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
365
|
+
readonly raw: Schema.NonEmptyString;
|
|
366
|
+
readonly scheme: Schema.NonEmptyString;
|
|
367
|
+
readonly constraints: Schema.$Array<Schema.Struct<{
|
|
368
|
+
readonly comparator: Schema.Literals<readonly ["=", "!=", "<", "<=", ">", ">="]>;
|
|
369
|
+
readonly version: Schema.NonEmptyString;
|
|
370
|
+
}>>;
|
|
371
|
+
}>>, Schema.NonEmptyString, never, never>, "VersRange">>;
|
|
372
|
+
}>>>;
|
|
373
|
+
readonly $schema: Schema.optional<Schema.String>;
|
|
374
|
+
}> | Schema.Struct<{
|
|
375
|
+
readonly type: Schema.Literal<"pack">;
|
|
376
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
377
|
+
readonly dependencies: Schema.$Record<Schema.String, Schema.brand<Schema.NonEmptyString, "VersionRange">>;
|
|
378
|
+
readonly publish: Schema.optional<Schema.Struct<{
|
|
379
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
380
|
+
readonly ignore: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
381
|
+
}>>;
|
|
382
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
383
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
384
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
385
|
+
readonly description: Schema.optional<Schema.String>;
|
|
386
|
+
readonly keywords: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
387
|
+
readonly repository: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
388
|
+
readonly type: Schema.optional<Schema.NonEmptyString>;
|
|
389
|
+
readonly url: Schema.NonEmptyString;
|
|
390
|
+
readonly directory: Schema.optional<Schema.NonEmptyString>;
|
|
391
|
+
}>]>>;
|
|
392
|
+
readonly homepage: Schema.optional<Schema.String>;
|
|
393
|
+
readonly license: Schema.optional<Schema.String>;
|
|
394
|
+
readonly bugs: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
395
|
+
readonly url: Schema.optional<Schema.NonEmptyString>;
|
|
396
|
+
readonly email: Schema.optional<Schema.NonEmptyString>;
|
|
397
|
+
}>]>>;
|
|
398
|
+
readonly authors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
399
|
+
readonly name: Schema.String;
|
|
400
|
+
readonly email: Schema.optional<Schema.String>;
|
|
401
|
+
readonly url: Schema.optional<Schema.String>;
|
|
402
|
+
}>>>;
|
|
403
|
+
readonly packages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
404
|
+
readonly purl: Schema.brand<Schema.NonEmptyString, "PackageIdentityPurl">;
|
|
405
|
+
readonly versionRange: Schema.optional<Schema.brand<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
406
|
+
readonly raw: Schema.NonEmptyString;
|
|
407
|
+
readonly scheme: Schema.NonEmptyString;
|
|
408
|
+
readonly constraints: Schema.$Array<Schema.Struct<{
|
|
409
|
+
readonly comparator: Schema.Literals<readonly ["=", "!=", "<", "<=", ">", ">="]>;
|
|
410
|
+
readonly version: Schema.NonEmptyString;
|
|
411
|
+
}>>;
|
|
412
|
+
}>>, Schema.NonEmptyString, never, never>, "VersRange">>;
|
|
413
|
+
}>>>;
|
|
414
|
+
readonly $schema: Schema.optional<Schema.String>;
|
|
415
|
+
}> | Schema.Struct<{
|
|
416
|
+
readonly type: Schema.Literal<"rule">;
|
|
417
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
418
|
+
readonly title: Schema.optional<Schema.NonEmptyString>;
|
|
419
|
+
readonly priority: Schema.optional<Schema.Int>;
|
|
420
|
+
readonly appliesTo: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
421
|
+
readonly enhances: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
422
|
+
readonly requires: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
423
|
+
readonly fallback: Schema.optional<Schema.Literals<readonly ["auto", "none"]>>;
|
|
424
|
+
readonly recommendedPacks: Schema.optional<Schema.$Array<Schema.brand<Schema.NonEmptyString, "PackSpec">>>;
|
|
425
|
+
readonly standalone: Schema.optional<Schema.Boolean>;
|
|
426
|
+
readonly publish: Schema.optional<Schema.Struct<{
|
|
427
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
428
|
+
readonly ignore: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
429
|
+
}>>;
|
|
430
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
431
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
432
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
433
|
+
readonly description: Schema.optional<Schema.String>;
|
|
434
|
+
readonly keywords: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
435
|
+
readonly repository: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
436
|
+
readonly type: Schema.optional<Schema.NonEmptyString>;
|
|
437
|
+
readonly url: Schema.NonEmptyString;
|
|
438
|
+
readonly directory: Schema.optional<Schema.NonEmptyString>;
|
|
439
|
+
}>]>>;
|
|
440
|
+
readonly homepage: Schema.optional<Schema.String>;
|
|
441
|
+
readonly license: Schema.optional<Schema.String>;
|
|
442
|
+
readonly bugs: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
443
|
+
readonly url: Schema.optional<Schema.NonEmptyString>;
|
|
444
|
+
readonly email: Schema.optional<Schema.NonEmptyString>;
|
|
445
|
+
}>]>>;
|
|
446
|
+
readonly authors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
447
|
+
readonly name: Schema.String;
|
|
448
|
+
readonly email: Schema.optional<Schema.String>;
|
|
449
|
+
readonly url: Schema.optional<Schema.String>;
|
|
450
|
+
}>>>;
|
|
451
|
+
readonly packages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
452
|
+
readonly purl: Schema.brand<Schema.NonEmptyString, "PackageIdentityPurl">;
|
|
453
|
+
readonly versionRange: Schema.optional<Schema.brand<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
454
|
+
readonly raw: Schema.NonEmptyString;
|
|
455
|
+
readonly scheme: Schema.NonEmptyString;
|
|
456
|
+
readonly constraints: Schema.$Array<Schema.Struct<{
|
|
457
|
+
readonly comparator: Schema.Literals<readonly ["=", "!=", "<", "<=", ">", ">="]>;
|
|
458
|
+
readonly version: Schema.NonEmptyString;
|
|
459
|
+
}>>;
|
|
460
|
+
}>>, Schema.NonEmptyString, never, never>, "VersRange">>;
|
|
461
|
+
}>>>;
|
|
462
|
+
readonly $schema: Schema.optional<Schema.String>;
|
|
463
|
+
}> | Schema.Struct<{
|
|
464
|
+
readonly type: Schema.Literal<"hook">;
|
|
465
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
466
|
+
readonly title: Schema.optional<Schema.NonEmptyString>;
|
|
467
|
+
readonly runtime: Schema.Literals<readonly ["bash", "node", "python"]>;
|
|
468
|
+
readonly entrypoint: Schema.NonEmptyString;
|
|
469
|
+
readonly bindings: Schema.$Array<Schema.Struct<{
|
|
470
|
+
readonly on: Schema.Literals<readonly ["session.start", "prompt.submit", "turn.end", "tool.pre", "tool.post", "subagent.stop", "compaction.pre"]>;
|
|
471
|
+
readonly match: Schema.optional<Schema.Struct<{
|
|
472
|
+
readonly tools: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["file.read", "file.write", "file.edit", "shell.exec", "web.fetch", "mcp.call"]>>>;
|
|
473
|
+
}>>;
|
|
474
|
+
readonly matcherRaw: Schema.optional<Schema.NonEmptyString>;
|
|
475
|
+
readonly targets: Schema.optional<Schema.$Record<Schema.String, Schema.Struct<{
|
|
476
|
+
readonly matcherRaw: Schema.optional<Schema.NonEmptyString>;
|
|
477
|
+
}>>>;
|
|
478
|
+
readonly requires: Schema.optional<Schema.Struct<{
|
|
479
|
+
readonly decision: Schema.Union<readonly [Schema.Struct<{
|
|
480
|
+
readonly kind: Schema.Literal<"observe">;
|
|
481
|
+
}>, Schema.Struct<{
|
|
482
|
+
readonly kind: Schema.Literal<"block">;
|
|
483
|
+
readonly outcomes: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["allow", "deny", "ask"]>>>;
|
|
484
|
+
}>, Schema.Struct<{
|
|
485
|
+
readonly kind: Schema.Literal<"modify">;
|
|
486
|
+
readonly operations: Schema.optional<Schema.NonEmptyArray<Schema.Literals<readonly ["modify-input", "inject-context", "modify-output", "synthesize", "redact"]>>>;
|
|
487
|
+
}>]>;
|
|
488
|
+
}>>;
|
|
489
|
+
}>>;
|
|
490
|
+
readonly timeoutMs: Schema.optional<Schema.Int>;
|
|
491
|
+
readonly capabilities: Schema.optional<Schema.Struct<{
|
|
492
|
+
readonly network: Schema.optional<Schema.Boolean>;
|
|
493
|
+
readonly filesystemWrite: Schema.optional<Schema.Boolean>;
|
|
494
|
+
readonly exec: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
495
|
+
readonly env: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
496
|
+
}>>;
|
|
497
|
+
readonly enhances: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
498
|
+
readonly requires: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
499
|
+
readonly fallback: Schema.optional<Schema.Literals<readonly ["auto", "none"]>>;
|
|
500
|
+
readonly recommendedPacks: Schema.optional<Schema.$Array<Schema.brand<Schema.NonEmptyString, "PackSpec">>>;
|
|
501
|
+
readonly standalone: Schema.optional<Schema.Boolean>;
|
|
502
|
+
readonly publish: Schema.optional<Schema.Struct<{
|
|
503
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
504
|
+
readonly ignore: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
505
|
+
}>>;
|
|
506
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
507
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
508
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
509
|
+
readonly description: Schema.optional<Schema.String>;
|
|
510
|
+
readonly keywords: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
511
|
+
readonly repository: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
512
|
+
readonly type: Schema.optional<Schema.NonEmptyString>;
|
|
513
|
+
readonly url: Schema.NonEmptyString;
|
|
514
|
+
readonly directory: Schema.optional<Schema.NonEmptyString>;
|
|
515
|
+
}>]>>;
|
|
516
|
+
readonly homepage: Schema.optional<Schema.String>;
|
|
517
|
+
readonly license: Schema.optional<Schema.String>;
|
|
518
|
+
readonly bugs: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
519
|
+
readonly url: Schema.optional<Schema.NonEmptyString>;
|
|
520
|
+
readonly email: Schema.optional<Schema.NonEmptyString>;
|
|
521
|
+
}>]>>;
|
|
522
|
+
readonly authors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
523
|
+
readonly name: Schema.String;
|
|
524
|
+
readonly email: Schema.optional<Schema.String>;
|
|
525
|
+
readonly url: Schema.optional<Schema.String>;
|
|
526
|
+
}>>>;
|
|
527
|
+
readonly packages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
528
|
+
readonly purl: Schema.brand<Schema.NonEmptyString, "PackageIdentityPurl">;
|
|
529
|
+
readonly versionRange: Schema.optional<Schema.brand<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
530
|
+
readonly raw: Schema.NonEmptyString;
|
|
531
|
+
readonly scheme: Schema.NonEmptyString;
|
|
532
|
+
readonly constraints: Schema.$Array<Schema.Struct<{
|
|
533
|
+
readonly comparator: Schema.Literals<readonly ["=", "!=", "<", "<=", ">", ">="]>;
|
|
534
|
+
readonly version: Schema.NonEmptyString;
|
|
535
|
+
}>>;
|
|
536
|
+
}>>, Schema.NonEmptyString, never, never>, "VersRange">>;
|
|
537
|
+
}>>>;
|
|
538
|
+
readonly $schema: Schema.optional<Schema.String>;
|
|
539
|
+
}> | Schema.Struct<{
|
|
540
|
+
readonly type: Schema.Literal<"knowledge">;
|
|
541
|
+
readonly format: Schema.Struct<{
|
|
542
|
+
readonly name: Schema.Literal<"okf">;
|
|
543
|
+
readonly version: Schema.Literal<"0.2">;
|
|
544
|
+
}>;
|
|
545
|
+
readonly bundleRoot: Schema.Literal<"src">;
|
|
546
|
+
readonly instructionEntry: Schema.optionalKey<Schema.Boolean>;
|
|
547
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
548
|
+
readonly enhances: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
549
|
+
readonly requires: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
550
|
+
readonly fallback: Schema.optional<Schema.Literals<readonly ["auto", "none"]>>;
|
|
551
|
+
readonly recommendedPacks: Schema.optional<Schema.$Array<Schema.brand<Schema.NonEmptyString, "PackSpec">>>;
|
|
552
|
+
readonly standalone: Schema.optional<Schema.Boolean>;
|
|
553
|
+
readonly publish: Schema.optional<Schema.Struct<{
|
|
554
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
555
|
+
readonly ignore: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
556
|
+
}>>;
|
|
557
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
558
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
559
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
560
|
+
readonly description: Schema.optional<Schema.String>;
|
|
561
|
+
readonly keywords: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
562
|
+
readonly repository: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
563
|
+
readonly type: Schema.optional<Schema.NonEmptyString>;
|
|
564
|
+
readonly url: Schema.NonEmptyString;
|
|
565
|
+
readonly directory: Schema.optional<Schema.NonEmptyString>;
|
|
566
|
+
}>]>>;
|
|
567
|
+
readonly homepage: Schema.optional<Schema.String>;
|
|
568
|
+
readonly license: Schema.optional<Schema.String>;
|
|
569
|
+
readonly bugs: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
570
|
+
readonly url: Schema.optional<Schema.NonEmptyString>;
|
|
571
|
+
readonly email: Schema.optional<Schema.NonEmptyString>;
|
|
572
|
+
}>]>>;
|
|
573
|
+
readonly authors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
574
|
+
readonly name: Schema.String;
|
|
575
|
+
readonly email: Schema.optional<Schema.String>;
|
|
576
|
+
readonly url: Schema.optional<Schema.String>;
|
|
577
|
+
}>>>;
|
|
578
|
+
readonly packages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
579
|
+
readonly purl: Schema.brand<Schema.NonEmptyString, "PackageIdentityPurl">;
|
|
580
|
+
readonly versionRange: Schema.optional<Schema.brand<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
581
|
+
readonly raw: Schema.NonEmptyString;
|
|
582
|
+
readonly scheme: Schema.NonEmptyString;
|
|
583
|
+
readonly constraints: Schema.$Array<Schema.Struct<{
|
|
584
|
+
readonly comparator: Schema.Literals<readonly ["=", "!=", "<", "<=", ">", ">="]>;
|
|
585
|
+
readonly version: Schema.NonEmptyString;
|
|
586
|
+
}>>;
|
|
587
|
+
}>>, Schema.NonEmptyString, never, never>, "VersRange">>;
|
|
588
|
+
}>>>;
|
|
589
|
+
readonly $schema: Schema.optional<Schema.String>;
|
|
590
|
+
}>;
|
|
591
|
+
export interface ManifestResolutionInput {
|
|
592
|
+
readonly type: ExtensionType;
|
|
593
|
+
readonly entries: readonly ZipEntry[];
|
|
594
|
+
readonly readEntry: (fileName: string) => Effect.Effect<Uint8Array, ArchiveGuardrailError>;
|
|
595
|
+
}
|
|
596
|
+
export interface DeclaredPublishIdentity {
|
|
597
|
+
readonly owner: Handle;
|
|
598
|
+
readonly type: ExtensionType;
|
|
599
|
+
readonly name: ExtensionName;
|
|
600
|
+
readonly version: Version;
|
|
601
|
+
}
|
|
602
|
+
export interface ResolvedManifest {
|
|
603
|
+
readonly identity: ManifestIdentity;
|
|
604
|
+
readonly raw: unknown;
|
|
605
|
+
readonly fileName: string;
|
|
606
|
+
}
|
|
607
|
+
export declare const validateManifestHasNoAgentsField: (fileName: string, raw: unknown) => Result.Result<void, ManifestError>;
|
|
608
|
+
export declare const resolveManifest: (input: ManifestResolutionInput) => Effect.Effect<ResolvedManifest, ManifestError | ArchiveGuardrailError>;
|
|
609
|
+
export declare const validateDeclaredManifestAlignment: (declaredIdentity: DeclaredPublishIdentity, manifest: ManifestIdentity) => Result.Result<void, ManifestError>;
|
|
610
|
+
export {};
|
|
611
|
+
//# sourceMappingURL=manifest-policy.d.ts.map
|