@skaile/workspaces 6.5.0 → 6.7.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 +36 -0
- package/dist/ai-sdk.js +12 -19
- package/dist/ai-sdk.js.map +1 -1
- package/dist/app-sdk/index.js +1 -1
- package/dist/{asset-feeds-4I6Z4OI3.js → asset-feeds-4A7PJ4OB.js} +20 -20
- package/dist/{asset-feeds-4I6Z4OI3.js.map → asset-feeds-4A7PJ4OB.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/asset-manager/src/index.d.ts +89 -15
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/install-agent.d.ts +22 -1
- package/dist/asset-manager/src/install-agent.d.ts.map +1 -1
- package/dist/asset-manager/src/install-instances.d.ts +30 -1
- package/dist/asset-manager/src/install-instances.d.ts.map +1 -1
- package/dist/asset-manager/src/installer.d.ts +12 -0
- package/dist/asset-manager/src/installer.d.ts.map +1 -1
- package/dist/asset-manager/src/renderers.d.ts.map +1 -1
- package/dist/bridge/harnesses/claude-sdk.js +23 -17
- package/dist/bridge/harnesses/claude-sdk.js.map +1 -1
- package/dist/bridge/harnesses/codex.js +12 -11
- package/dist/bridge/harnesses/codex.js.map +1 -1
- package/dist/bridge/harnesses/continue.js +13 -11
- package/dist/bridge/harnesses/continue.js.map +1 -1
- package/dist/bridge/harnesses/echo.js +6 -5
- package/dist/bridge/harnesses/echo.js.map +1 -1
- package/dist/bridge/harnesses/gemini.js +9 -7
- package/dist/bridge/harnesses/goose.js +13 -11
- package/dist/bridge/harnesses/goose.js.map +1 -1
- package/dist/bridge/harnesses/omp.js +10 -8
- package/dist/bridge/harnesses/omp.js.map +1 -1
- package/dist/bridge/harnesses/opencode.js +13 -11
- package/dist/bridge/harnesses/opencode.js.map +1 -1
- package/dist/bridge/harnesses/qwen.js +10 -8
- package/dist/bridge/harnesses/qwen.js.map +1 -1
- package/dist/bridge/index.js +19 -17
- package/dist/bridge/src/ai-sdk.d.ts.map +1 -1
- package/dist/bridge/src/claude-sdk-surface.d.ts +2 -1
- package/dist/bridge/src/claude-sdk-surface.d.ts.map +1 -1
- package/dist/bridge/src/harness-binaries.d.ts +21 -0
- package/dist/bridge/src/harness-binaries.d.ts.map +1 -0
- package/dist/bridge/src/harness-model-check.d.ts +22 -6
- package/dist/bridge/src/harness-model-check.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/claude-sdk.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/continue.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/gemini.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/goose.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/omp-models-yml.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/omp.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/opencode.d.ts.map +1 -1
- package/dist/bridge/src/harnesses/qwen.d.ts.map +1 -1
- package/dist/bridge/src/index.d.ts +2 -1
- package/dist/bridge/src/index.d.ts.map +1 -1
- package/dist/{chunk-UZET67SO.js → chunk-237BMOZW.js} +4 -4
- package/dist/{chunk-UZET67SO.js.map → chunk-237BMOZW.js.map} +1 -1
- package/dist/{chunk-J5JWLKLB.js → chunk-37AYPPOO.js} +41 -19
- package/dist/chunk-37AYPPOO.js.map +1 -0
- package/dist/{chunk-3KSLUVKB.js → chunk-37X4A6VZ.js} +7 -7
- package/dist/{chunk-3KSLUVKB.js.map → chunk-37X4A6VZ.js.map} +1 -1
- package/dist/{chunk-EO7KGX6P.js → chunk-3HSLJAMJ.js} +4 -4
- package/dist/{chunk-EO7KGX6P.js.map → chunk-3HSLJAMJ.js.map} +1 -1
- package/dist/{chunk-AFTZNR2W.js → chunk-3W6XZQ2Y.js} +3 -3
- package/dist/{chunk-AFTZNR2W.js.map → chunk-3W6XZQ2Y.js.map} +1 -1
- package/dist/{chunk-SZTHSPRC.js → chunk-4C2E5QUP.js} +4 -3
- package/dist/chunk-4C2E5QUP.js.map +1 -0
- package/dist/{chunk-T7HGEMNB.js → chunk-4CD2R4MJ.js} +5 -4
- package/dist/chunk-4CD2R4MJ.js.map +1 -0
- package/dist/{chunk-TNQLDEM6.js → chunk-6RPS7JEH.js} +302 -54
- package/dist/chunk-6RPS7JEH.js.map +1 -0
- package/dist/{chunk-NSIOBKDX.js → chunk-6UP2EDFN.js} +4 -313
- package/dist/chunk-6UP2EDFN.js.map +1 -0
- package/dist/{chunk-KUADKMNX.js → chunk-72TLO2AG.js} +4 -4
- package/dist/{chunk-KUADKMNX.js.map → chunk-72TLO2AG.js.map} +1 -1
- package/dist/{chunk-HPA3RP5E.js → chunk-AO57IFME.js} +3 -3
- package/dist/{chunk-HPA3RP5E.js.map → chunk-AO57IFME.js.map} +1 -1
- package/dist/{chunk-G5SYFFMD.js → chunk-ASBZOTEO.js} +2 -2
- package/dist/{chunk-G5SYFFMD.js.map → chunk-ASBZOTEO.js.map} +1 -1
- package/dist/{chunk-YBEJCQE5.js → chunk-BB5EJLKZ.js} +3 -3
- package/dist/{chunk-YBEJCQE5.js.map → chunk-BB5EJLKZ.js.map} +1 -1
- package/dist/{chunk-LE6QS4PG.js → chunk-BKLDBUQA.js} +3 -3
- package/dist/{chunk-LE6QS4PG.js.map → chunk-BKLDBUQA.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-J6YPKMMY.js → chunk-CTRTFMCX.js} +6 -6
- package/dist/{chunk-J6YPKMMY.js.map → chunk-CTRTFMCX.js.map} +1 -1
- package/dist/{chunk-ETF6Q3R3.js → chunk-DFP476EU.js} +8 -4
- package/dist/chunk-DFP476EU.js.map +1 -0
- package/dist/{chunk-TGUMN5G7.js → chunk-G44FFUMA.js} +13 -11
- package/dist/chunk-G44FFUMA.js.map +1 -0
- package/dist/{chunk-G4NCSYWR.js → chunk-G7NMF5WQ.js} +4 -4
- package/dist/{chunk-G4NCSYWR.js.map → chunk-G7NMF5WQ.js.map} +1 -1
- package/dist/{chunk-KA2GLAPS.js → chunk-GAIMSCZ7.js} +10 -8
- package/dist/chunk-GAIMSCZ7.js.map +1 -0
- 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-7H4GTP7V.js → chunk-HLAEYFUN.js} +3 -3
- package/dist/{chunk-7H4GTP7V.js.map → chunk-HLAEYFUN.js.map} +1 -1
- package/dist/{chunk-B436SG5P.js → chunk-HMVAGPYR.js} +48 -12
- package/dist/chunk-HMVAGPYR.js.map +1 -0
- package/dist/{chunk-EN5REMWV.js → chunk-HPXONAI2.js} +7 -5
- package/dist/chunk-HPXONAI2.js.map +1 -0
- 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-USVUS4DJ.js → chunk-IRK3LNG3.js} +7 -7
- package/dist/{chunk-USVUS4DJ.js.map → chunk-IRK3LNG3.js.map} +1 -1
- package/dist/{chunk-7EMS2GZO.js → chunk-J7VEQORJ.js} +70 -17
- package/dist/chunk-J7VEQORJ.js.map +1 -0
- package/dist/{chunk-2HS357RA.js → chunk-KO3VSZQP.js} +48 -19
- package/dist/chunk-KO3VSZQP.js.map +1 -0
- package/dist/{chunk-KSH5CFQS.js → chunk-KORDNXKA.js} +3 -3
- package/dist/{chunk-KSH5CFQS.js.map → chunk-KORDNXKA.js.map} +1 -1
- package/dist/{chunk-Z2X7UZEZ.js → chunk-L3JQJ6D5.js} +6 -6
- package/dist/{chunk-Z2X7UZEZ.js.map → chunk-L3JQJ6D5.js.map} +1 -1
- package/dist/{chunk-OBZ5WQ32.js → chunk-L7QOZG5V.js} +3 -3
- package/dist/{chunk-OBZ5WQ32.js.map → chunk-L7QOZG5V.js.map} +1 -1
- package/dist/{chunk-B4BLJUYN.js → chunk-LX4TTTRR.js} +79 -36
- package/dist/chunk-LX4TTTRR.js.map +1 -0
- package/dist/{chunk-KSUT5KAE.js → chunk-LZPJOF7Y.js} +3 -3
- package/dist/{chunk-KSUT5KAE.js.map → chunk-LZPJOF7Y.js.map} +1 -1
- package/dist/{chunk-OLHHN3NO.js → chunk-N6ZGB5ES.js} +4 -3
- package/dist/chunk-N6ZGB5ES.js.map +1 -0
- package/dist/{chunk-2M3VLKT2.js → chunk-NURTGAWM.js} +3 -3
- package/dist/{chunk-2M3VLKT2.js.map → chunk-NURTGAWM.js.map} +1 -1
- package/dist/{chunk-22ZX33H6.js → chunk-O5Y7VMVQ.js} +16 -15
- package/dist/chunk-O5Y7VMVQ.js.map +1 -0
- package/dist/{chunk-IWKKTCXY.js → chunk-O7ADRMCR.js} +67 -16
- package/dist/chunk-O7ADRMCR.js.map +1 -0
- package/dist/{chunk-SRTWKZP2.js → chunk-OGTQUEAO.js} +21 -14
- package/dist/chunk-OGTQUEAO.js.map +1 -0
- package/dist/{chunk-U6KRTCNA.js → chunk-OSABUEWA.js} +3 -3
- package/dist/{chunk-U6KRTCNA.js.map → chunk-OSABUEWA.js.map} +1 -1
- package/dist/{chunk-E6UWI3TP.js → chunk-PLLZSKOO.js} +3 -3
- package/dist/{chunk-E6UWI3TP.js.map → chunk-PLLZSKOO.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-TROEC2Z2.js → chunk-Q2NYTMT6.js} +18 -17
- package/dist/chunk-Q2NYTMT6.js.map +1 -0
- package/dist/{chunk-23SG4JRV.js → chunk-QC5BYUED.js} +52 -16
- package/dist/chunk-QC5BYUED.js.map +1 -0
- package/dist/{chunk-WFLQMAR5.js → chunk-QCR5AE5E.js} +5 -5
- package/dist/{chunk-WFLQMAR5.js.map → chunk-QCR5AE5E.js.map} +1 -1
- package/dist/{chunk-THX5EE3K.js → chunk-QW5B3TEO.js} +10 -4
- package/dist/chunk-QW5B3TEO.js.map +1 -0
- package/dist/{chunk-TDPQOR3C.js → chunk-RAHAZ7LP.js} +2 -2
- package/dist/{chunk-TDPQOR3C.js.map → chunk-RAHAZ7LP.js.map} +1 -1
- package/dist/{chunk-ZUU2PLA3.js → chunk-SBNUXJ6E.js} +3 -3
- package/dist/{chunk-ZUU2PLA3.js.map → chunk-SBNUXJ6E.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-UMLCKKIA.js → chunk-TMJBEGS4.js} +36 -7
- package/dist/chunk-TMJBEGS4.js.map +1 -0
- package/dist/{chunk-K4DHYTUM.js → chunk-TXX3OUYI.js} +3 -3
- package/dist/{chunk-K4DHYTUM.js.map → chunk-TXX3OUYI.js.map} +1 -1
- package/dist/{chunk-SN663FCA.js → chunk-U52FYGK5.js} +5 -5
- package/dist/{chunk-SN663FCA.js.map → chunk-U52FYGK5.js.map} +1 -1
- package/dist/{chunk-S7DVT2BV.js → chunk-UCB7FK25.js} +10 -8
- package/dist/chunk-UCB7FK25.js.map +1 -0
- 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-X44XKBZX.js → chunk-WFK4MUBL.js} +21 -7
- package/dist/chunk-WFK4MUBL.js.map +1 -0
- package/dist/{chunk-YRC2EFOU.js → chunk-WIYVR24B.js} +4 -4
- package/dist/{chunk-YRC2EFOU.js.map → chunk-WIYVR24B.js.map} +1 -1
- package/dist/{chunk-6EKQENAP.js → chunk-WKENHNDM.js} +6 -6
- package/dist/{chunk-6EKQENAP.js.map → chunk-WKENHNDM.js.map} +1 -1
- package/dist/chunk-WWSRIT3J.js +59 -0
- package/dist/chunk-WWSRIT3J.js.map +1 -0
- package/dist/chunk-XON6ODIC.js +315 -0
- package/dist/chunk-XON6ODIC.js.map +1 -0
- package/dist/{chunk-2IAWVUW3.js → chunk-ZBA4P5TD.js} +4 -4
- package/dist/{chunk-2IAWVUW3.js.map → chunk-ZBA4P5TD.js.map} +1 -1
- package/dist/{chunk-IS3NIZBX.js → chunk-ZDTDS62B.js} +596 -127
- package/dist/chunk-ZDTDS62B.js.map +1 -0
- package/dist/{chunk-DNXPXJ3X.js → chunk-ZM4SDVUV.js} +79 -20
- package/dist/chunk-ZM4SDVUV.js.map +1 -0
- package/dist/{claude-code-JY6CYEG7.js → claude-code-BLFRZU2X.js} +5 -5
- package/dist/{claude-code-JY6CYEG7.js.map → claude-code-BLFRZU2X.js.map} +1 -1
- package/dist/cli/index.js +481 -205
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/src/agent-pins.d.ts +9 -3
- package/dist/cli/src/agent-pins.d.ts.map +1 -1
- package/dist/cli/src/commands/asset-cmd.d.ts +1 -1
- package/dist/cli/src/commands/asset-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/cache.d.ts.map +1 -1
- package/dist/cli/src/commands/catalog.d.ts +2 -0
- package/dist/cli/src/commands/catalog.d.ts.map +1 -1
- package/dist/cli/src/commands/config.d.ts.map +1 -1
- package/dist/cli/src/commands/harness-preflight.d.ts +38 -0
- package/dist/cli/src/commands/harness-preflight.d.ts.map +1 -0
- package/dist/cli/src/commands/library-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/library-index.d.ts +16 -0
- package/dist/cli/src/commands/library-index.d.ts.map +1 -1
- package/dist/cli/src/commands/migrate-assets.d.ts +5 -0
- package/dist/cli/src/commands/migrate-assets.d.ts.map +1 -1
- package/dist/cli/src/commands/migrate-harness.d.ts +15 -7
- package/dist/cli/src/commands/migrate-harness.d.ts.map +1 -1
- package/dist/cli/src/commands/migrate.d.ts.map +1 -1
- package/dist/cli/src/commands/outdated.d.ts.map +1 -1
- package/dist/cli/src/commands/plugin-registry-cmd.d.ts.map +1 -1
- package/dist/cli/src/commands/project.d.ts +14 -0
- package/dist/cli/src/commands/project.d.ts.map +1 -1
- package/dist/cli/src/commands/run.d.ts.map +1 -1
- package/dist/cli/src/commands/serve-preflight.d.ts +6 -5
- package/dist/cli/src/commands/serve-preflight.d.ts.map +1 -1
- package/dist/cli/src/commands/serve.d.ts.map +1 -1
- package/dist/cli/src/commands/session.d.ts.map +1 -1
- package/dist/cli/src/commands/source.d.ts +11 -0
- package/dist/cli/src/commands/source.d.ts.map +1 -1
- package/dist/cli/src/commands/update.d.ts.map +1 -1
- package/dist/cli/src/commands/validate-instances.d.ts +6 -0
- package/dist/cli/src/commands/validate-instances.d.ts.map +1 -1
- package/dist/cli/src/commands/validate.d.ts.map +1 -1
- package/dist/cli/src/commands/why.d.ts.map +1 -1
- package/dist/cli/src/plugin-store/reconcile.d.ts.map +1 -1
- package/dist/cli/src/session-hint.d.ts +7 -0
- package/dist/cli/src/session-hint.d.ts.map +1 -0
- package/dist/connectors/config.js +4 -4
- package/dist/connectors/index.js +23 -21
- package/dist/connectors/src/connector-manager.d.ts.map +1 -1
- package/dist/connectors/src/managed-gitconfig.d.ts +6 -4
- package/dist/connectors/src/managed-gitconfig.d.ts.map +1 -1
- package/dist/connectors/src/mount-ledger.d.ts.map +1 -1
- package/dist/{connectors-VLFOQNS6.js → connectors-OJJU4LSN.js} +26 -24
- package/dist/{connectors-VLFOQNS6.js.map → connectors-OJJU4LSN.js.map} +1 -1
- package/dist/connectors-shared/index.js +2 -2
- 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/agent-instances.d.ts +11 -0
- package/dist/core/src/agent-instances.d.ts.map +1 -1
- package/dist/core/src/index.d.ts +3 -2
- package/dist/core/src/index.d.ts.map +1 -1
- 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/publish-manifest.d.ts +20 -6
- package/dist/core/src/publish-manifest.d.ts.map +1 -1
- package/dist/core/src/repo-manager.d.ts +9 -0
- package/dist/core/src/repo-manager.d.ts.map +1 -1
- package/dist/core/src/run-state-ignore.d.ts +17 -0
- package/dist/core/src/run-state-ignore.d.ts.map +1 -0
- 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/discovery/src/builtin-providers.d.ts.map +1 -1
- package/dist/discovery/src/discover-manifest.d.ts.map +1 -1
- package/dist/discovery/src/tree-entries.d.ts.map +1 -1
- package/dist/{ensure-sources-6O54DUQB.js → ensure-sources-F6VQDCWY.js} +28 -26
- package/dist/ensure-sources-F6VQDCWY.js.map +1 -0
- package/dist/factory-assets/connectors/box.js +23 -21
- package/dist/factory-assets/connectors/deploy.js +23 -21
- package/dist/factory-assets/connectors/devserver.js +23 -21
- package/dist/factory-assets/connectors/flow/adapter.js +23 -21
- package/dist/factory-assets/connectors/flow/engine/router-settlement.d.ts +2 -0
- package/dist/factory-assets/connectors/flow/engine/router-settlement.d.ts.map +1 -1
- package/dist/factory-assets/connectors/flow/engine.js +7 -7
- package/dist/factory-assets/connectors/flow/run-flow.js +25 -23
- package/dist/factory-assets/connectors/flow.js +23 -21
- package/dist/factory-assets/connectors/git/CONNECTOR.md +4 -1
- package/dist/factory-assets/connectors/git/exec.d.ts.map +1 -1
- package/dist/factory-assets/connectors/git.js +23 -21
- package/dist/factory-assets/connectors/gmail.js +23 -21
- package/dist/factory-assets/connectors/googledrive.js +23 -21
- package/dist/factory-assets/connectors/local.js +23 -21
- package/dist/factory-assets/connectors/mattermost.js +23 -21
- package/dist/factory-assets/connectors/memory.js +23 -21
- package/dist/factory-assets/connectors/minio.js +23 -21
- package/dist/factory-assets/connectors/postgres.js +23 -21
- package/dist/factory-assets/connectors/s3.js +23 -21
- package/dist/factory-assets/connectors/sharepoint.js +23 -21
- package/dist/factory-assets/connectors/sqlite.js +23 -21
- package/dist/factory-assets/connectors/static-server.js +23 -21
- package/dist/factory-assets/connectors/tunnel.js +23 -21
- package/dist/factory-assets/connectors/webdav.js +23 -21
- package/dist/factory-assets/connectors/xstate-store.js +23 -21
- package/dist/factory-assets/connectors/xstate.js +23 -21
- package/dist/factory-assets/skills/authoring-skaile-assets/SKILL.md +14 -1
- package/dist/{flows-CIUPK7SB.js → flows-I6ODIPZZ.js} +11 -11
- package/dist/{flows-CIUPK7SB.js.map → flows-I6ODIPZZ.js.map} +1 -1
- package/dist/{helpers-YHDQHQEQ.js → helpers-PJNUTZXZ.js} +28 -26
- package/dist/{helpers-YHDQHQEQ.js.map → helpers-PJNUTZXZ.js.map} +1 -1
- package/dist/library/index.js +9 -9
- package/dist/library/install.js +3 -3
- package/dist/library/src/manifest-writer.d.ts +5 -0
- package/dist/library/src/manifest-writer.d.ts.map +1 -1
- package/dist/{library-publish-MUGUST43.js → library-publish-FNNDWVBO.js} +54 -52
- package/dist/library-publish-FNNDWVBO.js.map +1 -0
- package/dist/model-endpoint/index.js +10 -9
- package/dist/open-library-R5EZROFN.js +59 -0
- package/dist/{open-library-BVQCB37E.js.map → open-library-R5EZROFN.js.map} +1 -1
- package/dist/{open-registry-JCSIAKEC.js → open-registry-RZW2AFD6.js} +13 -13
- package/dist/{open-registry-JCSIAKEC.js.map → open-registry-RZW2AFD6.js.map} +1 -1
- package/dist/{paths-XLKCAFRZ.js → paths-RPK5PNZQ.js} +9 -9
- package/dist/{paths-XLKCAFRZ.js.map → paths-RPK5PNZQ.js.map} +1 -1
- package/dist/{plugin-store-NGRUTCJI.js → plugin-store-OJTERUEZ.js} +9 -9
- package/dist/{plugin-store-NGRUTCJI.js.map → plugin-store-OJTERUEZ.js.map} +1 -1
- package/dist/project-S2FT3LLR.js +90 -0
- package/dist/{project-BGYMLAS6.js.map → project-S2FT3LLR.js.map} +1 -1
- package/dist/resolver/index.js +7 -7
- package/dist/runner/index.js +39 -37
- package/dist/runner/src/capability-roundtrip.d.ts +6 -6
- package/dist/runner/src/capability-roundtrip.d.ts.map +1 -1
- package/dist/runner/src/composition/run-snapshot.d.ts +7 -1
- package/dist/runner/src/composition/run-snapshot.d.ts.map +1 -1
- 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 +19 -17
- package/dist/sdk/core.js +6 -6
- package/dist/sdk/flow.js +7 -7
- package/dist/sdk/index.js +39 -37
- package/dist/sdk/index.js.map +1 -1
- package/dist/sdk/resolver.js +7 -7
- package/dist/sdk/runner.js +39 -37
- package/dist/sdk/session.js +2 -2
- 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/sdk/types.js +1 -1
- package/dist/serve-preflight-AADSOUO2.js +58 -0
- package/dist/{serve-preflight-GQY5DZX6.js.map → serve-preflight-AADSOUO2.js.map} +1 -1
- package/dist/session/index.js +2 -2
- package/dist/{setup-2NWSKSCO.js → setup-HOAJHUFQ.js} +29 -27
- package/dist/setup-HOAJHUFQ.js.map +1 -0
- package/dist/{skills-PXZOL2FZ.js → skills-KHHW3RZ3.js} +12 -12
- package/dist/{skills-PXZOL2FZ.js.map → skills-KHHW3RZ3.js.map} +1 -1
- package/dist/source-FOELFCY6.js +88 -0
- package/dist/{source-XA3L4H6I.js.map → source-FOELFCY6.js.map} +1 -1
- package/dist/{source-manifest-publish-QEGMTS33.js → source-manifest-publish-Q7P5AEVU.js} +51 -49
- package/dist/source-manifest-publish-Q7P5AEVU.js.map +1 -0
- 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 +63 -44
- package/dist/tui/index.js.map +1 -1
- package/dist/tui/src/repl.d.ts +10 -0
- package/dist/tui/src/repl.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/src/version.d.ts +4 -4
- package/dist/workspace-plugin/adapters/mcp.js +30 -28
- 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-22ZX33H6.js.map +0 -1
- package/dist/chunk-23SG4JRV.js.map +0 -1
- package/dist/chunk-2HS357RA.js.map +0 -1
- package/dist/chunk-7EMS2GZO.js.map +0 -1
- package/dist/chunk-AVFRFGM2.js.map +0 -1
- package/dist/chunk-B436SG5P.js.map +0 -1
- package/dist/chunk-B4BLJUYN.js.map +0 -1
- package/dist/chunk-DKXNKFKP.js.map +0 -1
- package/dist/chunk-DNXPXJ3X.js.map +0 -1
- package/dist/chunk-EN5REMWV.js.map +0 -1
- package/dist/chunk-ETF6Q3R3.js.map +0 -1
- package/dist/chunk-IS3NIZBX.js.map +0 -1
- package/dist/chunk-IWKKTCXY.js.map +0 -1
- package/dist/chunk-J5JWLKLB.js.map +0 -1
- package/dist/chunk-KA2GLAPS.js.map +0 -1
- package/dist/chunk-NSIOBKDX.js.map +0 -1
- package/dist/chunk-OLHHN3NO.js.map +0 -1
- package/dist/chunk-S7DVT2BV.js.map +0 -1
- package/dist/chunk-SRTWKZP2.js.map +0 -1
- package/dist/chunk-SZTHSPRC.js.map +0 -1
- package/dist/chunk-T7HGEMNB.js.map +0 -1
- package/dist/chunk-TGUMN5G7.js.map +0 -1
- package/dist/chunk-THX5EE3K.js.map +0 -1
- package/dist/chunk-TNQLDEM6.js.map +0 -1
- package/dist/chunk-TROEC2Z2.js.map +0 -1
- package/dist/chunk-UMLCKKIA.js.map +0 -1
- package/dist/chunk-X44XKBZX.js.map +0 -1
- package/dist/ensure-sources-6O54DUQB.js.map +0 -1
- package/dist/library-publish-MUGUST43.js.map +0 -1
- package/dist/open-library-BVQCB37E.js +0 -57
- package/dist/project-BGYMLAS6.js +0 -88
- package/dist/serve-preflight-GQY5DZX6.js +0 -56
- package/dist/setup-2NWSKSCO.js.map +0 -1
- package/dist/source-XA3L4H6I.js +0 -86
- package/dist/source-manifest-publish-QEGMTS33.js.map +0 -1
|
@@ -1,40 +1,41 @@
|
|
|
1
|
-
import { WorkspacePlugin } from './chunk-
|
|
2
|
-
import { buildWorkspaceToolDefs } from './chunk-
|
|
3
|
-
import { findAiAssetsRoot } from './chunk-
|
|
4
|
-
import { startModelEndpoint } from './chunk-
|
|
5
|
-
import { WebSocketServerTransport } from './chunk-
|
|
1
|
+
import { WorkspacePlugin } from './chunk-RAHAZ7LP.js';
|
|
2
|
+
import { buildWorkspaceToolDefs } from './chunk-37X4A6VZ.js';
|
|
3
|
+
import { findAiAssetsRoot } from './chunk-HQAPUPBE.js';
|
|
4
|
+
import { startModelEndpoint } from './chunk-U52FYGK5.js';
|
|
5
|
+
import { WebSocketServerTransport } from './chunk-HLAEYFUN.js';
|
|
6
6
|
import { assembleSystemPrompt, buildCapabilitiesPromptSection } from './chunk-W3UDISS2.js';
|
|
7
|
-
import { prepareNativePolicy, codexInstanceEnvironment, parseCodexCredential, parseCodexRefreshInput, parseCodexRefreshResult } from './chunk-
|
|
8
|
-
import { resolveFlowPath } from './chunk-
|
|
9
|
-
import { findAiAssetsRoot as findAiAssetsRoot$1, deployCatalogEntry, undeployCatalogEntry } from './chunk-
|
|
10
|
-
import { ConnectFailureCarryOver, registerBuiltinConnectors, listConnectors, buildConnectorPromptSection, findMissingPackages, installNpmPackages, ConnectorManager, buildSdkConnectorTools, buildLazySdkFlowTools, describeFlowOperations, buildConnectorToolDefs, writeUserGitconfigInclude, buildFlowToolDefs, SessionNodeExecutor, SessionSubpromptRunner, ClassifierSubpromptRunner, SessionInlineSubFlowRunner, driveOrchestratorTurn, buildSdkFlowTools } from './chunk-
|
|
11
|
-
import { loadYamlConnectorDeclarations, withMaterializedConnectorDeclarations, SecretProviderChain, ConnectorStartupError, isKnownSecretRef, EnvSecretProvider, PreMintedSecretProvider, InMemorySecretProvider, resolvedConfigToDeclarations, deriveSingleMaterializedConnectorDeclaration } from './chunk-
|
|
12
|
-
import { EventNormalizer } from './chunk-
|
|
13
|
-
import { sessionSurfaceNotice, approvalCardOf, APPROVE_ONCE, DENY, probeResumeTranscript, transcriptStoreForRuntime } from './chunk-
|
|
14
|
-
import { codexLoginFallbackNotice } from './chunk-
|
|
7
|
+
import { prepareNativePolicy, codexInstanceEnvironment, parseCodexCredential, parseCodexRefreshInput, parseCodexRefreshResult } from './chunk-CMXDFTA2.js';
|
|
8
|
+
import { resolveFlowPath } from './chunk-IRK3LNG3.js';
|
|
9
|
+
import { findAiAssetsRoot as findAiAssetsRoot$1, deployCatalogEntry, undeployCatalogEntry } from './chunk-USSP43U3.js';
|
|
10
|
+
import { ConnectFailureCarryOver, registerBuiltinConnectors, listConnectors, buildConnectorPromptSection, findMissingPackages, installNpmPackages, ConnectorManager, buildSdkConnectorTools, buildLazySdkFlowTools, describeFlowOperations, buildConnectorToolDefs, writeUserGitconfigInclude, buildFlowToolDefs, SessionNodeExecutor, SessionSubpromptRunner, ClassifierSubpromptRunner, SessionInlineSubFlowRunner, driveOrchestratorTurn, buildSdkFlowTools } from './chunk-LX4TTTRR.js';
|
|
11
|
+
import { loadYamlConnectorDeclarations, withMaterializedConnectorDeclarations, SecretProviderChain, ConnectorStartupError, isKnownSecretRef, EnvSecretProvider, PreMintedSecretProvider, InMemorySecretProvider, resolvedConfigToDeclarations, deriveSingleMaterializedConnectorDeclaration } from './chunk-ZBA4P5TD.js';
|
|
12
|
+
import { EventNormalizer } from './chunk-HMVAGPYR.js';
|
|
13
|
+
import { sessionSurfaceNotice, approvalCardOf, APPROVE_ONCE, DENY, probeResumeTranscript, transcriptStoreForRuntime } from './chunk-HPXONAI2.js';
|
|
14
|
+
import { codexLoginFallbackNotice } from './chunk-N6ZGB5ES.js';
|
|
15
15
|
import { CodexNativeStateUnavailable } from './chunk-LOO5CB5M.js';
|
|
16
|
-
import { dispatchCapability } from './chunk-
|
|
16
|
+
import { dispatchCapability } from './chunk-LZPJOF7Y.js';
|
|
17
17
|
import { classifyClaudeSdkError } from './chunk-5DE3DGVR.js';
|
|
18
18
|
import { agentExecRequested } from './chunk-7DN6JKP2.js';
|
|
19
|
-
import { toAgentEffort, toMergedRegistry } from './chunk-
|
|
20
|
-
import { unresolvedProviderCredentials, harnessCapabilities, createHarness,
|
|
21
|
-
import {
|
|
19
|
+
import { toAgentEffort, toMergedRegistry } from './chunk-PLLZSKOO.js';
|
|
20
|
+
import { unresolvedProviderCredentials, harnessCapabilities, createHarness, providerCredentialEnvName, registryCredentialEnv, supportsLiveToolUpdates } from './chunk-XON6ODIC.js';
|
|
21
|
+
import { catalogLayer, AI_PROVIDER_PRESETS } from './chunk-6UP2EDFN.js';
|
|
22
|
+
import { loadFlow } from './chunk-WFK4MUBL.js';
|
|
22
23
|
import { renderStimulusPrompt } from './chunk-WD3L5QSU.js';
|
|
23
|
-
import { TERMINAL_AGENT_RUN_STATUSES, withActivityLabelJsonSchema, TOOL_ACTIVITY_PROMPT_SECTION, SESSION_ROOT_CONNECTOR_ID, PLATFORM_BLOCKS_RUNTIME_FEATURE, PROTOCOL_VERSION, deliveryClassOf } from './chunk-
|
|
24
|
-
import { knowledgeKindProvider, scanLibraryRoot, LocalIndex } from './chunk-
|
|
25
|
-
import { createDefaultKindRegistry } from './chunk-
|
|
24
|
+
import { TERMINAL_AGENT_RUN_STATUSES, withActivityLabelJsonSchema, TOOL_ACTIVITY_PROMPT_SECTION, SESSION_ROOT_CONNECTOR_ID, PLATFORM_BLOCKS_RUNTIME_FEATURE, PROTOCOL_VERSION, deliveryClassOf } from './chunk-ASBZOTEO.js';
|
|
25
|
+
import { knowledgeKindProvider, scanLibraryRoot, LocalIndex } from './chunk-G44FFUMA.js';
|
|
26
|
+
import { createDefaultKindRegistry } from './chunk-O5Y7VMVQ.js';
|
|
26
27
|
import { parseFlowDefinition } from './chunk-JRN5QF4C.js';
|
|
27
28
|
import { BindingSchema, effectiveComposes, AgentManifestSchema, AgentTriggerSchema, ANTHROPIC_MODEL_ALIASES } from './chunk-VT6G5AJV.js';
|
|
28
|
-
import { readLock, buildAgentPromptSections, resolveSettings, loadProviderRegistry, resolveLibraryDir } from './chunk-
|
|
29
|
-
import { resolveRuntimeAssets } from './chunk-
|
|
29
|
+
import { readLock, ensureRunStateIgnored, buildAgentPromptSections, resolveSettings, loadProviderRegistry, resolveLibraryDir } from './chunk-TMJBEGS4.js';
|
|
30
|
+
import { resolveRuntimeAssets } from './chunk-G7NMF5WQ.js';
|
|
30
31
|
import { DEFAULT_HARNESS_ID, resolveHarnessPaths } from './chunk-C5HFK34M.js';
|
|
31
|
-
import { matchPin, DEFAULT_AGENT_INSTANCE_ID, effectiveAgentInstances, resolveAgentDefinitionDir, AgentRefResolutionError, resolveSkWorkspaceConfig, resolveAgentDir, agentSourceCacheDir, loadMcpServerDeclarations, COMPACTION_DEFAULTS, resolveCompactionThresholdPercent, getGlobalCacheDir, sourceCacheKey, validateAssetRecipeAttr, deriveSingleMaterializedMcpDeclaration, stageMaterializedSkills, readSkillAllowList, isStagedSkillMarkerFor, unstageSkill, STAGED_SKILL_MARKER } from './chunk-
|
|
32
|
-
import { globalSkaileDir } from './chunk-L5VSIPQD.js';
|
|
32
|
+
import { matchPin, DEFAULT_AGENT_INSTANCE_ID, effectiveAgentInstances, resolveAgentDefinitionDir, AgentRefResolutionError, resolveSkWorkspaceConfig, resolveAgentDir, agentSourceCacheDir, loadMcpServerDeclarations, COMPACTION_DEFAULTS, resolveCompactionThresholdPercent, getGlobalCacheDir, sourceCacheKey, validateAssetRecipeAttr, deriveSingleMaterializedMcpDeclaration, stageMaterializedSkills, readSkillAllowList, isStagedSkillMarkerFor, unstageSkill, STAGED_SKILL_MARKER } from './chunk-O7ADRMCR.js';
|
|
33
|
+
import { globalSkaileDir, globalCacheRoot } from './chunk-L5VSIPQD.js';
|
|
33
34
|
import { harnessNameForHarnessId, SUPPORTED_HARNESSES, HARNESS_TARGETS } from './chunk-VTETQCR6.js';
|
|
34
|
-
import { withFsDeadline, FsDeadlineError, fsDeadlineMs, parseFrontmatter, tryWithFsDeadline } from './chunk-
|
|
35
|
+
import { withFsDeadline, FsDeadlineError, fsDeadlineMs, parseFrontmatter, tryWithFsDeadline } from './chunk-GNUA7XT2.js';
|
|
35
36
|
import { parseAssetRef } from './chunk-V5KG6CCV.js';
|
|
36
37
|
import { pickRegistryEntries, registryEntries, resolveEntryBaseUrl, parseModelRef, isEntryEnabled, parseCredentialRef } from './chunk-RXGPFAMN.js';
|
|
37
|
-
import { resolveLogStoreConfig, createLogStoreFromConfig, OnLogBridgeSink, WsLogSink, resolveLogsRetention, enforceLogsRetention } from './chunk-
|
|
38
|
+
import { resolveLogStoreConfig, createLogStoreFromConfig, OnLogBridgeSink, WsLogSink, resolveLogsRetention, enforceLogsRetention, scrubLogText } from './chunk-SGI5MRKP.js';
|
|
38
39
|
import { getLogStore, registerLogStore, createLogger, resetLogStore, isUnwritableStreamError, markStreamBroken, isBrokenPipeError, redactCredentials } from './chunk-BOFL7GIF.js';
|
|
39
40
|
import { __require } from './chunk-NSBPE2FW.js';
|
|
40
41
|
import { createInterface } from 'readline';
|
|
@@ -1429,6 +1430,22 @@ function buildCompositionRunSnapshot(sessionId, items, promptVersion) {
|
|
|
1429
1430
|
items: entries
|
|
1430
1431
|
};
|
|
1431
1432
|
}
|
|
1433
|
+
var MAX_RUN_SNAPSHOTS = 20;
|
|
1434
|
+
async function pruneRunSnapshots(projectDir, except, keep) {
|
|
1435
|
+
const dir = path3.join(projectDir, RUN_SNAPSHOT_DIR);
|
|
1436
|
+
try {
|
|
1437
|
+
const names = (await fs8.readdir(dir)).filter((n) => n.endsWith(".json"));
|
|
1438
|
+
const dated = await Promise.all(
|
|
1439
|
+
names.map(async (name) => ({
|
|
1440
|
+
file: path3.join(dir, name),
|
|
1441
|
+
mtime: (await fs8.stat(path3.join(dir, name))).mtimeMs
|
|
1442
|
+
}))
|
|
1443
|
+
);
|
|
1444
|
+
const stale = dated.filter((d) => d.file !== except).sort((a, b) => b.mtime - a.mtime).slice(Math.max(keep - 1, 0));
|
|
1445
|
+
await Promise.all(stale.map((d) => fs8.rm(d.file, { force: true })));
|
|
1446
|
+
} catch {
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1432
1449
|
async function saveCompositionRunSnapshot(projectDir, snapshot) {
|
|
1433
1450
|
const file = compositionRunSnapshotPath(projectDir, snapshot.session_id);
|
|
1434
1451
|
await fs8.mkdir(path3.dirname(file), { recursive: true });
|
|
@@ -1436,6 +1453,8 @@ async function saveCompositionRunSnapshot(projectDir, snapshot) {
|
|
|
1436
1453
|
await fs8.writeFile(tmp, `${JSON.stringify(snapshot, null, 2)}
|
|
1437
1454
|
`, "utf-8");
|
|
1438
1455
|
await fs8.rename(tmp, file);
|
|
1456
|
+
ensureRunStateIgnored(projectDir);
|
|
1457
|
+
await pruneRunSnapshots(projectDir, file, MAX_RUN_SNAPSHOTS);
|
|
1439
1458
|
}
|
|
1440
1459
|
|
|
1441
1460
|
// runner/src/composition/resolve-instance.ts
|
|
@@ -5042,6 +5061,63 @@ async function nodeHttpsFetch(url, init, agent) {
|
|
|
5042
5061
|
req.end(body);
|
|
5043
5062
|
});
|
|
5044
5063
|
}
|
|
5064
|
+
var SNAPSHOT_FORMAT = 1;
|
|
5065
|
+
function mcpToolsSnapshotDir() {
|
|
5066
|
+
return process.env.SKAILE_MCP_TOOLS_CACHE_DIR || join(globalCacheRoot(), "mcp-tools");
|
|
5067
|
+
}
|
|
5068
|
+
function mcpToolsSnapshotKey(decl) {
|
|
5069
|
+
return createHash("sha256").update(JSON.stringify([decl.id, decl.command ?? "", decl.args ?? []])).digest("hex").slice(0, 32);
|
|
5070
|
+
}
|
|
5071
|
+
function snapshotPath(decl) {
|
|
5072
|
+
const safeId = decl.id.replace(/[^A-Za-z0-9_.-]/g, "_");
|
|
5073
|
+
return join(mcpToolsSnapshotDir(), `${safeId}-${mcpToolsSnapshotKey(decl)}.json`);
|
|
5074
|
+
}
|
|
5075
|
+
function isToolDescriptor(v) {
|
|
5076
|
+
if (!v || typeof v !== "object") return false;
|
|
5077
|
+
const t = v;
|
|
5078
|
+
return typeof t.name === "string" && t.name.length > 0 && (t.description === void 0 || typeof t.description === "string");
|
|
5079
|
+
}
|
|
5080
|
+
async function readMcpToolsSnapshot(decl) {
|
|
5081
|
+
let parsed;
|
|
5082
|
+
try {
|
|
5083
|
+
parsed = JSON.parse(await readFile(snapshotPath(decl), "utf8"));
|
|
5084
|
+
} catch {
|
|
5085
|
+
return void 0;
|
|
5086
|
+
}
|
|
5087
|
+
const file = parsed;
|
|
5088
|
+
if (!file || file.format !== SNAPSHOT_FORMAT || file.id !== decl.id || file.key !== mcpToolsSnapshotKey(decl) || !Array.isArray(file.tools) || file.tools.length === 0 || !file.tools.every(isToolDescriptor)) {
|
|
5089
|
+
return void 0;
|
|
5090
|
+
}
|
|
5091
|
+
return file.tools;
|
|
5092
|
+
}
|
|
5093
|
+
async function writeMcpToolsSnapshot(decl, tools) {
|
|
5094
|
+
const path11 = snapshotPath(decl);
|
|
5095
|
+
const body = {
|
|
5096
|
+
format: SNAPSHOT_FORMAT,
|
|
5097
|
+
id: decl.id,
|
|
5098
|
+
key: mcpToolsSnapshotKey(decl),
|
|
5099
|
+
tools: tools.map((t) => ({
|
|
5100
|
+
name: t.name,
|
|
5101
|
+
...t.description !== void 0 ? { description: t.description } : {},
|
|
5102
|
+
...t.inputSchema !== void 0 ? { inputSchema: t.inputSchema } : {}
|
|
5103
|
+
}))
|
|
5104
|
+
};
|
|
5105
|
+
const tmp = `${path11}.${process.pid}.${Date.now()}.tmp`;
|
|
5106
|
+
try {
|
|
5107
|
+
await mkdir(mcpToolsSnapshotDir(), { recursive: true });
|
|
5108
|
+
await writeFile(tmp, JSON.stringify(body), "utf8");
|
|
5109
|
+
await rename(tmp, path11);
|
|
5110
|
+
return true;
|
|
5111
|
+
} catch {
|
|
5112
|
+
return false;
|
|
5113
|
+
}
|
|
5114
|
+
}
|
|
5115
|
+
function sameToolList(a, b) {
|
|
5116
|
+
const norm = (list) => JSON.stringify(
|
|
5117
|
+
[...list].sort((x, y) => x.name.localeCompare(y.name)).map((t) => [t.name, t.description ?? null, t.inputSchema ?? null])
|
|
5118
|
+
);
|
|
5119
|
+
return norm(a) === norm(b);
|
|
5120
|
+
}
|
|
5045
5121
|
var execFileAsync2 = promisify(execFile);
|
|
5046
5122
|
var DEFAULT_NIX_TIMEOUT_MS = 3e4;
|
|
5047
5123
|
var NIX_TIMEOUT_ENV_VAR = "SKAILE_NIX_TIMEOUT_MS";
|
|
@@ -5405,6 +5481,27 @@ function isMcpAuthError(err) {
|
|
|
5405
5481
|
if (typeof message !== "string") return false;
|
|
5406
5482
|
return /\b401\b|invalid[_ ]token|invalid[_ ]grant/i.test(message);
|
|
5407
5483
|
}
|
|
5484
|
+
function isLazyDeclaration(decl) {
|
|
5485
|
+
return decl.lazy === true && (decl.transport ?? "stdio") === "stdio";
|
|
5486
|
+
}
|
|
5487
|
+
function untilAborted(promise, signal) {
|
|
5488
|
+
if (!signal) return promise;
|
|
5489
|
+
if (signal.aborted) return Promise.reject(signal.reason ?? new Error("aborted"));
|
|
5490
|
+
return new Promise((resolve5, reject) => {
|
|
5491
|
+
const onAbort = () => reject(signal.reason ?? new Error("aborted"));
|
|
5492
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
5493
|
+
promise.then(
|
|
5494
|
+
(v) => {
|
|
5495
|
+
signal.removeEventListener("abort", onAbort);
|
|
5496
|
+
resolve5(v);
|
|
5497
|
+
},
|
|
5498
|
+
(e) => {
|
|
5499
|
+
signal.removeEventListener("abort", onAbort);
|
|
5500
|
+
reject(e);
|
|
5501
|
+
}
|
|
5502
|
+
);
|
|
5503
|
+
});
|
|
5504
|
+
}
|
|
5408
5505
|
function errMessage(err) {
|
|
5409
5506
|
return err instanceof Error ? err.message : String(err);
|
|
5410
5507
|
}
|
|
@@ -5515,21 +5612,30 @@ var ExternalMcpManager = class {
|
|
|
5515
5612
|
* Connect one MCP server and register its tools into the capability registry.
|
|
5516
5613
|
* Returns the server id and the registered tool capability names.
|
|
5517
5614
|
* Throws if the id is already registered or if connect/listTools fails.
|
|
5615
|
+
*
|
|
5616
|
+
* A `lazy: true` stdio server with a tools snapshot is registered from the
|
|
5617
|
+
* snapshot and not started: its first tool call connects it. Without a
|
|
5618
|
+
* snapshot it starts now and writes one for the next session.
|
|
5518
5619
|
*/
|
|
5519
5620
|
async addServer(decl) {
|
|
5520
5621
|
if (this.servers.some((s) => s.id === decl.id)) {
|
|
5521
5622
|
throw new McpServerAlreadyRegisteredError(decl.id);
|
|
5522
5623
|
}
|
|
5624
|
+
const lazy = isLazyDeclaration(decl);
|
|
5625
|
+
const snapshot = lazy ? await readMcpToolsSnapshot(decl) : void 0;
|
|
5626
|
+
if (snapshot) return this.registerFromSnapshot(decl, snapshot);
|
|
5523
5627
|
const client = await this.connectWithReauth(decl);
|
|
5524
|
-
const server = { id: decl.id, decl, client, toolNames: [] };
|
|
5628
|
+
const server = { id: decl.id, decl, client, tools: [], toolNames: [] };
|
|
5525
5629
|
const toolNames = [];
|
|
5526
5630
|
try {
|
|
5527
5631
|
const { tools } = await client.listTools();
|
|
5632
|
+
server.tools = tools;
|
|
5528
5633
|
for (const tool of tools) {
|
|
5529
5634
|
const cap = this.buildToolCapability(server, tool);
|
|
5530
5635
|
this.registry.register(cap, "agent");
|
|
5531
5636
|
toolNames.push(cap.name);
|
|
5532
5637
|
}
|
|
5638
|
+
if (lazy) await writeMcpToolsSnapshot(decl, tools);
|
|
5533
5639
|
} catch (err) {
|
|
5534
5640
|
for (const name of toolNames) this.registry.deregister(name);
|
|
5535
5641
|
try {
|
|
@@ -5548,6 +5654,93 @@ var ExternalMcpManager = class {
|
|
|
5548
5654
|
});
|
|
5549
5655
|
return { id: decl.id, toolNames };
|
|
5550
5656
|
}
|
|
5657
|
+
/** Register a lazy server's capabilities from its snapshot, without starting it. */
|
|
5658
|
+
registerFromSnapshot(decl, tools) {
|
|
5659
|
+
const server = { id: decl.id, decl, tools, toolNames: [] };
|
|
5660
|
+
try {
|
|
5661
|
+
for (const tool of tools) {
|
|
5662
|
+
const cap = this.buildToolCapability(server, tool);
|
|
5663
|
+
this.registry.register(cap, "agent");
|
|
5664
|
+
server.toolNames.push(cap.name);
|
|
5665
|
+
}
|
|
5666
|
+
} catch (err) {
|
|
5667
|
+
for (const name of server.toolNames) this.registry.deregister(name);
|
|
5668
|
+
throw err;
|
|
5669
|
+
}
|
|
5670
|
+
this.servers.push(server);
|
|
5671
|
+
this.log.info("MCP server registered (runner-managed)", {
|
|
5672
|
+
id: decl.id,
|
|
5673
|
+
transport: "stdio",
|
|
5674
|
+
toolCount: server.toolNames.length,
|
|
5675
|
+
tools: server.toolNames,
|
|
5676
|
+
lazy: true,
|
|
5677
|
+
started: false
|
|
5678
|
+
});
|
|
5679
|
+
return { id: decl.id, toolNames: [...server.toolNames] };
|
|
5680
|
+
}
|
|
5681
|
+
/**
|
|
5682
|
+
* The server's live client, starting a lazy server on first use. Concurrent
|
|
5683
|
+
* first calls share one connect; a failed connect is not cached, so the next
|
|
5684
|
+
* call tries again.
|
|
5685
|
+
*/
|
|
5686
|
+
ensureClient(server) {
|
|
5687
|
+
if (server.client) return Promise.resolve(server.client);
|
|
5688
|
+
if (server.removed) return Promise.reject(new Error(`MCP server '${server.id}' was removed`));
|
|
5689
|
+
server.connectInFlight ??= this.startLazyServer(server).finally(() => {
|
|
5690
|
+
server.connectInFlight = void 0;
|
|
5691
|
+
});
|
|
5692
|
+
return server.connectInFlight;
|
|
5693
|
+
}
|
|
5694
|
+
async startLazyServer(server) {
|
|
5695
|
+
let client;
|
|
5696
|
+
let tools;
|
|
5697
|
+
try {
|
|
5698
|
+
client = await this.connectWithReauth(server.decl);
|
|
5699
|
+
} catch (err) {
|
|
5700
|
+
this.log.error("MCP server lazy start failed", err, { id: server.id });
|
|
5701
|
+
throw new Error(`MCP server '${server.id}' failed to start: ${errMessage(err)}`);
|
|
5702
|
+
}
|
|
5703
|
+
try {
|
|
5704
|
+
({ tools } = await client.listTools());
|
|
5705
|
+
} catch (err) {
|
|
5706
|
+
await client.close().catch(() => {
|
|
5707
|
+
});
|
|
5708
|
+
this.log.error("MCP server lazy start failed", err, { id: server.id });
|
|
5709
|
+
throw new Error(`MCP server '${server.id}' failed to start: ${errMessage(err)}`);
|
|
5710
|
+
}
|
|
5711
|
+
server.client = client;
|
|
5712
|
+
if (server.removed) throw new Error(`MCP server '${server.id}' was removed`);
|
|
5713
|
+
if (!sameToolList(server.tools, tools)) this.reregisterTools(server, tools);
|
|
5714
|
+
this.log.info("MCP server registered (runner-managed)", {
|
|
5715
|
+
id: server.id,
|
|
5716
|
+
transport: "stdio",
|
|
5717
|
+
toolCount: server.toolNames.length,
|
|
5718
|
+
tools: server.toolNames,
|
|
5719
|
+
lazy: true,
|
|
5720
|
+
started: true
|
|
5721
|
+
});
|
|
5722
|
+
return client;
|
|
5723
|
+
}
|
|
5724
|
+
/**
|
|
5725
|
+
* The snapshot disagreed with what the started server advertises: replace the
|
|
5726
|
+
* registered capabilities with the live list and rewrite the snapshot.
|
|
5727
|
+
*/
|
|
5728
|
+
reregisterTools(server, tools) {
|
|
5729
|
+
this.log.warn("MCP tools snapshot is stale; re-registering from the live server", {
|
|
5730
|
+
id: server.id,
|
|
5731
|
+
snapshotCount: server.tools.length,
|
|
5732
|
+
liveCount: tools.length
|
|
5733
|
+
});
|
|
5734
|
+
for (const name of server.toolNames) this.registry.deregister(name);
|
|
5735
|
+
server.toolNames = [];
|
|
5736
|
+
server.tools = tools;
|
|
5737
|
+
for (const tool of tools) {
|
|
5738
|
+
const cap = this.buildToolCapability(server, tool);
|
|
5739
|
+
this.registry.register(cap, "agent");
|
|
5740
|
+
server.toolNames.push(cap.name);
|
|
5741
|
+
}
|
|
5742
|
+
void writeMcpToolsSnapshot(server.decl, tools);
|
|
5743
|
+
}
|
|
5551
5744
|
/**
|
|
5552
5745
|
* Deregister a running MCP server's tools and close its client.
|
|
5553
5746
|
* No-op when the id is not found.
|
|
@@ -5560,14 +5753,17 @@ var ExternalMcpManager = class {
|
|
|
5560
5753
|
const idx = this.servers.findIndex((s) => s.id === id);
|
|
5561
5754
|
if (idx === -1) return;
|
|
5562
5755
|
const server = this.servers[idx];
|
|
5756
|
+
server.removed = true;
|
|
5563
5757
|
if (server.reauthInFlight) await server.reauthInFlight.catch(() => {
|
|
5564
5758
|
});
|
|
5759
|
+
if (server.connectInFlight) await server.connectInFlight.catch(() => {
|
|
5760
|
+
});
|
|
5565
5761
|
this.servers.splice(idx, 1);
|
|
5566
5762
|
for (const name of server.toolNames) {
|
|
5567
5763
|
this.registry.deregister(name);
|
|
5568
5764
|
}
|
|
5569
5765
|
try {
|
|
5570
|
-
await server.client
|
|
5766
|
+
await server.client?.close();
|
|
5571
5767
|
} catch {
|
|
5572
5768
|
}
|
|
5573
5769
|
this.log.info("MCP server removed (runner-managed)", { id });
|
|
@@ -5630,7 +5826,7 @@ var ExternalMcpManager = class {
|
|
|
5630
5826
|
const old = server.client;
|
|
5631
5827
|
server.client = next;
|
|
5632
5828
|
try {
|
|
5633
|
-
await old
|
|
5829
|
+
await old?.close();
|
|
5634
5830
|
} catch {
|
|
5635
5831
|
}
|
|
5636
5832
|
this.log.info("MCP server reconnected after 401 re-mint", { id: server.id });
|
|
@@ -5661,7 +5857,10 @@ var ExternalMcpManager = class {
|
|
|
5661
5857
|
inputZod: PASSTHROUGH_INPUT_ZOD,
|
|
5662
5858
|
handler: async (input, ctx) => {
|
|
5663
5859
|
const call = { name: tool.name, arguments: input ?? {} };
|
|
5664
|
-
const invoke = () =>
|
|
5860
|
+
const invoke = async () => {
|
|
5861
|
+
const client = await untilAborted(this.ensureClient(server), ctx.signal);
|
|
5862
|
+
return ctx.signal ? client.callTool(call, void 0, { signal: ctx.signal }) : client.callTool(call);
|
|
5863
|
+
};
|
|
5665
5864
|
let result;
|
|
5666
5865
|
try {
|
|
5667
5866
|
result = await invoke();
|
|
@@ -5695,13 +5894,16 @@ var ExternalMcpManager = class {
|
|
|
5695
5894
|
*/
|
|
5696
5895
|
async dispose(options = {}) {
|
|
5697
5896
|
const failures = [];
|
|
5698
|
-
|
|
5897
|
+
for (const server of this.servers) server.removed = true;
|
|
5898
|
+
await Promise.allSettled(
|
|
5899
|
+
this.servers.flatMap((s) => [s.reauthInFlight, s.connectInFlight]).filter(Boolean)
|
|
5900
|
+
);
|
|
5699
5901
|
for (const server of this.servers) {
|
|
5700
5902
|
for (const toolName of server.toolNames) {
|
|
5701
5903
|
this.registry.deregister(toolName);
|
|
5702
5904
|
}
|
|
5703
5905
|
try {
|
|
5704
|
-
await server.client
|
|
5906
|
+
await server.client?.close();
|
|
5705
5907
|
} catch (err) {
|
|
5706
5908
|
failures.push(err);
|
|
5707
5909
|
this.log.warn("MCP server close failed", {
|
|
@@ -6012,12 +6214,20 @@ async function maybeInstallNpmPeerDeps(runtimeAssets, projectDir, resLog) {
|
|
|
6012
6214
|
}
|
|
6013
6215
|
}
|
|
6014
6216
|
}
|
|
6217
|
+
function scrubConnectorError(error) {
|
|
6218
|
+
if (typeof error === "string") return scrubLogText(error);
|
|
6219
|
+
if (error instanceof Error) return scrubLogText(error.message);
|
|
6220
|
+
return error;
|
|
6221
|
+
}
|
|
6015
6222
|
function logConnectorReport(results, resLog) {
|
|
6016
6223
|
for (const r of results) {
|
|
6017
6224
|
if (r.connected) {
|
|
6018
6225
|
resLog.info("connector ok", { id: r.id, mountPath: r.mountPath });
|
|
6019
6226
|
} else {
|
|
6020
|
-
resLog.error("connector failed", void 0, {
|
|
6227
|
+
resLog.error("connector failed", void 0, {
|
|
6228
|
+
id: r.id,
|
|
6229
|
+
error: scrubConnectorError(r.error)
|
|
6230
|
+
});
|
|
6021
6231
|
}
|
|
6022
6232
|
}
|
|
6023
6233
|
}
|
|
@@ -6972,7 +7182,7 @@ function buildClientCapabilityHandler(args) {
|
|
|
6972
7182
|
}
|
|
6973
7183
|
async function dispatchRunnerCapabilityInvocation(cmd, deps) {
|
|
6974
7184
|
try {
|
|
6975
|
-
const result = await deps.invoke(cmd.name, cmd.input);
|
|
7185
|
+
const result = withErrorMirror(await deps.invoke(cmd.name, cmd.input));
|
|
6976
7186
|
deps.emit({ type: "capability_result", callId: cmd.callId, result });
|
|
6977
7187
|
} catch (err) {
|
|
6978
7188
|
deps.emit({
|
|
@@ -6982,6 +7192,12 @@ async function dispatchRunnerCapabilityInvocation(cmd, deps) {
|
|
|
6982
7192
|
});
|
|
6983
7193
|
}
|
|
6984
7194
|
}
|
|
7195
|
+
function withErrorMirror(result) {
|
|
7196
|
+
if (typeof result !== "object" || result === null) return result;
|
|
7197
|
+
const r = result;
|
|
7198
|
+
if (r.ok !== false || typeof r.message !== "string" || "error" in r) return result;
|
|
7199
|
+
return { ...result, error: r.message };
|
|
7200
|
+
}
|
|
6985
7201
|
function capabilityFailure(name, err) {
|
|
6986
7202
|
if (err instanceof Error && err.name === "ZodError" && "issues" in err) {
|
|
6987
7203
|
const issues = err.issues;
|
|
@@ -12618,23 +12834,36 @@ function ensureGitConfigInclude(managedGitconfigPath, alsoMatching = []) {
|
|
|
12618
12834
|
throw err;
|
|
12619
12835
|
}
|
|
12620
12836
|
}
|
|
12621
|
-
function
|
|
12837
|
+
function userGitconfigsToInclude(managedGitconfigPath) {
|
|
12622
12838
|
const home = process.env.HOME || homedir();
|
|
12623
|
-
if (!home) return
|
|
12624
|
-
const
|
|
12625
|
-
|
|
12626
|
-
try {
|
|
12627
|
-
text2 = readFileSync(userPath, "utf-8");
|
|
12628
|
-
} catch {
|
|
12629
|
-
return void 0;
|
|
12630
|
-
}
|
|
12839
|
+
if (!home) return [];
|
|
12840
|
+
const xdg = process.env.XDG_CONFIG_HOME;
|
|
12841
|
+
const xdgDir = xdg && isAbsolute(xdg) ? xdg : join(home, ".config");
|
|
12631
12842
|
let realManaged = managedGitconfigPath;
|
|
12632
12843
|
try {
|
|
12633
12844
|
realManaged = join(realpathSync(dirname(managedGitconfigPath)), "managed-gitconfig");
|
|
12634
12845
|
} catch {
|
|
12635
12846
|
}
|
|
12636
|
-
|
|
12637
|
-
|
|
12847
|
+
const found = [];
|
|
12848
|
+
const seen = /* @__PURE__ */ new Set();
|
|
12849
|
+
for (const userPath of [join(xdgDir, "git", "config"), join(home, ".gitconfig")]) {
|
|
12850
|
+
let text2;
|
|
12851
|
+
try {
|
|
12852
|
+
text2 = readFileSync(userPath, "utf-8");
|
|
12853
|
+
} catch {
|
|
12854
|
+
continue;
|
|
12855
|
+
}
|
|
12856
|
+
if (text2.includes(managedGitconfigPath) || text2.includes(realManaged)) continue;
|
|
12857
|
+
let identity = userPath;
|
|
12858
|
+
try {
|
|
12859
|
+
identity = realpathSync(userPath);
|
|
12860
|
+
} catch {
|
|
12861
|
+
}
|
|
12862
|
+
if (seen.has(identity)) continue;
|
|
12863
|
+
seen.add(identity);
|
|
12864
|
+
found.push(userPath);
|
|
12865
|
+
}
|
|
12866
|
+
return found;
|
|
12638
12867
|
}
|
|
12639
12868
|
function setupManagedGitconfig(projectDir, serverLog, includeInHome) {
|
|
12640
12869
|
const managedGitconfigPath = join(resolve(projectDir), ".skaile", "managed-gitconfig");
|
|
@@ -12642,7 +12871,7 @@ function setupManagedGitconfig(projectDir, serverLog, includeInHome) {
|
|
|
12642
12871
|
try {
|
|
12643
12872
|
writeUserGitconfigInclude({
|
|
12644
12873
|
gitconfigPath: managedGitconfigPath,
|
|
12645
|
-
|
|
12874
|
+
userGitconfigPaths: includeInHome ? void 0 : userGitconfigsToInclude(managedGitconfigPath)
|
|
12646
12875
|
});
|
|
12647
12876
|
} catch (err) {
|
|
12648
12877
|
serverLog.warn("failed to write managed-gitconfig \u2014 the agent's git has no global config", {
|
|
@@ -13174,7 +13403,11 @@ async function applyConnectorMutate(cmd, deps, respond, connectorWaitMs) {
|
|
|
13174
13403
|
}
|
|
13175
13404
|
} catch (err) {
|
|
13176
13405
|
const message = err instanceof Error ? err.message : String(err);
|
|
13177
|
-
deps.log.warn("connector_mutate failed", {
|
|
13406
|
+
deps.log.warn("connector_mutate failed", {
|
|
13407
|
+
id: cmd.id,
|
|
13408
|
+
op: cmd.op,
|
|
13409
|
+
error: scrubLogText(message)
|
|
13410
|
+
});
|
|
13178
13411
|
respond({ ok: false, code: "op_failed", error: message });
|
|
13179
13412
|
}
|
|
13180
13413
|
}
|
|
@@ -13264,7 +13497,8 @@ async function startAgentServer(opts) {
|
|
|
13264
13497
|
serverLog.info("ws auth token", {
|
|
13265
13498
|
source: opts.authToken ? "caller" : takenAuthToken.source
|
|
13266
13499
|
});
|
|
13267
|
-
|
|
13500
|
+
const warnNoAuthAtListen = !opts.transport && !authToken && (opts.port ?? 8080) === 0;
|
|
13501
|
+
if (!opts.transport && !authToken && !warnNoAuthAtListen) {
|
|
13268
13502
|
serverLog.warn(wsNoAuthWarning(opts.port ?? 8080, opts.host));
|
|
13269
13503
|
}
|
|
13270
13504
|
if (takenAuthToken.unlinkError)
|
|
@@ -13312,7 +13546,12 @@ async function startAgentServer(opts) {
|
|
|
13312
13546
|
onLog: log,
|
|
13313
13547
|
...opts.host ? { host: opts.host } : {},
|
|
13314
13548
|
...authToken ? { authToken } : {},
|
|
13315
|
-
...opts.onListening
|
|
13549
|
+
...opts.onListening || warnNoAuthAtListen ? {
|
|
13550
|
+
onListening: (info) => {
|
|
13551
|
+
if (warnNoAuthAtListen) serverLog.warn(wsNoAuthWarning(info.port, opts.host));
|
|
13552
|
+
opts.onListening?.(info);
|
|
13553
|
+
}
|
|
13554
|
+
} : {}
|
|
13316
13555
|
});
|
|
13317
13556
|
logStore.addSink(
|
|
13318
13557
|
new WsLogSink({
|
|
@@ -13323,13 +13562,20 @@ async function startAgentServer(opts) {
|
|
|
13323
13562
|
);
|
|
13324
13563
|
const turnStatus = new TurnStatusTracker();
|
|
13325
13564
|
const eventGapBuffer = new EventGapBuffer();
|
|
13565
|
+
const initLessRunner = !managedHost && (wsConfig.secrets?.provider ?? "env") === "env";
|
|
13566
|
+
let clientEverConnected = false;
|
|
13567
|
+
transport.onConnect(() => {
|
|
13568
|
+
clientEverConnected = true;
|
|
13569
|
+
});
|
|
13326
13570
|
function sendEvent(event) {
|
|
13327
13571
|
turnStatus.observe(event);
|
|
13328
13572
|
if (transport.connected) {
|
|
13329
13573
|
transport.send(event);
|
|
13330
13574
|
return;
|
|
13331
13575
|
}
|
|
13332
|
-
if (!initAcknowledged)
|
|
13576
|
+
if (!initAcknowledged && !(initLessRunner && initGeneration === 0 && clientEverConnected)) {
|
|
13577
|
+
return;
|
|
13578
|
+
}
|
|
13333
13579
|
eventGapBuffer.push(event, { isStale: settledCapabilityCallCheck(event) });
|
|
13334
13580
|
}
|
|
13335
13581
|
function settledCapabilityCallCheck(event) {
|
|
@@ -15121,6 +15367,7 @@ async function startAgentServer(opts) {
|
|
|
15121
15367
|
const initReceivedAt = Date.now();
|
|
15122
15368
|
const thisInit = ++initGeneration;
|
|
15123
15369
|
initAcknowledged = false;
|
|
15370
|
+
if (thisInit === 1) eventGapBuffer.clear();
|
|
15124
15371
|
if (cmd.protocolVersion.major !== PROTOCOL_VERSION.major) {
|
|
15125
15372
|
log(
|
|
15126
15373
|
`[serve] incompatible protocol: agent=${PROTOCOL_VERSION.major} platform=${cmd.protocolVersion.major}`
|
|
@@ -15962,7 +16209,8 @@ async function startAgentServer(opts) {
|
|
|
15962
16209
|
});
|
|
15963
16210
|
transport.onConnect(() => {
|
|
15964
16211
|
if (!eventGapBuffer.hasPending) return;
|
|
15965
|
-
|
|
16212
|
+
const initLessTurn = initLessRunner && initGeneration === 0;
|
|
16213
|
+
if (!initAcknowledged && !initLessTurn || sessionReadyOutcome === "rejected") {
|
|
15966
16214
|
const discarded = eventGapBuffer.clear();
|
|
15967
16215
|
serverLog.warn(
|
|
15968
16216
|
`[serve] discarded ${discarded} event(s) buffered while disconnected: the init they belong to is no longer acknowledged`
|
|
@@ -16221,6 +16469,6 @@ function touchSession(state) {
|
|
|
16221
16469
|
return { ...state, updatedAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
16222
16470
|
}
|
|
16223
16471
|
|
|
16224
|
-
export { AgentRunError, CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CONNECTOR_MUTATE_NOT_READY, CapabilityRegistry, CompileManifestEntrySchema, CompositionError, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, DEFAULT_MAX_FINISHED_TREES, DEFAULT_RUN_LIMITS, MOUNT_LIST_MAX_DEPTH, MOUNT_LIST_MAX_ENTRIES, MOUNT_READ_DEADLINE_FACTOR, MOUNT_READ_MAX_CHUNK_BYTES, MOUNT_STAT_BUDGET_MS, MOUNT_STAT_MAX_ENTRIES, MOUNT_TREE_OP_DEADLINE_FACTOR, MOUNT_WRITE_MAX_CHUNK_BYTES, MarkdownStreamer, PreInitRingSink, ResourceOperationError, SESSION_ROOT_WRITABLE_DIRS, SESSION_ROOT_WRITABLE_FILES, UnknownCompositionKindError, WRITE_RANGE_PARTIAL_TTL_MS, WS_AUTH_TOKEN_ENV, WS_AUTH_TOKEN_FILE_ENV, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildCompositionRunSnapshot, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildRunnerAgentSections, buildStoreSnapshotReplay, builtinCapabilities, canonicalJson, capabilityLogInstance, capabilitySignatureInputs, clearPreInitRingSink, clearSession, compileComposition, compositionRunSnapshotPath, computeCapabilitySignature, computeDirectoryTotals, computeRevisionHash, connectorRefreshKind, createAgentSession, createCompositionContentSource, createFinalTextFallback, createFlowConnectorReadiness, createInMemoryRunStore, createManagedCodexSubpromptHarness, createRunController, createSessionStimulusBus, defineCapability, deleteSession, describeComposition, dispatchResourceRequest, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureClaudeSettingsDisablesConnectors, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, flowStartNeedsHarnessRestart, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, handleSessionRootResourceRequest, harnessActiveAfterTurnEnd, hasNonTerminalFlow, hashAgentFiles, hashContent, hostOpResumeStimulus, installPreInitRingSink, instanceForSession, instanceSessionOverrides, isCompilePinCurrent, isCompositionError, isEmptyKnowledgeIndex, isSessionRootPathAllowed, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadCompositionRunSnapshot, loadKnowledgeDir, loadManagedCodexHostConfig, loadSession, loadSessionById, manifestModelForHarness, mcpAuthSecretKey, newSession, nulTailPaddingLength, pickChatFlowTarget, pickFlowToolTarget, pickRepointedManager, planFlowMutate, prepareCodexTools, reconcilePendingDecisions, reconnectedRunNeedsAgentTurn, recreateKeepingLiveFlows, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, rejectPendingCapabilityCallsOnDisconnect, resetRunnerLogStore, resolveAgentInstance, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveInstanceAgentDir, resolveMixin, resolveSessionId, restoredRunHasWorkToResume, runAgentChat, saveCompositionRunSnapshot, saveSession, setCurrentSession, setUpFlowConnector, startAgentServer, stimulusFromMetas, stripFrontmatter, takeRunnerWsAuthToken, toActiveFlowTarget, touchSession, unresolvedCredentialNotices, validateInputResponse, verifyConventionItems, writeClaudeCodeCredentialsFile, writeRangeChunk, writeRangePartialPath };
|
|
16225
|
-
//# sourceMappingURL=chunk-
|
|
16226
|
-
//# sourceMappingURL=chunk-
|
|
16472
|
+
export { AgentRunError, CLAUDE_CODE_CREDENTIALS_KEY, COMPILE_MANIFEST_FILENAME, CONNECTOR_MUTATE_NOT_READY, CapabilityRegistry, CompileManifestEntrySchema, CompositionError, DEFAULT_CAPABILITY_CALL_TIMEOUT_MS, DEFAULT_COALESCE_MS, DEFAULT_FLOW_MUTATE_CONNECTOR_WAIT_MS, DEFAULT_MAX_FINISHED_TREES, DEFAULT_RUN_LIMITS, MOUNT_LIST_MAX_DEPTH, MOUNT_LIST_MAX_ENTRIES, MOUNT_READ_DEADLINE_FACTOR, MOUNT_READ_MAX_CHUNK_BYTES, MOUNT_STAT_BUDGET_MS, MOUNT_STAT_MAX_ENTRIES, MOUNT_TREE_OP_DEADLINE_FACTOR, MOUNT_WRITE_MAX_CHUNK_BYTES, MarkdownStreamer, PreInitRingSink, ResourceOperationError, SESSION_ROOT_WRITABLE_DIRS, SESSION_ROOT_WRITABLE_FILES, UnknownCompositionKindError, WRITE_RANGE_PARTIAL_TTL_MS, WS_AUTH_TOKEN_ENV, WS_AUTH_TOKEN_FILE_ENV, agentDefinitionExists, bootstrapCapabilityRegistry, bootstrapRunnerLogStore, buildAgentResources, buildClientCapabilityHandler, buildCompositionRunSnapshot, buildConnectorTokenMediator, buildContextSection, buildEnvironmentSection, buildResourcesAvailablePayload, buildRunnerAgentSections, buildStoreSnapshotReplay, builtinCapabilities, canonicalJson, capabilityLogInstance, capabilitySignatureInputs, clearPreInitRingSink, clearSession, compileComposition, compositionRunSnapshotPath, computeCapabilitySignature, computeDirectoryTotals, computeRevisionHash, connectorRefreshKind, createAgentSession, createCompositionContentSource, createFinalTextFallback, createFlowConnectorReadiness, createInMemoryRunStore, createManagedCodexSubpromptHarness, createRunController, createSessionStimulusBus, defineCapability, deleteSession, describeComposition, dispatchResourceRequest, dispatchRunnerCapabilityInvocation, emitSystemPromptComposed, ensureClaudeSettingsDisablesConnectors, ensureGitConfigInclude, executeConnectorMutate, extractClaudeAiOauthExpiresAt, flowStartNeedsHarnessRestart, getPreInitRingSink, handleMountResourceRequest, handleResourceRequest, handleSessionRootResourceRequest, harnessActiveAfterTurnEnd, hasNonTerminalFlow, hashAgentFiles, hashContent, hostOpResumeStimulus, installPreInitRingSink, instanceForSession, instanceSessionOverrides, isCompilePinCurrent, isCompositionError, isEmptyKnowledgeIndex, isSessionRootPathAllowed, listSessions, loadAgentManifest, loadCompileManifest, loadCompileManifestFromDir, loadCompositionRunSnapshot, loadKnowledgeDir, loadManagedCodexHostConfig, loadSession, loadSessionById, logConnectorReport, manifestModelForHarness, mcpAuthSecretKey, newSession, nulTailPaddingLength, pickChatFlowTarget, pickFlowToolTarget, pickRepointedManager, planFlowMutate, prepareCodexTools, reconcilePendingDecisions, reconnectedRunNeedsAgentTurn, recreateKeepingLiveFlows, registerActiveFlow, registerCompositionCapabilities, rejectCapabilityOnApprovalDeny, rejectPendingCapabilityCallsOnDisconnect, resetRunnerLogStore, resolveAgentInstance, resolveBinding, resolveCapabilityCallTimeoutMs, resolveCapabilityResult, resolveComposition, resolveFlowMutateConnectorWaitMs, resolveInstanceAgentDir, resolveMixin, resolveSessionId, restoredRunHasWorkToResume, runAgentChat, saveCompositionRunSnapshot, saveSession, setCurrentSession, setUpFlowConnector, startAgentServer, stimulusFromMetas, stripFrontmatter, takeRunnerWsAuthToken, toActiveFlowTarget, touchSession, unresolvedCredentialNotices, validateInputResponse, verifyConventionItems, writeClaudeCodeCredentialsFile, writeRangeChunk, writeRangePartialPath };
|
|
16473
|
+
//# sourceMappingURL=chunk-6RPS7JEH.js.map
|
|
16474
|
+
//# sourceMappingURL=chunk-6RPS7JEH.js.map
|