deepline 0.3.461 → 0.3.462
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 +7593 -0
- package/dist/bundling-sources/sdk/src/client.ts +8 -7366
- package/dist/bundling-sources/sdk/src/http-core.ts +1239 -0
- package/dist/bundling-sources/sdk/src/http.ts +6 -1231
- package/dist/bundling-sources/sdk/src/index.ts +4 -1
- package/dist/bundling-sources/sdk/src/play.ts +5 -5
- package/dist/bundling-sources/sdk/src/plays/client-core.ts +437 -0
- package/dist/bundling-sources/sdk/src/plays/client.ts +4 -421
- package/dist/bundling-sources/sdk/src/plays/input-example.ts +3 -4
- package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -1
- 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/server.ts +43 -0
- package/dist/bundling-sources/sdk/src/types.ts +15 -5
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +15 -0
- package/dist/bundling-sources/shared_libs/monitors/callback-security.ts +0 -307
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +3 -0
- package/dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts +3 -2
- package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +34 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +59 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +94 -1
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +11 -1
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-failure-codes.ts +24 -0
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +32 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +57 -3
- package/dist/bundling-sources/shared_libs/observability/scheduled-work.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +66 -1
- package/dist/bundling-sources/shared_libs/play-data-plane/sheet-column-storage.ts +36 -7
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +250 -11
- package/dist/bundling-sources/shared_libs/play-runtime/array-input-store.ts +319 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +991 -359
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +110 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +155 -6
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +110 -6
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +127 -13
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +14 -1
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +57 -1
- package/dist/bundling-sources/shared_libs/play-runtime/free-company-lookup-batching.ts +218 -0
- package/dist/bundling-sources/shared_libs/play-runtime/gateway-postgres-admission.ts +42 -5
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-budget-state-backend.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +92 -31
- package/dist/bundling-sources/shared_libs/play-runtime/governor/block-reserving-budget-state-backend.ts +69 -14
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +93 -23
- package/dist/bundling-sources/shared_libs/play-runtime/governor/in-memory-rate-state-backend.ts +15 -4
- package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +22 -18
- package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +190 -14
- package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +131 -0
- package/dist/bundling-sources/shared_libs/play-runtime/modal-runtime-config.ts +77 -2
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +271 -2
- package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +51 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +27 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-text-for-log.ts +63 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-event-transport.ts +112 -16
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +104 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +265 -151
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-gateway-transport.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +35 -14
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-sheet-persistence-retry.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-control-transport.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-labels.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +136 -70
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +237 -36
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +148 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +285 -32
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +251 -56
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +29 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +27 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +22 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +1397 -382
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-array-input-receipts.ts +920 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +16 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +38 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +30 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +14 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +31 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-transition.ts +47 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +20 -7
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/index.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1496 -320
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +31 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1389 -129
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-dispatch-authority.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +162 -23
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +499 -115
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +377 -9
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +117 -8
- package/dist/bundling-sources/shared_libs/play-runtime/secret-resolution-retry-policy.ts +25 -0
- package/dist/bundling-sources/shared_libs/play-runtime/terminal-runtime-performance.ts +391 -0
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +40 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/index.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/mapped-calls.ts +171 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/receipt-cohort.ts +16 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +26 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +16 -2
- package/dist/bundling-sources/shared_libs/play-runtime/transport-error-diagnostics.ts +28 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +55 -5
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +41 -1
- package/dist/bundling-sources/shared_libs/plays/contracts.ts +4 -0
- package/dist/bundling-sources/shared_libs/plays/dataset.ts +9 -3
- package/dist/bundling-sources/shared_libs/plays/deploy/manifest-contract.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/manifest.ts +3 -2
- package/dist/bundling-sources/shared_libs/plays/deploy/project-serializer.ts +2 -2
- package/dist/bundling-sources/shared_libs/plays/run-output-summary.ts +66 -0
- package/dist/bundling-sources/shared_libs/plays/script-entry.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +43 -1
- package/dist/bundling-sources/shared_libs/product-notifications/content.ts +9 -0
- package/dist/bundling-sources/shared_libs/product-notifications/email.ts +91 -13
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +3 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +41 -24
- package/dist/bundling-sources/shared_libs/security/attested-client-ip.ts +91 -0
- package/dist/bundling-sources/shared_libs/security/internal-actor.ts +0 -11
- package/dist/cli/{auth-6HJXNWUG.mjs → auth-JDLEY7VU.mjs} +5 -4
- package/dist/cli/auth-UXKY6TCC.js +41 -0
- package/dist/cli/{billing-6P5HO6QG.js → billing-HXAXB3XZ.js} +152 -78
- package/dist/cli/{billing-MJ42N7YF.mjs → billing-SDHLBLMV.mjs} +84 -10
- package/dist/cli/{chunk-5MDIZX7M.js → chunk-3ACMRZRV.js} +8 -6
- package/dist/cli/{chunk-FGLKOWSC.mjs → chunk-3KZCFOZ6.mjs} +1 -1
- package/dist/cli/chunk-4KQ6SIBC.mjs +1038 -0
- package/dist/cli/{chunk-Z2GUFYT6.js → chunk-5LEAXRHV.js} +11 -11
- package/dist/cli/{chunk-MEAIOXJL.mjs → chunk-6NNVJDVR.mjs} +7 -5
- package/dist/cli/{chunk-NMJ4D2WO.js → chunk-6PMCRYDA.js} +216 -91
- package/dist/cli/{chunk-RY4IVOU3.mjs → chunk-6RNQGWFD.mjs} +16 -806
- package/dist/cli/{chunk-EBU7LQ64.js → chunk-6V7KVRR5.js} +3 -3
- package/dist/cli/{chunk-OZBWRICM.js → chunk-7LFIMWMW.js} +2 -2
- package/dist/cli/chunk-7MJ6VI2T.mjs +19 -0
- package/dist/cli/chunk-7SWNPNML.js +1039 -0
- package/dist/cli/{chunk-IHHLTHE7.mjs → chunk-7U3XNPOA.mjs} +267 -38
- package/dist/cli/{chunk-5FDKJQZE.js → chunk-7VZHXVOQ.js} +1 -1
- package/dist/cli/{chunk-R64BGGRQ.mjs → chunk-AT636LLU.mjs} +2 -2
- package/dist/cli/{chunk-MDJPEGVN.js → chunk-BGTPIMSM.js} +392 -261
- package/dist/cli/{chunk-KVJ5VHW5.mjs → chunk-CKSOY47X.mjs} +2 -2
- package/dist/cli/{chunk-7DH2FD7Y.mjs → chunk-D464JW3N.mjs} +5 -85
- package/dist/cli/chunk-D6DXOUTO.mjs +827 -0
- package/dist/cli/{describe-2WQY7ZCY.js → chunk-EM4TXCCI.js} +27 -44
- package/dist/cli/chunk-F6QV42MC.mjs +91 -0
- package/dist/cli/chunk-FKVYR3QA.mjs +1039 -0
- package/dist/cli/{chunk-FGMX4HUZ.js → chunk-GEGW5HPZ.js} +29 -27
- package/dist/cli/{chunk-TNMBPMMC.js → chunk-HUB3CCM2.js} +13 -4
- package/dist/cli/{chunk-ACCR7POB.js → chunk-I6VHOU5O.js} +27 -27
- package/dist/cli/{chunk-Z2XUZC34.js → chunk-IAYSWZDJ.js} +188 -76
- package/dist/cli/chunk-JF3TLIMQ.js +19 -0
- package/dist/cli/{chunk-HDFRJ4IT.mjs → chunk-JVHOS3K3.mjs} +177 -65
- package/dist/cli/{chunk-V7REJRDZ.mjs → chunk-LFXLQEZN.mjs} +1 -1
- package/dist/cli/{chunk-CRYOUPEB.js → chunk-LROWFPGN.js} +16 -16
- package/dist/cli/{chunk-SLEUWLJE.mjs → chunk-MSY22NQW.mjs} +5 -5
- package/dist/cli/{chunk-BGY2PLP7.mjs → chunk-MUUQZIOF.mjs} +23 -49
- package/dist/cli/{chunk-FCAZQ7WV.js → chunk-NBLSCHKK.js} +52 -50
- package/dist/cli/{chunk-QAJAJPKK.mjs → chunk-NHRWZPWZ.mjs} +4 -2
- package/dist/cli/{chunk-KXMNM4AQ.js → chunk-NMU3VR5U.js} +4 -5
- package/dist/cli/{chunk-QIW7TVV6.mjs → chunk-O2RX5A66.mjs} +14 -12
- package/dist/cli/{chunk-SAZFZQRI.js → chunk-OMQ23IXL.js} +2 -2
- package/dist/cli/{chunk-5IYOUBFZ.js → chunk-OPJAJBD4.js} +28 -54
- package/dist/cli/{chunk-FJZILBL7.mjs → chunk-PHSEINNH.mjs} +5 -5
- package/dist/cli/{chunk-3DNKFH2G.mjs → chunk-PKHVSIJG.mjs} +19 -1
- package/dist/cli/{chunk-WIYWSYDS.mjs → chunk-Q2EIZKVX.mjs} +3 -3
- package/dist/cli/{chunk-5FY72YOV.js → chunk-QJZ6WNWD.js} +8 -8
- package/dist/cli/{chunk-EIMG75BT.mjs → chunk-S3A4IXBQ.mjs} +4 -5
- package/dist/cli/{chunk-3BMLICF7.mjs → chunk-S42YIQNE.mjs} +13 -8
- package/dist/cli/{chunk-RFONC4WJ.mjs → chunk-S6UAJR6V.mjs} +3 -3
- package/dist/cli/{chunk-G7L27KZB.mjs → chunk-TKAQR3IB.mjs} +31 -21
- package/dist/cli/{chunk-QWRHGGUH.js → chunk-UAJFWWZE.js} +20 -2
- package/dist/cli/{chunk-VZBCEA5S.mjs → chunk-UDRPEZ5F.mjs} +223 -92
- package/dist/cli/{chunk-KCCOQ5G5.js → chunk-ULK7JGGI.js} +511 -282
- package/dist/cli/chunk-V335HGX5.js +1038 -0
- package/dist/cli/{chunk-MGXEUZHL.mjs → chunk-V3MEA7NB.mjs} +7 -5
- package/dist/cli/{chunk-O6QOMHCH.js → chunk-VFGVXXZP.js} +37 -35
- package/dist/cli/chunk-VLEVVDWG.js +91 -0
- package/dist/cli/{chunk-R2GLGLDR.mjs → chunk-VPHN2HAL.mjs} +216 -91
- package/dist/cli/{chunk-CFUTOWE4.js → chunk-WG3KGAII.js} +8 -88
- package/dist/cli/{describe-FRAVCY5F.mjs → chunk-WIY6U6GD.mjs} +19 -36
- package/dist/cli/{chunk-PNATXKLP.js → chunk-XANRM3QA.js} +6 -6
- package/dist/cli/{chunk-KGQNIA37.js → chunk-XQCTG5OO.js} +44 -34
- package/dist/cli/{chunk-T3MVIPHG.mjs → chunk-XZAFIOUQ.mjs} +1 -1
- package/dist/cli/chunk-Y4DPU4OM.js +827 -0
- package/dist/cli/chunk-YT5EODJO.js +920 -0
- package/dist/cli/{chunk-SCIR5JXW.js → chunk-ZGQSFYD2.js} +56 -51
- package/dist/cli/{chunk-QEYHTIV4.mjs → chunk-ZUK6LIJB.mjs} +10 -1
- package/dist/cli/command-docs.d.mts +5 -0
- package/dist/cli/command-docs.d.ts +5 -0
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-NX7NO3O6.js → csv-C56GSCEU.js} +13 -12
- package/dist/cli/{csv-DQ6GW5B5.mjs → csv-L54JS7TF.mjs} +4 -3
- package/dist/cli/{db-R72DFMP6.js → db-MOGRMZTA.js} +30 -27
- package/dist/cli/{db-2YP33M4K.mjs → db-YVBUW2DX.mjs} +10 -7
- package/dist/cli/describe-KYEULWPG.js +48 -0
- package/dist/cli/describe-NLZKKT7C.mjs +48 -0
- package/dist/cli/describe-core.d.mts +153 -5
- package/dist/cli/describe-core.d.ts +153 -5
- package/dist/cli/describe-core.js +9 -5
- package/dist/cli/describe-core.mjs +10 -6
- package/dist/cli/{executions-ZLHD4QIT.js → executions-A7L4ULPP.js} +9 -7
- package/dist/cli/{executions-WFBU7L2Q.mjs → executions-ZBGSTT37.mjs} +7 -5
- package/dist/cli/{feedback-CN3HJFVF.mjs → feedback-G6GU37FD.mjs} +6 -5
- package/dist/cli/{feedback-NDV6TPHG.js → feedback-OHLY7RYD.js} +10 -9
- package/dist/cli/getting-started.d.mts +6 -6
- package/dist/cli/getting-started.d.ts +6 -6
- package/dist/cli/getting-started.js +2 -2
- package/dist/cli/getting-started.mjs +1 -1
- package/dist/cli/git-P76N4NDQ.js +25 -0
- package/dist/cli/{git-QAD6E3HW.mjs → git-PKZW3QD5.mjs} +5 -4
- package/dist/cli/index.js +152 -142
- package/dist/cli/index.mjs +56 -46
- package/dist/cli/{legacy-noops-KVC5QJ74.js → legacy-noops-5LM3D724.js} +8 -7
- package/dist/cli/{legacy-noops-TPTKNBI2.mjs → legacy-noops-LJJYG6YA.mjs} +5 -4
- package/dist/cli/{monitors-SV57JFLO.mjs → monitors-72QV4ALO.mjs} +19 -6
- package/dist/cli/{monitors-KCROV6PJ.js → monitors-UX3H5DC2.js} +103 -90
- package/dist/cli/{org-KX6QIR7A.mjs → org-6RRRKOCP.mjs} +9 -6
- package/dist/cli/{org-NJYX5743.js → org-IF7ISUVB.js} +70 -67
- package/dist/cli/pages-3SU3HKL7.js +252 -0
- package/dist/cli/pages-DXDYYKEK.mjs +252 -0
- package/dist/cli/{play-IQQ57L7Z.mjs → play-AHASKRLA.mjs} +512 -1508
- package/dist/cli/{play-32L7EQN4.js → play-EUIUVLUH.js} +1090 -2086
- package/dist/cli/{providers-4WEC2EQN.mjs → providers-GWGE3WY3.mjs} +7 -5
- package/dist/cli/{providers-ZQV6QLVQ.js → providers-V5WU4VXJ.js} +10 -8
- package/dist/cli/{quickstart-RQ76RIUE.mjs → quickstart-OXKQ5ZST.mjs} +5 -4
- package/dist/cli/{quickstart-HKUSFADF.js → quickstart-QP65I5PF.js} +13 -12
- package/dist/cli/run-6MM72IGL.mjs +443 -0
- package/dist/cli/run-F3FTYS56.js +443 -0
- package/dist/cli/search-OYKOOI7A.js +32 -0
- package/dist/cli/{search-ZRAVFBZC.mjs → search-ZMEBVJZB.mjs} +8 -6
- package/dist/cli/{secrets-J3G5Y43U.js → secrets-ACND5N6A.js} +16 -14
- package/dist/cli/{secrets-CMJOVNVH.mjs → secrets-XRCJFF3L.mjs} +7 -5
- package/dist/cli/{sessions-MDQYY5CB.mjs → sessions-RTK3CEW6.mjs} +5 -4
- package/dist/cli/{sessions-WY7VN4AE.js → sessions-ZGRJPCFF.js} +6 -5
- package/dist/cli/{settings-HTNTFKCE.js → settings-PD5KWQQZ.js} +80 -77
- package/dist/cli/{settings-4RWZPCT5.mjs → settings-XDRBPRDE.mjs} +14 -11
- package/dist/cli/{setup-P3GYYZWG.mjs → setup-3HPYAOCC.mjs} +12 -10
- package/dist/cli/{setup-QGCAP62X.js → setup-E2Q6PXHC.js} +53 -51
- package/dist/cli/{skills-7NAE4ICL.mjs → skills-OOQFMPOV.mjs} +7 -6
- package/dist/cli/skills-XYWV52KB.js +31 -0
- package/dist/cli/tools-ASCDZJCK.js +55 -0
- package/dist/cli/tools-C5ZT3UIC.mjs +55 -0
- package/dist/cli/update-5RQSEIFM.js +33 -0
- package/dist/cli/{update-GODLRKNB.mjs → update-ZWJTADIW.mjs} +9 -8
- package/dist/cli/{workflow-4BXOUVEO.mjs → workflow-23NMPAJ7.mjs} +10 -8
- package/dist/cli/{workflow-AO3A6LXN.js → workflow-TCXU5YJV.js} +20 -18
- package/dist/client-DS2IWYZF.d.ts +10 -0
- package/dist/client-DTwnz_AW.d.mts +10 -0
- package/dist/{client-CYqG23K1.d.ts → client-core-B_6HAIBy.d.ts} +385 -12
- package/dist/{client-BbU5_j7n.d.mts → client-core-DzBSlY1U.d.mts} +385 -12
- package/dist/{compiler-manifest-CWz_sNOQ.d.ts → compiler-manifest-Dcyd3-Zd.d.mts} +43 -1
- package/dist/{compiler-manifest-CWz_sNOQ.d.mts → compiler-manifest-Dcyd3-Zd.d.ts} +43 -1
- package/dist/errors-d-sTrZhe.d.mts +142 -0
- package/dist/errors-yQwfgrcX.d.ts +142 -0
- package/dist/{index-BF2JB_Ug.d.mts → index-C6oXchjN.d.mts} +1 -1
- package/dist/{index-4NPXDzlD.d.ts → index-P56zy_z5.d.ts} +1 -1
- package/dist/index.d.mts +11 -147
- package/dist/index.d.ts +11 -147
- package/dist/index.js +15 -11
- package/dist/index.mjs +14 -10
- package/dist/install-integrity.json +141 -104
- 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 +2 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/play-description.js +2 -2
- package/dist/plays/play-description.mjs +1 -1
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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 +17 -0
- package/dist/server.d.ts +17 -0
- package/dist/server.js +76 -0
- package/dist/server.mjs +76 -0
- package/package.json +6 -1
- package/dist/cli/auth-IACERYQH.js +0 -40
- package/dist/cli/chunk-PQUUWFXY.js +0 -95
- package/dist/cli/chunk-YBWAG72P.mjs +0 -95
- package/dist/cli/chunk-YQDUODZW.js +0 -1710
- package/dist/cli/git-JVI36ZFV.js +0 -24
- package/dist/cli/search-75X5LTDE.js +0 -30
- package/dist/cli/skills-BKJ53JOQ.js +0 -30
- package/dist/cli/tools-COWMIEJ6.mjs +0 -45
- package/dist/cli/tools-TASOCE7I.js +0 -45
- package/dist/cli/update-SJIKVME6.js +0 -32
package/dist/cli/index.js
CHANGED
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
10
|
+
var _chunkGEGW5HPZjs = require('./chunk-GEGW5HPZ.js');
|
|
11
|
+
require('./chunk-LROWFPGN.js');
|
|
12
|
+
require('./chunk-OMQ23IXL.js');
|
|
13
|
+
require('./chunk-VFGVXXZP.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkXANRM3QAjs = require('./chunk-XANRM3QA.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk7LFIMWMWjs = require('./chunk-7LFIMWMW.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -38,14 +38,15 @@ var _chunkOZBWRICMjs = require('./chunk-OZBWRICM.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkZGQSFYD2js = require('./chunk-ZGQSFYD2.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkHUB3CCM2js = require('./chunk-HUB3CCM2.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
+
var _chunk6PMCRYDAjs = require('./chunk-6PMCRYDA.js');
|
|
49
50
|
|
|
50
51
|
|
|
51
52
|
|
|
@@ -54,29 +55,30 @@ var _chunkTNMBPMMCjs = require('./chunk-TNMBPMMC.js');
|
|
|
54
55
|
|
|
55
56
|
|
|
56
57
|
|
|
57
|
-
var _chunk5MDIZX7Mjs = require('./chunk-5MDIZX7M.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
+
var _chunk3ACMRZRVjs = require('./chunk-3ACMRZRV.js');
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
|
|
65
66
|
|
|
66
67
|
|
|
67
|
-
var _chunkYQDUODZWjs = require('./chunk-YQDUODZW.js');
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
71
|
-
require('./chunk-XNYIZMNQ.js');
|
|
72
|
-
require('./chunk-DIAWYWT5.js');
|
|
73
|
-
require('./chunk-5FDKJQZE.js');
|
|
74
|
-
require('./chunk-OG64RBAC.js');
|
|
70
|
+
var _chunkY4DPU4OMjs = require('./chunk-Y4DPU4OM.js');
|
|
75
71
|
|
|
76
72
|
|
|
77
73
|
|
|
74
|
+
var _chunkYT5EODJOjs = require('./chunk-YT5EODJO.js');
|
|
78
75
|
|
|
79
|
-
|
|
76
|
+
|
|
77
|
+
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
78
|
+
require('./chunk-XNYIZMNQ.js');
|
|
79
|
+
require('./chunk-DIAWYWT5.js');
|
|
80
|
+
require('./chunk-7VZHXVOQ.js');
|
|
81
|
+
require('./chunk-OG64RBAC.js');
|
|
80
82
|
require('./chunk-COGTRVWW.js');
|
|
81
83
|
|
|
82
84
|
// src/cli/command-invocation.ts
|
|
@@ -140,48 +142,56 @@ var _os = require('os');
|
|
|
140
142
|
var COMMAND_GROUPS = [
|
|
141
143
|
{
|
|
142
144
|
names: ["auth"],
|
|
143
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
145
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-UXKY6TCC.js")))).registerAuthCommands
|
|
144
146
|
},
|
|
145
147
|
{
|
|
146
148
|
names: ["providers"],
|
|
147
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
149
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-V5WU4VXJ.js")))).registerProviderCommands
|
|
148
150
|
},
|
|
149
151
|
{
|
|
150
152
|
names: ["search"],
|
|
151
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
153
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-OYKOOI7A.js")))).registerSearchCommand
|
|
152
154
|
},
|
|
153
155
|
{
|
|
154
156
|
names: ["describe"],
|
|
155
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
157
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-KYEULWPG.js")))).registerDescribeCommand
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
names: ["run"],
|
|
161
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-F3FTYS56.js")))).registerRunCommand
|
|
156
162
|
},
|
|
157
163
|
{
|
|
158
164
|
names: ["tools"],
|
|
159
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
165
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-ASCDZJCK.js")))).registerToolsCommands
|
|
160
166
|
},
|
|
161
167
|
{
|
|
162
168
|
names: ["executions"],
|
|
163
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
169
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-A7L4ULPP.js")))).registerExecutionsCommands
|
|
164
170
|
},
|
|
165
171
|
{
|
|
166
172
|
names: ["plays", "runs"],
|
|
167
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
173
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-EUIUVLUH.js")))).registerPlayCommands
|
|
168
174
|
},
|
|
169
175
|
{
|
|
170
176
|
names: ["sessions"],
|
|
171
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
177
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-ZGRJPCFF.js")))).registerSessionsCommands
|
|
172
178
|
},
|
|
173
179
|
{
|
|
174
180
|
names: ["workflows"],
|
|
175
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
181
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-TCXU5YJV.js")))).registerWorkflowCommands
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
names: ["pages"],
|
|
185
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-3SU3HKL7.js")))).registerPagesCommands
|
|
176
186
|
},
|
|
177
187
|
{
|
|
178
188
|
names: ["secrets"],
|
|
179
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
189
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-ACND5N6A.js")))).registerSecretsCommands
|
|
180
190
|
},
|
|
181
191
|
{
|
|
182
192
|
names: ["settings", "notifications"],
|
|
183
193
|
load: async () => {
|
|
184
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
194
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-PD5KWQQZ.js")));
|
|
185
195
|
return (p) => {
|
|
186
196
|
commands.registerSettingsCommands(p);
|
|
187
197
|
commands.registerNotificationCommands(p);
|
|
@@ -190,51 +200,51 @@ var COMMAND_GROUPS = [
|
|
|
190
200
|
},
|
|
191
201
|
{
|
|
192
202
|
names: ["billing"],
|
|
193
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
203
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-HXAXB3XZ.js")))).registerBillingCommands
|
|
194
204
|
},
|
|
195
205
|
{
|
|
196
206
|
names: ["monitors"],
|
|
197
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
207
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-UX3H5DC2.js")))).registerMonitorsCommands
|
|
198
208
|
},
|
|
199
209
|
{
|
|
200
210
|
names: ["org"],
|
|
201
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
211
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-IF7ISUVB.js")))).registerOrgCommands
|
|
202
212
|
},
|
|
203
213
|
{
|
|
204
214
|
names: ["git", "projects", "deployments"],
|
|
205
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
215
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-P76N4NDQ.js")))).registerGitCommands
|
|
206
216
|
},
|
|
207
217
|
{
|
|
208
218
|
names: ["csv"],
|
|
209
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
219
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-C56GSCEU.js")))).registerCsvCommands
|
|
210
220
|
},
|
|
211
221
|
{
|
|
212
222
|
names: ["db"],
|
|
213
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
223
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-MOGRMZTA.js")))).registerDbCommands
|
|
214
224
|
},
|
|
215
225
|
{
|
|
216
226
|
names: ["feedback"],
|
|
217
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
227
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-OHLY7RYD.js")))).registerFeedbackCommands
|
|
218
228
|
},
|
|
219
229
|
{
|
|
220
230
|
names: ["enrich", "session", "backend"],
|
|
221
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
231
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-5LM3D724.js")))).registerDeprecatedCommands
|
|
222
232
|
},
|
|
223
233
|
{
|
|
224
234
|
names: ["update"],
|
|
225
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
235
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-5RQSEIFM.js")))).registerUpdateCommand
|
|
226
236
|
},
|
|
227
237
|
{
|
|
228
238
|
names: ["skills", "skills-auto-sync"],
|
|
229
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
239
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-XYWV52KB.js")))).registerSkillsCommand
|
|
230
240
|
},
|
|
231
241
|
{
|
|
232
242
|
names: ["setup", "doctor"],
|
|
233
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
243
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-E2Q6PXHC.js")))).registerSetupCommands
|
|
234
244
|
},
|
|
235
245
|
{
|
|
236
246
|
names: ["quickstart"],
|
|
237
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
247
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-QP65I5PF.js")))).registerQuickstartCommands
|
|
238
248
|
}
|
|
239
249
|
];
|
|
240
250
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -260,25 +270,25 @@ function registerDeeplineInlineCommands(program) {
|
|
|
260
270
|
function createDeferredPlayRunMaintenance(input) {
|
|
261
271
|
return async () => {
|
|
262
272
|
try {
|
|
263
|
-
const skillsVersion =
|
|
264
|
-
const compatibility = await
|
|
273
|
+
const skillsVersion = _chunkY4DPU4OMjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
274
|
+
const compatibility = await _chunk7LFIMWMWjs.traceCliSpan.call(void 0,
|
|
265
275
|
"cli.sdk_compatibility_deferred",
|
|
266
276
|
{
|
|
267
277
|
baseUrl: input.baseUrl,
|
|
268
278
|
command: "plays run",
|
|
269
279
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
270
280
|
},
|
|
271
|
-
() =>
|
|
281
|
+
() => _chunkZGQSFYD2js.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
272
282
|
command: "plays run",
|
|
273
283
|
skillsVersion,
|
|
274
284
|
persistCache: input.policy !== "off",
|
|
275
|
-
catalog:
|
|
285
|
+
catalog: _chunkGEGW5HPZjs.compatibilityCatalog.call(void 0, input.command)
|
|
276
286
|
})
|
|
277
287
|
);
|
|
278
288
|
if (compatibility.error || !compatibility.response) return;
|
|
279
289
|
const automaticUpdate = compatibility.response.auto_update;
|
|
280
290
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
281
|
-
await
|
|
291
|
+
await _chunkGEGW5HPZjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
282
292
|
compatibility.response,
|
|
283
293
|
input.baseUrl,
|
|
284
294
|
input.policy
|
|
@@ -288,7 +298,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
288
298
|
compatibility.response,
|
|
289
299
|
"skills"
|
|
290
300
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
291
|
-
await
|
|
301
|
+
await _chunkZGQSFYD2js.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
292
302
|
update: skillsUpdate,
|
|
293
303
|
mode: "detached"
|
|
294
304
|
});
|
|
@@ -316,8 +326,8 @@ var MAX_SESSIONS = 20;
|
|
|
316
326
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
317
327
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
318
328
|
}
|
|
319
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
320
|
-
const explicit =
|
|
329
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkYT5EODJOjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
330
|
+
const explicit = _chunk6PMCRYDAjs.helpDetailFromArgv.call(void 0, argv);
|
|
321
331
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
322
332
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
323
333
|
const path = helpSeenPath(homeDir);
|
|
@@ -414,7 +424,7 @@ function shouldReport(stdout, stderr) {
|
|
|
414
424
|
}
|
|
415
425
|
function toolName(action) {
|
|
416
426
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
417
|
-
return typeof toolId === "string" ?
|
|
427
|
+
return typeof toolId === "string" ? _chunkZGQSFYD2js.redactFailureText.call(void 0, toolId) : null;
|
|
418
428
|
}
|
|
419
429
|
function chunkText(chunk) {
|
|
420
430
|
if (typeof chunk === "string") return chunk;
|
|
@@ -445,14 +455,14 @@ function watch(stream) {
|
|
|
445
455
|
}
|
|
446
456
|
async function postCommandOutput(body) {
|
|
447
457
|
try {
|
|
448
|
-
const baseUrl =
|
|
449
|
-
const apiKey =
|
|
458
|
+
const baseUrl = _chunkY4DPU4OMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
459
|
+
const apiKey = _chunkY4DPU4OMjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
450
460
|
if (!apiKey) return;
|
|
451
|
-
const agentSessionId =
|
|
461
|
+
const agentSessionId = _chunkYT5EODJOjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
452
462
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
453
463
|
method: "POST",
|
|
454
464
|
headers: {
|
|
455
|
-
...
|
|
465
|
+
..._chunkZGQSFYD2js.failureReportHeaders.call(void 0, apiKey),
|
|
456
466
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
457
467
|
},
|
|
458
468
|
body: JSON.stringify(body),
|
|
@@ -468,14 +478,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
468
478
|
const stdoutWatch = watch(streams.stdout);
|
|
469
479
|
const stderrWatch = watch(streams.stderr);
|
|
470
480
|
return async (finished) => {
|
|
471
|
-
if (
|
|
481
|
+
if (_chunkZGQSFYD2js.isFailureReportingDisabled.call(void 0, )) return;
|
|
472
482
|
const [stdout, stderr] = await Promise.all([
|
|
473
483
|
stdoutWatch.settled(),
|
|
474
484
|
stderrWatch.settled()
|
|
475
485
|
]);
|
|
476
486
|
if (!shouldReport(stdout, stderr)) return;
|
|
477
487
|
await postCommandOutput({
|
|
478
|
-
command:
|
|
488
|
+
command: _chunkZGQSFYD2js.sanitizeCommand.call(void 0, invocation.argv),
|
|
479
489
|
tool: toolName(finished.action),
|
|
480
490
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
481
491
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -506,7 +516,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
506
516
|
function printUsageErrorJson(code, message, commandPath) {
|
|
507
517
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
508
518
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
509
|
-
|
|
519
|
+
_chunk3ACMRZRVjs.printJson.call(void 0, {
|
|
510
520
|
ok: false,
|
|
511
521
|
error: {
|
|
512
522
|
code,
|
|
@@ -568,7 +578,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
568
578
|
);
|
|
569
579
|
}
|
|
570
580
|
async function runPlayRunnerHealthCheck() {
|
|
571
|
-
|
|
581
|
+
_chunkY4DPU4OMjs.resolveConfig.call(void 0, );
|
|
572
582
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
573
583
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
574
584
|
try {
|
|
@@ -598,7 +608,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
598
608
|
});
|
|
599
609
|
let exitCode = 1;
|
|
600
610
|
try {
|
|
601
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
611
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-EUIUVLUH.js")));
|
|
602
612
|
exitCode = await handlePlayRun([
|
|
603
613
|
file,
|
|
604
614
|
"--input",
|
|
@@ -638,7 +648,7 @@ function preflightErrorMessage(error) {
|
|
|
638
648
|
return error instanceof Error ? error.message : String(error);
|
|
639
649
|
}
|
|
640
650
|
async function runPreflightCheck() {
|
|
641
|
-
const baseUrl =
|
|
651
|
+
const baseUrl = _chunkY4DPU4OMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
642
652
|
const healthController = new AbortController();
|
|
643
653
|
const healthTimeout = setTimeout(
|
|
644
654
|
() => healthController.abort(),
|
|
@@ -653,9 +663,9 @@ async function runPreflightCheck() {
|
|
|
653
663
|
version: pickString(payload, "version")
|
|
654
664
|
};
|
|
655
665
|
}).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
|
|
656
|
-
const apiKey =
|
|
657
|
-
const http = apiKey ? new (0,
|
|
658
|
-
|
|
666
|
+
const apiKey = _chunkY4DPU4OMjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
667
|
+
const http = apiKey ? new (0, _chunkY4DPU4OMjs.HttpClient)(
|
|
668
|
+
_chunkY4DPU4OMjs.resolveConfig.call(void 0, {
|
|
659
669
|
baseUrl,
|
|
660
670
|
apiKey,
|
|
661
671
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -700,7 +710,7 @@ async function runPreflightCheck() {
|
|
|
700
710
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
701
711
|
return {
|
|
702
712
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
703
|
-
cli_version:
|
|
713
|
+
cli_version: _chunkYT5EODJOjs.SDK_VERSION,
|
|
704
714
|
host: baseUrl,
|
|
705
715
|
health: {
|
|
706
716
|
status: healthResult.status,
|
|
@@ -726,7 +736,7 @@ async function runPreflightCheck() {
|
|
|
726
736
|
{
|
|
727
737
|
title: "preflight",
|
|
728
738
|
lines: [
|
|
729
|
-
`cli: ${
|
|
739
|
+
`cli: ${_chunkYT5EODJOjs.SDK_VERSION}`,
|
|
730
740
|
`host: ${baseUrl}`,
|
|
731
741
|
`health: ${healthResult.status}`,
|
|
732
742
|
`auth: ${authStatus}`,
|
|
@@ -751,12 +761,12 @@ function printPreflightHuman(data) {
|
|
|
751
761
|
}
|
|
752
762
|
async function newerCliCommandHint(baseUrl, command) {
|
|
753
763
|
if (!command.trim()) return null;
|
|
754
|
-
const { response, error } = await
|
|
764
|
+
const { response, error } = await _chunkZGQSFYD2js.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
755
765
|
if (error || !response) return null;
|
|
756
766
|
const introduced = response.command_introduced_in;
|
|
757
767
|
if (introduced) {
|
|
758
768
|
return [
|
|
759
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
769
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkYT5EODJOjs.SDK_VERSION}.`,
|
|
760
770
|
` ${introduced.reason}`,
|
|
761
771
|
` Update with: ${response.update_command}`,
|
|
762
772
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -765,31 +775,31 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
765
775
|
if (!response.update_required) return null;
|
|
766
776
|
return [
|
|
767
777
|
response.message,
|
|
768
|
-
` Installed: ${
|
|
778
|
+
` Installed: ${_chunkYT5EODJOjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
769
779
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
770
780
|
].join("\n");
|
|
771
781
|
}
|
|
772
782
|
async function runMain(ensureTransport, onAction) {
|
|
773
783
|
const mainStartedAt = Date.now();
|
|
774
|
-
|
|
784
|
+
_chunk3ACMRZRVjs.installJsonStderrGuard.call(void 0, );
|
|
775
785
|
let rootHelpStatus = "";
|
|
776
786
|
const deferredMaintenance = { inlinePlay: null };
|
|
777
|
-
|
|
787
|
+
_chunk7LFIMWMWjs.recordCliTrace.call(void 0, {
|
|
778
788
|
phase: "cli.main_start",
|
|
779
789
|
argv: process.argv.slice(2)
|
|
780
790
|
});
|
|
781
791
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
782
|
-
const progress = printStartupPhase ?
|
|
792
|
+
const progress = printStartupPhase ? _chunkHUB3CCM2js.createCliProgress.call(void 0, true) : null;
|
|
783
793
|
if (printStartupPhase) {
|
|
784
794
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
785
795
|
}
|
|
786
796
|
const program = new (0, _commander.Command)();
|
|
787
797
|
program.name("deepline").description(
|
|
788
798
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
789
|
-
).version(
|
|
799
|
+
).version(_chunkYT5EODJOjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
790
800
|
"--maintenance <policy>",
|
|
791
801
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
792
|
-
|
|
802
|
+
_chunk7LFIMWMWjs.parseCliMaintenancePolicy,
|
|
793
803
|
"configured"
|
|
794
804
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
795
805
|
"beforeAll",
|
|
@@ -803,10 +813,10 @@ Common commands:
|
|
|
803
813
|
deepline sessions send --current-session
|
|
804
814
|
deepline search "name and company domain -> work email" --type prebuilts
|
|
805
815
|
deepline describe person-linkedin-to-email
|
|
806
|
-
deepline
|
|
816
|
+
deepline run my.play.ts --input '{"domain":"stripe.com"}'
|
|
807
817
|
deepline secrets check HUBSPOT_TOKEN
|
|
808
818
|
deepline providers list --changed
|
|
809
|
-
deepline
|
|
819
|
+
deepline run hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
810
820
|
deepline update
|
|
811
821
|
|
|
812
822
|
Product model:
|
|
@@ -838,33 +848,33 @@ Exit codes:
|
|
|
838
848
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
839
849
|
`
|
|
840
850
|
).addHelpText("afterAll", ({ command }) => {
|
|
841
|
-
const key =
|
|
851
|
+
const key = _chunk6PMCRYDAjs.commandDocKey.call(void 0, command);
|
|
842
852
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
843
|
-
return
|
|
853
|
+
return _chunk6PMCRYDAjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
844
854
|
});
|
|
845
855
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
846
856
|
onAction({
|
|
847
857
|
path: compatibilityCommandPath(actionCommand),
|
|
848
858
|
args: actionCommand.processedArgs
|
|
849
859
|
});
|
|
850
|
-
const maintenance =
|
|
860
|
+
const maintenance = _chunk7LFIMWMWjs.resolveCliMaintenancePolicy.call(void 0,
|
|
851
861
|
actionCommand.optsWithGlobals()
|
|
852
862
|
);
|
|
853
863
|
if (actionCommand.name() !== "version") {
|
|
854
864
|
await ensureTransport();
|
|
855
865
|
}
|
|
856
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
866
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkZGQSFYD2js.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
857
867
|
return;
|
|
858
868
|
}
|
|
859
869
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
860
870
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
861
871
|
if (isToolExecuteCommand) {
|
|
862
|
-
|
|
872
|
+
_chunkGEGW5HPZjs.beginToolExecuteCommand.call(void 0, );
|
|
863
873
|
}
|
|
864
874
|
if (isToolExecuteCommand) {
|
|
865
|
-
const baseUrl =
|
|
866
|
-
if (maintenance !== "off")
|
|
867
|
-
|
|
875
|
+
const baseUrl = _chunkY4DPU4OMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
876
|
+
if (maintenance !== "off") _chunkZGQSFYD2js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
877
|
+
_chunk7LFIMWMWjs.recordCliTrace.call(void 0, {
|
|
868
878
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
869
879
|
baseUrl,
|
|
870
880
|
command: compatibilityCommand
|
|
@@ -872,10 +882,10 @@ Exit codes:
|
|
|
872
882
|
return;
|
|
873
883
|
}
|
|
874
884
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
875
|
-
if (!playDryRun &&
|
|
885
|
+
if (!playDryRun && _chunkXANRM3QAjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
876
886
|
if (maintenance !== "off") {
|
|
877
|
-
const baseUrl =
|
|
878
|
-
|
|
887
|
+
const baseUrl = _chunkY4DPU4OMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
888
|
+
_chunkZGQSFYD2js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
879
889
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
880
890
|
baseUrl,
|
|
881
891
|
command: actionCommand,
|
|
@@ -884,27 +894,27 @@ Exit codes:
|
|
|
884
894
|
}
|
|
885
895
|
return;
|
|
886
896
|
}
|
|
887
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
897
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkGEGW5HPZjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
888
898
|
if (printStartupPhase) {
|
|
889
899
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
890
900
|
}
|
|
891
901
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
892
|
-
const baseUrl =
|
|
893
|
-
if (maintenance !== "off")
|
|
902
|
+
const baseUrl = _chunkY4DPU4OMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
903
|
+
if (maintenance !== "off") _chunkZGQSFYD2js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
894
904
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
895
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
896
|
-
const trusted = isToolExecuteCommand ? null :
|
|
905
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkY4DPU4OMjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
906
|
+
const trusted = isToolExecuteCommand ? null : _chunkZGQSFYD2js.readTrustedCleanCompatibility.call(void 0,
|
|
897
907
|
baseUrl,
|
|
898
908
|
compatibilityCommand,
|
|
899
909
|
skillsVersion
|
|
900
910
|
);
|
|
901
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
911
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkZGQSFYD2js.readFreshCleanCompatibility.call(void 0,
|
|
902
912
|
baseUrl,
|
|
903
913
|
compatibilityCommand,
|
|
904
914
|
skillsVersion
|
|
905
915
|
) !== null;
|
|
906
916
|
if (trusted) {
|
|
907
|
-
|
|
917
|
+
_chunk7LFIMWMWjs.recordCliTrace.call(void 0, {
|
|
908
918
|
phase: "cli.sdk_compatibility",
|
|
909
919
|
ms: 0,
|
|
910
920
|
ok: true,
|
|
@@ -914,7 +924,7 @@ Exit codes:
|
|
|
914
924
|
source: "trusted_cache"
|
|
915
925
|
});
|
|
916
926
|
}
|
|
917
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
927
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunk7LFIMWMWjs.traceCliSpan.call(void 0,
|
|
918
928
|
"cli.sdk_compatibility",
|
|
919
929
|
{
|
|
920
930
|
baseUrl,
|
|
@@ -922,12 +932,12 @@ Exit codes:
|
|
|
922
932
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
923
933
|
fastDeadline
|
|
924
934
|
},
|
|
925
|
-
() =>
|
|
935
|
+
() => _chunkZGQSFYD2js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
926
936
|
command: compatibilityCommand,
|
|
927
937
|
skillsVersion,
|
|
928
938
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
929
|
-
catalog:
|
|
930
|
-
...fastDeadline ? { timeoutMs:
|
|
939
|
+
catalog: _chunkGEGW5HPZjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
940
|
+
...fastDeadline ? { timeoutMs: _chunkZGQSFYD2js.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
931
941
|
})
|
|
932
942
|
);
|
|
933
943
|
if (compatibility.error) {
|
|
@@ -938,7 +948,7 @@ Exit codes:
|
|
|
938
948
|
response: null
|
|
939
949
|
};
|
|
940
950
|
}
|
|
941
|
-
const relaunched = await
|
|
951
|
+
const relaunched = await _chunkGEGW5HPZjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
942
952
|
compatibility.response,
|
|
943
953
|
baseUrl,
|
|
944
954
|
maintenance
|
|
@@ -952,14 +962,14 @@ Exit codes:
|
|
|
952
962
|
};
|
|
953
963
|
}
|
|
954
964
|
const policy = compatibility.response;
|
|
955
|
-
const jsonOutput =
|
|
956
|
-
|
|
965
|
+
const jsonOutput = _chunk3ACMRZRVjs.isJsonOutputMode.call(void 0, );
|
|
966
|
+
_chunkZGQSFYD2js.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
957
967
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
958
|
-
|
|
968
|
+
_chunkGEGW5HPZjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkZGQSFYD2js.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
959
969
|
});
|
|
960
970
|
const advisory = compatibility.response;
|
|
961
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
962
|
-
|
|
971
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkZGQSFYD2js.isCiEnvironment.call(void 0, ) && !_chunkGEGW5HPZjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
972
|
+
_chunk3ACMRZRVjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
963
973
|
}
|
|
964
974
|
return {
|
|
965
975
|
shouldContinue: true,
|
|
@@ -976,10 +986,10 @@ Exit codes:
|
|
|
976
986
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
977
987
|
await runStartupStage(
|
|
978
988
|
"agent skills sync",
|
|
979
|
-
() =>
|
|
989
|
+
() => _chunk7LFIMWMWjs.traceCliSpan.call(void 0,
|
|
980
990
|
"cli.sdk_skills_sync",
|
|
981
991
|
{ baseUrl: startup.baseUrl },
|
|
982
|
-
() =>
|
|
992
|
+
() => _chunkZGQSFYD2js.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
983
993
|
update: skillsUpdate,
|
|
984
994
|
mode: "detached"
|
|
985
995
|
})
|
|
@@ -988,19 +998,19 @@ Exit codes:
|
|
|
988
998
|
}
|
|
989
999
|
});
|
|
990
1000
|
const requestedCommand = process.argv[2];
|
|
991
|
-
const commandRegistrationStartedAt =
|
|
1001
|
+
const commandRegistrationStartedAt = _chunk7LFIMWMWjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
992
1002
|
await registerDeeplineCommandGroups(
|
|
993
1003
|
program,
|
|
994
1004
|
!requestedCommand || requestedCommand === "help" || requestedCommand.startsWith("-") && !["-v", "--version"].includes(requestedCommand) ? void 0 : requestedCommand
|
|
995
1005
|
);
|
|
996
1006
|
if (commandRegistrationStartedAt !== void 0) {
|
|
997
|
-
|
|
1007
|
+
_chunk7LFIMWMWjs.recordCliTrace.call(void 0, {
|
|
998
1008
|
phase: "cli.command_registration",
|
|
999
1009
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1000
1010
|
});
|
|
1001
1011
|
}
|
|
1002
1012
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1003
|
-
if (
|
|
1013
|
+
if (_chunk3ACMRZRVjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1004
1014
|
preflight.addHelpText(
|
|
1005
1015
|
"after",
|
|
1006
1016
|
`
|
|
@@ -1015,8 +1025,8 @@ Examples:
|
|
|
1015
1025
|
`
|
|
1016
1026
|
).action(async (options) => {
|
|
1017
1027
|
const data = await runPreflightCheck();
|
|
1018
|
-
if (
|
|
1019
|
-
|
|
1028
|
+
if (_chunk3ACMRZRVjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1029
|
+
_chunk3ACMRZRVjs.printJson.call(void 0, data);
|
|
1020
1030
|
} else {
|
|
1021
1031
|
printPreflightHuman(data);
|
|
1022
1032
|
}
|
|
@@ -1038,7 +1048,7 @@ Examples:
|
|
|
1038
1048
|
).action(async (options) => {
|
|
1039
1049
|
if (options.playRunner) {
|
|
1040
1050
|
const data = await runPlayRunnerHealthCheck();
|
|
1041
|
-
|
|
1051
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, data, {
|
|
1042
1052
|
json: options.json,
|
|
1043
1053
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1044
1054
|
`
|
|
@@ -1046,15 +1056,15 @@ Examples:
|
|
|
1046
1056
|
return;
|
|
1047
1057
|
}
|
|
1048
1058
|
try {
|
|
1049
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1050
|
-
const baseUrl =
|
|
1059
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-UXKY6TCC.js")));
|
|
1060
|
+
const baseUrl = _chunkY4DPU4OMjs.resolveBaseUrlOnly.call(void 0, );
|
|
1051
1061
|
const [{ status, data }, banner] = await Promise.all([
|
|
1052
1062
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1053
1063
|
readStatusBanner(baseUrl)
|
|
1054
1064
|
]);
|
|
1055
1065
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1056
1066
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1057
|
-
|
|
1067
|
+
_chunk3ACMRZRVjs.printCommandEnvelope.call(void 0,
|
|
1058
1068
|
{ ...data, status_banner: banner },
|
|
1059
1069
|
{
|
|
1060
1070
|
json: options.json,
|
|
@@ -1082,16 +1092,16 @@ Examples:
|
|
|
1082
1092
|
`
|
|
1083
1093
|
).action((options) => {
|
|
1084
1094
|
if (options.json) {
|
|
1085
|
-
|
|
1095
|
+
_chunk3ACMRZRVjs.printCompactJson.call(void 0, { version: _chunkYT5EODJOjs.SDK_VERSION });
|
|
1086
1096
|
return;
|
|
1087
1097
|
}
|
|
1088
|
-
process.stdout.write(`deepline ${
|
|
1098
|
+
process.stdout.write(`deepline ${_chunkYT5EODJOjs.SDK_VERSION}
|
|
1089
1099
|
`);
|
|
1090
1100
|
});
|
|
1091
1101
|
if (process.argv.slice(2).length === 0) {
|
|
1092
1102
|
program.outputHelp({ error: true });
|
|
1093
1103
|
console.error("\nerror: missing command (see usage above)");
|
|
1094
|
-
|
|
1104
|
+
_chunk7LFIMWMWjs.recordCliTrace.call(void 0, {
|
|
1095
1105
|
phase: "cli.main_total",
|
|
1096
1106
|
ms: Date.now() - mainStartedAt,
|
|
1097
1107
|
ok: false,
|
|
@@ -1103,16 +1113,16 @@ Examples:
|
|
|
1103
1113
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1104
1114
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1105
1115
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1106
|
-
if (!
|
|
1107
|
-
const baseUrl =
|
|
1116
|
+
if (!_chunk3ACMRZRVjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1117
|
+
const baseUrl = _chunkY4DPU4OMjs.autoDetectBaseUrl.call(void 0, );
|
|
1108
1118
|
await ensureTransport();
|
|
1109
1119
|
const versionHint = await newerCliCommandHint(
|
|
1110
1120
|
baseUrl,
|
|
1111
1121
|
requestedTopLevelCommand
|
|
1112
1122
|
);
|
|
1113
|
-
if (
|
|
1123
|
+
if (_chunk3ACMRZRVjs.isJsonOutputMode.call(void 0, )) {
|
|
1114
1124
|
if (versionHint) {
|
|
1115
|
-
|
|
1125
|
+
_chunk3ACMRZRVjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1116
1126
|
}
|
|
1117
1127
|
printUsageErrorJson(
|
|
1118
1128
|
"commander.unknownCommand",
|
|
@@ -1134,32 +1144,32 @@ Examples:
|
|
|
1134
1144
|
const helpArgs = process.argv.slice(2);
|
|
1135
1145
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1136
1146
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1137
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1138
|
-
rootHelpStatus = `Version: ${
|
|
1147
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-UXKY6TCC.js")));
|
|
1148
|
+
rootHelpStatus = `Version: ${_chunkYT5EODJOjs.SDK_VERSION}
|
|
1139
1149
|
${await authStatusLine()}
|
|
1140
1150
|
`;
|
|
1141
1151
|
}
|
|
1142
1152
|
await program.parseAsync(process.argv);
|
|
1143
|
-
|
|
1153
|
+
_chunk7LFIMWMWjs.recordCliTrace.call(void 0, {
|
|
1144
1154
|
phase: "cli.main_total",
|
|
1145
1155
|
ms: Date.now() - mainStartedAt,
|
|
1146
1156
|
ok: true
|
|
1147
1157
|
});
|
|
1148
|
-
await
|
|
1158
|
+
await _chunkZGQSFYD2js.maybeReportSdkCliFailure.call(void 0, {
|
|
1149
1159
|
argv: process.argv.slice(2),
|
|
1150
1160
|
startedAtMs: mainStartedAt,
|
|
1151
1161
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
1152
1162
|
});
|
|
1153
1163
|
} catch (error) {
|
|
1154
1164
|
const commanderError = asCommanderError(error);
|
|
1155
|
-
|
|
1165
|
+
_chunk7LFIMWMWjs.recordCliTrace.call(void 0, {
|
|
1156
1166
|
phase: "cli.main_total",
|
|
1157
1167
|
ms: Date.now() - mainStartedAt,
|
|
1158
1168
|
ok: false,
|
|
1159
1169
|
error: error instanceof Error ? error.message : String(error)
|
|
1160
1170
|
});
|
|
1161
1171
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1162
|
-
const wantsJson =
|
|
1172
|
+
const wantsJson = _chunk3ACMRZRVjs.isJsonOutputMode.call(void 0, );
|
|
1163
1173
|
if (commanderError) {
|
|
1164
1174
|
const grammarError = [
|
|
1165
1175
|
"commander.unknownCommand",
|
|
@@ -1170,12 +1180,12 @@ ${await authStatusLine()}
|
|
|
1170
1180
|
if (grammarError) {
|
|
1171
1181
|
await ensureTransport();
|
|
1172
1182
|
const versionHint = await newerCliCommandHint(
|
|
1173
|
-
|
|
1183
|
+
_chunkY4DPU4OMjs.autoDetectBaseUrl.call(void 0, ),
|
|
1174
1184
|
commandPath
|
|
1175
1185
|
);
|
|
1176
1186
|
if (wantsJson) {
|
|
1177
1187
|
if (versionHint) {
|
|
1178
|
-
|
|
1188
|
+
_chunk3ACMRZRVjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1179
1189
|
}
|
|
1180
1190
|
} else {
|
|
1181
1191
|
if (versionHint) console.error(versionHint);
|
|
@@ -1195,49 +1205,49 @@ ${await authStatusLine()}
|
|
|
1195
1205
|
return;
|
|
1196
1206
|
} else if (wantsJson) {
|
|
1197
1207
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1198
|
-
|
|
1208
|
+
_chunk3ACMRZRVjs.addJsonNotice.call(void 0, {
|
|
1199
1209
|
code: "auth_required",
|
|
1200
1210
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1201
1211
|
});
|
|
1202
1212
|
}
|
|
1203
|
-
const providerConcurrency =
|
|
1213
|
+
const providerConcurrency = _chunk3ACMRZRVjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1204
1214
|
if (providerConcurrency) {
|
|
1205
|
-
|
|
1215
|
+
_chunk3ACMRZRVjs.addJsonNotice.call(void 0, {
|
|
1206
1216
|
code: "provider_concurrency",
|
|
1207
1217
|
message: providerConcurrency
|
|
1208
1218
|
});
|
|
1209
1219
|
}
|
|
1210
|
-
|
|
1211
|
-
...
|
|
1220
|
+
_chunk3ACMRZRVjs.printJson.call(void 0, {
|
|
1221
|
+
..._chunk3ACMRZRVjs.errorToJsonPayload.call(void 0, error),
|
|
1212
1222
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1213
1223
|
});
|
|
1214
1224
|
} else if (error instanceof Error) {
|
|
1215
1225
|
console.error(`Error: ${error.message}`);
|
|
1216
|
-
const toolDiagnostic =
|
|
1226
|
+
const toolDiagnostic = _chunk3ACMRZRVjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1217
1227
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1218
1228
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1219
1229
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1220
1230
|
}
|
|
1221
|
-
const providerConcurrency =
|
|
1231
|
+
const providerConcurrency = _chunk3ACMRZRVjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1222
1232
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1223
1233
|
} else {
|
|
1224
1234
|
console.error(`Error: ${String(error)}`);
|
|
1225
1235
|
}
|
|
1226
1236
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1227
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1237
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkZGQSFYD2js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1228
1238
|
process.exitCode = failureExitCode;
|
|
1229
|
-
await
|
|
1239
|
+
await _chunkZGQSFYD2js.maybeReportSdkCliFailure.call(void 0, {
|
|
1230
1240
|
argv: process.argv.slice(2),
|
|
1231
1241
|
startedAtMs: mainStartedAt,
|
|
1232
1242
|
exitCode: failureExitCode,
|
|
1233
1243
|
error
|
|
1234
1244
|
});
|
|
1235
1245
|
} finally {
|
|
1236
|
-
|
|
1246
|
+
_chunkGEGW5HPZjs.finishToolExecuteCommand.call(void 0, );
|
|
1237
1247
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1238
1248
|
deferredMaintenance.inlinePlay = null;
|
|
1239
1249
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1240
|
-
await
|
|
1250
|
+
await _chunkGEGW5HPZjs.runDeferredAutoUpdate.call(void 0, );
|
|
1241
1251
|
}
|
|
1242
1252
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1243
1253
|
}
|
|
@@ -1245,7 +1255,7 @@ async function main() {
|
|
|
1245
1255
|
let disposeTransport;
|
|
1246
1256
|
const ensureTransport = async () => {
|
|
1247
1257
|
if (disposeTransport) return;
|
|
1248
|
-
const transportStartedAt =
|
|
1258
|
+
const transportStartedAt = _chunk7LFIMWMWjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1249
1259
|
const hasProxy = [
|
|
1250
1260
|
"HTTP_PROXY",
|
|
1251
1261
|
"http_proxy",
|
|
@@ -1257,7 +1267,7 @@ async function main() {
|
|
|
1257
1267
|
disposeTransport = configureCliTransport();
|
|
1258
1268
|
}
|
|
1259
1269
|
if (transportStartedAt !== void 0) {
|
|
1260
|
-
|
|
1270
|
+
_chunk7LFIMWMWjs.recordCliTrace.call(void 0, {
|
|
1261
1271
|
phase: "cli.transport_setup",
|
|
1262
1272
|
ms: performance.now() - transportStartedAt
|
|
1263
1273
|
});
|
|
@@ -1274,9 +1284,9 @@ async function main() {
|
|
|
1274
1284
|
action = dispatched;
|
|
1275
1285
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1276
1286
|
});
|
|
1277
|
-
const silentFailure =
|
|
1287
|
+
const silentFailure = _chunk3ACMRZRVjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1278
1288
|
if (silentFailure) {
|
|
1279
|
-
|
|
1289
|
+
_chunk3ACMRZRVjs.printJson.call(void 0, {
|
|
1280
1290
|
ok: false,
|
|
1281
1291
|
exitCode: Number(process.exitCode),
|
|
1282
1292
|
error: { code: "CLI_ERROR", message: silentFailure }
|