@skaile/workspaces 3.9.0 → 3.9.1
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 +6 -0
- package/dist/{asset-feeds-4AEYY5P7.js → asset-feeds-TFQDBOYM.js} +4 -4
- package/dist/{asset-feeds-4AEYY5P7.js.map → asset-feeds-TFQDBOYM.js.map} +1 -1
- package/dist/asset-manager/index.js +1 -1
- package/dist/{chunk-DHLCJTDF.js → chunk-2KANBOIO.js} +5 -5
- package/dist/{chunk-DHLCJTDF.js.map → chunk-2KANBOIO.js.map} +1 -1
- package/dist/{chunk-UZGI2IYY.js → chunk-6OVS6IAK.js} +2 -2
- package/dist/{chunk-UZGI2IYY.js.map → chunk-6OVS6IAK.js.map} +1 -1
- package/dist/{chunk-UJOTHTKU.js → chunk-BO4NC4G7.js} +110 -81
- package/dist/chunk-BO4NC4G7.js.map +1 -0
- package/dist/{chunk-CQMH3VP4.js → chunk-DPIOHTDD.js} +3 -3
- package/dist/{chunk-CQMH3VP4.js.map → chunk-DPIOHTDD.js.map} +1 -1
- package/dist/{chunk-MFI6ZSN6.js → chunk-HASPIEOD.js} +6 -6
- package/dist/{chunk-MFI6ZSN6.js.map → chunk-HASPIEOD.js.map} +1 -1
- package/dist/{chunk-2IVCUCJJ.js → chunk-K7W7HC3C.js} +3 -3
- package/dist/{chunk-2IVCUCJJ.js.map → chunk-K7W7HC3C.js.map} +1 -1
- package/dist/{chunk-AQGWIMNV.js → chunk-NXUUNPIB.js} +3 -3
- package/dist/{chunk-AQGWIMNV.js.map → chunk-NXUUNPIB.js.map} +1 -1
- package/dist/{chunk-6BHWELKC.js → chunk-R2IQAJSU.js} +6 -6
- package/dist/{chunk-6BHWELKC.js.map → chunk-R2IQAJSU.js.map} +1 -1
- package/dist/{chunk-TVYXXUEN.js → chunk-WUOHDYDH.js} +2 -2
- package/dist/{chunk-TVYXXUEN.js.map → chunk-WUOHDYDH.js.map} +1 -1
- package/dist/{chunk-DZTQI5RC.js → chunk-ZIC7S44L.js} +3 -3
- package/dist/{chunk-DZTQI5RC.js.map → chunk-ZIC7S44L.js.map} +1 -1
- package/dist/cli/index.js +26 -26
- package/dist/connectors/index.js +1 -1
- package/dist/connectors/src/managed-gitconfig.d.ts +12 -21
- package/dist/connectors/src/managed-gitconfig.d.ts.map +1 -1
- package/dist/{ensure-sources-KHV6C6PZ.js → ensure-sources-PDAH5SAV.js} +4 -4
- package/dist/{ensure-sources-KHV6C6PZ.js.map → ensure-sources-PDAH5SAV.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +1 -1
- package/dist/factory-assets/connectors/deploy.js +1 -1
- package/dist/factory-assets/connectors/devserver.js +1 -1
- package/dist/factory-assets/connectors/flow/adapter.js +1 -1
- package/dist/factory-assets/connectors/flow/run-flow.js +2 -2
- package/dist/factory-assets/connectors/flow.js +1 -1
- package/dist/factory-assets/connectors/git/driver.d.ts +10 -15
- package/dist/factory-assets/connectors/git/driver.d.ts.map +1 -1
- package/dist/factory-assets/connectors/git.js +1 -1
- package/dist/factory-assets/connectors/gmail.js +1 -1
- package/dist/factory-assets/connectors/googledrive.js +1 -1
- package/dist/factory-assets/connectors/local.js +1 -1
- package/dist/factory-assets/connectors/mattermost.js +1 -1
- package/dist/factory-assets/connectors/memory.js +1 -1
- package/dist/factory-assets/connectors/minio.js +1 -1
- package/dist/factory-assets/connectors/postgres.js +1 -1
- package/dist/factory-assets/connectors/s3.js +1 -1
- package/dist/factory-assets/connectors/sharepoint.js +1 -1
- package/dist/factory-assets/connectors/sqlite.js +1 -1
- package/dist/factory-assets/connectors/static-server.js +1 -1
- package/dist/factory-assets/connectors/tunnel.js +1 -1
- package/dist/factory-assets/connectors/webdav.js +1 -1
- package/dist/factory-assets/connectors/xstate-store.js +1 -1
- package/dist/factory-assets/connectors/xstate.js +1 -1
- package/dist/{helpers-BTEJZPZU.js → helpers-5OP6O3WS.js} +4 -4
- package/dist/{helpers-BTEJZPZU.js.map → helpers-5OP6O3WS.js.map} +1 -1
- package/dist/{library-publish-FRA4ANLM.js → library-publish-NNGVXORH.js} +6 -6
- package/dist/{library-publish-FRA4ANLM.js.map → library-publish-NNGVXORH.js.map} +1 -1
- package/dist/{open-library-PBWBUXLT.js → open-library-5CEK2TSH.js} +5 -5
- package/dist/{open-library-PBWBUXLT.js.map → open-library-5CEK2TSH.js.map} +1 -1
- package/dist/{project-H3I5WFCM.js → project-QOVJ7I6I.js} +5 -5
- package/dist/{project-H3I5WFCM.js.map → project-QOVJ7I6I.js.map} +1 -1
- package/dist/runner/index.js +4 -4
- package/dist/sdk/asset-manager.js +1 -1
- package/dist/sdk/index.js +4 -4
- package/dist/sdk/runner.js +4 -4
- package/dist/{source-B4LAWF4G.js → source-O34YYH3U.js} +6 -6
- package/dist/{source-B4LAWF4G.js.map → source-O34YYH3U.js.map} +1 -1
- package/dist/{source-manifest-publish-UO4VLBID.js → source-manifest-publish-5TRCSBK7.js} +7 -7
- package/dist/{source-manifest-publish-UO4VLBID.js.map → source-manifest-publish-5TRCSBK7.js.map} +1 -1
- package/dist/tui/index.js +4 -4
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-UJOTHTKU.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { logErr } from './chunk-
|
|
1
|
+
import { logErr } from './chunk-NXUUNPIB.js';
|
|
2
2
|
import { flowKindProvider } from './chunk-OYZIURPH.js';
|
|
3
3
|
import { knowledgeKindProvider } from './chunk-OCLCDB7G.js';
|
|
4
4
|
import { createDefaultRegistry } from './chunk-PW4SJE3X.js';
|
|
@@ -103,5 +103,5 @@ async function openLibraryManager() {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
export { LocalCatalogDisabledError, createFullRegistry, openCatalogSource, openLibrary, openLibraryManager, resolveCatalogSource };
|
|
106
|
-
//# sourceMappingURL=chunk-
|
|
107
|
-
//# sourceMappingURL=chunk-
|
|
106
|
+
//# sourceMappingURL=chunk-ZIC7S44L.js.map
|
|
107
|
+
//# sourceMappingURL=chunk-ZIC7S44L.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../cli/src/open-registry.ts","../cli/src/open-library.ts"],"names":["source"],"mappings":";;;;;;AA2BO,SAAS,kBAAA,GAAwC;AACtD,EAAA,MAAM,WAAW,qBAAA,EAAsB;AACvC,EAAA,QAAA,CAAS,SAAS,gBAAgB,CAAA;AAClC,EAAA,QAAA,CAAS,SAAS,qBAAqB,CAAA;AACvC,EAAA,OAAO,QAAA;AACT;;;ACfO,IAAM,yBAAA,GAAN,cAAwC,KAAA,CAAM;AAAA,EACnD,YAAY,OAAA,EAAiB;AAC3B,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,IAAA,CAAK,IAAA,GAAO,2BAAA;AAAA,EACd;AACF;AASA,eAAsB,WAAA,GAAc;AAClC,EAAA,IAAI;AACF,IAAA,MAAM,EAAE,UAAA,EAAW,GAAI,MAAM,OAAO,oBAA4B,CAAA;AAChE,IAAA,OAAO,IAAI,UAAA,CAAW,EAAE,YAAA,EAAc,kBAAA,IAAsB,CAAA;AAAA,EAC9D,SAAS,GAAA,EAAK;AACZ,IAAA,MAAA,CAAO,CAAA,2BAAA,EAA8B,eAAe,KAAA,GAAQ,GAAA,CAAI,UAAU,MAAA,CAAO,GAAG,CAAC,CAAA,CAAE,CAAA;AACvF,IAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,EAChB;AACF;AAqBA,eAAsB,kBAAkB,IAAA,EAQtC;AACA,EAAA,MAAM,EAAE,eAAe,mBAAA,EAAqB,iBAAA,EAAmB,mBAAkB,GAAI,MAAM,OACzF,oBACF,CAAA;AACA,EAAA,MAAM,MAAM,aAAA,CAAc;AAAA,IACxB,YAAY,IAAA,EAAM,UAAA;AAAA,IAClB,gBAAgB,IAAA,EAAM;AAAA,GACvB,CAAA;AACD,EAAA,MAAM,OAAA,GAAU,IAAA,EAAM,eAAA,I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AACrD,EAAA,OAAO,EAAE,MAAA,EAAQ,KAAA,EAAO,MAAM;AAAA,EAAC,CAAA,EAAE;AACnC;AASA,eAAsB,kBAAA,GAInB;AACD,EAAA,MAAM,EAAE,cAAA,EAAe,GAAI,MAAM,OAAO,oBAA4B,CAAA;AACpE,EAAA,MAAM,OAAA,GAAU,MAAM,WAAA,EAAY;AAClC,EAAA,MAAM,OAAA,GAAU,IAAI,cAAA,CAAe,OAAO,CAAA;AAC1C,EAAA,OAAO,EAAE,OAAA,EAAS,OAAA,EAAS,OAAO,MAAM,OAAA,CAAQ,OAAM,EAAE;AAC1D","file":"chunk-DZTQI5RC.js","sourcesContent":["/**\n * open-registry.ts — shared helper to create a full AssetKindRegistry.\n *\n * Bootstraps the registry with all built-in providers (9 core + preset)\n * from @skaile/discovery, plus the extension kind providers (flow from\n * @skaile/workspaces/factory-assets/connectors/flow/engine, knowledge from @skaile/library).\n *\n * This is the single registration point for the CLI. All code paths\n * that need a registry (source sync, lib-status, etc.) should use this.\n */\n\nimport type { AssetKindRegistry } from \"@skaile/workspaces/discovery\";\nimport { createDefaultRegistry } from \"@skaile/workspaces/discovery\";\nimport { flowKindProvider } from \"@skaile/workspaces/factory-assets/connectors/flow/engine\";\nimport { knowledgeKindProvider } from \"@skaile/workspaces/library\";\n\n/**\n * Create a fully-configured AssetKindRegistry with all known providers.\n *\n * Registers:\n * - 9 core kinds (skill, agent, connector, mount, mcp-server, contract, prompt, persona, ruleset)\n * - preset (composition entity)\n * - flow (extension, from @skaile/workspaces/factory-assets/connectors/flow/engine)\n * - knowledge (extension, from @skaile/library)\n *\n * @returns An unfrozen registry (auto-freezes on first read)\n */\nexport function createFullRegistry(): AssetKindRegistry {\n const registry = createDefaultRegistry();\n registry.register(flowKindProvider);\n registry.register(knowledgeKindProvider);\n return registry;\n}\n","/**\n * open-library.ts — shared helpers to open the LocalIndex and the configured\n * Catalog source.\n *\n * Lazy-loads the `@skaile/workspaces/library` subpath and returns the\n * LocalIndex instance (backed by `@libsql/client`; runs on Node and Bun).\n * The catalog-source helper reads\n * `~/.skaile/config.yaml` (and project-level overlay if `projectDir` is given)\n * to decide between {@link RemoteCatalogSource} (default — points at\n * `https://skaile.store`) and a {@link LocalCatalogSource} bound to the most\n * recent local library registered via `skaile source add`.\n */\n\nimport { logErr } from \"./helpers.ts\";\nimport { createFullRegistry } from \"./open-registry.ts\";\n\n/** Thrown by {@link openCatalogSource} when `catalog.url` is the `local` sentinel. */\nexport class LocalCatalogDisabledError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"LocalCatalogDisabledError\";\n }\n}\n\n/**\n * Open the LocalIndex with the full kind registry. Exits with code 1\n * if the library directory cannot be created.\n *\n * @returns A `LocalIndex` instance ready for use.\n * @docLink cli/dev-guide#open-library\n */\nexport async function openLibrary() {\n try {\n const { LocalIndex } = await import(\"@skaile/workspaces/library\");\n return new LocalIndex({ kindRegistry: createFullRegistry() });\n } catch (err) {\n logErr(`Could not open LocalIndex: ${err instanceof Error ? err.message : String(err)}`);\n process.exit(1);\n }\n}\n\n/**\n * Resolve the configured **remote** Catalog source for the CLI.\n *\n * Reads `~/.skaile/config.yaml` (plus the optional project-level overlay) and\n * returns a {@link RemoteCatalogSource} pointing at `catalog.url` (default:\n * `https://skaile.store`). The `cache_ttl: 0` config flag flips the source\n * into air-gapped mode: network reads are disabled, only `skaile update`\n * performs refreshes.\n *\n * **Local-mode rejection.** If the resolved config has `catalog.url: local`\n * this helper throws — callers wanting the dispatched local-or-remote source\n * must use {@link resolveCatalogSource}. Remote-only consumers like\n * `skaile update --catalog-only` rely on this strict behaviour.\n *\n * @param opts - Project directory (overlays project config) and explicit overrides.\n * @returns A configured {@link RemoteCatalogSource}.\n * @throws When `catalog.url` is the `local` sentinel.\n * @docLink cli/dev-guide#open-library\n */\nexport async function openCatalogSource(opts?: {\n projectDir?: string;\n baseUrlOverride?: string;\n /** Override the user-config path for tests. */\n userConfigFile?: string;\n}): Promise<\n | import(\"@skaile/workspaces/library\").RemoteCatalogSource\n | import(\"@skaile/workspaces/library\").RestCatalogSource\n> {\n const { resolveConfig, RemoteCatalogSource, RestCatalogSource, isLocalCatalogUrl } = await import(\n \"@skaile/workspaces/library\"\n );\n const cfg = resolveConfig({\n projectDir: opts?.projectDir,\n userConfigFile: opts?.userConfigFile,\n });\n const baseUrl = opts?.baseUrlOverride ?? cfg.catalog.url;\n if (isLocalCatalogUrl(baseUrl)) {\n throw new LocalCatalogDisabledError(\n \"catalog.url is set to 'local' — remote catalog is disabled. \" +\n \"Use `skaile source add <path>` + `skaile source sync` for local sources, \" +\n \"or set `catalog.url: https://skaile.store` in ~/.skaile/config.yaml.\",\n );\n }\n const cacheTtlMs = cfg.catalog.cache_ttl * 1000;\n if (cfg.catalog.framing === \"rest\") {\n return new RestCatalogSource({ baseUrl, cacheTtlMs });\n }\n return new RemoteCatalogSource({ baseUrl, cacheTtlMs });\n}\n\n/**\n * Resolved catalog source plus a close handle for releasing any underlying\n * resources (e.g. the `LocalIndex` SQLite connection in local mode).\n *\n * Callers MUST invoke `close()` when done — typically in a `finally` block.\n * For remote-mode sources `close()` is a no-op, but the contract is uniform\n * so consumers don't have to branch.\n *\n * @docLink cli/dev-guide#open-library\n */\nexport interface ResolvedCatalogSource {\n /** The {@link ICatalogSource} ready for use. */\n source: import(\"@skaile/workspaces/library\").ICatalogSource;\n /** Release any underlying resources (SQLite handle in local mode). */\n close(): void;\n}\n\n/**\n * Resolve the configured Catalog source — local or remote — based on\n * `~/.skaile/config.yaml`.\n *\n * Dispatch:\n * - `catalog.url: local` → opens {@link LocalIndex}, picks the most recently\n * registered local library whose `path` still exists on disk, and returns a\n * {@link LocalCatalogSource} bound to that library. Throws if no usable\n * local library is registered.\n * - any URL → returns {@link RemoteCatalogSource} (same as\n * {@link openCatalogSource}).\n *\n * The returned `close()` releases the underlying `LocalIndex` SQLite handle\n * in local mode (no-op in remote mode). Callers MUST invoke it — typically in\n * a `finally` block — to satisfy `library/CLAUDE.md` § \"Notes for Consumers\".\n *\n * @param opts - Project directory (overlays project config) and explicit overrides.\n * @returns A `ResolvedCatalogSource` carrying the source and a close handle.\n * @throws When `local` is configured but no usable local library is registered.\n * @docLink cli/dev-guide#open-library\n */\nexport async function resolveCatalogSource(opts?: {\n projectDir?: string;\n baseUrlOverride?: string;\n /** Override the user-config path for tests. */\n userConfigFile?: string;\n}): Promise<ResolvedCatalogSource> {\n const {\n resolveConfig,\n RemoteCatalogSource,\n RestCatalogSource,\n LocalCatalogSource,\n isLocalCatalogUrl,\n } = await import(\"@skaile/workspaces/library\");\n const cfg = resolveConfig({\n projectDir: opts?.projectDir,\n userConfigFile: opts?.userConfigFile,\n });\n const baseUrl = opts?.baseUrlOverride ?? cfg.catalog.url;\n\n if (isLocalCatalogUrl(baseUrl)) {\n const fs = await import(\"node:fs\");\n const library = await openLibrary();\n try {\n const sources = await library.listSources();\n type LibraryRow = (typeof sources)[number];\n // Type-narrow: `path` is required for local libraries after the filter.\n const usable = sources\n .filter(\n (s): s is LibraryRow & { path: string } =>\n s.backend === \"local\" && typeof s.path === \"string\" && s.path.length > 0,\n )\n .sort((a, b) => b.createdAt.getTime() - a.createdAt.getTime());\n\n if (usable.length === 0) {\n throw new Error(\n \"catalog.url is set to 'local' but no local library is registered. \" +\n \"Run `skaile source add <path>` first, then `skaile source sync`.\",\n );\n }\n\n // Prefer the most recently added library whose path still exists.\n const present = usable.find((s) => fs.existsSync(s.path));\n if (!present) {\n const head = usable[0];\n throw new Error(\n `catalog.url is set to 'local' but every registered local library has a missing path on disk. ` +\n `Most recent: ${head.path} (library ${head.id}). ` +\n `Re-register with \\`skaile source add <existing-path>\\` or run \\`skaile source list\\` to inspect.`,\n );\n }\n\n const source = new LocalCatalogSource(\n library,\n present.id,\n present.path,\n createFullRegistry(),\n );\n return { source, close: () => library.close() };\n } catch (err) {\n // Release the handle on any failure during dispatch — otherwise the\n // SQLite WAL state leaks for the lifetime of the process.\n library.close();\n throw err;\n }\n }\n\n const cacheTtlMs = cfg.catalog.cache_ttl * 1000;\n const source =\n cfg.catalog.framing === \"rest\"\n ? new RestCatalogSource({ baseUrl, cacheTtlMs })\n : new RemoteCatalogSource({ baseUrl, cacheTtlMs });\n return { source, close: () => {} };\n}\n\n/**\n * Open the LibraryManager bound to the active LocalIndex.\n * Caller owns lifetime — must call `close()` (returned helper closes the\n * underlying LocalIndex).\n *\n * @docLink cli/dev-guide#open-library\n */\nexport async function openLibraryManager(): Promise<{\n manager: import(\"@skaile/workspaces/library\").LibraryManager;\n library: import(\"@skaile/workspaces/library\").LocalIndex;\n close: () => void;\n}> {\n const { LibraryManager } = await import(\"@skaile/workspaces/library\");\n const library = await openLibrary();\n const manager = new LibraryManager(library);\n return { manager, library, close: () => library.close() };\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../cli/src/open-registry.ts","../cli/src/open-library.ts"],"names":["source"],"mappings":";;;;;;AA2BO,SAAS,kBAAA,GAAwC;AACtD,EAAA,MAAM,WAAW,qBAAA,EAAsB;AACvC,EAAA,QAAA,CAAS,SAAS,gBAAgB,CAAA;AAClC,EAAA,QAAA,CAAS,SAAS,qBAAqB,CAAA;AACvC,EAAA,OAAO,QAAA;AACT;;;ACfO,IAAM,yBAAA,GAAN,cAAwC,KAAA,CAAM;AAAA,EACnD,YAAY,OAAA,EAAiB;AAC3B,IAAA,KAAA,CAAM,OAAO,CAAA;AACb,IAAA,IAAA,CAAK,IAAA,GAAO,2BAAA;AAAA,EACd;AACF;AASA,eAAsB,WAAA,GAAc;AAClC,EAAA,IAAI;AACF,IAAA,MAAM,EAAE,UAAA,EAAW,GAAI,MAAM,OAAO,oBAA4B,CAAA;AAChE,IAAA,OAAO,IAAI,UAAA,CAAW,EAAE,YAAA,EAAc,kBAAA,IAAsB,CAAA;AAAA,EAC9D,SAAS,GAAA,EAAK;AACZ,IAAA,MAAA,CAAO,CAAA,2BAAA,EAA8B,eAAe,KAAA,GAAQ,GAAA,CAAI,UAAU,MAAA,CAAO,GAAG,CAAC,CAAA,CAAE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AAAA,IAChD,SAAS,GAAA,EAAK;AAGZ,MAAA,OAAA,CAAQ,KAAA,EAAM;AACd,MAAA,MAAM,GAAA;AAAA,IACR;AAAA,EACF;AAEA,EAAA,MAAM,UAAA,GAAa,GAAA,CAAI,OAAA,CAAQ,SAAA,GAAY,GAAA;AAC3C,EAAA,MAAM,SACJ,GAAA,CAAI,OAAA,CAAQ,OAAA,KAAY,MAAA,GACpB,IAAI,iBAAA,CAAkB,EAAE,OAAA,EAAS,UAAA,EAAY,CAAA,GAC7C,IAAI,oBAAoB,EAAE,OAAA,EAAS,YAAY,CAAA;AACrD,EAAA,OAAO,EAAE,MAAA,EAAQ,KAAA,EAAO,MAAM;AAAA,EAAC,CAAA,EAAE;AACnC;AASA,eAAsB,kBAAA,GAInB;AACD,EAAA,MAAM,EAAE,cAAA,EAAe,GAAI,MAAM,OAAO,oBAA4B,CAAA;AACpE,EAAA,MAAM,OAAA,GAAU,MAAM,WAAA,EAAY;AAClC,EAAA,MAAM,OAAA,GAAU,IAAI,cAAA,CAAe,OAAO,CAAA;AAC1C,EAAA,OAAO,EAAE,OAAA,EAAS,OAAA,EAAS,OAAO,MAAM,OAAA,CAAQ,OAAM,EAAE;AAC1D","file":"chunk-ZIC7S44L.js","sourcesContent":["/**\n * open-registry.ts — shared helper to create a full AssetKindRegistry.\n *\n * Bootstraps the registry with all built-in providers (9 core + preset)\n * from @skaile/discovery, plus the extension kind providers (flow from\n * @skaile/workspaces/factory-assets/connectors/flow/engine, knowledge from @skaile/library).\n *\n * This is the single registration point for the CLI. All code paths\n * that need a registry (source sync, lib-status, etc.) should use this.\n */\n\nimport type { AssetKindRegistry } from \"@skaile/workspaces/discovery\";\nimport { createDefaultRegistry } from \"@skaile/workspaces/discovery\";\nimport { flowKindProvider } from \"@skaile/workspaces/factory-assets/connectors/flow/engine\";\nimport { knowledgeKindProvider } from \"@skaile/workspaces/library\";\n\n/**\n * Create a fully-configured AssetKindRegistry with all known providers.\n *\n * Registers:\n * - 9 core kinds (skill, agent, connector, mount, mcp-server, contract, prompt, persona, ruleset)\n * - preset (composition entity)\n * - flow (extension, from @skaile/workspaces/factory-assets/connectors/flow/engine)\n * - knowledge (extension, from @skaile/library)\n *\n * @returns An unfrozen registry (auto-freezes on first read)\n */\nexport function createFullRegistry(): AssetKindRegistry {\n const registry = createDefaultRegistry();\n registry.register(flowKindProvider);\n registry.register(knowledgeKindProvider);\n return registry;\n}\n","/**\n * open-library.ts — shared helpers to open the LocalIndex and the configured\n * Catalog source.\n *\n * Lazy-loads the `@skaile/workspaces/library` subpath and returns the\n * LocalIndex instance (backed by `@libsql/client`; runs on Node and Bun).\n * The catalog-source helper reads\n * `~/.skaile/config.yaml` (and project-level overlay if `projectDir` is given)\n * to decide between {@link RemoteCatalogSource} (default — points at\n * `https://skaile.store`) and a {@link LocalCatalogSource} bound to the most\n * recent local library registered via `skaile source add`.\n */\n\nimport { logErr } from \"./helpers.ts\";\nimport { createFullRegistry } from \"./open-registry.ts\";\n\n/** Thrown by {@link openCatalogSource} when `catalog.url` is the `local` sentinel. */\nexport class LocalCatalogDisabledError extends Error {\n constructor(message: string) {\n super(message);\n this.name = \"LocalCatalogDisabledError\";\n }\n}\n\n/**\n * Open the LocalIndex with the full kind registry. Exits with code 1\n * if the library directory cannot be created.\n *\n * @returns A `LocalIndex` instance ready for use.\n * @docLink cli/dev-guide#open-library\n */\nexport async function openLibrary() {\n try {\n const { LocalIndex } = await import(\"@skaile/workspaces/library\");\n return new LocalIndex({ kindRegistry: createFullRegistry() });\n } catch (err) {\n logErr(`Could not open LocalIndex: ${err instanceof Error ? err.message : String(err)}`);\n process.exit(1);\n }\n}\n\n/**\n * Resolve the configured **remote** Catalog source for the CLI.\n *\n * Reads `~/.skaile/config.yaml` (plus the optional project-level overlay) and\n * returns a {@link RemoteCatalogSource} pointing at `catalog.url` (default:\n * `https://skaile.store`). The `cache_ttl: 0` config flag flips the source\n * into air-gapped mode: network reads are disabled, only `skaile update`\n * performs refreshes.\n *\n * **Local-mode rejection.** If the resolved config has `catalog.url: local`\n * this helper throws — callers wanting the dispatched local-or-remote source\n * must use {@link resolveCatalogSource}. Remote-only consumers like\n * `skaile update --catalog-only` rely on this strict behaviour.\n *\n * @param opts - Project directory (overlays project config) and explicit overrides.\n * @returns A configured {@link RemoteCatalogSource}.\n * @throws When `catalog.url` is the `local` sentinel.\n * @docLink cli/dev-guide#open-library\n */\nexport async function openCatalogSource(opts?: {\n projectDir?: string;\n baseUrlOverride?: string;\n /** Override the user-config path for tests. */\n userConfigFile?: string;\n}): Promise<\n | import(\"@skaile/workspaces/library\").RemoteCatalogSource\n | import(\"@skaile/workspaces/library\").RestCatalogSource\n> {\n const { resolveConfig, RemoteCatalogSource, RestCatalogSource, isLocalCatalogUrl } = await import(\n \"@skaile/workspaces/library\"\n );\n const cfg = resolveConfig({\n projectDir: opts?.projectDir,\n userConfigFile: opts?.userConfigFile,\n });\n const baseUrl = opts?.baseUrlOverride ?? cfg.catalog.url;\n if (isLocalCatalogUrl(baseUrl)) {\n throw new LocalCatalogDisabledError(\n \"catalog.url is set to 'local' — remote catalog is disabled. \" +\n \"Use `skaile source add <path>` + `skaile source sync` for local sources, \" +\n \"or set `catalog.url: https://skaile.store` in ~/.skaile/config.yaml.\",\n );\n }\n const cacheTtlMs = cfg.catalog.cache_ttl * 1000;\n if (cfg.catalog.framing === \"rest\") {\n return new RestCatalogSource({ baseUrl, cacheTtlMs });\n }\n return new RemoteCatalogSource({ baseUrl, cacheTtlMs });\n}\n\n/**\n * Resolved catalog source plus a close handle for releasing any underlying\n * resources (e.g. the `LocalIndex` SQLite connection in local mode).\n *\n * Callers MUST invoke `close()` when done — typically in a `finally` block.\n * For remote-mode sources `close()` is a no-op, but the contract is uniform\n * so consumers don't have to branch.\n *\n * @docLink cli/dev-guide#open-library\n */\nexport interface ResolvedCatalogSource {\n /** The {@link ICatalogSource} ready for use. */\n source: import(\"@skaile/workspaces/library\").ICatalogSource;\n /** Release any underlying resources (SQLite handle in local mode). */\n close(): void;\n}\n\n/**\n * Resolve the configured Catalog source — local or remote — based on\n * `~/.skaile/config.yaml`.\n *\n * Dispatch:\n * - `catalog.url: local` → opens {@link LocalIndex}, picks the most recently\n * registered local library whose `path` still exists on disk, and returns a\n * {@link LocalCatalogSource} bound to that library. Throws if no usable\n * local library is registered.\n * - any URL → returns {@link RemoteCatalogSource} (same as\n * {@link openCatalogSource}).\n *\n * The returned `close()` releases the underlying `LocalIndex` SQLite handle\n * in local mode (no-op in remote mode). Callers MUST invoke it — typically in\n * a `finally` block — to satisfy `library/CLAUDE.md` § \"Notes for Consumers\".\n *\n * @param opts - Project directory (overlays project config) and explicit overrides.\n * @returns A `ResolvedCatalogSource` carrying the source and a close handle.\n * @throws When `local` is configured but no usable local library is registered.\n * @docLink cli/dev-guide#open-library\n */\nexport async function resolveCatalogSource(opts?: {\n projectDir?: string;\n baseUrlOverride?: string;\n /** Override the user-config path for tests. */\n userConfigFile?: string;\n}): Promise<ResolvedCatalogSource> {\n const {\n resolveConfig,\n RemoteCatalogSource,\n RestCatalogSource,\n LocalCatalogSource,\n isLocalCatalogUrl,\n } = await import(\"@skaile/workspaces/library\");\n const cfg = resolveConfig({\n projectDir: opts?.projectDir,\n userConfigFile: opts?.userConfigFile,\n });\n const baseUrl = opts?.baseUrlOverride ?? cfg.catalog.url;\n\n if (isLocalCatalogUrl(baseUrl)) {\n const fs = await import(\"node:fs\");\n const library = await openLibrary();\n try {\n const sources = await library.listSources();\n type LibraryRow = (typeof sources)[number];\n // Type-narrow: `path` is required for local libraries after the filter.\n const usable = sources\n .filter(\n (s): s is LibraryRow & { path: string } =>\n s.backend === \"local\" && typeof s.path === \"string\" && s.path.length > 0,\n )\n .sort((a, b) => b.createdAt.getTime() - a.createdAt.getTime());\n\n if (usable.length === 0) {\n throw new Error(\n \"catalog.url is set to 'local' but no local library is registered. \" +\n \"Run `skaile source add <path>` first, then `skaile source sync`.\",\n );\n }\n\n // Prefer the most recently added library whose path still exists.\n const present = usable.find((s) => fs.existsSync(s.path));\n if (!present) {\n const head = usable[0];\n throw new Error(\n `catalog.url is set to 'local' but every registered local library has a missing path on disk. ` +\n `Most recent: ${head.path} (library ${head.id}). ` +\n `Re-register with \\`skaile source add <existing-path>\\` or run \\`skaile source list\\` to inspect.`,\n );\n }\n\n const source = new LocalCatalogSource(\n library,\n present.id,\n present.path,\n createFullRegistry(),\n );\n return { source, close: () => library.close() };\n } catch (err) {\n // Release the handle on any failure during dispatch — otherwise the\n // SQLite WAL state leaks for the lifetime of the process.\n library.close();\n throw err;\n }\n }\n\n const cacheTtlMs = cfg.catalog.cache_ttl * 1000;\n const source =\n cfg.catalog.framing === \"rest\"\n ? new RestCatalogSource({ baseUrl, cacheTtlMs })\n : new RemoteCatalogSource({ baseUrl, cacheTtlMs });\n return { source, close: () => {} };\n}\n\n/**\n * Open the LibraryManager bound to the active LocalIndex.\n * Caller owns lifetime — must call `close()` (returned helper closes the\n * underlying LocalIndex).\n *\n * @docLink cli/dev-guide#open-library\n */\nexport async function openLibraryManager(): Promise<{\n manager: import(\"@skaile/workspaces/library\").LibraryManager;\n library: import(\"@skaile/workspaces/library\").LocalIndex;\n close: () => void;\n}> {\n const { LibraryManager } = await import(\"@skaile/workspaces/library\");\n const library = await openLibrary();\n const manager = new LibraryManager(library);\n return { manager, library, close: () => library.close() };\n}\n"]}
|
package/dist/cli/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { makeInstallCommand, makeCheckCommand, makeCleanCommand, reportInstalledSoftDeps } from '../chunk-
|
|
3
|
-
import { makeSourceCommand, syncProjectSources } from '../chunk-
|
|
2
|
+
import { makeInstallCommand, makeCheckCommand, makeCleanCommand, reportInstalledSoftDeps } from '../chunk-HASPIEOD.js';
|
|
3
|
+
import { makeSourceCommand, syncProjectSources } from '../chunk-R2IQAJSU.js';
|
|
4
4
|
import { AI_RESOURCES } from '../chunk-M5D2QNTY.js';
|
|
5
5
|
import { getStoreConfig, storeFetch, deviceLogin, loadStoreAuthConfig, logout, hasStoredAuth, isStoreAuthenticated, getStoreToken, getStoreIdentity } from '../chunk-WAFHQDLK.js';
|
|
6
|
-
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-
|
|
7
|
-
import { logErr, S, logOk, logInfo, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, logWarn, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-
|
|
6
|
+
import { openCatalogSource, openLibraryManager, createFullRegistry, openLibrary } from '../chunk-ZIC7S44L.js';
|
|
7
|
+
import { logErr, S, logOk, logInfo, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, logWarn, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-NXUUNPIB.js';
|
|
8
8
|
import { LocalSecretsProvider } from '../chunk-6BEGKO2Q.js';
|
|
9
|
-
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-
|
|
10
|
-
import { buildClaudePluginFiles } from '../chunk-
|
|
9
|
+
import { runAgentChat, loadSessionById, loadSession, listSessions, setCurrentSession, deleteSession, clearSession, loadAgentManifest, compileComposition, MarkdownStreamer, resolveMixin } from '../chunk-2KANBOIO.js';
|
|
10
|
+
import { buildClaudePluginFiles } from '../chunk-6OVS6IAK.js';
|
|
11
11
|
import '../chunk-X5YPJV4N.js';
|
|
12
12
|
import '../chunk-W3UDISS2.js';
|
|
13
13
|
import '../chunk-O7SG5PC2.js';
|
|
@@ -15,12 +15,12 @@ import '../chunk-7QBNJTTQ.js';
|
|
|
15
15
|
import '../chunk-GTS2FODO.js';
|
|
16
16
|
import '../chunk-WQ7DE5UC.js';
|
|
17
17
|
import '../chunk-32NA4TVC.js';
|
|
18
|
-
import { runFlow, resumeFlow } from '../chunk-
|
|
18
|
+
import { runFlow, resumeFlow } from '../chunk-K7W7HC3C.js';
|
|
19
19
|
import '../chunk-4R6DROGN.js';
|
|
20
20
|
import { validateFlowVersions, parseSkillFrontmatter } from '../chunk-4VTBZ2MF.js';
|
|
21
21
|
import '../chunk-GHWJHOYX.js';
|
|
22
22
|
import '../chunk-NC5YXVZF.js';
|
|
23
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-BO4NC4G7.js';
|
|
24
24
|
import '../chunk-3UU3D2Q3.js';
|
|
25
25
|
import '../chunk-32MHUAED.js';
|
|
26
26
|
import '../chunk-RUFTB7QN.js';
|
|
@@ -36,7 +36,7 @@ import '../chunk-HY6CIKFH.js';
|
|
|
36
36
|
import '../chunk-HGFKNJA5.js';
|
|
37
37
|
import { nodeLabel, nodeSkillAsset, nodeIsInert, nodeIsOptional, nodeRunKind, flowSkillVersionPins } from '../chunk-ELPR5XBG.js';
|
|
38
38
|
import '../chunk-2KBA5OO2.js';
|
|
39
|
-
import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError, parseRefTolerant, normalizeRepoUrl, FACTORY_SOURCE_URL } from '../chunk-
|
|
39
|
+
import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError, parseRefTolerant, normalizeRepoUrl, FACTORY_SOURCE_URL } from '../chunk-WUOHDYDH.js';
|
|
40
40
|
import { getStoreManifestsDir, getDefaultValue, isSecretPlaceholder } from '../chunk-OCLCDB7G.js';
|
|
41
41
|
import '../chunk-PW4SJE3X.js';
|
|
42
42
|
import '../chunk-UKJMQZV6.js';
|
|
@@ -111,7 +111,7 @@ async function runSearch(kind, query, opts) {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
async function searchIndex(query, kind) {
|
|
114
|
-
const { openLibrary: openLibrary2 } = await import('../open-library-
|
|
114
|
+
const { openLibrary: openLibrary2 } = await import('../open-library-5CEK2TSH.js');
|
|
115
115
|
const library = await openLibrary2();
|
|
116
116
|
try {
|
|
117
117
|
const defs = await library.listAssetDefs(kind ? { kind } : {});
|
|
@@ -164,7 +164,7 @@ async function searchLocal(query, kind, opts, showStore, airGapped) {
|
|
|
164
164
|
const factory = await searchFactory(projectDir, query, kind);
|
|
165
165
|
let entries = unionEntries(await searchIndex(query, kind), factory);
|
|
166
166
|
if (entries.length === 0 && !query && !kind && !airGapped) {
|
|
167
|
-
const { autoSyncForSearch } = await import('../source-
|
|
167
|
+
const { autoSyncForSearch } = await import('../source-O34YYH3U.js');
|
|
168
168
|
if (await autoSyncForSearch(projectDir)) {
|
|
169
169
|
entries = unionEntries(await searchIndex(query, kind), factory);
|
|
170
170
|
}
|
|
@@ -218,7 +218,7 @@ async function searchStore(query, kind, opts, airGapped) {
|
|
|
218
218
|
logInfo("air-gapped (cache_ttl: 0) \u2014 local sources only");
|
|
219
219
|
return;
|
|
220
220
|
}
|
|
221
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
221
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-5CEK2TSH.js');
|
|
222
222
|
try {
|
|
223
223
|
const remote = await openCatalogSource2({ projectDir: path35__default.resolve(opts.projectDir) });
|
|
224
224
|
const assets = await remote.listAssets(kind ? { kind } : {});
|
|
@@ -533,7 +533,7 @@ async function resolveInfoEntry(am2, ref, opts) {
|
|
|
533
533
|
return { entry: match ?? deployed };
|
|
534
534
|
}
|
|
535
535
|
const lookup = opts.storeLookup ?? (async (filter) => {
|
|
536
|
-
const { resolveCatalogSource } = await import('../open-library-
|
|
536
|
+
const { resolveCatalogSource } = await import('../open-library-5CEK2TSH.js');
|
|
537
537
|
const { source, close } = await resolveCatalogSource({ projectDir: opts.projectDir });
|
|
538
538
|
try {
|
|
539
539
|
return await source.listAssets(filter);
|
|
@@ -549,7 +549,7 @@ async function resolveInfoEntry(am2, ref, opts) {
|
|
|
549
549
|
);
|
|
550
550
|
return { entry: hit ? catalogAssetToEntry(hit) : null };
|
|
551
551
|
} catch (err) {
|
|
552
|
-
const { LocalCatalogDisabledError } = await import('../open-library-
|
|
552
|
+
const { LocalCatalogDisabledError } = await import('../open-library-5CEK2TSH.js');
|
|
553
553
|
const storeNote = err instanceof Error ? err.message : String(err);
|
|
554
554
|
const disabled = err instanceof LocalCatalogDisabledError || /catalog\.url/i.test(storeNote);
|
|
555
555
|
return { entry: null, storeNote, ...disabled ? { storeDisabled: true } : {} };
|
|
@@ -1169,7 +1169,7 @@ function makeCatalogCommand() {
|
|
|
1169
1169
|
return catalog;
|
|
1170
1170
|
}
|
|
1171
1171
|
async function runLocalCatalogTest(projectDir) {
|
|
1172
|
-
const { resolveCatalogSource } = await import('../open-library-
|
|
1172
|
+
const { resolveCatalogSource } = await import('../open-library-5CEK2TSH.js');
|
|
1173
1173
|
let resolved;
|
|
1174
1174
|
try {
|
|
1175
1175
|
resolved = await resolveCatalogSource({ projectDir });
|
|
@@ -3408,16 +3408,16 @@ function makeLibraryCommand() {
|
|
|
3408
3408
|
});
|
|
3409
3409
|
cmd.command("publish <lib>").description("Push + register the library's manifest atomically (needs git backend)").option("--asset <ref>", "Publish only the single asset matching this ref/name").option("--create-repo", "Provision + link a public github repo if the library has no remote").option("--ref <gitref>", "Git ref to ingest (default: the library branch or main)").option("--dry-run", "Print the plan; push nothing and call no store endpoint").action(
|
|
3410
3410
|
async (lib, opts) => {
|
|
3411
|
-
const { runLibraryPublish } = await import('../library-publish-
|
|
3411
|
+
const { runLibraryPublish } = await import('../library-publish-NNGVXORH.js');
|
|
3412
3412
|
await withStoreErrorHandling(() => runLibraryPublish(lib, opts));
|
|
3413
3413
|
}
|
|
3414
3414
|
);
|
|
3415
3415
|
cmd.command("register <lib>").description("Register the library's manifest without pushing (bytes already on github)").option("--asset <ref>", "Publish only the single asset matching this ref/name").option("--ref <gitref>", "Git ref to ingest (default: the library branch or main)").option("--dry-run", "Print the plan; call no store endpoint").action(async (lib, opts) => {
|
|
3416
|
-
const { runLibraryRegister } = await import('../library-publish-
|
|
3416
|
+
const { runLibraryRegister } = await import('../library-publish-NNGVXORH.js');
|
|
3417
3417
|
await withStoreErrorHandling(() => runLibraryRegister(lib, opts));
|
|
3418
3418
|
});
|
|
3419
3419
|
cmd.command("yank <lib>").description("Retract the library's published assets from the store").option("--asset <ref>", "Yank only the single asset matching this ref/name").action(async (lib, opts) => {
|
|
3420
|
-
const { runLibraryYank } = await import('../library-publish-
|
|
3420
|
+
const { runLibraryYank } = await import('../library-publish-NNGVXORH.js');
|
|
3421
3421
|
await withStoreErrorHandling(() => runLibraryYank(lib, opts));
|
|
3422
3422
|
});
|
|
3423
3423
|
return cmd;
|
|
@@ -4139,7 +4139,7 @@ function scheduleSoftDepPreview() {
|
|
|
4139
4139
|
}
|
|
4140
4140
|
async function loadAssets() {
|
|
4141
4141
|
softDepPreviewCache.clear();
|
|
4142
|
-
const { gatherAssetFeeds } = await import('../asset-feeds-
|
|
4142
|
+
const { gatherAssetFeeds } = await import('../asset-feeds-TFQDBOYM.js');
|
|
4143
4143
|
const { entries, domains, notes } = await gatherAssetFeeds(am, am.projectDir);
|
|
4144
4144
|
if (notes.length > 0) {
|
|
4145
4145
|
state.message = notes.map((n) => `[${n.feed}] ${n.message}`).join(" \u2022 ");
|
|
@@ -4345,7 +4345,7 @@ function reconcileCollapsedSets(rows) {
|
|
|
4345
4345
|
async function loadSourcesAndLibraries() {
|
|
4346
4346
|
try {
|
|
4347
4347
|
const [{ openLibraryManager: openLibraryManager2 }, { skaileHomeDir }, { getGlobalCacheDir: getGlobalCacheDir2 }] = await Promise.all([
|
|
4348
|
-
import('../open-library-
|
|
4348
|
+
import('../open-library-5CEK2TSH.js'),
|
|
4349
4349
|
import('../library/index.js'),
|
|
4350
4350
|
import('../core/index.js')
|
|
4351
4351
|
]);
|
|
@@ -6779,7 +6779,7 @@ function makeServeCommand() {
|
|
|
6779
6779
|
);
|
|
6780
6780
|
}
|
|
6781
6781
|
async function ensurePluginsLoadedForServe(projectDir) {
|
|
6782
|
-
const { logInfo: logInfo2, logWarn: logWarn2 } = await import('../helpers-
|
|
6782
|
+
const { logInfo: logInfo2, logWarn: logWarn2 } = await import('../helpers-5OP6O3WS.js');
|
|
6783
6783
|
try {
|
|
6784
6784
|
const { resolveSkWorkspaceConfig: resolveSkWorkspaceConfig2 } = await import('../core/index.js');
|
|
6785
6785
|
const config = resolveSkWorkspaceConfig2(projectDir);
|
|
@@ -6798,7 +6798,7 @@ async function ensurePluginsLoadedForServe(projectDir) {
|
|
|
6798
6798
|
}
|
|
6799
6799
|
}
|
|
6800
6800
|
async function runCompileTest(opts) {
|
|
6801
|
-
const { logOk: logOk2, logErr: logErr2, logInfo: logInfo2, S: S2 } = await import('../helpers-
|
|
6801
|
+
const { logOk: logOk2, logErr: logErr2, logInfo: logInfo2, S: S2 } = await import('../helpers-5OP6O3WS.js');
|
|
6802
6802
|
const { tmpdir } = await import('os');
|
|
6803
6803
|
const { dirname: dirname4, join: join7, resolve: resolve5 } = await import('path');
|
|
6804
6804
|
const { fileURLToPath: fileURLToPath2 } = await import('url');
|
|
@@ -7680,7 +7680,7 @@ function makeStoreCommand() {
|
|
|
7680
7680
|
process.exit(2);
|
|
7681
7681
|
});
|
|
7682
7682
|
store.command("search <query>").description("Search the AI Asset Store catalog by name, description, or publisher").option("--kind <kind>", "Filter by asset kind (skill, agent, prompt, flow, \u2026)").option("-C, --project-dir <dir>", "Project directory (catalog config overlay)", process.cwd()).action(async (query, opts) => {
|
|
7683
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
7683
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-5CEK2TSH.js');
|
|
7684
7684
|
try {
|
|
7685
7685
|
const remote = await openCatalogSource2({ projectDir: path35__default.resolve(opts.projectDir) });
|
|
7686
7686
|
const assets = await remote.listAssets(opts.kind ? { kind: opts.kind } : {});
|
|
@@ -7713,8 +7713,8 @@ function makeStoreCommand() {
|
|
|
7713
7713
|
}
|
|
7714
7714
|
});
|
|
7715
7715
|
store.command("show <ref>").description("Show a store asset's details + provenance (source, files, integrity)").option("-C, --project-dir <dir>", "Project directory (catalog config overlay)", process.cwd()).action(async (ref, opts) => {
|
|
7716
|
-
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-
|
|
7717
|
-
const { supportsInstallManifest } = await import('../project-
|
|
7716
|
+
const { openCatalogSource: openCatalogSource2, LocalCatalogDisabledError } = await import('../open-library-5CEK2TSH.js');
|
|
7717
|
+
const { supportsInstallManifest } = await import('../project-QOVJ7I6I.js');
|
|
7718
7718
|
try {
|
|
7719
7719
|
const remote = await openCatalogSource2({ projectDir: path35__default.resolve(opts.projectDir) });
|
|
7720
7720
|
const asset = await remote.resolve(ref);
|
|
@@ -8800,7 +8800,7 @@ async function bootstrapUserConfig() {
|
|
|
8800
8800
|
}
|
|
8801
8801
|
async function hydrateInitSources(resolved, created) {
|
|
8802
8802
|
try {
|
|
8803
|
-
const { ensureSourcesCloned } = await import('../ensure-sources-
|
|
8803
|
+
const { ensureSourcesCloned } = await import('../ensure-sources-PDAH5SAV.js');
|
|
8804
8804
|
const hydrate = ensureSourcesCloned(resolved, { quiet: true });
|
|
8805
8805
|
for (const n of hydrate.cloned) created.push(`~/.skaile/cache/sources/${n}/`);
|
|
8806
8806
|
if (hydrate.failed.length > 0) {
|
package/dist/connectors/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, ensureRefreshAttemptStamp, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, removeUnavailableMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock, writeUnavailableMountBlock } from '../chunk-
|
|
1
|
+
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, ensureRefreshAttemptStamp, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, removeUnavailableMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock, writeUnavailableMountBlock } from '../chunk-BO4NC4G7.js';
|
|
2
2
|
export { EnvSecretProvider, ForgeSecretProvider, InMemorySecretProvider, LegacyAuthGrammarError, LockedSecretProvider, OAuthRequiredError, PreMintedSecretProvider, SecretProviderChain, createCliSecretProviderChain, createForgeSecretProviderChain, deriveSingleMaterializedConnectorDeclaration, fromMaterializedConnectorMd, isKnownSecretRef, loadConnectorDeclarations, loadMaterializedConnectorDeclarations, resolveAuthRef, resolveBackendAuthFor, resolvedConfigToDeclarations } from '../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../chunk-32MHUAED.js';
|
|
4
4
|
import '../chunk-RUFTB7QN.js';
|
|
@@ -10,19 +10,15 @@
|
|
|
10
10
|
* token. Refresh = atomically rewrite the credential line; the helper picks
|
|
11
11
|
* up the new token on the next git network op.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* `credential.<prefix>.helper` entries. Same prefix declared by two mounts
|
|
17
|
-
* with different tokens is a true collision and throws
|
|
18
|
-
* {@link ManagedGitconfigCollisionError}.
|
|
13
|
+
* Helpers are keyed by the full sanitized repository URL, not its owner.
|
|
14
|
+
* Collision checks canonicalize repository aliases so one repository still
|
|
15
|
+
* has only one credential-exposing mount.
|
|
19
16
|
*
|
|
20
17
|
* Spec: `_devlog/specs/2026-05-05-git-credential-tiers.md`.
|
|
21
18
|
*/
|
|
22
19
|
/**
|
|
23
|
-
* Thrown when two mounts
|
|
24
|
-
*
|
|
25
|
-
* prefixes (per-org paths) or consolidate the mounts.
|
|
20
|
+
* Thrown when two mounts claim credential scopes for the same canonical
|
|
21
|
+
* repository identity. One mount must own the exposed credential.
|
|
26
22
|
*/
|
|
27
23
|
export declare class ManagedGitconfigCollisionError extends Error {
|
|
28
24
|
readonly urlPrefix: string;
|
|
@@ -35,9 +31,9 @@ export interface WriteMountBlockOptions {
|
|
|
35
31
|
/** Mount declaration id; used as the block tag. */
|
|
36
32
|
mountId: string;
|
|
37
33
|
/**
|
|
38
|
-
* URL
|
|
39
|
-
* `https://github.com
|
|
40
|
-
*
|
|
34
|
+
* Sanitized repository URL the credential should authenticate, e.g.
|
|
35
|
+
* `https://github.com/org/repository.git`. Trailing slashes are preserved
|
|
36
|
+
* verbatim (git treats them as different scopes).
|
|
41
37
|
*/
|
|
42
38
|
urlPrefix: string;
|
|
43
39
|
/**
|
|
@@ -65,7 +61,7 @@ export interface WriteMountBlockOptions {
|
|
|
65
61
|
export interface WriteUnavailableMountBlockOptions {
|
|
66
62
|
/** Mount declaration id; used as the block tag. */
|
|
67
63
|
mountId: string;
|
|
68
|
-
/** URL
|
|
64
|
+
/** Repository URL scope the failed mount would have authenticated. */
|
|
69
65
|
urlPrefix: string;
|
|
70
66
|
/** Absolute path to the managed-gitconfig file. */
|
|
71
67
|
gitconfigPath: string;
|
|
@@ -84,13 +80,8 @@ export interface RemoveUnavailableMountBlockOptions {
|
|
|
84
80
|
/** Absolute path to the managed-gitconfig file. */
|
|
85
81
|
gitconfigPath: string;
|
|
86
82
|
/**
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* git matches a helper by URL, not by mount id, so a *sibling* mount that
|
|
91
|
-
* failed earlier under the same prefix (`https://github.com/acme/` covers
|
|
92
|
-
* both `acme/repo-a` and `acme/repo-b`) would otherwise answer this
|
|
93
|
-
* connector's own network operations with `quit=1`.
|
|
83
|
+
* Also remove unavailable aliases for this repository. Git matches helpers
|
|
84
|
+
* by URL, not mount id, so a stale alias must not answer another mount.
|
|
94
85
|
*/
|
|
95
86
|
urlPrefix?: string;
|
|
96
87
|
}
|
|
@@ -107,7 +98,7 @@ export interface RemoveMountBlockOptions {
|
|
|
107
98
|
export interface AtomicReplaceCredentialOptions {
|
|
108
99
|
/** Mount id (used to find the matching credential line). */
|
|
109
100
|
mountId: string;
|
|
110
|
-
/** URL
|
|
101
|
+
/** Repository URL scope the credential is keyed by. Same value passed to writeMountBlock. */
|
|
111
102
|
urlPrefix: string;
|
|
112
103
|
/** New token to install. */
|
|
113
104
|
token: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-gitconfig.d.ts","sourceRoot":"","sources":["../../../connectors/src/managed-gitconfig.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"managed-gitconfig.d.ts","sourceRoot":"","sources":["../../../connectors/src/managed-gitconfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAiBH;;;GAGG;AACH,qBAAa,8BAA+B,SAAQ,KAAK;IACvD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;gBAEhB,SAAS,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;CAW3E;AAED,sDAAsD;AACtD,MAAM,WAAW,sBAAsB;IACrC,mDAAmD;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,KAAK,E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;;;;;;;GAWG;AACH,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,kCAAkC,GAAG,IAAI,CAmB1F;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,uBAAuB,GAAG,IAAI,CAiBpE;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAKxE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAcjE;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,8BAA8B,GAAG,IAAI,CAOlF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { logErr, logOk, logInfo } from './chunk-
|
|
2
|
-
import './chunk-
|
|
1
|
+
import { logErr, logOk, logInfo } from './chunk-NXUUNPIB.js';
|
|
2
|
+
import './chunk-WUOHDYDH.js';
|
|
3
3
|
import './chunk-OCLCDB7G.js';
|
|
4
4
|
import './chunk-PW4SJE3X.js';
|
|
5
5
|
import './chunk-UKJMQZV6.js';
|
|
@@ -86,5 +86,5 @@ function ensureSourcesCloned(projectDir, opts = {}) {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
export { ensureSourcesCloned };
|
|
89
|
-
//# sourceMappingURL=ensure-sources-
|
|
90
|
-
//# sourceMappingURL=ensure-sources-
|
|
89
|
+
//# sourceMappingURL=ensure-sources-PDAH5SAV.js.map
|
|
90
|
+
//# sourceMappingURL=ensure-sources-PDAH5SAV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../cli/src/ensure-sources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBA,SAAS,gBAAgB,GAAA,EAAqB;AAC5C,EAAA,OAAY,IAAA,CAAA,IAAA,CAAK,iBAAA,EAAkB,EAAG,GAAG,CAAA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,QAAQ,CAAA,EAAG,OAAO,MAAA;AAElC,EAAA,MAAM,KAAA,GAAQ,KAAK,KAAA,IAAS,KAAA;AAC5B,EAAA,MAAM,OAAA,GAAU,kBAAA,CAAmB,QAAA,EAAU,KAAK,CAAA;AAClD,EAAA,IAAI,OAAA,KAAY,MAAM,OAAO,MAAA;AAC7B,EAAA,IAAI,OAAA,CAAQ,MAAA,KAAW,CAAA,EAAG,OAAO,MAAA;AAEjC,EAAA,KAAA,MAAW,SAAS,OAAA,EAAS;AAC3B,IAAA,kBAAA,CAAmB,KAAA,EAAO,OAAO,MAAM,CAAA;AAAA,EACzC;AAEA,EAAA,IAAI,CAAC,KAAA,EAAO;AACV,IAAA,iBAAA,CAAkB,MAAM,CAAA;AAAA,EAC1B;AAEA,EAAA,OAAO,MAAA;AACT","file":"ensure-sources-PDAH5SAV.js","sourcesContent":["/**\n * ensure-sources.ts — hydrate the `~/.skaile/cache/sources/` clone cache from a\n * project's `skaile.yaml` `sources:` entries.\n *\n * Called by `skaile init` (idempotent: no-op when no sources declared) and\n * `skaile install` so checking out a project pulls its source clones onto\n * the local machine.\n */\n\nimport { spawnSync } from \"node:child_process\";\nimport { existsSync, mkdirSync } from \"node:fs\";\nimport * as path from \"node:path\";\nimport {\n getGlobalCacheDir,\n type SourceEntry,\n sourceCacheKey,\n sourceShortName,\n WorkspaceYamlEditor,\n} from \"@skaile/workspaces/core\";\nimport { logErr, logInfo, logOk } from \"./helpers.ts\";\n\nfunction sourceClonePath(key: string): string {\n return path.join(getGlobalCacheDir(), key);\n}\n\nexport interface EnsureResult {\n cloned: string[];\n cached: string[];\n failed: string[];\n}\n\n/** Load `sources:` from a project's `skaile.yaml`, or `null` when unavailable. */\nfunction loadProjectSources(yamlPath: string, quiet: boolean): SourceEntry[] | null {\n try {\n return WorkspaceYamlEditor.load(yamlPath).getSources();\n } catch (err) {\n if (!quiet) {\n logErr(`Could not read ${yamlPath}: ${err instanceof Error ? err.message : String(err)}`);\n }\n return null;\n }\n}\n\n/**\n * Hydrate a single source entry into `result`: skip when already cached,\n * otherwise clone and record success/failure. Mutates `result` in place.\n */\nfunction hydrateSourceEntry(entry: SourceEntry, quiet: boolean, result: EnsureResult): void {\n const key = sourceCacheKey(entry.url);\n const slug = sourceShortName(entry.url);\n const dest = sourceClonePath(key);\n if (existsSync(dest)) {\n result.cached.push(slug);\n return;\n }\n mkdirSync(path.dirname(dest), { recursive: true });\n const args = [\"clone\", entry.url, dest];\n if (entry.pin) args.splice(1, 0, \"--branch\", entry.pin);\n const clone = spawnSync(\"git\", args, { stdio: quiet ? \"pipe\" : \"inherit\" });\n if (clone.status !== 0) {\n result.failed.push(slug);\n if (quiet) {\n logErr(`git clone failed for ${entry.url}`);\n }\n return;\n }\n result.cloned.push(slug);\n}\n\n/** Log a full-hydrate summary of cloned + reused-cached entries. */\nfunction logHydrateSummary(result: EnsureResult): void {\n for (const n of result.cloned) logOk(`Cloned source \"${n}\".`);\n if (result.cached.length > 0) {\n logInfo(`Reused cached clones: ${result.cached.join(\", \")}`);\n }\n}\n\n/**\n * Walk `projectDir/skaile.yaml` `sources:` and clone any entries whose\n * clone directory does not yet exist under `~/.skaile/cache/sources/`. Existing\n * clones are left untouched — this is hydration, not sync.\n *\n * Quiet by default: when `quiet: true` the helper only prints failures.\n * On full hydrate (`quiet: false`) it logs each cloned/cached entry.\n */\nexport function ensureSourcesCloned(\n projectDir: string,\n opts: { quiet?: boolean } = {},\n): EnsureResult {\n const result: EnsureResult = { cloned: [], cached: [], failed: [] };\n const yamlPath = path.join(projectDir, \"skaile.yaml\");\n if (!existsSync(yamlPath)) return result;\n\n const quiet = opts.quiet ?? false;\n const sources = loadProjectSources(yamlPath, quiet);\n if (sources === null) return result;\n if (sources.length === 0) return result;\n\n for (const entry of sources) {\n hydrateSourceEntry(entry, quiet, result);\n }\n\n if (!quiet) {\n logHydrateSummary(result);\n }\n\n return result;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BoxConnector, createConnector4 as createConnector } from '../../chunk-
|
|
1
|
+
export { BoxConnector, createConnector4 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DeployConnector, createConnector2 as createConnector } from '../../chunk-
|
|
1
|
+
export { DeployConnector, createConnector2 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DevServerConnector, createConnector3 as createConnector } from '../../chunk-
|
|
1
|
+
export { DevServerConnector, createConnector3 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-
|
|
1
|
+
export { resolveFlowPath, resumeFlow, runFlow } from '../../../chunk-K7W7HC3C.js';
|
|
2
2
|
import '../../../chunk-4R6DROGN.js';
|
|
3
3
|
import '../../../chunk-4VTBZ2MF.js';
|
|
4
|
-
import '../../../chunk-
|
|
4
|
+
import '../../../chunk-BO4NC4G7.js';
|
|
5
5
|
import '../../../chunk-3UU3D2Q3.js';
|
|
6
6
|
import '../../../chunk-32MHUAED.js';
|
|
7
7
|
import '../../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, buildFlowPromptEvent, createConnector, driveOrchestratorTurn } from '../../chunk-
|
|
1
|
+
export { FlowAdapter, SessionInlineSubFlowRunner, SessionNodeExecutor, SessionSubpromptRunner, buildFlowPromptEvent, createConnector, driveOrchestratorTurn } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -183,14 +183,10 @@ export declare class GitConnector extends AbstractConnector {
|
|
|
183
183
|
onHibernate(handle: ConnectorHandle): Promise<string | undefined>;
|
|
184
184
|
onSessionClose(handle: ConnectorHandle): Promise<string | undefined>;
|
|
185
185
|
/**
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
* `https://github.com/orgA/repo.git` we register
|
|
189
|
-
* `https://github.com/orgA/`). This lets two connectors on the same host
|
|
190
|
-
* with disjoint org prefixes coexist; same-host repos under one org just
|
|
191
|
-
* share the same scope.
|
|
186
|
+
* Scope the credential helper to the sanitized full repository URL.
|
|
187
|
+
* Userinfo, query, and fragment data must never enter managed gitconfig.
|
|
192
188
|
*/
|
|
193
|
-
private
|
|
189
|
+
private deriveCredentialScope;
|
|
194
190
|
/**
|
|
195
191
|
* Acquire the initial credential for a connector.
|
|
196
192
|
*
|
|
@@ -232,8 +228,8 @@ export declare class GitConnector extends AbstractConnector {
|
|
|
232
228
|
/**
|
|
233
229
|
* Best-effort removal of the unavailable-mount blocks that would answer this
|
|
234
230
|
* connector's git operations: its own from a previous failed session, and any
|
|
235
|
-
* left under the same
|
|
236
|
-
* this `connectAll` (git matches helpers by URL, not by mount id).
|
|
231
|
+
* left under the same repository scope by a sibling mount that failed earlier
|
|
232
|
+
* in this `connectAll` (git matches helpers by URL, not by mount id).
|
|
237
233
|
*/
|
|
238
234
|
private clearUnavailableCredentialHelper;
|
|
239
235
|
private exposeManagedCredential;
|
|
@@ -359,13 +355,12 @@ export declare class GitConnector extends AbstractConnector {
|
|
|
359
355
|
private preserveConflictingUntracked;
|
|
360
356
|
private authUrl;
|
|
361
357
|
/**
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
* origin or a non-http(s) remote (e.g. file:// in tests) is left untouched.
|
|
358
|
+
* Align `origin` with the exact sanitized URL used by the Tier-2 helper.
|
|
359
|
+
* Git does not normalize query/fragment data, path case, or `.git` aliases
|
|
360
|
+
* when matching `credential.<url>` sections, so the two strings must agree.
|
|
361
|
+
* The declared mount source remains authoritative over an existing remote.
|
|
367
362
|
*/
|
|
368
|
-
private
|
|
363
|
+
private alignRemoteWithCredentialScope;
|
|
369
364
|
/**
|
|
370
365
|
* Tier-1 only: rewrite `origin` so it carries the token freshly minted on
|
|
371
366
|
* this connect. The "use as-is" wake path leaves whatever token the first
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/git/driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,cAAc,EAMd,QAAQ,EAER,WAAW,EACX,YAAY,EACb,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../../../factory-assets/connectors/git/driver.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAMH,OAAO,KAAK,EACV,cAAc,EACd,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,cAAc,EAMd,QAAQ,EAER,WAAW,EACX,YAAY,EACb,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EACL,iBAAiB,EAalB,MAAM,+BAA+B,CAAC;AAOvC,UAAU,gBAAgB;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,EAAE,M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AyBxC,OAAO,CAAC,uBAAuB;IAiH/B;;;;;;;OAOG;IACH,OAAO,CAAC,eAAe;YAcT,wBAAwB;IAuDtC,OAAO,CAAC,yBAAyB;IAiCjC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;YACW,WAAW;IAWzB;;;;;;;OAOG;YACW,gBAAgB;IAqB9B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;YACW,oBAAoB;IA4DlC;;;;;;;;OAQG;YACW,qBAAqB;IASnC;;;;;;;;;;;;;;;;;;;OAmBG;YACW,mBAAmB;IAyBjC;;;;;;;;;;;;;;OAcG;YACW,4BAA4B;IAoC1C,OAAO,CAAC,OAAO;IAUf;;;;;OAKG;YACW,8BAA8B;IAgB5C;;;;;;OAMG;YACW,gBAAgB;IAa9B,OAAO,CAAC,kBAAkB;IAkC1B,qFAAqF;YACvE,gBAAgB;IAoB9B;;;;OAIG;YACW,uBAAuB;IAkDrC;;OAEG;YACW,mBAAmB;IAgDjC,OAAO,CAAC,qBAAqB;IAM7B,OAAO,CAAC,oBAAoB;YAiCd,iBAAiB;YAkBjB,qBAAqB;CAapC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAED,gFAAgF;AAChF,eAAO,MAAM,MAAM;;CAAuB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GitConnector, __test, createConnector5 as createConnector, readGitSyncStatus } from '../../chunk-
|
|
1
|
+
export { GitConnector, __test, createConnector5 as createConnector, readGitSyncStatus } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GmailConnector, createConnector6 as createConnector } from '../../chunk-
|
|
1
|
+
export { GmailConnector, createConnector6 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { GoogleDriveConnector, createConnector7 as createConnector } from '../../chunk-
|
|
1
|
+
export { GoogleDriveConnector, createConnector7 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { LocalConnector, createConnector8 as createConnector } from '../../chunk-
|
|
1
|
+
export { LocalConnector, createConnector8 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MattermostConnector, createConnector9 as createConnector } from '../../chunk-
|
|
1
|
+
export { MattermostConnector, createConnector9 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MemoryConnector, createConnector10 as createConnector } from '../../chunk-
|
|
1
|
+
export { MemoryConnector, createConnector10 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { MinIOConnector, createConnector11 as createConnector } from '../../chunk-
|
|
1
|
+
export { MinIOConnector, createConnector11 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PostgresConnector, createConnector12 as createConnector } from '../../chunk-
|
|
1
|
+
export { PostgresConnector, createConnector12 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S3Connector, createConnector13 as createConnector } from '../../chunk-
|
|
1
|
+
export { S3Connector, createConnector13 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { SharePointConnector, createConnector14 as createConnector } from '../../chunk-
|
|
1
|
+
export { SharePointConnector, createConnector14 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { SQLiteConnector, createConnector15 as createConnector } from '../../chunk-
|
|
1
|
+
export { SQLiteConnector, createConnector15 as createConnector } from '../../chunk-BO4NC4G7.js';
|
|
2
2
|
import '../../chunk-3UU3D2Q3.js';
|
|
3
3
|
import '../../chunk-32MHUAED.js';
|
|
4
4
|
import '../../chunk-RUFTB7QN.js';
|