deepline 0.3.551 → 0.3.553
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/dist/bundling-sources/sdk/src/client-core.ts +130 -12
- package/dist/bundling-sources/sdk/src/compat.ts +239 -87
- package/dist/bundling-sources/sdk/src/config.ts +113 -2
- package/dist/bundling-sources/sdk/src/errors.ts +2 -0
- package/dist/bundling-sources/sdk/src/http-core.ts +124 -10
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/integrations.ts +6 -4
- package/dist/bundling-sources/sdk/src/play.ts +3 -0
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +66 -30
- package/dist/bundling-sources/sdk/src/tool-calls.ts +2 -1
- package/dist/bundling-sources/sdk/src/tool-failure-hint.ts +104 -0
- package/dist/bundling-sources/sdk/src/types.ts +9 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +4 -2
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-plan-skus.ts +25 -0
- package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +58 -4
- package/dist/bundling-sources/shared_libs/monitors/billing/policy-builders.ts +8 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/pricing.ts +11 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +103 -5
- package/dist/bundling-sources/shared_libs/monitors/fleets/converge-admission.ts +133 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/fence-attention.ts +165 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/fence-release.ts +726 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/fence-walk.ts +274 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +1 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +28 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/provider-bulk-wait.ts +126 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/shared-payload.ts +189 -0
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +28 -0
- package/dist/bundling-sources/shared_libs/monitors/inbound-publish-key.ts +4 -0
- package/dist/bundling-sources/shared_libs/monitors/inventory-counter-errors.ts +25 -0
- package/dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts +65 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +11 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +152 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +390 -10
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +34 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +66 -30
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +30 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +80 -13
- package/dist/bundling-sources/shared_libs/monitors/provider-resource-failure.ts +26 -3
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +41 -13
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/raw-receipt-causes.ts +219 -0
- package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +21 -10
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/tamradar-countries.ts +285 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts +13 -0
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/log-metadata.ts +5 -3
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +10 -1
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/redaction.ts +24 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +312 -41
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -2
- package/dist/bundling-sources/shared_libs/play-data-plane/preview-r2-oidc.ts +188 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +170 -16
- package/dist/bundling-sources/shared_libs/play-data-plane/runtime-sheet-storage-contract.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +68 -2
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +568 -26
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-fetch-caller-deadline.ts +200 -0
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +21 -1
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +3 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +14 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +70 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-tool-identity.ts +3 -3
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +16 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +92 -16
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +62 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +74 -3
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +31 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/query-result-dataset.ts +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +39 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +9 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +33 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +24 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +300 -57
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +87 -6
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +241 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +161 -14
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +16 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-compression.ts +37 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +298 -46
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +39 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +62 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +206 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +42 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +185 -64
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-slot-ledger.ts +157 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +110 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-listener-hint.ts +323 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/executor-attempt-standing.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-storage.ts +23 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +32 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-workspace-purge.ts +199 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +632 -66
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +517 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-api-origin.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-receipt-value-storage.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +599 -2
- package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/startup-read-tool-ids.ts +60 -0
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +51 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call-retry-facts.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +113 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -7
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +37 -7
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +40 -5
- package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/control-plane-types.ts +16 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +10 -41
- package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +33 -0
- package/dist/bundling-sources/shared_libs/plays/row-identity.ts +18 -1
- package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +108 -0
- package/dist/bundling-sources/shared_libs/plays/trigger-config-contract.ts +14 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +171 -0
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +27 -1
- package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +9 -24
- package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +178 -5
- package/dist/bundling-sources/shared_libs/security/signup-email-dns-screen.ts +148 -0
- package/dist/bundling-sources/shared_libs/tool-execution-error.ts +108 -0
- package/dist/cli/{auth-E7BH4GMJ.mjs → auth-I3QAU4RV.mjs} +8 -7
- package/dist/cli/auth-MQCN7WGZ.js +44 -0
- package/dist/cli/{billing-OXKU462W.mjs → billing-3IC54OQQ.mjs} +202 -59
- package/dist/cli/{billing-DNQAZGX7.js → billing-YGFFVAIC.js} +302 -159
- package/dist/cli/{chunk-COGREZAO.js → chunk-2B5B5KAW.js} +210 -128
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
- package/dist/cli/{chunk-T2B5BVZE.js → chunk-3NTP2OSG.js} +13 -13
- package/dist/cli/{chunk-FOTGUFVK.mjs → chunk-45OAVGU6.mjs} +5 -5
- package/dist/cli/{chunk-54EEYLTF.js → chunk-4747TPLV.js} +3 -3
- package/dist/cli/{chunk-CLRAANWH.mjs → chunk-4BFTDNHU.mjs} +1 -1
- package/dist/cli/{chunk-BGBJV26E.mjs → chunk-4HYNMXXF.mjs} +4 -4
- package/dist/cli/{chunk-5S6PHKRV.mjs → chunk-4SMCFQ23.mjs} +1 -1
- package/dist/cli/{chunk-VWLHRZFG.mjs → chunk-55F6HNOY.mjs} +5 -5
- package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
- package/dist/cli/{chunk-VTGG2RT3.js → chunk-6NE3RRRY.js} +1 -1
- package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
- package/dist/cli/{chunk-MNSTCJMX.mjs → chunk-72V4PDH5.mjs} +18 -18
- package/dist/cli/{chunk-ZCDKE4UH.js → chunk-74RES4DS.js} +5 -5
- package/dist/cli/{chunk-WKBHUB6R.js → chunk-7GEMELKI.js} +366 -320
- package/dist/cli/{chunk-C4CUZH57.js → chunk-7O6J6A7P.js} +1871 -92
- package/dist/cli/{chunk-7RSIFA72.js → chunk-7SERLBNR.js} +161 -53
- package/dist/cli/{chunk-3G6QZACZ.js → chunk-7YRJ5UC4.js} +21 -21
- package/dist/cli/{chunk-I4VKGNAQ.mjs → chunk-A7DLBE5K.mjs} +136 -54
- package/dist/cli/{chunk-GGB3JYCW.mjs → chunk-AGICYWGN.mjs} +299 -69
- package/dist/cli/{chunk-44KSACJW.mjs → chunk-AGIQDA2T.mjs} +12 -12
- package/dist/cli/{chunk-PACD5DGC.js → chunk-AGLR6QVN.js} +255 -109
- package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
- package/dist/cli/{chunk-4OMAGJ6U.js → chunk-BVDKFS2T.js} +2 -2
- package/dist/cli/{chunk-LPJPCGT3.js → chunk-CACFJODG.js} +190 -134
- package/dist/cli/{chunk-GVYLCCKN.mjs → chunk-CAEBJOYU.mjs} +1 -1
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
- package/dist/cli/{chunk-POLUE7D5.js → chunk-DP2VH7CO.js} +12 -12
- package/dist/cli/{chunk-D6M5HFBB.mjs → chunk-DP64MD6U.mjs} +1 -1
- package/dist/cli/{chunk-W425ERWN.mjs → chunk-DZA7RFGL.mjs} +5 -5
- package/dist/cli/{chunk-R7J7CJPZ.js → chunk-E2G2DNAB.js} +4 -1
- package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-E7WZOX2A.mjs} +22 -18
- package/dist/cli/{chunk-44I675YK.js → chunk-FM7LPUPA.js} +41 -41
- package/dist/cli/{chunk-2UXDHFSF.mjs → chunk-GAVZ4EOD.mjs} +1 -1
- package/dist/cli/{chunk-Z2FIOG3V.js → chunk-HEBO3XNZ.js} +27 -31
- package/dist/cli/{chunk-6PWJKMFQ.mjs → chunk-HSJ6X2AQ.mjs} +4 -4
- package/dist/cli/{chunk-UPMRIVZB.js → chunk-HVI55MTK.js} +61 -10
- package/dist/cli/{chunk-KWSH5T7K.js → chunk-IH6GDNKW.js} +21 -21
- package/dist/cli/{chunk-3KYBDAR3.js → chunk-IMX7J4DU.js} +8 -8
- package/dist/cli/{chunk-HEHVGEZV.mjs → chunk-INEMTYMT.mjs} +8 -8
- package/dist/cli/{chunk-5VVSEU67.js → chunk-IUOGII7D.js} +6 -7
- package/dist/cli/{chunk-MXGA6JFI.mjs → chunk-JJGWHITQ.mjs} +5 -5
- package/dist/cli/{chunk-QM6Y6S4E.js → chunk-JLGP5XAJ.js} +5 -5
- package/dist/cli/{chunk-V6SCP4B7.mjs → chunk-LFOERUQY.mjs} +69 -3
- package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
- package/dist/cli/{chunk-ZMNGZ6XS.mjs → chunk-LH5PZKER.mjs} +80 -24
- package/dist/cli/{chunk-MR5LTVHD.js → chunk-LRDHPOZW.js} +69 -69
- package/dist/cli/{chunk-5LUF4LAR.mjs → chunk-LRZGS6RZ.mjs} +3 -0
- package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
- package/dist/cli/{chunk-UDXULACQ.js → chunk-MLABYI4M.js} +90 -24
- package/dist/cli/{chunk-S7IZWGUA.mjs → chunk-NDNHYONK.mjs} +17 -21
- package/dist/cli/{chunk-4D3WIZST.mjs → chunk-OTV2UUKW.mjs} +164 -18
- package/dist/cli/{chunk-XYE5XPGF.js → chunk-Q6Z6N3A7.js} +18 -18
- package/dist/cli/{chunk-7WQNWJQW.mjs → chunk-QG6JIWUL.mjs} +151 -43
- package/dist/cli/{chunk-3T65J5RG.mjs → chunk-QI5S5HWB.mjs} +2 -2
- package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
- package/dist/cli/{chunk-PM7MO62Y.mjs → chunk-RMNOZKRI.mjs} +3 -3
- package/dist/cli/{chunk-NMWGZD6Y.js → chunk-RTV4RF7N.js} +36 -36
- package/dist/cli/{chunk-CQ6JYQSW.js → chunk-SBH4CKPN.js} +11 -11
- package/dist/cli/{chunk-BIIJATTX.mjs → chunk-SG3LUONJ.mjs} +3 -3
- package/dist/cli/{chunk-2WFPHBR4.js → chunk-TFEXSHPM.js} +22 -18
- package/dist/cli/{chunk-5IL7SC45.mjs → chunk-TN4TY6TT.mjs} +6 -7
- package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-UEVKMZLR.mjs} +54 -3
- package/dist/cli/{chunk-RE5MJBEV.mjs → chunk-UVQJYV76.mjs} +2 -2
- package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
- package/dist/cli/{chunk-W2ZWQUHT.js → chunk-WOCHZCUJ.js} +2 -2
- package/dist/cli/{chunk-ZDQFBJPO.js → chunk-XLIHTJVM.js} +348 -118
- package/dist/cli/{chunk-2ZYRBMQM.js → chunk-Y6SP3JMI.js} +22 -22
- package/dist/cli/{chunk-PPSDCN6C.js → chunk-YUA6HA6D.js} +2 -2
- package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
- package/dist/cli/{chunk-E64HFB4L.mjs → chunk-Z6XPSHKM.mjs} +87 -41
- package/dist/cli/{chunk-7DOQ3OEX.mjs → chunk-Z7AOIHFE.mjs} +1870 -91
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/concurrent-runs-help-CFJH4KXV.js +22 -0
- package/dist/cli/{concurrent-runs-help-C6L6I5OR.mjs → concurrent-runs-help-DNV2X5AZ.mjs} +9 -8
- package/dist/cli/{csv-QMF4FWE7.js → csv-SA6ELJY6.js} +16 -15
- package/dist/cli/{csv-SYSDXFEM.mjs → csv-ZXZGHWOM.mjs} +7 -6
- package/dist/cli/{db-Q7HURWRZ.mjs → db-A54SP6AD.mjs} +16 -16
- package/dist/cli/{db-YSHPPA4H.js → db-JHFEIQBU.js} +43 -43
- package/dist/cli/describe-PHQ33AGS.mjs +50 -0
- package/dist/cli/describe-RHJ4XRFI.js +50 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +6 -6
- package/dist/cli/describe-core.mjs +5 -5
- package/dist/cli/{executions-G7U3VUXN.mjs → executions-HL2M2DFU.mjs} +10 -10
- package/dist/cli/{executions-MWBC5TAW.js → executions-TLFZRHBJ.js} +12 -12
- package/dist/cli/{feedback-SD55OY6H.js → feedback-5UEX5UZK.js} +17 -16
- package/dist/cli/{feedback-GMHIFLBJ.mjs → feedback-QMBTNXVG.mjs} +9 -8
- package/dist/cli/git-4JWOOHBG.js +26 -0
- package/dist/cli/{git-HPE45OPD.mjs → git-LKGXVIVC.mjs} +8 -7
- package/dist/cli/index.js +170 -158
- package/dist/cli/index.mjs +60 -48
- package/dist/cli/{integrations-HFKVBY6G.js → integrations-6RUTLMN7.js} +23 -27
- package/dist/cli/{integrations-2W4MGIQR.mjs → integrations-FGGRVUJ7.mjs} +15 -19
- package/dist/cli/{legacy-noops-SXVNDEXN.js → legacy-noops-J3Z7QRWZ.js} +12 -11
- package/dist/cli/{legacy-noops-GZYKNU2Z.mjs → legacy-noops-YIPRMVXZ.mjs} +9 -8
- package/dist/cli/{mcp-PJRHQHHU.js → mcp-6LWFP7RW.js} +121 -48
- package/dist/cli/{mcp-BWA6KULG.mjs → mcp-CHDYFO7F.mjs} +100 -27
- package/dist/cli/{monitors-K2WSI6CR.js → monitors-STM6A7OU.js} +221 -186
- package/dist/cli/{monitors-SYQKCATO.mjs → monitors-UGRY2BXI.mjs} +58 -23
- package/dist/cli/org-3SYOUQCX.mjs +2289 -0
- package/dist/cli/org-ZOBSNSIB.js +2289 -0
- package/dist/cli/outcomes-H4YYAT5X.js +2865 -0
- package/dist/cli/outcomes-Z3P2JE67.mjs +2865 -0
- package/dist/cli/{play-SZXY2F2S.js → play-SM4CW2GS.js} +1116 -846
- package/dist/cli/{play-TTMABJEI.mjs → play-SN5YWLS7.mjs} +375 -105
- package/dist/cli/{providers-GQIOMRQO.mjs → providers-WZ4YBR5Y.mjs} +10 -10
- package/dist/cli/{providers-YDHCTZAF.js → providers-WZARYMCF.js} +13 -13
- package/dist/cli/{quickstart-PHSSMKCA.mjs → quickstart-2575BNKA.mjs} +7 -6
- package/dist/cli/{quickstart-BNYOXQXG.js → quickstart-PS4YHQJ6.js} +9 -8
- package/dist/cli/{run-GFIAZXVL.js → run-FLZ6OTM7.js} +51 -51
- package/dist/cli/{run-74C3C75C.mjs → run-ZUHCZOJS.mjs} +31 -31
- package/dist/cli/run-identity-LMLFMACS.js +31 -0
- package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MAZ7ANH5.mjs} +9 -3
- package/dist/cli/{search-3SWUB7KX.mjs → search-HLPPKQEO.mjs} +11 -11
- package/dist/cli/search-JJWVHR3N.js +32 -0
- package/dist/cli/{search-output-K2SWHVHQ.mjs → search-output-PDAXNOGP.mjs} +9 -8
- package/dist/cli/{search-output-6JF3S4TP.js → search-output-RXJLU36B.js} +12 -11
- package/dist/cli/{secrets-2M4XWEKE.mjs → secrets-CGELYQ3H.mjs} +11 -11
- package/dist/cli/{secrets-2SAKLH2H.js → secrets-QJNG7G2Y.js} +20 -20
- package/dist/cli/sessions-DHTBT2GN.js +23 -0
- package/dist/cli/{sessions-A64BCXTO.mjs → sessions-ELMWVR4M.mjs} +9 -8
- package/dist/cli/{settings-HV64WIJF.js → settings-44I44P5F.js} +89 -89
- package/dist/cli/{settings-SVGEC3FI.mjs → settings-RR3LZXL7.mjs} +16 -16
- package/dist/cli/{setup-EDC3NEJ3.mjs → setup-KGWRWH4B.mjs} +20 -19
- package/dist/cli/{setup-FHXOLQGQ.js → setup-KTEYOCJO.js} +60 -59
- package/dist/cli/skills-EPZPEXI2.js +37 -0
- package/dist/cli/{skills-3HGHZMXB.mjs → skills-FPRID2I5.mjs} +10 -9
- package/dist/cli/tools-IGQQ5TML.js +57 -0
- package/dist/cli/{tools-P2QS6A6Q.mjs → tools-PI4WMDLY.mjs} +23 -23
- package/dist/cli/update-4RNCVYGE.js +37 -0
- package/dist/cli/{update-552BYQM4.mjs → update-VJOJAZ7B.mjs} +14 -11
- package/dist/cli/{views-PA25NAE3.js → views-NTUOLNQU.js} +62 -64
- package/dist/cli/{views-LD5HXJYY.mjs → views-OVPSINZO.mjs} +47 -49
- package/dist/cli/{workflow-FIDBUQV6.js → workflow-2UDYDM6F.js} +23 -23
- package/dist/cli/{workflow-LDYFGBYP.mjs → workflow-7OEFNXZC.mjs} +13 -13
- package/dist/{client-DuDFiJDU.d.mts → client-B8f7RNF8.d.mts} +1 -1
- package/dist/{client-t9HZAkFD.d.ts → client-C5TgXmJQ.d.ts} +1 -1
- package/dist/{client-core-DydMQOft.d.mts → client-core-SLLGBTht.d.mts} +285 -23
- package/dist/{client-core-CJRzLanv.d.ts → client-core-p0sOxnkl.d.ts} +285 -23
- package/dist/{compiler-manifest-BqwVrOri.d.mts → compiler-manifest-D_zZEh9Q.d.mts} +70 -5
- package/dist/{compiler-manifest-BqwVrOri.d.ts → compiler-manifest-D_zZEh9Q.d.ts} +70 -5
- package/dist/{errors-BU8FB99X.d.mts → errors-CZCrBFrQ.d.mts} +1 -1
- package/dist/{errors-DfVN_FUG.d.ts → errors-DsUkLrdZ.d.ts} +1 -1
- package/dist/{index-BGnvtYGc.d.ts → index-B6RTOZGC.d.ts} +1 -1
- package/dist/{index-DjZgwpGw.d.mts → index-DeOVrEmX.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +66 -55
- package/dist/index.mjs +25 -14
- package/dist/install-integrity.json +162 -142
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +23 -4
- package/dist/plays/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +4 -4
- package/dist/plays/run-request.mjs +3 -3
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +15 -13
- package/dist/server.mjs +9 -7
- package/package.json +1 -1
- package/dist/cli/auth-B4PI7GVY.js +0 -43
- package/dist/cli/concurrent-runs-help-JEFQZTJI.js +0 -21
- package/dist/cli/describe-PXTSBJTL.js +0 -50
- package/dist/cli/describe-YGMQBV44.mjs +0 -50
- package/dist/cli/git-I3JV7IGH.js +0 -25
- package/dist/cli/org-5KD7X7IA.mjs +0 -1282
- package/dist/cli/org-YQ2CR32B.js +0 -1282
- package/dist/cli/run-identity-G257GQED.js +0 -25
- package/dist/cli/search-2RRRF4LW.js +0 -32
- package/dist/cli/sessions-SBH27JNW.js +0 -22
- package/dist/cli/skills-Y3SRLOYD.js +0 -36
- package/dist/cli/tools-OFYPUPUV.js +0 -57
- package/dist/cli/update-SOUSCLB7.js +0 -34
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AuthError,
|
|
3
|
+
ConfigError,
|
|
3
4
|
RateLimitError,
|
|
4
5
|
ToolRateLimitError
|
|
5
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ASB47RXJ.mjs";
|
|
6
7
|
import {
|
|
7
8
|
apiErrorCodeFromResponse,
|
|
8
9
|
apiErrorMessage
|
|
@@ -14,10 +15,13 @@ import {
|
|
|
14
15
|
attachToolUpstreamResponse,
|
|
15
16
|
deserializeToolExecutionFailure,
|
|
16
17
|
serializeToolExecutionFailure
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Z3A2S3QM.mjs";
|
|
19
|
+
import {
|
|
20
|
+
playRunIdLookupPrefix
|
|
21
|
+
} from "./chunk-2MGZAI54.mjs";
|
|
18
22
|
import {
|
|
19
23
|
SDK_RELEASE
|
|
20
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-GAVZ4EOD.mjs";
|
|
21
25
|
|
|
22
26
|
// src/version.ts
|
|
23
27
|
var SDK_VERSION = SDK_RELEASE.version;
|
|
@@ -156,6 +160,71 @@ function detectAgentRuntime(options = {}) {
|
|
|
156
160
|
return options.defaultRuntime ?? "unknown";
|
|
157
161
|
}
|
|
158
162
|
|
|
163
|
+
// src/tool-failure-hint.ts
|
|
164
|
+
var FAILURE_HINT = Symbol.for("deepline.sdk.toolFailureHint");
|
|
165
|
+
var MAX_HINT_CHARS = 1e3;
|
|
166
|
+
var MAX_FIELDS = 8;
|
|
167
|
+
var MAX_FIELD_CHARS = 120;
|
|
168
|
+
function record(value) {
|
|
169
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
170
|
+
}
|
|
171
|
+
function boundedText(value, max) {
|
|
172
|
+
if (typeof value !== "string") return null;
|
|
173
|
+
const trimmed = value.trim();
|
|
174
|
+
return trimmed && trimmed.length <= max ? trimmed : null;
|
|
175
|
+
}
|
|
176
|
+
function clippedText(value, max) {
|
|
177
|
+
if (typeof value !== "string") return null;
|
|
178
|
+
const trimmed = value.trim();
|
|
179
|
+
if (!trimmed) return null;
|
|
180
|
+
return trimmed.length <= max ? trimmed : `${trimmed.slice(0, max - 1)}\u2026`;
|
|
181
|
+
}
|
|
182
|
+
function fieldNames(envelope) {
|
|
183
|
+
const fields = [];
|
|
184
|
+
const add = (value) => {
|
|
185
|
+
const name = boundedText(value, MAX_FIELD_CHARS);
|
|
186
|
+
if (name && !fields.includes(name) && fields.length < MAX_FIELDS) {
|
|
187
|
+
fields.push(name);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
const issues = Array.isArray(envelope.validation_issues) ? envelope.validation_issues : [];
|
|
191
|
+
for (const issue of issues) {
|
|
192
|
+
const path = record(issue)?.path;
|
|
193
|
+
const name = Array.isArray(path) ? path.map(String).join(".") : path;
|
|
194
|
+
if (name !== "(root)") add(name);
|
|
195
|
+
}
|
|
196
|
+
const mappings = Array.isArray(envelope.adapter_field_mappings) ? envelope.adapter_field_mappings : [];
|
|
197
|
+
for (const mapping of mappings) add(record(mapping)?.deepline_field);
|
|
198
|
+
return fields;
|
|
199
|
+
}
|
|
200
|
+
function readToolFailureHintFromEnvelope(body) {
|
|
201
|
+
const envelope = record(body);
|
|
202
|
+
if (!envelope) return null;
|
|
203
|
+
const hint = {};
|
|
204
|
+
const operatorHint = clippedText(envelope.operator_hint, MAX_HINT_CHARS);
|
|
205
|
+
if (operatorHint) hint.operator_hint = operatorHint;
|
|
206
|
+
const fields = fieldNames(envelope);
|
|
207
|
+
if (fields.length) hint.fields = fields;
|
|
208
|
+
const billing = record(envelope.billing);
|
|
209
|
+
const billingUrl = boundedText(envelope.billing_url, MAX_HINT_CHARS) ?? boundedText(billing?.billing_url, MAX_HINT_CHARS);
|
|
210
|
+
if (billingUrl?.startsWith("https://")) hint.billing_url = billingUrl;
|
|
211
|
+
return Object.keys(hint).length ? hint : null;
|
|
212
|
+
}
|
|
213
|
+
function attachToolFailureHint(error, body) {
|
|
214
|
+
const hint = readToolFailureHintFromEnvelope(body);
|
|
215
|
+
if (hint) {
|
|
216
|
+
Object.defineProperty(error, FAILURE_HINT, {
|
|
217
|
+
value: hint,
|
|
218
|
+
configurable: true
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
return error;
|
|
222
|
+
}
|
|
223
|
+
function readToolFailureHint(error) {
|
|
224
|
+
if (error === null || typeof error !== "object") return null;
|
|
225
|
+
return error[FAILURE_HINT] ?? null;
|
|
226
|
+
}
|
|
227
|
+
|
|
159
228
|
// src/deployment-protection.ts
|
|
160
229
|
function deploymentProtectionHeaders(env = typeof process !== "undefined" ? process.env : {}) {
|
|
161
230
|
const token = env.VERCEL_PROTECTION_BYPASS_TOKEN;
|
|
@@ -298,11 +367,11 @@ function networkCauseCode(error) {
|
|
|
298
367
|
const current = queue.shift();
|
|
299
368
|
if (!current || typeof current !== "object" || seen.has(current)) continue;
|
|
300
369
|
seen.add(current);
|
|
301
|
-
const
|
|
302
|
-
if (typeof
|
|
303
|
-
return
|
|
304
|
-
queue.push(
|
|
305
|
-
if (Array.isArray(
|
|
370
|
+
const record2 = current;
|
|
371
|
+
if (typeof record2.code === "string" && /^[A-Z][A-Z0-9_]+$/.test(record2.code))
|
|
372
|
+
return record2.code;
|
|
373
|
+
queue.push(record2.cause);
|
|
374
|
+
if (Array.isArray(record2.errors)) queue.push(...record2.errors);
|
|
306
375
|
}
|
|
307
376
|
return void 0;
|
|
308
377
|
}
|
|
@@ -355,11 +424,29 @@ function providerLabelFromToolId(toolId) {
|
|
|
355
424
|
function isRecord(value) {
|
|
356
425
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
357
426
|
}
|
|
427
|
+
var PLAY_RUN_ID_IN_PATH = /play(?:\/|%2F)(?:[a-z0-9-]+(?:\/|%2F))+run(?:\/|%2F)\d{8}t\d{6}-\d{3}-[a-z0-9]{8}(?:-caller-[a-f0-9]*)?(?![A-Za-z0-9-])/gi;
|
|
428
|
+
function runIdsToLookUp(path) {
|
|
429
|
+
const found = /* @__PURE__ */ new Map();
|
|
430
|
+
if (path.startsWith("/api/v2/runs/resolve")) return found;
|
|
431
|
+
for (const raw of path.match(PLAY_RUN_ID_IN_PATH) ?? []) {
|
|
432
|
+
let decoded;
|
|
433
|
+
try {
|
|
434
|
+
decoded = decodeURIComponent(raw);
|
|
435
|
+
} catch {
|
|
436
|
+
continue;
|
|
437
|
+
}
|
|
438
|
+
const lookup = playRunIdLookupPrefix(decoded);
|
|
439
|
+
if (lookup) found.set(raw, lookup);
|
|
440
|
+
}
|
|
441
|
+
return found;
|
|
442
|
+
}
|
|
358
443
|
var HttpClient = class {
|
|
359
444
|
constructor(config, readLocalSkillsVersion) {
|
|
360
445
|
this.config = config;
|
|
361
446
|
this.readLocalSkillsVersion = readLocalSkillsVersion;
|
|
362
447
|
}
|
|
448
|
+
/** Full run ids by the short id that named them, for this client's life. */
|
|
449
|
+
resolvedRunIds = /* @__PURE__ */ new Map();
|
|
363
450
|
cleanDiagnosticHeader(value) {
|
|
364
451
|
const normalized = String(value ?? "").replace(/[\u0000-\u001f\u007f]/g, " ").trim().slice(0, MAX_DIAGNOSTIC_HEADER_LENGTH);
|
|
365
452
|
return normalized || null;
|
|
@@ -400,6 +487,10 @@ var HttpClient = class {
|
|
|
400
487
|
if (skillsVersion) {
|
|
401
488
|
headers["X-Deepline-Skills-Version"] = skillsVersion;
|
|
402
489
|
}
|
|
490
|
+
const workspace = this.config.workspace ?? env.DEEPLINE_WORKSPACE_ID?.trim();
|
|
491
|
+
if (workspace) {
|
|
492
|
+
headers["x-deepline-org-workspace-id"] = workspace;
|
|
493
|
+
}
|
|
403
494
|
const agentSessionId = agentSessionIdFromEnvironment(env);
|
|
404
495
|
if (agentSessionId) {
|
|
405
496
|
headers["X-Deepline-Agent-Session-Id"] = agentSessionId;
|
|
@@ -453,6 +544,37 @@ var HttpClient = class {
|
|
|
453
544
|
this.config.headers
|
|
454
545
|
);
|
|
455
546
|
}
|
|
547
|
+
/**
|
|
548
|
+
* Swap each run id in `path` that cannot be read as written for the full
|
|
549
|
+
* one: a short id, or a caller id with a damaged hash tail. Every run
|
|
550
|
+
* endpoint takes the full id. A run the lookup cannot find keeps its id, so
|
|
551
|
+
* the endpoint answers with its own error.
|
|
552
|
+
*/
|
|
553
|
+
async expandRunIds(path, lookups) {
|
|
554
|
+
const replacements = /* @__PURE__ */ new Map();
|
|
555
|
+
for (const [raw, short] of lookups) {
|
|
556
|
+
let full = this.resolvedRunIds.get(short);
|
|
557
|
+
if (!full) {
|
|
558
|
+
try {
|
|
559
|
+
const resolved = await this.request(
|
|
560
|
+
`/api/v2/runs/resolve?id=${encodeURIComponent(short)}`
|
|
561
|
+
);
|
|
562
|
+
full = resolved.runId;
|
|
563
|
+
} catch (error) {
|
|
564
|
+
if (error instanceof DeeplineError && error.statusCode === 404) {
|
|
565
|
+
continue;
|
|
566
|
+
}
|
|
567
|
+
throw error;
|
|
568
|
+
}
|
|
569
|
+
this.resolvedRunIds.set(short, full);
|
|
570
|
+
}
|
|
571
|
+
replacements.set(raw, /%2f/i.test(raw) ? encodeURIComponent(full) : full);
|
|
572
|
+
}
|
|
573
|
+
return replacements.size === 0 ? path : path.replace(
|
|
574
|
+
PLAY_RUN_ID_IN_PATH,
|
|
575
|
+
(raw) => replacements.get(raw) ?? raw
|
|
576
|
+
);
|
|
577
|
+
}
|
|
456
578
|
/**
|
|
457
579
|
* Send an HTTP request with automatic retries and error handling.
|
|
458
580
|
*
|
|
@@ -464,7 +586,9 @@ var HttpClient = class {
|
|
|
464
586
|
* @throws {@link RateLimitError} on HTTP 429 after all retries exhausted
|
|
465
587
|
* @throws {@link DeeplineError} on other API errors or connection failures
|
|
466
588
|
*/
|
|
467
|
-
async request(
|
|
589
|
+
async request(rawPath, options) {
|
|
590
|
+
const lookups = runIdsToLookUp(rawPath);
|
|
591
|
+
const path = lookups.size > 0 ? await this.expandRunIds(rawPath, lookups) : rawPath;
|
|
468
592
|
const baseUrl = this.config.baseUrl;
|
|
469
593
|
const url = `${baseUrl}${path}`;
|
|
470
594
|
const method = options?.method ?? "GET";
|
|
@@ -537,14 +661,14 @@ var HttpClient = class {
|
|
|
537
661
|
});
|
|
538
662
|
networkPhase = "reading_body";
|
|
539
663
|
options?.onResponse?.(response);
|
|
540
|
-
if (response.status === 404 && options?.allowNotFound) {
|
|
541
|
-
clearTimeout(timeoutId);
|
|
542
|
-
return null;
|
|
543
|
-
}
|
|
544
664
|
const body = await response.text();
|
|
545
665
|
const receivedAtMs = Date.now();
|
|
546
666
|
clearTimeout(timeoutId);
|
|
547
667
|
const parsed = parseResponseBody(body);
|
|
668
|
+
throwIfTeamNotFound(response.status, parsed);
|
|
669
|
+
if (response.status === 404 && options?.allowNotFound) {
|
|
670
|
+
return null;
|
|
671
|
+
}
|
|
548
672
|
options?.onResponseBody?.({
|
|
549
673
|
receivedAtMs,
|
|
550
674
|
httpStatus: response.status,
|
|
@@ -576,9 +700,15 @@ var HttpClient = class {
|
|
|
576
700
|
};
|
|
577
701
|
break;
|
|
578
702
|
}
|
|
579
|
-
throw
|
|
703
|
+
throw attachToolFailureHint(
|
|
704
|
+
attachToolUpstreamResponse(lastError, parsed),
|
|
705
|
+
parsed
|
|
706
|
+
);
|
|
580
707
|
}
|
|
581
|
-
throw
|
|
708
|
+
throw attachToolFailureHint(
|
|
709
|
+
attachToolUpstreamResponse(structuredToolError, parsed),
|
|
710
|
+
parsed
|
|
711
|
+
);
|
|
582
712
|
}
|
|
583
713
|
if (response.status === 429) {
|
|
584
714
|
if (options?.preserveRateLimitResponse && isMonitorRateLimitEnvelope(parsed)) {
|
|
@@ -753,7 +883,9 @@ var HttpClient = class {
|
|
|
753
883
|
...options
|
|
754
884
|
});
|
|
755
885
|
}
|
|
756
|
-
async *streamSse(
|
|
886
|
+
async *streamSse(rawPath, options) {
|
|
887
|
+
const lookups = runIdsToLookUp(rawPath);
|
|
888
|
+
const path = lookups.size > 0 ? await this.expandRunIds(rawPath, lookups) : rawPath;
|
|
757
889
|
const url = `${this.config.baseUrl}${path}`;
|
|
758
890
|
const method = options?.method ?? "GET";
|
|
759
891
|
const headers = this.authHeaders({
|
|
@@ -778,6 +910,7 @@ var HttpClient = class {
|
|
|
778
910
|
if (!response.ok) {
|
|
779
911
|
const body = await response.text();
|
|
780
912
|
const parsed = parseResponseBody(body);
|
|
913
|
+
throwIfTeamNotFound(response.status, parsed);
|
|
781
914
|
if (response.status === 401 && !isProviderOriginatedHttpError(parsed)) {
|
|
782
915
|
throw new AuthError(apiErrorMessage(parsed, response.status));
|
|
783
916
|
}
|
|
@@ -888,6 +1021,14 @@ var HttpClient = class {
|
|
|
888
1021
|
return this.request(path, { method: "DELETE" });
|
|
889
1022
|
}
|
|
890
1023
|
};
|
|
1024
|
+
function throwIfTeamNotFound(status, parsed) {
|
|
1025
|
+
if (status !== 404 || apiErrorCodeFromResponse(parsed) !== "TEAM_NOT_FOUND") {
|
|
1026
|
+
return;
|
|
1027
|
+
}
|
|
1028
|
+
throw new ConfigError(
|
|
1029
|
+
`${apiErrorMessage(parsed, status)} Check --workspace or DEEPLINE_WORKSPACE_ID; unset it to use the default workspace.`
|
|
1030
|
+
);
|
|
1031
|
+
}
|
|
891
1032
|
function parseResponseBody(body) {
|
|
892
1033
|
try {
|
|
893
1034
|
return JSON.parse(body);
|
|
@@ -949,8 +1090,12 @@ function parseRetryAfterHint(response) {
|
|
|
949
1090
|
const header = response.headers.get("retry-after");
|
|
950
1091
|
if (header) {
|
|
951
1092
|
const seconds = Number(header);
|
|
952
|
-
if (Number.isFinite(seconds)
|
|
953
|
-
return { delayMs: seconds * 1e3, exact: false };
|
|
1093
|
+
if (Number.isFinite(seconds)) {
|
|
1094
|
+
return seconds > 0 ? { delayMs: seconds * 1e3, exact: false } : null;
|
|
1095
|
+
}
|
|
1096
|
+
const retryAtMs = Date.parse(header);
|
|
1097
|
+
if (Number.isFinite(retryAtMs)) {
|
|
1098
|
+
return { delayMs: Math.max(0, retryAtMs - Date.now()), exact: false };
|
|
954
1099
|
}
|
|
955
1100
|
}
|
|
956
1101
|
return null;
|
|
@@ -1042,6 +1187,7 @@ export {
|
|
|
1042
1187
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
1043
1188
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
1044
1189
|
EXPERIMENT_SWITCHES_HEADER,
|
|
1190
|
+
readToolFailureHint,
|
|
1045
1191
|
agentSessionIdFromEnvironment,
|
|
1046
1192
|
isAgentSessionId,
|
|
1047
1193
|
claudeProjectsRoots,
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
var _chunkCSPHSNBWjs = require('./chunk-CSPHSNBW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCACFJODGjs = require('./chunk-CACFJODG.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
18
18
|
|
|
19
19
|
// ../play-runtime/governor/policy.ts
|
|
20
|
-
var DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS =
|
|
20
|
+
var DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS = 100;
|
|
21
21
|
var MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS = 1e3;
|
|
22
22
|
var MAX_CONFIGURABLE_CONCURRENT_ROWS = 1e3;
|
|
23
23
|
function resolveMaxConcurrentExternalCalls(requested) {
|
|
@@ -537,14 +537,14 @@ function parseJsonInput(raw, flag = "--input") {
|
|
|
537
537
|
try {
|
|
538
538
|
parsed = JSON.parse(source);
|
|
539
539
|
} catch (e) {
|
|
540
|
-
throw new (0,
|
|
540
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
541
541
|
`${flag} expects a valid JSON object or @input.json. A bare file path is not JSON.${flag === "--input" ? " Use the field names and run example from plays check <file> or deepline describe <play>. --csv contacts.csv supplies input.csv only when the Play declares that field." : ""}`,
|
|
542
542
|
void 0,
|
|
543
543
|
"INVALID_JSON"
|
|
544
544
|
);
|
|
545
545
|
}
|
|
546
546
|
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
547
|
-
throw new (0,
|
|
547
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
548
548
|
`${flag} must be a JSON object.`,
|
|
549
549
|
void 0,
|
|
550
550
|
"INVALID_JSON"
|
|
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
|
|
|
581
581
|
return raw;
|
|
582
582
|
}
|
|
583
583
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
584
|
-
const selection =
|
|
584
|
+
const selection = _chunkXLIHTJVMjs.parseJsonFields.call(void 0, args, "run");
|
|
585
585
|
args = selection.args;
|
|
586
586
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
587
587
|
let filePath = null;
|
|
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
593
593
|
let revisionSelector = null;
|
|
594
594
|
const watch = !args.includes("--no-wait");
|
|
595
595
|
const dryRun = args.includes("--dry-run");
|
|
596
|
-
let jsonOutput = dryRun ?
|
|
596
|
+
let jsonOutput = dryRun ? _chunkXLIHTJVMjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkXLIHTJVMjs.argsWantJson.call(void 0, args);
|
|
597
597
|
const fullJson = args.includes("--full");
|
|
598
598
|
const force = args.includes("--force") || args.includes("--from-start");
|
|
599
599
|
const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
|
|
@@ -657,7 +657,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
657
657
|
"--log-level requires one of: debug, info, warn, error."
|
|
658
658
|
);
|
|
659
659
|
}
|
|
660
|
-
const parsed =
|
|
660
|
+
const parsed = _chunkCACFJODGjs.parseLogLevel.call(void 0, value);
|
|
661
661
|
if (!parsed) {
|
|
662
662
|
throw new Error(
|
|
663
663
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -795,12 +795,12 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
795
795
|
}
|
|
796
796
|
if (arg === "--debug" && args[index + 1] && !args[index + 1].startsWith("--")) {
|
|
797
797
|
input ??= {};
|
|
798
|
-
|
|
798
|
+
_chunkMJTVX4QKjs.setDottedInputValue.call(void 0, input, "debug", parseInputFlagValue(args[++index]));
|
|
799
799
|
continue;
|
|
800
800
|
}
|
|
801
801
|
if (arg.startsWith("--debug=")) {
|
|
802
802
|
input ??= {};
|
|
803
|
-
|
|
803
|
+
_chunkMJTVX4QKjs.setDottedInputValue.call(void 0,
|
|
804
804
|
input,
|
|
805
805
|
"debug",
|
|
806
806
|
parseInputFlagValue(arg.slice("--debug=".length))
|
|
@@ -828,7 +828,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
828
828
|
if (arg.startsWith("--")) {
|
|
829
829
|
const { path, value } = parseInputFieldFlag(arg, args[index + 1]);
|
|
830
830
|
input ??= {};
|
|
831
|
-
|
|
831
|
+
_chunkMJTVX4QKjs.setDottedInputValue.call(void 0, input, path, parseInputFlagValue(value));
|
|
832
832
|
if (!arg.includes("=")) {
|
|
833
833
|
index += 1;
|
|
834
834
|
}
|
|
@@ -918,7 +918,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
918
918
|
let initialInput = options.input === void 0 ? null : parseJsonInput(options.input);
|
|
919
919
|
if (typeof options.debug === "string") {
|
|
920
920
|
initialInput ??= {};
|
|
921
|
-
|
|
921
|
+
_chunkMJTVX4QKjs.setDottedInputValue.call(void 0,
|
|
922
922
|
initialInput,
|
|
923
923
|
"debug",
|
|
924
924
|
parseInputFlagValue(options.debug)
|
|
@@ -990,7 +990,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
990
990
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
991
991
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
992
992
|
);
|
|
993
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
993
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkCACFJODGjs.parseLogLevel.call(void 0, options.logLevel);
|
|
994
994
|
if (!logLevel)
|
|
995
995
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
996
996
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -1004,13 +1004,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
1004
1004
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
1005
1005
|
logLevel = "debug";
|
|
1006
1006
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
1007
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
1008
|
-
[...fullJson ? ["--full"] : [], ...
|
|
1007
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkXLIHTJVMjs.parseJsonFields.call(void 0,
|
|
1008
|
+
[...fullJson ? ["--full"] : [], ..._chunkXLIHTJVMjs.jsonFieldArgs.call(void 0, options.json)],
|
|
1009
1009
|
"run"
|
|
1010
1010
|
).fields;
|
|
1011
1011
|
const watch = options.wait === false ? false : base.watch;
|
|
1012
1012
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
1013
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
1013
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkXLIHTJVMjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
1014
1014
|
const verboseLogs = Boolean(
|
|
1015
1015
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1016
1016
|
);
|