@skaile/workspaces 6.5.0 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/ai-sdk.js +9 -9
- package/dist/{asset-feeds-4I6Z4OI3.js → asset-feeds-WQ6YQPHV.js} +20 -20
- package/dist/{asset-feeds-4I6Z4OI3.js.map → asset-feeds-WQ6YQPHV.js.map} +1 -1
- package/dist/asset-manager/catalog-deployer.js +7 -7
- package/dist/asset-manager/index.js +12 -12
- package/dist/asset-manager/installer.js +8 -8
- package/dist/asset-manager/renderers.js +7 -7
- package/dist/bridge/harnesses/claude-sdk.js +10 -10
- package/dist/bridge/harnesses/codex.js +11 -11
- package/dist/bridge/harnesses/continue.js +10 -10
- package/dist/bridge/harnesses/echo.js +3 -3
- package/dist/bridge/harnesses/gemini.js +7 -7
- package/dist/bridge/harnesses/goose.js +10 -10
- package/dist/bridge/harnesses/omp.js +5 -5
- package/dist/bridge/harnesses/opencode.js +10 -10
- package/dist/bridge/harnesses/qwen.js +7 -7
- package/dist/bridge/index.js +15 -15
- package/dist/{chunk-J5JWLKLB.js → chunk-2TLPC6TQ.js} +11 -11
- package/dist/{chunk-J5JWLKLB.js.map → chunk-2TLPC6TQ.js.map} +1 -1
- package/dist/{chunk-2IAWVUW3.js → chunk-4BFEPZ6J.js} +4 -4
- package/dist/{chunk-2IAWVUW3.js.map → chunk-4BFEPZ6J.js.map} +1 -1
- package/dist/{chunk-KUADKMNX.js → chunk-4J7JQX4G.js} +4 -4
- package/dist/{chunk-KUADKMNX.js.map → chunk-4J7JQX4G.js.map} +1 -1
- package/dist/{chunk-USVUS4DJ.js → chunk-5ETYBC2X.js} +7 -7
- package/dist/{chunk-USVUS4DJ.js.map → chunk-5ETYBC2X.js.map} +1 -1
- package/dist/{chunk-X44XKBZX.js → chunk-5XHQBCB5.js} +3 -3
- package/dist/{chunk-X44XKBZX.js.map → chunk-5XHQBCB5.js.map} +1 -1
- package/dist/{chunk-OLHHN3NO.js → chunk-65UAC3ZR.js} +3 -3
- package/dist/{chunk-OLHHN3NO.js.map → chunk-65UAC3ZR.js.map} +1 -1
- package/dist/{chunk-7H4GTP7V.js → chunk-6A6HE5LW.js} +3 -3
- package/dist/{chunk-7H4GTP7V.js.map → chunk-6A6HE5LW.js.map} +1 -1
- package/dist/{chunk-UMLCKKIA.js → chunk-6ARPZHOV.js} +6 -6
- package/dist/{chunk-UMLCKKIA.js.map → chunk-6ARPZHOV.js.map} +1 -1
- package/dist/{chunk-K4DHYTUM.js → chunk-6RHWTZPT.js} +3 -3
- package/dist/{chunk-K4DHYTUM.js.map → chunk-6RHWTZPT.js.map} +1 -1
- package/dist/{chunk-IWKKTCXY.js → chunk-6SXSVKQY.js} +7 -5
- package/dist/chunk-6SXSVKQY.js.map +1 -0
- package/dist/{chunk-OBZ5WQ32.js → chunk-7I5PNB2G.js} +3 -3
- package/dist/{chunk-OBZ5WQ32.js.map → chunk-7I5PNB2G.js.map} +1 -1
- package/dist/{chunk-SRTWKZP2.js → chunk-7PVGND4J.js} +8 -8
- package/dist/{chunk-SRTWKZP2.js.map → chunk-7PVGND4J.js.map} +1 -1
- package/dist/{chunk-TROEC2Z2.js → chunk-7SJHSGUV.js} +16 -16
- package/dist/{chunk-TROEC2Z2.js.map → chunk-7SJHSGUV.js.map} +1 -1
- package/dist/{chunk-TNQLDEM6.js → chunk-AQNW2FET.js} +230 -35
- package/dist/chunk-AQNW2FET.js.map +1 -0
- package/dist/{chunk-6EKQENAP.js → chunk-B6N653ZG.js} +6 -6
- package/dist/{chunk-6EKQENAP.js.map → chunk-B6N653ZG.js.map} +1 -1
- package/dist/{chunk-NSIOBKDX.js → chunk-BSMW3PX2.js} +2 -2
- package/dist/{chunk-NSIOBKDX.js.map → chunk-BSMW3PX2.js.map} +1 -1
- package/dist/{chunk-HTGTNN2B.js → chunk-CMXDFTA2.js} +3 -3
- package/dist/{chunk-HTGTNN2B.js.map → chunk-CMXDFTA2.js.map} +1 -1
- package/dist/{chunk-2HS357RA.js → chunk-DI6J2PJB.js} +7 -7
- package/dist/{chunk-2HS357RA.js.map → chunk-DI6J2PJB.js.map} +1 -1
- package/dist/{chunk-T7HGEMNB.js → chunk-DS6UUCFG.js} +3 -3
- package/dist/{chunk-T7HGEMNB.js.map → chunk-DS6UUCFG.js.map} +1 -1
- package/dist/{chunk-23SG4JRV.js → chunk-E2EC6SAX.js} +3 -3
- package/dist/{chunk-23SG4JRV.js.map → chunk-E2EC6SAX.js.map} +1 -1
- package/dist/{chunk-ETF6Q3R3.js → chunk-EPXZQIC6.js} +3 -3
- package/dist/{chunk-ETF6Q3R3.js.map → chunk-EPXZQIC6.js.map} +1 -1
- package/dist/{chunk-SZTHSPRC.js → chunk-F4CZQD3T.js} +3 -3
- package/dist/{chunk-SZTHSPRC.js.map → chunk-F4CZQD3T.js.map} +1 -1
- package/dist/{chunk-AVFRFGM2.js → chunk-GNUA7XT2.js} +3 -2
- package/dist/chunk-GNUA7XT2.js.map +1 -0
- package/dist/{chunk-6Y3SC7O4.js → chunk-GTAHU4N4.js} +4 -4
- package/dist/{chunk-6Y3SC7O4.js.map → chunk-GTAHU4N4.js.map} +1 -1
- package/dist/{chunk-3KSLUVKB.js → chunk-GTGWRKMJ.js} +6 -6
- package/dist/{chunk-3KSLUVKB.js.map → chunk-GTGWRKMJ.js.map} +1 -1
- package/dist/{chunk-YRC2EFOU.js → chunk-HGZN6JLP.js} +4 -4
- package/dist/{chunk-YRC2EFOU.js.map → chunk-HGZN6JLP.js.map} +1 -1
- package/dist/{chunk-KYNCY3F3.js → chunk-HQAPUPBE.js} +3 -3
- package/dist/{chunk-KYNCY3F3.js.map → chunk-HQAPUPBE.js.map} +1 -1
- package/dist/{chunk-HPA3RP5E.js → chunk-I5IF3JCG.js} +3 -3
- package/dist/{chunk-HPA3RP5E.js.map → chunk-I5IF3JCG.js.map} +1 -1
- package/dist/{chunk-7EMS2GZO.js → chunk-J262X4JU.js} +12 -12
- package/dist/{chunk-7EMS2GZO.js.map → chunk-J262X4JU.js.map} +1 -1
- package/dist/{chunk-22ZX33H6.js → chunk-J4WKNJHO.js} +4 -4
- package/dist/{chunk-22ZX33H6.js.map → chunk-J4WKNJHO.js.map} +1 -1
- package/dist/{chunk-G4NCSYWR.js → chunk-JIQUF3X2.js} +4 -4
- package/dist/{chunk-G4NCSYWR.js.map → chunk-JIQUF3X2.js.map} +1 -1
- package/dist/{chunk-IS3NIZBX.js → chunk-JRVQV7WC.js} +11 -11
- package/dist/{chunk-IS3NIZBX.js.map → chunk-JRVQV7WC.js.map} +1 -1
- package/dist/{chunk-UZET67SO.js → chunk-LBJ4M5J2.js} +4 -4
- package/dist/{chunk-UZET67SO.js.map → chunk-LBJ4M5J2.js.map} +1 -1
- package/dist/{chunk-TGUMN5G7.js → chunk-MMOWIRHP.js} +8 -8
- package/dist/{chunk-TGUMN5G7.js.map → chunk-MMOWIRHP.js.map} +1 -1
- package/dist/{chunk-EO7KGX6P.js → chunk-MXI3XWV6.js} +4 -4
- package/dist/{chunk-EO7KGX6P.js.map → chunk-MXI3XWV6.js.map} +1 -1
- package/dist/{chunk-LE6QS4PG.js → chunk-N2PBAXAA.js} +3 -3
- package/dist/{chunk-LE6QS4PG.js.map → chunk-N2PBAXAA.js.map} +1 -1
- package/dist/{chunk-YBEJCQE5.js → chunk-O7QZI6MQ.js} +3 -3
- package/dist/{chunk-YBEJCQE5.js.map → chunk-O7QZI6MQ.js.map} +1 -1
- package/dist/{chunk-ZUU2PLA3.js → chunk-OY22B7E2.js} +3 -3
- package/dist/{chunk-ZUU2PLA3.js.map → chunk-OY22B7E2.js.map} +1 -1
- package/dist/{chunk-W5KCAWGN.js → chunk-PTJTOPE5.js} +3 -3
- package/dist/{chunk-W5KCAWGN.js.map → chunk-PTJTOPE5.js.map} +1 -1
- package/dist/{chunk-WFLQMAR5.js → chunk-RAU5QPI6.js} +5 -5
- package/dist/{chunk-WFLQMAR5.js.map → chunk-RAU5QPI6.js.map} +1 -1
- package/dist/{chunk-AFTZNR2W.js → chunk-RHCEX2EV.js} +3 -3
- package/dist/{chunk-AFTZNR2W.js.map → chunk-RHCEX2EV.js.map} +1 -1
- package/dist/{chunk-Z2X7UZEZ.js → chunk-SCRYXAHH.js} +6 -6
- package/dist/{chunk-Z2X7UZEZ.js.map → chunk-SCRYXAHH.js.map} +1 -1
- package/dist/{chunk-DKXNKFKP.js → chunk-SGI5MRKP.js} +75 -3
- package/dist/chunk-SGI5MRKP.js.map +1 -0
- package/dist/{chunk-KA2GLAPS.js → chunk-SHTXMERQ.js} +7 -7
- package/dist/{chunk-KA2GLAPS.js.map → chunk-SHTXMERQ.js.map} +1 -1
- package/dist/{chunk-SN663FCA.js → chunk-SZKCE7EC.js} +5 -5
- package/dist/{chunk-SN663FCA.js.map → chunk-SZKCE7EC.js.map} +1 -1
- package/dist/{chunk-S7DVT2BV.js → chunk-TCH5UDKT.js} +4 -4
- package/dist/{chunk-S7DVT2BV.js.map → chunk-TCH5UDKT.js.map} +1 -1
- package/dist/{chunk-THX5EE3K.js → chunk-TUFNY6OD.js} +3 -3
- package/dist/{chunk-THX5EE3K.js.map → chunk-TUFNY6OD.js.map} +1 -1
- package/dist/{chunk-EN5REMWV.js → chunk-U3UDOX6I.js} +4 -4
- package/dist/{chunk-EN5REMWV.js.map → chunk-U3UDOX6I.js.map} +1 -1
- package/dist/{chunk-3DA74PLW.js → chunk-USSP43U3.js} +3 -3
- package/dist/{chunk-3DA74PLW.js.map → chunk-USSP43U3.js.map} +1 -1
- package/dist/{chunk-U6KRTCNA.js → chunk-VJRL6ZK6.js} +3 -3
- package/dist/{chunk-U6KRTCNA.js.map → chunk-VJRL6ZK6.js.map} +1 -1
- package/dist/{chunk-B4BLJUYN.js → chunk-VXYZ5M7Z.js} +24 -18
- package/dist/{chunk-B4BLJUYN.js.map → chunk-VXYZ5M7Z.js.map} +1 -1
- package/dist/{chunk-E6UWI3TP.js → chunk-WW5NAU6N.js} +3 -3
- package/dist/{chunk-E6UWI3TP.js.map → chunk-WW5NAU6N.js.map} +1 -1
- package/dist/{chunk-J6YPKMMY.js → chunk-XD3RYAMR.js} +6 -6
- package/dist/{chunk-J6YPKMMY.js.map → chunk-XD3RYAMR.js.map} +1 -1
- package/dist/{chunk-DNXPXJ3X.js → chunk-XYCYGN3Q.js} +14 -14
- package/dist/{chunk-DNXPXJ3X.js.map → chunk-XYCYGN3Q.js.map} +1 -1
- package/dist/{chunk-B436SG5P.js → chunk-YN6N3RBM.js} +7 -7
- package/dist/{chunk-B436SG5P.js.map → chunk-YN6N3RBM.js.map} +1 -1
- package/dist/{chunk-TDPQOR3C.js → chunk-Z4FERR4U.js} +2 -2
- package/dist/{chunk-TDPQOR3C.js.map → chunk-Z4FERR4U.js.map} +1 -1
- package/dist/{claude-code-JY6CYEG7.js → claude-code-LZH7Y4Y5.js} +5 -5
- package/dist/{claude-code-JY6CYEG7.js.map → claude-code-LZH7Y4Y5.js.map} +1 -1
- package/dist/cli/index.js +91 -91
- package/dist/connectors/config.js +4 -4
- package/dist/connectors/index.js +18 -18
- package/dist/connectors/src/connector-manager.d.ts.map +1 -1
- package/dist/connectors/src/mount-ledger.d.ts.map +1 -1
- package/dist/{connectors-VLFOQNS6.js → connectors-HU5MHSUJ.js} +21 -21
- package/dist/{connectors-VLFOQNS6.js.map → connectors-HU5MHSUJ.js.map} +1 -1
- package/dist/core/index.js +6 -6
- package/dist/core/logging.js +1 -1
- package/dist/core/manifest.js +1 -1
- package/dist/core/publish-manifest.js +2 -2
- package/dist/core/runtime-assets.js +4 -4
- package/dist/core/src/logging/index.d.ts +1 -0
- package/dist/core/src/logging/index.d.ts.map +1 -1
- package/dist/core/src/logging/log-safe-text.d.ts +20 -0
- package/dist/core/src/logging/log-safe-text.d.ts.map +1 -0
- package/dist/core/src/manifest.d.ts.map +1 -1
- package/dist/core/src/workspace-config.d.ts +6 -0
- package/dist/core/src/workspace-config.d.ts.map +1 -1
- package/dist/core/workspace-config.js +3 -3
- package/dist/deploy/index.js +6 -6
- package/dist/discovery/index.js +3 -3
- package/dist/{ensure-sources-6O54DUQB.js → ensure-sources-CAMWJTMR.js} +24 -24
- package/dist/{ensure-sources-6O54DUQB.js.map → ensure-sources-CAMWJTMR.js.map} +1 -1
- package/dist/factory-assets/connectors/box.js +18 -18
- package/dist/factory-assets/connectors/deploy.js +18 -18
- package/dist/factory-assets/connectors/devserver.js +18 -18
- package/dist/factory-assets/connectors/flow/adapter.js +18 -18
- package/dist/factory-assets/connectors/flow/engine.js +7 -7
- package/dist/factory-assets/connectors/flow/run-flow.js +20 -20
- package/dist/factory-assets/connectors/flow.js +18 -18
- package/dist/factory-assets/connectors/git.js +18 -18
- package/dist/factory-assets/connectors/gmail.js +18 -18
- package/dist/factory-assets/connectors/googledrive.js +18 -18
- package/dist/factory-assets/connectors/local.js +18 -18
- package/dist/factory-assets/connectors/mattermost.js +18 -18
- package/dist/factory-assets/connectors/memory.js +18 -18
- package/dist/factory-assets/connectors/minio.js +18 -18
- package/dist/factory-assets/connectors/postgres.js +18 -18
- package/dist/factory-assets/connectors/s3.js +18 -18
- package/dist/factory-assets/connectors/sharepoint.js +18 -18
- package/dist/factory-assets/connectors/sqlite.js +18 -18
- package/dist/factory-assets/connectors/static-server.js +18 -18
- package/dist/factory-assets/connectors/tunnel.js +18 -18
- package/dist/factory-assets/connectors/webdav.js +18 -18
- package/dist/factory-assets/connectors/xstate-store.js +18 -18
- package/dist/factory-assets/connectors/xstate.js +18 -18
- package/dist/{flows-CIUPK7SB.js → flows-GVOVQGQW.js} +11 -11
- package/dist/{flows-CIUPK7SB.js.map → flows-GVOVQGQW.js.map} +1 -1
- package/dist/{helpers-YHDQHQEQ.js → helpers-WMCCODAV.js} +24 -24
- package/dist/{helpers-YHDQHQEQ.js.map → helpers-WMCCODAV.js.map} +1 -1
- package/dist/library/index.js +9 -9
- package/dist/library/install.js +3 -3
- package/dist/{library-publish-MUGUST43.js → library-publish-UQQMHTND.js} +49 -49
- package/dist/{library-publish-MUGUST43.js.map → library-publish-UQQMHTND.js.map} +1 -1
- package/dist/model-endpoint/index.js +9 -9
- package/dist/{open-library-BVQCB37E.js → open-library-OJ4HT2X4.js} +27 -27
- package/dist/{open-library-BVQCB37E.js.map → open-library-OJ4HT2X4.js.map} +1 -1
- package/dist/{open-registry-JCSIAKEC.js → open-registry-LWGIOJDK.js} +13 -13
- package/dist/{open-registry-JCSIAKEC.js.map → open-registry-LWGIOJDK.js.map} +1 -1
- package/dist/{paths-XLKCAFRZ.js → paths-FR2752HV.js} +9 -9
- package/dist/{paths-XLKCAFRZ.js.map → paths-FR2752HV.js.map} +1 -1
- package/dist/{plugin-store-NGRUTCJI.js → plugin-store-IALJUBN2.js} +9 -9
- package/dist/{plugin-store-NGRUTCJI.js.map → plugin-store-IALJUBN2.js.map} +1 -1
- package/dist/{project-BGYMLAS6.js → project-UQFCYHYS.js} +45 -45
- package/dist/{project-BGYMLAS6.js.map → project-UQFCYHYS.js.map} +1 -1
- package/dist/resolver/index.js +7 -7
- package/dist/runner/index.js +34 -34
- package/dist/runner/src/external-mcp.d.ts +22 -0
- package/dist/runner/src/external-mcp.d.ts.map +1 -1
- package/dist/runner/src/mcp-tools-snapshot.d.ts +13 -0
- package/dist/runner/src/mcp-tools-snapshot.d.ts.map +1 -0
- package/dist/runner/src/resources.d.ts +14 -0
- package/dist/runner/src/resources.d.ts.map +1 -1
- package/dist/runner/src/serve.d.ts.map +1 -1
- package/dist/sdk/asset-manager.js +12 -12
- package/dist/sdk/bridge.js +15 -15
- package/dist/sdk/core.js +6 -6
- package/dist/sdk/flow.js +7 -7
- package/dist/sdk/index.js +34 -34
- package/dist/sdk/resolver.js +7 -7
- package/dist/sdk/runner.js +34 -34
- package/dist/sdk/transport/ws/server.js +7 -7
- package/dist/sdk/transport/ws.js +7 -7
- package/dist/sdk/transport.js +7 -7
- package/dist/{serve-preflight-GQY5DZX6.js → serve-preflight-TYEKHC32.js} +27 -27
- package/dist/{serve-preflight-GQY5DZX6.js.map → serve-preflight-TYEKHC32.js.map} +1 -1
- package/dist/{setup-2NWSKSCO.js → setup-4JV2IMCB.js} +25 -25
- package/dist/{setup-2NWSKSCO.js.map → setup-4JV2IMCB.js.map} +1 -1
- package/dist/{skills-PXZOL2FZ.js → skills-6QTKFMLW.js} +12 -12
- package/dist/{skills-PXZOL2FZ.js.map → skills-6QTKFMLW.js.map} +1 -1
- package/dist/{source-XA3L4H6I.js → source-XYMMJVKR.js} +44 -44
- package/dist/{source-XA3L4H6I.js.map → source-XYMMJVKR.js.map} +1 -1
- package/dist/{source-manifest-publish-QEGMTS33.js → source-manifest-publish-SZFGGKB4.js} +46 -46
- package/dist/{source-manifest-publish-QEGMTS33.js.map → source-manifest-publish-SZFGGKB4.js.map} +1 -1
- package/dist/transport/index.js +7 -7
- package/dist/transport/ws/server.js +7 -7
- package/dist/transport/ws.js +7 -7
- package/dist/tui/index.js +34 -34
- package/dist/workspace-plugin/adapters/mcp.js +25 -25
- package/dist/workspace-plugin/adapters/omp.js +14 -14
- package/dist/workspace-plugin/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-AVFRFGM2.js.map +0 -1
- package/dist/chunk-DKXNKFKP.js.map +0 -1
- package/dist/chunk-IWKKTCXY.js.map +0 -1
- package/dist/chunk-TNQLDEM6.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 6.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1121](https://github.com/skaile-ai/workspaces/pull/1121) [`6fba753`](https://github.com/skaile-ai/workspaces/commit/6fba75377830f1f8786e0be21034e11a0c58ef8c) Thanks [@peteralbert](https://github.com/peteralbert)! - A stdio MCP server can start on its first tool call instead of at session start. With `lazy: true` on the declaration (`MCP.md` frontmatter or an `mcp_servers:` entry), the runner registers the server's tools from a cached `tools/list` snapshot and spawns nothing until a tool is called; concurrent first calls share one start, and a failed start is returned as that call's error. The snapshot is written by the first eager start and keyed by the server's resolved command and args, so a new release reads none. It lives under `$SKAILE_MCP_TOOLS_CACHE_DIR` (default `<cache root>/mcp-tools`); a host should point it at storage that survives container replacement. Declarations without `lazy` start as before. New: `McpServerDeclaration.lazy`.
|
|
8
|
+
|
|
9
|
+
- [#1118](https://github.com/skaile-ai/workspaces/pull/1118) [`3d2818d`](https://github.com/skaile-ai/workspaces/commit/3d2818da25a56cbc49036a732e0af229eeed6edf) Thanks [@Frozen666](https://github.com/Frozen666)! - Connector failure logs no longer carry document paths or names. The runner's `connector failed` line, the connector manager's `connect failed`, `connectAll failed`, outside-project and disconnect warnings, the mount-ledger cleanup warning and `connector_mutate failed` now log the error text through the new `scrubLogText` (quoted spans, URL paths, slash paths and document file names become `<path#…>` tags or `<quoted>`). The text shown to the agent and the platform, and the thrown errors, keep their wording, except that the `mountPath … does not exist` and `… is a symlink to …` errors now put their paths in double quotes (so a log copy hides each path whole). New exports in `core/logging`: `pathFingerprint`, `pathTag` (the same tags as the platform) and `scrubLogText`.
|
|
10
|
+
|
|
3
11
|
## 6.5.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/ai-sdk.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { loadMergedProviderRegistry } from './chunk-
|
|
2
|
-
import { entryModelIds } from './chunk-
|
|
3
|
-
import { buildCredentialHeaders } from './chunk-
|
|
1
|
+
import { loadMergedProviderRegistry } from './chunk-MXI3XWV6.js';
|
|
2
|
+
import { entryModelIds } from './chunk-F4CZQD3T.js';
|
|
3
|
+
import { buildCredentialHeaders } from './chunk-BSMW3PX2.js';
|
|
4
4
|
import './chunk-G5SUWZEU.js';
|
|
5
|
-
import { installCommandFor } from './chunk-
|
|
5
|
+
import { installCommandFor } from './chunk-6ARPZHOV.js';
|
|
6
6
|
import './chunk-4GY63JU6.js';
|
|
7
|
-
import './chunk-
|
|
7
|
+
import './chunk-JIQUF3X2.js';
|
|
8
8
|
import './chunk-5KRMNUL4.js';
|
|
9
9
|
import './chunk-C5HFK34M.js';
|
|
10
10
|
import './chunk-MWXYN6NY.js';
|
|
11
|
-
import './chunk-
|
|
11
|
+
import './chunk-6SXSVKQY.js';
|
|
12
12
|
import './chunk-L5VSIPQD.js';
|
|
13
13
|
import './chunk-VTETQCR6.js';
|
|
14
|
-
import './chunk-
|
|
15
|
-
import './chunk-
|
|
14
|
+
import './chunk-E2EC6SAX.js';
|
|
15
|
+
import './chunk-GNUA7XT2.js';
|
|
16
16
|
import './chunk-RVRB27AN.js';
|
|
17
17
|
import './chunk-V5KG6CCV.js';
|
|
18
18
|
import { resolveCredential } from './chunk-VSX2G7LA.js';
|
|
19
19
|
import { parseModelRef, registryEntries, isEntryEnabled, normalizeEntryBaseUrl, resolveEntryBaseUrl, normalizeAnthropicBaseUrl } from './chunk-RXGPFAMN.js';
|
|
20
|
-
import './chunk-
|
|
20
|
+
import './chunk-SGI5MRKP.js';
|
|
21
21
|
import './chunk-C3CAXQMA.js';
|
|
22
22
|
import './chunk-BOFL7GIF.js';
|
|
23
23
|
import './chunk-NSBPE2FW.js';
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { storeNotInstallableReason } from './chunk-
|
|
2
|
-
import { getKnownKinds } from './chunk-
|
|
3
|
-
import './chunk-
|
|
1
|
+
import { storeNotInstallableReason } from './chunk-6RHWTZPT.js';
|
|
2
|
+
import { getKnownKinds } from './chunk-RAU5QPI6.js';
|
|
3
|
+
import './chunk-5XHQBCB5.js';
|
|
4
4
|
import './chunk-7RGTAEG6.js';
|
|
5
|
-
import './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import './chunk-
|
|
5
|
+
import './chunk-JRVQV7WC.js';
|
|
6
|
+
import './chunk-MMOWIRHP.js';
|
|
7
|
+
import './chunk-J4WKNJHO.js';
|
|
8
|
+
import './chunk-VJRL6ZK6.js';
|
|
9
9
|
import './chunk-F3D25RGM.js';
|
|
10
10
|
import './chunk-3TXEJN4W.js';
|
|
11
11
|
import './chunk-ISHJITXJ.js';
|
|
12
12
|
import './chunk-LNFKL23K.js';
|
|
13
13
|
import './chunk-JRN5QF4C.js';
|
|
14
14
|
import './chunk-NUELZWCF.js';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-DI6J2PJB.js';
|
|
16
16
|
import './chunk-PKE3PXOK.js';
|
|
17
17
|
import './chunk-KTBKW2FI.js';
|
|
18
18
|
import './chunk-UQ6LFBPZ.js';
|
|
19
|
-
import './chunk-
|
|
19
|
+
import './chunk-DS6UUCFG.js';
|
|
20
20
|
import './chunk-VT6G5AJV.js';
|
|
21
|
-
import './chunk-
|
|
21
|
+
import './chunk-6ARPZHOV.js';
|
|
22
22
|
import './chunk-4GY63JU6.js';
|
|
23
|
-
import { factoryAssetRoots } from './chunk-
|
|
23
|
+
import { factoryAssetRoots } from './chunk-JIQUF3X2.js';
|
|
24
24
|
import './chunk-5KRMNUL4.js';
|
|
25
25
|
import './chunk-C5HFK34M.js';
|
|
26
26
|
import './chunk-MWXYN6NY.js';
|
|
27
|
-
import { scanRepo } from './chunk-
|
|
27
|
+
import { scanRepo } from './chunk-6SXSVKQY.js';
|
|
28
28
|
import './chunk-L5VSIPQD.js';
|
|
29
29
|
import './chunk-VTETQCR6.js';
|
|
30
|
-
import './chunk-
|
|
31
|
-
import { parseRequires } from './chunk-
|
|
30
|
+
import './chunk-E2EC6SAX.js';
|
|
31
|
+
import { parseRequires } from './chunk-GNUA7XT2.js';
|
|
32
32
|
import './chunk-RVRB27AN.js';
|
|
33
33
|
import './chunk-V5KG6CCV.js';
|
|
34
34
|
import './chunk-VSX2G7LA.js';
|
|
35
35
|
import './chunk-RXGPFAMN.js';
|
|
36
|
-
import './chunk-
|
|
36
|
+
import './chunk-SGI5MRKP.js';
|
|
37
37
|
import './chunk-C3CAXQMA.js';
|
|
38
38
|
import './chunk-BOFL7GIF.js';
|
|
39
39
|
import './chunk-NSBPE2FW.js';
|
|
@@ -60,8 +60,8 @@ function libraryEntryOf(asset) {
|
|
|
60
60
|
async function libraryAssets() {
|
|
61
61
|
const notes = [];
|
|
62
62
|
try {
|
|
63
|
-
const { openLibraryManager } = await import('./open-library-
|
|
64
|
-
const { getKindRegistry } = await import('./open-registry-
|
|
63
|
+
const { openLibraryManager } = await import('./open-library-OJ4HT2X4.js');
|
|
64
|
+
const { getKindRegistry } = await import('./open-registry-LWGIOJDK.js');
|
|
65
65
|
const { scanAuthoringLibraries } = await import('./library/index.js');
|
|
66
66
|
const { library: index, close } = await openLibraryManager();
|
|
67
67
|
try {
|
|
@@ -94,7 +94,7 @@ async function libraryAssets() {
|
|
|
94
94
|
async function storeAssets(projectDir) {
|
|
95
95
|
const notes = [];
|
|
96
96
|
try {
|
|
97
|
-
const { resolveCatalogSource } = await import('./open-library-
|
|
97
|
+
const { resolveCatalogSource } = await import('./open-library-OJ4HT2X4.js');
|
|
98
98
|
const { source, close } = await resolveCatalogSource({ projectDir });
|
|
99
99
|
try {
|
|
100
100
|
const assets = (await source.listAssets()).filter(
|
|
@@ -175,5 +175,5 @@ async function gatherAssetFeeds(am, projectDir) {
|
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
export { gatherAssetFeeds };
|
|
178
|
-
//# sourceMappingURL=asset-feeds-
|
|
179
|
-
//# sourceMappingURL=asset-feeds-
|
|
178
|
+
//# sourceMappingURL=asset-feeds-WQ6YQPHV.js.map
|
|
179
|
+
//# sourceMappingURL=asset-feeds-WQ6YQPHV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../cli/src/asset-feeds.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEA,SAAS,eAAe,KAAA,EAAsC;AAC5D,EAAA,MAAM,EAAE,UAAS,GAAI,KAAA;AACrB,EAAA,MAAM,MAAA,GAAU,SAAS,QAAA,EAAkD,QAAA;AAC3E,EAAA,M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IAAA,CAAK,OAAA;AAAA,MACR,GAAG,GAAA,CAAI,SAAA,EAAW,OAAA,CAAQ,OAAO,CAAA;AAAA,MACjC,GAAG,GAAA,CAAI,OAAA,EAAS,KAAA,CAAM,OAAO;AAAA,KAC/B;AAAA,IACA,KAAA,EAAO,CAAC,GAAG,IAAA,CAAK,KAAA,EAAO,GAAG,KAAA,CAAM,KAAA,EAAO,GAAG,OAAA,CAAQ,KAAK;AAAA,GACzD;AACF","file":"asset-feeds-4I6Z4OI3.js","sourcesContent":["/**\n * asset-feeds.ts — gather installable assets from every feed the manage TUI\n * surfaces.\n *\n * Four feeds, normalized into `CatalogEntry`:\n * - **Project sources** — `skaile.yaml` `sources:` entries (scanned via\n * `AssetManager.search()`; the new `sources:` field is merged into the\n * legacy repositories map in `AssetManager.loadConfig`).\n * - **Local libraries** — user authoring places from `LocalIndex`, read through\n * `scanAuthoringLibraries` (`@skaile/workspaces/library`): the same scan\n * `library index` / `search --local` use, so publishers and refs match them\n * (per-asset `publisher_overrides` honoured), `dev_paths` assets are left out,\n * and a library that fails to scan becomes one note while the rest stay listed.\n * - **Factory assets** — the bundled first-party `factory-assets` tree\n * (`factoryAssetRoots()`), scanned from disk. Always present; no network.\n * - **Remote store** — the configured catalog source when `catalog.url` is\n * not `local`. Failures are non-fatal — they surface as notes.\n */\n\nimport * as path from \"node:path\";\nimport {\n type AssetKind,\n type CatalogEntry,\n factoryAssetRoots,\n parseRequires,\n scanRepo,\n} from \"@skaile/workspaces/core\";\nimport { getKnownKinds } from \"./open-registry.ts\";\nimport { storeNotInstallableReason } from \"./store-addable.ts\";\nimport type { DiscoveredAsset } from \"@skaile/workspaces/discovery\";\n\n/** One non-fatal note returned to the caller for surfacing in the UI. */\nexport interface FeedNote {\n feed: \"sources\" | \"libraries\" | \"store\" | \"factory\";\n message: string;\n}\n\n/**\n * Which feed an asset came from. This is the top-level grouping axis in the\n * manage TUI (\"where is this skill coming from?\") and is intentionally distinct\n * from `publisher` (asset-intrinsic identity): the same publisher can legitimately\n * appear under more than one origin (e.g. a github repo you added as a `source`\n * that is also listed in the remote `store`).\n */\nexport type AssetOrigin = \"source\" | \"library\" | \"factory\" | \"store\";\n\n/** A catalog entry tagged with the feed it was gathered from. */\nexport interface OriginEntry {\n origin: AssetOrigin;\n entry: CatalogEntry;\n /**\n * Second-level grouping label for the manage tree. Defaults (when unset) to the\n * entry's `publisher`; the source feed sets it to the source's short repo name\n * so the Sources band groups by source — \"which repo did this come from\" — not\n * by the asset-intrinsic publisher.\n */\n group?: string;\n}\n\nexport interface AssetFeedResult {\n entries: OriginEntry[];\n notes: FeedNote[];\n}\n\n/**\n * Map one discovered library asset to the `CatalogEntry` the manage rows read.\n * `publisher` is the bare per-asset publisher (what `search --local` prints),\n * `source` the manifest path. `repo` is left unset: it only feeds the Sources-tree\n * org grouping. `requires` / `dependencies` come from the manifest the way the\n * scanner fills them — string `requires:` refs parsed to `{kind, name}`, a bundle's\n * string `dependencies:` list verbatim.\n */\nfunction libraryEntryOf(asset: DiscoveredAsset): CatalogEntry {\n const { manifest } = asset;\n const nested = (manifest.metadata as Record<string, unknown> | undefined)?.requires;\n const rawRequires = manifest.requires ?? nested;\n const requireRefs =\n typeof rawRequires === \"string\"\n ? rawRequires\n : Array.isArray(rawRequires)\n ? rawRequires.filter((r): r is string => typeof r === \"string\")\n : undefined;\n const deps = manifest.dependencies;\n return {\n name: asset.name,\n kind: asset.kind as AssetKind,\n description: typeof manifest.description === \"string\" ? manifest.description : \"\",\n source: asset.manifestPath,\n publisher: asset.publisher,\n ...(asset.plugin ? { plugin: asset.plugin } : {}),\n version: asset.version,\n requires: requireRefs === undefined ? [] : parseRequires({ requires: requireRefs }),\n dependencies:\n asset.kind === \"bundle\" && Array.isArray(deps)\n ? deps.filter((d): d is string => typeof d === \"string\" && d.length > 0)\n : [],\n };\n}\n\n/**\n * Pull assets from local libraries (the authoring places under\n * `~/.skaile/libraries/<name>/`, not the `~/.skaile/cache/sources/` cache) through\n * `scanAuthoringLibraries`, grouped under the bare library name\n * (`group: <name>`) so the manage TUI shows a clean `<name>` band — no\n * `library:` prefix (mirrors the source feed). Plugin grouping (`entry.plugin`)\n * comes from `DiscoveredAsset.plugin`. A library whose scan fails becomes one\n * `FeedNote`; the outer `catch` covers only opening the index.\n */\nasync function libraryAssets(): Promise<{\n entries: OriginEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n // Lazy: the library subpath pulls in SQLite, which the other feeds never need.\n const { openLibraryManager } = await import(\"./open-library.ts\");\n const { getKindRegistry } = await import(\"./open-registry.ts\");\n const { scanAuthoringLibraries } = await import(\"@skaile/workspaces/library\");\n const { library: index, close } = await openLibraryManager();\n try {\n const entries: OriginEntry[] = [];\n for (const scan of await scanAuthoringLibraries(index, getKindRegistry())) {\n if (scan.error !== undefined) {\n notes.push({ feed: \"libraries\", message: `${scan.library.name}: ${scan.error}` });\n continue;\n }\n for (const asset of scan.assets) {\n entries.push({\n origin: \"library\",\n entry: libraryEntryOf(asset),\n group: scan.library.name,\n });\n }\n }\n return { entries, notes };\n } finally {\n close();\n }\n } catch (err) {\n notes.push({\n feed: \"libraries\",\n message: err instanceof Error ? err.message : String(err),\n });\n return { entries: [], notes };\n }\n}\n\n/**\n * Pull a (best-effort) snapshot of the connected remote store catalog.\n *\n * - Returns no entries when the resolved catalog is local-only or the host\n * is unreachable (the failure becomes a note, not an exception).\n * - Maps `CatalogAsset` → `CatalogEntry`, carrying `publisher`, `repo`, and\n * `category` straight through and using `source = \"store://<id>\"`; per-file\n * `source` paths are not available for remote assets so the canonical ref is\n * a stable placeholder.\n */\nasync function storeAssets(projectDir: string): Promise<{\n entries: CatalogEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n const { resolveCatalogSource } = await import(\"./open-library.ts\");\n const { source, close } = await resolveCatalogSource({ projectDir });\n try {\n // The store lists only what `skaile add` can install (see store-addable.ts).\n const assets = (await source.listAssets()).filter(\n (a) => storeNotInstallableReason(a) === undefined,\n );\n const entries: CatalogEntry[] = assets.map((a) => ({\n name: a.name,\n kind: (a.kind as AssetKind) ?? \"skill\",\n description: a.description ?? \"\",\n source: `store://${a.id}`,\n publisher: a.publisher,\n repo: a.repo,\n plugin: a.plugin,\n category: a.category,\n version: a.version,\n requires: [],\n dependencies: [],\n }));\n return { entries, notes };\n } finally {\n close();\n }\n } catch (err) {\n const msg = err instanceof Error ? err.message : String(err);\n // Local-only catalog throws a recognizable message — silence it; absence\n // is the user's choice, not an error.\n if (!/local/i.test(msg)) {\n notes.push({ feed: \"store\", message: msg });\n }\n return { entries: [], notes };\n }\n}\n\n/** The slice of `AssetManager` the source feed needs (kept narrow for tests). */\ninterface AssetManagerLike {\n search: () => Promise<CatalogEntry[]>;\n searchRepoRoots: () => { repoName: string; root: string }[];\n}\n\n/**\n * Project-source feed: leans on `AssetManager.search()`, which merges\n * `skaile.yaml`'s `sources:` field into the repositories map. Plugin grouping\n * (`entry.plugin`) is stamped by the scanner, so entries pass through as-is.\n */\nasync function sourceAssets(am: AssetManagerLike): Promise<OriginEntry[]> {\n // The bundled factory tree is injected into the repositories map as an implicit\n // source, so `am.search()` returns it too. It has its own `factory` origin band,\n // so drop it here — otherwise the same first-party skills list twice under Sources.\n const factoryPrefixes = factoryAssetRoots().map((r) => (r.endsWith(path.sep) ? r : r + path.sep));\n const isFactoryPath = (p: string) =>\n factoryPrefixes.some((fp) => p === fp.slice(0, -1) || p.startsWith(fp));\n\n const all = (await am.search()).filter((e) => !isFactoryPath(e.source));\n const entries: OriginEntry[] = [];\n // Group each source's entries under the source node (its short repo name), not\n // the publisher: under Sources the navigational question is \"which repo did\n // this come from\". Each entry's `source` (absolute manifest path) lives under\n // exactly one declared root, so group by prefix. The cache slug is\n // URL-keyed `github.com/<org>/<repo>` — take the trailing segment.\n for (const { repoName, root } of am.searchRepoRoots()) {\n if (isFactoryPath(root)) continue;\n const prefix = root.endsWith(path.sep) ? root : root + path.sep;\n const owned = all.filter((e) => e.source === root || e.source.startsWith(prefix));\n if (owned.length === 0) continue;\n const sourceName = repoName.split(\"/\").pop() || repoName;\n for (const entry of owned) entries.push({ origin: \"source\", entry, group: sourceName });\n }\n return entries;\n}\n\n/**\n * Factory-asset feed: scan the bundled first-party `factory-assets` tree(s)\n * resolved by `factoryAssetRoots()` (the `SKAILE_FACTORY_ASSETS_DIR` override\n * layer ahead of the bundled tree). Local disk only, no network — the entries are\n * the built-in skills / connectors / bundles that ship with `@skaile/workspaces`.\n * `factoryAssetRoots()` already dedupes, so the env override pointing at the\n * bundled dir collapses to one root.\n */\nasync function factoryAssets(): Promise<{\n entries: CatalogEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n const entries: CatalogEntry[] = [];\n for (const root of factoryAssetRoots()) {\n entries.push(...(await scanRepo(root, \"skaile-factory\", { knownKinds: getKnownKinds() })));\n }\n return { entries, notes };\n } catch (err) {\n notes.push({\n feed: \"factory\",\n message: err instanceof Error ? err.message : String(err),\n });\n return { entries: [], notes };\n }\n}\n\n/** Tag a flat entry list with a single origin. */\nfunction tag(origin: AssetOrigin, entries: CatalogEntry[]): OriginEntry[] {\n return entries.map((entry) => ({ origin, entry }));\n}\n\n/**\n * Run all feeds and return a single normalized result.\n *\n * Feeds run in parallel where possible — the store fetch is the slow one\n * (one HTTP call) and is fired alongside the local library walk. The factory\n * scan is local disk only, so it runs inline.\n */\nexport async function gatherAssetFeeds(\n am: AssetManagerLike,\n projectDir: string,\n): Promise<AssetFeedResult> {\n const [libs, store] = await Promise.all([libraryAssets(), storeAssets(projectDir)]);\n const factory = await factoryAssets();\n const src = await sourceAssets(am);\n return {\n entries: [\n ...src,\n ...libs.entries,\n ...tag(\"factory\", factory.entries),\n ...tag(\"store\", store.entries),\n ],\n notes: [...libs.notes, ...store.notes, ...factory.notes],\n };\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../cli/src/asset-feeds.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;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U,MAAM,aAAA,EAAc;AACpC,EAAA,MAAM,GAAA,GAAM,MAAM,YAAA,CAAa,EAAE,CAAA;AACjC,EAAA,OAAO;AAAA,IACL,OAAA,EAAS;AAAA,MACP,GAAG,GAAA;AAAA,MACH,GAAG,IAAA,CAAK,OAAA;AAAA,MACR,GAAG,GAAA,CAAI,SAAA,EAAW,OAAA,CAAQ,OAAO,CAAA;AAAA,MACjC,GAAG,GAAA,CAAI,OAAA,EAAS,KAAA,CAAM,OAAO;AAAA,KAC/B;AAAA,IACA,KAAA,EAAO,CAAC,GAAG,IAAA,CAAK,KAAA,EAAO,GAAG,KAAA,CAAM,KAAA,EAAO,GAAG,OAAA,CAAQ,KAAK;AAAA,GACzD;AACF","file":"asset-feeds-WQ6YQPHV.js","sourcesContent":["/**\n * asset-feeds.ts — gather installable assets from every feed the manage TUI\n * surfaces.\n *\n * Four feeds, normalized into `CatalogEntry`:\n * - **Project sources** — `skaile.yaml` `sources:` entries (scanned via\n * `AssetManager.search()`; the new `sources:` field is merged into the\n * legacy repositories map in `AssetManager.loadConfig`).\n * - **Local libraries** — user authoring places from `LocalIndex`, read through\n * `scanAuthoringLibraries` (`@skaile/workspaces/library`): the same scan\n * `library index` / `search --local` use, so publishers and refs match them\n * (per-asset `publisher_overrides` honoured), `dev_paths` assets are left out,\n * and a library that fails to scan becomes one note while the rest stay listed.\n * - **Factory assets** — the bundled first-party `factory-assets` tree\n * (`factoryAssetRoots()`), scanned from disk. Always present; no network.\n * - **Remote store** — the configured catalog source when `catalog.url` is\n * not `local`. Failures are non-fatal — they surface as notes.\n */\n\nimport * as path from \"node:path\";\nimport {\n type AssetKind,\n type CatalogEntry,\n factoryAssetRoots,\n parseRequires,\n scanRepo,\n} from \"@skaile/workspaces/core\";\nimport { getKnownKinds } from \"./open-registry.ts\";\nimport { storeNotInstallableReason } from \"./store-addable.ts\";\nimport type { DiscoveredAsset } from \"@skaile/workspaces/discovery\";\n\n/** One non-fatal note returned to the caller for surfacing in the UI. */\nexport interface FeedNote {\n feed: \"sources\" | \"libraries\" | \"store\" | \"factory\";\n message: string;\n}\n\n/**\n * Which feed an asset came from. This is the top-level grouping axis in the\n * manage TUI (\"where is this skill coming from?\") and is intentionally distinct\n * from `publisher` (asset-intrinsic identity): the same publisher can legitimately\n * appear under more than one origin (e.g. a github repo you added as a `source`\n * that is also listed in the remote `store`).\n */\nexport type AssetOrigin = \"source\" | \"library\" | \"factory\" | \"store\";\n\n/** A catalog entry tagged with the feed it was gathered from. */\nexport interface OriginEntry {\n origin: AssetOrigin;\n entry: CatalogEntry;\n /**\n * Second-level grouping label for the manage tree. Defaults (when unset) to the\n * entry's `publisher`; the source feed sets it to the source's short repo name\n * so the Sources band groups by source — \"which repo did this come from\" — not\n * by the asset-intrinsic publisher.\n */\n group?: string;\n}\n\nexport interface AssetFeedResult {\n entries: OriginEntry[];\n notes: FeedNote[];\n}\n\n/**\n * Map one discovered library asset to the `CatalogEntry` the manage rows read.\n * `publisher` is the bare per-asset publisher (what `search --local` prints),\n * `source` the manifest path. `repo` is left unset: it only feeds the Sources-tree\n * org grouping. `requires` / `dependencies` come from the manifest the way the\n * scanner fills them — string `requires:` refs parsed to `{kind, name}`, a bundle's\n * string `dependencies:` list verbatim.\n */\nfunction libraryEntryOf(asset: DiscoveredAsset): CatalogEntry {\n const { manifest } = asset;\n const nested = (manifest.metadata as Record<string, unknown> | undefined)?.requires;\n const rawRequires = manifest.requires ?? nested;\n const requireRefs =\n typeof rawRequires === \"string\"\n ? rawRequires\n : Array.isArray(rawRequires)\n ? rawRequires.filter((r): r is string => typeof r === \"string\")\n : undefined;\n const deps = manifest.dependencies;\n return {\n name: asset.name,\n kind: asset.kind as AssetKind,\n description: typeof manifest.description === \"string\" ? manifest.description : \"\",\n source: asset.manifestPath,\n publisher: asset.publisher,\n ...(asset.plugin ? { plugin: asset.plugin } : {}),\n version: asset.version,\n requires: requireRefs === undefined ? [] : parseRequires({ requires: requireRefs }),\n dependencies:\n asset.kind === \"bundle\" && Array.isArray(deps)\n ? deps.filter((d): d is string => typeof d === \"string\" && d.length > 0)\n : [],\n };\n}\n\n/**\n * Pull assets from local libraries (the authoring places under\n * `~/.skaile/libraries/<name>/`, not the `~/.skaile/cache/sources/` cache) through\n * `scanAuthoringLibraries`, grouped under the bare library name\n * (`group: <name>`) so the manage TUI shows a clean `<name>` band — no\n * `library:` prefix (mirrors the source feed). Plugin grouping (`entry.plugin`)\n * comes from `DiscoveredAsset.plugin`. A library whose scan fails becomes one\n * `FeedNote`; the outer `catch` covers only opening the index.\n */\nasync function libraryAssets(): Promise<{\n entries: OriginEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n // Lazy: the library subpath pulls in SQLite, which the other feeds never need.\n const { openLibraryManager } = await import(\"./open-library.ts\");\n const { getKindRegistry } = await import(\"./open-registry.ts\");\n const { scanAuthoringLibraries } = await import(\"@skaile/workspaces/library\");\n const { library: index, close } = await openLibraryManager();\n try {\n const entries: OriginEntry[] = [];\n for (const scan of await scanAuthoringLibraries(index, getKindRegistry())) {\n if (scan.error !== undefined) {\n notes.push({ feed: \"libraries\", message: `${scan.library.name}: ${scan.error}` });\n continue;\n }\n for (const asset of scan.assets) {\n entries.push({\n origin: \"library\",\n entry: libraryEntryOf(asset),\n group: scan.library.name,\n });\n }\n }\n return { entries, notes };\n } finally {\n close();\n }\n } catch (err) {\n notes.push({\n feed: \"libraries\",\n message: err instanceof Error ? err.message : String(err),\n });\n return { entries: [], notes };\n }\n}\n\n/**\n * Pull a (best-effort) snapshot of the connected remote store catalog.\n *\n * - Returns no entries when the resolved catalog is local-only or the host\n * is unreachable (the failure becomes a note, not an exception).\n * - Maps `CatalogAsset` → `CatalogEntry`, carrying `publisher`, `repo`, and\n * `category` straight through and using `source = \"store://<id>\"`; per-file\n * `source` paths are not available for remote assets so the canonical ref is\n * a stable placeholder.\n */\nasync function storeAssets(projectDir: string): Promise<{\n entries: CatalogEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n const { resolveCatalogSource } = await import(\"./open-library.ts\");\n const { source, close } = await resolveCatalogSource({ projectDir });\n try {\n // The store lists only what `skaile add` can install (see store-addable.ts).\n const assets = (await source.listAssets()).filter(\n (a) => storeNotInstallableReason(a) === undefined,\n );\n const entries: CatalogEntry[] = assets.map((a) => ({\n name: a.name,\n kind: (a.kind as AssetKind) ?? \"skill\",\n description: a.description ?? \"\",\n source: `store://${a.id}`,\n publisher: a.publisher,\n repo: a.repo,\n plugin: a.plugin,\n category: a.category,\n version: a.version,\n requires: [],\n dependencies: [],\n }));\n return { entries, notes };\n } finally {\n close();\n }\n } catch (err) {\n const msg = err instanceof Error ? err.message : String(err);\n // Local-only catalog throws a recognizable message — silence it; absence\n // is the user's choice, not an error.\n if (!/local/i.test(msg)) {\n notes.push({ feed: \"store\", message: msg });\n }\n return { entries: [], notes };\n }\n}\n\n/** The slice of `AssetManager` the source feed needs (kept narrow for tests). */\ninterface AssetManagerLike {\n search: () => Promise<CatalogEntry[]>;\n searchRepoRoots: () => { repoName: string; root: string }[];\n}\n\n/**\n * Project-source feed: leans on `AssetManager.search()`, which merges\n * `skaile.yaml`'s `sources:` field into the repositories map. Plugin grouping\n * (`entry.plugin`) is stamped by the scanner, so entries pass through as-is.\n */\nasync function sourceAssets(am: AssetManagerLike): Promise<OriginEntry[]> {\n // The bundled factory tree is injected into the repositories map as an implicit\n // source, so `am.search()` returns it too. It has its own `factory` origin band,\n // so drop it here — otherwise the same first-party skills list twice under Sources.\n const factoryPrefixes = factoryAssetRoots().map((r) => (r.endsWith(path.sep) ? r : r + path.sep));\n const isFactoryPath = (p: string) =>\n factoryPrefixes.some((fp) => p === fp.slice(0, -1) || p.startsWith(fp));\n\n const all = (await am.search()).filter((e) => !isFactoryPath(e.source));\n const entries: OriginEntry[] = [];\n // Group each source's entries under the source node (its short repo name), not\n // the publisher: under Sources the navigational question is \"which repo did\n // this come from\". Each entry's `source` (absolute manifest path) lives under\n // exactly one declared root, so group by prefix. The cache slug is\n // URL-keyed `github.com/<org>/<repo>` — take the trailing segment.\n for (const { repoName, root } of am.searchRepoRoots()) {\n if (isFactoryPath(root)) continue;\n const prefix = root.endsWith(path.sep) ? root : root + path.sep;\n const owned = all.filter((e) => e.source === root || e.source.startsWith(prefix));\n if (owned.length === 0) continue;\n const sourceName = repoName.split(\"/\").pop() || repoName;\n for (const entry of owned) entries.push({ origin: \"source\", entry, group: sourceName });\n }\n return entries;\n}\n\n/**\n * Factory-asset feed: scan the bundled first-party `factory-assets` tree(s)\n * resolved by `factoryAssetRoots()` (the `SKAILE_FACTORY_ASSETS_DIR` override\n * layer ahead of the bundled tree). Local disk only, no network — the entries are\n * the built-in skills / connectors / bundles that ship with `@skaile/workspaces`.\n * `factoryAssetRoots()` already dedupes, so the env override pointing at the\n * bundled dir collapses to one root.\n */\nasync function factoryAssets(): Promise<{\n entries: CatalogEntry[];\n notes: FeedNote[];\n}> {\n const notes: FeedNote[] = [];\n try {\n const entries: CatalogEntry[] = [];\n for (const root of factoryAssetRoots()) {\n entries.push(...(await scanRepo(root, \"skaile-factory\", { knownKinds: getKnownKinds() })));\n }\n return { entries, notes };\n } catch (err) {\n notes.push({\n feed: \"factory\",\n message: err instanceof Error ? err.message : String(err),\n });\n return { entries: [], notes };\n }\n}\n\n/** Tag a flat entry list with a single origin. */\nfunction tag(origin: AssetOrigin, entries: CatalogEntry[]): OriginEntry[] {\n return entries.map((entry) => ({ origin, entry }));\n}\n\n/**\n * Run all feeds and return a single normalized result.\n *\n * Feeds run in parallel where possible — the store fetch is the slow one\n * (one HTTP call) and is fired alongside the local library walk. The factory\n * scan is local disk only, so it runs inline.\n */\nexport async function gatherAssetFeeds(\n am: AssetManagerLike,\n projectDir: string,\n): Promise<AssetFeedResult> {\n const [libs, store] = await Promise.all([libraryAssets(), storeAssets(projectDir)]);\n const factory = await factoryAssets();\n const src = await sourceAssets(am);\n return {\n entries: [\n ...src,\n ...libs.entries,\n ...tag(\"factory\", factory.entries),\n ...tag(\"store\", store.entries),\n ],\n notes: [...libs.notes, ...store.notes, ...factory.notes],\n };\n}\n"]}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { WORKSPACE_MOUNT_ENV_VAR, deployAll, deployCatalogEntry, findAiAssetsRoot, isUnderWorkspaceMount, resolveFlowSkills, undeployCatalogEntry, workspaceMountDirs } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { WORKSPACE_MOUNT_ENV_VAR, deployAll, deployCatalogEntry, findAiAssetsRoot, isUnderWorkspaceMount, resolveFlowSkills, undeployCatalogEntry, workspaceMountDirs } from '../chunk-USSP43U3.js';
|
|
2
|
+
import '../chunk-6ARPZHOV.js';
|
|
3
3
|
import '../chunk-4GY63JU6.js';
|
|
4
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-JIQUF3X2.js';
|
|
5
5
|
import '../chunk-5KRMNUL4.js';
|
|
6
6
|
import '../chunk-C5HFK34M.js';
|
|
7
7
|
import '../chunk-MWXYN6NY.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-6SXSVKQY.js';
|
|
9
9
|
import '../chunk-L5VSIPQD.js';
|
|
10
10
|
import '../chunk-VTETQCR6.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-E2EC6SAX.js';
|
|
12
|
+
import '../chunk-GNUA7XT2.js';
|
|
13
13
|
import '../chunk-RVRB27AN.js';
|
|
14
14
|
import '../chunk-V5KG6CCV.js';
|
|
15
15
|
import '../chunk-VSX2G7LA.js';
|
|
16
16
|
import '../chunk-RXGPFAMN.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-SGI5MRKP.js';
|
|
18
18
|
import '../chunk-C3CAXQMA.js';
|
|
19
19
|
import '../chunk-BOFL7GIF.js';
|
|
20
20
|
import '../chunk-NSBPE2FW.js';
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
export { AssetManager, LibraryEntryError, MissingManifestError, installAgentInstances, labelDiffHeaders, mcpNotRunnableReason, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, renderMcpServerConfig, setLibraryAssetCheck, setRenamedEntryLookup, softDepName } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { AssetManager, LibraryEntryError, MissingManifestError, installAgentInstances, labelDiffHeaders, mcpNotRunnableReason, normalizeRepoUrl, parseCanonicalLockKey, parseRefTolerant, renderMcpServerConfig, setLibraryAssetCheck, setRenamedEntryLookup, softDepName } from '../chunk-JRVQV7WC.js';
|
|
2
|
+
import '../chunk-MMOWIRHP.js';
|
|
3
|
+
import '../chunk-J4WKNJHO.js';
|
|
4
|
+
import '../chunk-VJRL6ZK6.js';
|
|
5
5
|
import '../chunk-F3D25RGM.js';
|
|
6
6
|
import '../chunk-3TXEJN4W.js';
|
|
7
7
|
import '../chunk-ISHJITXJ.js';
|
|
8
8
|
import '../chunk-LNFKL23K.js';
|
|
9
9
|
import '../chunk-JRN5QF4C.js';
|
|
10
10
|
import '../chunk-NUELZWCF.js';
|
|
11
|
-
export { SCAFFOLD_KINDS, createScaffold, deployAll, installAgent, installTargetOf, removeAsset } from '../chunk-
|
|
11
|
+
export { SCAFFOLD_KINDS, createScaffold, deployAll, installAgent, installTargetOf, removeAsset } from '../chunk-DI6J2PJB.js';
|
|
12
12
|
export { BUILT_IN_FRAGMENTS, loadPromptExtensions, resolveFragments } from '../chunk-PKE3PXOK.js';
|
|
13
13
|
export { appendHistory, clearHistory, getRecentHistory, loadHistory } from '../chunk-KTBKW2FI.js';
|
|
14
14
|
import '../chunk-UQ6LFBPZ.js';
|
|
15
|
-
export { AGENT_RENDERERS, claudeCodeRenderer, codexRenderer, harnessTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-
|
|
15
|
+
export { AGENT_RENDERERS, claudeCodeRenderer, codexRenderer, harnessTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-DS6UUCFG.js';
|
|
16
16
|
import '../chunk-VT6G5AJV.js';
|
|
17
|
-
export { FACTORY_SOURCE_URL } from '../chunk-
|
|
17
|
+
export { FACTORY_SOURCE_URL } from '../chunk-6ARPZHOV.js';
|
|
18
18
|
import '../chunk-4GY63JU6.js';
|
|
19
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-JIQUF3X2.js';
|
|
20
20
|
import '../chunk-5KRMNUL4.js';
|
|
21
21
|
import '../chunk-C5HFK34M.js';
|
|
22
22
|
import '../chunk-MWXYN6NY.js';
|
|
23
|
-
import '../chunk-
|
|
23
|
+
import '../chunk-6SXSVKQY.js';
|
|
24
24
|
import '../chunk-L5VSIPQD.js';
|
|
25
25
|
import '../chunk-VTETQCR6.js';
|
|
26
|
-
import '../chunk-
|
|
27
|
-
import '../chunk-
|
|
26
|
+
import '../chunk-E2EC6SAX.js';
|
|
27
|
+
import '../chunk-GNUA7XT2.js';
|
|
28
28
|
import '../chunk-RVRB27AN.js';
|
|
29
29
|
import '../chunk-V5KG6CCV.js';
|
|
30
30
|
import '../chunk-VSX2G7LA.js';
|
|
31
31
|
import '../chunk-RXGPFAMN.js';
|
|
32
|
-
import '../chunk-
|
|
32
|
+
import '../chunk-SGI5MRKP.js';
|
|
33
33
|
import '../chunk-C3CAXQMA.js';
|
|
34
34
|
import '../chunk-BOFL7GIF.js';
|
|
35
35
|
import '../chunk-NSBPE2FW.js';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export { SCAFFOLD_KINDS, assertNoLibrarySymlinks, cachedComposedFiles, canonicalEntryRef, composedDriftRefs, createScaffold, deployAll, deployAsset, deployedAssetDrift, diffDeployedAgent, entriesNeedingDeploy, installTargetOf, readKeptLegacyCopies, removeAsset, sourceComposedFiles, writeKeptLegacyCopies } from '../chunk-
|
|
1
|
+
export { SCAFFOLD_KINDS, assertNoLibrarySymlinks, cachedComposedFiles, canonicalEntryRef, composedDriftRefs, createScaffold, deployAll, deployAsset, deployedAssetDrift, diffDeployedAgent, entriesNeedingDeploy, installTargetOf, readKeptLegacyCopies, removeAsset, sourceComposedFiles, writeKeptLegacyCopies } from '../chunk-DI6J2PJB.js';
|
|
2
2
|
import '../chunk-PKE3PXOK.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-DS6UUCFG.js';
|
|
4
4
|
import '../chunk-VT6G5AJV.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-6ARPZHOV.js';
|
|
6
6
|
import '../chunk-4GY63JU6.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-JIQUF3X2.js';
|
|
8
8
|
import '../chunk-5KRMNUL4.js';
|
|
9
9
|
import '../chunk-C5HFK34M.js';
|
|
10
10
|
import '../chunk-MWXYN6NY.js';
|
|
11
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-6SXSVKQY.js';
|
|
12
12
|
import '../chunk-L5VSIPQD.js';
|
|
13
13
|
import '../chunk-VTETQCR6.js';
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
14
|
+
import '../chunk-E2EC6SAX.js';
|
|
15
|
+
import '../chunk-GNUA7XT2.js';
|
|
16
16
|
import '../chunk-RVRB27AN.js';
|
|
17
17
|
import '../chunk-V5KG6CCV.js';
|
|
18
18
|
import '../chunk-VSX2G7LA.js';
|
|
19
19
|
import '../chunk-RXGPFAMN.js';
|
|
20
|
-
import '../chunk-
|
|
20
|
+
import '../chunk-SGI5MRKP.js';
|
|
21
21
|
import '../chunk-C3CAXQMA.js';
|
|
22
22
|
import '../chunk-BOFL7GIF.js';
|
|
23
23
|
import '../chunk-NSBPE2FW.js';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export { AGENT_RENDERERS, CODEX_IDENTITY_DIR, agentRenderFiles, claudeCodeRenderer, codexRenderer, harnessTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-
|
|
1
|
+
export { AGENT_RENDERERS, CODEX_IDENTITY_DIR, agentRenderFiles, claudeCodeRenderer, codexRenderer, harnessTargetSupportsAgents, ompRenderer, renderAgentToFramework } from '../chunk-DS6UUCFG.js';
|
|
2
2
|
import '../chunk-VT6G5AJV.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-6ARPZHOV.js';
|
|
4
4
|
import '../chunk-4GY63JU6.js';
|
|
5
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-JIQUF3X2.js';
|
|
6
6
|
import '../chunk-5KRMNUL4.js';
|
|
7
7
|
import '../chunk-C5HFK34M.js';
|
|
8
8
|
import '../chunk-MWXYN6NY.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-6SXSVKQY.js';
|
|
10
10
|
import '../chunk-L5VSIPQD.js';
|
|
11
11
|
import '../chunk-VTETQCR6.js';
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
12
|
+
import '../chunk-E2EC6SAX.js';
|
|
13
|
+
import '../chunk-GNUA7XT2.js';
|
|
14
14
|
import '../chunk-RVRB27AN.js';
|
|
15
15
|
import '../chunk-V5KG6CCV.js';
|
|
16
16
|
import '../chunk-VSX2G7LA.js';
|
|
17
17
|
import '../chunk-RXGPFAMN.js';
|
|
18
|
-
import '../chunk-
|
|
18
|
+
import '../chunk-SGI5MRKP.js';
|
|
19
19
|
import '../chunk-C3CAXQMA.js';
|
|
20
20
|
import '../chunk-BOFL7GIF.js';
|
|
21
21
|
import '../chunk-NSBPE2FW.js';
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { formatDroppedToolsNotice, filterInProcessMcpServerTools, checkToolPropertyKeys, TOOL_PROPERTY_KEY_PATTERN } from '../../chunk-3X7VTCPG.js';
|
|
2
2
|
import { freshBudget, isFirstAttempt, spend, isSpent, decide, isAvailable } from '../../chunk-7EKQDY2T.js';
|
|
3
3
|
import { AskSlots } from '../../chunk-3TG2NV2F.js';
|
|
4
|
-
import { scrubPoisonedTranscript, transcriptStoreForRuntime, resolveClaudeConfigDir, unsupportedSurfaceNotice, claudeEndpointMode, buildClaudeEndpointEnv, APPROVE_ONCE, DENY } from '../../chunk-
|
|
4
|
+
import { scrubPoisonedTranscript, transcriptStoreForRuntime, resolveClaudeConfigDir, unsupportedSurfaceNotice, claudeEndpointMode, buildClaudeEndpointEnv, APPROVE_ONCE, DENY } from '../../chunk-U3UDOX6I.js';
|
|
5
5
|
import { dispatchCapability } from '../../chunk-KSUT5KAE.js';
|
|
6
|
-
import { fetchProviderModels } from '../../chunk-
|
|
6
|
+
import { fetchProviderModels } from '../../chunk-OY22B7E2.js';
|
|
7
7
|
import { ReconfigureLedger, AuthError, stripRunnerPrivateEnv, classifyClaudeSdkError, reclassifyAuthAsAccountUnavailable, AccountUnavailableError, isLongContextEntitlementRejection, LONG_CONTEXT_CREDITS_API_ERROR } from '../../chunk-5DE3DGVR.js';
|
|
8
8
|
import { agentExecRequested, wrapAgentCommand, resolveAgentExec } from '../../chunk-7DN6JKP2.js';
|
|
9
|
-
import { AgentHarness, getBridgeLogger, registryHarnessConfig } from '../../chunk-
|
|
10
|
-
import { BUILTIN_HARNESS_CATALOG, entryCredentialValue } from '../../chunk-
|
|
9
|
+
import { AgentHarness, getBridgeLogger, registryHarnessConfig } from '../../chunk-WW5NAU6N.js';
|
|
10
|
+
import { BUILTIN_HARNESS_CATALOG, entryCredentialValue } from '../../chunk-BSMW3PX2.js';
|
|
11
11
|
import '../../chunk-G5SUWZEU.js';
|
|
12
12
|
import { withActivityLabelShape } from '../../chunk-G5SYFFMD.js';
|
|
13
13
|
import '../../chunk-VT6G5AJV.js';
|
|
14
|
-
import { loadHarnessSdk } from '../../chunk-
|
|
14
|
+
import { loadHarnessSdk } from '../../chunk-6ARPZHOV.js';
|
|
15
15
|
import '../../chunk-4GY63JU6.js';
|
|
16
|
-
import '../../chunk-
|
|
16
|
+
import '../../chunk-JIQUF3X2.js';
|
|
17
17
|
import '../../chunk-5KRMNUL4.js';
|
|
18
18
|
import '../../chunk-C5HFK34M.js';
|
|
19
19
|
import '../../chunk-MWXYN6NY.js';
|
|
20
|
-
import '../../chunk-
|
|
20
|
+
import '../../chunk-6SXSVKQY.js';
|
|
21
21
|
import '../../chunk-L5VSIPQD.js';
|
|
22
22
|
import '../../chunk-VTETQCR6.js';
|
|
23
|
-
import '../../chunk-
|
|
24
|
-
import '../../chunk-
|
|
23
|
+
import '../../chunk-E2EC6SAX.js';
|
|
24
|
+
import '../../chunk-GNUA7XT2.js';
|
|
25
25
|
import '../../chunk-RVRB27AN.js';
|
|
26
26
|
import '../../chunk-V5KG6CCV.js';
|
|
27
27
|
import '../../chunk-VSX2G7LA.js';
|
|
28
28
|
import { mergeRegistries, parseModelRef, isEntryEnabled, resolveEntryBaseUrl } from '../../chunk-RXGPFAMN.js';
|
|
29
|
-
import '../../chunk-
|
|
29
|
+
import '../../chunk-SGI5MRKP.js';
|
|
30
30
|
import '../../chunk-C3CAXQMA.js';
|
|
31
31
|
import { createLogger } from '../../chunk-BOFL7GIF.js';
|
|
32
32
|
import '../../chunk-NSBPE2FW.js';
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { CodexAppServerClient } from '../../chunk-KNY356I3.js';
|
|
2
2
|
import { freshBudget, decide, spend } from '../../chunk-7EKQDY2T.js';
|
|
3
|
-
import { managedCodexRegistryViolation, parseCodexCredential, prepareNativePolicy, prepareCodexInstance, codexInstanceEnvironment, isNativeApprovalPolicyActive, activateNativeApprovalPolicy, parseCodexRefreshResult, allowsNativeApprovalPath } from '../../chunk-
|
|
4
|
-
import { codexSessionHome, buildCodexConfigDocument, codexLoginFile, usesCodexOwnAuth, codexProviderTableId, writeCodexConfigToml } from '../../chunk-
|
|
3
|
+
import { managedCodexRegistryViolation, parseCodexCredential, prepareNativePolicy, prepareCodexInstance, codexInstanceEnvironment, isNativeApprovalPolicyActive, activateNativeApprovalPolicy, parseCodexRefreshResult, allowsNativeApprovalPath } from '../../chunk-CMXDFTA2.js';
|
|
4
|
+
import { codexSessionHome, buildCodexConfigDocument, codexLoginFile, usesCodexOwnAuth, codexProviderTableId, writeCodexConfigToml } from '../../chunk-65UAC3ZR.js';
|
|
5
5
|
import { CodexNativeStateUnavailable } from '../../chunk-LOO5CB5M.js';
|
|
6
|
-
import { fetchProviderModels } from '../../chunk-
|
|
6
|
+
import { fetchProviderModels } from '../../chunk-OY22B7E2.js';
|
|
7
7
|
import { ReconfigureLedger, stripRunnerPrivateEnv, classifyGenericErrorMessage, RUNNER_AGENT_ENV_KEYS } from '../../chunk-5DE3DGVR.js';
|
|
8
8
|
import '../../chunk-7DN6JKP2.js';
|
|
9
|
-
import { AgentHarness, TOOL_ALLOWLIST_UNSUPPORTED, getBridgeLogger, registryHarnessConfig } from '../../chunk-
|
|
10
|
-
import { BUILTIN_HARNESS_CATALOG, registryCredentialEnv, unresolvedProviderCredentials, entryCredentialValue } from '../../chunk-
|
|
9
|
+
import { AgentHarness, TOOL_ALLOWLIST_UNSUPPORTED, getBridgeLogger, registryHarnessConfig } from '../../chunk-WW5NAU6N.js';
|
|
10
|
+
import { BUILTIN_HARNESS_CATALOG, registryCredentialEnv, unresolvedProviderCredentials, entryCredentialValue } from '../../chunk-BSMW3PX2.js';
|
|
11
11
|
import '../../chunk-G5SUWZEU.js';
|
|
12
12
|
import '../../chunk-VT6G5AJV.js';
|
|
13
|
-
import { loadHarnessSdk } from '../../chunk-
|
|
13
|
+
import { loadHarnessSdk } from '../../chunk-6ARPZHOV.js';
|
|
14
14
|
import '../../chunk-4GY63JU6.js';
|
|
15
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-JIQUF3X2.js';
|
|
16
16
|
import '../../chunk-5KRMNUL4.js';
|
|
17
17
|
import '../../chunk-C5HFK34M.js';
|
|
18
18
|
import '../../chunk-MWXYN6NY.js';
|
|
19
|
-
import '../../chunk-
|
|
19
|
+
import '../../chunk-6SXSVKQY.js';
|
|
20
20
|
import '../../chunk-L5VSIPQD.js';
|
|
21
21
|
import '../../chunk-VTETQCR6.js';
|
|
22
|
-
import '../../chunk-
|
|
23
|
-
import '../../chunk-
|
|
22
|
+
import '../../chunk-E2EC6SAX.js';
|
|
23
|
+
import '../../chunk-GNUA7XT2.js';
|
|
24
24
|
import '../../chunk-RVRB27AN.js';
|
|
25
25
|
import '../../chunk-V5KG6CCV.js';
|
|
26
26
|
import '../../chunk-VSX2G7LA.js';
|
|
27
27
|
import { resolveEntryBaseUrl, registryEntries } from '../../chunk-RXGPFAMN.js';
|
|
28
|
-
import '../../chunk-
|
|
28
|
+
import '../../chunk-SGI5MRKP.js';
|
|
29
29
|
import '../../chunk-C3CAXQMA.js';
|
|
30
30
|
import '../../chunk-BOFL7GIF.js';
|
|
31
31
|
import '../../chunk-NSBPE2FW.js';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { harnessSessionConfigHome, removeSessionConfigFile, writeSessionConfigFile } from '../../chunk-NBAGV6L2.js';
|
|
2
|
-
import { SubprocessCliHarness, extractText, extractCost, extractTokens } from '../../chunk-
|
|
2
|
+
import { SubprocessCliHarness, extractText, extractCost, extractTokens } from '../../chunk-I5IF3JCG.js';
|
|
3
3
|
import '../../chunk-5DE3DGVR.js';
|
|
4
4
|
import '../../chunk-7DN6JKP2.js';
|
|
5
|
-
import { getBridgeLogger, registryHarnessConfig } from '../../chunk-
|
|
6
|
-
import { resolveEnvHarnessSession, continueRoleBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, entrySurface, harnessProviderName, entryBaseUrl, versionedAnthropicBaseUrl } from '../../chunk-
|
|
7
|
-
import { BUILTIN_HARNESS_CATALOG, entryCredentialValue, providerCredentialEnvName } from '../../chunk-
|
|
5
|
+
import { getBridgeLogger, registryHarnessConfig } from '../../chunk-WW5NAU6N.js';
|
|
6
|
+
import { resolveEnvHarnessSession, continueRoleBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, entrySurface, harnessProviderName, entryBaseUrl, versionedAnthropicBaseUrl } from '../../chunk-F4CZQD3T.js';
|
|
7
|
+
import { BUILTIN_HARNESS_CATALOG, entryCredentialValue, providerCredentialEnvName } from '../../chunk-BSMW3PX2.js';
|
|
8
8
|
import '../../chunk-G5SUWZEU.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-6ARPZHOV.js';
|
|
10
10
|
import '../../chunk-4GY63JU6.js';
|
|
11
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-JIQUF3X2.js';
|
|
12
12
|
import '../../chunk-5KRMNUL4.js';
|
|
13
13
|
import '../../chunk-C5HFK34M.js';
|
|
14
14
|
import '../../chunk-MWXYN6NY.js';
|
|
15
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-6SXSVKQY.js';
|
|
16
16
|
import '../../chunk-L5VSIPQD.js';
|
|
17
17
|
import '../../chunk-VTETQCR6.js';
|
|
18
|
-
import '../../chunk-
|
|
19
|
-
import '../../chunk-
|
|
18
|
+
import '../../chunk-E2EC6SAX.js';
|
|
19
|
+
import '../../chunk-GNUA7XT2.js';
|
|
20
20
|
import '../../chunk-RVRB27AN.js';
|
|
21
21
|
import '../../chunk-V5KG6CCV.js';
|
|
22
22
|
import '../../chunk-VSX2G7LA.js';
|
|
23
23
|
import { parseModelRef } from '../../chunk-RXGPFAMN.js';
|
|
24
|
-
import '../../chunk-
|
|
24
|
+
import '../../chunk-SGI5MRKP.js';
|
|
25
25
|
import '../../chunk-C3CAXQMA.js';
|
|
26
26
|
import '../../chunk-BOFL7GIF.js';
|
|
27
27
|
import '../../chunk-NSBPE2FW.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { dispatchCapability } from '../../chunk-KSUT5KAE.js';
|
|
2
|
-
import { AgentHarness, getBridgeLogger, registryHarnessConfig } from '../../chunk-
|
|
3
|
-
import { BUILTIN_HARNESS_CATALOG } from '../../chunk-
|
|
2
|
+
import { AgentHarness, getBridgeLogger, registryHarnessConfig } from '../../chunk-WW5NAU6N.js';
|
|
3
|
+
import { BUILTIN_HARNESS_CATALOG } from '../../chunk-BSMW3PX2.js';
|
|
4
4
|
import '../../chunk-G5SUWZEU.js';
|
|
5
5
|
import '../../chunk-G5SYFFMD.js';
|
|
6
6
|
import '../../chunk-VSX2G7LA.js';
|
|
7
7
|
import '../../chunk-RXGPFAMN.js';
|
|
8
|
-
import '../../chunk-
|
|
8
|
+
import '../../chunk-SGI5MRKP.js';
|
|
9
9
|
import '../../chunk-C3CAXQMA.js';
|
|
10
10
|
import '../../chunk-BOFL7GIF.js';
|
|
11
11
|
import '../../chunk-NSBPE2FW.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export { GeminiFamilyHarness, GeminiHarness, geminiHarnessTarget } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
1
|
+
export { GeminiFamilyHarness, GeminiHarness, geminiHarnessTarget } from '../../chunk-SHTXMERQ.js';
|
|
2
|
+
import '../../chunk-I5IF3JCG.js';
|
|
3
|
+
import '../../chunk-OY22B7E2.js';
|
|
4
4
|
import '../../chunk-5DE3DGVR.js';
|
|
5
5
|
import '../../chunk-7DN6JKP2.js';
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-WW5NAU6N.js';
|
|
7
|
+
import '../../chunk-F4CZQD3T.js';
|
|
8
|
+
import '../../chunk-BSMW3PX2.js';
|
|
9
9
|
import '../../chunk-G5SUWZEU.js';
|
|
10
10
|
import '../../chunk-VT6G5AJV.js';
|
|
11
11
|
import '../../chunk-VSX2G7LA.js';
|
|
12
12
|
import '../../chunk-RXGPFAMN.js';
|
|
13
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-SGI5MRKP.js';
|
|
14
14
|
import '../../chunk-C3CAXQMA.js';
|
|
15
15
|
import '../../chunk-BOFL7GIF.js';
|
|
16
16
|
import '../../chunk-NSBPE2FW.js';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { harnessSessionConfigHome, pruneSessionConfigDir, writeSessionConfigFile } from '../../chunk-NBAGV6L2.js';
|
|
2
|
-
import { SubprocessCliHarness, extractText, extractCost, extractTokens } from '../../chunk-
|
|
2
|
+
import { SubprocessCliHarness, extractText, extractCost, extractTokens } from '../../chunk-I5IF3JCG.js';
|
|
3
3
|
import '../../chunk-5DE3DGVR.js';
|
|
4
4
|
import '../../chunk-7DN6JKP2.js';
|
|
5
|
-
import { getBridgeLogger, registryHarnessConfig } from '../../chunk-
|
|
6
|
-
import { resolveEnvHarnessSession, resolveRegistryBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, isStockCatalogEndpoint, entrySurface, entryBaseUrl, entryModelIds } from '../../chunk-
|
|
7
|
-
import { BUILTIN_HARNESS_CATALOG, providerCredentialEnvName } from '../../chunk-
|
|
5
|
+
import { getBridgeLogger, registryHarnessConfig } from '../../chunk-WW5NAU6N.js';
|
|
6
|
+
import { resolveEnvHarnessSession, resolveRegistryBinding, credentialsForEveryProvider, registryModelEntries, selectableEntries, isStockCatalogEndpoint, entrySurface, entryBaseUrl, entryModelIds } from '../../chunk-F4CZQD3T.js';
|
|
7
|
+
import { BUILTIN_HARNESS_CATALOG, providerCredentialEnvName } from '../../chunk-BSMW3PX2.js';
|
|
8
8
|
import '../../chunk-G5SUWZEU.js';
|
|
9
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-6ARPZHOV.js';
|
|
10
10
|
import '../../chunk-4GY63JU6.js';
|
|
11
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-JIQUF3X2.js';
|
|
12
12
|
import '../../chunk-5KRMNUL4.js';
|
|
13
13
|
import '../../chunk-C5HFK34M.js';
|
|
14
14
|
import '../../chunk-MWXYN6NY.js';
|
|
15
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-6SXSVKQY.js';
|
|
16
16
|
import '../../chunk-L5VSIPQD.js';
|
|
17
17
|
import '../../chunk-VTETQCR6.js';
|
|
18
|
-
import '../../chunk-
|
|
19
|
-
import '../../chunk-
|
|
18
|
+
import '../../chunk-E2EC6SAX.js';
|
|
19
|
+
import '../../chunk-GNUA7XT2.js';
|
|
20
20
|
import '../../chunk-RVRB27AN.js';
|
|
21
21
|
import '../../chunk-V5KG6CCV.js';
|
|
22
22
|
import '../../chunk-VSX2G7LA.js';
|
|
23
23
|
import '../../chunk-RXGPFAMN.js';
|
|
24
|
-
import '../../chunk-
|
|
24
|
+
import '../../chunk-SGI5MRKP.js';
|
|
25
25
|
import '../../chunk-C3CAXQMA.js';
|
|
26
26
|
import '../../chunk-BOFL7GIF.js';
|
|
27
27
|
import '../../chunk-NSBPE2FW.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { checkToolInputSchema } from '../../chunk-3X7VTCPG.js';
|
|
2
|
-
import { materializeOmpProviders, isCredentialOmissionWarning, materializeOmpIdentityDir, registryModelEntries } from '../../chunk-
|
|
2
|
+
import { materializeOmpProviders, isCredentialOmissionWarning, materializeOmpIdentityDir, registryModelEntries } from '../../chunk-TCH5UDKT.js';
|
|
3
3
|
import { dispatchCapability } from '../../chunk-KSUT5KAE.js';
|
|
4
4
|
import { RUNNER_AGENT_ENV_KEYS, ReconfigureLedger, stripRunnerPrivateEnv, classifyGenericErrorMessage } from '../../chunk-5DE3DGVR.js';
|
|
5
5
|
import { wrapAgentCommand, resolveAgentExec } from '../../chunk-7DN6JKP2.js';
|
|
6
|
-
import { AgentHarness, getBridgeLogger, TOOL_ALLOWLIST_UNSUPPORTED, registryHarnessConfig } from '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import { BUILTIN_HARNESS_CATALOG } from '../../chunk-
|
|
6
|
+
import { AgentHarness, getBridgeLogger, TOOL_ALLOWLIST_UNSUPPORTED, registryHarnessConfig } from '../../chunk-WW5NAU6N.js';
|
|
7
|
+
import '../../chunk-F4CZQD3T.js';
|
|
8
|
+
import { BUILTIN_HARNESS_CATALOG } from '../../chunk-BSMW3PX2.js';
|
|
9
9
|
import '../../chunk-G5SUWZEU.js';
|
|
10
10
|
import { withActivityLabelJsonSchema } from '../../chunk-G5SYFFMD.js';
|
|
11
11
|
import '../../chunk-VSX2G7LA.js';
|
|
12
12
|
import '../../chunk-RXGPFAMN.js';
|
|
13
|
-
import '../../chunk-
|
|
13
|
+
import '../../chunk-SGI5MRKP.js';
|
|
14
14
|
import '../../chunk-C3CAXQMA.js';
|
|
15
15
|
import '../../chunk-BOFL7GIF.js';
|
|
16
16
|
import '../../chunk-NSBPE2FW.js';
|