@skaile/workspaces 0.14.0 → 0.15.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/CHANGELOG.md +76 -0
- package/dist/base-assets/connectors/flow/run-flow.js +1 -1
- package/dist/{chunk-42OQF7UU.js → chunk-2NIOMFSQ.js} +305 -225
- package/dist/chunk-2NIOMFSQ.js.map +1 -0
- package/dist/{chunk-VAJB2UJ5.js → chunk-6EN5IJ2Y.js} +13 -13
- package/dist/chunk-6EN5IJ2Y.js.map +1 -0
- package/dist/{chunk-OIFGKFZY.js → chunk-SO43XRWF.js} +2 -2
- package/dist/{chunk-OIFGKFZY.js.map → chunk-SO43XRWF.js.map} +1 -1
- package/dist/{chunk-DN5476SV.js → chunk-Z24KPZKU.js} +17 -10
- package/dist/chunk-Z24KPZKU.js.map +1 -0
- package/dist/cli/index.js +674 -516
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/commands/asset-cmd.d.ts +4 -1
- package/dist/cli/src/commands/asset-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/library-cmd.d.ts +6 -4
- package/dist/cli/src/commands/library-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/npx.d.ts.map +1 -1
- package/dist/cli/src/commands/project.d.ts +2 -2
- package/dist/cli/src/commands/source-manifest.d.ts +19 -0
- package/dist/cli/src/commands/source-manifest.d.ts.map +1 -0
- package/dist/cli/src/commands/source.d.ts +6 -2
- package/dist/cli/src/commands/source.d.ts.map +1 -1
- package/dist/cli/src/commands/store.d.ts.map +1 -1
- package/dist/cli/src/open-library.d.ts +18 -18
- package/dist/cli/src/open-library.d.ts.map +1 -1
- package/dist/library/index.js +1 -1
- package/dist/library/src/config.d.ts +12 -3
- package/dist/library/src/config.d.ts.map +1 -1
- package/dist/library/src/index.d.ts +7 -8
- package/dist/library/src/index.d.ts.map +1 -1
- package/dist/library/src/library.d.ts +24 -77
- package/dist/library/src/library.d.ts.map +1 -1
- package/dist/library/src/local/db.d.ts +3 -2
- package/dist/library/src/local/db.d.ts.map +1 -1
- package/dist/library/src/local/{user-library-manager.d.ts → library-manager.d.ts} +15 -16
- package/dist/library/src/local/library-manager.d.ts.map +1 -0
- package/dist/library/src/local/library.d.ts +27 -23
- package/dist/library/src/local/library.d.ts.map +1 -1
- package/dist/library/src/local/local-catalog-source.d.ts +5 -5
- package/dist/library/src/local/local-catalog-source.d.ts.map +1 -1
- package/dist/library/src/local/sidecar-paths.d.ts +3 -3
- package/dist/library/src/local/store-paths.d.ts +42 -0
- package/dist/library/src/local/store-paths.d.ts.map +1 -0
- package/dist/library/src/preset/apply.d.ts +2 -2
- package/dist/library/src/preset/apply.d.ts.map +1 -1
- package/dist/library/src/preset/placeholders.d.ts +3 -3
- package/dist/library/src/preset/placeholders.d.ts.map +1 -1
- package/dist/library/src/preset/resolve-item.d.ts +3 -3
- package/dist/library/src/preset/resolve-item.d.ts.map +1 -1
- package/dist/library/src/sync/driver.d.ts +6 -6
- package/dist/library/src/sync/driver.d.ts.map +1 -1
- package/dist/library/src/sync/git-driver.d.ts +6 -6
- package/dist/library/src/sync/git-driver.d.ts.map +1 -1
- package/dist/library/src/sync/local-driver.d.ts +6 -6
- package/dist/library/src/sync/local-driver.d.ts.map +1 -1
- package/dist/library/src/user-library.d.ts +12 -17
- package/dist/library/src/user-library.d.ts.map +1 -1
- package/dist/{open-library-S6FK4N4S.js → open-library-XD7QYLMW.js} +4 -4
- package/dist/{open-library-S6FK4N4S.js.map → open-library-XD7QYLMW.js.map} +1 -1
- package/dist/runner/index.js +1 -1
- package/dist/runner/src/composition/resolve.d.ts +3 -3
- package/dist/runner/src/composition/resolve.d.ts.map +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/runner.js +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/types/src/install-manifest.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-42OQF7UU.js.map +0 -1
- package/dist/chunk-DN5476SV.js.map +0 -1
- package/dist/chunk-VAJB2UJ5.js.map +0 -1
- package/dist/cli/src/commands/library-status.d.ts +0 -19
- package/dist/cli/src/commands/library-status.d.ts.map +0 -1
- package/dist/cli/src/commands/source-sidecar.d.ts +0 -6
- package/dist/cli/src/commands/source-sidecar.d.ts.map +0 -1
- package/dist/library/src/local/user-library-manager.d.ts.map +0 -1
- package/dist/library/src/sync/store-driver.d.ts +0 -21
- package/dist/library/src/sync/store-driver.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library-manager.d.ts","sourceRoot":"","sources":["../../../../library/src/local/library-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG3D,OAAO,EACL,KAAK,eAAe,EAGpB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,kBAAkB,EAExB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA2B/C,qBAAa,cAAc;IAIb,OAAO,CAAC,QAAQ,CAAC,GAAG;IAHhC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAyB;IAClD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;gBAEjB,GAAG,EAAE,UAAU;IAE5C,mDAAmD;IACnD,SAAS,CAAC,OAAO,EAAE,cAAc,GAAG,iBAAiB;IAS/C,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC;IAkCpD,aAAa,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;IAMnC,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;IAarD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAMlD,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAAC,OAAO,CAAC;IAoB5E,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAY9C,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,GAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IASpF;;;;OAIG;IACG,qBAAqB,CACzB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CA2BnD"}
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* LocalIndex — SQLite-backed IAssetIndex implementation.
|
|
3
3
|
*
|
|
4
|
-
* Storage: ~/.skaile/
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Storage: ~/.skaile/index.db by default; override with `SKAILE_INDEX_PATH`.
|
|
5
|
+
* Library checkouts live separately under `~/.skaile/libraries/<name>/` and
|
|
6
|
+
* are controlled by `SKAILE_LIBRARIES_DIR`.
|
|
7
7
|
*
|
|
8
8
|
* All four entity tables (libraries, asset_definitions, instances, subscriptions)
|
|
9
9
|
* are created on first open. See db.ts for DDL.
|
|
10
10
|
*
|
|
11
|
-
* @docLink packages/library/concepts#local-
|
|
11
|
+
* @docLink packages/library/concepts#local-index
|
|
12
12
|
*/
|
|
13
13
|
import type { IAssetKindRegistry } from "@skaile/workspaces/plugins";
|
|
14
|
-
import type {
|
|
14
|
+
import type { AssetDefinition, AssetFilter, CreateInstanceInput, IAssetIndex, Instance, InstanceFilter, PinPolicy, Subscription, SyncResult, UpdateInstanceInput } from "../library.js";
|
|
15
|
+
import type { AddLibraryInput, Library } from "../user-library.js";
|
|
15
16
|
import { type LibraryDb } from "./db.js";
|
|
16
17
|
import type { InstallManifest } from "@skaile/workspaces/types";
|
|
17
18
|
import { type AssetFetcher } from "../install/install-from-manifest.js";
|
|
18
|
-
export interface
|
|
19
|
-
/** Override the library
|
|
19
|
+
export interface LocalIndexOptions {
|
|
20
|
+
/** Override the library checkouts directory (where `library init` places dirs). */
|
|
20
21
|
libraryDir?: string;
|
|
22
|
+
/** Override the absolute path to the index SQLite file (default: ~/.skaile/index.db). */
|
|
23
|
+
indexPath?: string;
|
|
21
24
|
/** Kind registry for provider-version tracking and kind validation. */
|
|
22
25
|
kindRegistry?: IAssetKindRegistry;
|
|
23
26
|
}
|
|
@@ -25,31 +28,32 @@ export interface LocalLibraryOptions {
|
|
|
25
28
|
* SQLite-backed implementation of {@link IAssetIndex}.
|
|
26
29
|
*
|
|
27
30
|
* Backed by `@libsql/client`, so it runs on both Node and Bun. Stores data at
|
|
28
|
-
* `~/.skaile/
|
|
29
|
-
* `
|
|
30
|
-
*
|
|
31
|
+
* `~/.skaile/index.db` by default; override with `SKAILE_INDEX_PATH` (or via
|
|
32
|
+
* the constructor `indexPath` option). Library checkouts live separately at
|
|
33
|
+
* `resolveLibraryDir()` (default `~/.skaile/libraries/`).
|
|
31
34
|
*
|
|
32
35
|
* The constructor is synchronous — it only resolves the storage path. The
|
|
33
36
|
* SQLite connection is opened lazily on first use (`@libsql/client` is
|
|
34
|
-
* async-only). Always call {@link
|
|
37
|
+
* async-only). Always call {@link LocalIndex.close} in a `finally` block to
|
|
35
38
|
* release the connection.
|
|
36
39
|
*
|
|
37
|
-
* @docLink packages/library/concepts#local-
|
|
40
|
+
* @docLink packages/library/concepts#local-index
|
|
38
41
|
*/
|
|
39
|
-
export declare class
|
|
42
|
+
export declare class LocalIndex implements IAssetIndex {
|
|
40
43
|
private readonly dbPath;
|
|
41
44
|
private dbHandleRef;
|
|
42
45
|
private dbPromise;
|
|
43
46
|
private _kindRegistry;
|
|
44
|
-
/** Absolute path to the library
|
|
47
|
+
/** Absolute path to the library checkouts directory. */
|
|
45
48
|
private readonly libraryDir;
|
|
46
49
|
/**
|
|
47
|
-
* Construct a
|
|
50
|
+
* Construct a LocalIndex. Synchronous — does not open the DB.
|
|
48
51
|
*
|
|
49
|
-
* @param optionsOrDir - Either a `
|
|
50
|
-
* path (legacy signature,
|
|
52
|
+
* @param optionsOrDir - Either a `LocalIndexOptions` object or a string
|
|
53
|
+
* path (legacy signature: treated as the libraryDir, with the index file
|
|
54
|
+
* landing at `<dir>/index.db`).
|
|
51
55
|
*/
|
|
52
|
-
constructor(optionsOrDir?: string |
|
|
56
|
+
constructor(optionsOrDir?: string | LocalIndexOptions);
|
|
53
57
|
/**
|
|
54
58
|
* Lazily open the SQLite DB on first use. The `??=` dedupes concurrent
|
|
55
59
|
* first calls so the DB is opened exactly once, with no race.
|
|
@@ -59,10 +63,10 @@ export declare class LocalLibrary implements IAssetIndex {
|
|
|
59
63
|
get kinds(): IAssetKindRegistry | undefined;
|
|
60
64
|
/** Close the underlying SQLite connection. Call in tests / cleanup. */
|
|
61
65
|
close(): void;
|
|
62
|
-
/** Internal access for
|
|
66
|
+
/** Internal access for LibraryManager. Do not call from user code. */
|
|
63
67
|
dbHandle(): Promise<LibraryDb>;
|
|
64
|
-
listSources(): Promise<
|
|
65
|
-
addSource(input:
|
|
68
|
+
listSources(): Promise<Library[]>;
|
|
69
|
+
addSource(input: AddLibraryInput): Promise<Library>;
|
|
66
70
|
removeSource(id: string): Promise<void>;
|
|
67
71
|
syncSource(id: string): Promise<SyncResult>;
|
|
68
72
|
/**
|
|
@@ -89,7 +93,7 @@ export declare class LocalLibrary implements IAssetIndex {
|
|
|
89
93
|
* 2. records an {@link Instance} row carrying `sourceCommitSha` so the
|
|
90
94
|
* install is auditable and re-verifiable.
|
|
91
95
|
*
|
|
92
|
-
* Not part of the {@link
|
|
96
|
+
* Not part of the {@link IAssetIndex} interface — `LocalIndex`-only, since
|
|
93
97
|
* the platform variant resolves install bytes differently.
|
|
94
98
|
*
|
|
95
99
|
* @param manifest - The pointer-only install manifest from the Catalog.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../library/src/local/library.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGrE,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../library/src/local/library.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGrE,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,cAAc,EACd,SAAS,EACT,YAAY,EACZ,UAAU,EACV,mBAAmB,EACpB,MAAM,eAAe,CAAC;AAQvB,OAAO,KAAK,EACV,eAAe,EAEf,OAAO,EAER,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAmB,KAAK,SAAS,EAAwB,MAAM,SAAS,CAAC;AAEhF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAsF7F,MAAM,WAAW,iBAAiB;IAChC,mFAAmF;IACnF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yFAAyF;IACzF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,YAAY,CAAC,EAAE,kBAAkB,CAAC;CACnC;AAMD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,UAAW,YAAW,WAAW;IAC5C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,SAAS,CAAyC;IAC1D,OAAO,CAAC,aAAa,CAAiC;IACtD,wDAAwD;IACxD,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IAEpC;;;;;;OAMG;gBACS,YAAY,CAAC,EAAE,MAAM,GAAG,iBAAiB;IA8BrD;;;OAGG;YACW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;IAMjD,aAAa,CAAC,MAAM,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAqB3D,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,mBAAmB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAyBzE,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IA0BvE,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,YAAY,CAAC;IAiCzF,WAAW,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAYlD,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAW/D,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;CAUvE"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Walks subscribed local repos via `discoverAssetsInTree`, computes SHA256
|
|
5
5
|
* over the deterministic file filter, and caches AssetDefinition rows in
|
|
6
|
-
* the
|
|
6
|
+
* the LocalIndex SQLite.
|
|
7
7
|
*
|
|
8
8
|
* Used by the CLI for local-only workflows. The platform uses the remote
|
|
9
9
|
* catalog source (Phase 2).
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* @docLink packages/library/concepts#local-catalog-source
|
|
12
12
|
*/
|
|
13
13
|
import type { CatalogAsset, CatalogAssetFilter, CatalogSourceInfo, IAssetKindRegistry, ICatalogSource } from "@skaile/workspaces/plugins";
|
|
14
|
-
import type {
|
|
14
|
+
import type { LocalIndex } from "./library.js";
|
|
15
15
|
/**
|
|
16
16
|
* Optional constructor opts for {@link LocalCatalogSource}.
|
|
17
17
|
*
|
|
@@ -32,7 +32,7 @@ export interface LocalCatalogSourceOptions {
|
|
|
32
32
|
* Local-filesystem implementation of `ICatalogSource` (from `@skaile/plugins`).
|
|
33
33
|
*
|
|
34
34
|
* Backed by `discoverAssetsInTree` from `@skaile/discovery`. Upserts discovered
|
|
35
|
-
* assets into the `
|
|
35
|
+
* assets into the `LocalIndex` cache via `upsertAssetDef()`. Preset-kind assets
|
|
36
36
|
* are skipped (handled by the Preset subsystem, not stored as AssetDefinitions).
|
|
37
37
|
*
|
|
38
38
|
* @docLink packages/library/concepts#local-catalog-source
|
|
@@ -44,7 +44,7 @@ export declare class LocalCatalogSource implements ICatalogSource {
|
|
|
44
44
|
private readonly registry?;
|
|
45
45
|
readonly id: string;
|
|
46
46
|
private readonly sidecarPath?;
|
|
47
|
-
constructor(library:
|
|
47
|
+
constructor(library: LocalIndex, sourceId: string, rootPath: string, registry?: IAssetKindRegistry | undefined, options?: LocalCatalogSourceOptions);
|
|
48
48
|
resolve(ref: string): Promise<CatalogAsset | null>;
|
|
49
49
|
listAssets(filter?: CatalogAssetFilter): Promise<CatalogAsset[]>;
|
|
50
50
|
fetchTarball(_ref: string, _sha256: string): Promise<Uint8Array>;
|
|
@@ -53,7 +53,7 @@ export declare class LocalCatalogSource implements ICatalogSource {
|
|
|
53
53
|
* Sync: discover assets in the source directory and cache them in the library.
|
|
54
54
|
*
|
|
55
55
|
* Runs the discovery pipeline (glob -> parse -> filter -> hash -> requires)
|
|
56
|
-
* and upserts each discovered asset into the
|
|
56
|
+
* and upserts each discovered asset into the LocalIndex cache.
|
|
57
57
|
*
|
|
58
58
|
* @returns Discovery statistics and any errors encountered.
|
|
59
59
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-catalog-source.d.ts","sourceRoot":"","sources":["../../../../library/src/local/local-catalog-source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAUH,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,kBA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AOG;IACG,IAAI,IAAI,OAAO,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CAuDxF"}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* (`.skaile-source.yaml`), a provenance README, and a lock file.
|
|
7
7
|
*
|
|
8
8
|
* Path resolution honors the `SKAILE_HOME` env var (defaults to `~/.skaile`)
|
|
9
|
-
* mirroring the style used by `
|
|
10
|
-
* the library
|
|
11
|
-
* for test isolation: a single env var moves the sidecar root, the
|
|
9
|
+
* mirroring the style used by `SKAILE_LIBRARIES_DIR` (which already overrides
|
|
10
|
+
* the library checkouts dir). Setting `SKAILE_HOME` is the recommended hook
|
|
11
|
+
* for test isolation: a single env var moves the sidecar root, the libraries
|
|
12
12
|
* dir (when not separately overridden), and the catalog cache together.
|
|
13
13
|
*
|
|
14
14
|
* @docLink packages/library/concepts#sidecar-paths
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Store paths — manifest-only catalog living at `~/.skaile/store/`.
|
|
3
|
+
*
|
|
4
|
+
* The store is symmetric to a remote catalog (skaile.store) but lives on the
|
|
5
|
+
* user's machine. It holds *manifests* (pointer triples) only — never bytes.
|
|
6
|
+
* Bytes live under `~/.skaile/sources/` (third-party clones) or
|
|
7
|
+
* `~/.skaile/libraries/<name>/` (user authoring).
|
|
8
|
+
*
|
|
9
|
+
* Layout:
|
|
10
|
+
* ```
|
|
11
|
+
* ~/.skaile/store/
|
|
12
|
+
* ├── config.yaml mode: auto|local|remote, ttl, …
|
|
13
|
+
* ├── favourites.yaml user pins
|
|
14
|
+
* ├── manifests/ catalog entries (one yaml per ref)
|
|
15
|
+
* ├── remote-cache/ TTL cache of remote-store responses (.gitignore'd)
|
|
16
|
+
* └── .git/ store is a git repo (push to team remote)
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @docLink packages/library/concepts#store-paths
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Resolve the absolute path to the local store root (`~/.skaile/store/`).
|
|
23
|
+
*
|
|
24
|
+
* Honors `SKAILE_HOME` (test isolation hook), mirroring {@link getSidecarRoot}.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getStoreRoot(): string;
|
|
27
|
+
/** Manifests subdir: `<store>/manifests/`. */
|
|
28
|
+
export declare function getStoreManifestsDir(): string;
|
|
29
|
+
/**
|
|
30
|
+
* Move every `~/.skaile/sources/<slug>/.skaile-source.yaml` into
|
|
31
|
+
* `~/.skaile/store/manifests/<slug>.yaml`, initialise the store as a git
|
|
32
|
+
* repo, and write a marker so the migration is a no-op on subsequent runs.
|
|
33
|
+
*
|
|
34
|
+
* Idempotent. Cheap to call (single `existsSync` for the marker on the hot
|
|
35
|
+
* path). Errors are swallowed and logged to stderr — a partial migration
|
|
36
|
+
* leaves the marker absent so the next run retries.
|
|
37
|
+
*/
|
|
38
|
+
export declare function migrateSidecarsToStoreIfNeeded(): {
|
|
39
|
+
migrated: number;
|
|
40
|
+
storeRoot: string;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=store-paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store-paths.d.ts","sourceRoot":"","sources":["../../../../library/src/local/store-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAYH;;;;GAIG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAGrC;AAED,8CAA8C;AAC9C,wBAAgB,oBAAoB,IAAI,MAAM,CAE7C;AAWD;;;;;;;;GAQG;AACH,wBAAgB,8BAA8B,IAAI;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAsDxF"}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
*/
|
|
25
25
|
import type { PresetManifest } from "@skaile/workspaces/types/manifests";
|
|
26
26
|
import type { SecretsRouter } from "@skaile/workspaces/secrets";
|
|
27
|
-
import type {
|
|
27
|
+
import type { IAssetIndex, Instance, Subscription, PinPolicy } from "../library.js";
|
|
28
28
|
/**
|
|
29
29
|
* Options for {@link applyPreset}.
|
|
30
30
|
*
|
|
@@ -32,7 +32,7 @@ import type { ILibrary, Instance, Subscription, PinPolicy } from "../library.js"
|
|
|
32
32
|
*/
|
|
33
33
|
export interface ApplyOpts {
|
|
34
34
|
/** The library for instance creation and subscription. */
|
|
35
|
-
library:
|
|
35
|
+
library: IAssetIndex;
|
|
36
36
|
/** Workspace ID for subscription creation. */
|
|
37
37
|
workspaceId: string;
|
|
38
38
|
/** Pin policy for created instances (default: "minor-track"). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../../library/src/preset/apply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,oCAAoC,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../../library/src/preset/apply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,oCAAoC,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAUpF;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,0DAA0D;IAC1D,OAAO,EAAE,WAAW,CAAC;IACrB,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,SAAS,CAAC,EAAE,SAAS,CAA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
* - Default value handling
|
|
9
9
|
* - Coercion from string input (CLI prompting returns strings)
|
|
10
10
|
*
|
|
11
|
-
* The `instance-picker` type queries the
|
|
11
|
+
* The `instance-picker` type queries the LocalIndex for available instances
|
|
12
12
|
* matching a filter (kind, defRef prefix).
|
|
13
13
|
*
|
|
14
14
|
* @docLink packages/library/concepts#placeholder-system
|
|
15
15
|
*/
|
|
16
16
|
import type { Placeholder } from "@skaile/workspaces/types/manifests";
|
|
17
|
-
import type {
|
|
17
|
+
import type { IAssetIndex } from "../library.js";
|
|
18
18
|
/**
|
|
19
19
|
* Result of validating a single placeholder value.
|
|
20
20
|
*
|
|
@@ -82,7 +82,7 @@ export declare function validateAllPlaceholders(placeholders: Placeholder[], inp
|
|
|
82
82
|
* @returns Available instance choices for display in a CLI prompt.
|
|
83
83
|
* @docLink packages/library/concepts#placeholder-system
|
|
84
84
|
*/
|
|
85
|
-
export declare function queryInstancePickerChoices(library:
|
|
85
|
+
export declare function queryInstancePickerChoices(library: IAssetIndex, options?: InstancePickerOptions): Promise<InstancePickerChoice[]>;
|
|
86
86
|
/**
|
|
87
87
|
* Get the effective default value for a placeholder.
|
|
88
88
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placeholders.d.ts","sourceRoot":"","sources":["../../../../library/src/preset/placeholders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"placeholders.d.ts","sourceRoot":"","sources":["../../../../library/src/preset/placeholders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,eAAe,CAAC;AAMjE;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IAC1C,2CAA2C;IA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|
12
12
|
import type { PresetItem } from "@skaile/workspaces/types/manifests";
|
|
13
|
-
import type { Instance, AssetDefinition,
|
|
13
|
+
import type { Instance, AssetDefinition, IAssetIndex } from "../library.js";
|
|
14
14
|
/**
|
|
15
15
|
* Classification of a preset item's ref string.
|
|
16
16
|
*
|
|
@@ -105,7 +105,7 @@ export declare function extractLibraryInstanceId(ref: string): string | null;
|
|
|
105
105
|
* @returns A typed {@link ResolvedItem} discriminated by kind.
|
|
106
106
|
* @docLink packages/library/concepts#preset-item-resolution
|
|
107
107
|
*/
|
|
108
|
-
export declare function resolveItem(item: PresetItem, library:
|
|
108
|
+
export declare function resolveItem(item: PresetItem, library: IAssetIndex, knownPresetRefs?: Set<string>): Promise<ResolvedItem>;
|
|
109
109
|
/**
|
|
110
110
|
* Resolve all items in a preset in parallel.
|
|
111
111
|
*
|
|
@@ -115,5 +115,5 @@ export declare function resolveItem(item: PresetItem, library: ILibrary, knownPr
|
|
|
115
115
|
* @returns Array of resolved items in the same order as the input.
|
|
116
116
|
* @docLink packages/library/concepts#preset-item-resolution
|
|
117
117
|
*/
|
|
118
|
-
export declare function resolveAllItems(items: PresetItem[], library:
|
|
118
|
+
export declare function resolveAllItems(items: PresetItem[], library: IAssetIndex, knownPresetRefs?: Set<string>): Promise<ResolvedItem[]>;
|
|
119
119
|
//# sourceMappingURL=resolve-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-item.d.ts","sourceRoot":"","sources":["../../../../library/src/preset/resolve-item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"resolve-item.d.ts","sourceRoot":"","sources":["../../../../library/src/preset/resolve-item.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,UA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QG;AACH,wBAAsB,WAAW,CAC/B,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,WAAW,EACpB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAC5B,OAAO,CAAC,YAAY,CAAC,CA0BvB;AAED;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CACnC,KAAK,EAAE,UAAU,EAAE,EACnB,OAAO,EAAE,WAAW,EACpB,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GAC5B,OAAO,CAAC,YAAY,EAAE,CAAC,CAEzB"}
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @docLink packages/library/concepts#sync-driver
|
|
9
9
|
*/
|
|
10
|
-
import type {
|
|
10
|
+
import type { Library, LibraryBackend, SyncStatus, PullResult, PushResult, PullOpts, PushOpts, ProposeOpts, ProposeResult, PublishOpts, PublishResult, AssetRef } from "../user-library.js";
|
|
11
11
|
export interface LibrarySyncDriver {
|
|
12
12
|
readonly backend: LibraryBackend;
|
|
13
|
-
status(lib:
|
|
14
|
-
pull(lib:
|
|
15
|
-
push(lib:
|
|
16
|
-
propose(lib:
|
|
17
|
-
publish(lib:
|
|
13
|
+
status(lib: Library): Promise<SyncStatus>;
|
|
14
|
+
pull(lib: Library, opts?: PullOpts): Promise<PullResult>;
|
|
15
|
+
push(lib: Library, opts?: PushOpts): Promise<PushResult>;
|
|
16
|
+
propose(lib: Library, opts: ProposeOpts): Promise<ProposeResult>;
|
|
17
|
+
publish(lib: Library, refs: AssetRef[], opts: PublishOpts): Promise<PublishResult>;
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=driver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../../library/src/sync/driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../../library/src/sync/driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,UAAU,EACV,UAAU,EACV,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,aAAa,EACb,WAAW,EACX,aAAa,EACb,QAAQ,EACT,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IACjC,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAC1C,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACzD,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACzD,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACjE,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CACpF"}
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @docLink packages/library/concepts#sync-driver
|
|
10
10
|
*/
|
|
11
|
-
import { type
|
|
11
|
+
import { type Library, type SyncStatus, type PullResult, type PushResult, type PullOpts, type PushOpts, type ProposeOpts, type ProposeResult, type PublishOpts, type PublishResult, type AssetRef } from "../user-library.js";
|
|
12
12
|
import type { LibrarySyncDriver } from "./driver.js";
|
|
13
13
|
export declare class GitSyncDriver implements LibrarySyncDriver {
|
|
14
14
|
readonly backend: "git";
|
|
15
|
-
status(lib:
|
|
16
|
-
pull(lib:
|
|
17
|
-
push(lib:
|
|
18
|
-
propose(lib:
|
|
19
|
-
publish(_lib:
|
|
15
|
+
status(lib: Library): Promise<SyncStatus>;
|
|
16
|
+
pull(lib: Library, opts?: PullOpts): Promise<PullResult>;
|
|
17
|
+
push(lib: Library, opts?: PushOpts): Promise<PushResult>;
|
|
18
|
+
propose(lib: Library, opts: ProposeOpts): Promise<ProposeResult>;
|
|
19
|
+
publish(_lib: Library, _refs: AssetRef[], _opts: PublishOpts): Promise<PublishResult>;
|
|
20
20
|
}
|
|
21
21
|
//# sourceMappingURL=git-driver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-driver.d.ts","sourceRoot":"","sources":["../../../../library/src/sync/git-driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAGL,KAAK,
|
|
1
|
+
{"version":3,"file":"git-driver.d.ts","sourceRoot":"","sources":["../../../../library/src/sync/git-driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAGL,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,QAAQ,EAEd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAoBrD,qBAAa,aAAc,YAAW,iBAAiB;IACrD,QAAQ,CAAC,OAAO,EAAG,KAAK,CAAU;IAE5B,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;IA4CzC,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAcxD,IAAI,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAcxD,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IAyDhE,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;CAG5F"}
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @docLink packages/library/concepts#sync-driver
|
|
8
8
|
*/
|
|
9
|
-
import { type
|
|
9
|
+
import { type Library, type SyncStatus, type PullResult, type PushResult, type PullOpts, type PushOpts, type ProposeOpts, type ProposeResult, type PublishOpts, type PublishResult, type AssetRef } from "../user-library.js";
|
|
10
10
|
import type { LibrarySyncDriver } from "./driver.js";
|
|
11
11
|
export declare class LocalSyncDriver implements LibrarySyncDriver {
|
|
12
12
|
readonly backend: "local";
|
|
13
|
-
status(_lib:
|
|
14
|
-
pull(_lib:
|
|
15
|
-
push(_lib:
|
|
16
|
-
propose(_lib:
|
|
17
|
-
publish(_lib:
|
|
13
|
+
status(_lib: Library): Promise<SyncStatus>;
|
|
14
|
+
pull(_lib: Library, _opts?: PullOpts): Promise<PullResult>;
|
|
15
|
+
push(_lib: Library, _opts?: PushOpts): Promise<PushResult>;
|
|
16
|
+
propose(_lib: Library, _opts: ProposeOpts): Promise<ProposeResult>;
|
|
17
|
+
publish(_lib: Library, _refs: AssetRef[], _opts: PublishOpts): Promise<PublishResult>;
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=local-driver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-driver.d.ts","sourceRoot":"","sources":["../../../../library/src/sync/local-driver.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAEL,KAAK,
|
|
1
|
+
{"version":3,"file":"local-driver.d.ts","sourceRoot":"","sources":["../../../../library/src/sync/local-driver.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,QAAQ,EACd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,qBAAa,eAAgB,YAAW,iBAAiB;IACvD,QAAQ,CAAC,OAAO,EAAG,OAAO,CAAU;IAE9B,MAAM,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC;IAQ1C,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAI1D,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC;IAI1D,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IAOlE,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;CAG5F"}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* collection of AI assets
|
|
2
|
+
* Library — user-facing concept for a named, writable-or-readable
|
|
3
|
+
* collection of AI assets.
|
|
4
4
|
*
|
|
5
5
|
* Four orthogonal properties:
|
|
6
|
-
* - backend: how content moves to/from a remote (local | git
|
|
6
|
+
* - backend: how content moves to/from a remote (local | git)
|
|
7
7
|
* - ownership: which sync verbs are permitted (owner | contributor | reader)
|
|
8
8
|
* - structure: how discovery walks the tree (flat | domain)
|
|
9
9
|
* - isDefault: auto-target for `skaile asset migrate`
|
|
10
10
|
*
|
|
11
|
-
* See `_devlog/specs/2026-05-
|
|
11
|
+
* See `_devlog/specs/2026-05-27-source-library-store-vocabulary.md`.
|
|
12
12
|
*
|
|
13
|
-
* @docLink packages/library/concepts#
|
|
13
|
+
* @docLink packages/library/concepts#library
|
|
14
14
|
*/
|
|
15
15
|
/** Literal tuple of supported backend kinds. */
|
|
16
|
-
export declare const LIBRARY_BACKENDS: readonly ["local", "git"
|
|
16
|
+
export declare const LIBRARY_BACKENDS: readonly ["local", "git"];
|
|
17
17
|
/** Backend kind for a library. */
|
|
18
18
|
export type LibraryBackend = (typeof LIBRARY_BACKENDS)[number];
|
|
19
19
|
/** Literal tuple of supported ownership levels. */
|
|
@@ -34,20 +34,14 @@ export interface GitBackendConfig {
|
|
|
34
34
|
forkUrl?: string;
|
|
35
35
|
lastPr?: string;
|
|
36
36
|
}
|
|
37
|
-
/** Config for `backend: 'store'`. */
|
|
38
|
-
export interface StoreBackendConfig {
|
|
39
|
-
url: string;
|
|
40
|
-
publisher: string;
|
|
41
|
-
tokenRef: string;
|
|
42
|
-
}
|
|
43
37
|
/** Discriminated union of all backend configs. */
|
|
44
|
-
export type BackendConfig = LocalBackendConfig | GitBackendConfig
|
|
38
|
+
export type BackendConfig = LocalBackendConfig | GitBackendConfig;
|
|
45
39
|
/**
|
|
46
40
|
* A registered library — one row of the `libraries` table.
|
|
47
41
|
*
|
|
48
|
-
* @docLink packages/library/concepts#
|
|
42
|
+
* @docLink packages/library/concepts#library
|
|
49
43
|
*/
|
|
50
|
-
export interface
|
|
44
|
+
export interface Library {
|
|
51
45
|
id: string;
|
|
52
46
|
name: string;
|
|
53
47
|
path: string;
|
|
@@ -61,7 +55,7 @@ export interface UserLibrary {
|
|
|
61
55
|
createdAt: Date;
|
|
62
56
|
updatedAt: Date;
|
|
63
57
|
}
|
|
64
|
-
/** Input shape for `
|
|
58
|
+
/** Input shape for `LibraryManager.addLibrary()`. */
|
|
65
59
|
export interface AddLibraryInput {
|
|
66
60
|
name: string;
|
|
67
61
|
path: string;
|
|
@@ -72,10 +66,11 @@ export interface AddLibraryInput {
|
|
|
72
66
|
isDefault?: boolean;
|
|
73
67
|
manifestGenerated?: boolean;
|
|
74
68
|
}
|
|
75
|
-
/** Partial update for `
|
|
69
|
+
/** Partial update for `LibraryManager.updateLibrary()`. */
|
|
76
70
|
export interface UpdateLibraryInput {
|
|
77
71
|
name?: string;
|
|
78
72
|
path?: string;
|
|
73
|
+
backend?: LibraryBackend;
|
|
79
74
|
backendConfig?: BackendConfig;
|
|
80
75
|
ownership?: LibraryOwnership;
|
|
81
76
|
structure?: LibraryStructure;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-library.d.ts","sourceRoot":"","sources":["../../../library/src/user-library.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,gDAAgD;AAChD,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"user-library.d.ts","sourceRoot":"","sources":["../../../library/src/user-library.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,gDAAgD;AAChD,eAAO,MAAM,gBAAgB,2BAA4B,CAAC;AAC1D,kCAAkC;AAClC,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,mDAAmD;AACnD,eAAO,MAAM,kBAAkB,6CAA8C,CAAC;AAC9E,uDAAuD;AACvD,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,uDAAuD;AACvD,eAAO,MAAM,kBAAkB,6BAA8B,CAAC;AAC9D,0DAA0D;AAC1D,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAMnE,2CAA2C;AAC3C,MAAM,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAEpC,mCAAmC;AACnC,MA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ChB;AACD,MAAM,WAAW,QAAQ;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AACD,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAM9B,qBAAa,gBAAiB,SAAQ,KAAK;aAGvB,IAAI,EAAE,MAAM;gBAD5B,OAAO,EAAE,MAAM,EACC,IAAI,EAAE,MAAM;CAK/B;AAED,qBAAa,0BAA2B,SAAQ,gBAAgB;gBAClD,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;CAIzC;AAED,qBAAa,yBAA0B,SAAQ,gBAAgB;gBACjD,IAAI,EAAE,MAAM;CAIzB;AAED,qBAAa,wBAAyB,SAAQ,gBAAgB;gBAChD,KAAK,EAAE,MAAM;CAI1B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { openCatalogSource, openLibrary,
|
|
1
|
+
export { openCatalogSource, openLibrary, openLibraryManager, resolveCatalogSource } from './chunk-6EN5IJ2Y.js';
|
|
2
2
|
import './chunk-4NDWKA64.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-2NIOMFSQ.js';
|
|
4
4
|
import './chunk-R7FOF242.js';
|
|
5
5
|
import './chunk-GKIA2PU5.js';
|
|
6
6
|
import './chunk-OKRUTSG7.js';
|
|
@@ -9,5 +9,5 @@ import './chunk-ZHLRRT5D.js';
|
|
|
9
9
|
import './chunk-37JKX6D7.js';
|
|
10
10
|
import './chunk-NELZIQ2E.js';
|
|
11
11
|
import './chunk-NSBPE2FW.js';
|
|
12
|
-
//# sourceMappingURL=open-library-
|
|
13
|
-
//# sourceMappingURL=open-library-
|
|
12
|
+
//# sourceMappingURL=open-library-XD7QYLMW.js.map
|
|
13
|
+
//# sourceMappingURL=open-library-XD7QYLMW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"open-library-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"open-library-XD7QYLMW.js"}
|
package/dist/runner/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildContextSection, buildEnvironmentSection, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-
|
|
1
|
+
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildContextSection, buildEnvironmentSection, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-Z24KPZKU.js';
|
|
2
2
|
import '../chunk-G7O7WDXX.js';
|
|
3
3
|
import '../chunk-X5YPJV4N.js';
|
|
4
4
|
import '../chunk-O7SG5PC2.js';
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* - `inline-live`: reads current content from Library (per invocation)
|
|
11
11
|
* - `discoverable`: registers as a capability (name + description + content)
|
|
12
12
|
*
|
|
13
|
-
* This module is pure logic — no IO beyond the
|
|
13
|
+
* This module is pure logic — no IO beyond the IAssetIndex calls.
|
|
14
14
|
*/
|
|
15
|
-
import type {
|
|
15
|
+
import type { IAssetIndex } from "@skaile/workspaces/library";
|
|
16
16
|
import type { AgentComposeItem } from "@skaile/workspaces/types/manifests";
|
|
17
17
|
import { type CompileManifest, type ResolvedComposition } from "./types.js";
|
|
18
18
|
/**
|
|
@@ -24,7 +24,7 @@ export interface ResolveCompositionOpts {
|
|
|
24
24
|
/** The agent's composes: items */
|
|
25
25
|
items: AgentComposeItem[];
|
|
26
26
|
/** Library for asset resolution */
|
|
27
|
-
library:
|
|
27
|
+
library: IAssetIndex;
|
|
28
28
|
/**
|
|
29
29
|
* Pre-loaded compile manifest for inline-snapshot items.
|
|
30
30
|
* If absent, inline-snapshot items fall back to live resolution with a warning.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../../../runner/src/composition/resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAkB,KAAK,eAAe,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAM5F;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACrC,kCAAkC;IAClC,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,mCAAmC;IACnC,OAAO,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC;;;;OAIG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CACpE;AAMD;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,sBAAsB,GAC3B,OAAO,CAAC,mBAAmB,CAAC,CA+B9B"}
|
package/dist/sdk/index.js
CHANGED
package/dist/sdk/runner.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildContextSection, buildEnvironmentSection, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-
|
|
1
|
+
export { CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CapabilityRegistry, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, MarkdownStreamer, PreInitRingSink, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildContextSection, buildEnvironmentSection, builtinCapabilities, clearPreInitRingSink, clearSession, compileComposition, computeCapabilitySignature, createAgentSession, createSessionStimulusBus, defineCapability, deleteSession, emitSystemPromptComposed, ensureGitConfigInclude, extractClaudeAiOauthExpiresAt, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, installPreInitRingSink, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadSession, loadSessionById, newSession, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, resetRunnerLogStore, resolveAgentComposition, resolveAgentMixins, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveMixin, runAgentChat, saveSession, setCurrentSession, startAgentServer, touchSession, writeClaudeCodeCredentialsFile } from '../chunk-Z24KPZKU.js';
|
|
2
2
|
import '../chunk-G7O7WDXX.js';
|
|
3
3
|
import '../chunk-X5YPJV4N.js';
|
|
4
4
|
import '../chunk-O7SG5PC2.js';
|
package/dist/tui/index.js
CHANGED