deepline 0.3.552 → 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 +107 -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 +118 -8
- 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 +8 -1
- 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 +9 -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-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/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 +168 -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 +444 -39
- 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-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 +72 -0
- 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 +254 -44
- 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 +259 -52
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +30 -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-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/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-KVSBJZOX.mjs → auth-I3QAU4RV.mjs} +8 -7
- package/dist/cli/auth-MQCN7WGZ.js +44 -0
- package/dist/cli/{billing-54RHFEBI.mjs → billing-3IC54OQQ.mjs} +197 -61
- package/dist/cli/{billing-FQREA7UA.js → billing-YGFFVAIC.js} +297 -161
- package/dist/cli/{chunk-4MK42735.js → chunk-2B5B5KAW.js} +210 -128
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
- package/dist/cli/{chunk-4NQF6KJ3.js → chunk-3NTP2OSG.js} +13 -13
- package/dist/cli/{chunk-HYC4MKGK.mjs → chunk-45OAVGU6.mjs} +5 -5
- package/dist/cli/{chunk-WLN3SUIA.js → chunk-4747TPLV.js} +3 -3
- package/dist/cli/{chunk-AZQ264ID.mjs → chunk-4BFTDNHU.mjs} +1 -1
- package/dist/cli/{chunk-BGBJV26E.mjs → chunk-4HYNMXXF.mjs} +4 -4
- package/dist/cli/{chunk-DJ2JDK4O.mjs → chunk-4SMCFQ23.mjs} +1 -1
- package/dist/cli/{chunk-QPKH23EC.mjs → chunk-55F6HNOY.mjs} +5 -5
- package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
- package/dist/cli/{chunk-634ZDA3F.js → chunk-6NE3RRRY.js} +1 -1
- package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
- package/dist/cli/{chunk-EOPEYCY7.mjs → chunk-72V4PDH5.mjs} +18 -18
- package/dist/cli/{chunk-IHRKLXZN.js → chunk-74RES4DS.js} +5 -5
- package/dist/cli/{chunk-45PVGZST.js → chunk-7GEMELKI.js} +366 -320
- package/dist/cli/{chunk-4UUR4TCH.js → chunk-7O6J6A7P.js} +1871 -92
- package/dist/cli/{chunk-XVB7V4N7.js → chunk-7SERLBNR.js} +161 -53
- package/dist/cli/{chunk-F2LH7TGF.js → chunk-7YRJ5UC4.js} +21 -21
- package/dist/cli/{chunk-YJHE3O5M.mjs → chunk-A7DLBE5K.mjs} +136 -54
- package/dist/cli/{chunk-6PRW5UBA.mjs → chunk-AGICYWGN.mjs} +299 -69
- package/dist/cli/{chunk-S5S355UY.mjs → chunk-AGIQDA2T.mjs} +12 -12
- package/dist/cli/{chunk-RBEUVDZF.js → chunk-AGLR6QVN.js} +249 -107
- package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
- package/dist/cli/{chunk-RQZQVFCJ.js → chunk-BVDKFS2T.js} +2 -2
- package/dist/cli/{chunk-PFO3ISXA.js → chunk-CACFJODG.js} +174 -129
- package/dist/cli/{chunk-6RZOWL2V.mjs → chunk-CAEBJOYU.mjs} +1 -1
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
- package/dist/cli/{chunk-6YCA5NKJ.js → chunk-DP2VH7CO.js} +12 -12
- package/dist/cli/{chunk-AWJPDPMA.mjs → chunk-DP64MD6U.mjs} +1 -1
- package/dist/cli/{chunk-PTVD2GVQ.mjs → chunk-DZA7RFGL.mjs} +5 -5
- package/dist/cli/{chunk-V436Z54K.js → chunk-E2G2DNAB.js} +3 -1
- package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-E7WZOX2A.mjs} +22 -18
- package/dist/cli/{chunk-IDVVIXPJ.js → chunk-FM7LPUPA.js} +41 -41
- package/dist/cli/{chunk-AQWQ2BFX.mjs → chunk-GAVZ4EOD.mjs} +1 -1
- package/dist/cli/{chunk-GKYAYLRI.js → chunk-HEBO3XNZ.js} +27 -31
- package/dist/cli/{chunk-IYSTRCLX.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-HO3XK3R7.js → chunk-IMX7J4DU.js} +8 -8
- package/dist/cli/{chunk-EUPVF4SU.mjs → chunk-INEMTYMT.mjs} +8 -8
- package/dist/cli/{chunk-3FD5EQ62.js → chunk-IUOGII7D.js} +6 -7
- package/dist/cli/{chunk-U7QRMBIY.mjs → chunk-JJGWHITQ.mjs} +5 -5
- package/dist/cli/{chunk-SHLFOPD6.js → chunk-JLGP5XAJ.js} +5 -5
- package/dist/cli/{chunk-4TALT2M3.mjs → chunk-LFOERUQY.mjs} +69 -3
- package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
- package/dist/cli/{chunk-Z5TSLLOW.mjs → chunk-LH5PZKER.mjs} +63 -18
- package/dist/cli/{chunk-S46HWQKO.js → chunk-LRDHPOZW.js} +69 -69
- package/dist/cli/{chunk-6ZORHRKB.mjs → chunk-LRZGS6RZ.mjs} +2 -0
- package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
- package/dist/cli/{chunk-7IKQKKNX.js → chunk-MLABYI4M.js} +90 -24
- package/dist/cli/{chunk-ZIAXDBXX.mjs → chunk-NDNHYONK.mjs} +17 -21
- package/dist/cli/{chunk-YLTMXJFC.mjs → chunk-OTV2UUKW.mjs} +158 -16
- package/dist/cli/{chunk-G4O75EXF.js → chunk-Q6Z6N3A7.js} +18 -18
- package/dist/cli/{chunk-WE5HES3H.mjs → chunk-QG6JIWUL.mjs} +151 -43
- package/dist/cli/{chunk-QY3ZNU6Z.mjs → chunk-QI5S5HWB.mjs} +2 -2
- package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
- package/dist/cli/{chunk-57VZVF5D.mjs → chunk-RMNOZKRI.mjs} +3 -3
- package/dist/cli/{chunk-BAIST2BR.js → chunk-RTV4RF7N.js} +36 -36
- package/dist/cli/{chunk-JWUAX6OP.js → chunk-SBH4CKPN.js} +11 -11
- package/dist/cli/{chunk-FTJLJCE5.mjs → chunk-SG3LUONJ.mjs} +3 -3
- package/dist/cli/{chunk-2WFPHBR4.js → chunk-TFEXSHPM.js} +22 -18
- package/dist/cli/{chunk-QAORXEY3.mjs → chunk-TN4TY6TT.mjs} +6 -7
- package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-UEVKMZLR.mjs} +54 -3
- package/dist/cli/{chunk-QILKGXYF.mjs → chunk-UVQJYV76.mjs} +2 -2
- package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
- package/dist/cli/{chunk-MF2GHZDO.js → chunk-WOCHZCUJ.js} +2 -2
- package/dist/cli/{chunk-VQALXEXO.js → chunk-XLIHTJVM.js} +348 -118
- package/dist/cli/{chunk-ADRC5I3R.js → chunk-Y6SP3JMI.js} +22 -22
- package/dist/cli/{chunk-77AAAGVB.js → chunk-YUA6HA6D.js} +2 -2
- package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
- package/dist/cli/{chunk-6O5HOODW.mjs → chunk-Z6XPSHKM.mjs} +87 -41
- package/dist/cli/{chunk-QX7LFGJR.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-Q4KPAUJX.mjs → concurrent-runs-help-DNV2X5AZ.mjs} +9 -8
- package/dist/cli/{csv-F5VAGX4K.js → csv-SA6ELJY6.js} +16 -15
- package/dist/cli/{csv-2PTVDNO6.mjs → csv-ZXZGHWOM.mjs} +7 -6
- package/dist/cli/{db-IEDXAUF7.mjs → db-A54SP6AD.mjs} +16 -16
- package/dist/cli/{db-Z3OIUFMM.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-R3LP74QN.mjs → executions-HL2M2DFU.mjs} +10 -10
- package/dist/cli/{executions-H6H5655J.js → executions-TLFZRHBJ.js} +12 -12
- package/dist/cli/{feedback-VFOUR66B.js → feedback-5UEX5UZK.js} +17 -16
- package/dist/cli/{feedback-WL3MRVT5.mjs → feedback-QMBTNXVG.mjs} +9 -8
- package/dist/cli/git-4JWOOHBG.js +26 -0
- package/dist/cli/{git-YX2J4GCI.mjs → git-LKGXVIVC.mjs} +8 -7
- package/dist/cli/index.js +170 -158
- package/dist/cli/index.mjs +60 -48
- package/dist/cli/{integrations-E2JZYKHS.js → integrations-6RUTLMN7.js} +23 -27
- package/dist/cli/{integrations-5ZK5KLVP.mjs → integrations-FGGRVUJ7.mjs} +15 -19
- package/dist/cli/{legacy-noops-3VW4IJTH.js → legacy-noops-J3Z7QRWZ.js} +12 -11
- package/dist/cli/{legacy-noops-SMN3GSXY.mjs → legacy-noops-YIPRMVXZ.mjs} +9 -8
- package/dist/cli/{mcp-UQV2K4EW.js → mcp-6LWFP7RW.js} +121 -48
- package/dist/cli/{mcp-V6MGCYAG.mjs → mcp-CHDYFO7F.mjs} +100 -27
- package/dist/cli/{monitors-R3BBDCRC.js → monitors-STM6A7OU.js} +221 -186
- package/dist/cli/{monitors-GGKS5W6M.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-2MVO27VO.js → play-SM4CW2GS.js} +1116 -846
- package/dist/cli/{play-MDWPR4XG.mjs → play-SN5YWLS7.mjs} +375 -105
- package/dist/cli/{providers-AKDYFZJZ.mjs → providers-WZ4YBR5Y.mjs} +10 -10
- package/dist/cli/{providers-2AACRUZH.js → providers-WZARYMCF.js} +13 -13
- package/dist/cli/{quickstart-QDGRJFZY.mjs → quickstart-2575BNKA.mjs} +7 -6
- package/dist/cli/{quickstart-H6IV3PV3.js → quickstart-PS4YHQJ6.js} +9 -8
- package/dist/cli/{run-2634REDK.js → run-FLZ6OTM7.js} +51 -51
- package/dist/cli/{run-RTSQNGRD.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-6AOJ4XPP.mjs → search-HLPPKQEO.mjs} +11 -11
- package/dist/cli/search-JJWVHR3N.js +32 -0
- package/dist/cli/{search-output-6ADMTOU5.mjs → search-output-PDAXNOGP.mjs} +9 -8
- package/dist/cli/{search-output-S5ODBL5E.js → search-output-RXJLU36B.js} +12 -11
- package/dist/cli/{secrets-TFIFBFB3.mjs → secrets-CGELYQ3H.mjs} +11 -11
- package/dist/cli/{secrets-LHCIIHMT.js → secrets-QJNG7G2Y.js} +20 -20
- package/dist/cli/sessions-DHTBT2GN.js +23 -0
- package/dist/cli/{sessions-WHBVUHVW.mjs → sessions-ELMWVR4M.mjs} +9 -8
- package/dist/cli/{settings-CP4FVK2W.js → settings-44I44P5F.js} +89 -89
- package/dist/cli/{settings-EBONWL5C.mjs → settings-RR3LZXL7.mjs} +16 -16
- package/dist/cli/{setup-I5AZE3IU.mjs → setup-KGWRWH4B.mjs} +20 -19
- package/dist/cli/{setup-LFGHTNLQ.js → setup-KTEYOCJO.js} +60 -59
- package/dist/cli/skills-EPZPEXI2.js +37 -0
- package/dist/cli/{skills-W76AO5XE.mjs → skills-FPRID2I5.mjs} +10 -9
- package/dist/cli/tools-IGQQ5TML.js +57 -0
- package/dist/cli/{tools-7IJHGF6W.mjs → tools-PI4WMDLY.mjs} +23 -23
- package/dist/cli/update-4RNCVYGE.js +37 -0
- package/dist/cli/{update-GFOPZTHY.mjs → update-VJOJAZ7B.mjs} +14 -11
- package/dist/cli/{views-BPL2TQJ4.js → views-NTUOLNQU.js} +62 -64
- package/dist/cli/{views-D4NX4SBG.mjs → views-OVPSINZO.mjs} +47 -49
- package/dist/cli/{workflow-ZYNAUCKC.js → workflow-2UDYDM6F.js} +23 -23
- package/dist/cli/{workflow-YXP42FUI.mjs → workflow-7OEFNXZC.mjs} +13 -13
- package/dist/{client-CyXGrO4D.d.mts → client-B8f7RNF8.d.mts} +1 -1
- package/dist/{client-Bf3IpUKN.d.ts → client-C5TgXmJQ.d.ts} +1 -1
- package/dist/{client-core-BxsLnXlm.d.mts → client-core-SLLGBTht.d.mts} +268 -23
- package/dist/{client-core-BWd0lX0Z.d.ts → client-core-p0sOxnkl.d.ts} +268 -23
- package/dist/{compiler-manifest-BqwVrOri.d.ts → compiler-manifest-D_zZEh9Q.d.mts} +70 -5
- package/dist/{compiler-manifest-BqwVrOri.d.mts → 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 +161 -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-MMNVWATX.js +0 -43
- package/dist/cli/concurrent-runs-help-FQAIHKKC.js +0 -21
- package/dist/cli/describe-QDANCTS3.mjs +0 -50
- package/dist/cli/describe-VUTT5ZKU.js +0 -50
- package/dist/cli/git-ETB3GH3K.js +0 -25
- package/dist/cli/org-GRYVMNSW.js +0 -1282
- package/dist/cli/org-Z37NGJV4.mjs +0 -1282
- package/dist/cli/run-identity-G257GQED.js +0 -25
- package/dist/cli/search-VTW2YNBS.js +0 -32
- package/dist/cli/sessions-CJ4FJ2WB.js +0 -22
- package/dist/cli/skills-R7EBXREW.js +0 -36
- package/dist/cli/tools-V7U2BDXM.js +0 -57
- package/dist/cli/update-4COPZETK.js +0 -34
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7SERLBNRjs = require('./chunk-7SERLBNR.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk2B5B5KAWjs = require('./chunk-2B5B5KAW.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkAGLR6QVNjs = require('./chunk-AGLR6QVN.js');
|
|
22
22
|
|
|
23
23
|
// src/cli/compatibility-catalog.ts
|
|
24
24
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
45
45
|
async function reportAutoUpdateEvent(input) {
|
|
46
46
|
let apiKey = "";
|
|
47
47
|
try {
|
|
48
|
-
apiKey =
|
|
48
|
+
apiKey = _chunkMLABYI4Mjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
49
49
|
} catch (e2) {
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
61
61
|
headers: {
|
|
62
62
|
Authorization: `Bearer ${apiKey}`,
|
|
63
63
|
"Content-Type": "application/json",
|
|
64
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
64
|
+
"User-Agent": `deepline-ts-sdk/${_chunkAGLR6QVNjs.SDK_VERSION}`,
|
|
65
65
|
"X-Deepline-Client-Family": "sdk",
|
|
66
66
|
"X-Deepline-CLI-Family": "sdk",
|
|
67
|
-
"X-Deepline-CLI-Version":
|
|
68
|
-
"X-Deepline-SDK-Version":
|
|
67
|
+
"X-Deepline-CLI-Version": _chunkAGLR6QVNjs.SDK_VERSION,
|
|
68
|
+
"X-Deepline-SDK-Version": _chunkAGLR6QVNjs.SDK_VERSION
|
|
69
69
|
},
|
|
70
70
|
body: JSON.stringify({
|
|
71
71
|
event: input.event,
|
|
72
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
72
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkAGLR6QVNjs.SDK_VERSION,
|
|
73
73
|
target_version: input.response.latest,
|
|
74
74
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
75
75
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -88,13 +88,13 @@ function envTruthy(name) {
|
|
|
88
88
|
return value === "1" || value === "true" || value === "yes";
|
|
89
89
|
}
|
|
90
90
|
function shouldSkipSelfUpdate(policy) {
|
|
91
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
91
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk7SERLBNRjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk2B5B5KAWjs.isCiEnvironment.call(void 0, );
|
|
92
92
|
}
|
|
93
93
|
function isDowngradeAutoUpdateResponse(response) {
|
|
94
94
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
95
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
95
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkAGLR6QVNjs.SDK_VERSION;
|
|
96
96
|
if (!target) return false;
|
|
97
|
-
return
|
|
97
|
+
return _chunk7SERLBNRjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
98
98
|
}
|
|
99
99
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
100
100
|
return new Promise((resolve) => {
|
|
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
148
148
|
}
|
|
149
149
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
150
150
|
const target = response.latest;
|
|
151
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
151
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkAGLR6QVNjs.SDK_VERSION;
|
|
152
152
|
process.stderr.write(
|
|
153
153
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
154
154
|
`
|
|
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
156
156
|
return false;
|
|
157
157
|
}
|
|
158
158
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
159
|
-
const plan =
|
|
159
|
+
const plan = _chunk7SERLBNRjs.resolveUpdatePlan.call(void 0, {
|
|
160
160
|
packageSpec,
|
|
161
161
|
requireVerifiedNpmOwnership: true,
|
|
162
162
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
163
163
|
});
|
|
164
|
-
if (!
|
|
164
|
+
if (!_chunk7SERLBNRjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
165
165
|
return false;
|
|
166
166
|
}
|
|
167
167
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
168
168
|
deferredAutoUpdate = async () => {
|
|
169
169
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
170
170
|
};
|
|
171
|
-
if (
|
|
171
|
+
if (_chunkXLIHTJVMjs.isJsonOutputMode.call(void 0, )) {
|
|
172
172
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
173
|
-
|
|
173
|
+
_chunkXLIHTJVMjs.addJsonNotice.call(void 0, {
|
|
174
174
|
code: "sdk_update_queued",
|
|
175
175
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
176
176
|
});
|
|
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
183
183
|
return true;
|
|
184
184
|
}
|
|
185
185
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
186
|
-
if (!
|
|
186
|
+
if (!_chunk7SERLBNRjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
187
187
|
const autoUpdate = response.auto_update;
|
|
188
188
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
189
189
|
process.stderr.write(
|
|
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
196
196
|
event: "started",
|
|
197
197
|
installKind: plan.kind
|
|
198
198
|
});
|
|
199
|
-
const updateResult = await
|
|
199
|
+
const updateResult = await _chunk7SERLBNRjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
200
200
|
if (updateResult.status === "skipped_previous_failure") {
|
|
201
201
|
void reportAutoUpdateEvent({
|
|
202
202
|
baseUrl,
|
|
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
234
234
|
exitCode: 0
|
|
235
235
|
});
|
|
236
236
|
try {
|
|
237
|
-
await
|
|
237
|
+
await _chunk2B5B5KAWjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
238
238
|
mode: "detached",
|
|
239
239
|
update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
|
|
240
240
|
afterCliUpdate: {
|
|
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
|
|
|
261
261
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
262
262
|
var activeToolExecuteCommand = null;
|
|
263
263
|
function progressLine(line) {
|
|
264
|
-
if (!
|
|
264
|
+
if (!_chunkXLIHTJVMjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
265
265
|
}
|
|
266
266
|
function beginToolExecuteCommand() {
|
|
267
267
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2B5B5KAWjs = require('./chunk-2B5B5KAW.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunk2B5B5KAWjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
windowsHide: true,
|
|
19
19
|
encoding: "utf8",
|
|
@@ -6,6 +6,9 @@ var TOOL_EXECUTION_ERROR_BRAND = Symbol.for(
|
|
|
6
6
|
var PROVIDER_TRANSIENT_ERROR_BRAND = Symbol.for(
|
|
7
7
|
"deepline.provider-transient-error.v1"
|
|
8
8
|
);
|
|
9
|
+
var PROVIDER_REJECTED_ERROR_BRAND = Symbol.for(
|
|
10
|
+
"deepline.provider-rejected-error.v1"
|
|
11
|
+
);
|
|
9
12
|
var LEGACY_TOOL_EXECUTION_ERROR_SCHEMA_VERSION = 0;
|
|
10
13
|
var TOOL_EXECUTION_ERROR_SCHEMA_VERSION = 1;
|
|
11
14
|
var SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS = [
|
|
@@ -135,6 +138,9 @@ var ToolExecutionError = class _ToolExecutionError extends DeeplineError {
|
|
|
135
138
|
if (isProviderTransientFailure(options)) {
|
|
136
139
|
applyBrand(this, PROVIDER_TRANSIENT_ERROR_BRAND);
|
|
137
140
|
}
|
|
141
|
+
if (isProviderRejectionFailure(options)) {
|
|
142
|
+
applyBrand(this, PROVIDER_REJECTED_ERROR_BRAND);
|
|
143
|
+
}
|
|
138
144
|
}
|
|
139
145
|
static [Symbol.hasInstance](value) {
|
|
140
146
|
if (this !== _ToolExecutionError) return nativeInstanceOf(this, value);
|
|
@@ -147,6 +153,14 @@ function brandAsToolExecutionError(value) {
|
|
|
147
153
|
function isProviderTransientFailure(input) {
|
|
148
154
|
return input.origin === "provider" && (input.category === "rate_limit" || input.category === "network" || input.category === "upstream");
|
|
149
155
|
}
|
|
156
|
+
var PROVIDER_REJECTION_CODES = [
|
|
157
|
+
"UPSTREAM_BAD_INPUT",
|
|
158
|
+
"UPSTREAM_NOT_FOUND"
|
|
159
|
+
];
|
|
160
|
+
function isProviderRejectionFailure(input) {
|
|
161
|
+
const code = input.code ?? "";
|
|
162
|
+
return isProviderTransientFailure(input) && input.category === "upstream" && PROVIDER_REJECTION_CODES.includes(code);
|
|
163
|
+
}
|
|
150
164
|
var ProviderTransientError = class _ProviderTransientError extends ToolExecutionError {
|
|
151
165
|
/** Provider attribution is guaranteed for this subtype. */
|
|
152
166
|
origin = "provider";
|
|
@@ -166,6 +180,26 @@ var ProviderTransientError = class _ProviderTransientError extends ToolExecution
|
|
|
166
180
|
return hasBrand(value, PROVIDER_TRANSIENT_ERROR_BRAND);
|
|
167
181
|
}
|
|
168
182
|
};
|
|
183
|
+
var ProviderRejectedError = class _ProviderRejectedError extends ProviderTransientError {
|
|
184
|
+
/** Constructed by Deepline when a provider rejects the request. */
|
|
185
|
+
constructor(message, options) {
|
|
186
|
+
super(message, { ...options, category: "upstream" });
|
|
187
|
+
this.name = "ProviderRejectedError";
|
|
188
|
+
applyBrand(this, PROVIDER_REJECTED_ERROR_BRAND);
|
|
189
|
+
}
|
|
190
|
+
static [Symbol.hasInstance](value) {
|
|
191
|
+
if (this !== _ProviderRejectedError) return nativeInstanceOf(this, value);
|
|
192
|
+
if (hasBrand(value, PROVIDER_REJECTED_ERROR_BRAND)) return true;
|
|
193
|
+
if (!hasBrand(value, TOOL_EXECUTION_ERROR_BRAND)) return false;
|
|
194
|
+
const fields = value;
|
|
195
|
+
return isProviderRejectionFailure({
|
|
196
|
+
origin: fields.origin,
|
|
197
|
+
category: fields.category,
|
|
198
|
+
retryable: fields.retryable === true,
|
|
199
|
+
code: typeof fields.code === "string" ? fields.code : null
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
};
|
|
169
203
|
function getProviderUnavailableReason(error) {
|
|
170
204
|
if (error instanceof ProviderTransientError) return error.category;
|
|
171
205
|
if (error instanceof ToolExecutionError && error.origin === "deepline" && error.category === "rate_limit") {
|
|
@@ -345,6 +379,12 @@ function deserializeToolExecutionFailure(message, value, acceptedSchemaVersion)
|
|
|
345
379
|
}
|
|
346
380
|
const failure = normalizeToolExecutionFailure(value);
|
|
347
381
|
if (!failure) return null;
|
|
382
|
+
if (isProviderRejectionFailure(failure)) {
|
|
383
|
+
return new ProviderRejectedError(message, {
|
|
384
|
+
...failure,
|
|
385
|
+
code: failure.code
|
|
386
|
+
});
|
|
387
|
+
}
|
|
348
388
|
if (isProviderTransientFailure(failure)) {
|
|
349
389
|
return new ProviderTransientError(message, failure);
|
|
350
390
|
}
|
|
@@ -362,6 +402,7 @@ export {
|
|
|
362
402
|
brandAsToolExecutionError,
|
|
363
403
|
isProviderTransientFailure,
|
|
364
404
|
ProviderTransientError,
|
|
405
|
+
ProviderRejectedError,
|
|
365
406
|
getProviderUnavailableReason,
|
|
366
407
|
isProviderUnavailable,
|
|
367
408
|
isProviderWaterfallUnavailableError,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SG3LUONJ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
registerIntegrationBalanceCommand,
|
|
8
8
|
registerIntegrationConnectCommand,
|
|
@@ -11,16 +11,17 @@ import {
|
|
|
11
11
|
registerLegacyHubSpotMembersCommand,
|
|
12
12
|
registerLegacyWorkspaceConnectionCommand,
|
|
13
13
|
registerWorkspaceConnectionListCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NDNHYONK.mjs";
|
|
15
15
|
import {
|
|
16
16
|
recentSearchRef,
|
|
17
17
|
registerDeprecatedSearchCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-55F6HNOY.mjs";
|
|
19
19
|
import {
|
|
20
20
|
Capability,
|
|
21
21
|
arrayField,
|
|
22
22
|
formatModelDescription,
|
|
23
23
|
isMonitorTypeTool,
|
|
24
|
+
isMonitorVariantIndex,
|
|
24
25
|
isPlayLikeTool,
|
|
25
26
|
isRecord,
|
|
26
27
|
observedMaxText,
|
|
@@ -36,10 +37,10 @@ import {
|
|
|
36
37
|
toolInputFieldsForDisplay,
|
|
37
38
|
toolMetadataJsonForDescribe,
|
|
38
39
|
toolOutputFieldsForDisplay
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-UEVKMZLR.mjs";
|
|
40
41
|
import {
|
|
41
42
|
rateLimitQualifier
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-E7WZOX2A.mjs";
|
|
43
44
|
import {
|
|
44
45
|
shellQuote
|
|
45
46
|
} from "./chunk-OVDNJAJN.mjs";
|
|
@@ -55,31 +56,29 @@ import {
|
|
|
55
56
|
} from "./chunk-FIVKWNMT.mjs";
|
|
56
57
|
import {
|
|
57
58
|
DeeplineClient
|
|
58
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-QI5S5HWB.mjs";
|
|
59
60
|
import {
|
|
60
61
|
validateExecutionIdempotencyKey
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import {
|
|
63
|
-
stableStringify
|
|
64
|
-
} from "./chunk-UBKA33KY.mjs";
|
|
62
|
+
} from "./chunk-LH5PZKER.mjs";
|
|
65
63
|
import {
|
|
66
64
|
beginToolExecuteCommand,
|
|
67
65
|
getToolExecuteInvocationId,
|
|
68
66
|
maybeAutoUpdateAndRelaunch,
|
|
69
67
|
registerCompatibilityCatalog,
|
|
70
68
|
runToolExecuteStage
|
|
71
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-DZA7RFGL.mjs";
|
|
72
70
|
import {
|
|
73
71
|
isCliTraceEnabled,
|
|
74
72
|
recordCliTrace,
|
|
75
73
|
resolveCliMaintenancePolicy
|
|
76
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-CAEBJOYU.mjs";
|
|
77
75
|
import {
|
|
78
76
|
checkSdkCompatibility,
|
|
79
77
|
enforceSdkCompatibilityResponse,
|
|
80
78
|
flushDeferredSkillsSyncNotices,
|
|
79
|
+
requireSdkCompatibility,
|
|
81
80
|
syncSdkSkillsIfNeeded
|
|
82
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-A7DLBE5K.mjs";
|
|
83
82
|
import {
|
|
84
83
|
errorToJsonPayload,
|
|
85
84
|
printCommandEnvelope,
|
|
@@ -88,15 +87,18 @@ import {
|
|
|
88
87
|
printJsonError,
|
|
89
88
|
renderCommandEnvelopeText,
|
|
90
89
|
shouldEmitJson
|
|
91
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-AGICYWGN.mjs";
|
|
92
91
|
import {
|
|
93
92
|
readSdkSkillsLocalVersion,
|
|
94
93
|
resolveConfig,
|
|
95
94
|
sdkCliStateDirPath
|
|
96
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-LFOERUQY.mjs";
|
|
97
96
|
import {
|
|
98
97
|
DeeplineError
|
|
99
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-Z3A2S3QM.mjs";
|
|
99
|
+
import {
|
|
100
|
+
stableStringify
|
|
101
|
+
} from "./chunk-2MGZAI54.mjs";
|
|
100
102
|
|
|
101
103
|
// src/cli/commands/tools.ts
|
|
102
104
|
import { Option } from "commander";
|
|
@@ -829,7 +831,7 @@ Common commands:
|
|
|
829
831
|
Output:
|
|
830
832
|
deepline describe shows a tool's contract and price, and deepline run runs
|
|
831
833
|
it. The receipt's billing command (next.billing with --json) gives a call's
|
|
832
|
-
exact charge.
|
|
834
|
+
exact charge. Org balance changes also include other callers'
|
|
833
835
|
activity.
|
|
834
836
|
`
|
|
835
837
|
);
|
|
@@ -932,15 +934,15 @@ Examples:
|
|
|
932
934
|
deepline describe hunter_email_verifier --feature byok
|
|
933
935
|
deepline tools describe deeplineagent --model openai/gpt-5.6-luna
|
|
934
936
|
deepline tools describe ai_inference --estimate-payload @payload.json
|
|
935
|
-
deepline tools describe
|
|
937
|
+
deepline tools describe ai_decision --estimate-payload @payload.json
|
|
936
938
|
deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
937
939
|
`
|
|
938
940
|
).option("--json", "Emit JSON output").option(
|
|
939
941
|
"--model <model>",
|
|
940
|
-
"For language tools, include AI Gateway metadata; for
|
|
942
|
+
"For language tools, include AI Gateway metadata; for ai_decision, set the quote payload model"
|
|
941
943
|
).option(
|
|
942
944
|
"--estimate-payload <payload>",
|
|
943
|
-
"Quote an
|
|
945
|
+
"Quote an ai_decision, ai_inference, or deeplineagent JSON payload (inline or @file)"
|
|
944
946
|
).option("--pricing-only", "Only print pricing and billing semantics").option(
|
|
945
947
|
"--examples-only",
|
|
946
948
|
"Only print input payload and full Deepline execution response examples"
|
|
@@ -977,7 +979,7 @@ Examples:
|
|
|
977
979
|
process.exitCode = await narrowView();
|
|
978
980
|
return;
|
|
979
981
|
}
|
|
980
|
-
const { describeAnything } = await import("./describe-
|
|
982
|
+
const { describeAnything } = await import("./describe-PHQ33AGS.mjs");
|
|
981
983
|
process.exitCode = await describeAnything(
|
|
982
984
|
toolId,
|
|
983
985
|
{
|
|
@@ -997,7 +999,7 @@ Examples:
|
|
|
997
999
|
{ json: false }
|
|
998
1000
|
)
|
|
999
1001
|
);
|
|
1000
|
-
tools.command("execute <toolId>", { hidden: true }).alias("call").description("Execute a tool by id.").option("--connection <name>", "Use an exact named
|
|
1002
|
+
tools.command("execute <toolId>", { hidden: true }).alias("call").description("Execute a tool by id.").option("--connection <name>", "Use an exact named org connection").addHelpText(
|
|
1001
1003
|
"after",
|
|
1002
1004
|
`
|
|
1003
1005
|
Notes:
|
|
@@ -1007,7 +1009,7 @@ Notes:
|
|
|
1007
1009
|
stable result payload plus output preview and debugging helpers.
|
|
1008
1010
|
Read pricing first with deepline describe <toolId>.
|
|
1009
1011
|
Use the returned next.billing command to look up this execution's exact charge;
|
|
1010
|
-
|
|
1012
|
+
org balance changes also include other callers' activity.
|
|
1011
1013
|
--timeout sets this CLI request's HTTP deadline; it does not cancel provider work.
|
|
1012
1014
|
|
|
1013
1015
|
Examples:
|
|
@@ -1127,11 +1129,13 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1127
1129
|
}
|
|
1128
1130
|
throw error;
|
|
1129
1131
|
}
|
|
1132
|
+
const resolvedToolId = typeof tool.toolId === "string" && tool.toolId ? tool.toolId : toolId;
|
|
1130
1133
|
let inferenceQuote = null;
|
|
1131
1134
|
if (options.estimatePayload) {
|
|
1132
|
-
|
|
1135
|
+
const quoteToolId = resolvedToolId;
|
|
1136
|
+
if (quoteToolId !== "deeplineagent" && quoteToolId !== "ai_inference" && quoteToolId !== "ai_evaluate") {
|
|
1133
1137
|
console.error(
|
|
1134
|
-
"--estimate-payload is only supported for
|
|
1138
|
+
"--estimate-payload is only supported for ai_decision, deeplineagent, and ai_inference."
|
|
1135
1139
|
);
|
|
1136
1140
|
return 2;
|
|
1137
1141
|
}
|
|
@@ -1142,10 +1146,13 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1142
1146
|
if (options.model && estimatePayload.model === void 0) {
|
|
1143
1147
|
estimatePayload.model = options.model;
|
|
1144
1148
|
}
|
|
1145
|
-
inferenceQuote = await client.quoteInferenceTool(
|
|
1149
|
+
inferenceQuote = await client.quoteInferenceTool(
|
|
1150
|
+
quoteToolId,
|
|
1151
|
+
estimatePayload
|
|
1152
|
+
);
|
|
1146
1153
|
}
|
|
1147
|
-
const modelDescription = options.model && (
|
|
1148
|
-
if (options.model && !modelDescription &&
|
|
1154
|
+
const modelDescription = options.model && (resolvedToolId === "deeplineagent" || resolvedToolId === "ai_inference") ? await client.describeModel(options.model) : null;
|
|
1155
|
+
if (options.model && !modelDescription && resolvedToolId !== "ai_evaluate") {
|
|
1149
1156
|
console.error(
|
|
1150
1157
|
"--model is only supported for deeplineagent and ai_inference."
|
|
1151
1158
|
);
|
|
@@ -1183,7 +1190,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1183
1190
|
);
|
|
1184
1191
|
return 0;
|
|
1185
1192
|
}
|
|
1186
|
-
if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
|
|
1193
|
+
if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isMonitorVariantIndex(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
|
|
1187
1194
|
const contract = toolContractJsonForDescribe(
|
|
1188
1195
|
tool,
|
|
1189
1196
|
toolId,
|
|
@@ -1599,6 +1606,16 @@ function printToolExamplesOnly(tool, requestedToolId) {
|
|
|
1599
1606
|
printMonitorTypeDeploy(tool);
|
|
1600
1607
|
return;
|
|
1601
1608
|
}
|
|
1609
|
+
if (isMonitorVariantIndex(tool)) {
|
|
1610
|
+
console.log(
|
|
1611
|
+
`${requestedToolId} is deployed as one monitor type per radar type. Describe one for its example:`
|
|
1612
|
+
);
|
|
1613
|
+
for (const variant of arrayField(tool, "variants").filter(isRecord)) {
|
|
1614
|
+
const describeCommand = stringField(variant, "describeCommand");
|
|
1615
|
+
if (describeCommand) console.log(` ${describeCommand}`);
|
|
1616
|
+
}
|
|
1617
|
+
return;
|
|
1618
|
+
}
|
|
1602
1619
|
if (isPlayLikeTool(tool)) {
|
|
1603
1620
|
printPlayLikeToolUsage(tool, requestedToolId);
|
|
1604
1621
|
return;
|
|
@@ -2523,14 +2540,24 @@ async function executeToolForReceipt(input) {
|
|
|
2523
2540
|
});
|
|
2524
2541
|
key = recovery.idempotencyKey ?? null;
|
|
2525
2542
|
retryKey = recovery;
|
|
2526
|
-
const
|
|
2543
|
+
const warnings = [];
|
|
2544
|
+
const call = (idempotencyKey) => client.executeTool(toolId, params, {
|
|
2527
2545
|
responseIntent,
|
|
2528
2546
|
...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
|
|
2529
2547
|
...metadata.executionMetadata?.retrySafeTransientHttp === true ? { maxRetries: 2, retryApiErrors: true } : {},
|
|
2530
|
-
...
|
|
2548
|
+
...idempotencyKey ? { idempotencyKey } : {},
|
|
2531
2549
|
searchRef: recentSearchRef(toolId),
|
|
2532
2550
|
cliInvocationId,
|
|
2533
2551
|
onResponseReceived: recordApiResponse
|
|
2552
|
+
});
|
|
2553
|
+
const response = await call(key).catch((error) => {
|
|
2554
|
+
if (!key || !refusedRetryKey(error)) throw error;
|
|
2555
|
+
recovery.discard();
|
|
2556
|
+
key = null;
|
|
2557
|
+
const warning = `${toolId} cannot be resumed with a retry key, so this call runs without one. If it is interrupted, running it again calls the provider again.`;
|
|
2558
|
+
warnings.push(warning);
|
|
2559
|
+
console.error(warning);
|
|
2560
|
+
return call(null);
|
|
2534
2561
|
}).catch((error) => {
|
|
2535
2562
|
const guidance = toolGuidanceLines(metadata.guidance);
|
|
2536
2563
|
if (guidance.length)
|
|
@@ -2543,9 +2570,13 @@ async function executeToolForReceipt(input) {
|
|
|
2543
2570
|
metadata,
|
|
2544
2571
|
response,
|
|
2545
2572
|
output,
|
|
2546
|
-
warnings:
|
|
2547
|
-
|
|
2548
|
-
|
|
2573
|
+
warnings: [
|
|
2574
|
+
...warnings,
|
|
2575
|
+
// Only a call that still carries its saved key was replayed.
|
|
2576
|
+
...recovery.resumed && key ? [
|
|
2577
|
+
"Resumed an interrupted call with its saved retry key; it was not charged again. --fresh calls the provider again."
|
|
2578
|
+
] : []
|
|
2579
|
+
]
|
|
2549
2580
|
});
|
|
2550
2581
|
await recovery.acknowledgeDelivery();
|
|
2551
2582
|
return code;
|
|
@@ -2569,9 +2600,24 @@ async function executeToolForReceipt(input) {
|
|
|
2569
2600
|
return 1;
|
|
2570
2601
|
}
|
|
2571
2602
|
}
|
|
2603
|
+
function refusedRetryKey(error) {
|
|
2604
|
+
return error instanceof DeeplineError && error.statusCode === 422 && error.code === "IDEMPOTENCY_NOT_SUPPORTED" && // The server's own answer to the keyed POST carries its response body.
|
|
2605
|
+
// The SDK raises the same code locally when a recovery read finds no
|
|
2606
|
+
// support after a POST that may have been dispatched; that one must keep
|
|
2607
|
+
// its key and report an unknown outcome, never call again.
|
|
2608
|
+
serverBodyHasCode(error.details?.response, "IDEMPOTENCY_NOT_SUPPORTED");
|
|
2609
|
+
}
|
|
2610
|
+
function serverBodyHasCode(body, code) {
|
|
2611
|
+
if (!body || typeof body !== "object") return false;
|
|
2612
|
+
const record = body;
|
|
2613
|
+
if (record.code === code) return true;
|
|
2614
|
+
return serverBodyHasCode(record.error, code);
|
|
2615
|
+
}
|
|
2572
2616
|
function answeredWithFailure(error) {
|
|
2573
2617
|
return error instanceof DeeplineError && typeof error.statusCode === "number" && error.statusCode < 500 && // A request timeout says nothing about whether the call went through.
|
|
2574
|
-
error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN"
|
|
2618
|
+
error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN" && // The SDK's own "no recovery support" after a keyed POST is not the
|
|
2619
|
+
// server's answer: that POST may have run, so its key must survive.
|
|
2620
|
+
!(error.code === "IDEMPOTENCY_NOT_SUPPORTED" && !serverBodyHasCode(error.details?.response, "IDEMPOTENCY_NOT_SUPPORTED"));
|
|
2575
2621
|
}
|
|
2576
2622
|
async function getToolExecutionReceipt(key, output) {
|
|
2577
2623
|
const client = new DeeplineClient();
|
|
@@ -2753,31 +2799,31 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
|
|
|
2753
2799
|
if (maintenancePolicy !== "off") {
|
|
2754
2800
|
flushDeferredSkillsSyncNotices(baseUrl);
|
|
2755
2801
|
}
|
|
2756
|
-
const
|
|
2802
|
+
const preflight = deferredCompatibility ? await deferredCompatibility.result.catch(() => null) : null;
|
|
2803
|
+
const compatibilityResponse = preflight?.live === true ? preflight.response : await runToolExecuteStage(
|
|
2757
2804
|
"SDK compatibility",
|
|
2758
|
-
() =>
|
|
2805
|
+
() => requireSdkCompatibility(baseUrl, {
|
|
2759
2806
|
command: "tools execute",
|
|
2760
2807
|
skillsVersion: readSdkSkillsLocalVersion(baseUrl),
|
|
2761
2808
|
persistCache: maintenancePolicy !== "off"
|
|
2762
2809
|
})
|
|
2763
2810
|
);
|
|
2764
|
-
if (compatibility.error) throw compatibility.error;
|
|
2765
2811
|
metadata = deferredCompatibility?.readMetadata() ?? metadata;
|
|
2766
2812
|
if (maintenancePolicy !== "off" && await maybeAutoUpdateAndRelaunch(
|
|
2767
|
-
|
|
2813
|
+
compatibilityResponse,
|
|
2768
2814
|
baseUrl,
|
|
2769
2815
|
maintenancePolicy
|
|
2770
2816
|
)) {
|
|
2771
2817
|
return void 0;
|
|
2772
2818
|
}
|
|
2773
|
-
enforceSdkCompatibilityResponse(
|
|
2819
|
+
enforceSdkCompatibilityResponse(compatibilityResponse, {
|
|
2774
2820
|
quietAdvisory: wantsJson
|
|
2775
2821
|
});
|
|
2776
2822
|
if (maintenancePolicy !== "off") {
|
|
2777
2823
|
await runToolExecuteStage(
|
|
2778
2824
|
"agent skills sync",
|
|
2779
2825
|
() => syncSdkSkillsIfNeeded(baseUrl, {
|
|
2780
|
-
update:
|
|
2826
|
+
update: compatibilityResponse?.skills,
|
|
2781
2827
|
mode: "detached"
|
|
2782
2828
|
})
|
|
2783
2829
|
);
|