@agentxm/extension-model 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 +17 -0
- package/dist/src/unstable/agent-capabilities/catalog.d.ts +47000 -0
- package/dist/src/unstable/agent-capabilities/catalog.js +172 -0
- package/dist/src/unstable/agent-capabilities/data/agents/adal.d.ts +162 -0
- package/dist/src/unstable/agent-capabilities/data/agents/adal.js +134 -0
- package/dist/src/unstable/agent-capabilities/data/agents/aider-desk.d.ts +167 -0
- package/dist/src/unstable/agent-capabilities/data/agents/aider-desk.js +133 -0
- package/dist/src/unstable/agent-capabilities/data/agents/amp.d.ts +203 -0
- package/dist/src/unstable/agent-capabilities/data/agents/amp.js +187 -0
- package/dist/src/unstable/agent-capabilities/data/agents/antigravity-cli.d.ts +186 -0
- package/dist/src/unstable/agent-capabilities/data/agents/antigravity-cli.js +140 -0
- package/dist/src/unstable/agent-capabilities/data/agents/antigravity.d.ts +357 -0
- package/dist/src/unstable/agent-capabilities/data/agents/antigravity.js +294 -0
- package/dist/src/unstable/agent-capabilities/data/agents/augment.d.ts +383 -0
- package/dist/src/unstable/agent-capabilities/data/agents/augment.js +329 -0
- package/dist/src/unstable/agent-capabilities/data/agents/chatgpt.d.ts +159 -0
- package/dist/src/unstable/agent-capabilities/data/agents/chatgpt.js +117 -0
- package/dist/src/unstable/agent-capabilities/data/agents/claude-ai.d.ts +153 -0
- package/dist/src/unstable/agent-capabilities/data/agents/claude-ai.js +105 -0
- package/dist/src/unstable/agent-capabilities/data/agents/claude-code.d.ts +460 -0
- package/dist/src/unstable/agent-capabilities/data/agents/claude-code.js +406 -0
- package/dist/src/unstable/agent-capabilities/data/agents/cline.d.ts +225 -0
- package/dist/src/unstable/agent-capabilities/data/agents/cline.js +190 -0
- package/dist/src/unstable/agent-capabilities/data/agents/codearts-agent.d.ts +246 -0
- package/dist/src/unstable/agent-capabilities/data/agents/codearts-agent.js +206 -0
- package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.d.ts +420 -0
- package/dist/src/unstable/agent-capabilities/data/agents/codebuddy.js +378 -0
- package/dist/src/unstable/agent-capabilities/data/agents/codemaker.d.ts +143 -0
- package/dist/src/unstable/agent-capabilities/data/agents/codemaker.js +112 -0
- package/dist/src/unstable/agent-capabilities/data/agents/codestudio.d.ts +165 -0
- package/dist/src/unstable/agent-capabilities/data/agents/codestudio.js +136 -0
- package/dist/src/unstable/agent-capabilities/data/agents/codex.d.ts +458 -0
- package/dist/src/unstable/agent-capabilities/data/agents/codex.js +399 -0
- package/dist/src/unstable/agent-capabilities/data/agents/command-code.d.ts +247 -0
- package/dist/src/unstable/agent-capabilities/data/agents/command-code.js +222 -0
- package/dist/src/unstable/agent-capabilities/data/agents/continue.d.ts +322 -0
- package/dist/src/unstable/agent-capabilities/data/agents/continue.js +273 -0
- package/dist/src/unstable/agent-capabilities/data/agents/cortex.d.ts +306 -0
- package/dist/src/unstable/agent-capabilities/data/agents/cortex.js +241 -0
- package/dist/src/unstable/agent-capabilities/data/agents/cowork.d.ts +185 -0
- package/dist/src/unstable/agent-capabilities/data/agents/cowork.js +133 -0
- package/dist/src/unstable/agent-capabilities/data/agents/crush.d.ts +249 -0
- package/dist/src/unstable/agent-capabilities/data/agents/crush.js +218 -0
- package/dist/src/unstable/agent-capabilities/data/agents/cursor.d.ts +300 -0
- package/dist/src/unstable/agent-capabilities/data/agents/cursor.js +282 -0
- package/dist/src/unstable/agent-capabilities/data/agents/deepagents.d.ts +159 -0
- package/dist/src/unstable/agent-capabilities/data/agents/deepagents.js +137 -0
- package/dist/src/unstable/agent-capabilities/data/agents/devin.d.ts +410 -0
- package/dist/src/unstable/agent-capabilities/data/agents/devin.js +358 -0
- package/dist/src/unstable/agent-capabilities/data/agents/dexto.d.ts +166 -0
- package/dist/src/unstable/agent-capabilities/data/agents/dexto.js +141 -0
- package/dist/src/unstable/agent-capabilities/data/agents/droid.d.ts +318 -0
- package/dist/src/unstable/agent-capabilities/data/agents/droid.js +257 -0
- package/dist/src/unstable/agent-capabilities/data/agents/firebender.d.ts +313 -0
- package/dist/src/unstable/agent-capabilities/data/agents/firebender.js +244 -0
- package/dist/src/unstable/agent-capabilities/data/agents/forgecode.d.ts +193 -0
- package/dist/src/unstable/agent-capabilities/data/agents/forgecode.js +160 -0
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-app.d.ts +153 -0
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-app.js +105 -0
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.d.ts +424 -0
- package/dist/src/unstable/agent-capabilities/data/agents/gemini-cli.js +411 -0
- package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.d.ts +300 -0
- package/dist/src/unstable/agent-capabilities/data/agents/github-copilot-cli.js +307 -0
- package/dist/src/unstable/agent-capabilities/data/agents/goose.d.ts +162 -0
- package/dist/src/unstable/agent-capabilities/data/agents/goose.js +131 -0
- package/dist/src/unstable/agent-capabilities/data/agents/grok-cli.d.ts +186 -0
- package/dist/src/unstable/agent-capabilities/data/agents/grok-cli.js +164 -0
- package/dist/src/unstable/agent-capabilities/data/agents/hermes.d.ts +303 -0
- package/dist/src/unstable/agent-capabilities/data/agents/hermes.js +223 -0
- package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.d.ts +231 -0
- package/dist/src/unstable/agent-capabilities/data/agents/ibm-bob.js +200 -0
- package/dist/src/unstable/agent-capabilities/data/agents/iflow-cli.d.ts +182 -0
- package/dist/src/unstable/agent-capabilities/data/agents/iflow-cli.js +126 -0
- package/dist/src/unstable/agent-capabilities/data/agents/index.d.ts +67 -0
- package/dist/src/unstable/agent-capabilities/data/agents/index.js +67 -0
- package/dist/src/unstable/agent-capabilities/data/agents/junie.d.ts +219 -0
- package/dist/src/unstable/agent-capabilities/data/agents/junie.js +200 -0
- package/dist/src/unstable/agent-capabilities/data/agents/kilo.d.ts +282 -0
- package/dist/src/unstable/agent-capabilities/data/agents/kilo.js +260 -0
- package/dist/src/unstable/agent-capabilities/data/agents/kimi-cli.d.ts +350 -0
- package/dist/src/unstable/agent-capabilities/data/agents/kimi-cli.js +274 -0
- package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.d.ts +227 -0
- package/dist/src/unstable/agent-capabilities/data/agents/kiro-cli.js +197 -0
- package/dist/src/unstable/agent-capabilities/data/agents/kode.d.ts +166 -0
- package/dist/src/unstable/agent-capabilities/data/agents/kode.js +141 -0
- package/dist/src/unstable/agent-capabilities/data/agents/lingma.d.ts +185 -0
- package/dist/src/unstable/agent-capabilities/data/agents/lingma.js +149 -0
- package/dist/src/unstable/agent-capabilities/data/agents/mcpjam.d.ts +144 -0
- package/dist/src/unstable/agent-capabilities/data/agents/mcpjam.js +116 -0
- package/dist/src/unstable/agent-capabilities/data/agents/minimax-code.d.ts +138 -0
- package/dist/src/unstable/agent-capabilities/data/agents/minimax-code.js +93 -0
- package/dist/src/unstable/agent-capabilities/data/agents/mistral-vibe.d.ts +244 -0
- package/dist/src/unstable/agent-capabilities/data/agents/mistral-vibe.js +200 -0
- package/dist/src/unstable/agent-capabilities/data/agents/mux.d.ts +155 -0
- package/dist/src/unstable/agent-capabilities/data/agents/mux.js +127 -0
- package/dist/src/unstable/agent-capabilities/data/agents/neovate.d.ts +211 -0
- package/dist/src/unstable/agent-capabilities/data/agents/neovate.js +178 -0
- package/dist/src/unstable/agent-capabilities/data/agents/ona.d.ts +167 -0
- package/dist/src/unstable/agent-capabilities/data/agents/ona.js +110 -0
- package/dist/src/unstable/agent-capabilities/data/agents/openclaw.d.ts +139 -0
- package/dist/src/unstable/agent-capabilities/data/agents/openclaw.js +114 -0
- package/dist/src/unstable/agent-capabilities/data/agents/opencode.d.ts +220 -0
- package/dist/src/unstable/agent-capabilities/data/agents/opencode.js +192 -0
- package/dist/src/unstable/agent-capabilities/data/agents/openhands.d.ts +245 -0
- package/dist/src/unstable/agent-capabilities/data/agents/openhands.js +184 -0
- package/dist/src/unstable/agent-capabilities/data/agents/pi.d.ts +185 -0
- package/dist/src/unstable/agent-capabilities/data/agents/pi.js +169 -0
- package/dist/src/unstable/agent-capabilities/data/agents/pochi.d.ts +199 -0
- package/dist/src/unstable/agent-capabilities/data/agents/pochi.js +163 -0
- package/dist/src/unstable/agent-capabilities/data/agents/qoder-cn.d.ts +199 -0
- package/dist/src/unstable/agent-capabilities/data/agents/qoder-cn.js +141 -0
- package/dist/src/unstable/agent-capabilities/data/agents/qoder.d.ts +414 -0
- package/dist/src/unstable/agent-capabilities/data/agents/qoder.js +378 -0
- package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.d.ts +406 -0
- package/dist/src/unstable/agent-capabilities/data/agents/qwen-code.js +345 -0
- package/dist/src/unstable/agent-capabilities/data/agents/replit.d.ts +144 -0
- package/dist/src/unstable/agent-capabilities/data/agents/replit.js +116 -0
- package/dist/src/unstable/agent-capabilities/data/agents/roo.d.ts +192 -0
- package/dist/src/unstable/agent-capabilities/data/agents/roo.js +180 -0
- package/dist/src/unstable/agent-capabilities/data/agents/rovodev.d.ts +189 -0
- package/dist/src/unstable/agent-capabilities/data/agents/rovodev.js +156 -0
- package/dist/src/unstable/agent-capabilities/data/agents/tabnine-cli.d.ts +280 -0
- package/dist/src/unstable/agent-capabilities/data/agents/tabnine-cli.js +223 -0
- package/dist/src/unstable/agent-capabilities/data/agents/trae-cn.d.ts +188 -0
- package/dist/src/unstable/agent-capabilities/data/agents/trae-cn.js +156 -0
- package/dist/src/unstable/agent-capabilities/data/agents/trae.d.ts +188 -0
- package/dist/src/unstable/agent-capabilities/data/agents/trae.js +156 -0
- package/dist/src/unstable/agent-capabilities/data/agents/warp.d.ts +169 -0
- package/dist/src/unstable/agent-capabilities/data/agents/warp.js +133 -0
- package/dist/src/unstable/agent-capabilities/data/agents/windsurf.d.ts +414 -0
- package/dist/src/unstable/agent-capabilities/data/agents/windsurf.js +326 -0
- package/dist/src/unstable/agent-capabilities/data/agents/zed.d.ts +168 -0
- package/dist/src/unstable/agent-capabilities/data/agents/zed.js +109 -0
- package/dist/src/unstable/agent-capabilities/data/agents/zencoder.d.ts +168 -0
- package/dist/src/unstable/agent-capabilities/data/agents/zencoder.js +137 -0
- package/dist/src/unstable/agent-capabilities/data/agents/zenflow.d.ts +153 -0
- package/dist/src/unstable/agent-capabilities/data/agents/zenflow.js +96 -0
- package/dist/src/unstable/agent-capabilities/derive.d.ts +129 -0
- package/dist/src/unstable/agent-capabilities/derive.js +389 -0
- package/dist/src/unstable/agent-capabilities/index.d.ts +15 -0
- package/dist/src/unstable/agent-capabilities/index.js +15 -0
- package/dist/src/unstable/agent-capabilities/lookup.d.ts +10 -0
- package/dist/src/unstable/agent-capabilities/lookup.js +9 -0
- package/dist/src/unstable/agent-capabilities/schema.d.ts +3788 -0
- package/dist/src/unstable/agent-capabilities/schema.js +1218 -0
- package/dist/src/unstable/agent-capabilities/verification.d.ts +25 -0
- package/dist/src/unstable/agent-capabilities/verification.js +40 -0
- package/dist/src/unstable/agents/registry.d.ts +33 -0
- package/dist/src/unstable/agents/registry.js +50 -0
- package/dist/src/unstable/agents/types.d.ts +126 -0
- package/dist/src/unstable/agents/types.js +17 -0
- package/dist/src/unstable/date-time.d.ts +17 -0
- package/dist/src/unstable/date-time.js +30 -0
- package/dist/src/unstable/discovery-walk.d.ts +8 -0
- package/dist/src/unstable/discovery-walk.js +15 -0
- package/dist/src/unstable/extension-types/index.d.ts +8 -0
- package/dist/src/unstable/extension-types/index.js +8 -0
- package/dist/src/unstable/extension-types/schema.d.ts +154 -0
- package/dist/src/unstable/extension-types/schema.js +102 -0
- package/dist/src/unstable/extension-types/standards.d.ts +29 -0
- package/dist/src/unstable/extension-types/standards.js +29 -0
- package/dist/src/unstable/extensions/common.d.ts +539 -0
- package/dist/src/unstable/extensions/common.js +605 -0
- package/dist/src/unstable/extensions/deprecation.d.ts +42 -0
- package/dist/src/unstable/extensions/deprecation.js +46 -0
- package/dist/src/unstable/extensions/fqn-pattern.d.ts +17 -0
- package/dist/src/unstable/extensions/fqn-pattern.js +63 -0
- package/dist/src/unstable/extensions/fqn.d.ts +51 -0
- package/dist/src/unstable/extensions/fqn.js +51 -0
- package/dist/src/unstable/extensions/handle.d.ts +16 -0
- package/dist/src/unstable/extensions/handle.js +30 -0
- package/dist/src/unstable/extensions/index.d.ts +13 -0
- package/dist/src/unstable/extensions/index.js +13 -0
- package/dist/src/unstable/extensions/installable-types.d.ts +12 -0
- package/dist/src/unstable/extensions/installable-types.js +21 -0
- package/dist/src/unstable/extensions/license.d.ts +16 -0
- package/dist/src/unstable/extensions/license.js +29 -0
- package/dist/src/unstable/extensions/manifest-metadata.d.ts +18 -0
- package/dist/src/unstable/extensions/manifest-metadata.js +61 -0
- package/dist/src/unstable/extensions/refs/extension-ref.d.ts +20 -0
- package/dist/src/unstable/extensions/refs/extension-ref.js +12 -0
- package/dist/src/unstable/extensions/refs/hook.d.ts +29 -0
- package/dist/src/unstable/extensions/refs/hook.js +8 -0
- package/dist/src/unstable/extensions/refs/knowledge.d.ts +15 -0
- package/dist/src/unstable/extensions/refs/knowledge.js +2 -0
- package/dist/src/unstable/extensions/refs/mcp-server.d.ts +19 -0
- package/dist/src/unstable/extensions/refs/mcp-server.js +8 -0
- package/dist/src/unstable/extensions/refs/pack.d.ts +17 -0
- package/dist/src/unstable/extensions/refs/pack.js +10 -0
- package/dist/src/unstable/extensions/refs/ref-base.d.ts +125 -0
- package/dist/src/unstable/extensions/refs/ref-base.js +12 -0
- package/dist/src/unstable/extensions/refs/rule.d.ts +27 -0
- package/dist/src/unstable/extensions/refs/rule.js +8 -0
- package/dist/src/unstable/extensions/refs/skill.d.ts +28 -0
- package/dist/src/unstable/extensions/refs/skill.js +11 -0
- package/dist/src/unstable/extensions/refs/subagent.d.ts +19 -0
- package/dist/src/unstable/extensions/refs/subagent.js +8 -0
- package/dist/src/unstable/extensions/registry-source.d.ts +37 -0
- package/dist/src/unstable/extensions/registry-source.js +158 -0
- package/dist/src/unstable/extensions/release-age.d.ts +36 -0
- package/dist/src/unstable/extensions/release-age.js +11 -0
- package/dist/src/unstable/extensions/universal-skills-dir.d.ts +58 -0
- package/dist/src/unstable/extensions/universal-skills-dir.js +68 -0
- package/dist/src/unstable/hooks/manifest-schema.d.ts +175 -0
- package/dist/src/unstable/hooks/manifest-schema.js +112 -0
- package/dist/src/unstable/knowledge/concept-ref.d.ts +34 -0
- package/dist/src/unstable/knowledge/concept-ref.js +114 -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/manifest-schema.d.ts +60 -0
- package/dist/src/unstable/knowledge/manifest-schema.js +34 -0
- package/dist/src/unstable/mcps/manifest-schema.d.ts +899 -0
- package/dist/src/unstable/mcps/manifest-schema.js +230 -0
- package/dist/src/unstable/package-urls/companion-package.d.ts +14 -0
- package/dist/src/unstable/package-urls/companion-package.js +44 -0
- package/dist/src/unstable/package-urls/index.d.ts +4 -0
- package/dist/src/unstable/package-urls/index.js +4 -0
- package/dist/src/unstable/package-urls/internal.d.ts +6 -0
- package/dist/src/unstable/package-urls/internal.js +17 -0
- package/dist/src/unstable/package-urls/package-identity-purl.d.ts +5 -0
- package/dist/src/unstable/package-urls/package-identity-purl.js +26 -0
- package/dist/src/unstable/package-urls/vers-range.d.ts +34 -0
- package/dist/src/unstable/package-urls/vers-range.js +163 -0
- package/dist/src/unstable/packaging/index.d.ts +8 -0
- package/dist/src/unstable/packaging/index.js +8 -0
- package/dist/src/unstable/packaging/package-type.d.ts +23 -0
- package/dist/src/unstable/packaging/package-type.js +31 -0
- package/dist/src/unstable/packaging/package-url.d.ts +50 -0
- package/dist/src/unstable/packaging/package-url.js +93 -0
- package/dist/src/unstable/packs/manifest-schema.d.ts +66 -0
- package/dist/src/unstable/packs/manifest-schema.js +34 -0
- package/dist/src/unstable/path-types.d.ts +22 -0
- package/dist/src/unstable/path-types.js +48 -0
- package/dist/src/unstable/rules/manifest-schema.d.ts +70 -0
- package/dist/src/unstable/rules/manifest-schema.js +43 -0
- package/dist/src/unstable/schema-issues.d.ts +13 -0
- package/dist/src/unstable/schema-issues.js +34 -0
- package/dist/src/unstable/skills/manifest-schema.d.ts +69 -0
- package/dist/src/unstable/skills/manifest-schema.js +31 -0
- package/dist/src/unstable/sources/forge-grammar.d.ts +22 -0
- package/dist/src/unstable/sources/forge-grammar.js +50 -0
- package/dist/src/unstable/sources/parser.d.ts +85 -0
- package/dist/src/unstable/sources/parser.js +122 -0
- package/dist/src/unstable/sources/printer.d.ts +14 -0
- package/dist/src/unstable/sources/printer.js +45 -0
- package/dist/src/unstable/sources/source-hash.d.ts +24 -0
- package/dist/src/unstable/sources/source-hash.js +22 -0
- package/dist/src/unstable/sources/source-host-provider.d.ts +112 -0
- package/dist/src/unstable/sources/source-host-provider.js +11 -0
- package/dist/src/unstable/sources/types.d.ts +262 -0
- package/dist/src/unstable/sources/types.js +127 -0
- package/dist/src/unstable/sources/workspace.d.ts +13 -0
- package/dist/src/unstable/sources/workspace.js +13 -0
- package/dist/src/unstable/subagents/manifest-schema.d.ts +81 -0
- package/dist/src/unstable/subagents/manifest-schema.js +43 -0
- package/dist/src/unstable/version-constraints/version-constraints.d.ts +71 -0
- package/dist/src/unstable/version-constraints/version-constraints.js +144 -0
- package/dist/src/unstable/workspace-files.d.ts +13 -0
- package/dist/src/unstable/workspace-files.js +13 -0
- package/dist/src/unstable/workspace-scope.d.ts +11 -0
- package/dist/src/unstable/workspace-scope.js +10 -0
- package/package.json +271 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core types for source parsing and identification.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
*/
|
|
7
|
+
import type * as Option from "effect/Option";
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import type { ExtensionName, ExtensionType } from "../extensions/common.js";
|
|
10
|
+
import type { Handle } from "../extensions/handle.js";
|
|
11
|
+
/**
|
|
12
|
+
* Source type discriminator for extension origins.
|
|
13
|
+
*
|
|
14
|
+
* - `"github"` - GitHub repository source
|
|
15
|
+
* - `"gitlab"` - GitLab repository source
|
|
16
|
+
* - `"bitbucket"` - Bitbucket repository source
|
|
17
|
+
* - `"azurerepos"` - Azure Repos repository source
|
|
18
|
+
* - `"git"` - Generic git repository source
|
|
19
|
+
* - `"registry"` - Package registry source
|
|
20
|
+
* - `"local"` - Local filesystem path source
|
|
21
|
+
* - `"inline"` - Inline workspace configuration
|
|
22
|
+
* - `"workspace"` - Intrinsic source in the selected scope's managed extension tree
|
|
23
|
+
*
|
|
24
|
+
* @experimental
|
|
25
|
+
*/
|
|
26
|
+
export declare const SourceTypeSchema: Schema.Literals<readonly ["github", "gitlab", "bitbucket", "azurerepos", "git", "registry", "local", "inline", "workspace"]>;
|
|
27
|
+
/**
|
|
28
|
+
* Inferred type for SourceTypeSchema.
|
|
29
|
+
*
|
|
30
|
+
* @experimental This API is unstable and may change without notice.
|
|
31
|
+
*/
|
|
32
|
+
export type SourceType = Schema.Schema.Type<typeof SourceTypeSchema>;
|
|
33
|
+
/**
|
|
34
|
+
* Ref type discriminator for extension ref hosting categories.
|
|
35
|
+
*
|
|
36
|
+
* - `"git-hosted"` - Git-based sources (GitHub, GitLab, Bitbucket, AzureRepos, Git)
|
|
37
|
+
* - `"registry"` - Package registry source
|
|
38
|
+
* - `"local"` - Local filesystem path source
|
|
39
|
+
* - `"workspace"` - Intrinsic managed workspace package
|
|
40
|
+
*
|
|
41
|
+
* @experimental This API is unstable and may change without notice.
|
|
42
|
+
*/
|
|
43
|
+
export declare const RefTypeSchema: Schema.Literals<readonly ["git-hosted", "registry", "local", "workspace"]>;
|
|
44
|
+
/**
|
|
45
|
+
* Inferred type for RefTypeSchema.
|
|
46
|
+
*
|
|
47
|
+
* @experimental This API is unstable and may change without notice.
|
|
48
|
+
*/
|
|
49
|
+
export type RefType = Schema.Schema.Type<typeof RefTypeSchema>;
|
|
50
|
+
export declare const SourceSegmentSchema: Schema.NonEmptyString;
|
|
51
|
+
export declare const SourceRefSchema: Schema.NonEmptyString;
|
|
52
|
+
export declare const SourceNamespaceSchema: Schema.NonEmptyString;
|
|
53
|
+
export declare const SourceSubPathSchema: Schema.NonEmptyString;
|
|
54
|
+
export declare const GitHostedSourceParamPartsSchema: Schema.Struct<{
|
|
55
|
+
sourceName: Schema.optional<Schema.String>;
|
|
56
|
+
owner: Schema.NonEmptyString;
|
|
57
|
+
repo: Schema.NonEmptyString;
|
|
58
|
+
ref: Schema.OptionFromOptionalKey<Schema.NonEmptyString>;
|
|
59
|
+
subPath: Schema.OptionFromOptionalKey<Schema.NonEmptyString>;
|
|
60
|
+
}>;
|
|
61
|
+
export type GitHostedSourceParamParts = Schema.Schema.Type<typeof GitHostedSourceParamPartsSchema>;
|
|
62
|
+
export declare const AzureReposSourceParamPartsSchema: Schema.Struct<{
|
|
63
|
+
sourceName: Schema.optional<Schema.String>;
|
|
64
|
+
organization: Schema.NonEmptyString;
|
|
65
|
+
project: Schema.NonEmptyString;
|
|
66
|
+
repo: Schema.NonEmptyString;
|
|
67
|
+
ref: Schema.OptionFromOptionalKey<Schema.NonEmptyString>;
|
|
68
|
+
subPath: Schema.OptionFromOptionalKey<Schema.NonEmptyString>;
|
|
69
|
+
}>;
|
|
70
|
+
export type AzureReposSourceParamParts = Schema.Schema.Type<typeof AzureReposSourceParamPartsSchema>;
|
|
71
|
+
export declare const GitHubSourceParamsSchema: Schema.Struct<{
|
|
72
|
+
readonly sourceName: Schema.optional<Schema.String>;
|
|
73
|
+
readonly owner: Schema.NonEmptyString;
|
|
74
|
+
readonly repo: Schema.NonEmptyString;
|
|
75
|
+
readonly ref: Schema.OptionFromOptionalKey<Schema.NonEmptyString>;
|
|
76
|
+
readonly subPath: Schema.OptionFromOptionalKey<Schema.NonEmptyString>;
|
|
77
|
+
readonly type: Schema.Literal<"github">;
|
|
78
|
+
}>;
|
|
79
|
+
export declare const GitLabSourceParamsSchema: Schema.Struct<{
|
|
80
|
+
readonly sourceName: Schema.optional<Schema.String>;
|
|
81
|
+
readonly owner: Schema.NonEmptyString;
|
|
82
|
+
readonly repo: Schema.NonEmptyString;
|
|
83
|
+
readonly ref: Schema.OptionFromOptionalKey<Schema.NonEmptyString>;
|
|
84
|
+
readonly subPath: Schema.OptionFromOptionalKey<Schema.NonEmptyString>;
|
|
85
|
+
readonly type: Schema.Literal<"gitlab">;
|
|
86
|
+
}>;
|
|
87
|
+
export declare const BitbucketSourceParamsSchema: Schema.Struct<{
|
|
88
|
+
readonly sourceName: Schema.optional<Schema.String>;
|
|
89
|
+
readonly owner: Schema.NonEmptyString;
|
|
90
|
+
readonly repo: Schema.NonEmptyString;
|
|
91
|
+
readonly ref: Schema.OptionFromOptionalKey<Schema.NonEmptyString>;
|
|
92
|
+
readonly subPath: Schema.OptionFromOptionalKey<Schema.NonEmptyString>;
|
|
93
|
+
readonly type: Schema.Literal<"bitbucket">;
|
|
94
|
+
}>;
|
|
95
|
+
export declare const AzureReposSourceParamsSchema: Schema.Struct<{
|
|
96
|
+
readonly sourceName: Schema.optional<Schema.String>;
|
|
97
|
+
readonly organization: Schema.NonEmptyString;
|
|
98
|
+
readonly project: Schema.NonEmptyString;
|
|
99
|
+
readonly repo: Schema.NonEmptyString;
|
|
100
|
+
readonly ref: Schema.OptionFromOptionalKey<Schema.NonEmptyString>;
|
|
101
|
+
readonly subPath: Schema.OptionFromOptionalKey<Schema.NonEmptyString>;
|
|
102
|
+
readonly type: Schema.Literal<"azurerepos">;
|
|
103
|
+
}>;
|
|
104
|
+
/** @experimental */
|
|
105
|
+
export interface GitHubSourceHost {
|
|
106
|
+
readonly type: "github";
|
|
107
|
+
readonly name: string;
|
|
108
|
+
readonly url: URL;
|
|
109
|
+
}
|
|
110
|
+
/** @experimental */
|
|
111
|
+
export interface GitLabSourceHost {
|
|
112
|
+
readonly type: "gitlab";
|
|
113
|
+
readonly name: string;
|
|
114
|
+
readonly url: URL;
|
|
115
|
+
}
|
|
116
|
+
/** @experimental */
|
|
117
|
+
export interface BitbucketSourceHost {
|
|
118
|
+
readonly type: "bitbucket";
|
|
119
|
+
readonly name: string;
|
|
120
|
+
readonly url: URL;
|
|
121
|
+
}
|
|
122
|
+
/** @experimental */
|
|
123
|
+
export interface AzureReposSourceHost {
|
|
124
|
+
readonly type: "azurerepos";
|
|
125
|
+
readonly name: string;
|
|
126
|
+
readonly url: URL;
|
|
127
|
+
}
|
|
128
|
+
/** Self-describing — the git URL lives in SourceParams. @experimental */
|
|
129
|
+
export interface GitSourceHost {
|
|
130
|
+
readonly type: "git";
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Registry source host with URL.
|
|
134
|
+
* @experimental
|
|
135
|
+
*/
|
|
136
|
+
export interface RegistrySourceHost {
|
|
137
|
+
readonly type: "registry";
|
|
138
|
+
readonly name: string;
|
|
139
|
+
readonly location: URL;
|
|
140
|
+
}
|
|
141
|
+
/** Self-describing — the filesystem path lives in SourceParams. @experimental */
|
|
142
|
+
export interface LocalSourceHost {
|
|
143
|
+
readonly type: "local";
|
|
144
|
+
}
|
|
145
|
+
/** Self-describing — inline transport details live in SourceParams. @experimental */
|
|
146
|
+
export interface InlineSourceHost {
|
|
147
|
+
readonly type: "inline";
|
|
148
|
+
}
|
|
149
|
+
/** Intrinsic managed-tree source whose scope is bound by its settings document. @experimental */
|
|
150
|
+
export interface WorkspaceSourceHost {
|
|
151
|
+
readonly type: "workspace";
|
|
152
|
+
}
|
|
153
|
+
/** @experimental */
|
|
154
|
+
export type SourceHost = GitHubSourceHost | GitLabSourceHost | BitbucketSourceHost | AzureReposSourceHost | GitSourceHost | RegistrySourceHost | LocalSourceHost | InlineSourceHost | WorkspaceSourceHost;
|
|
155
|
+
/** @experimental */
|
|
156
|
+
export interface GitHubSourceParams {
|
|
157
|
+
readonly type: "github";
|
|
158
|
+
readonly sourceName?: string | undefined;
|
|
159
|
+
readonly owner: string;
|
|
160
|
+
readonly repo: string;
|
|
161
|
+
readonly ref: Option.Option<string>;
|
|
162
|
+
readonly subPath: Option.Option<string>;
|
|
163
|
+
readonly cloneUrl?: Option.Option<string>;
|
|
164
|
+
}
|
|
165
|
+
/** @experimental */
|
|
166
|
+
export interface GitLabSourceParams {
|
|
167
|
+
readonly type: "gitlab";
|
|
168
|
+
readonly sourceName?: string | undefined;
|
|
169
|
+
readonly owner: string;
|
|
170
|
+
readonly repo: string;
|
|
171
|
+
readonly ref: Option.Option<string>;
|
|
172
|
+
readonly subPath: Option.Option<string>;
|
|
173
|
+
readonly cloneUrl?: Option.Option<string>;
|
|
174
|
+
}
|
|
175
|
+
/** @experimental */
|
|
176
|
+
export interface BitbucketSourceParams {
|
|
177
|
+
readonly type: "bitbucket";
|
|
178
|
+
readonly sourceName?: string | undefined;
|
|
179
|
+
readonly owner: string;
|
|
180
|
+
readonly repo: string;
|
|
181
|
+
readonly ref: Option.Option<string>;
|
|
182
|
+
readonly subPath: Option.Option<string>;
|
|
183
|
+
readonly cloneUrl?: Option.Option<string>;
|
|
184
|
+
}
|
|
185
|
+
/** @experimental */
|
|
186
|
+
export interface AzureReposSourceParams {
|
|
187
|
+
readonly type: "azurerepos";
|
|
188
|
+
readonly sourceName?: string | undefined;
|
|
189
|
+
readonly organization: string;
|
|
190
|
+
readonly project: string;
|
|
191
|
+
readonly repo: string;
|
|
192
|
+
readonly ref: Option.Option<string>;
|
|
193
|
+
readonly subPath: Option.Option<string>;
|
|
194
|
+
readonly cloneUrl?: Option.Option<string>;
|
|
195
|
+
}
|
|
196
|
+
/** @experimental */
|
|
197
|
+
export interface GitSourceParams {
|
|
198
|
+
readonly type: "git";
|
|
199
|
+
readonly url: URL;
|
|
200
|
+
readonly ref: Option.Option<string>;
|
|
201
|
+
}
|
|
202
|
+
/** @experimental */
|
|
203
|
+
export interface RegistrySourceParams {
|
|
204
|
+
readonly type: "registry";
|
|
205
|
+
readonly sourceName?: string | undefined;
|
|
206
|
+
readonly owner: Option.Option<Handle>;
|
|
207
|
+
}
|
|
208
|
+
/** @experimental */
|
|
209
|
+
export interface LocalSourceParams {
|
|
210
|
+
readonly type: "local";
|
|
211
|
+
readonly path: string;
|
|
212
|
+
}
|
|
213
|
+
/** @experimental */
|
|
214
|
+
export interface InlineSourceParams {
|
|
215
|
+
readonly type: "inline";
|
|
216
|
+
readonly command: Option.Option<string>;
|
|
217
|
+
readonly args: ReadonlyArray<string>;
|
|
218
|
+
readonly url: Option.Option<string>;
|
|
219
|
+
readonly headers: Readonly<Record<string, string>>;
|
|
220
|
+
}
|
|
221
|
+
/** @experimental */
|
|
222
|
+
export interface WorkspaceSourceParams {
|
|
223
|
+
readonly type: "workspace";
|
|
224
|
+
readonly owner: Handle;
|
|
225
|
+
readonly extensionType: ExtensionType;
|
|
226
|
+
readonly name: ExtensionName;
|
|
227
|
+
}
|
|
228
|
+
/** @experimental */
|
|
229
|
+
export type SourceParams = GitHubSourceParams | GitLabSourceParams | BitbucketSourceParams | AzureReposSourceParams | GitSourceParams | RegistrySourceParams | LocalSourceParams | InlineSourceParams | WorkspaceSourceParams;
|
|
230
|
+
/** @experimental */
|
|
231
|
+
export type GitHubSource = GitHubSourceHost & GitHubSourceParams;
|
|
232
|
+
/** @experimental */
|
|
233
|
+
export type GitLabSource = GitLabSourceHost & GitLabSourceParams;
|
|
234
|
+
/** @experimental */
|
|
235
|
+
export type BitbucketSource = BitbucketSourceHost & BitbucketSourceParams;
|
|
236
|
+
/** @experimental */
|
|
237
|
+
export type AzureReposSource = AzureReposSourceHost & AzureReposSourceParams;
|
|
238
|
+
/** @experimental */
|
|
239
|
+
export type InlineSource = InlineSourceHost & InlineSourceParams;
|
|
240
|
+
/** @experimental */
|
|
241
|
+
export type GitSource = GitSourceHost & GitSourceParams;
|
|
242
|
+
/** @experimental */
|
|
243
|
+
export type RegistrySource = RegistrySourceHost & RegistrySourceParams;
|
|
244
|
+
/** @experimental */
|
|
245
|
+
export type LocalSource = LocalSourceHost & LocalSourceParams;
|
|
246
|
+
/** @experimental */
|
|
247
|
+
export type WorkspaceSource = WorkspaceSourceHost & WorkspaceSourceParams;
|
|
248
|
+
/** @experimental */
|
|
249
|
+
export type Source = GitHubSource | GitLabSource | BitbucketSource | AzureReposSource | GitSource | RegistrySource | LocalSource | WorkspaceSource;
|
|
250
|
+
/** Git hosting providers that require a configured URL. @experimental */
|
|
251
|
+
export type GitHostingSourceHost = GitHubSourceHost | GitLabSourceHost | BitbucketSourceHost | AzureReposSourceHost;
|
|
252
|
+
/** @experimental */
|
|
253
|
+
export type GitHostingSourceParams = GitHubSourceParams | GitLabSourceParams | BitbucketSourceParams | AzureReposSourceParams;
|
|
254
|
+
/** @experimental */
|
|
255
|
+
export type GitHostingSource = GitHubSource | GitLabSource | BitbucketSource | AzureReposSource;
|
|
256
|
+
/** All git-based sources (hosting providers + generic git). @experimental */
|
|
257
|
+
export type GitBasedSource = GitHostingSource | GitSource;
|
|
258
|
+
/** Sources that require host configuration from settings. @experimental */
|
|
259
|
+
export type ConfiguredSourceHost = GitHostingSourceHost | RegistrySourceHost;
|
|
260
|
+
/** Sources that are self-describing (no settings config needed). @experimental */
|
|
261
|
+
export type SelfDescribingSourceHost = GitSourceHost | LocalSourceHost;
|
|
262
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core types for source parsing and identification.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
*/
|
|
7
|
+
import * as Schema from "effect/Schema";
|
|
8
|
+
// -----------------------------------------------------------------------------
|
|
9
|
+
// Source Type Schema
|
|
10
|
+
// -----------------------------------------------------------------------------
|
|
11
|
+
/**
|
|
12
|
+
* Source type discriminator for extension origins.
|
|
13
|
+
*
|
|
14
|
+
* - `"github"` - GitHub repository source
|
|
15
|
+
* - `"gitlab"` - GitLab repository source
|
|
16
|
+
* - `"bitbucket"` - Bitbucket repository source
|
|
17
|
+
* - `"azurerepos"` - Azure Repos repository source
|
|
18
|
+
* - `"git"` - Generic git repository source
|
|
19
|
+
* - `"registry"` - Package registry source
|
|
20
|
+
* - `"local"` - Local filesystem path source
|
|
21
|
+
* - `"inline"` - Inline workspace configuration
|
|
22
|
+
* - `"workspace"` - Intrinsic source in the selected scope's managed extension tree
|
|
23
|
+
*
|
|
24
|
+
* @experimental
|
|
25
|
+
*/
|
|
26
|
+
export const SourceTypeSchema = Schema.Literals([
|
|
27
|
+
"github",
|
|
28
|
+
"gitlab",
|
|
29
|
+
"bitbucket",
|
|
30
|
+
"azurerepos",
|
|
31
|
+
"git",
|
|
32
|
+
"registry",
|
|
33
|
+
"local",
|
|
34
|
+
"inline",
|
|
35
|
+
"workspace",
|
|
36
|
+
]).annotate({
|
|
37
|
+
identifier: "SourceType",
|
|
38
|
+
title: "Source Type",
|
|
39
|
+
description: "Source type discriminator: github, gitlab, bitbucket, azurerepos, git, registry, local, inline, or workspace.",
|
|
40
|
+
});
|
|
41
|
+
// -----------------------------------------------------------------------------
|
|
42
|
+
// Ref Type Schema
|
|
43
|
+
// -----------------------------------------------------------------------------
|
|
44
|
+
/**
|
|
45
|
+
* Ref type discriminator for extension ref hosting categories.
|
|
46
|
+
*
|
|
47
|
+
* - `"git-hosted"` - Git-based sources (GitHub, GitLab, Bitbucket, AzureRepos, Git)
|
|
48
|
+
* - `"registry"` - Package registry source
|
|
49
|
+
* - `"local"` - Local filesystem path source
|
|
50
|
+
* - `"workspace"` - Intrinsic managed workspace package
|
|
51
|
+
*
|
|
52
|
+
* @experimental This API is unstable and may change without notice.
|
|
53
|
+
*/
|
|
54
|
+
export const RefTypeSchema = Schema.Literals([
|
|
55
|
+
"git-hosted",
|
|
56
|
+
"registry",
|
|
57
|
+
"local",
|
|
58
|
+
"workspace",
|
|
59
|
+
]).annotate({
|
|
60
|
+
identifier: "RefType",
|
|
61
|
+
title: "Ref Type",
|
|
62
|
+
description: "Ref type category: git-hosted, registry, local, or workspace.",
|
|
63
|
+
});
|
|
64
|
+
const noSlashSegmentMessage = "Expected non-empty segment without '/' characters";
|
|
65
|
+
const noTraversalSegmentMessage = "Expected subpath without '..' traversal segments";
|
|
66
|
+
export const SourceSegmentSchema = Schema.NonEmptyString.pipe(Schema.check(Schema.makeFilter((value) => (value.includes("/") ? noSlashSegmentMessage : undefined)))).annotate({
|
|
67
|
+
identifier: "SourceSegment",
|
|
68
|
+
title: "Source Segment",
|
|
69
|
+
description: "A non-empty path segment without slash characters, used for owner/repo identifiers.",
|
|
70
|
+
});
|
|
71
|
+
export const SourceRefSchema = Schema.NonEmptyString;
|
|
72
|
+
export const SourceNamespaceSchema = Schema.NonEmptyString.pipe(Schema.check(Schema.makeFilter((value) => value.split("/").some((segment) => segment.length === 0 || segment === "..")
|
|
73
|
+
? "Expected non-empty namespace path segments without '..' traversal"
|
|
74
|
+
: undefined))).annotate({
|
|
75
|
+
identifier: "SourceNamespace",
|
|
76
|
+
title: "Source Namespace",
|
|
77
|
+
description: "A non-empty repository namespace path. GitLab subgroup paths may contain slash-separated segments.",
|
|
78
|
+
});
|
|
79
|
+
export const SourceSubPathSchema = Schema.NonEmptyString.pipe(Schema.check(Schema.makeFilter((value) => value.split("/").some((segment) => segment.length === 0 || segment === "..")
|
|
80
|
+
? noTraversalSegmentMessage
|
|
81
|
+
: undefined))).annotate({
|
|
82
|
+
identifier: "SourceSubPath",
|
|
83
|
+
title: "Source Subpath",
|
|
84
|
+
description: "A non-empty repository subpath without empty or '..' traversal segments.",
|
|
85
|
+
});
|
|
86
|
+
const GitHostedSourceParamFields = {
|
|
87
|
+
sourceName: Schema.optional(Schema.String),
|
|
88
|
+
owner: SourceNamespaceSchema,
|
|
89
|
+
repo: SourceSegmentSchema,
|
|
90
|
+
ref: Schema.OptionFromOptionalKey(SourceRefSchema),
|
|
91
|
+
subPath: Schema.OptionFromOptionalKey(SourceSubPathSchema),
|
|
92
|
+
};
|
|
93
|
+
export const GitHostedSourceParamPartsSchema = Schema.Struct(GitHostedSourceParamFields).annotate({
|
|
94
|
+
identifier: "GitHostedSourceParamParts",
|
|
95
|
+
title: "Git Hosted Source Params",
|
|
96
|
+
description: "Parameters for a git-hosted source: owner, repo, optional ref and sub-path.",
|
|
97
|
+
});
|
|
98
|
+
const AzureReposSourceParamFields = {
|
|
99
|
+
sourceName: Schema.optional(Schema.String),
|
|
100
|
+
organization: SourceSegmentSchema,
|
|
101
|
+
project: SourceSegmentSchema,
|
|
102
|
+
repo: SourceSegmentSchema,
|
|
103
|
+
ref: Schema.OptionFromOptionalKey(SourceRefSchema),
|
|
104
|
+
subPath: Schema.OptionFromOptionalKey(SourceSubPathSchema),
|
|
105
|
+
};
|
|
106
|
+
export const AzureReposSourceParamPartsSchema = Schema.Struct(AzureReposSourceParamFields).annotate({
|
|
107
|
+
identifier: "AzureReposSourceParamParts",
|
|
108
|
+
title: "Azure Repos Source Params",
|
|
109
|
+
description: "Parameters for an Azure Repos source: organization, project, repo, optional ref and sub-path.",
|
|
110
|
+
});
|
|
111
|
+
export const GitHubSourceParamsSchema = Schema.Struct({
|
|
112
|
+
type: Schema.Literal("github"),
|
|
113
|
+
...GitHostedSourceParamFields,
|
|
114
|
+
});
|
|
115
|
+
export const GitLabSourceParamsSchema = Schema.Struct({
|
|
116
|
+
type: Schema.Literal("gitlab"),
|
|
117
|
+
...GitHostedSourceParamFields,
|
|
118
|
+
});
|
|
119
|
+
export const BitbucketSourceParamsSchema = Schema.Struct({
|
|
120
|
+
type: Schema.Literal("bitbucket"),
|
|
121
|
+
...GitHostedSourceParamFields,
|
|
122
|
+
});
|
|
123
|
+
export const AzureReposSourceParamsSchema = Schema.Struct({
|
|
124
|
+
type: Schema.Literal("azurerepos"),
|
|
125
|
+
...AzureReposSourceParamFields,
|
|
126
|
+
});
|
|
127
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return whether a configured source string declares intrinsic workspace
|
|
3
|
+
* authority.
|
|
4
|
+
*
|
|
5
|
+
* This is the single classification predicate lifecycle guards use. Parsing
|
|
6
|
+
* and identity validation remain separate so malformed workspace locators are
|
|
7
|
+
* still classified as workspace-owned and cannot fall through to a remote
|
|
8
|
+
* source.
|
|
9
|
+
*
|
|
10
|
+
* @experimental This API is unstable and may change without notice.
|
|
11
|
+
*/
|
|
12
|
+
export declare const isWorkspaceSourceLocator: (source: string) => boolean;
|
|
13
|
+
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return whether a configured source string declares intrinsic workspace
|
|
3
|
+
* authority.
|
|
4
|
+
*
|
|
5
|
+
* This is the single classification predicate lifecycle guards use. Parsing
|
|
6
|
+
* and identity validation remain separate so malformed workspace locators are
|
|
7
|
+
* still classified as workspace-owned and cannot fall through to a remote
|
|
8
|
+
* source.
|
|
9
|
+
*
|
|
10
|
+
* @experimental This API is unstable and may change without notice.
|
|
11
|
+
*/
|
|
12
|
+
export const isWorkspaceSourceLocator = (source) => source === "workspace";
|
|
13
|
+
//# sourceMappingURL=workspace.js.map
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subagent manifest schema definition.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
import * as Schema from "effect/Schema";
|
|
7
|
+
/**
|
|
8
|
+
* Filename for subagent manifest files.
|
|
9
|
+
*
|
|
10
|
+
* @experimental This API is unstable and may change without notice.
|
|
11
|
+
*/
|
|
12
|
+
export declare const MANIFEST_FILENAME = "subagent.json";
|
|
13
|
+
/**
|
|
14
|
+
* URL for the subagent manifest JSON Schema.
|
|
15
|
+
*
|
|
16
|
+
* @experimental This API is unstable and may change without notice.
|
|
17
|
+
*/
|
|
18
|
+
export declare const MANIFEST_SCHEMA_URL = "https://axm.sh/schemas/subagent.schema.json";
|
|
19
|
+
/**
|
|
20
|
+
* Schema for subagent manifest files (subagent.json).
|
|
21
|
+
*
|
|
22
|
+
* The manifest carries registry-facing identity and metadata. Fields like
|
|
23
|
+
* `model`, `toolAccess`, and `background` live (if at all) in the content
|
|
24
|
+
* file's frontmatter and are passed through to agent-native files verbatim;
|
|
25
|
+
* the manifest does not mirror them.
|
|
26
|
+
*
|
|
27
|
+
* @experimental This API is unstable and may change without notice.
|
|
28
|
+
*/
|
|
29
|
+
export declare const SubagentManifestSchema: Schema.Struct<{
|
|
30
|
+
readonly type: Schema.Literal<"subagent">;
|
|
31
|
+
readonly name: Schema.brand<Schema.NonEmptyString, "ExtensionName">;
|
|
32
|
+
readonly enhances: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
33
|
+
readonly requires: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
34
|
+
readonly fallback: Schema.optional<Schema.Literals<readonly ["auto", "none"]>>;
|
|
35
|
+
readonly recommendedPacks: Schema.optional<Schema.$Array<Schema.brand<Schema.NonEmptyString, "PackSpec">>>;
|
|
36
|
+
readonly standalone: Schema.optional<Schema.Boolean>;
|
|
37
|
+
readonly publish: Schema.optional<Schema.Struct<{
|
|
38
|
+
readonly visibility: Schema.optional<Schema.Literals<readonly ["public", "private"]>>;
|
|
39
|
+
readonly ignore: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
40
|
+
}>>;
|
|
41
|
+
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
42
|
+
readonly owner: Schema.brand<Schema.String, "Handle">;
|
|
43
|
+
readonly version: Schema.brand<Schema.String, "Version">;
|
|
44
|
+
readonly description: Schema.optional<Schema.String>;
|
|
45
|
+
readonly keywords: Schema.optional<Schema.$Array<Schema.NonEmptyString>>;
|
|
46
|
+
readonly repository: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
47
|
+
readonly type: Schema.optional<Schema.NonEmptyString>;
|
|
48
|
+
readonly url: Schema.NonEmptyString;
|
|
49
|
+
readonly directory: Schema.optional<Schema.NonEmptyString>;
|
|
50
|
+
}>]>>;
|
|
51
|
+
readonly homepage: Schema.optional<Schema.String>;
|
|
52
|
+
readonly license: Schema.optional<Schema.String>;
|
|
53
|
+
readonly bugs: Schema.optional<Schema.Union<readonly [Schema.String, Schema.Struct<{
|
|
54
|
+
readonly url: Schema.optional<Schema.NonEmptyString>;
|
|
55
|
+
readonly email: Schema.optional<Schema.NonEmptyString>;
|
|
56
|
+
}>]>>;
|
|
57
|
+
readonly authors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
58
|
+
readonly name: Schema.String;
|
|
59
|
+
readonly email: Schema.optional<Schema.String>;
|
|
60
|
+
readonly url: Schema.optional<Schema.String>;
|
|
61
|
+
}>>>;
|
|
62
|
+
readonly packages: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
63
|
+
readonly purl: Schema.brand<Schema.NonEmptyString, "PackageIdentityPurl">;
|
|
64
|
+
readonly versionRange: Schema.optional<Schema.brand<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
65
|
+
readonly raw: Schema.NonEmptyString;
|
|
66
|
+
readonly scheme: Schema.NonEmptyString;
|
|
67
|
+
readonly constraints: Schema.$Array<Schema.Struct<{
|
|
68
|
+
readonly comparator: Schema.Literals<readonly ["=", "!=", "<", "<=", ">", ">="]>;
|
|
69
|
+
readonly version: Schema.NonEmptyString;
|
|
70
|
+
}>>;
|
|
71
|
+
}>>, Schema.NonEmptyString, never, never>, "VersRange">>;
|
|
72
|
+
}>>>;
|
|
73
|
+
readonly $schema: Schema.optional<Schema.String>;
|
|
74
|
+
}>;
|
|
75
|
+
/**
|
|
76
|
+
* Inferred type for SubagentManifest schema.
|
|
77
|
+
*
|
|
78
|
+
* @experimental This API is unstable and may change without notice.
|
|
79
|
+
*/
|
|
80
|
+
export type SubagentManifest = Schema.Schema.Type<typeof SubagentManifestSchema>;
|
|
81
|
+
//# sourceMappingURL=manifest-schema.d.ts.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subagent manifest schema definition.
|
|
3
|
+
*
|
|
4
|
+
* @experimental This API is unstable and may change without notice.
|
|
5
|
+
*/
|
|
6
|
+
import * as Schema from "effect/Schema";
|
|
7
|
+
import { CommonManifestBaseFields, ExtensionNameSchema, NonPackManifestFields, } from "../extensions/common.js";
|
|
8
|
+
/**
|
|
9
|
+
* Filename for subagent manifest files.
|
|
10
|
+
*
|
|
11
|
+
* @experimental This API is unstable and may change without notice.
|
|
12
|
+
*/
|
|
13
|
+
export const MANIFEST_FILENAME = "subagent.json";
|
|
14
|
+
/**
|
|
15
|
+
* URL for the subagent manifest JSON Schema.
|
|
16
|
+
*
|
|
17
|
+
* @experimental This API is unstable and may change without notice.
|
|
18
|
+
*/
|
|
19
|
+
export const MANIFEST_SCHEMA_URL = "https://axm.sh/schemas/subagent.schema.json";
|
|
20
|
+
/**
|
|
21
|
+
* Schema for subagent manifest files (subagent.json).
|
|
22
|
+
*
|
|
23
|
+
* The manifest carries registry-facing identity and metadata. Fields like
|
|
24
|
+
* `model`, `toolAccess`, and `background` live (if at all) in the content
|
|
25
|
+
* file's frontmatter and are passed through to agent-native files verbatim;
|
|
26
|
+
* the manifest does not mirror them.
|
|
27
|
+
*
|
|
28
|
+
* @experimental This API is unstable and may change without notice.
|
|
29
|
+
*/
|
|
30
|
+
export const SubagentManifestSchema = Schema.Struct({
|
|
31
|
+
$schema: Schema.optional(Schema.String),
|
|
32
|
+
...CommonManifestBaseFields,
|
|
33
|
+
...NonPackManifestFields,
|
|
34
|
+
type: Schema.Literal("subagent"),
|
|
35
|
+
name: ExtensionNameSchema.pipe(Schema.annotateKey({ messageMissingKey: "subagent name is required" }), Schema.annotate({
|
|
36
|
+
description: "Short name for this subagent within its owner namespace. Combined with owner, forms the FQN @owner/subagents/<name>.",
|
|
37
|
+
})),
|
|
38
|
+
}).annotate({
|
|
39
|
+
identifier: "SubagentManifest",
|
|
40
|
+
title: "Subagent Manifest",
|
|
41
|
+
description: "Extension manifest file for subagent. Carries the registry-facing identity, version, and metadata.",
|
|
42
|
+
});
|
|
43
|
+
//# sourceMappingURL=manifest-schema.js.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import * as Option from "effect/Option";
|
|
3
|
+
/**
|
|
4
|
+
* Minimal version entry shape used for range resolution.
|
|
5
|
+
* Compatible with the full VersionEntry from the registry module.
|
|
6
|
+
*/
|
|
7
|
+
export interface VersionEntryLike {
|
|
8
|
+
readonly version: Version;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Canonical strict semver pattern from semver.org.
|
|
12
|
+
*
|
|
13
|
+
* Equivalent to `semver.valid(value) === value`: rejects leading `v`,
|
|
14
|
+
* whitespace, partial versions, and leading-zero numeric identifiers.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SEMVER_PATTERN: RegExp;
|
|
17
|
+
/**
|
|
18
|
+
* Schema for an exact semver version (no ranges).
|
|
19
|
+
*/
|
|
20
|
+
export declare const VersionSchema: Schema.brand<Schema.String, "Version">;
|
|
21
|
+
/**
|
|
22
|
+
* Inferred type for an exact semver version.
|
|
23
|
+
*/
|
|
24
|
+
export type Version = Schema.Schema.Type<typeof VersionSchema>;
|
|
25
|
+
/**
|
|
26
|
+
* Schema for a semver version range, including exact versions and range expressions.
|
|
27
|
+
*/
|
|
28
|
+
export declare const VersionRangeSchema: Schema.brand<Schema.NonEmptyString, "VersionRange">;
|
|
29
|
+
/**
|
|
30
|
+
* Inferred type for a semver version range.
|
|
31
|
+
*/
|
|
32
|
+
export type VersionRange = Schema.Schema.Type<typeof VersionRangeSchema>;
|
|
33
|
+
/**
|
|
34
|
+
* Decode a value as an exact semver version.
|
|
35
|
+
*/
|
|
36
|
+
export declare const decodeVersionSync: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Version">;
|
|
37
|
+
/**
|
|
38
|
+
* Decode a value as a semver version range.
|
|
39
|
+
*/
|
|
40
|
+
export declare const decodeVersionRangeSync: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"VersionRange">;
|
|
41
|
+
/**
|
|
42
|
+
* Extract a version range suffix from a source string.
|
|
43
|
+
*
|
|
44
|
+
* Handles both namespaced (`@handle/name@^1.0.0`) and non-namespaced (`name@^1.0.0`) names.
|
|
45
|
+
* Returns `Option.none()` when no version suffix is present.
|
|
46
|
+
*/
|
|
47
|
+
export declare const parseVersionRange: (sourceString: string) => Option.Option<VersionRange>;
|
|
48
|
+
/**
|
|
49
|
+
* Check whether a string is a valid semver version range.
|
|
50
|
+
*/
|
|
51
|
+
export declare const isValidVersionRange: (range: string) => boolean;
|
|
52
|
+
/** Return one range representing the complete intersection, or undefined when unsatisfiable. */
|
|
53
|
+
export declare const intersectVersionConstraints: (constraints: ReadonlyArray<string>) => string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Check whether moving from `previousVersion` to `currentVersion` includes at
|
|
56
|
+
* least a minor version bump.
|
|
57
|
+
*/
|
|
58
|
+
export declare const hasMinorOrMajorVersionBump: (previousVersion: string, currentVersion: string) => boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Check whether a version satisfies a semver version range.
|
|
61
|
+
*/
|
|
62
|
+
export declare const versionSatisfiesRange: (version: Version, range: VersionRange) => boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Select the maximum version that satisfies the range, independent of input
|
|
65
|
+
* order.
|
|
66
|
+
*
|
|
67
|
+
* - `Option.none()` range or `"*"` matches any version.
|
|
68
|
+
* - Invalid ranges match nothing.
|
|
69
|
+
*/
|
|
70
|
+
export declare const resolveVersionInRange: <T extends VersionEntryLike>(versions: ReadonlyArray<T>, range: Option.Option<string>) => Option.Option<T>;
|
|
71
|
+
//# sourceMappingURL=version-constraints.d.ts.map
|