@skaile/workspaces 3.7.2 → 3.8.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 +146 -0
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-44M2GV2W.js → asset-feeds-7HM3HONM.js} +4 -4
- package/dist/{asset-feeds-44M2GV2W.js.map → asset-feeds-7HM3HONM.js.map} +1 -1
- package/dist/asset-manager/index.js +1 -1
- package/dist/bridge/drivers/claude-sdk.js +231 -24
- package/dist/bridge/drivers/claude-sdk.js.map +1 -1
- package/dist/bridge/drivers/codex.js +1 -1
- package/dist/bridge/drivers/continue.js +2 -2
- package/dist/bridge/drivers/echo.js +1 -1
- package/dist/bridge/drivers/gemini.js +3 -3
- package/dist/bridge/drivers/goose.js +2 -2
- package/dist/bridge/drivers/omp.js +1 -1
- package/dist/bridge/drivers/opencode.js +2 -2
- package/dist/bridge/drivers/qwen.js +3 -3
- package/dist/bridge/index.js +2 -2
- package/dist/bridge/src/drivers/claude-sdk.d.ts +96 -1
- package/dist/bridge/src/drivers/claude-sdk.d.ts.map +1 -1
- package/dist/bridge/src/types.d.ts +103 -0
- package/dist/bridge/src/types.d.ts.map +1 -1
- package/dist/{chunk-IKNQW3AW.js → chunk-2GREL3OD.js} +3 -3
- package/dist/{chunk-IKNQW3AW.js.map → chunk-2GREL3OD.js.map} +1 -1
- package/dist/{chunk-Z7ILXHIT.js → chunk-2JW5SWIU.js} +6 -6
- package/dist/{chunk-Z7ILXHIT.js.map → chunk-2JW5SWIU.js.map} +1 -1
- package/dist/{chunk-J4I2YPGE.js → chunk-4WTC6BSV.js} +3 -3
- package/dist/{chunk-J4I2YPGE.js.map → chunk-4WTC6BSV.js.map} +1 -1
- package/dist/{chunk-JTBF4OB2.js → chunk-6GDVGAIZ.js} +587 -114
- package/dist/chunk-6GDVGAIZ.js.map +1 -0
- package/dist/{chunk-SID35UAK.js → chunk-7SHXLJQP.js} +3 -3
- package/dist/{chunk-SID35UAK.js.map → chunk-7SHXLJQP.js.map} +1 -1
- package/dist/{chunk-JF73DP5W.js → chunk-B7TA2XI7.js} +2 -2
- package/dist/{chunk-JF73DP5W.js.map → chunk-B7TA2XI7.js.map} +1 -1
- package/dist/{chunk-32TJ55W5.js → chunk-BGAAZMBK.js} +2 -2
- package/dist/chunk-BGAAZMBK.js.map +1 -0
- package/dist/{chunk-XCG63ZNJ.js → chunk-DGDELPOD.js} +3 -3
- package/dist/{chunk-XCG63ZNJ.js.map → chunk-DGDELPOD.js.map} +1 -1
- package/dist/{chunk-26L2B6P6.js → chunk-FUCYTGAE.js} +4 -4
- package/dist/chunk-FUCYTGAE.js.map +1 -0
- package/dist/{chunk-F7S6NDIW.js → chunk-IH2KJYAU.js} +142 -13
- package/dist/chunk-IH2KJYAU.js.map +1 -0
- package/dist/{chunk-VXITGB7G.js → chunk-KNPBMR2P.js} +3 -3
- package/dist/{chunk-VXITGB7G.js.map → chunk-KNPBMR2P.js.map} +1 -1
- package/dist/{chunk-BCXI27BH.js → chunk-NVYEK4FI.js} +3 -3
- package/dist/{chunk-BCXI27BH.js.map → chunk-NVYEK4FI.js.map} +1 -1
- package/dist/{chunk-D4VHBAJC.js → chunk-O3LEV6KB.js} +4 -4
- package/dist/{chunk-D4VHBAJC.js.map → chunk-O3LEV6KB.js.map} +1 -1
- package/dist/{chunk-2GA2UGQI.js → chunk-OZZCPTOG.js} +6 -6
- package/dist/{chunk-2GA2UGQI.js.map → chunk-OZZCPTOG.js.map} +1 -1
- package/dist/{chunk-NXHRSUKL.js → chunk-PRUCNSBI.js} +4 -4
- package/dist/{chunk-NXHRSUKL.js.map → chunk-PRUCNSBI.js.map} +1 -1
- package/dist/{chunk-J7SEUNPD.js → chunk-QVQH6GV2.js} +2 -2
- package/dist/{chunk-J7SEUNPD.js.map → chunk-QVQH6GV2.js.map} +1 -1
- package/dist/{chunk-I5TSXDTD.js → chunk-RVXBOKHK.js} +3 -3
- package/dist/{chunk-I5TSXDTD.js.map → chunk-RVXBOKHK.js.map} +1 -1
- package/dist/cli/index.js +30 -30
- package/dist/connectors/index.js +3 -3
- package/dist/connectors/src/connector-manager.d.ts +34 -2
- package/dist/connectors/src/connector-manager.d.ts.map +1 -1
- package/dist/connectors/src/connector-prompt.d.ts.map +1 -1
- package/dist/connectors/src/connector-types.d.ts +25 -0
- package/dist/connectors/src/connector-types.d.ts.map +1 -1
- package/dist/connectors/src/credential-helper-script.d.ts +48 -0
- package/dist/connectors/src/credential-helper-script.d.ts.map +1 -1
- package/dist/connectors/src/index.d.ts +3 -3
- package/dist/connectors/src/index.d.ts.map +1 -1
- package/dist/connectors/src/managed-gitconfig.d.ts +80 -0
- package/dist/connectors/src/managed-gitconfig.d.ts.map +1 -1
- package/dist/{connectors-DY7UBBV5.js → connectors-2OHRZDJZ.js} +3 -3
- package/dist/{connectors-DY7UBBV5.js.map → connectors-2OHRZDJZ.js.map} +1 -1
- package/dist/{ensure-sources-QRURV6JB.js → ensure-sources-42LTJ5QI.js} +4 -4
- package/dist/{ensure-sources-QRURV6JB.js.map → ensure-sources-42LTJ5QI.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +3 -3
- package/dist/factory-assets/connectors/deploy.js +3 -3
- package/dist/factory-assets/connectors/devserver.js +3 -3
- package/dist/factory-assets/connectors/flow/adapter.js +3 -3
- package/dist/factory-assets/connectors/flow/run-flow.js +4 -4
- package/dist/factory-assets/connectors/flow.js +3 -3
- package/dist/factory-assets/connectors/git/driver.d.ts +64 -1
- package/dist/factory-assets/connectors/git/driver.d.ts.map +1 -1
- package/dist/factory-assets/connectors/git.js +3 -3
- package/dist/factory-assets/connectors/gmail.js +3 -3
- package/dist/factory-assets/connectors/googledrive.js +3 -3
- package/dist/factory-assets/connectors/local.js +3 -3
- package/dist/factory-assets/connectors/mattermost.js +3 -3
- package/dist/factory-assets/connectors/memory.js +3 -3
- package/dist/factory-assets/connectors/minio.js +3 -3
- package/dist/factory-assets/connectors/postgres.js +3 -3
- package/dist/factory-assets/connectors/s3.js +3 -3
- package/dist/factory-assets/connectors/sharepoint.js +3 -3
- package/dist/factory-assets/connectors/sqlite.js +3 -3
- package/dist/factory-assets/connectors/static-server.js +3 -3
- package/dist/factory-assets/connectors/tunnel.js +3 -3
- package/dist/factory-assets/connectors/webdav.js +3 -3
- package/dist/factory-assets/connectors/xstate-store.js +3 -3
- package/dist/factory-assets/connectors/xstate.js +3 -3
- package/dist/{helpers-TLTVVZRR.js → helpers-BP7FX6CO.js} +4 -4
- package/dist/{helpers-TLTVVZRR.js.map → helpers-BP7FX6CO.js.map} +1 -1
- package/dist/{library-publish-6HXFLOXC.js → library-publish-X5Z32WJY.js} +6 -6
- package/dist/{library-publish-6HXFLOXC.js.map → library-publish-X5Z32WJY.js.map} +1 -1
- package/dist/{open-library-FMVJICL5.js → open-library-PHUMBYHP.js} +5 -5
- package/dist/{open-library-FMVJICL5.js.map → open-library-PHUMBYHP.js.map} +1 -1
- package/dist/{project-BG3N4I3V.js → project-HAMCXPNE.js} +5 -5
- package/dist/{project-BG3N4I3V.js.map → project-HAMCXPNE.js.map} +1 -1
- package/dist/runner/index.js +7 -7
- package/dist/runner/src/ai-provider-switch.d.ts +95 -0
- package/dist/runner/src/ai-provider-switch.d.ts.map +1 -0
- package/dist/runner/src/credential-rotated.d.ts +23 -4
- package/dist/runner/src/credential-rotated.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/runner/src/session-builder.d.ts +19 -0
- package/dist/runner/src/session-builder.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +1 -1
- package/dist/sdk/bridge.js +2 -2
- package/dist/sdk/index.js +7 -7
- package/dist/sdk/runner.js +7 -7
- package/dist/sdk/session.js +2 -2
- package/dist/sdk/types.js +1 -1
- package/dist/session/index.js +2 -2
- package/dist/{setup-O2N6PA7I.js → setup-IOOGR3EL.js} +4 -4
- package/dist/{setup-O2N6PA7I.js.map → setup-IOOGR3EL.js.map} +1 -1
- package/dist/{source-JDIBJZ3X.js → source-772GLNM6.js} +6 -6
- package/dist/{source-JDIBJZ3X.js.map → source-772GLNM6.js.map} +1 -1
- package/dist/{source-manifest-publish-567T25M6.js → source-manifest-publish-LAUGDQ5G.js} +7 -7
- package/dist/{source-manifest-publish-567T25M6.js.map → source-manifest-publish-LAUGDQ5G.js.map} +1 -1
- package/dist/tui/index.js +7 -7
- package/dist/types/index.js +1 -1
- package/dist/types/src/events.d.ts +34 -1
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/lifecycle.d.ts +13 -0
- package/dist/types/src/lifecycle.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +22 -1
- package/dist/types/src/version.d.ts.map +1 -1
- package/dist/workspace-plugin/adapters/mcp.js +2 -2
- package/dist/workspace-plugin/adapters/mcp.js.map +1 -1
- package/dist/workspace-plugin/adapters/omp.js +8 -8
- package/dist/workspace-plugin/adapters/omp.js.map +1 -1
- package/dist/workspace-plugin/index.js +1 -1
- package/dist/workspace-plugin/src/adapters/mcp.d.ts.map +1 -1
- package/dist/workspace-plugin/src/adapters/omp.d.ts.map +1 -1
- package/dist/workspace-plugin/src/tools/connectors.d.ts +7 -3
- package/dist/workspace-plugin/src/tools/connectors.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-26L2B6P6.js.map +0 -1
- package/dist/chunk-32TJ55W5.js.map +0 -1
- package/dist/chunk-F7S6NDIW.js.map +0 -1
- package/dist/chunk-JTBF4OB2.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { logErr } from './chunk-
|
|
1
|
+
import { logErr } from './chunk-4WTC6BSV.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-RVXBOKHK.js.map
|
|
107
|
+
//# sourceMappingURL=chunk-RVXBOKHK.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,EAAm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A,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-I5TSXDTD.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,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IAAI,kBAAA;AAAA,QACjB,OAAA;AAAA,QACA,OAAA,CAAQ,EAAA;AAAA,QACR,OAAA,CAAQ,IAAA;AAAA,QACR,kBAAA;AAAmB,OACrB;AACA,MAAA,OAAO,EAAE,MAAA,EAAAA,OAAAA,EAAQ,OAAO,MAAM,OAAA,CAAQ,OAAM,EAAE;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-RVXBOKHK.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-OZZCPTOG.js';
|
|
3
|
+
import { makeSourceCommand, syncProjectSources } from '../chunk-2JW5SWIU.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-RVXBOKHK.js';
|
|
7
|
+
import { logErr, S, logOk, logInfo, kindColorPad, kindColor, colorRef, formatSoftDepSection, bareSoftDepName, logWarn, formatSoftDepHint, formatRelativeTime, formatSoftDepRemovePreview, formatSoftDepAddPreview, fitWidth } from '../chunk-4WTC6BSV.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-IH2KJYAU.js';
|
|
10
|
+
import { buildClaudePluginFiles } from '../chunk-QVQH6GV2.js';
|
|
11
11
|
import '../chunk-X5YPJV4N.js';
|
|
12
12
|
import '../chunk-W3UDISS2.js';
|
|
13
13
|
import '../chunk-O7SG5PC2.js';
|
|
@@ -15,19 +15,19 @@ 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-2GREL3OD.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-6GDVGAIZ.js';
|
|
24
24
|
import '../chunk-3UU3D2Q3.js';
|
|
25
|
-
import '../chunk-
|
|
25
|
+
import '../chunk-KNPBMR2P.js';
|
|
26
26
|
import '../chunk-RUFTB7QN.js';
|
|
27
27
|
import '../chunk-RRVQAE5D.js';
|
|
28
28
|
import '../chunk-V34ZEXSE.js';
|
|
29
29
|
import '../chunk-GAH4YRCI.js';
|
|
30
|
-
import '../chunk-
|
|
30
|
+
import '../chunk-BGAAZMBK.js';
|
|
31
31
|
import '../chunk-6E6PKKAD.js';
|
|
32
32
|
import '../chunk-IFGTRL2I.js';
|
|
33
33
|
import { projectAiAssetsRoots, loadFlow, loadAllFlowEntries, findFlowFileInRoots } from '../chunk-OYZIURPH.js';
|
|
@@ -35,8 +35,8 @@ import '../chunk-AXEOG4B5.js';
|
|
|
35
35
|
import '../chunk-HY6CIKFH.js';
|
|
36
36
|
import '../chunk-HGFKNJA5.js';
|
|
37
37
|
import { nodeLabel, nodeSkillAsset, nodeIsInert, nodeIsOptional, nodeRunKind, flowSkillVersionPins } from '../chunk-ELPR5XBG.js';
|
|
38
|
-
import '../chunk-
|
|
39
|
-
import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError, parseRefTolerant, normalizeRepoUrl, FACTORY_SOURCE_URL } from '../chunk-
|
|
38
|
+
import '../chunk-O3LEV6KB.js';
|
|
39
|
+
import { AssetManager, NON_DEPLOYABLE_KINDS, MissingManifestError, parseRefTolerant, normalizeRepoUrl, FACTORY_SOURCE_URL } from '../chunk-B7TA2XI7.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-PHUMBYHP.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-772GLNM6.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-PHUMBYHP.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-PHUMBYHP.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-PHUMBYHP.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-PHUMBYHP.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-X5Z32WJY.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-X5Z32WJY.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-X5Z32WJY.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-7HM3HONM.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-PHUMBYHP.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-BP7FX6CO.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-BP7FX6CO.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-PHUMBYHP.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-PHUMBYHP.js');
|
|
7717
|
+
const { supportsInstallManifest } = await import('../project-HAMCXPNE.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-42LTJ5QI.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) {
|
|
@@ -8840,7 +8840,7 @@ function printInitSummary(resolved, projectDir, created) {
|
|
|
8840
8840
|
console.log();
|
|
8841
8841
|
}
|
|
8842
8842
|
program.command("setup").description("Interactive provider setup wizard").action(async () => {
|
|
8843
|
-
const { cmdSetup } = await import('../setup-
|
|
8843
|
+
const { cmdSetup } = await import('../setup-IOOGR3EL.js');
|
|
8844
8844
|
await cmdSetup([], { projectDir: process.cwd() });
|
|
8845
8845
|
});
|
|
8846
8846
|
program.addCommand(makeInstallCommand());
|
package/dist/connectors/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { AbstractConnector, BUILTIN_CONNECTOR_CATALOG, ConnectorFieldMissingError, ConnectorManager, ConnectorStartupError, FlowAdapter, LogBuffer, ManagedGitconfigCollisionError, PortPool, atomicReplaceCredential, buildConnectorPromptSection, buildSdkConnectorTools, buildSdkFlowTools, createFsWatcher, createWorktree, defaultSpawn, ensureDirMode, ensureFleetMounted, findGitRoot, findMissingPackages, getConnector, installNpmPackages, isFleetManaged, isPackageResolvable, listConnectors, listWorktrees, registerBuiltinConnectors, removeMountBlock, renderCredentialHelperScript, tryGetConnector, worktreeRegistry, writeHelperScript, writeMountBlock } 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-6GDVGAIZ.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
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-KNPBMR2P.js';
|
|
4
4
|
import '../chunk-RUFTB7QN.js';
|
|
5
5
|
import '../chunk-RRVQAE5D.js';
|
|
6
6
|
import '../chunk-V34ZEXSE.js';
|
|
7
7
|
import '../chunk-GAH4YRCI.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-BGAAZMBK.js';
|
|
9
9
|
import '../chunk-6E6PKKAD.js';
|
|
10
10
|
import '../chunk-IFGTRL2I.js';
|
|
11
11
|
import '../chunk-OYZIURPH.js';
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import type { CatalogEntry } from "@skaile/workspaces/core";
|
|
10
10
|
import type { TelemetryProvider, Trace } from "@skaile/workspaces/telemetry";
|
|
11
11
|
import type { ConnectorStatusEvent } from "@skaile/workspaces/types";
|
|
12
|
-
import type { Connector, ConnectorChangeEvent, ConnectorDeclaration, ConnectorHandle, ConnectorStartupReport, RuntimeSkillDescriptor, TokenMediator } from "./connector-types.js";
|
|
12
|
+
import type { Connector, ConnectorChangeEvent, ConnectorDeclaration, ConnectorHandle, ConnectorStartupReport, FailedConnectorInfo, RuntimeSkillDescriptor, TokenMediator } from "./connector-types.js";
|
|
13
13
|
import type { FleetHealthVerdict } from "./fleet-utils.js";
|
|
14
14
|
import type { PreMintedSecretProvider, SecretProvider, SecretProviderChain } from "./secrets.js";
|
|
15
15
|
import type { ConnectorContent, ConnectorEntry, ListOptions, OperationDescriptor, SearchOptions, SearchResult, SyncOptions, SyncResult, WatchHandle, WatchOptions } from "./shared-types.js";
|
|
@@ -92,6 +92,13 @@ export interface ConnectorManagerOptions {
|
|
|
92
92
|
export declare class ConnectorManager {
|
|
93
93
|
private readonly opts;
|
|
94
94
|
private active;
|
|
95
|
+
/**
|
|
96
|
+
* Connectors whose `connect()` threw, keyed by id. A failed connector never
|
|
97
|
+
* enters `active`, so without this map its failure would exist only in the
|
|
98
|
+
* log store — invisible to the agent that is about to write into a mount
|
|
99
|
+
* that will never sync. See {@link listFailedConnectors}.
|
|
100
|
+
*/
|
|
101
|
+
private readonly failedConnectors;
|
|
95
102
|
private readonly mountTargets;
|
|
96
103
|
readonly workspaceDir: string;
|
|
97
104
|
private readonly chain?;
|
|
@@ -138,6 +145,11 @@ export declare class ConnectorManager {
|
|
|
138
145
|
*/
|
|
139
146
|
private resolveMountTarget;
|
|
140
147
|
private reserveMountTarget;
|
|
148
|
+
/**
|
|
149
|
+
* Remember a connect failure so the agent can be told about it. Called from
|
|
150
|
+
* both the bulk (`attemptConnect`) and hot-plug (`connect`) failure paths.
|
|
151
|
+
*/
|
|
152
|
+
private recordFailure;
|
|
141
153
|
/** Release every mount target owned by `id` (on disconnect). */
|
|
142
154
|
private releaseMountTarget;
|
|
143
155
|
/**
|
|
@@ -201,7 +213,13 @@ export declare class ConnectorManager {
|
|
|
201
213
|
/**
|
|
202
214
|
* Disconnect a single connector by ID and stop its watcher.
|
|
203
215
|
*
|
|
204
|
-
*
|
|
216
|
+
* A connector that only ever *failed* to connect is not in `active`, so
|
|
217
|
+
* `get(id)` would throw for it. Removing such a declaration is still a
|
|
218
|
+
* legitimate host action — and it is the only way to retract its
|
|
219
|
+
* `## Mount failures` row — so that case is handled as a plain forget rather
|
|
220
|
+
* than an error.
|
|
221
|
+
*
|
|
222
|
+
* @throws {Error} if the connector is neither connected nor recorded as failed
|
|
205
223
|
*/
|
|
206
224
|
disconnect(id: string): Promise<void>;
|
|
207
225
|
/**
|
|
@@ -232,6 +250,20 @@ export declare class ConnectorManager {
|
|
|
232
250
|
mountPath?: string;
|
|
233
251
|
status: ConnectorHandle["status"];
|
|
234
252
|
}>;
|
|
253
|
+
/**
|
|
254
|
+
* Return every connector whose `connect()` threw and that has not since
|
|
255
|
+
* connected.
|
|
256
|
+
*
|
|
257
|
+
* A failed connector is deliberately **absent** from `listConnectors()` and
|
|
258
|
+
* `get()` — it never entered the active map, and those surfaces describe what
|
|
259
|
+
* the agent can actually use. That is exactly why this second list exists:
|
|
260
|
+
* without it a failed mount is invisible to the prompt builder, and the agent
|
|
261
|
+
* keeps treating a dead directory as a live, synced workspace.
|
|
262
|
+
*
|
|
263
|
+
* Entries are cleared by a later successful connect of the same id, by
|
|
264
|
+
* `disconnect(id)`, and wholesale by `disconnectAll()`.
|
|
265
|
+
*/
|
|
266
|
+
listFailedConnectors(): FailedConnectorInfo[];
|
|
235
267
|
/**
|
|
236
268
|
* Lists git-backed connectors, surfacing the fields prompt-builders and the
|
|
237
269
|
* runner's wake-mid-401 refresh handler need.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-manager.d.ts","sourceRoot":"","sources":["../../../connectors/src/connector-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,KAAK,EAAE,oBAAoB,EAAU,MAAM,0BAA0B,CAAC;AAG7E,OAAO,KAAK,EAEV,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EAEpB,eAAe,EACf,sBA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0D;IAC1D,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd,kFAAkF;IAClF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,kFAAkF;IAClF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,kFAAkF;IAClF,uBAAuB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CAChE;AAID;;;;;;;;;GASG;AACH,qBAAa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"connector-manager.d.ts","sourceRoot":"","sources":["../../../connectors/src/connector-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,KAAK,EAAE,oBAAoB,EAAU,MAAM,0BAA0B,CAAC;AAG7E,OAAO,KAAK,EAEV,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EAEpB,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,EAEd,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,uBAAuB,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACjG,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACb,MAAM,mBAAmB,CAAC;AAI3B;;GAEG;AACH,UAAU,eAAe;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,eAAe,CAAC;IACxB,WAAW,EAAE,oBAAoB,CAAC;IAClC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,UAAU,eA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B,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"connector-prompt.d.ts","sourceRoot":"","sources":["../../../connectors/src/connector-prompt.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAQH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAuB/D;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,gGAAgG;IAChG,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,2EAA2E;IAC3E,CAAC,CAAC,EAAE,GAAG,CAAC;IACR,oGAAoG;IACpG,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,8FAA8F;IAC9F,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAID;;;;;;;;;;GAUG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,gBAAgB,EACzB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA2NxB;AAyBD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,gBAAgB,EACzB,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAsCxB;AAgCD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,gBAAgB,EACzB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,MAAM,CAkDR"}
|
|
@@ -345,6 +345,31 @@ export interface ConnectorStartupReport {
|
|
|
345
345
|
access?: "read-only" | "read-write";
|
|
346
346
|
}>;
|
|
347
347
|
}
|
|
348
|
+
/**
|
|
349
|
+
* A connector that failed to connect, as returned by
|
|
350
|
+
* `ConnectorManager.listFailedConnectors()`.
|
|
351
|
+
*
|
|
352
|
+
* A failed connector never enters the manager's active map, so it is absent
|
|
353
|
+
* from `listConnectors()` and `get()` by design — those describe what the agent
|
|
354
|
+
* can actually use. This record is the second list that keeps the failure
|
|
355
|
+
* itself visible.
|
|
356
|
+
*
|
|
357
|
+
* @docLink packages/connectors/concepts#connector-manager
|
|
358
|
+
*/
|
|
359
|
+
export interface FailedConnectorInfo {
|
|
360
|
+
id: string;
|
|
361
|
+
driver: string;
|
|
362
|
+
access: "read-only" | "read-write";
|
|
363
|
+
label?: string;
|
|
364
|
+
/** `mount.source` when declared. */
|
|
365
|
+
source?: string;
|
|
366
|
+
/** Resolved absolute mount target, when the declaration has a mount. */
|
|
367
|
+
mountPath?: string;
|
|
368
|
+
/** True when the failure is fail-fast material: read-write AND mount-bearing. */
|
|
369
|
+
required: boolean;
|
|
370
|
+
/** The connect error message. */
|
|
371
|
+
error: string;
|
|
372
|
+
}
|
|
348
373
|
/**
|
|
349
374
|
* Thrown by `connectAll` when a read-write mountable connector fails and
|
|
350
375
|
* `failOnReadWriteError` was set.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-types.d.ts","sourceRoot":"","sources":["../../../connectors/src/connector-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACb,MAAM,mBAAmB,CAAC;AAE3B,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAInD;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,CAAC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Ae,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;gBAErE,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,sBAAsB,EAC9B,eAAe,EAAE,aAAa,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAOhE"}
|
|
@@ -20,6 +20,25 @@
|
|
|
20
20
|
* expects (`username=<value>\npassword=<value>\n`). Filters lines by the
|
|
21
21
|
* mount's url-prefix tag so multi-mount workspaces stay isolated.
|
|
22
22
|
*
|
|
23
|
+
* Two properties beyond the original Step 9a design:
|
|
24
|
+
*
|
|
25
|
+
* - **The dance is bounded.** A refresh that keeps failing would otherwise
|
|
26
|
+
* make every single git network op pay a fresh `waitTimeoutMs` stall
|
|
27
|
+
* forever. The script stamps `refreshAttemptPath` after a dance that
|
|
28
|
+
* changed nothing and refuses to dance again within `refreshCooldownSec`.
|
|
29
|
+
* - **No credential is reported, not hidden.** Exiting 0 with no output makes
|
|
30
|
+
* git ask the next helper and then the terminal, so the operator sees
|
|
31
|
+
* `fatal: could not read Username for 'https://github.com'` — an error that
|
|
32
|
+
* names neither the mount nor the real cause. The script instead writes an
|
|
33
|
+
* attributable `skaile:` line to stderr and emits `quit=1`, which is the
|
|
34
|
+
* one mechanism that actually stops git's helper chain (a non-zero exit
|
|
35
|
+
* does not: git falls through to the username prompt anyway).
|
|
36
|
+
*
|
|
37
|
+
* When `unavailableReason` is set the mount is known not to be connected, and
|
|
38
|
+
* the script skips the refresh dance entirely: the runner's refresh dispatcher
|
|
39
|
+
* only iterates *connected* git connectors, so nothing on the runner side could
|
|
40
|
+
* service the request — firing one would be a guaranteed-useless stall.
|
|
41
|
+
*
|
|
23
42
|
* **Cross-platform**: targets POSIX `sh` (Linux + macOS). Avoids bashisms so
|
|
24
43
|
* `dash`, `ash`, and `busybox sh` all work. The two GNU/BSD divergence points
|
|
25
44
|
* are handled inline:
|
|
@@ -67,6 +86,35 @@ export interface RenderHelperOpts {
|
|
|
67
86
|
* trip; short enough that a stuck backend doesn't block git for minutes).
|
|
68
87
|
*/
|
|
69
88
|
waitTimeoutMs?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Set when the mount is known **not** to be connected — the connector failed
|
|
91
|
+
* at connect time, so no credential will ever appear. The script then skips
|
|
92
|
+
* the refresh dance and immediately tells git to stop, quoting this reason.
|
|
93
|
+
*
|
|
94
|
+
* The refresh dispatcher only iterates connected git connectors, so a failed
|
|
95
|
+
* connector has nothing on the runner side that could service a refresh
|
|
96
|
+
* request; firing one would stall for `waitTimeoutMs` and change nothing.
|
|
97
|
+
*/
|
|
98
|
+
unavailableReason?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Minimum gap, in seconds, between two refresh dances for this mount.
|
|
101
|
+
* Default: 30. Bounds the cost of a refresh that legitimately keeps failing.
|
|
102
|
+
*
|
|
103
|
+
* A throttled invocation skips only the *wait*, never the read: the
|
|
104
|
+
* credential lookup below runs unconditionally, so a token that landed before
|
|
105
|
+
* the invocation is still served. The window it gives up is narrow — a
|
|
106
|
+
* mediator round-trip that finishes after `waitTimeoutMs` but before the
|
|
107
|
+
* cooldown expires — and the trade is deliberate: a bounded failure carrying
|
|
108
|
+
* an accurate reason beats an unbounded stall on every git operation.
|
|
109
|
+
*/
|
|
110
|
+
refreshCooldownSec?: number;
|
|
111
|
+
/**
|
|
112
|
+
* Absolute path to the per-mount stamp file the script writes itself after a
|
|
113
|
+
* dance that produced nothing. Defaults to a sibling of the credentials file
|
|
114
|
+
* derived from the tag; callers should pass it explicitly so the name is
|
|
115
|
+
* predictable. Only this script reads or writes it — the runner never does.
|
|
116
|
+
*/
|
|
117
|
+
refreshAttemptPath?: string;
|
|
70
118
|
}
|
|
71
119
|
/**
|
|
72
120
|
* Render the credential-helper script body. The returned string should be
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-helper-script.d.ts","sourceRoot":"","sources":["../../../connectors/src/credential-helper-script.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"credential-helper-script.d.ts","sourceRoot":"","sources":["../../../connectors/src/credential-helper-script.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AAqCH,mEAAmE;AACnE,MAAM,WAAW,gBAAgB;IAC/B,uDAAuD;IACvD,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;OAQG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,gBAAgB,GAAG,MAAM,CAuK3E"}
|
|
@@ -22,7 +22,7 @@ export { ConnectorManager } from "./connector-manager.js";
|
|
|
22
22
|
export type { ConnectorPromptOptions, ConnectorToolOptions } from "./connector-prompt.js";
|
|
23
23
|
export { buildConnectorPromptSection, buildSdkConnectorTools, buildSdkFlowTools, } from "./connector-prompt.js";
|
|
24
24
|
export { BUILTIN_CONNECTOR_CATALOG, getConnector, listConnectors, registerBuiltinConnectors, tryGetConnector, } from "./connector-registry.js";
|
|
25
|
-
export type { AuthoritativeSizeProvider, ConnectContext, Connector, ConnectorChangeEvent, ConnectorDeclaration, ConnectorFactory, ConnectorFieldSpec, ConnectorHandle, ConnectorInfo, ConnectorReport, ConnectorStartupReport, FieldType, FilesystemFace, OperationDescriptor, RuntimeSkillDescriptor, TokenMediator, TokenMediatorResult, ToolFace, } from "./connector-types.js";
|
|
25
|
+
export type { AuthoritativeSizeProvider, ConnectContext, Connector, ConnectorChangeEvent, ConnectorDeclaration, ConnectorFactory, ConnectorFieldSpec, ConnectorHandle, ConnectorInfo, ConnectorReport, ConnectorStartupReport, FailedConnectorInfo, FieldType, FilesystemFace, OperationDescriptor, RuntimeSkillDescriptor, TokenMediator, TokenMediatorResult, ToolFace, } from "./connector-types.js";
|
|
26
26
|
export { ConnectorFieldMissingError, ConnectorStartupError } from "./connector-types.js";
|
|
27
27
|
export type { RenderHelperOpts } from "./credential-helper-script.js";
|
|
28
28
|
export { renderCredentialHelperScript } from "./credential-helper-script.js";
|
|
@@ -30,8 +30,8 @@ export type { FleetHealthVerdict } from "./fleet-utils.js";
|
|
|
30
30
|
export { ensureFleetMounted, isFleetManaged } from "./fleet-utils.js";
|
|
31
31
|
export { ensureDirMode } from "./fs-utils.js";
|
|
32
32
|
export { LogBuffer } from "./log-buffer.js";
|
|
33
|
-
export type { AtomicReplaceCredentialOptions, RemoveMountBlockOptions, WriteMountBlockOptions, } from "./managed-gitconfig.js";
|
|
34
|
-
export { atomicReplaceCredential, ManagedGitconfigCollisionError, removeMountBlock, writeHelperScript, writeMountBlock, } from "./managed-gitconfig.js";
|
|
33
|
+
export type { AtomicReplaceCredentialOptions, RemoveMountBlockOptions, RemoveUnavailableMountBlockOptions, WriteMountBlockOptions, WriteUnavailableMountBlockOptions, } from "./managed-gitconfig.js";
|
|
34
|
+
export { atomicReplaceCredential, ensureRefreshAttemptStamp, ManagedGitconfigCollisionError, removeMountBlock, removeUnavailableMountBlock, writeHelperScript, writeMountBlock, writeUnavailableMountBlock, } from "./managed-gitconfig.js";
|
|
35
35
|
export type { InstallOptions, InstallResult, SpawnFn, SpawnResult } from "./npm-installer.js";
|
|
36
36
|
export { defaultSpawn, findMissingPackages, installNpmPackages, isPackageResolvable, } from "./npm-installer.js";
|
|
37
37
|
export { PortPool } from "./port-pool.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../connectors/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAQH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,YAAY,EACV,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EACL,4BAA4B,EAC5B,8BAA8B,EAC9B,sBAAsB,EACtB,yBAAyB,EACzB,cAAc,EACd,qBAAqB,EACrB,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC1F,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EACtB,iBAAiB,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,yBAAyB,EACzB,YAAY,EACZ,cAAc,EACd,yBAAyB,EACzB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EACV,yBAAyB,EACzB,cAAc,EACd,SAAS,EACT,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,0BAA0B,EAAE,qBAAqB,EAAE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