@hashicorp/kits 0.1.4 → 0.1.6
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/README.md +175 -33
- package/dist/adapters/base-adapter.d.ts +2 -2
- package/dist/adapters/base-adapter.js +2 -2
- package/dist/adapters/claude-code/index.d.ts +1 -1
- package/dist/adapters/claude-code/index.d.ts.map +1 -1
- package/dist/adapters/claude-code/index.js +23 -9
- package/dist/adapters/claude-code/index.js.map +1 -1
- package/dist/adapters/claude-code/installer.d.ts +1 -4
- package/dist/adapters/claude-code/installer.d.ts.map +1 -1
- package/dist/adapters/claude-code/installer.js +17 -16
- package/dist/adapters/claude-code/installer.js.map +1 -1
- package/dist/adapters/codex/index.d.ts +1 -1
- package/dist/adapters/codex/index.js +1 -1
- package/dist/adapters/gemini-cli/index.d.ts +1 -1
- package/dist/adapters/gemini-cli/index.js +1 -1
- package/dist/adapters/gemini-cli/installer.d.ts +1 -4
- package/dist/adapters/gemini-cli/installer.d.ts.map +1 -1
- package/dist/adapters/gemini-cli/installer.js +15 -15
- package/dist/adapters/gemini-cli/installer.js.map +1 -1
- package/dist/adapters/github-copilot/index.d.ts +1 -1
- package/dist/adapters/github-copilot/index.js +1 -1
- package/dist/adapters/opencode/index.d.ts +1 -1
- package/dist/adapters/opencode/index.js +1 -1
- package/dist/adapters/opencode/installer.d.ts.map +1 -1
- package/dist/adapters/opencode/installer.js +19 -14
- package/dist/adapters/opencode/installer.js.map +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +29 -9
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/install.d.ts.map +1 -1
- package/dist/cli/install.js +820 -161
- package/dist/cli/install.js.map +1 -1
- package/dist/cli/list.d.ts.map +1 -1
- package/dist/cli/list.js +8 -6
- package/dist/cli/list.js.map +1 -1
- package/dist/cli/types.d.ts +17 -0
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/cli/types.js +1 -0
- package/dist/cli/types.js.map +1 -1
- package/dist/cli/uninstall.d.ts.map +1 -1
- package/dist/cli/uninstall.js +300 -38
- package/dist/cli/uninstall.js.map +1 -1
- package/dist/cli/upgrade.d.ts.map +1 -1
- package/dist/cli/upgrade.js +334 -105
- package/dist/cli/upgrade.js.map +1 -1
- package/dist/cli/validate.js +5 -5
- package/dist/cli/validate.js.map +1 -1
- package/dist/core/types.d.ts +6 -9
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/upgrade-executor.d.ts +7 -7
- package/dist/core/upgrade-executor.d.ts.map +1 -1
- package/dist/core/upgrade-executor.js +17 -17
- package/dist/core/upgrade-executor.js.map +1 -1
- package/dist/discovery/kit-scanner.d.ts +3 -3
- package/dist/discovery/kit-scanner.js +17 -17
- package/dist/discovery/kit-scanner.js.map +1 -1
- package/dist/discovery/types.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/lockfile/index.d.ts +79 -0
- package/dist/lockfile/index.d.ts.map +1 -0
- package/dist/lockfile/index.js +203 -0
- package/dist/lockfile/index.js.map +1 -0
- package/dist/lockfile/read.d.ts +32 -0
- package/dist/lockfile/read.d.ts.map +1 -0
- package/dist/lockfile/read.js +88 -0
- package/dist/lockfile/read.js.map +1 -0
- package/dist/lockfile/types.d.ts +126 -0
- package/dist/lockfile/types.d.ts.map +1 -0
- package/dist/lockfile/types.js +44 -0
- package/dist/lockfile/types.js.map +1 -0
- package/dist/{manifest → lockfile}/upgrade-check.d.ts +5 -5
- package/dist/lockfile/upgrade-check.d.ts.map +1 -0
- package/dist/{manifest → lockfile}/upgrade-check.js +11 -9
- package/dist/lockfile/upgrade-check.js.map +1 -0
- package/dist/lockfile/utils.d.ts +35 -0
- package/dist/lockfile/utils.d.ts.map +1 -0
- package/dist/lockfile/utils.js +57 -0
- package/dist/lockfile/utils.js.map +1 -0
- package/dist/lockfile/write.d.ts +44 -0
- package/dist/lockfile/write.d.ts.map +1 -0
- package/dist/lockfile/write.js +77 -0
- package/dist/lockfile/write.js.map +1 -0
- package/dist/manifest/hash.d.ts +7 -0
- package/dist/manifest/hash.d.ts.map +1 -0
- package/dist/manifest/hash.js +30 -0
- package/dist/manifest/hash.js.map +1 -0
- package/dist/manifest/index.d.ts +8 -77
- package/dist/manifest/index.d.ts.map +1 -1
- package/dist/manifest/index.js +6 -197
- package/dist/manifest/index.js.map +1 -1
- package/dist/manifest/read.d.ts +4 -24
- package/dist/manifest/read.d.ts.map +1 -1
- package/dist/manifest/read.js +22 -46
- package/dist/manifest/read.js.map +1 -1
- package/dist/manifest/types.d.ts +17 -109
- package/dist/manifest/types.d.ts.map +1 -1
- package/dist/manifest/types.js +8 -37
- package/dist/manifest/types.js.map +1 -1
- package/dist/manifest/utils.d.ts +1 -27
- package/dist/manifest/utils.d.ts.map +1 -1
- package/dist/manifest/utils.js +1 -28
- package/dist/manifest/utils.js.map +1 -1
- package/dist/manifest/write.d.ts +3 -34
- package/dist/manifest/write.d.ts.map +1 -1
- package/dist/manifest/write.js +5 -45
- package/dist/manifest/write.js.map +1 -1
- package/dist/resolution/index.d.ts +7 -7
- package/dist/resolution/index.d.ts.map +1 -1
- package/dist/resolution/index.js +29 -19
- package/dist/resolution/index.js.map +1 -1
- package/dist/resolution/multi-kit-resolver.d.ts +2 -2
- package/dist/resolution/multi-kit-resolver.js +2 -2
- package/dist/resolution/primitives-registry.d.ts +1 -1
- package/dist/resolution/primitives-registry.js +2 -2
- package/dist/resolution/primitives-registry.js.map +1 -1
- package/dist/resolution/types.d.ts +1 -1
- package/dist/resolution/types.js +1 -1
- package/dist/tui/types.d.ts +1 -0
- package/dist/tui/types.d.ts.map +1 -1
- package/dist/tui/upgrade-select.d.ts +1 -1
- package/dist/tui/upgrade-select.d.ts.map +1 -1
- package/dist/tui/upgrade-select.js +15 -4
- package/dist/tui/upgrade-select.js.map +1 -1
- package/dist/validation/validate-hooks.d.ts.map +1 -1
- package/dist/validation/validate-hooks.js +2 -1
- package/dist/validation/validate-hooks.js.map +1 -1
- package/dist/validation/validate-kits.d.ts +1 -1
- package/dist/validation/validate-kits.js +5 -5
- package/dist/validation/validate-kits.js.map +1 -1
- package/package.json +2 -1
- package/schemas/examples/hook-binding-valid.json +1 -2
- package/schemas/hook-binding.schema.json +5 -4
- package/schemas/kit.schema.json +5 -4
- package/schemas/{manifest.schema.json → kits-lock.schema.json} +34 -8
- package/schemas/kits-manifest.schema.json +95 -0
- package/schemas/{kits.schema.json → kits-registry.schema.json} +3 -3
- package/schemas/{primitives.schema.json → primitives-registry.schema.json} +2 -2
- package/dist/manifest/upgrade-check.d.ts.map +0 -1
- package/dist/manifest/upgrade-check.js.map +0 -1
package/dist/manifest/index.js
CHANGED
|
@@ -1,200 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* This module handles reading, writing, and managing the installation manifest
|
|
5
|
-
* that tracks installed kits and primitives across harnesses.
|
|
2
|
+
* Kits manifest (intent) module.
|
|
6
3
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
// Re-export write functions
|
|
13
|
-
export { writeManifest, ManifestWriteError } from "./write.js";
|
|
14
|
-
// Re-export scope-aware path functions (renamed for clarity)
|
|
15
|
-
export { getManifestPathForScope, getManifestDirForScope } from "./write.js";
|
|
16
|
-
// Re-export upgrade check functions
|
|
17
|
-
export { checkForUpgrades, checkForUpgradesInScope, createUpgradeSummary, } from "./upgrade-check.js";
|
|
18
|
-
// Re-export utils
|
|
19
|
-
export { expandPath, getManifestPath, getManifestDir, ensureManifestDir, } from "./utils.js";
|
|
20
|
-
/**
|
|
21
|
-
* Record a kit installation in the manifest.
|
|
22
|
-
*
|
|
23
|
-
* @param harness - The harness name
|
|
24
|
-
* @param kit - The kit definition
|
|
25
|
-
* @param primitives - The resolved primitives that were installed
|
|
26
|
-
* @param source - The source repository
|
|
27
|
-
* @param scope - Installation scope (global or project)
|
|
28
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
29
|
-
*/
|
|
30
|
-
export async function recordInstallation(harness, kit, primitives, source, scope = "global", projectRoot) {
|
|
31
|
-
const manifest = await getOrCreateManifest(scope, projectRoot);
|
|
32
|
-
// Ensure harness entry exists
|
|
33
|
-
if (!manifest.harnesses[harness]) {
|
|
34
|
-
manifest.harnesses[harness] = { kits: {} };
|
|
35
|
-
}
|
|
36
|
-
// Convert resolved primitives to installed primitives
|
|
37
|
-
const installedPrimitives = primitives.map((p) => {
|
|
38
|
-
const installed = {
|
|
39
|
-
name: p.name,
|
|
40
|
-
type: p.type,
|
|
41
|
-
namespacedName: `${kit.name}.${p.name}`,
|
|
42
|
-
isInline: p.isInline,
|
|
43
|
-
installedPath: p.sourcePath,
|
|
44
|
-
};
|
|
45
|
-
// Only add optional fields if they have values
|
|
46
|
-
if (p.resolvedVersion) {
|
|
47
|
-
installed.version = p.resolvedVersion;
|
|
48
|
-
}
|
|
49
|
-
const versionSpec = p.ref ? extractVersionSpec(p.ref) : undefined;
|
|
50
|
-
if (versionSpec) {
|
|
51
|
-
installed.versionSpec = versionSpec;
|
|
52
|
-
}
|
|
53
|
-
return installed;
|
|
54
|
-
});
|
|
55
|
-
// Record the kit installation
|
|
56
|
-
const harnessEntry = manifest.harnesses[harness];
|
|
57
|
-
if (harnessEntry) {
|
|
58
|
-
harnessEntry.kits[kit.name] = {
|
|
59
|
-
version: kit.version,
|
|
60
|
-
installedAt: new Date().toISOString(),
|
|
61
|
-
source,
|
|
62
|
-
primitives: installedPrimitives,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
// Update source
|
|
66
|
-
manifest.source = source;
|
|
67
|
-
await writeManifest(manifest, scope, projectRoot);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Remove a kit installation from the manifest.
|
|
71
|
-
*
|
|
72
|
-
* @param harness - The harness name
|
|
73
|
-
* @param kitName - The kit name to remove
|
|
74
|
-
* @param scope - Installation scope (global or project)
|
|
75
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
76
|
-
* @returns The removed kit info or null if not found
|
|
77
|
-
*/
|
|
78
|
-
export async function removeInstallation(harness, kitName, scope = "global", projectRoot) {
|
|
79
|
-
const manifest = await readManifest(scope, projectRoot);
|
|
80
|
-
if (!manifest) {
|
|
81
|
-
return null;
|
|
82
|
-
}
|
|
83
|
-
const harnessEntry = manifest.harnesses[harness];
|
|
84
|
-
if (!harnessEntry) {
|
|
85
|
-
return null;
|
|
86
|
-
}
|
|
87
|
-
const kit = harnessEntry.kits[kitName];
|
|
88
|
-
if (!kit) {
|
|
89
|
-
return null;
|
|
90
|
-
}
|
|
91
|
-
// Remove the kit
|
|
92
|
-
delete harnessEntry.kits[kitName];
|
|
93
|
-
// Clean up empty harness entries
|
|
94
|
-
if (Object.keys(harnessEntry.kits).length === 0) {
|
|
95
|
-
delete manifest.harnesses[harness];
|
|
96
|
-
}
|
|
97
|
-
await writeManifest(manifest, scope, projectRoot);
|
|
98
|
-
return kit;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Get all installed kits, optionally filtered by harness.
|
|
102
|
-
*
|
|
103
|
-
* @param scope - Installation scope (global or project)
|
|
104
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
105
|
-
* @param harness - Optional harness name to filter by
|
|
106
|
-
* @returns Array of installed kit info with harness context
|
|
107
|
-
*/
|
|
108
|
-
export async function getInstalledKits(scope = "global", projectRoot, harness) {
|
|
109
|
-
const manifest = await readManifest(scope, projectRoot);
|
|
110
|
-
if (!manifest) {
|
|
111
|
-
return [];
|
|
112
|
-
}
|
|
113
|
-
const result = [];
|
|
114
|
-
for (const [harnessName, harnessEntry] of Object.entries(manifest.harnesses)) {
|
|
115
|
-
if (harness && harnessName !== harness) {
|
|
116
|
-
continue;
|
|
117
|
-
}
|
|
118
|
-
if (harnessEntry) {
|
|
119
|
-
for (const [kitName, kit] of Object.entries(harnessEntry.kits)) {
|
|
120
|
-
result.push({
|
|
121
|
-
harness: harnessName,
|
|
122
|
-
kitName,
|
|
123
|
-
kit,
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
return result;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Check if a kit is installed in any harness.
|
|
132
|
-
*
|
|
133
|
-
* @param kitName - The kit name to check
|
|
134
|
-
* @param scope - Installation scope (global or project)
|
|
135
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
136
|
-
* @returns True if the kit is installed somewhere
|
|
137
|
-
*/
|
|
138
|
-
export async function isKitInstalled(kitName, scope = "global", projectRoot) {
|
|
139
|
-
const manifest = await readManifest(scope, projectRoot);
|
|
140
|
-
if (!manifest) {
|
|
141
|
-
return false;
|
|
142
|
-
}
|
|
143
|
-
for (const harness of Object.values(manifest.harnesses)) {
|
|
144
|
-
if (harness && kitName in harness.kits) {
|
|
145
|
-
return true;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return false;
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Check if a kit is installed in a specific harness.
|
|
152
|
-
*
|
|
153
|
-
* @param harness - The harness name
|
|
154
|
-
* @param kitName - The kit name to check
|
|
155
|
-
* @param scope - Installation scope (global or project)
|
|
156
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
157
|
-
* @returns True if the kit is installed in the harness
|
|
158
|
-
*/
|
|
159
|
-
export async function isKitInstalledInHarness(harness, kitName, scope = "global", projectRoot) {
|
|
160
|
-
const manifest = await readManifest(scope, projectRoot);
|
|
161
|
-
if (!manifest) {
|
|
162
|
-
return false;
|
|
163
|
-
}
|
|
164
|
-
const harnessEntry = manifest.harnesses[harness];
|
|
165
|
-
return harnessEntry ? kitName in harnessEntry.kits : false;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Get a specific installed kit.
|
|
169
|
-
*
|
|
170
|
-
* @param harness - The harness name
|
|
171
|
-
* @param kitName - The kit name
|
|
172
|
-
* @param scope - Installation scope (global or project)
|
|
173
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
174
|
-
* @returns The installed kit or null if not found
|
|
175
|
-
*/
|
|
176
|
-
export async function getInstalledKit(harness, kitName, scope = "global", projectRoot) {
|
|
177
|
-
const manifest = await readManifest(scope, projectRoot);
|
|
178
|
-
if (!manifest) {
|
|
179
|
-
return null;
|
|
180
|
-
}
|
|
181
|
-
const harnessEntry = manifest.harnesses[harness];
|
|
182
|
-
if (!harnessEntry) {
|
|
183
|
-
return null;
|
|
184
|
-
}
|
|
185
|
-
return harnessEntry.kits[kitName] ?? null;
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Extract version spec from a ref string.
|
|
189
|
-
*
|
|
190
|
-
* @param ref - The ref string (e.g., "tf-plan@^1.0.0")
|
|
191
|
-
* @returns The version spec portion or undefined
|
|
192
|
-
*/
|
|
193
|
-
function extractVersionSpec(ref) {
|
|
194
|
-
const atIndex = ref.indexOf("@");
|
|
195
|
-
if (atIndex === -1) {
|
|
196
|
-
return undefined;
|
|
197
|
-
}
|
|
198
|
-
return ref.slice(atIndex + 1);
|
|
199
|
-
}
|
|
4
|
+
export { MANIFEST_SCHEMA_VERSION, GLOBAL_MANIFEST_PATH, PROJECT_MANIFEST_DIR, PROJECT_MANIFEST_FILENAME, createEmptyManifest, } from "./types.js";
|
|
5
|
+
export { ManifestReadError, readManifest, readManifestFile } from "./read.js";
|
|
6
|
+
export { ManifestWriteError, writeManifest, getManifestPathForScope, getManifestDirForScope } from "./write.js";
|
|
7
|
+
export { expandPath, getManifestPath, getManifestDir, ensureManifestDir } from "./utils.js";
|
|
8
|
+
export { canonicalizeManifest, hashManifest } from "./hash.js";
|
|
200
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/manifest/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/manifest/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACL,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAChH,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/manifest/read.d.ts
CHANGED
|
@@ -1,32 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Provides functionality to read and validate the installation manifest.
|
|
2
|
+
* Kits manifest (intent) read operations.
|
|
5
3
|
*/
|
|
6
4
|
import type { InstallationScope } from "../core/types.js";
|
|
7
|
-
import type {
|
|
8
|
-
/**
|
|
9
|
-
* Error thrown when manifest read fails.
|
|
10
|
-
*/
|
|
5
|
+
import type { KitsManifest } from "./types.js";
|
|
11
6
|
export declare class ManifestReadError extends Error {
|
|
12
7
|
readonly errorCause?: unknown;
|
|
13
8
|
constructor(message: string, cause?: unknown);
|
|
14
9
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
* @param scope - Installation scope (global or project)
|
|
19
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
20
|
-
* @returns The manifest or null if it doesn't exist
|
|
21
|
-
* @throws ManifestReadError if the file exists but cannot be read or parsed
|
|
22
|
-
*/
|
|
23
|
-
export declare function readManifest(scope?: InstallationScope, projectRoot?: string): Promise<InstallationManifest | null>;
|
|
24
|
-
/**
|
|
25
|
-
* Get or create the installation manifest.
|
|
26
|
-
*
|
|
27
|
-
* @param scope - Installation scope (global or project)
|
|
28
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
29
|
-
* @returns The existing manifest or a new empty manifest
|
|
30
|
-
*/
|
|
31
|
-
export declare function getOrCreateManifest(scope?: InstallationScope, projectRoot?: string): Promise<InstallationManifest>;
|
|
10
|
+
export declare function readManifestFile(manifestPath: string): Promise<KitsManifest>;
|
|
11
|
+
export declare function readManifest(scope?: InstallationScope, projectRoot?: string): Promise<KitsManifest | null>;
|
|
32
12
|
//# sourceMappingURL=read.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/manifest/read.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/manifest/read.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;gBAElB,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;CAK7C;AAED,wBAAsB,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CA0BlF;AAED,wBAAsB,YAAY,CAChC,KAAK,GAAE,iBAA4B,EACnC,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAc9B"}
|
package/dist/manifest/read.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Provides functionality to read and validate the installation manifest.
|
|
2
|
+
* Kits manifest (intent) read operations.
|
|
5
3
|
*/
|
|
6
4
|
import fs from "node:fs/promises";
|
|
7
|
-
import {
|
|
5
|
+
import { MANIFEST_SCHEMA_VERSION } from "./types.js";
|
|
8
6
|
import { getManifestPath } from "./utils.js";
|
|
9
|
-
/**
|
|
10
|
-
* Error thrown when manifest read fails.
|
|
11
|
-
*/
|
|
12
7
|
export class ManifestReadError extends Error {
|
|
13
8
|
errorCause;
|
|
14
9
|
constructor(message, cause) {
|
|
@@ -17,70 +12,51 @@ export class ManifestReadError extends Error {
|
|
|
17
12
|
this.errorCause = cause;
|
|
18
13
|
}
|
|
19
14
|
}
|
|
20
|
-
|
|
21
|
-
* Read the installation manifest from disk.
|
|
22
|
-
*
|
|
23
|
-
* @param scope - Installation scope (global or project)
|
|
24
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
25
|
-
* @returns The manifest or null if it doesn't exist
|
|
26
|
-
* @throws ManifestReadError if the file exists but cannot be read or parsed
|
|
27
|
-
*/
|
|
28
|
-
export async function readManifest(scope = "global", projectRoot) {
|
|
29
|
-
const manifestPath = getManifestPath(scope, projectRoot);
|
|
15
|
+
export async function readManifestFile(manifestPath) {
|
|
30
16
|
try {
|
|
31
17
|
const content = await fs.readFile(manifestPath, "utf-8");
|
|
32
18
|
const manifest = JSON.parse(content);
|
|
33
|
-
// Validate manifest version
|
|
34
19
|
if (!isValidManifest(manifest)) {
|
|
35
|
-
throw new ManifestReadError(`Invalid manifest format at ${manifestPath}; expected
|
|
20
|
+
throw new ManifestReadError(`Invalid kits manifest format at ${manifestPath}; expected schemaVersion ${MANIFEST_SCHEMA_VERSION}`);
|
|
36
21
|
}
|
|
37
22
|
return manifest;
|
|
38
23
|
}
|
|
39
24
|
catch (error) {
|
|
40
|
-
const nodeError = error;
|
|
41
|
-
// File doesn't exist - return null
|
|
42
|
-
if (nodeError.code === "ENOENT") {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
// Re-throw ManifestReadError as-is
|
|
46
25
|
if (error instanceof ManifestReadError) {
|
|
47
26
|
throw error;
|
|
48
27
|
}
|
|
49
|
-
// JSON parse errors
|
|
50
28
|
if (error instanceof SyntaxError) {
|
|
51
|
-
throw new ManifestReadError(`Failed to parse manifest at ${manifestPath}; invalid JSON`, error);
|
|
29
|
+
throw new ManifestReadError(`Failed to parse kits manifest at ${manifestPath}; invalid JSON`, error);
|
|
52
30
|
}
|
|
53
|
-
|
|
54
|
-
throw new ManifestReadError(`Failed to read manifest at ${manifestPath}`, error);
|
|
31
|
+
throw new ManifestReadError(`Failed to read kits manifest at ${manifestPath}`, error);
|
|
55
32
|
}
|
|
56
33
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
34
|
+
export async function readManifest(scope = "global", projectRoot) {
|
|
35
|
+
const manifestPath = getManifestPath(scope, projectRoot);
|
|
36
|
+
try {
|
|
37
|
+
return await readManifestFile(manifestPath);
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
const cause = error instanceof ManifestReadError && error.errorCause ? error.errorCause : error;
|
|
41
|
+
const nodeError = cause;
|
|
42
|
+
if (nodeError?.code === "ENOENT") {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
67
47
|
}
|
|
68
|
-
/**
|
|
69
|
-
* Validates that a manifest has the expected structure.
|
|
70
|
-
*/
|
|
71
48
|
function isValidManifest(manifest) {
|
|
72
49
|
if (!manifest || typeof manifest !== "object") {
|
|
73
50
|
return false;
|
|
74
51
|
}
|
|
75
52
|
const m = manifest;
|
|
76
|
-
|
|
77
|
-
if (typeof m["version"] !== "string") {
|
|
53
|
+
if (typeof m["schemaVersion"] !== "string") {
|
|
78
54
|
return false;
|
|
79
55
|
}
|
|
80
|
-
if (typeof m["
|
|
56
|
+
if (typeof m["scope"] !== "string") {
|
|
81
57
|
return false;
|
|
82
58
|
}
|
|
83
|
-
if (!m["
|
|
59
|
+
if (!Array.isArray(m["sources"])) {
|
|
84
60
|
return false;
|
|
85
61
|
}
|
|
86
62
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/manifest/read.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../src/manifest/read.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAIlC,OAAO,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IACjC,UAAU,CAAW;IAE9B,YAAY,OAAe,EAAE,KAAe;QAC1C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;CACF;AAED,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,YAAoB;IACzD,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QACzD,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAiB,CAAC;QAErD,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC/B,MAAM,IAAI,iBAAiB,CACzB,mCAAmC,YAAY,4BAA4B,uBAAuB,EAAE,CACrG,CAAC;QACJ,CAAC;QAED,OAAO,QAAQ,CAAC;IAClB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,iBAAiB,EAAE,CAAC;YACvC,MAAM,KAAK,CAAC;QACd,CAAC;QAED,IAAI,KAAK,YAAY,WAAW,EAAE,CAAC;YACjC,MAAM,IAAI,iBAAiB,CACzB,oCAAoC,YAAY,gBAAgB,EAChE,KAAK,CACN,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,iBAAiB,CAAC,mCAAmC,YAAY,EAAE,EAAE,KAAK,CAAC,CAAC;IACxF,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,QAA2B,QAAQ,EACnC,WAAoB;IAEpB,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;IAEzD,IAAI,CAAC;QACH,OAAO,MAAM,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC9C,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,KAAK,GACT,KAAK,YAAY,iBAAiB,IAAI,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC;QACpF,MAAM,SAAS,GAAG,KAA8B,CAAC;QACjD,IAAI,SAAS,EAAE,IAAI,KAAK,QAAQ,EAAE,CAAC;YACjC,OAAO,IAAI,CAAC;QACd,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,eAAe,CAAC,QAAiB;IACxC,IAAI,CAAC,QAAQ,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE,CAAC;QAC9C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,CAAC,GAAG,QAAmC,CAAC;IAC9C,IAAI,OAAO,CAAC,CAAC,eAAe,CAAC,KAAK,QAAQ,EAAE,CAAC;QAC3C,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,OAAO,CAAC,CAAC,OAAO,CAAC,KAAK,QAAQ,EAAE,CAAC;QACnC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC;QACjC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/manifest/types.d.ts
CHANGED
|
@@ -1,119 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* The manifest tracks all installed kits and primitives across harnesses,
|
|
5
|
-
* enabling uninstallation, upgrade checking, and conflict detection.
|
|
6
|
-
*/
|
|
7
|
-
import type { PrimitiveType, HarnessName, InstallationScope } from "../core/types.js";
|
|
8
|
-
/**
|
|
9
|
-
* Version of the manifest schema.
|
|
10
|
-
*/
|
|
11
|
-
export declare const MANIFEST_VERSION: "1.0";
|
|
12
|
-
/**
|
|
13
|
-
* Global manifest file location.
|
|
14
|
-
* User-level installation, available in all projects.
|
|
15
|
-
*/
|
|
16
|
-
export declare const GLOBAL_MANIFEST_PATH = "~/.agents/manifest.json";
|
|
17
|
-
/**
|
|
18
|
-
* Project manifest directory name.
|
|
19
|
-
* Repository-level installation, version-controllable.
|
|
2
|
+
* Kits manifest (intent) type definitions.
|
|
20
3
|
*/
|
|
4
|
+
import type { HarnessName, InstallationScope } from "../core/types.js";
|
|
5
|
+
export declare const MANIFEST_SCHEMA_VERSION: "1.0.0";
|
|
6
|
+
export declare const GLOBAL_MANIFEST_PATH = "~/.agents/kits.json";
|
|
21
7
|
export declare const PROJECT_MANIFEST_DIR = ".agents";
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export declare const PROJECT_MANIFEST_FILENAME = "manifest.json";
|
|
26
|
-
/**
|
|
27
|
-
* Information about an installed primitive.
|
|
28
|
-
*/
|
|
29
|
-
export interface InstalledPrimitive {
|
|
8
|
+
export declare const PROJECT_MANIFEST_FILENAME = "kits.json";
|
|
9
|
+
export type ManifestCompatibility = "strict" | "compatible-only";
|
|
10
|
+
export interface KitsManifestKit {
|
|
30
11
|
name: string;
|
|
31
|
-
|
|
32
|
-
namespacedName: string;
|
|
33
|
-
version?: string;
|
|
34
|
-
versionSpec?: string;
|
|
35
|
-
isInline: boolean;
|
|
36
|
-
installedPath: string;
|
|
37
|
-
instanceName?: string;
|
|
38
|
-
configHash?: string;
|
|
12
|
+
installAs?: string;
|
|
39
13
|
}
|
|
40
|
-
|
|
41
|
-
* Information about an installed kit.
|
|
42
|
-
*/
|
|
43
|
-
export interface InstalledKit {
|
|
44
|
-
version: string;
|
|
45
|
-
installedAt: string;
|
|
14
|
+
export interface KitsManifestSource {
|
|
46
15
|
source: string;
|
|
47
|
-
|
|
16
|
+
kits?: Array<string | KitsManifestKit>;
|
|
48
17
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
*/
|
|
52
|
-
export interface HarnessInstallation {
|
|
53
|
-
kits: Record<string, InstalledKit>;
|
|
54
|
-
mcpInstances?: Record<string, McpInstance>;
|
|
55
|
-
hookInstances?: Record<string, HookInstance>;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* MCP server instance record.
|
|
59
|
-
*/
|
|
60
|
-
export interface McpInstance {
|
|
61
|
-
version: string;
|
|
62
|
-
configHash: string;
|
|
63
|
-
usedBy: string[];
|
|
64
|
-
sourcePrimitive: string;
|
|
65
|
-
installedAt: string;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Hook program instance record.
|
|
69
|
-
*/
|
|
70
|
-
export interface HookInstance {
|
|
71
|
-
version: string;
|
|
72
|
-
configHash: string;
|
|
73
|
-
usedBy: string[];
|
|
74
|
-
sourcePrimitive: string;
|
|
75
|
-
installedAt: string;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Installation manifest structure.
|
|
79
|
-
*/
|
|
80
|
-
export interface InstallationManifest {
|
|
81
|
-
version: typeof MANIFEST_VERSION;
|
|
18
|
+
export interface KitsManifest {
|
|
19
|
+
schemaVersion: string;
|
|
82
20
|
scope: InstallationScope;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
21
|
+
sources: KitsManifestSource[];
|
|
22
|
+
harnesses?: HarnessName[];
|
|
23
|
+
compatibility?: ManifestCompatibility;
|
|
24
|
+
mcpInstanceOverrides?: Record<string, Record<string, string>>;
|
|
87
25
|
}
|
|
88
|
-
|
|
89
|
-
* Available upgrade information.
|
|
90
|
-
*/
|
|
91
|
-
export interface UpgradeCheck {
|
|
92
|
-
kit: string;
|
|
93
|
-
harness: HarnessName;
|
|
94
|
-
primitive: string;
|
|
95
|
-
type: PrimitiveType;
|
|
96
|
-
currentVersion: string;
|
|
97
|
-
availableVersion: string;
|
|
98
|
-
versionSpec: string;
|
|
99
|
-
breaking: boolean;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Summary of available upgrades.
|
|
103
|
-
*/
|
|
104
|
-
export interface UpgradeSummary {
|
|
105
|
-
upgrades: UpgradeCheck[];
|
|
106
|
-
totalUpgrades: number;
|
|
107
|
-
breakingChanges: number;
|
|
108
|
-
affectedKits: number;
|
|
109
|
-
affectedHarnesses: number;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Creates an empty manifest for the specified scope.
|
|
113
|
-
*
|
|
114
|
-
* @param scope - Installation scope (global or project)
|
|
115
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
116
|
-
* @returns Empty installation manifest
|
|
117
|
-
*/
|
|
118
|
-
export declare function createEmptyManifest(scope?: InstallationScope, projectRoot?: string): InstallationManifest;
|
|
26
|
+
export declare function createEmptyManifest(scope?: InstallationScope): KitsManifest;
|
|
119
27
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/manifest/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/manifest/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAEvE,eAAO,MAAM,uBAAuB,EAAG,OAAgB,CAAC;AAExD,eAAO,MAAM,oBAAoB,wBAAwB,CAAC;AAC1D,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,yBAAyB,cAAc,CAAC;AAErD,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,iBAAiB,CAAC;AAEjE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,eAAe,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,iBAAiB,CAAC;IACzB,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,SAAS,CAAC,EAAE,WAAW,EAAE,CAAC;IAC1B,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC/D;AAED,wBAAgB,mBAAmB,CAAC,KAAK,GAAE,iBAA4B,GAAG,YAAY,CAMrF"}
|
package/dist/manifest/types.js
CHANGED
|
@@ -1,44 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* The manifest tracks all installed kits and primitives across harnesses,
|
|
5
|
-
* enabling uninstallation, upgrade checking, and conflict detection.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Version of the manifest schema.
|
|
9
|
-
*/
|
|
10
|
-
export const MANIFEST_VERSION = "1.0";
|
|
11
|
-
/**
|
|
12
|
-
* Global manifest file location.
|
|
13
|
-
* User-level installation, available in all projects.
|
|
14
|
-
*/
|
|
15
|
-
export const GLOBAL_MANIFEST_PATH = "~/.agents/manifest.json";
|
|
16
|
-
/**
|
|
17
|
-
* Project manifest directory name.
|
|
18
|
-
* Repository-level installation, version-controllable.
|
|
2
|
+
* Kits manifest (intent) type definitions.
|
|
19
3
|
*/
|
|
4
|
+
export const MANIFEST_SCHEMA_VERSION = "1.0.0";
|
|
5
|
+
export const GLOBAL_MANIFEST_PATH = "~/.agents/kits.json";
|
|
20
6
|
export const PROJECT_MANIFEST_DIR = ".agents";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Creates an empty manifest for the specified scope.
|
|
27
|
-
*
|
|
28
|
-
* @param scope - Installation scope (global or project)
|
|
29
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
30
|
-
* @returns Empty installation manifest
|
|
31
|
-
*/
|
|
32
|
-
export function createEmptyManifest(scope = "global", projectRoot) {
|
|
33
|
-
const manifest = {
|
|
34
|
-
version: MANIFEST_VERSION,
|
|
7
|
+
export const PROJECT_MANIFEST_FILENAME = "kits.json";
|
|
8
|
+
export function createEmptyManifest(scope = "global") {
|
|
9
|
+
return {
|
|
10
|
+
schemaVersion: MANIFEST_SCHEMA_VERSION,
|
|
35
11
|
scope,
|
|
36
|
-
|
|
37
|
-
harnesses: {},
|
|
12
|
+
sources: [],
|
|
38
13
|
};
|
|
39
|
-
if (scope === "project" && projectRoot) {
|
|
40
|
-
manifest.projectRoot = projectRoot;
|
|
41
|
-
}
|
|
42
|
-
return manifest;
|
|
43
14
|
}
|
|
44
15
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/manifest/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/manifest/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,MAAM,CAAC,MAAM,uBAAuB,GAAG,OAAgB,CAAC;AAExD,MAAM,CAAC,MAAM,oBAAoB,GAAG,qBAAqB,CAAC;AAC1D,MAAM,CAAC,MAAM,oBAAoB,GAAG,SAAS,CAAC;AAC9C,MAAM,CAAC,MAAM,yBAAyB,GAAG,WAAW,CAAC;AAuBrD,MAAM,UAAU,mBAAmB,CAAC,QAA2B,QAAQ;IACrE,OAAO;QACL,aAAa,EAAE,uBAAuB;QACtC,KAAK;QACL,OAAO,EAAE,EAAE;KACZ,CAAC;AACJ,CAAC"}
|
package/dist/manifest/utils.d.ts
CHANGED
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Shared utilities for the manifest module.
|
|
2
|
+
* Shared utilities for the kits manifest module.
|
|
3
3
|
*/
|
|
4
4
|
import type { InstallationScope } from "../core/types.js";
|
|
5
|
-
/**
|
|
6
|
-
* Expand ~ to home directory.
|
|
7
|
-
*
|
|
8
|
-
* @param pathStr - Path string that may contain ~
|
|
9
|
-
* @returns Expanded path string
|
|
10
|
-
*/
|
|
11
5
|
export declare function expandPath(pathStr: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* Get the manifest file path for a given scope.
|
|
14
|
-
*
|
|
15
|
-
* @param scope - Installation scope (global or project)
|
|
16
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
17
|
-
* @returns Absolute path to the manifest file
|
|
18
|
-
*/
|
|
19
6
|
export declare function getManifestPath(scope: InstallationScope, projectRoot?: string): string;
|
|
20
|
-
/**
|
|
21
|
-
* Get the manifest directory path for a given scope.
|
|
22
|
-
*
|
|
23
|
-
* @param scope - Installation scope (global or project)
|
|
24
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
25
|
-
* @returns Absolute path to the manifest directory
|
|
26
|
-
*/
|
|
27
7
|
export declare function getManifestDir(scope: InstallationScope, projectRoot?: string): string;
|
|
28
|
-
/**
|
|
29
|
-
* Ensure the manifest directory exists for a given scope.
|
|
30
|
-
*
|
|
31
|
-
* @param scope - Installation scope (global or project)
|
|
32
|
-
* @param projectRoot - Absolute path to project root (required for project scope)
|
|
33
|
-
*/
|
|
34
8
|
export declare function ensureManifestDir(scope: InstallationScope, projectRoot?: string): Promise<void>;
|
|
35
9
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/manifest/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAO1D
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/manifest/utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAO1D,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAMlD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAUtF;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,iBAAiB,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAErF;AAED,wBAAsB,iBAAiB,CAAC,KAAK,EAAE,iBAAiB,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGrG"}
|