deepline 0.3.552 → 0.3.554
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-HJUNW7T2.mjs} +8 -7
- package/dist/cli/auth-SP6SKZJZ.js +44 -0
- package/dist/cli/{billing-FQREA7UA.js → billing-4TSA5HEC.js} +297 -161
- package/dist/cli/{billing-54RHFEBI.mjs → billing-SJYRJAQ2.mjs} +197 -61
- package/dist/cli/{chunk-4MK42735.js → chunk-2HMN5H54.js} +215 -130
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-2MGZAI54.mjs} +17 -0
- package/dist/cli/{chunk-EOPEYCY7.mjs → chunk-2ORPFQUA.mjs} +18 -18
- package/dist/cli/{chunk-RQZQVFCJ.js → chunk-2OVHNHCF.js} +2 -2
- package/dist/cli/{chunk-QX7LFGJR.mjs → chunk-33WRQSQ2.mjs} +1874 -91
- package/dist/cli/{chunk-UPMRIVZB.js → chunk-3IKGZ4CG.js} +74 -13
- package/dist/cli/{chunk-EUPVF4SU.mjs → chunk-3Z4VFCXO.mjs} +8 -8
- package/dist/cli/{chunk-GKYAYLRI.js → chunk-4DOFGIEJ.js} +27 -31
- package/dist/cli/{chunk-4TALT2M3.mjs → chunk-52Q5KETX.mjs} +69 -3
- package/dist/cli/{chunk-RBEUVDZF.js → chunk-5CYZHOKI.js} +249 -107
- package/dist/cli/{chunk-LX35AXTN.mjs → chunk-5TYLSS4Q.mjs} +6 -6
- package/dist/cli/{chunk-IYSTRCLX.mjs → chunk-62AUAWQV.mjs} +4 -4
- package/dist/cli/{chunk-ZIAXDBXX.mjs → chunk-62HWJXST.mjs} +17 -21
- package/dist/cli/{chunk-QY3ZNU6Z.mjs → chunk-6EXOAT6T.mjs} +2 -2
- package/dist/cli/{chunk-EITMD3A5.js → chunk-6VLFQZK6.js} +8 -8
- package/dist/cli/{chunk-ADRC5I3R.js → chunk-7OWI736E.js} +30 -30
- package/dist/cli/{chunk-NURW5XH4.mjs → chunk-ASB47RXJ.mjs} +1 -1
- package/dist/cli/{chunk-PTVD2GVQ.mjs → chunk-B6HO2XWH.mjs} +13 -13
- package/dist/cli/{chunk-YJHE3O5M.mjs → chunk-BOZAP2EM.mjs} +141 -56
- package/dist/cli/chunk-BVXIGOBZ.js +32 -0
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-CFJFUVX2.js} +18 -1
- package/dist/cli/{chunk-WE5HES3H.mjs → chunk-D6Z6POKE.mjs} +151 -43
- package/dist/cli/{chunk-AZQ264ID.mjs → chunk-DSKSFFK2.mjs} +1 -1
- package/dist/cli/{chunk-SHLFOPD6.js → chunk-DUBXUAAO.js} +5 -5
- package/dist/cli/{chunk-V436Z54K.js → chunk-E2G2DNAB.js} +3 -1
- package/dist/cli/{chunk-HO3XK3R7.js → chunk-E74KGKFZ.js} +8 -8
- package/dist/cli/{chunk-77AAAGVB.js → chunk-ECHKAC7M.js} +2 -2
- package/dist/cli/{chunk-KWSH5T7K.js → chunk-EN5NHCCQ.js} +21 -21
- package/dist/cli/{chunk-6RZOWL2V.mjs → chunk-F7CMRKSK.mjs} +1 -1
- package/dist/cli/{chunk-JWUAX6OP.js → chunk-FBAFX43W.js} +11 -11
- package/dist/cli/{chunk-AQWQ2BFX.mjs → chunk-FXQ3JKE3.mjs} +1 -1
- package/dist/cli/{chunk-QPKH23EC.mjs → chunk-GA2M3G3Y.mjs} +5 -5
- package/dist/cli/{chunk-G4O75EXF.js → chunk-GHT2NDL7.js} +18 -18
- package/dist/cli/{chunk-MF2GHZDO.js → chunk-GRZENGNE.js} +2 -2
- package/dist/cli/{chunk-4UUR4TCH.js → chunk-IVZKMJUK.js} +1875 -92
- package/dist/cli/{chunk-FTJLJCE5.mjs → chunk-KVBQY4ST.mjs} +3 -3
- package/dist/cli/{chunk-S5S355UY.mjs → chunk-KZHBDMGF.mjs} +12 -12
- package/dist/cli/{chunk-BBTKAASQ.js → chunk-LFQJW4S2.js} +42 -1
- package/dist/cli/{chunk-6ZORHRKB.mjs → chunk-LRZGS6RZ.mjs} +2 -0
- package/dist/cli/{chunk-2WFPHBR4.js → chunk-LY5MMXFF.js} +47 -29
- package/dist/cli/{chunk-BAIST2BR.js → chunk-M7STM3MZ.js} +36 -36
- package/dist/cli/{chunk-SL6MYJYM.js → chunk-MJTVX4QK.js} +35 -35
- package/dist/cli/{chunk-45PVGZST.js → chunk-OPTV7D2V.js} +508 -361
- package/dist/cli/{chunk-PFO3ISXA.js → chunk-OVEYWO4H.js} +174 -129
- package/dist/cli/{chunk-BGBJV26E.mjs → chunk-PC2FTUCP.mjs} +4 -4
- package/dist/cli/{chunk-WLN3SUIA.js → chunk-PQQMPUCZ.js} +3 -3
- package/dist/cli/{chunk-HYC4MKGK.mjs → chunk-Q7ACILL2.mjs} +5 -5
- package/dist/cli/{chunk-CBV7AKWM.js → chunk-R6DZ6NQ2.js} +5 -5
- package/dist/cli/{chunk-57VZVF5D.mjs → chunk-RBBTCYQB.mjs} +3 -3
- package/dist/cli/{chunk-F2LH7TGF.js → chunk-RTHMGSZX.js} +21 -21
- package/dist/cli/{chunk-YLTMXJFC.mjs → chunk-S6W6SJ6E.mjs} +158 -16
- package/dist/cli/chunk-STXDSVQZ.mjs +32 -0
- package/dist/cli/{chunk-WEHCBH5R.mjs → chunk-TGUQET3O.mjs} +67 -6
- package/dist/cli/{chunk-IHRKLXZN.js → chunk-TJ6HLN56.js} +5 -5
- package/dist/cli/{chunk-3FD5EQ62.js → chunk-TOO3YM5N.js} +6 -7
- package/dist/cli/{chunk-QILKGXYF.mjs → chunk-UBBYHB2B.mjs} +2 -2
- package/dist/cli/{chunk-6PRW5UBA.mjs → chunk-UC4BDZKI.mjs} +299 -69
- package/dist/cli/{chunk-634ZDA3F.js → chunk-UNNOZKRT.js} +1 -1
- package/dist/cli/{chunk-IDVVIXPJ.js → chunk-UOT7HPBH.js} +41 -41
- package/dist/cli/{chunk-6YCA5NKJ.js → chunk-UYCZFQYQ.js} +12 -12
- package/dist/cli/{chunk-7IKQKKNX.js → chunk-VIUUTEHY.js} +90 -24
- package/dist/cli/{chunk-Z5TSLLOW.mjs → chunk-VLO5NFH2.mjs} +63 -18
- package/dist/cli/{chunk-U7QRMBIY.mjs → chunk-VQ75KX7G.mjs} +5 -5
- package/dist/cli/{chunk-4NQF6KJ3.js → chunk-VV4XGZ24.js} +13 -13
- package/dist/cli/{chunk-FSIVF2SI.mjs → chunk-VZGLIK5U.mjs} +1 -1
- package/dist/cli/{chunk-S46HWQKO.js → chunk-W6CZDTIR.js} +69 -69
- package/dist/cli/{chunk-XVB7V4N7.js → chunk-WL7P32PI.js} +161 -53
- package/dist/cli/{chunk-DJ2JDK4O.mjs → chunk-XD3MFTHA.mjs} +1 -1
- package/dist/cli/{chunk-GGGAEVCX.mjs → chunk-XFZX6FNM.mjs} +40 -22
- package/dist/cli/{chunk-AWJPDPMA.mjs → chunk-XU6QNM4D.mjs} +1 -1
- package/dist/cli/{chunk-QAORXEY3.mjs → chunk-YCOGPOUX.mjs} +6 -7
- package/dist/cli/{chunk-VQALXEXO.js → chunk-YQKCH4R7.js} +348 -118
- package/dist/cli/{chunk-6O5HOODW.mjs → chunk-YY55NYAH.mjs} +207 -60
- package/dist/cli/{chunk-JL2OTMSG.mjs → chunk-Z3A2S3QM.mjs} +41 -0
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/{concurrent-runs-help-Q4KPAUJX.mjs → concurrent-runs-help-O3Q5IPLF.mjs} +9 -8
- package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +22 -0
- package/dist/cli/{csv-F5VAGX4K.js → csv-4ZQ2RATI.js} +16 -15
- package/dist/cli/{csv-2PTVDNO6.mjs → csv-Y3BFPEM6.mjs} +7 -6
- package/dist/cli/{db-IEDXAUF7.mjs → db-3JYY4JNN.mjs} +17 -17
- package/dist/cli/{db-Z3OIUFMM.js → db-VEIFS4M7.js} +45 -45
- package/dist/cli/describe-EVJ4MFVU.mjs +50 -0
- package/dist/cli/describe-FG625QPF.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 +7 -7
- package/dist/cli/describe-core.mjs +6 -6
- package/dist/cli/{executions-H6H5655J.js → executions-HPZXOOVX.js} +12 -12
- package/dist/cli/{executions-R3LP74QN.mjs → executions-PCXZKEHM.mjs} +10 -10
- package/dist/cli/{feedback-WL3MRVT5.mjs → feedback-Y6VKZNY6.mjs} +9 -8
- package/dist/cli/{feedback-VFOUR66B.js → feedback-ZKFHFVL6.js} +17 -16
- package/dist/cli/git-RUBMALLH.js +26 -0
- package/dist/cli/{git-YX2J4GCI.mjs → git-UMPR2QYC.mjs} +8 -7
- package/dist/cli/index.js +170 -158
- package/dist/cli/index.mjs +60 -48
- package/dist/cli/{integrations-E2JZYKHS.js → integrations-3GQCTRTF.js} +23 -27
- package/dist/cli/{integrations-5ZK5KLVP.mjs → integrations-V3TM6XAB.mjs} +15 -19
- package/dist/cli/{legacy-noops-SMN3GSXY.mjs → legacy-noops-JZBUD7ZE.mjs} +9 -8
- package/dist/cli/{legacy-noops-3VW4IJTH.js → legacy-noops-VYCO7NGW.js} +12 -11
- package/dist/cli/{mcp-UQV2K4EW.js → mcp-4OIWTCE6.js} +121 -48
- package/dist/cli/{mcp-V6MGCYAG.mjs → mcp-PH4KZ76P.mjs} +100 -27
- package/dist/cli/{monitors-R3BBDCRC.js → monitors-E2A6VPBY.js} +221 -186
- package/dist/cli/{monitors-GGKS5W6M.mjs → monitors-SSMGIDGX.mjs} +58 -23
- package/dist/cli/org-SFDKSK5D.mjs +2289 -0
- package/dist/cli/org-WUDZGWBT.js +2289 -0
- package/dist/cli/outcomes-QT7LQBPK.mjs +2865 -0
- package/dist/cli/outcomes-Y7SZTLSL.js +2865 -0
- package/dist/cli/{play-MDWPR4XG.mjs → play-EK7KSFPL.mjs} +376 -106
- package/dist/cli/{play-2MVO27VO.js → play-GDNHCRRR.js} +1150 -880
- package/dist/cli/{providers-AKDYFZJZ.mjs → providers-FVZLRXAU.mjs} +10 -10
- package/dist/cli/{providers-2AACRUZH.js → providers-ZKOSECLV.js} +13 -13
- package/dist/cli/{quickstart-H6IV3PV3.js → quickstart-KSDKIXYD.js} +9 -8
- package/dist/cli/{quickstart-QDGRJFZY.mjs → quickstart-UJZ6PIQV.mjs} +7 -6
- package/dist/cli/{run-RTSQNGRD.mjs → run-E7MZ7P35.mjs} +35 -33
- package/dist/cli/{run-2634REDK.js → run-PD2BBG6S.js} +55 -53
- 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-TKSPTPHA.js +32 -0
- package/dist/cli/{search-6AOJ4XPP.mjs → search-VTFUFTOY.mjs} +11 -11
- package/dist/cli/{search-output-S5ODBL5E.js → search-output-G2AGDCOY.js} +13 -12
- package/dist/cli/{search-output-6ADMTOU5.mjs → search-output-PFVXQCWA.mjs} +10 -9
- package/dist/cli/{secrets-TFIFBFB3.mjs → secrets-7CIMEMX7.mjs} +11 -11
- package/dist/cli/{secrets-LHCIIHMT.js → secrets-BCOQ4U7U.js} +20 -20
- package/dist/cli/sessions-4CO556VD.js +23 -0
- package/dist/cli/{sessions-WHBVUHVW.mjs → sessions-IUCQZEF7.mjs} +9 -8
- package/dist/cli/{settings-EBONWL5C.mjs → settings-KZN62UQK.mjs} +16 -16
- package/dist/cli/{settings-CP4FVK2W.js → settings-REL4736M.js} +89 -89
- package/dist/cli/{setup-I5AZE3IU.mjs → setup-2P7OG3OU.mjs} +22 -24
- package/dist/cli/{setup-LFGHTNLQ.js → setup-2XIVBBCS.js} +62 -64
- package/dist/cli/skills-JYT5DEY6.js +37 -0
- package/dist/cli/{skills-W76AO5XE.mjs → skills-VIGNDJKI.mjs} +10 -9
- package/dist/cli/tools-NTVUQ2TG.js +57 -0
- package/dist/cli/{tools-7IJHGF6W.mjs → tools-W3QT5EJY.mjs} +24 -24
- package/dist/cli/{update-GFOPZTHY.mjs → update-GZVBVMY3.mjs} +14 -11
- package/dist/cli/update-TWJZPUZM.js +37 -0
- package/dist/cli/{views-D4NX4SBG.mjs → views-BOGEH424.mjs} +47 -49
- package/dist/cli/{views-BPL2TQJ4.js → views-TOLJNLSV.js} +62 -64
- package/dist/cli/{workflow-ZYNAUCKC.js → workflow-ENWFRK5M.js} +23 -23
- package/dist/cli/{workflow-YXP42FUI.mjs → workflow-VDG2FDQV.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 +163 -144
- 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/chunk-AID3OYVJ.js +0 -8
- package/dist/cli/chunk-OVDNJAJN.mjs +0 -8
- 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
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TGUQET3O.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildPlayDashboardUrl,
|
|
9
9
|
byokLines,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
examples,
|
|
14
14
|
schemaLines,
|
|
15
15
|
topLevelField
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XFZX6FNM.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Z3A2S3QM.mjs";
|
|
20
20
|
|
|
21
21
|
// src/cli/tool-features.ts
|
|
22
22
|
var VIEWS = {
|
|
@@ -205,7 +205,7 @@ async function describeName(name, options, lookups) {
|
|
|
205
205
|
kind: shadowed.described.kind,
|
|
206
206
|
describeCommand: `deepline describe ${DEEPLINE_NAMESPACE}${name}`
|
|
207
207
|
} : null;
|
|
208
|
-
const note = shadows ? `Showing your
|
|
208
|
+
const note = shadows ? `Showing your org play "${name}". It has the same name as a Deepline ${shadows.kind.replace("_", " ")}; see that one with: ${shadows.describeCommand}` : null;
|
|
209
209
|
const verbose = options.verbose === true;
|
|
210
210
|
const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
|
|
211
211
|
const dashboardUrl = isPlay ? buildPlayDashboardUrl(lookups.baseUrl, described.id) : null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkYQKCH4R7js.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkYQKCH4R7js.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
httpJson
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2ORPFQUA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
PRICING_PAGE_NOTE
|
|
6
6
|
} from "./chunk-2RIKOPIM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autoDetectBaseUrl,
|
|
9
9
|
resolveApiKeyForBaseUrl
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-52Q5KETX.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -18,8 +18,8 @@ function concurrentRunsLine(payload) {
|
|
|
18
18
|
const runs = payload.concurrent_runs;
|
|
19
19
|
if (!runs) return null;
|
|
20
20
|
const plan = payload.plan?.name ? ` (${payload.plan.name})` : "";
|
|
21
|
-
const override = runs.source === "override" ? ",
|
|
22
|
-
const here = `This
|
|
21
|
+
const override = runs.source === "override" ? ", an org override" : "";
|
|
22
|
+
const here = `This org${plan} runs up to ${runs.limit.toLocaleString("en-US")} ${runs.limit === 1 ? "Play" : "Plays"} at once${override}.`;
|
|
23
23
|
const plans = runs.plans.map((entry) => `${entry.name} ${entry.limit.toLocaleString("en-US")}`).join(", ");
|
|
24
24
|
return plans ? `${here} Plan limits: ${plans}.` : here;
|
|
25
25
|
}
|
|
@@ -38,7 +38,7 @@ async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
|
|
|
38
38
|
if (status !== 200) return "";
|
|
39
39
|
const line = concurrentRunsLine(data);
|
|
40
40
|
return line ? `
|
|
41
|
-
Your
|
|
41
|
+
Your org:
|
|
42
42
|
${line}
|
|
43
43
|
${PRICING_PAGE_NOTE}
|
|
44
44
|
` : "";
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
4
4
|
|
|
5
5
|
// node_modules/csv-parse/dist/esm/sync.js
|
|
6
6
|
var global$1 = typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {};
|
|
@@ -3000,7 +3000,7 @@ function parseCsvDataInput(source, content, options = {}) {
|
|
|
3000
3000
|
} : {}
|
|
3001
3001
|
});
|
|
3002
3002
|
} catch (error) {
|
|
3003
|
-
throw new (0,
|
|
3003
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
3004
3004
|
`Input ${source.inputPath} could not be parsed as CSV (${source.value}): ${error instanceof Error ? error.message : String(error)}. This usually means an unclosed quote or ragged quoting. No run was created.`,
|
|
3005
3005
|
void 0,
|
|
3006
3006
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -3008,7 +3008,7 @@ function parseCsvDataInput(source, content, options = {}) {
|
|
|
3008
3008
|
);
|
|
3009
3009
|
}
|
|
3010
3010
|
if (records.length === 0) {
|
|
3011
|
-
throw new (0,
|
|
3011
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
3012
3012
|
`${source.value} is empty: it has no header row and no data rows. No run was created.`,
|
|
3013
3013
|
void 0,
|
|
3014
3014
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -3023,7 +3023,7 @@ function parseCsvDataInput(source, content, options = {}) {
|
|
|
3023
3023
|
if (name.length === 0) continue;
|
|
3024
3024
|
const prior = seen.get(name);
|
|
3025
3025
|
if (prior) {
|
|
3026
|
-
throw new (0,
|
|
3026
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
3027
3027
|
`Input ${source.inputPath} (${source.value}) has a duplicate CSV header "${name}" (columns ${prior.index + 1} and ${i + 1}). The second column would silently overwrite the first. Rename one of them. No run was created.`,
|
|
3028
3028
|
void 0,
|
|
3029
3029
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -3039,7 +3039,7 @@ function parseCsvDataInput(source, content, options = {}) {
|
|
|
3039
3039
|
seen.set(name, { index: i, raw });
|
|
3040
3040
|
}
|
|
3041
3041
|
if (records.length - 1 < 1) {
|
|
3042
|
-
throw new (0,
|
|
3042
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
3043
3043
|
`${source.value} has a header row but no data rows. No run was created.`,
|
|
3044
3044
|
void 0,
|
|
3045
3045
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XU6QNM4D.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UC4BDZKI.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment,
|
|
10
10
|
claudeProjectsRoots,
|
|
11
11
|
coworkTranscriptFromEnvironment
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-S6W6SJ6E.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
import {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOPTV7D2Vjs = require('./chunk-OPTV7D2V.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUYCZFQYQjs = require('./chunk-UYCZFQYQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkEN5NHCCQjs = require('./chunk-EN5NHCCQ.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkLY5MMXFFjs = require('./chunk-LY5MMXFF.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkDUBXUAAOjs = require('./chunk-DUBXUAAO.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkVIUUTEHYjs = require('./chunk-VIUUTEHY.js');
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
var _fs = require('fs');
|
|
@@ -32,14 +32,14 @@ var _path = require('path');
|
|
|
32
32
|
// src/cli/doc-read-reporting.ts
|
|
33
33
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
34
34
|
async function reportDocRead(docId) {
|
|
35
|
-
if (
|
|
35
|
+
if (_chunkYQKCH4R7js.isFailureReportingDisabled.call(void 0, )) return;
|
|
36
36
|
try {
|
|
37
|
-
const baseUrl =
|
|
38
|
-
const apiKey =
|
|
37
|
+
const baseUrl = _chunkVIUUTEHYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
38
|
+
const apiKey = _chunkVIUUTEHYjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
39
39
|
if (!apiKey) return;
|
|
40
40
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
41
41
|
method: "POST",
|
|
42
|
-
headers:
|
|
42
|
+
headers: _chunkYQKCH4R7js.failureReportHeaders.call(void 0, apiKey),
|
|
43
43
|
body: JSON.stringify({ doc_id: docId }),
|
|
44
44
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
45
45
|
});
|
|
@@ -52,16 +52,16 @@ function nothingNamed(name) {
|
|
|
52
52
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
53
53
|
}
|
|
54
54
|
function findNamed2(name, options) {
|
|
55
|
-
return
|
|
55
|
+
return _chunkEN5NHCCQjs.findNamed.call(void 0, name, options, _chunkEN5NHCCQjs.describeLookupsFor.call(void 0, new (0, _chunkDUBXUAAOjs.DeeplineClient)()));
|
|
56
56
|
}
|
|
57
57
|
async function describeAnything(name, options, onMissing) {
|
|
58
|
-
const client = new (0,
|
|
59
|
-
const lookups =
|
|
60
|
-
const outcome = await
|
|
58
|
+
const client = new (0, _chunkDUBXUAAOjs.DeeplineClient)();
|
|
59
|
+
const lookups = _chunkEN5NHCCQjs.describeLookupsFor.call(void 0, client);
|
|
60
|
+
const outcome = await _chunkEN5NHCCQjs.describeName.call(void 0, name, options, {
|
|
61
61
|
...lookups,
|
|
62
62
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
63
63
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
64
|
-
seedStarterScript:
|
|
64
|
+
seedStarterScript: _chunkOPTV7D2Vjs.seedToolListScript
|
|
65
65
|
});
|
|
66
66
|
if (outcome.status === "missing") {
|
|
67
67
|
if (onMissing) return onMissing();
|
|
@@ -90,18 +90,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
90
90
|
` : text;
|
|
91
91
|
_fs.writeFileSync.call(void 0, path, content);
|
|
92
92
|
const bytes = Buffer.byteLength(content);
|
|
93
|
-
|
|
93
|
+
_chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
|
|
94
94
|
{ path, bytes },
|
|
95
95
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
96
96
|
` }
|
|
97
97
|
);
|
|
98
98
|
return 0;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunkYQKCH4R7js.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
101
101
|
return 0;
|
|
102
102
|
}
|
|
103
103
|
function registerDescribeCommand(program) {
|
|
104
|
-
|
|
104
|
+
_chunkUYCZFQYQjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
105
105
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
106
106
|
).addHelpText(
|
|
107
107
|
"after",
|
|
@@ -114,7 +114,7 @@ What you can describe:
|
|
|
114
114
|
docs/skills/<name> prints that skill.
|
|
115
115
|
|
|
116
116
|
When a name is taken twice:
|
|
117
|
-
A play your
|
|
117
|
+
A play your org created is shown instead of a Deepline tool, monitor
|
|
118
118
|
type or prebuilt play with the same name, and the output says so.
|
|
119
119
|
Name it deepline/<name> to see the Deepline one (--prebuilt does the same).
|
|
120
120
|
|
|
@@ -142,7 +142,7 @@ Schema size and format:
|
|
|
142
142
|
by default; the output names them, and --verbose shows them.
|
|
143
143
|
--fields email,miss_reason shows only the fields you name, plus every
|
|
144
144
|
required input, and names the rest. Use it when you know what you need.
|
|
145
|
-
A schema over ${
|
|
145
|
+
A schema over ${_chunkLY5MMXFFjs.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
|
|
146
146
|
names. A shape used more than once is printed once under Types.
|
|
147
147
|
--full-schema the normal output, with the schema not folded
|
|
148
148
|
--schema-only only the schema, not folded, and nothing else
|
|
@@ -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-FXQ3JKE3.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);
|
|
@@ -1046,6 +1187,7 @@ export {
|
|
|
1046
1187
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
1047
1188
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
1048
1189
|
EXPERIMENT_SWITCHES_HEADER,
|
|
1190
|
+
readToolFailureHint,
|
|
1049
1191
|
agentSessionIdFromEnvironment,
|
|
1050
1192
|
isAgentSessionId,
|
|
1051
1193
|
claudeProjectsRoots,
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// src/cli/shell-quote.ts
|
|
2
|
+
function shellQuote(value) {
|
|
3
|
+
return `'${value.replace(/'/g, `'\\''`)}'`;
|
|
4
|
+
}
|
|
5
|
+
function shellArgument(value, platform = process.platform) {
|
|
6
|
+
if (platform !== "win32") return shellQuote(value);
|
|
7
|
+
if (/^[A-Za-z0-9_+:./\\-][A-Za-z0-9_+=:./\\-]*$/.test(value)) return value;
|
|
8
|
+
if (!/["\u201C\u201D\u201E$`!%\\\r\n]/.test(value)) return `"${value}"`;
|
|
9
|
+
return `'${value.replace(/['\u2018\u2019\u201A\u201B]/g, (quote) => quote + quote)}'`;
|
|
10
|
+
}
|
|
11
|
+
var EXAMPLE_INPUT_FILE = "input.json";
|
|
12
|
+
function exampleJsonInput(json, platform = process.platform) {
|
|
13
|
+
if (platform !== "win32") return { argument: `--input ${shellQuote(json)}` };
|
|
14
|
+
return {
|
|
15
|
+
argument: `--input-file ${EXAMPLE_INPUT_FILE}`,
|
|
16
|
+
file: { path: EXAMPLE_INPUT_FILE, contents: json }
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function examplePlaceholderInput(platform = process.platform) {
|
|
20
|
+
return platform === "win32" ? `--input-file ${EXAMPLE_INPUT_FILE}` : `--input '{...}'`;
|
|
21
|
+
}
|
|
22
|
+
function exampleInputFileLine(file) {
|
|
23
|
+
return `Save this as ${file.path}: ${file.contents}`;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
shellQuote,
|
|
28
|
+
shellArgument,
|
|
29
|
+
exampleJsonInput,
|
|
30
|
+
examplePlaceholderInput,
|
|
31
|
+
exampleInputFileLine
|
|
32
|
+
};
|