@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
|
@@ -1,40 +1,40 @@
|
|
|
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-Z4FERR4U.js';
|
|
2
|
+
import { buildWorkspaceToolDefs } from './chunk-GTGWRKMJ.js';
|
|
3
|
+
import { findAiAssetsRoot } from './chunk-HQAPUPBE.js';
|
|
4
|
+
import { startModelEndpoint } from './chunk-SZKCE7EC.js';
|
|
5
|
+
import { WebSocketServerTransport } from './chunk-6A6HE5LW.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-5ETYBC2X.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-VXYZ5M7Z.js';
|
|
11
|
+
import { loadYamlConnectorDeclarations, withMaterializedConnectorDeclarations, SecretProviderChain, ConnectorStartupError, isKnownSecretRef, EnvSecretProvider, PreMintedSecretProvider, InMemorySecretProvider, resolvedConfigToDeclarations, deriveSingleMaterializedConnectorDeclaration } from './chunk-4BFEPZ6J.js';
|
|
12
|
+
import { EventNormalizer } from './chunk-YN6N3RBM.js';
|
|
13
|
+
import { sessionSurfaceNotice, approvalCardOf, APPROVE_ONCE, DENY, probeResumeTranscript, transcriptStoreForRuntime } from './chunk-U3UDOX6I.js';
|
|
14
|
+
import { codexLoginFallbackNotice } from './chunk-65UAC3ZR.js';
|
|
15
15
|
import { CodexNativeStateUnavailable } from './chunk-LOO5CB5M.js';
|
|
16
16
|
import { dispatchCapability } from './chunk-KSUT5KAE.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, catalogLayer, providerCredentialEnvName, registryCredentialEnv, AI_PROVIDER_PRESETS, supportsLiveToolUpdates } from './chunk-
|
|
21
|
-
import { loadFlow } from './chunk-
|
|
19
|
+
import { toAgentEffort, toMergedRegistry } from './chunk-WW5NAU6N.js';
|
|
20
|
+
import { unresolvedProviderCredentials, harnessCapabilities, createHarness, catalogLayer, providerCredentialEnvName, registryCredentialEnv, AI_PROVIDER_PRESETS, supportsLiveToolUpdates } from './chunk-BSMW3PX2.js';
|
|
21
|
+
import { loadFlow } from './chunk-5XHQBCB5.js';
|
|
22
22
|
import { renderStimulusPrompt } from './chunk-WD3L5QSU.js';
|
|
23
23
|
import { TERMINAL_AGENT_RUN_STATUSES, withActivityLabelJsonSchema, TOOL_ACTIVITY_PROMPT_SECTION, SESSION_ROOT_CONNECTOR_ID, PLATFORM_BLOCKS_RUNTIME_FEATURE, PROTOCOL_VERSION, deliveryClassOf } from './chunk-G5SYFFMD.js';
|
|
24
|
-
import { knowledgeKindProvider, scanLibraryRoot, LocalIndex } from './chunk-
|
|
25
|
-
import { createDefaultKindRegistry } from './chunk-
|
|
24
|
+
import { knowledgeKindProvider, scanLibraryRoot, LocalIndex } from './chunk-MMOWIRHP.js';
|
|
25
|
+
import { createDefaultKindRegistry } from './chunk-J4WKNJHO.js';
|
|
26
26
|
import { parseFlowDefinition } from './chunk-JRN5QF4C.js';
|
|
27
27
|
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-
|
|
28
|
+
import { readLock, buildAgentPromptSections, resolveSettings, loadProviderRegistry, resolveLibraryDir } from './chunk-6ARPZHOV.js';
|
|
29
|
+
import { resolveRuntimeAssets } from './chunk-JIQUF3X2.js';
|
|
30
30
|
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';
|
|
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-6SXSVKQY.js';
|
|
32
|
+
import { globalSkaileDir, globalCacheRoot } from './chunk-L5VSIPQD.js';
|
|
33
33
|
import { harnessNameForHarnessId, SUPPORTED_HARNESSES, HARNESS_TARGETS } from './chunk-VTETQCR6.js';
|
|
34
|
-
import { withFsDeadline, FsDeadlineError, fsDeadlineMs, parseFrontmatter, tryWithFsDeadline } from './chunk-
|
|
34
|
+
import { withFsDeadline, FsDeadlineError, fsDeadlineMs, parseFrontmatter, tryWithFsDeadline } from './chunk-GNUA7XT2.js';
|
|
35
35
|
import { parseAssetRef } from './chunk-V5KG6CCV.js';
|
|
36
36
|
import { pickRegistryEntries, registryEntries, resolveEntryBaseUrl, parseModelRef, isEntryEnabled, parseCredentialRef } from './chunk-RXGPFAMN.js';
|
|
37
|
-
import { resolveLogStoreConfig, createLogStoreFromConfig, OnLogBridgeSink, WsLogSink, resolveLogsRetention, enforceLogsRetention } from './chunk-
|
|
37
|
+
import { resolveLogStoreConfig, createLogStoreFromConfig, OnLogBridgeSink, WsLogSink, resolveLogsRetention, enforceLogsRetention, scrubLogText } from './chunk-SGI5MRKP.js';
|
|
38
38
|
import { getLogStore, registerLogStore, createLogger, resetLogStore, isUnwritableStreamError, markStreamBroken, isBrokenPipeError, redactCredentials } from './chunk-BOFL7GIF.js';
|
|
39
39
|
import { __require } from './chunk-NSBPE2FW.js';
|
|
40
40
|
import { createInterface } from 'readline';
|
|
@@ -5042,6 +5042,63 @@ async function nodeHttpsFetch(url, init, agent) {
|
|
|
5042
5042
|
req.end(body);
|
|
5043
5043
|
});
|
|
5044
5044
|
}
|
|
5045
|
+
var SNAPSHOT_FORMAT = 1;
|
|
5046
|
+
function mcpToolsSnapshotDir() {
|
|
5047
|
+
return process.env.SKAILE_MCP_TOOLS_CACHE_DIR || join(globalCacheRoot(), "mcp-tools");
|
|
5048
|
+
}
|
|
5049
|
+
function mcpToolsSnapshotKey(decl) {
|
|
5050
|
+
return createHash("sha256").update(JSON.stringify([decl.id, decl.command ?? "", decl.args ?? []])).digest("hex").slice(0, 32);
|
|
5051
|
+
}
|
|
5052
|
+
function snapshotPath(decl) {
|
|
5053
|
+
const safeId = decl.id.replace(/[^A-Za-z0-9_.-]/g, "_");
|
|
5054
|
+
return join(mcpToolsSnapshotDir(), `${safeId}-${mcpToolsSnapshotKey(decl)}.json`);
|
|
5055
|
+
}
|
|
5056
|
+
function isToolDescriptor(v) {
|
|
5057
|
+
if (!v || typeof v !== "object") return false;
|
|
5058
|
+
const t = v;
|
|
5059
|
+
return typeof t.name === "string" && t.name.length > 0 && (t.description === void 0 || typeof t.description === "string");
|
|
5060
|
+
}
|
|
5061
|
+
async function readMcpToolsSnapshot(decl) {
|
|
5062
|
+
let parsed;
|
|
5063
|
+
try {
|
|
5064
|
+
parsed = JSON.parse(await readFile(snapshotPath(decl), "utf8"));
|
|
5065
|
+
} catch {
|
|
5066
|
+
return void 0;
|
|
5067
|
+
}
|
|
5068
|
+
const file = parsed;
|
|
5069
|
+
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)) {
|
|
5070
|
+
return void 0;
|
|
5071
|
+
}
|
|
5072
|
+
return file.tools;
|
|
5073
|
+
}
|
|
5074
|
+
async function writeMcpToolsSnapshot(decl, tools) {
|
|
5075
|
+
const path11 = snapshotPath(decl);
|
|
5076
|
+
const body = {
|
|
5077
|
+
format: SNAPSHOT_FORMAT,
|
|
5078
|
+
id: decl.id,
|
|
5079
|
+
key: mcpToolsSnapshotKey(decl),
|
|
5080
|
+
tools: tools.map((t) => ({
|
|
5081
|
+
name: t.name,
|
|
5082
|
+
...t.description !== void 0 ? { description: t.description } : {},
|
|
5083
|
+
...t.inputSchema !== void 0 ? { inputSchema: t.inputSchema } : {}
|
|
5084
|
+
}))
|
|
5085
|
+
};
|
|
5086
|
+
const tmp = `${path11}.${process.pid}.${Date.now()}.tmp`;
|
|
5087
|
+
try {
|
|
5088
|
+
await mkdir(mcpToolsSnapshotDir(), { recursive: true });
|
|
5089
|
+
await writeFile(tmp, JSON.stringify(body), "utf8");
|
|
5090
|
+
await rename(tmp, path11);
|
|
5091
|
+
return true;
|
|
5092
|
+
} catch {
|
|
5093
|
+
return false;
|
|
5094
|
+
}
|
|
5095
|
+
}
|
|
5096
|
+
function sameToolList(a, b) {
|
|
5097
|
+
const norm = (list) => JSON.stringify(
|
|
5098
|
+
[...list].sort((x, y) => x.name.localeCompare(y.name)).map((t) => [t.name, t.description ?? null, t.inputSchema ?? null])
|
|
5099
|
+
);
|
|
5100
|
+
return norm(a) === norm(b);
|
|
5101
|
+
}
|
|
5045
5102
|
var execFileAsync2 = promisify(execFile);
|
|
5046
5103
|
var DEFAULT_NIX_TIMEOUT_MS = 3e4;
|
|
5047
5104
|
var NIX_TIMEOUT_ENV_VAR = "SKAILE_NIX_TIMEOUT_MS";
|
|
@@ -5405,6 +5462,27 @@ function isMcpAuthError(err) {
|
|
|
5405
5462
|
if (typeof message !== "string") return false;
|
|
5406
5463
|
return /\b401\b|invalid[_ ]token|invalid[_ ]grant/i.test(message);
|
|
5407
5464
|
}
|
|
5465
|
+
function isLazyDeclaration(decl) {
|
|
5466
|
+
return decl.lazy === true && (decl.transport ?? "stdio") === "stdio";
|
|
5467
|
+
}
|
|
5468
|
+
function untilAborted(promise, signal) {
|
|
5469
|
+
if (!signal) return promise;
|
|
5470
|
+
if (signal.aborted) return Promise.reject(signal.reason ?? new Error("aborted"));
|
|
5471
|
+
return new Promise((resolve5, reject) => {
|
|
5472
|
+
const onAbort = () => reject(signal.reason ?? new Error("aborted"));
|
|
5473
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
5474
|
+
promise.then(
|
|
5475
|
+
(v) => {
|
|
5476
|
+
signal.removeEventListener("abort", onAbort);
|
|
5477
|
+
resolve5(v);
|
|
5478
|
+
},
|
|
5479
|
+
(e) => {
|
|
5480
|
+
signal.removeEventListener("abort", onAbort);
|
|
5481
|
+
reject(e);
|
|
5482
|
+
}
|
|
5483
|
+
);
|
|
5484
|
+
});
|
|
5485
|
+
}
|
|
5408
5486
|
function errMessage(err) {
|
|
5409
5487
|
return err instanceof Error ? err.message : String(err);
|
|
5410
5488
|
}
|
|
@@ -5515,21 +5593,30 @@ var ExternalMcpManager = class {
|
|
|
5515
5593
|
* Connect one MCP server and register its tools into the capability registry.
|
|
5516
5594
|
* Returns the server id and the registered tool capability names.
|
|
5517
5595
|
* Throws if the id is already registered or if connect/listTools fails.
|
|
5596
|
+
*
|
|
5597
|
+
* A `lazy: true` stdio server with a tools snapshot is registered from the
|
|
5598
|
+
* snapshot and not started: its first tool call connects it. Without a
|
|
5599
|
+
* snapshot it starts now and writes one for the next session.
|
|
5518
5600
|
*/
|
|
5519
5601
|
async addServer(decl) {
|
|
5520
5602
|
if (this.servers.some((s) => s.id === decl.id)) {
|
|
5521
5603
|
throw new McpServerAlreadyRegisteredError(decl.id);
|
|
5522
5604
|
}
|
|
5605
|
+
const lazy = isLazyDeclaration(decl);
|
|
5606
|
+
const snapshot = lazy ? await readMcpToolsSnapshot(decl) : void 0;
|
|
5607
|
+
if (snapshot) return this.registerFromSnapshot(decl, snapshot);
|
|
5523
5608
|
const client = await this.connectWithReauth(decl);
|
|
5524
|
-
const server = { id: decl.id, decl, client, toolNames: [] };
|
|
5609
|
+
const server = { id: decl.id, decl, client, tools: [], toolNames: [] };
|
|
5525
5610
|
const toolNames = [];
|
|
5526
5611
|
try {
|
|
5527
5612
|
const { tools } = await client.listTools();
|
|
5613
|
+
server.tools = tools;
|
|
5528
5614
|
for (const tool of tools) {
|
|
5529
5615
|
const cap = this.buildToolCapability(server, tool);
|
|
5530
5616
|
this.registry.register(cap, "agent");
|
|
5531
5617
|
toolNames.push(cap.name);
|
|
5532
5618
|
}
|
|
5619
|
+
if (lazy) await writeMcpToolsSnapshot(decl, tools);
|
|
5533
5620
|
} catch (err) {
|
|
5534
5621
|
for (const name of toolNames) this.registry.deregister(name);
|
|
5535
5622
|
try {
|
|
@@ -5548,6 +5635,93 @@ var ExternalMcpManager = class {
|
|
|
5548
5635
|
});
|
|
5549
5636
|
return { id: decl.id, toolNames };
|
|
5550
5637
|
}
|
|
5638
|
+
/** Register a lazy server's capabilities from its snapshot, without starting it. */
|
|
5639
|
+
registerFromSnapshot(decl, tools) {
|
|
5640
|
+
const server = { id: decl.id, decl, tools, toolNames: [] };
|
|
5641
|
+
try {
|
|
5642
|
+
for (const tool of tools) {
|
|
5643
|
+
const cap = this.buildToolCapability(server, tool);
|
|
5644
|
+
this.registry.register(cap, "agent");
|
|
5645
|
+
server.toolNames.push(cap.name);
|
|
5646
|
+
}
|
|
5647
|
+
} catch (err) {
|
|
5648
|
+
for (const name of server.toolNames) this.registry.deregister(name);
|
|
5649
|
+
throw err;
|
|
5650
|
+
}
|
|
5651
|
+
this.servers.push(server);
|
|
5652
|
+
this.log.info("MCP server registered (runner-managed)", {
|
|
5653
|
+
id: decl.id,
|
|
5654
|
+
transport: "stdio",
|
|
5655
|
+
toolCount: server.toolNames.length,
|
|
5656
|
+
tools: server.toolNames,
|
|
5657
|
+
lazy: true,
|
|
5658
|
+
started: false
|
|
5659
|
+
});
|
|
5660
|
+
return { id: decl.id, toolNames: [...server.toolNames] };
|
|
5661
|
+
}
|
|
5662
|
+
/**
|
|
5663
|
+
* The server's live client, starting a lazy server on first use. Concurrent
|
|
5664
|
+
* first calls share one connect; a failed connect is not cached, so the next
|
|
5665
|
+
* call tries again.
|
|
5666
|
+
*/
|
|
5667
|
+
ensureClient(server) {
|
|
5668
|
+
if (server.client) return Promise.resolve(server.client);
|
|
5669
|
+
if (server.removed) return Promise.reject(new Error(`MCP server '${server.id}' was removed`));
|
|
5670
|
+
server.connectInFlight ??= this.startLazyServer(server).finally(() => {
|
|
5671
|
+
server.connectInFlight = void 0;
|
|
5672
|
+
});
|
|
5673
|
+
return server.connectInFlight;
|
|
5674
|
+
}
|
|
5675
|
+
async startLazyServer(server) {
|
|
5676
|
+
let client;
|
|
5677
|
+
let tools;
|
|
5678
|
+
try {
|
|
5679
|
+
client = await this.connectWithReauth(server.decl);
|
|
5680
|
+
} catch (err) {
|
|
5681
|
+
this.log.error("MCP server lazy start failed", err, { id: server.id });
|
|
5682
|
+
throw new Error(`MCP server '${server.id}' failed to start: ${errMessage(err)}`);
|
|
5683
|
+
}
|
|
5684
|
+
try {
|
|
5685
|
+
({ tools } = await client.listTools());
|
|
5686
|
+
} catch (err) {
|
|
5687
|
+
await client.close().catch(() => {
|
|
5688
|
+
});
|
|
5689
|
+
this.log.error("MCP server lazy start failed", err, { id: server.id });
|
|
5690
|
+
throw new Error(`MCP server '${server.id}' failed to start: ${errMessage(err)}`);
|
|
5691
|
+
}
|
|
5692
|
+
server.client = client;
|
|
5693
|
+
if (server.removed) throw new Error(`MCP server '${server.id}' was removed`);
|
|
5694
|
+
if (!sameToolList(server.tools, tools)) this.reregisterTools(server, tools);
|
|
5695
|
+
this.log.info("MCP server registered (runner-managed)", {
|
|
5696
|
+
id: server.id,
|
|
5697
|
+
transport: "stdio",
|
|
5698
|
+
toolCount: server.toolNames.length,
|
|
5699
|
+
tools: server.toolNames,
|
|
5700
|
+
lazy: true,
|
|
5701
|
+
started: true
|
|
5702
|
+
});
|
|
5703
|
+
return client;
|
|
5704
|
+
}
|
|
5705
|
+
/**
|
|
5706
|
+
* The snapshot disagreed with what the started server advertises: replace the
|
|
5707
|
+
* registered capabilities with the live list and rewrite the snapshot.
|
|
5708
|
+
*/
|
|
5709
|
+
reregisterTools(server, tools) {
|
|
5710
|
+
this.log.warn("MCP tools snapshot is stale; re-registering from the live server", {
|
|
5711
|
+
id: server.id,
|
|
5712
|
+
snapshotCount: server.tools.length,
|
|
5713
|
+
liveCount: tools.length
|
|
5714
|
+
});
|
|
5715
|
+
for (const name of server.toolNames) this.registry.deregister(name);
|
|
5716
|
+
server.toolNames = [];
|
|
5717
|
+
server.tools = tools;
|
|
5718
|
+
for (const tool of tools) {
|
|
5719
|
+
const cap = this.buildToolCapability(server, tool);
|
|
5720
|
+
this.registry.register(cap, "agent");
|
|
5721
|
+
server.toolNames.push(cap.name);
|
|
5722
|
+
}
|
|
5723
|
+
void writeMcpToolsSnapshot(server.decl, tools);
|
|
5724
|
+
}
|
|
5551
5725
|
/**
|
|
5552
5726
|
* Deregister a running MCP server's tools and close its client.
|
|
5553
5727
|
* No-op when the id is not found.
|
|
@@ -5560,14 +5734,17 @@ var ExternalMcpManager = class {
|
|
|
5560
5734
|
const idx = this.servers.findIndex((s) => s.id === id);
|
|
5561
5735
|
if (idx === -1) return;
|
|
5562
5736
|
const server = this.servers[idx];
|
|
5737
|
+
server.removed = true;
|
|
5563
5738
|
if (server.reauthInFlight) await server.reauthInFlight.catch(() => {
|
|
5564
5739
|
});
|
|
5740
|
+
if (server.connectInFlight) await server.connectInFlight.catch(() => {
|
|
5741
|
+
});
|
|
5565
5742
|
this.servers.splice(idx, 1);
|
|
5566
5743
|
for (const name of server.toolNames) {
|
|
5567
5744
|
this.registry.deregister(name);
|
|
5568
5745
|
}
|
|
5569
5746
|
try {
|
|
5570
|
-
await server.client
|
|
5747
|
+
await server.client?.close();
|
|
5571
5748
|
} catch {
|
|
5572
5749
|
}
|
|
5573
5750
|
this.log.info("MCP server removed (runner-managed)", { id });
|
|
@@ -5630,7 +5807,7 @@ var ExternalMcpManager = class {
|
|
|
5630
5807
|
const old = server.client;
|
|
5631
5808
|
server.client = next;
|
|
5632
5809
|
try {
|
|
5633
|
-
await old
|
|
5810
|
+
await old?.close();
|
|
5634
5811
|
} catch {
|
|
5635
5812
|
}
|
|
5636
5813
|
this.log.info("MCP server reconnected after 401 re-mint", { id: server.id });
|
|
@@ -5661,7 +5838,10 @@ var ExternalMcpManager = class {
|
|
|
5661
5838
|
inputZod: PASSTHROUGH_INPUT_ZOD,
|
|
5662
5839
|
handler: async (input, ctx) => {
|
|
5663
5840
|
const call = { name: tool.name, arguments: input ?? {} };
|
|
5664
|
-
const invoke = () =>
|
|
5841
|
+
const invoke = async () => {
|
|
5842
|
+
const client = await untilAborted(this.ensureClient(server), ctx.signal);
|
|
5843
|
+
return ctx.signal ? client.callTool(call, void 0, { signal: ctx.signal }) : client.callTool(call);
|
|
5844
|
+
};
|
|
5665
5845
|
let result;
|
|
5666
5846
|
try {
|
|
5667
5847
|
result = await invoke();
|
|
@@ -5695,13 +5875,16 @@ var ExternalMcpManager = class {
|
|
|
5695
5875
|
*/
|
|
5696
5876
|
async dispose(options = {}) {
|
|
5697
5877
|
const failures = [];
|
|
5698
|
-
|
|
5878
|
+
for (const server of this.servers) server.removed = true;
|
|
5879
|
+
await Promise.allSettled(
|
|
5880
|
+
this.servers.flatMap((s) => [s.reauthInFlight, s.connectInFlight]).filter(Boolean)
|
|
5881
|
+
);
|
|
5699
5882
|
for (const server of this.servers) {
|
|
5700
5883
|
for (const toolName of server.toolNames) {
|
|
5701
5884
|
this.registry.deregister(toolName);
|
|
5702
5885
|
}
|
|
5703
5886
|
try {
|
|
5704
|
-
await server.client
|
|
5887
|
+
await server.client?.close();
|
|
5705
5888
|
} catch (err) {
|
|
5706
5889
|
failures.push(err);
|
|
5707
5890
|
this.log.warn("MCP server close failed", {
|
|
@@ -6012,12 +6195,20 @@ async function maybeInstallNpmPeerDeps(runtimeAssets, projectDir, resLog) {
|
|
|
6012
6195
|
}
|
|
6013
6196
|
}
|
|
6014
6197
|
}
|
|
6198
|
+
function scrubConnectorError(error) {
|
|
6199
|
+
if (typeof error === "string") return scrubLogText(error);
|
|
6200
|
+
if (error instanceof Error) return scrubLogText(error.message);
|
|
6201
|
+
return error;
|
|
6202
|
+
}
|
|
6015
6203
|
function logConnectorReport(results, resLog) {
|
|
6016
6204
|
for (const r of results) {
|
|
6017
6205
|
if (r.connected) {
|
|
6018
6206
|
resLog.info("connector ok", { id: r.id, mountPath: r.mountPath });
|
|
6019
6207
|
} else {
|
|
6020
|
-
resLog.error("connector failed", void 0, {
|
|
6208
|
+
resLog.error("connector failed", void 0, {
|
|
6209
|
+
id: r.id,
|
|
6210
|
+
error: scrubConnectorError(r.error)
|
|
6211
|
+
});
|
|
6021
6212
|
}
|
|
6022
6213
|
}
|
|
6023
6214
|
}
|
|
@@ -13174,7 +13365,11 @@ async function applyConnectorMutate(cmd, deps, respond, connectorWaitMs) {
|
|
|
13174
13365
|
}
|
|
13175
13366
|
} catch (err) {
|
|
13176
13367
|
const message = err instanceof Error ? err.message : String(err);
|
|
13177
|
-
deps.log.warn("connector_mutate failed", {
|
|
13368
|
+
deps.log.warn("connector_mutate failed", {
|
|
13369
|
+
id: cmd.id,
|
|
13370
|
+
op: cmd.op,
|
|
13371
|
+
error: scrubLogText(message)
|
|
13372
|
+
});
|
|
13178
13373
|
respond({ ok: false, code: "op_failed", error: message });
|
|
13179
13374
|
}
|
|
13180
13375
|
}
|
|
@@ -16221,6 +16416,6 @@ function touchSession(state) {
|
|
|
16221
16416
|
return { ...state, updatedAt: (/* @__PURE__ */ new Date()).toISOString() };
|
|
16222
16417
|
}
|
|
16223
16418
|
|
|
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-
|
|
16419
|
+
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 };
|
|
16420
|
+
//# sourceMappingURL=chunk-AQNW2FET.js.map
|
|
16421
|
+
//# sourceMappingURL=chunk-AQNW2FET.js.map
|