@tankpkg/cli 0.5.0 → 0.6.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/dist/commands/install.d.ts +1 -16
- package/dist/commands/install.js +330 -363
- package/dist/commands/install.js.map +1 -1
- package/dist/lib/dependency-resolver.d.ts +51 -0
- package/dist/lib/dependency-resolver.js +181 -0
- package/dist/lib/dependency-resolver.js.map +1 -0
- package/dist/lib/install-pipeline.d.ts +23 -0
- package/dist/lib/install-pipeline.js +181 -0
- package/dist/lib/install-pipeline.js.map +1 -0
- package/dist/lib/permission-checker.d.ts +16 -0
- package/dist/lib/permission-checker.js +78 -0
- package/dist/lib/permission-checker.js.map +1 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export interface InstallOptions {
|
|
|
5
5
|
configDir?: string;
|
|
6
6
|
global?: boolean;
|
|
7
7
|
homedir?: string;
|
|
8
|
+
isTransitive?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export interface LockfileInstallOptions {
|
|
10
11
|
directory?: string;
|
|
@@ -18,22 +19,6 @@ export interface InstallAllOptions {
|
|
|
18
19
|
global?: boolean;
|
|
19
20
|
homedir?: string;
|
|
20
21
|
}
|
|
21
|
-
/**
|
|
22
|
-
* Install a skill from the Tank registry.
|
|
23
|
-
*
|
|
24
|
-
* Flow:
|
|
25
|
-
* 1. Read skills.json from directory (must exist)
|
|
26
|
-
* 2. Fetch available versions
|
|
27
|
-
* 3. Resolve best version using semver
|
|
28
|
-
* 4. Check if already installed (skip if same version in lockfile)
|
|
29
|
-
* 5. Fetch version metadata + download URL
|
|
30
|
-
* 6. Check permission budget
|
|
31
|
-
* 7. Download tarball
|
|
32
|
-
* 8. Verify integrity (sha512)
|
|
33
|
-
* 9. Extract tarball safely
|
|
34
|
-
* 10. Update skills.json
|
|
35
|
-
* 11. Update skills.lock
|
|
36
|
-
*/
|
|
37
22
|
export declare function installCommand(options: InstallOptions): Promise<void>;
|
|
38
23
|
export declare function installFromLockfile(options: LockfileInstallOptions): Promise<void>;
|
|
39
24
|
export declare function installAll(options: InstallAllOptions): Promise<void>;
|