@detergent-software/atk 0.12.1-dev.2
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/build/cli.d.ts +3 -0
- package/build/cli.d.ts.map +1 -0
- package/build/cli.js +35 -0
- package/build/cli.js.map +1 -0
- package/build/commands/_app.d.ts +3 -0
- package/build/commands/_app.d.ts.map +1 -0
- package/build/commands/_app.js +12 -0
- package/build/commands/_app.js.map +1 -0
- package/build/commands/audit.d.ts +12 -0
- package/build/commands/audit.d.ts.map +1 -0
- package/build/commands/audit.js +78 -0
- package/build/commands/audit.js.map +1 -0
- package/build/commands/browse.d.ts +15 -0
- package/build/commands/browse.d.ts.map +1 -0
- package/build/commands/browse.js +284 -0
- package/build/commands/browse.js.map +1 -0
- package/build/commands/cache.d.ts +13 -0
- package/build/commands/cache.d.ts.map +1 -0
- package/build/commands/cache.js +67 -0
- package/build/commands/cache.js.map +1 -0
- package/build/commands/config.d.ts +13 -0
- package/build/commands/config.d.ts.map +1 -0
- package/build/commands/config.js +62 -0
- package/build/commands/config.js.map +1 -0
- package/build/commands/diff.d.ts +16 -0
- package/build/commands/diff.d.ts.map +1 -0
- package/build/commands/diff.js +158 -0
- package/build/commands/diff.js.map +1 -0
- package/build/commands/doctor.d.ts +11 -0
- package/build/commands/doctor.d.ts.map +1 -0
- package/build/commands/doctor.js +30 -0
- package/build/commands/doctor.js.map +1 -0
- package/build/commands/index.d.ts +3 -0
- package/build/commands/index.d.ts.map +1 -0
- package/build/commands/index.js +30 -0
- package/build/commands/index.js.map +1 -0
- package/build/commands/info.d.ts +25 -0
- package/build/commands/info.d.ts.map +1 -0
- package/build/commands/info.js +198 -0
- package/build/commands/info.js.map +1 -0
- package/build/commands/init.d.ts +17 -0
- package/build/commands/init.d.ts.map +1 -0
- package/build/commands/init.js +504 -0
- package/build/commands/init.js.map +1 -0
- package/build/commands/install.d.ts +18 -0
- package/build/commands/install.d.ts.map +1 -0
- package/build/commands/install.js +186 -0
- package/build/commands/install.js.map +1 -0
- package/build/commands/list.d.ts +20 -0
- package/build/commands/list.d.ts.map +1 -0
- package/build/commands/list.js +61 -0
- package/build/commands/list.js.map +1 -0
- package/build/commands/outdated.d.ts +21 -0
- package/build/commands/outdated.d.ts.map +1 -0
- package/build/commands/outdated.js +81 -0
- package/build/commands/outdated.js.map +1 -0
- package/build/commands/pin.d.ts +22 -0
- package/build/commands/pin.d.ts.map +1 -0
- package/build/commands/pin.js +94 -0
- package/build/commands/pin.js.map +1 -0
- package/build/commands/prune.d.ts +14 -0
- package/build/commands/prune.d.ts.map +1 -0
- package/build/commands/prune.js +203 -0
- package/build/commands/prune.js.map +1 -0
- package/build/commands/publish.d.ts +14 -0
- package/build/commands/publish.d.ts.map +1 -0
- package/build/commands/publish.js +345 -0
- package/build/commands/publish.js.map +1 -0
- package/build/commands/search.d.ts +16 -0
- package/build/commands/search.d.ts.map +1 -0
- package/build/commands/search.js +80 -0
- package/build/commands/search.js.map +1 -0
- package/build/commands/sync.d.ts +15 -0
- package/build/commands/sync.d.ts.map +1 -0
- package/build/commands/sync.js +209 -0
- package/build/commands/sync.js.map +1 -0
- package/build/commands/uninstall.d.ts +18 -0
- package/build/commands/uninstall.d.ts.map +1 -0
- package/build/commands/uninstall.js +304 -0
- package/build/commands/uninstall.js.map +1 -0
- package/build/commands/unpin.d.ts +22 -0
- package/build/commands/unpin.d.ts.map +1 -0
- package/build/commands/unpin.js +79 -0
- package/build/commands/unpin.js.map +1 -0
- package/build/commands/update.d.ts +17 -0
- package/build/commands/update.d.ts.map +1 -0
- package/build/commands/update.js +151 -0
- package/build/commands/update.js.map +1 -0
- package/build/commands/why.d.ts +23 -0
- package/build/commands/why.d.ts.map +1 -0
- package/build/commands/why.js +108 -0
- package/build/commands/why.js.map +1 -0
- package/build/components/AssetDetail.d.ts +32 -0
- package/build/components/AssetDetail.d.ts.map +1 -0
- package/build/components/AssetDetail.js +45 -0
- package/build/components/AssetDetail.js.map +1 -0
- package/build/components/AssetTable.d.ts +25 -0
- package/build/components/AssetTable.d.ts.map +1 -0
- package/build/components/AssetTable.js +96 -0
- package/build/components/AssetTable.js.map +1 -0
- package/build/components/BrowseExpandedBundle.d.ts +26 -0
- package/build/components/BrowseExpandedBundle.d.ts.map +1 -0
- package/build/components/BrowseExpandedBundle.js +59 -0
- package/build/components/BrowseExpandedBundle.js.map +1 -0
- package/build/components/BrowseExpandedRow.d.ts +14 -0
- package/build/components/BrowseExpandedRow.d.ts.map +1 -0
- package/build/components/BrowseExpandedRow.js +9 -0
- package/build/components/BrowseExpandedRow.js.map +1 -0
- package/build/components/BrowseList.d.ts +26 -0
- package/build/components/BrowseList.d.ts.map +1 -0
- package/build/components/BrowseList.js +101 -0
- package/build/components/BrowseList.js.map +1 -0
- package/build/components/BundleDetail.d.ts +7 -0
- package/build/components/BundleDetail.d.ts.map +1 -0
- package/build/components/BundleDetail.js +12 -0
- package/build/components/BundleDetail.js.map +1 -0
- package/build/components/DependencyTree.d.ts +19 -0
- package/build/components/DependencyTree.d.ts.map +1 -0
- package/build/components/DependencyTree.js +21 -0
- package/build/components/DependencyTree.js.map +1 -0
- package/build/components/DiagnosticList.d.ts +19 -0
- package/build/components/DiagnosticList.d.ts.map +1 -0
- package/build/components/DiagnosticList.js +17 -0
- package/build/components/DiagnosticList.js.map +1 -0
- package/build/components/DiffView.d.ts +30 -0
- package/build/components/DiffView.d.ts.map +1 -0
- package/build/components/DiffView.js +32 -0
- package/build/components/DiffView.js.map +1 -0
- package/build/components/DryRunBanner.d.ts +11 -0
- package/build/components/DryRunBanner.d.ts.map +1 -0
- package/build/components/DryRunBanner.js +6 -0
- package/build/components/DryRunBanner.js.map +1 -0
- package/build/components/Field.d.ts +12 -0
- package/build/components/Field.d.ts.map +1 -0
- package/build/components/Field.js +9 -0
- package/build/components/Field.js.map +1 -0
- package/build/components/FilterBar.d.ts +18 -0
- package/build/components/FilterBar.d.ts.map +1 -0
- package/build/components/FilterBar.js +21 -0
- package/build/components/FilterBar.js.map +1 -0
- package/build/components/Header.d.ts +13 -0
- package/build/components/Header.d.ts.map +1 -0
- package/build/components/Header.js +20 -0
- package/build/components/Header.js.map +1 -0
- package/build/components/HelpBar.d.ts +11 -0
- package/build/components/HelpBar.d.ts.map +1 -0
- package/build/components/HelpBar.js +9 -0
- package/build/components/HelpBar.js.map +1 -0
- package/build/components/InstallConfirmBar.d.ts +9 -0
- package/build/components/InstallConfirmBar.d.ts.map +1 -0
- package/build/components/InstallConfirmBar.js +23 -0
- package/build/components/InstallConfirmBar.js.map +1 -0
- package/build/components/InstallSummary.d.ts +29 -0
- package/build/components/InstallSummary.d.ts.map +1 -0
- package/build/components/InstallSummary.js +12 -0
- package/build/components/InstallSummary.js.map +1 -0
- package/build/components/SectionDivider.d.ts +5 -0
- package/build/components/SectionDivider.d.ts.map +1 -0
- package/build/components/SectionDivider.js +11 -0
- package/build/components/SectionDivider.js.map +1 -0
- package/build/components/Spinner.d.ts +13 -0
- package/build/components/Spinner.d.ts.map +1 -0
- package/build/components/Spinner.js +11 -0
- package/build/components/Spinner.js.map +1 -0
- package/build/components/StatusBadge.d.ts +23 -0
- package/build/components/StatusBadge.d.ts.map +1 -0
- package/build/components/StatusBadge.js +43 -0
- package/build/components/StatusBadge.js.map +1 -0
- package/build/components/index.d.ts +20 -0
- package/build/components/index.d.ts.map +1 -0
- package/build/components/index.js +20 -0
- package/build/components/index.js.map +1 -0
- package/build/hooks/useBrowseState.d.ts +122 -0
- package/build/hooks/useBrowseState.d.ts.map +1 -0
- package/build/hooks/useBrowseState.js +315 -0
- package/build/hooks/useBrowseState.js.map +1 -0
- package/build/hooks/useCommand.d.ts +23 -0
- package/build/hooks/useCommand.d.ts.map +1 -0
- package/build/hooks/useCommand.js +43 -0
- package/build/hooks/useCommand.js.map +1 -0
- package/build/lib/adapter.d.ts +40 -0
- package/build/lib/adapter.d.ts.map +1 -0
- package/build/lib/adapter.js +112 -0
- package/build/lib/adapter.js.map +1 -0
- package/build/lib/auth.d.ts +31 -0
- package/build/lib/auth.d.ts.map +1 -0
- package/build/lib/auth.js +101 -0
- package/build/lib/auth.js.map +1 -0
- package/build/lib/breakpoints.d.ts +3 -0
- package/build/lib/breakpoints.d.ts.map +1 -0
- package/build/lib/breakpoints.js +8 -0
- package/build/lib/breakpoints.js.map +1 -0
- package/build/lib/checksum.d.ts +31 -0
- package/build/lib/checksum.d.ts.map +1 -0
- package/build/lib/checksum.js +78 -0
- package/build/lib/checksum.js.map +1 -0
- package/build/lib/config.d.ts +42 -0
- package/build/lib/config.d.ts.map +1 -0
- package/build/lib/config.js +123 -0
- package/build/lib/config.js.map +1 -0
- package/build/lib/detector.d.ts +35 -0
- package/build/lib/detector.d.ts.map +1 -0
- package/build/lib/detector.js +125 -0
- package/build/lib/detector.js.map +1 -0
- package/build/lib/diagnostics.d.ts +10 -0
- package/build/lib/diagnostics.d.ts.map +1 -0
- package/build/lib/diagnostics.js +195 -0
- package/build/lib/diagnostics.js.map +1 -0
- package/build/lib/diff.d.ts +34 -0
- package/build/lib/diff.d.ts.map +1 -0
- package/build/lib/diff.js +78 -0
- package/build/lib/diff.js.map +1 -0
- package/build/lib/fetch-retry.d.ts +43 -0
- package/build/lib/fetch-retry.d.ts.map +1 -0
- package/build/lib/fetch-retry.js +137 -0
- package/build/lib/fetch-retry.js.map +1 -0
- package/build/lib/github.d.ts +57 -0
- package/build/lib/github.d.ts.map +1 -0
- package/build/lib/github.js +96 -0
- package/build/lib/github.js.map +1 -0
- package/build/lib/gitignore.d.ts +37 -0
- package/build/lib/gitignore.d.ts.map +1 -0
- package/build/lib/gitignore.js +142 -0
- package/build/lib/gitignore.js.map +1 -0
- package/build/lib/init.d.ts +100 -0
- package/build/lib/init.d.ts.map +1 -0
- package/build/lib/init.js +295 -0
- package/build/lib/init.js.map +1 -0
- package/build/lib/installer.d.ts +50 -0
- package/build/lib/installer.d.ts.map +1 -0
- package/build/lib/installer.js +435 -0
- package/build/lib/installer.js.map +1 -0
- package/build/lib/lockfile.d.ts +170 -0
- package/build/lib/lockfile.d.ts.map +1 -0
- package/build/lib/lockfile.js +437 -0
- package/build/lib/lockfile.js.map +1 -0
- package/build/lib/markdown.d.ts +9 -0
- package/build/lib/markdown.d.ts.map +1 -0
- package/build/lib/markdown.js +67 -0
- package/build/lib/markdown.js.map +1 -0
- package/build/lib/parse-json.d.ts +34 -0
- package/build/lib/parse-json.d.ts.map +1 -0
- package/build/lib/parse-json.js +52 -0
- package/build/lib/parse-json.js.map +1 -0
- package/build/lib/paths.d.ts +28 -0
- package/build/lib/paths.d.ts.map +1 -0
- package/build/lib/paths.js +68 -0
- package/build/lib/paths.js.map +1 -0
- package/build/lib/publisher.d.ts +49 -0
- package/build/lib/publisher.d.ts.map +1 -0
- package/build/lib/publisher.js +388 -0
- package/build/lib/publisher.js.map +1 -0
- package/build/lib/registry.d.ts +97 -0
- package/build/lib/registry.d.ts.map +1 -0
- package/build/lib/registry.js +248 -0
- package/build/lib/registry.js.map +1 -0
- package/build/lib/resolver.d.ts +50 -0
- package/build/lib/resolver.d.ts.map +1 -0
- package/build/lib/resolver.js +110 -0
- package/build/lib/resolver.js.map +1 -0
- package/build/lib/schemas/adapter.d.ts +33 -0
- package/build/lib/schemas/adapter.d.ts.map +1 -0
- package/build/lib/schemas/adapter.js +27 -0
- package/build/lib/schemas/adapter.js.map +1 -0
- package/build/lib/schemas/bundle.d.ts +38 -0
- package/build/lib/schemas/bundle.d.ts.map +1 -0
- package/build/lib/schemas/bundle.js +19 -0
- package/build/lib/schemas/bundle.js.map +1 -0
- package/build/lib/schemas/config.d.ts +12 -0
- package/build/lib/schemas/config.d.ts.map +1 -0
- package/build/lib/schemas/config.js +14 -0
- package/build/lib/schemas/config.js.map +1 -0
- package/build/lib/schemas/index.d.ts +7 -0
- package/build/lib/schemas/index.d.ts.map +1 -0
- package/build/lib/schemas/index.js +7 -0
- package/build/lib/schemas/index.js.map +1 -0
- package/build/lib/schemas/lockfile.d.ts +102 -0
- package/build/lib/schemas/lockfile.d.ts.map +1 -0
- package/build/lib/schemas/lockfile.js +50 -0
- package/build/lib/schemas/lockfile.js.map +1 -0
- package/build/lib/schemas/manifest.d.ts +91 -0
- package/build/lib/schemas/manifest.d.ts.map +1 -0
- package/build/lib/schemas/manifest.js +42 -0
- package/build/lib/schemas/manifest.js.map +1 -0
- package/build/lib/schemas/registry.d.ts +225 -0
- package/build/lib/schemas/registry.d.ts.map +1 -0
- package/build/lib/schemas/registry.js +59 -0
- package/build/lib/schemas/registry.js.map +1 -0
- package/build/lib/search.d.ts +23 -0
- package/build/lib/search.d.ts.map +1 -0
- package/build/lib/search.js +139 -0
- package/build/lib/search.js.map +1 -0
- package/build/lib/tool-resolver.d.ts +12 -0
- package/build/lib/tool-resolver.d.ts.map +1 -0
- package/build/lib/tool-resolver.js +24 -0
- package/build/lib/tool-resolver.js.map +1 -0
- package/build/lib/uninstaller.d.ts +109 -0
- package/build/lib/uninstaller.d.ts.map +1 -0
- package/build/lib/uninstaller.js +368 -0
- package/build/lib/uninstaller.js.map +1 -0
- package/build/lib/updater.d.ts +68 -0
- package/build/lib/updater.d.ts.map +1 -0
- package/build/lib/updater.js +230 -0
- package/build/lib/updater.js.map +1 -0
- package/build/lib/version.d.ts +13 -0
- package/build/lib/version.d.ts.map +1 -0
- package/build/lib/version.js +30 -0
- package/build/lib/version.js.map +1 -0
- package/build/windows-esm-loader.d.ts +15 -0
- package/build/windows-esm-loader.d.ts.map +1 -0
- package/build/windows-esm-loader.js +11 -0
- package/build/windows-esm-loader.js.map +1 -0
- package/package.json +67 -0
- package/tool-adapters/claude-code.json +34 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const InstalledFile: z.ZodObject<{
|
|
3
|
+
checksum: z.ZodString;
|
|
4
|
+
installedPath: z.ZodString;
|
|
5
|
+
sourcePath: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type InstalledFile = z.infer<typeof InstalledFile>;
|
|
8
|
+
export declare const InstalledAsset: z.ZodObject<{
|
|
9
|
+
bundleOrigin: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
version: z.ZodString;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
configEntries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
file: z.ZodString;
|
|
15
|
+
key: z.ZodString;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
17
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
type: z.ZodEnum<{
|
|
20
|
+
skill: "skill";
|
|
21
|
+
agent: "agent";
|
|
22
|
+
rule: "rule";
|
|
23
|
+
hook: "hook";
|
|
24
|
+
"memory-template": "memory-template";
|
|
25
|
+
"mcp-config": "mcp-config";
|
|
26
|
+
}>;
|
|
27
|
+
version: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>>>;
|
|
29
|
+
files: z.ZodArray<z.ZodObject<{
|
|
30
|
+
checksum: z.ZodString;
|
|
31
|
+
installedPath: z.ZodString;
|
|
32
|
+
sourcePath: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
installedAt: z.ZodString;
|
|
35
|
+
installReason: z.ZodOptional<z.ZodEnum<{
|
|
36
|
+
dependency: "dependency";
|
|
37
|
+
direct: "direct";
|
|
38
|
+
}>>;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
pinnedVersion: z.ZodOptional<z.ZodString>;
|
|
41
|
+
type: z.ZodEnum<{
|
|
42
|
+
skill: "skill";
|
|
43
|
+
agent: "agent";
|
|
44
|
+
rule: "rule";
|
|
45
|
+
hook: "hook";
|
|
46
|
+
"memory-template": "memory-template";
|
|
47
|
+
"mcp-config": "mcp-config";
|
|
48
|
+
}>;
|
|
49
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
50
|
+
version: z.ZodString;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type InstalledAsset = z.infer<typeof InstalledAsset>;
|
|
53
|
+
export declare const LockfileSchema: z.ZodObject<{
|
|
54
|
+
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
55
|
+
bundleOrigin: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
version: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>;
|
|
59
|
+
configEntries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
60
|
+
file: z.ZodString;
|
|
61
|
+
key: z.ZodString;
|
|
62
|
+
}, z.core.$strip>>>;
|
|
63
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
64
|
+
name: z.ZodString;
|
|
65
|
+
type: z.ZodEnum<{
|
|
66
|
+
skill: "skill";
|
|
67
|
+
agent: "agent";
|
|
68
|
+
rule: "rule";
|
|
69
|
+
hook: "hook";
|
|
70
|
+
"memory-template": "memory-template";
|
|
71
|
+
"mcp-config": "mcp-config";
|
|
72
|
+
}>;
|
|
73
|
+
version: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
75
|
+
files: z.ZodArray<z.ZodObject<{
|
|
76
|
+
checksum: z.ZodString;
|
|
77
|
+
installedPath: z.ZodString;
|
|
78
|
+
sourcePath: z.ZodString;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
installedAt: z.ZodString;
|
|
81
|
+
installReason: z.ZodOptional<z.ZodEnum<{
|
|
82
|
+
dependency: "dependency";
|
|
83
|
+
direct: "direct";
|
|
84
|
+
}>>;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
pinnedVersion: z.ZodOptional<z.ZodString>;
|
|
87
|
+
type: z.ZodEnum<{
|
|
88
|
+
skill: "skill";
|
|
89
|
+
agent: "agent";
|
|
90
|
+
rule: "rule";
|
|
91
|
+
hook: "hook";
|
|
92
|
+
"memory-template": "memory-template";
|
|
93
|
+
"mcp-config": "mcp-config";
|
|
94
|
+
}>;
|
|
95
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
96
|
+
version: z.ZodString;
|
|
97
|
+
}, z.core.$strip>>>;
|
|
98
|
+
lockVersion: z.ZodLiteral<1>;
|
|
99
|
+
tool: z.ZodString;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export type Lockfile = z.infer<typeof LockfileSchema>;
|
|
102
|
+
//# sourceMappingURL=lockfile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lockfile.d.ts","sourceRoot":"","sources":["../../../src/lib/schemas/lockfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;iBAIxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwCzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AssetType } from './manifest.js';
|
|
3
|
+
export const InstalledFile = z.object({
|
|
4
|
+
checksum: z.string().describe('SHA-256 checksum of the file contents'),
|
|
5
|
+
installedPath: z.string().describe('Relative path from project root where the file was placed (forward slashes)'),
|
|
6
|
+
sourcePath: z.string().describe('Original path within the asset directory'),
|
|
7
|
+
});
|
|
8
|
+
export const InstalledAsset = z.object({
|
|
9
|
+
bundleOrigin: z
|
|
10
|
+
.object({
|
|
11
|
+
name: z.string().describe('Bundle name that sourced this asset'),
|
|
12
|
+
version: z.string().describe('Bundle version at install time'),
|
|
13
|
+
})
|
|
14
|
+
.optional()
|
|
15
|
+
.describe('Bundle that triggered this asset installation'),
|
|
16
|
+
configEntries: z
|
|
17
|
+
.array(z.object({
|
|
18
|
+
file: z
|
|
19
|
+
.string()
|
|
20
|
+
.describe('Relative path from project root to the config file that was modified (forward slashes)'),
|
|
21
|
+
key: z.string().describe('Key that was added/modified'),
|
|
22
|
+
}))
|
|
23
|
+
.optional()
|
|
24
|
+
.describe('Config file entries created during install'),
|
|
25
|
+
dependencies: z
|
|
26
|
+
.array(z.object({
|
|
27
|
+
name: z.string().describe('Dependency asset name'),
|
|
28
|
+
type: AssetType.describe('Dependency asset type'),
|
|
29
|
+
version: z.string().optional().describe('Dependency version constraint at install time'),
|
|
30
|
+
}))
|
|
31
|
+
.optional()
|
|
32
|
+
.describe('Assets this asset depends on'),
|
|
33
|
+
files: z.array(InstalledFile).describe('Files placed by this asset'),
|
|
34
|
+
installedAt: z.string().describe('ISO timestamp of installation'),
|
|
35
|
+
installReason: z
|
|
36
|
+
.enum(['direct', 'dependency'])
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('Whether the user explicitly installed this or it was pulled in as a dependency'),
|
|
39
|
+
name: z.string().describe('Asset name'),
|
|
40
|
+
pinnedVersion: z.string().optional().describe('Pinned version constraint, if the asset is version-pinned'),
|
|
41
|
+
type: AssetType.describe('Asset type'),
|
|
42
|
+
updatedAt: z.string().optional().describe('ISO timestamp of last update'),
|
|
43
|
+
version: z.string().describe('Installed version'),
|
|
44
|
+
});
|
|
45
|
+
export const LockfileSchema = z.object({
|
|
46
|
+
assets: z.array(InstalledAsset).optional().describe('Currently installed assets'),
|
|
47
|
+
lockVersion: z.literal(1).describe('Lock file format version'),
|
|
48
|
+
tool: z.string().describe('Tool this lock file is associated with'),
|
|
49
|
+
});
|
|
50
|
+
//# sourceMappingURL=lockfile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AE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;CACpE,CAAC,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AssetType: z.ZodEnum<{
|
|
3
|
+
skill: "skill";
|
|
4
|
+
agent: "agent";
|
|
5
|
+
rule: "rule";
|
|
6
|
+
hook: "hook";
|
|
7
|
+
"memory-template": "memory-template";
|
|
8
|
+
"mcp-config": "mcp-config";
|
|
9
|
+
}>;
|
|
10
|
+
export type AssetType = z.infer<typeof AssetType>;
|
|
11
|
+
export declare const TrustLevel: z.ZodEnum<{
|
|
12
|
+
vetted: "vetted";
|
|
13
|
+
community: "community";
|
|
14
|
+
experimental: "experimental";
|
|
15
|
+
}>;
|
|
16
|
+
export type TrustLevel = z.infer<typeof TrustLevel>;
|
|
17
|
+
export declare const ToolCompatibility: z.ZodObject<{
|
|
18
|
+
maxVersion: z.ZodOptional<z.ZodString>;
|
|
19
|
+
minVersion: z.ZodOptional<z.ZodString>;
|
|
20
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
21
|
+
tool: z.ZodString;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type ToolCompatibility = z.infer<typeof ToolCompatibility>;
|
|
24
|
+
export declare const AssetDependency: z.ZodObject<{
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
type: z.ZodEnum<{
|
|
27
|
+
skill: "skill";
|
|
28
|
+
agent: "agent";
|
|
29
|
+
rule: "rule";
|
|
30
|
+
hook: "hook";
|
|
31
|
+
"memory-template": "memory-template";
|
|
32
|
+
"mcp-config": "mcp-config";
|
|
33
|
+
}>;
|
|
34
|
+
version: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export type AssetDependency = z.infer<typeof AssetDependency>;
|
|
37
|
+
export declare const SecurityBlock: z.ZodObject<{
|
|
38
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
39
|
+
reviewedAt: z.ZodOptional<z.ZodString>;
|
|
40
|
+
reviewedBy: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export type SecurityBlock = z.infer<typeof SecurityBlock>;
|
|
43
|
+
export declare const ManifestSchema: z.ZodObject<{
|
|
44
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
45
|
+
author: z.ZodString;
|
|
46
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
type: z.ZodEnum<{
|
|
49
|
+
skill: "skill";
|
|
50
|
+
agent: "agent";
|
|
51
|
+
rule: "rule";
|
|
52
|
+
hook: "hook";
|
|
53
|
+
"memory-template": "memory-template";
|
|
54
|
+
"mcp-config": "mcp-config";
|
|
55
|
+
}>;
|
|
56
|
+
version: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
description: z.ZodString;
|
|
59
|
+
entrypoint: z.ZodString;
|
|
60
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
61
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
security: z.ZodOptional<z.ZodObject<{
|
|
64
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
+
reviewedAt: z.ZodOptional<z.ZodString>;
|
|
66
|
+
reviewedBy: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
|
+
tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
70
|
+
maxVersion: z.ZodOptional<z.ZodString>;
|
|
71
|
+
minVersion: z.ZodOptional<z.ZodString>;
|
|
72
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
73
|
+
tool: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
75
|
+
trustLevel: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
vetted: "vetted";
|
|
77
|
+
community: "community";
|
|
78
|
+
experimental: "experimental";
|
|
79
|
+
}>>;
|
|
80
|
+
type: z.ZodEnum<{
|
|
81
|
+
skill: "skill";
|
|
82
|
+
agent: "agent";
|
|
83
|
+
rule: "rule";
|
|
84
|
+
hook: "hook";
|
|
85
|
+
"memory-template": "memory-template";
|
|
86
|
+
"mcp-config": "mcp-config";
|
|
87
|
+
}>;
|
|
88
|
+
version: z.ZodString;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export type Manifest = z.infer<typeof ManifestSchema>;
|
|
91
|
+
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../src/lib/schemas/manifest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,SAAS;;;;;;;EAA8E,CAAC;AACrG,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD,eAAO,MAAM,UAAU;;;;EAAkD,CAAC;AAC1E,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,eAAO,MAAM,iBAAiB;;;;;iBAK5B,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,eAAO,MAAM,eAAe;;;;;;;;;;;iBAI1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,aAAa;;;;iBAIxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoBzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { valid as semverValid } from 'semver';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export const AssetType = z.enum(['skill', 'agent', 'rule', 'hook', 'memory-template', 'mcp-config']);
|
|
4
|
+
export const TrustLevel = z.enum(['vetted', 'community', 'experimental']);
|
|
5
|
+
export const ToolCompatibility = z.object({
|
|
6
|
+
maxVersion: z.string().optional().describe('Maximum compatible tool version'),
|
|
7
|
+
minVersion: z.string().optional().describe('Minimum compatible tool version'),
|
|
8
|
+
notes: z.string().optional().describe('Compatibility notes'),
|
|
9
|
+
tool: z.string().describe('Tool identifier (e.g., claude-code)'),
|
|
10
|
+
});
|
|
11
|
+
export const AssetDependency = z.object({
|
|
12
|
+
name: z.string().describe('Dependency asset name'),
|
|
13
|
+
type: AssetType.describe('Dependency asset type'),
|
|
14
|
+
version: z.string().optional().describe('Semver range for the dependency'),
|
|
15
|
+
});
|
|
16
|
+
export const SecurityBlock = z.object({
|
|
17
|
+
permissions: z.array(z.string()).optional().describe('Permissions this asset requires (e.g., filesystem, network)'),
|
|
18
|
+
reviewedAt: z.string().optional().describe('ISO date when the security review occurred'),
|
|
19
|
+
reviewedBy: z.string().optional().describe('Who reviewed this asset for security'),
|
|
20
|
+
});
|
|
21
|
+
export const ManifestSchema = z.object({
|
|
22
|
+
$schema: z.string().optional().describe('JSON Schema reference for editor validation and autocomplete'),
|
|
23
|
+
author: z.string().describe('Author name or identifier'),
|
|
24
|
+
dependencies: z.array(AssetDependency).optional().describe('Other assets this asset depends on'),
|
|
25
|
+
description: z.string().describe('Short description of what this asset does'),
|
|
26
|
+
entrypoint: z.string().describe('Primary file for this asset (relative to asset directory)'),
|
|
27
|
+
files: z.array(z.string()).optional().describe('Additional files included with this asset (relative paths)'),
|
|
28
|
+
metadata: z.record(z.string(), z.unknown()).optional().describe('Arbitrary additional metadata'),
|
|
29
|
+
name: z.string().describe('Unique asset name (kebab-case)'),
|
|
30
|
+
security: SecurityBlock.optional().describe('Security review information'),
|
|
31
|
+
tags: z.array(z.string()).optional().describe('Searchable tags'),
|
|
32
|
+
tools: z.array(ToolCompatibility).optional().describe('Tool compatibility information'),
|
|
33
|
+
trustLevel: TrustLevel.optional().describe('Trust/vetting level'),
|
|
34
|
+
type: AssetType.describe('Asset type'),
|
|
35
|
+
version: z
|
|
36
|
+
.string()
|
|
37
|
+
.describe('Semver version string')
|
|
38
|
+
.refine((v) => semverValid(v) !== null && !v.startsWith('v'), {
|
|
39
|
+
message: 'version must be valid semver (e.g., 1.0.0) without a "v" prefix',
|
|
40
|
+
}),
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../../src/lib/schemas/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,YAAY,CAAC,CAAC,CAAC;AAGrG,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC;AAG1E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CA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AAI,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;QAC5D,OAAO,EAAE,iEAAiE;KAC3E,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const RegistryAssetVersionSchema: z.ZodObject<{
|
|
3
|
+
author: z.ZodString;
|
|
4
|
+
checksum: z.ZodString;
|
|
5
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
type: z.ZodEnum<{
|
|
8
|
+
skill: "skill";
|
|
9
|
+
agent: "agent";
|
|
10
|
+
rule: "rule";
|
|
11
|
+
hook: "hook";
|
|
12
|
+
"memory-template": "memory-template";
|
|
13
|
+
"mcp-config": "mcp-config";
|
|
14
|
+
}>;
|
|
15
|
+
version: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
17
|
+
description: z.ZodString;
|
|
18
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
readme: z.ZodOptional<z.ZodString>;
|
|
20
|
+
security: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
reviewedAt: z.ZodOptional<z.ZodString>;
|
|
23
|
+
reviewedBy: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
25
|
+
tools: z.ZodArray<z.ZodString>;
|
|
26
|
+
trustLevel: z.ZodEnum<{
|
|
27
|
+
vetted: "vetted";
|
|
28
|
+
community: "community";
|
|
29
|
+
experimental: "experimental";
|
|
30
|
+
}>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type RegistryAssetVersion = z.infer<typeof RegistryAssetVersionSchema>;
|
|
33
|
+
export declare const RegistryAssetVersionsMapSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
34
|
+
author: z.ZodString;
|
|
35
|
+
checksum: z.ZodString;
|
|
36
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
type: z.ZodEnum<{
|
|
39
|
+
skill: "skill";
|
|
40
|
+
agent: "agent";
|
|
41
|
+
rule: "rule";
|
|
42
|
+
hook: "hook";
|
|
43
|
+
"memory-template": "memory-template";
|
|
44
|
+
"mcp-config": "mcp-config";
|
|
45
|
+
}>;
|
|
46
|
+
version: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
48
|
+
description: z.ZodString;
|
|
49
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
|
+
readme: z.ZodOptional<z.ZodString>;
|
|
51
|
+
security: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
reviewedAt: z.ZodOptional<z.ZodString>;
|
|
54
|
+
reviewedBy: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
tools: z.ZodArray<z.ZodString>;
|
|
57
|
+
trustLevel: z.ZodEnum<{
|
|
58
|
+
vetted: "vetted";
|
|
59
|
+
community: "community";
|
|
60
|
+
experimental: "experimental";
|
|
61
|
+
}>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
export type RegistryAssetVersionsMap = z.infer<typeof RegistryAssetVersionsMapSchema>;
|
|
64
|
+
export declare const RegistryAsset: z.ZodObject<{
|
|
65
|
+
latest: z.ZodString;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
tags: z.ZodArray<z.ZodString>;
|
|
68
|
+
type: z.ZodEnum<{
|
|
69
|
+
skill: "skill";
|
|
70
|
+
agent: "agent";
|
|
71
|
+
rule: "rule";
|
|
72
|
+
hook: "hook";
|
|
73
|
+
"memory-template": "memory-template";
|
|
74
|
+
"mcp-config": "mcp-config";
|
|
75
|
+
}>;
|
|
76
|
+
versions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
77
|
+
author: z.ZodString;
|
|
78
|
+
checksum: z.ZodString;
|
|
79
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
type: z.ZodEnum<{
|
|
82
|
+
skill: "skill";
|
|
83
|
+
agent: "agent";
|
|
84
|
+
rule: "rule";
|
|
85
|
+
hook: "hook";
|
|
86
|
+
"memory-template": "memory-template";
|
|
87
|
+
"mcp-config": "mcp-config";
|
|
88
|
+
}>;
|
|
89
|
+
version: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>>>;
|
|
91
|
+
description: z.ZodString;
|
|
92
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
93
|
+
readme: z.ZodOptional<z.ZodString>;
|
|
94
|
+
security: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
96
|
+
reviewedAt: z.ZodOptional<z.ZodString>;
|
|
97
|
+
reviewedBy: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, z.core.$strip>>;
|
|
99
|
+
tools: z.ZodArray<z.ZodString>;
|
|
100
|
+
trustLevel: z.ZodEnum<{
|
|
101
|
+
vetted: "vetted";
|
|
102
|
+
community: "community";
|
|
103
|
+
experimental: "experimental";
|
|
104
|
+
}>;
|
|
105
|
+
}, z.core.$strip>>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type RegistryAsset = z.infer<typeof RegistryAsset>;
|
|
108
|
+
export declare const RegistryBundle: z.ZodObject<{
|
|
109
|
+
assetCount: z.ZodNumber;
|
|
110
|
+
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
type: z.ZodEnum<{
|
|
113
|
+
skill: "skill";
|
|
114
|
+
agent: "agent";
|
|
115
|
+
rule: "rule";
|
|
116
|
+
hook: "hook";
|
|
117
|
+
"memory-template": "memory-template";
|
|
118
|
+
"mcp-config": "mcp-config";
|
|
119
|
+
}>;
|
|
120
|
+
version: z.ZodOptional<z.ZodString>;
|
|
121
|
+
}, z.core.$strip>>>;
|
|
122
|
+
author: z.ZodString;
|
|
123
|
+
description: z.ZodString;
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
tags: z.ZodArray<z.ZodString>;
|
|
126
|
+
version: z.ZodString;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export type RegistryBundle = z.infer<typeof RegistryBundle>;
|
|
129
|
+
export declare const DeprecatedEntry: z.ZodObject<{
|
|
130
|
+
deprecatedAt: z.ZodString;
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
reason: z.ZodString;
|
|
133
|
+
replacement: z.ZodOptional<z.ZodString>;
|
|
134
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
135
|
+
skill: "skill";
|
|
136
|
+
agent: "agent";
|
|
137
|
+
rule: "rule";
|
|
138
|
+
hook: "hook";
|
|
139
|
+
"memory-template": "memory-template";
|
|
140
|
+
"mcp-config": "mcp-config";
|
|
141
|
+
}>>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
export type DeprecatedEntry = z.infer<typeof DeprecatedEntry>;
|
|
144
|
+
export declare const RegistrySchema: z.ZodObject<{
|
|
145
|
+
assets: z.ZodArray<z.ZodObject<{
|
|
146
|
+
latest: z.ZodString;
|
|
147
|
+
name: z.ZodString;
|
|
148
|
+
tags: z.ZodArray<z.ZodString>;
|
|
149
|
+
type: z.ZodEnum<{
|
|
150
|
+
skill: "skill";
|
|
151
|
+
agent: "agent";
|
|
152
|
+
rule: "rule";
|
|
153
|
+
hook: "hook";
|
|
154
|
+
"memory-template": "memory-template";
|
|
155
|
+
"mcp-config": "mcp-config";
|
|
156
|
+
}>;
|
|
157
|
+
versions: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
158
|
+
author: z.ZodString;
|
|
159
|
+
checksum: z.ZodString;
|
|
160
|
+
dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
161
|
+
name: z.ZodString;
|
|
162
|
+
type: z.ZodEnum<{
|
|
163
|
+
skill: "skill";
|
|
164
|
+
agent: "agent";
|
|
165
|
+
rule: "rule";
|
|
166
|
+
hook: "hook";
|
|
167
|
+
"memory-template": "memory-template";
|
|
168
|
+
"mcp-config": "mcp-config";
|
|
169
|
+
}>;
|
|
170
|
+
version: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, z.core.$strip>>>;
|
|
172
|
+
description: z.ZodString;
|
|
173
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
|
+
readme: z.ZodOptional<z.ZodString>;
|
|
175
|
+
security: z.ZodOptional<z.ZodObject<{
|
|
176
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
177
|
+
reviewedAt: z.ZodOptional<z.ZodString>;
|
|
178
|
+
reviewedBy: z.ZodOptional<z.ZodString>;
|
|
179
|
+
}, z.core.$strip>>;
|
|
180
|
+
tools: z.ZodArray<z.ZodString>;
|
|
181
|
+
trustLevel: z.ZodEnum<{
|
|
182
|
+
vetted: "vetted";
|
|
183
|
+
community: "community";
|
|
184
|
+
experimental: "experimental";
|
|
185
|
+
}>;
|
|
186
|
+
}, z.core.$strip>>;
|
|
187
|
+
}, z.core.$strip>>;
|
|
188
|
+
bundles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
189
|
+
assetCount: z.ZodNumber;
|
|
190
|
+
assets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
191
|
+
name: z.ZodString;
|
|
192
|
+
type: z.ZodEnum<{
|
|
193
|
+
skill: "skill";
|
|
194
|
+
agent: "agent";
|
|
195
|
+
rule: "rule";
|
|
196
|
+
hook: "hook";
|
|
197
|
+
"memory-template": "memory-template";
|
|
198
|
+
"mcp-config": "mcp-config";
|
|
199
|
+
}>;
|
|
200
|
+
version: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$strip>>>;
|
|
202
|
+
author: z.ZodString;
|
|
203
|
+
description: z.ZodString;
|
|
204
|
+
name: z.ZodString;
|
|
205
|
+
tags: z.ZodArray<z.ZodString>;
|
|
206
|
+
version: z.ZodString;
|
|
207
|
+
}, z.core.$strip>>>;
|
|
208
|
+
deprecated: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
209
|
+
deprecatedAt: z.ZodString;
|
|
210
|
+
name: z.ZodString;
|
|
211
|
+
reason: z.ZodString;
|
|
212
|
+
replacement: z.ZodOptional<z.ZodString>;
|
|
213
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
214
|
+
skill: "skill";
|
|
215
|
+
agent: "agent";
|
|
216
|
+
rule: "rule";
|
|
217
|
+
hook: "hook";
|
|
218
|
+
"memory-template": "memory-template";
|
|
219
|
+
"mcp-config": "mcp-config";
|
|
220
|
+
}>>;
|
|
221
|
+
}, z.core.$strip>>>;
|
|
222
|
+
version: z.ZodString;
|
|
223
|
+
}, z.core.$strip>;
|
|
224
|
+
export type Registry = z.infer<typeof RegistrySchema>;
|
|
225
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/lib/schemas/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAmD,CAAC;AAC/F,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;iBAQzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,eAAO,MAAM,eAAe;;;;;;;;;;;;;iBAM1B,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { BundleAssetRef } from './bundle.js';
|
|
3
|
+
import { AssetType, TrustLevel } from './manifest.js';
|
|
4
|
+
export const RegistryAssetVersionSchema = z.object({
|
|
5
|
+
author: z.string().describe('Author'),
|
|
6
|
+
checksum: z.string().describe('SHA-256 checksum of the asset directory'),
|
|
7
|
+
dependencies: z
|
|
8
|
+
.array(z.object({
|
|
9
|
+
name: z.string(),
|
|
10
|
+
type: AssetType,
|
|
11
|
+
version: z.string().optional().describe('Semver range for the dependency'),
|
|
12
|
+
}))
|
|
13
|
+
.optional()
|
|
14
|
+
.describe('Asset dependencies'),
|
|
15
|
+
description: z.string().describe('Short description'),
|
|
16
|
+
files: z.array(z.string()).optional().describe('Files included in this version'),
|
|
17
|
+
readme: z.string().optional().describe('README content for this asset version'),
|
|
18
|
+
security: z
|
|
19
|
+
.object({
|
|
20
|
+
permissions: z.array(z.string()).optional().describe('Permissions this asset requires'),
|
|
21
|
+
reviewedAt: z.string().optional().describe('ISO date of security review'),
|
|
22
|
+
reviewedBy: z.string().optional().describe('Who reviewed this asset'),
|
|
23
|
+
})
|
|
24
|
+
.optional()
|
|
25
|
+
.describe('Security review information'),
|
|
26
|
+
tools: z.array(z.string()).describe('Compatible tool identifiers'),
|
|
27
|
+
trustLevel: TrustLevel.describe('Trust level'),
|
|
28
|
+
});
|
|
29
|
+
export const RegistryAssetVersionsMapSchema = z.record(z.string(), RegistryAssetVersionSchema);
|
|
30
|
+
export const RegistryAsset = z.object({
|
|
31
|
+
latest: z.string().describe('Latest version semver string'),
|
|
32
|
+
name: z.string().describe('Asset name'),
|
|
33
|
+
tags: z.array(z.string()).describe('Tags'),
|
|
34
|
+
type: AssetType.describe('Asset type'),
|
|
35
|
+
versions: RegistryAssetVersionsMapSchema.describe('Map of semver string to version metadata'),
|
|
36
|
+
});
|
|
37
|
+
export const RegistryBundle = z.object({
|
|
38
|
+
assetCount: z.number().describe('Number of assets in the bundle'),
|
|
39
|
+
assets: z.array(BundleAssetRef).optional().describe('Assets contained in this bundle'),
|
|
40
|
+
author: z.string().describe('Author'),
|
|
41
|
+
description: z.string().describe('Short description'),
|
|
42
|
+
name: z.string().describe('Bundle name'),
|
|
43
|
+
tags: z.array(z.string()).describe('Tags'),
|
|
44
|
+
version: z.string().describe('Latest version'),
|
|
45
|
+
});
|
|
46
|
+
export const DeprecatedEntry = z.object({
|
|
47
|
+
deprecatedAt: z.string().describe('ISO date of deprecation'),
|
|
48
|
+
name: z.string().describe('Deprecated asset or bundle name'),
|
|
49
|
+
reason: z.string().describe('Reason for deprecation'),
|
|
50
|
+
replacement: z.string().optional().describe('Suggested replacement name'),
|
|
51
|
+
type: AssetType.optional().describe('Asset type (if asset, not bundle)'),
|
|
52
|
+
});
|
|
53
|
+
export const RegistrySchema = z.object({
|
|
54
|
+
assets: z.array(RegistryAsset).describe('All available assets'),
|
|
55
|
+
bundles: z.array(RegistryBundle).optional().describe('All available bundles'),
|
|
56
|
+
deprecated: z.array(DeprecatedEntry).optional().describe('Deprecated assets and bundles'),
|
|
57
|
+
version: z.string().describe('ISO timestamp when this registry was built'),
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=registry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/lib/schemas/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC;IACrC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IACxE,YAAY,EAAE,CAAC;SACZ,KAAK,CACJ,CAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;KAC3E,CAAC,CACH;SACA,QAAQ,EAAE;SACV,QAAQ,CAAC,oBAAoB,CAAC;IACjC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IACrD,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gCAAgC,CAAC;IAChF,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;IAC/E,QAAQ,EAAE,CAAC;SACR,MAA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CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAC7E,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IACzF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;CAC3E,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AssetType } from './schemas/manifest.js';
|
|
2
|
+
import type { Registry, RegistryAsset, RegistryBundle } from './schemas/registry.js';
|
|
3
|
+
export interface SearchOptions {
|
|
4
|
+
query: string;
|
|
5
|
+
tag?: string;
|
|
6
|
+
tool?: string;
|
|
7
|
+
type?: 'bundle' | AssetType;
|
|
8
|
+
}
|
|
9
|
+
export type SearchResult = {
|
|
10
|
+
item: RegistryAsset;
|
|
11
|
+
kind: 'asset';
|
|
12
|
+
score: number;
|
|
13
|
+
} | {
|
|
14
|
+
item: RegistryBundle;
|
|
15
|
+
kind: 'bundle';
|
|
16
|
+
score: number;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Search the registry for assets and bundles matching a query.
|
|
20
|
+
* Returns results sorted by relevance score (highest first).
|
|
21
|
+
*/
|
|
22
|
+
export declare function searchRegistry(registry: Registry, options: SearchOptions): SearchResult[];
|
|
23
|
+
//# sourceMappingURL=search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/lib/search.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAErF,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC7B;AAED,MAAM,MAAM,YAAY,GACpB;IAAE,IAAI,EAAE,aAAa,CAAC;IAAC,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACrD;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5D;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,GAAG,YAAY,EAAE,CA2CzF"}
|