deepline 0.3.542 → 0.3.544
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 +112 -2
- package/dist/bundling-sources/sdk/src/index.ts +7 -0
- package/dist/bundling-sources/sdk/src/integrations.ts +198 -0
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/tool-calls.ts +35 -11
- package/dist/bundling-sources/sdk/src/types.ts +10 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +132 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +3 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/tool-connection.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +108 -1
- package/dist/bundling-sources/shared_libs/monitors/package.json +1 -1
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +5 -5
- package/dist/bundling-sources/shared_libs/play-data-plane/sheet-contract.ts +34 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +11 -5
- package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +9 -7
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +235 -12
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +20 -1
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +39 -30
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/event-wait-tools.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +10 -4
- package/dist/bundling-sources/shared_libs/play-runtime/fleet-sandbox-sweep.ts +209 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +24 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +37 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +43 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +23 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +320 -836
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/vercel-sandbox.ts +1061 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +862 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +45 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/sandbox-create-outcome.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +11 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-contract.ts +20 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +71 -34
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-provider-profile.ts +286 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -1
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +12 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +49 -55
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +127 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +214 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/managed-sandbox-resource-sql.ts +118 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +229 -144
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +11 -13
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +42 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/vercel-sandbox-runtime-config.ts +217 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +23 -0
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +1 -0
- package/dist/bundling-sources/shared_libs/plays/script-entry.ts +76 -6
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +1 -0
- package/dist/bundling-sources/shared_libs/security/credential-revision.ts +50 -0
- package/dist/bundling-sources/shared_libs/security/internal-actor.ts +2 -1
- package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +37 -0
- package/dist/cli/auth-ENBXAKQS.js +43 -0
- package/dist/cli/{auth-IGBGOB4E.mjs → auth-IMWJAHPU.mjs} +5 -5
- package/dist/cli/{billing-IB2TWE74.js → billing-Y55PR2PV.js} +101 -101
- package/dist/cli/{billing-N37W2I62.mjs → billing-YQMW3QJI.mjs} +12 -12
- package/dist/cli/chunk-22OBDYHP.js +455 -0
- package/dist/cli/{chunk-GBAT5NMI.mjs → chunk-2HSZCQMT.mjs} +48 -6
- package/dist/cli/{chunk-VLEVVDWG.js → chunk-2JHYYB3F.js} +3 -3
- package/dist/cli/{chunk-D44DP4KJ.js → chunk-3I26HMJ7.js} +37 -17
- package/dist/cli/{chunk-B5NP3SHX.mjs → chunk-3JDA23NN.mjs} +2 -2
- package/dist/cli/{chunk-QXNOSCYL.js → chunk-3KGMM4KS.js} +1 -1
- package/dist/cli/{chunk-6WQDHEVF.mjs → chunk-456RRXAP.mjs} +5 -5
- package/dist/cli/{chunk-V4EYJKGJ.js → chunk-4JQEAYN3.js} +156 -17
- package/dist/cli/{chunk-FGGPCAGC.js → chunk-4PKHFW56.js} +18 -18
- package/dist/cli/{chunk-QONO7FRF.mjs → chunk-57G4NYOL.mjs} +1 -1
- package/dist/cli/{chunk-46V7QSJE.mjs → chunk-5PR4VLLL.mjs} +3 -3
- package/dist/cli/{chunk-OLH2PHMC.mjs → chunk-6P7TGCHQ.mjs} +1 -1
- package/dist/cli/{chunk-AKY7KZRJ.js → chunk-7GNZEOTH.js} +6 -6
- package/dist/cli/{chunk-LFMQVSEI.js → chunk-7HMMTSDA.js} +5 -5
- package/dist/cli/{chunk-ORA5TMML.mjs → chunk-BEQ7RQLT.mjs} +5 -5
- package/dist/cli/{chunk-KQSTV4MW.js → chunk-BLYW6FFB.js} +60 -18
- package/dist/cli/{chunk-GM73TZ2W.js → chunk-C4P2KLWT.js} +41 -41
- package/dist/cli/{chunk-DNGACHFX.js → chunk-COJHT2KF.js} +22 -22
- package/dist/cli/{chunk-6SLEHAXX.js → chunk-DF2X7GJG.js} +5 -5
- package/dist/cli/{chunk-TT4JUUC3.mjs → chunk-DVDWAC2M.mjs} +7 -3
- package/dist/cli/{chunk-5CAVURVS.js → chunk-DYDHLBSK.js} +53 -53
- package/dist/cli/{chunk-UNDLNT3V.js → chunk-ECWOIXAV.js} +1 -1
- package/dist/cli/{chunk-EHLCWGWN.js → chunk-G26VJCNT.js} +4 -4
- package/dist/cli/{chunk-WL2GUGNZ.js → chunk-GQHRGBHV.js} +7 -7
- package/dist/cli/{chunk-DADH3WPE.mjs → chunk-GV45TTI6.mjs} +2 -2
- package/dist/cli/{chunk-OVX3Q5Q3.mjs → chunk-GWNYLIF7.mjs} +1 -1
- package/dist/cli/{chunk-EGOCGWCI.mjs → chunk-H4SAHB3Q.mjs} +3 -3
- package/dist/cli/{chunk-FX4OWXKK.mjs → chunk-HAQRF6DJ.mjs} +2 -2
- package/dist/cli/{chunk-NLZHLEHD.mjs → chunk-HBSWATOU.mjs} +6 -6
- package/dist/cli/{chunk-ACVTMAW4.mjs → chunk-HVJQF5BI.mjs} +2 -2
- package/dist/cli/{chunk-L2VKAASU.mjs → chunk-HXIR3VQL.mjs} +21 -0
- package/dist/cli/{chunk-Z5YRKX7K.mjs → chunk-HXM2JUGD.mjs} +1 -1
- package/dist/cli/{chunk-JPT6VE54.js → chunk-IFIJ4DBJ.js} +2 -2
- package/dist/cli/{chunk-HAITCPCG.js → chunk-JBWOE6AP.js} +16 -16
- package/dist/cli/{chunk-AWLPERL3.js → chunk-JWVG7ZPX.js} +3 -3
- package/dist/cli/{chunk-3XXXMSSP.js → chunk-KE6CSCUF.js} +44 -44
- package/dist/cli/{chunk-2ZGSHVZE.mjs → chunk-LPUBBUKX.mjs} +24 -4
- package/dist/cli/{chunk-PLIKPGOO.mjs → chunk-LQ6RRYXN.mjs} +5 -5
- package/dist/cli/{chunk-FFDZT255.mjs → chunk-LW274RO7.mjs} +1 -1
- package/dist/cli/{chunk-Z2XA6YU4.mjs → chunk-LX35AXTN.mjs} +1 -0
- package/dist/cli/{chunk-FANIRW74.mjs → chunk-NIPLY25A.mjs} +0 -2
- package/dist/cli/{chunk-VHJUH3TB.js → chunk-ON56ISO6.js} +3 -3
- package/dist/cli/{chunk-4I47NCRI.js → chunk-PDJ4UDCO.js} +498 -328
- package/dist/cli/{chunk-SWO5QOXB.mjs → chunk-PFGOCUH3.mjs} +1 -1
- package/dist/cli/{chunk-Q7WDXLYO.js → chunk-PKRW76XG.js} +2 -2
- package/dist/cli/{chunk-YK7NNZD4.mjs → chunk-PMW5YP72.mjs} +37 -190
- package/dist/cli/{chunk-5APOJWJF.mjs → chunk-Q7ZOWNKR.mjs} +183 -13
- package/dist/cli/{chunk-WACIN4PR.mjs → chunk-REEOMNCO.mjs} +3 -3
- package/dist/cli/{chunk-DMXLZ57N.js → chunk-RG34YBDE.js} +2 -2
- package/dist/cli/{chunk-3LEUSRV3.mjs → chunk-RJPDCSTD.mjs} +4 -4
- package/dist/cli/{chunk-IPVRMYWT.js → chunk-RKF263LR.js} +5 -5
- package/dist/cli/{chunk-AUFE624T.js → chunk-RUFR4PUO.js} +10 -10
- package/dist/cli/{chunk-I5EAIFGO.mjs → chunk-SK3HPU2J.mjs} +1 -1
- package/dist/cli/{chunk-ZVNYBQ77.mjs → chunk-SKS53WM6.mjs} +4 -4
- package/dist/cli/{chunk-CQDQNZGH.js → chunk-SL6MYJYM.js} +1 -0
- package/dist/cli/{chunk-E4CABWXL.js → chunk-TI6DTURF.js} +22 -1
- package/dist/cli/{chunk-CFZCRM6R.js → chunk-UHIAQPVA.js} +26 -26
- package/dist/cli/{chunk-D7GWEBMF.js → chunk-UNMNGRPB.js} +7 -7
- package/dist/cli/{chunk-GWHA4DAC.js → chunk-UV4RU2TE.js} +0 -2
- package/dist/cli/{chunk-TTBHOMAA.js → chunk-W7X4KH45.js} +316 -469
- package/dist/cli/chunk-WBSGPLH5.mjs +455 -0
- package/dist/cli/{chunk-SCLP5H4P.mjs → chunk-WUEORIOY.mjs} +1 -1
- package/dist/cli/{chunk-IDDKNMFX.mjs → chunk-Y3T5GWYK.mjs} +153 -14
- package/dist/cli/{chunk-P4MDTBAA.mjs → chunk-YIRVKMON.mjs} +1 -1
- package/dist/cli/{chunk-NDNEARE3.js → chunk-Z44YTSTA.js} +13 -13
- package/dist/cli/{chunk-F6QV42MC.mjs → chunk-Z7SXGOIQ.mjs} +1 -1
- package/dist/cli/{chunk-2VRKBHMD.mjs → chunk-ZHY4T5M6.mjs} +1 -1
- package/dist/cli/{chunk-E7B73LGT.js → chunk-ZY6FL4O4.js} +24 -20
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/{concurrent-runs-help-DIBGMEIN.mjs → concurrent-runs-help-KBWPKSTP.mjs} +7 -7
- package/dist/cli/concurrent-runs-help-TOMLCMV7.js +21 -0
- package/dist/cli/{csv-CAVA3EMS.mjs → csv-M5EBEMZH.mjs} +4 -4
- package/dist/cli/{csv-XZAM7EYZ.js → csv-XGGDZTQI.js} +13 -13
- package/dist/cli/{db-PPGEOBNG.js → db-CVPR54XK.js} +29 -29
- package/dist/cli/{db-HD332QI7.mjs → db-M6FJ6J6E.mjs} +8 -8
- package/dist/cli/describe-RUODIS6M.js +50 -0
- package/dist/cli/describe-X6QA2U3C.mjs +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 +3 -3
- package/dist/cli/describe-core.mjs +2 -2
- package/dist/cli/{executions-AFEOLB4A.mjs → executions-EHTS2XJX.mjs} +8 -8
- package/dist/cli/{executions-4ZKBL7IC.js → executions-VJEEWN22.js} +10 -10
- package/dist/cli/{feedback-J2YPLKMF.mjs → feedback-76VGY4GP.mjs} +6 -6
- package/dist/cli/{feedback-M6Y33JKT.js → feedback-DQPUCUXO.js} +14 -14
- package/dist/cli/{git-632RYEF6.mjs → git-IY6DKKLR.mjs} +5 -5
- package/dist/cli/git-RLHTSYRY.js +25 -0
- package/dist/cli/index.js +150 -146
- package/dist/cli/index.mjs +49 -45
- package/dist/cli/integrations-242LE3TQ.mjs +98 -0
- package/dist/cli/integrations-CQSTIKFY.js +98 -0
- package/dist/cli/{legacy-noops-KWZMXYAU.mjs → legacy-noops-SWTSTMRY.mjs} +6 -6
- package/dist/cli/{legacy-noops-4Y62TKPC.js → legacy-noops-U72DO6ZF.js} +9 -9
- package/dist/cli/{mcp-PESLHAAC.mjs → mcp-JJH6JR52.mjs} +72 -15
- package/dist/cli/{mcp-35QA6YG7.js → mcp-L473BKLJ.js} +89 -32
- package/dist/cli/{monitors-4DTUZLAI.js → monitors-3TF2DOFD.js} +119 -104
- package/dist/cli/{monitors-YVBKBJBU.mjs → monitors-VSYHUBKC.mjs} +26 -11
- package/dist/cli/{org-DJNKMFCZ.mjs → org-S5VIKU2E.mjs} +8 -8
- package/dist/cli/{org-FWCBZMER.js → org-YKVI2ZTI.js} +90 -90
- package/dist/cli/{play-PHVQEEEZ.mjs → play-C7T5A3QM.mjs} +44 -25
- package/dist/cli/{play-FZ45M4KD.js → play-DOWEG45Y.js} +374 -355
- package/dist/cli/{providers-46E67QG7.mjs → providers-BMVVX3VD.mjs} +10 -9
- package/dist/cli/{providers-QJU6FMDD.js → providers-TAZPPFTB.js} +13 -12
- package/dist/cli/{quickstart-6HMJJ4RR.mjs → quickstart-A3WKMKTW.mjs} +4 -4
- package/dist/cli/{quickstart-HOL7H5FS.js → quickstart-HD6FQXGR.js} +6 -6
- package/dist/cli/{run-WKSIRXEC.js → run-BVVV2UX7.js} +49 -48
- package/dist/cli/{run-2W2TJ6QA.mjs → run-FV7TWNOC.mjs} +28 -27
- package/dist/cli/{search-Y2CFLSYB.mjs → search-MGK6WIKS.mjs} +9 -9
- package/dist/cli/search-VJFCWUZN.js +32 -0
- package/dist/cli/{search-output-2IK6ZZDY.js → search-output-6Y7KEPIE.js} +6 -6
- package/dist/cli/{search-output-FCZ35PHF.mjs → search-output-GM7LDZKE.mjs} +4 -4
- package/dist/cli/{secrets-PNPNUZLX.mjs → secrets-4RFAR7YI.mjs} +8 -8
- package/dist/cli/{secrets-JVJIHGU4.js → secrets-SISXIXSZ.js} +17 -17
- package/dist/cli/{sessions-GY5VVQGO.mjs → sessions-CE3OMEG7.mjs} +6 -6
- package/dist/cli/sessions-OWWZJZXH.js +22 -0
- package/dist/cli/{settings-5WHMFRNQ.js → settings-4HPM3K4A.js} +89 -89
- package/dist/cli/{settings-YQOPF3AI.mjs → settings-E22IDSX2.mjs} +16 -16
- package/dist/cli/{setup-3VJMKDEU.js → setup-BDRSNLKX.js} +49 -49
- package/dist/cli/{setup-O5U5IEVW.mjs → setup-BK65MDZ6.mjs} +9 -9
- package/dist/cli/{skills-G6J5PF35.mjs → skills-FI2GZMR4.mjs} +7 -7
- package/dist/cli/skills-ZLBFUAFR.js +36 -0
- package/dist/cli/tools-3K72VE33.js +57 -0
- package/dist/cli/{tools-AG7SWL5Y.mjs → tools-HMMWYUNW.mjs} +20 -19
- package/dist/cli/update-QZV6DH5V.js +34 -0
- package/dist/cli/{update-K73DD6CR.mjs → update-WDKBSXV5.mjs} +9 -9
- package/dist/cli/{views-4D2OTLIO.js → views-775AUDWQ.js} +23 -23
- package/dist/cli/{views-MO6DIOMR.mjs → views-JYIJCO23.mjs} +8 -8
- package/dist/cli/{workflow-ZEMFCS4Y.js → workflow-4H6KQRFQ.js} +19 -19
- package/dist/cli/{workflow-MMZMAELI.mjs → workflow-FKKHE3IU.mjs} +9 -9
- package/dist/{client-DLG9mHDh.d.mts → client-ANT3pyoa.d.mts} +1 -1
- package/dist/{client-X-FJD5Dp.d.ts → client-DD_FyJVd.d.ts} +1 -1
- package/dist/{client-core-WtnqyBwY.d.mts → client-core-Dg9tKhdB.d.mts} +339 -3
- package/dist/{client-core-0jmHfFBv.d.ts → client-core-QHmo73k1.d.ts} +339 -3
- package/dist/{compiler-manifest-Cys06iYg.d.mts → compiler-manifest-BWFtsQIC.d.mts} +21 -0
- package/dist/{compiler-manifest-Cys06iYg.d.ts → compiler-manifest-BWFtsQIC.d.ts} +21 -0
- package/dist/{errors-B6eMjKcr.d.mts → errors-CwKXXtuu.d.mts} +1 -1
- package/dist/{errors-rdOUqcU2.d.ts → errors-Lm9_vJHZ.d.ts} +1 -1
- package/dist/{index-ejWadAL5.d.ts → index-3vJ-V9yw.d.ts} +1 -1
- package/dist/{index-CZdYO81A.d.mts → index-DjwsAt82.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +12 -12
- package/dist/index.mjs +8 -8
- package/dist/install-integrity.json +147 -133
- 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/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 +2 -2
- package/dist/plays/run-request.mjs +1 -1
- 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 +7 -7
- package/dist/server.mjs +5 -5
- package/package.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal-resource-usage.ts +0 -222
- package/dist/cli/auth-2PH6RSKL.js +0 -43
- package/dist/cli/concurrent-runs-help-BNIDBKML.js +0 -21
- package/dist/cli/describe-5TFFB2PM.js +0 -49
- package/dist/cli/describe-THQU7N47.mjs +0 -49
- package/dist/cli/git-AQLQYWRI.js +0 -25
- package/dist/cli/search-YLJFCJTK.js +0 -32
- package/dist/cli/sessions-TZ33UCPS.js +0 -22
- package/dist/cli/skills-WZY3XDT3.js +0 -36
- package/dist/cli/tools-BXQBL72Q.js +0 -56
- package/dist/cli/update-XYP5EII6.js +0 -34
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7GNZEOTHjs = require('./chunk-7GNZEOTH.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRG34YBDEjs = require('./chunk-RG34YBDE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,17 +13,17 @@ var _chunkDMXLZ57Njs = require('./chunk-DMXLZ57N.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkCOJHT2KFjs = require('./chunk-COJHT2KF.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
23
|
+
var _chunkPKRW76XGjs = require('./chunk-PKRW76XG.js');
|
|
24
|
+
require('./chunk-JBWOE6AP.js');
|
|
25
|
+
require('./chunk-IFIJ4DBJ.js');
|
|
26
|
+
require('./chunk-C4P2KLWT.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -35,16 +35,16 @@ require('./chunk-GM73TZ2W.js');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkKE6CSCUFjs = require('./chunk-KE6CSCUF.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkJWVG7ZPXjs = require('./chunk-JWVG7ZPX.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
47
|
-
require('./chunk-
|
|
46
|
+
var _chunk4JQEAYN3js = require('./chunk-4JQEAYN3.js');
|
|
47
|
+
require('./chunk-UV4RU2TE.js');
|
|
48
48
|
require('./chunk-R7J7CJPZ.js');
|
|
49
49
|
require('./chunk-YGCKMI5P.js');
|
|
50
50
|
|
|
@@ -65,7 +65,7 @@ require('./chunk-YGCKMI5P.js');
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
@@ -73,18 +73,18 @@ var _chunkE7B73LGTjs = require('./chunk-E7B73LGT.js');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunkON56ISO6js = require('./chunk-ON56ISO6.js');
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkG26VJCNTjs = require('./chunk-G26VJCNT.js');
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
|
|
85
85
|
require('./chunk-XNYIZMNQ.js');
|
|
86
86
|
require('./chunk-BBTKAASQ.js');
|
|
87
|
-
require('./chunk-
|
|
87
|
+
require('./chunk-3KGMM4KS.js');
|
|
88
88
|
require('./chunk-OG64RBAC.js');
|
|
89
89
|
require('./chunk-RLX5ZFNX.js');
|
|
90
90
|
require('./chunk-COGTRVWW.js');
|
|
@@ -165,60 +165,64 @@ var _os = require('os');
|
|
|
165
165
|
var COMMAND_GROUPS = [
|
|
166
166
|
{
|
|
167
167
|
names: ["auth"],
|
|
168
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
168
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-ENBXAKQS.js")))).registerAuthCommands
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
names: ["providers"],
|
|
172
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
172
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-TAZPPFTB.js")))).registerProviderCommands
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
names: ["integrations"],
|
|
176
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./integrations-CQSTIKFY.js")))).registerIntegrationsCommands
|
|
173
177
|
},
|
|
174
178
|
{
|
|
175
179
|
names: ["search"],
|
|
176
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
180
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-VJFCWUZN.js")))).registerSearchCommand
|
|
177
181
|
},
|
|
178
182
|
{
|
|
179
183
|
names: ["describe"],
|
|
180
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
184
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-RUODIS6M.js")))).registerDescribeCommand
|
|
181
185
|
},
|
|
182
186
|
{
|
|
183
187
|
names: ["run"],
|
|
184
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
188
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-BVVV2UX7.js")))).registerRunCommand
|
|
185
189
|
},
|
|
186
190
|
{
|
|
187
191
|
names: ["tools"],
|
|
188
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
192
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-3K72VE33.js")))).registerToolsCommands
|
|
189
193
|
},
|
|
190
194
|
{
|
|
191
195
|
names: ["executions"],
|
|
192
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
196
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-VJEEWN22.js")))).registerExecutionsCommands
|
|
193
197
|
},
|
|
194
198
|
{
|
|
195
199
|
names: ["plays", "runs"],
|
|
196
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
200
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-DOWEG45Y.js")))).registerPlayCommands
|
|
197
201
|
},
|
|
198
202
|
{
|
|
199
203
|
names: ["sessions"],
|
|
200
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
204
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-OWWZJZXH.js")))).registerSessionsCommands
|
|
201
205
|
},
|
|
202
206
|
{
|
|
203
207
|
names: ["workflows"],
|
|
204
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
208
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-4H6KQRFQ.js")))).registerWorkflowCommands
|
|
205
209
|
},
|
|
206
210
|
{
|
|
207
211
|
names: ["views"],
|
|
208
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-
|
|
212
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-775AUDWQ.js")))).registerViewsCommands
|
|
209
213
|
},
|
|
210
214
|
{
|
|
211
215
|
names: ["secrets"],
|
|
212
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
216
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-SISXIXSZ.js")))).registerSecretsCommands
|
|
213
217
|
},
|
|
214
218
|
{
|
|
215
219
|
names: ["mcp"],
|
|
216
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-
|
|
220
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-L473BKLJ.js")))).registerMcpCommands
|
|
217
221
|
},
|
|
218
222
|
{
|
|
219
223
|
names: ["settings", "notifications"],
|
|
220
224
|
load: async () => {
|
|
221
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
225
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-4HPM3K4A.js")));
|
|
222
226
|
return (p) => {
|
|
223
227
|
commands.registerSettingsCommands(p);
|
|
224
228
|
commands.registerNotificationCommands(p);
|
|
@@ -227,51 +231,51 @@ var COMMAND_GROUPS = [
|
|
|
227
231
|
},
|
|
228
232
|
{
|
|
229
233
|
names: ["billing"],
|
|
230
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
234
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-Y55PR2PV.js")))).registerBillingCommands
|
|
231
235
|
},
|
|
232
236
|
{
|
|
233
237
|
names: ["monitors"],
|
|
234
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
238
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-3TF2DOFD.js")))).registerMonitorsCommands
|
|
235
239
|
},
|
|
236
240
|
{
|
|
237
241
|
names: ["org"],
|
|
238
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
242
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-YKVI2ZTI.js")))).registerOrgCommands
|
|
239
243
|
},
|
|
240
244
|
{
|
|
241
245
|
names: ["git", "projects", "deployments"],
|
|
242
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
246
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-RLHTSYRY.js")))).registerGitCommands
|
|
243
247
|
},
|
|
244
248
|
{
|
|
245
249
|
names: ["csv"],
|
|
246
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
250
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-XGGDZTQI.js")))).registerCsvCommands
|
|
247
251
|
},
|
|
248
252
|
{
|
|
249
253
|
names: ["db"],
|
|
250
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
254
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-CVPR54XK.js")))).registerDbCommands
|
|
251
255
|
},
|
|
252
256
|
{
|
|
253
257
|
names: ["feedback"],
|
|
254
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
258
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-DQPUCUXO.js")))).registerFeedbackCommands
|
|
255
259
|
},
|
|
256
260
|
{
|
|
257
261
|
names: ["enrich", "session", "backend"],
|
|
258
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
262
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-U72DO6ZF.js")))).registerDeprecatedCommands
|
|
259
263
|
},
|
|
260
264
|
{
|
|
261
265
|
names: ["update"],
|
|
262
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
266
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-QZV6DH5V.js")))).registerUpdateCommand
|
|
263
267
|
},
|
|
264
268
|
{
|
|
265
269
|
names: ["skills", "skills-auto-sync"],
|
|
266
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
270
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-ZLBFUAFR.js")))).registerSkillsCommand
|
|
267
271
|
},
|
|
268
272
|
{
|
|
269
273
|
names: ["setup", "doctor"],
|
|
270
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
274
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-BDRSNLKX.js")))).registerSetupCommands
|
|
271
275
|
},
|
|
272
276
|
{
|
|
273
277
|
names: ["quickstart"],
|
|
274
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
278
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-HD6FQXGR.js")))).registerQuickstartCommands
|
|
275
279
|
}
|
|
276
280
|
];
|
|
277
281
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -297,8 +301,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
297
301
|
function createDeferredPlayRunMaintenance(input) {
|
|
298
302
|
return async () => {
|
|
299
303
|
try {
|
|
300
|
-
const skillsVersion =
|
|
301
|
-
const compatibility = await
|
|
304
|
+
const skillsVersion = _chunkON56ISO6js.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
305
|
+
const compatibility = await _chunkPKRW76XGjs.traceCliSpan.call(void 0,
|
|
302
306
|
"cli.sdk_compatibility_deferred",
|
|
303
307
|
{
|
|
304
308
|
baseUrl: input.baseUrl,
|
|
@@ -306,24 +310,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
306
310
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
307
311
|
},
|
|
308
312
|
async () => {
|
|
309
|
-
const trusted =
|
|
313
|
+
const trusted = _chunkKE6CSCUFjs.readTrustedCleanCompatibility.call(void 0,
|
|
310
314
|
input.baseUrl,
|
|
311
315
|
"plays run",
|
|
312
316
|
skillsVersion
|
|
313
317
|
);
|
|
314
318
|
if (trusted) return { response: trusted, error: null };
|
|
315
|
-
return
|
|
319
|
+
return _chunkKE6CSCUFjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
316
320
|
command: "plays run",
|
|
317
321
|
skillsVersion,
|
|
318
322
|
persistCache: input.policy !== "off",
|
|
319
|
-
catalog:
|
|
323
|
+
catalog: _chunkCOJHT2KFjs.compatibilityCatalog.call(void 0, input.command)
|
|
320
324
|
});
|
|
321
325
|
}
|
|
322
326
|
);
|
|
323
327
|
if (compatibility.error || !compatibility.response) return;
|
|
324
328
|
const automaticUpdate = compatibility.response.auto_update;
|
|
325
329
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
326
|
-
await
|
|
330
|
+
await _chunkCOJHT2KFjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
327
331
|
compatibility.response,
|
|
328
332
|
input.baseUrl,
|
|
329
333
|
input.policy
|
|
@@ -333,7 +337,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
333
337
|
compatibility.response,
|
|
334
338
|
"skills"
|
|
335
339
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
336
|
-
await
|
|
340
|
+
await _chunkKE6CSCUFjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
337
341
|
update: skillsUpdate,
|
|
338
342
|
mode: "detached"
|
|
339
343
|
});
|
|
@@ -361,8 +365,8 @@ var MAX_SESSIONS = 20;
|
|
|
361
365
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
362
366
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
363
367
|
}
|
|
364
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
365
|
-
const explicit =
|
|
368
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkG26VJCNTjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
369
|
+
const explicit = _chunk4JQEAYN3js.helpDetailFromArgv.call(void 0, argv);
|
|
366
370
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
367
371
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
368
372
|
const path = helpSeenPath(homeDir);
|
|
@@ -459,7 +463,7 @@ function shouldReport(stdout, stderr) {
|
|
|
459
463
|
}
|
|
460
464
|
function toolName(action) {
|
|
461
465
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
462
|
-
return typeof toolId === "string" ?
|
|
466
|
+
return typeof toolId === "string" ? _chunkZY6FL4O4js.redactFailureText.call(void 0, toolId) : null;
|
|
463
467
|
}
|
|
464
468
|
function chunkText(chunk) {
|
|
465
469
|
if (typeof chunk === "string") return chunk;
|
|
@@ -490,14 +494,14 @@ function watch(stream) {
|
|
|
490
494
|
}
|
|
491
495
|
async function postCommandOutput(body) {
|
|
492
496
|
try {
|
|
493
|
-
const baseUrl =
|
|
494
|
-
const apiKey =
|
|
497
|
+
const baseUrl = _chunkON56ISO6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
498
|
+
const apiKey = _chunkON56ISO6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
495
499
|
if (!apiKey) return;
|
|
496
|
-
const agentSessionId =
|
|
500
|
+
const agentSessionId = _chunkG26VJCNTjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
497
501
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
498
502
|
method: "POST",
|
|
499
503
|
headers: {
|
|
500
|
-
...
|
|
504
|
+
..._chunkZY6FL4O4js.failureReportHeaders.call(void 0, apiKey),
|
|
501
505
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
502
506
|
},
|
|
503
507
|
body: JSON.stringify(body),
|
|
@@ -513,14 +517,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
513
517
|
const stdoutWatch = watch(streams.stdout);
|
|
514
518
|
const stderrWatch = watch(streams.stderr);
|
|
515
519
|
return async (finished) => {
|
|
516
|
-
if (
|
|
520
|
+
if (_chunkZY6FL4O4js.isFailureReportingDisabled.call(void 0, )) return;
|
|
517
521
|
const [stdout, stderr] = await Promise.all([
|
|
518
522
|
stdoutWatch.settled(),
|
|
519
523
|
stderrWatch.settled()
|
|
520
524
|
]);
|
|
521
525
|
if (!shouldReport(stdout, stderr)) return;
|
|
522
526
|
await postCommandOutput({
|
|
523
|
-
command:
|
|
527
|
+
command: _chunkZY6FL4O4js.sanitizeCommand.call(void 0, invocation.argv),
|
|
524
528
|
tool: toolName(finished.action),
|
|
525
529
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
526
530
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -551,7 +555,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
551
555
|
function printUsageErrorJson(code, message, commandPath) {
|
|
552
556
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
553
557
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
554
|
-
|
|
558
|
+
_chunkZY6FL4O4js.printJson.call(void 0, {
|
|
555
559
|
ok: false,
|
|
556
560
|
error: {
|
|
557
561
|
code,
|
|
@@ -609,7 +613,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
609
613
|
);
|
|
610
614
|
}
|
|
611
615
|
async function runPlayRunnerHealthCheck() {
|
|
612
|
-
|
|
616
|
+
_chunkON56ISO6js.resolveConfig.call(void 0, );
|
|
613
617
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
614
618
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
615
619
|
try {
|
|
@@ -639,7 +643,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
639
643
|
});
|
|
640
644
|
let exitCode = 1;
|
|
641
645
|
try {
|
|
642
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
646
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-DOWEG45Y.js")));
|
|
643
647
|
exitCode = await handlePlayRun([
|
|
644
648
|
file,
|
|
645
649
|
"--input",
|
|
@@ -679,7 +683,7 @@ function preflightErrorMessage(error) {
|
|
|
679
683
|
return error instanceof Error ? error.message : String(error);
|
|
680
684
|
}
|
|
681
685
|
async function runPreflightCheck() {
|
|
682
|
-
const baseUrl =
|
|
686
|
+
const baseUrl = _chunkON56ISO6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
683
687
|
const healthController = new AbortController();
|
|
684
688
|
const healthTimeout = setTimeout(
|
|
685
689
|
() => healthController.abort(),
|
|
@@ -696,14 +700,14 @@ async function runPreflightCheck() {
|
|
|
696
700
|
}).catch((error) => ({
|
|
697
701
|
status: "unreachable",
|
|
698
702
|
version: null,
|
|
699
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
703
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkG26VJCNTjs.connectionFailureMessage.call(void 0,
|
|
700
704
|
baseUrl,
|
|
701
705
|
error instanceof Error ? error : new Error(String(error))
|
|
702
706
|
)
|
|
703
707
|
})).finally(() => clearTimeout(healthTimeout));
|
|
704
|
-
const apiKey =
|
|
705
|
-
const http = apiKey ? new (0,
|
|
706
|
-
|
|
708
|
+
const apiKey = _chunkON56ISO6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
709
|
+
const http = apiKey ? new (0, _chunkON56ISO6js.HttpClient)(
|
|
710
|
+
_chunkON56ISO6js.resolveConfig.call(void 0, {
|
|
707
711
|
baseUrl,
|
|
708
712
|
apiKey,
|
|
709
713
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -748,7 +752,7 @@ async function runPreflightCheck() {
|
|
|
748
752
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
749
753
|
return {
|
|
750
754
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
751
|
-
cli_version:
|
|
755
|
+
cli_version: _chunkG26VJCNTjs.SDK_VERSION,
|
|
752
756
|
host: baseUrl,
|
|
753
757
|
health: {
|
|
754
758
|
status: healthResult.status,
|
|
@@ -775,7 +779,7 @@ async function runPreflightCheck() {
|
|
|
775
779
|
{
|
|
776
780
|
title: "preflight",
|
|
777
781
|
lines: [
|
|
778
|
-
`cli: ${
|
|
782
|
+
`cli: ${_chunkG26VJCNTjs.SDK_VERSION}`,
|
|
779
783
|
`host: ${baseUrl}`,
|
|
780
784
|
`health: ${healthResult.status}`,
|
|
781
785
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -802,12 +806,12 @@ function printPreflightHuman(data) {
|
|
|
802
806
|
}
|
|
803
807
|
async function newerCliCommandHint(baseUrl, command) {
|
|
804
808
|
if (!command.trim()) return null;
|
|
805
|
-
const { response, error } = await
|
|
809
|
+
const { response, error } = await _chunkKE6CSCUFjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
806
810
|
if (error || !response) return null;
|
|
807
811
|
const introduced = response.command_introduced_in;
|
|
808
812
|
if (introduced) {
|
|
809
813
|
return [
|
|
810
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
814
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkG26VJCNTjs.SDK_VERSION}.`,
|
|
811
815
|
` ${introduced.reason}`,
|
|
812
816
|
` Update with: ${response.update_command}`,
|
|
813
817
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -816,33 +820,33 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
816
820
|
if (!response.update_required) return null;
|
|
817
821
|
return [
|
|
818
822
|
response.message,
|
|
819
|
-
` Installed: ${
|
|
823
|
+
` Installed: ${_chunkG26VJCNTjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
820
824
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
821
825
|
].join("\n");
|
|
822
826
|
}
|
|
823
827
|
async function runMain(ensureTransport, onAction, suppressOutputReport) {
|
|
824
828
|
const mainStartedAt = Date.now();
|
|
825
|
-
|
|
829
|
+
_chunkZY6FL4O4js.installJsonStderrGuard.call(void 0, );
|
|
826
830
|
let rootHelpStatus = "";
|
|
827
831
|
let concurrentRunsHelpStatus = "";
|
|
828
832
|
let commandFailed = false;
|
|
829
833
|
const deferredMaintenance = { inlinePlay: null };
|
|
830
|
-
|
|
834
|
+
_chunkPKRW76XGjs.recordCliTrace.call(void 0, {
|
|
831
835
|
phase: "cli.main_start",
|
|
832
836
|
argv: process.argv.slice(2)
|
|
833
837
|
});
|
|
834
838
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
835
|
-
const progress = printStartupPhase ?
|
|
839
|
+
const progress = printStartupPhase ? _chunkJWVG7ZPXjs.createCliProgress.call(void 0, true) : null;
|
|
836
840
|
if (printStartupPhase) {
|
|
837
841
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
838
842
|
}
|
|
839
843
|
const program = new (0, _commander.Command)();
|
|
840
844
|
program.name("deepline").description(
|
|
841
845
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
842
|
-
).version(
|
|
846
|
+
).version(_chunkG26VJCNTjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
843
847
|
"--maintenance <policy>",
|
|
844
848
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
845
|
-
|
|
849
|
+
_chunkPKRW76XGjs.parseCliMaintenancePolicy,
|
|
846
850
|
"configured"
|
|
847
851
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
848
852
|
"beforeAll",
|
|
@@ -891,9 +895,9 @@ Exit codes:
|
|
|
891
895
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
892
896
|
`
|
|
893
897
|
).addHelpText("afterAll", ({ command }) => {
|
|
894
|
-
const key =
|
|
898
|
+
const key = _chunk4JQEAYN3js.commandDocKey.call(void 0, command);
|
|
895
899
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
896
|
-
const explanation =
|
|
900
|
+
const explanation = _chunk4JQEAYN3js.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
897
901
|
return detail !== "quiet" && concurrentRunsHelpStatus ? `${explanation}${concurrentRunsHelpStatus}` : explanation;
|
|
898
902
|
});
|
|
899
903
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
@@ -902,25 +906,25 @@ Exit codes:
|
|
|
902
906
|
path: compatibilityCommand,
|
|
903
907
|
args: actionCommand.processedArgs
|
|
904
908
|
});
|
|
905
|
-
const maintenance =
|
|
909
|
+
const maintenance = _chunkPKRW76XGjs.resolveCliMaintenancePolicy.call(void 0,
|
|
906
910
|
actionCommand.optsWithGlobals()
|
|
907
911
|
);
|
|
908
912
|
if (actionCommand.name() !== "version") {
|
|
909
913
|
await ensureTransport();
|
|
910
914
|
}
|
|
911
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
915
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkKE6CSCUFjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || compatibilityCommand === "settings autoupdate" || compatibilityCommand.startsWith("settings autoupdate ") || compatibilityCommand === "settings skills-sync" || isDeprecatedCommandInvocation() || compatibilityCommand === "settings feedback" || compatibilityCommand.startsWith("settings feedback ") || ["feedback send", "sessions send", "session send"].includes(
|
|
912
916
|
compatibilityCommand
|
|
913
|
-
) &&
|
|
917
|
+
) && _chunkRG34YBDEjs.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
|
|
914
918
|
return;
|
|
915
919
|
}
|
|
916
920
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
917
921
|
if (isToolExecuteCommand) {
|
|
918
|
-
|
|
922
|
+
_chunkCOJHT2KFjs.beginToolExecuteCommand.call(void 0, );
|
|
919
923
|
}
|
|
920
924
|
if (isToolExecuteCommand) {
|
|
921
|
-
const baseUrl =
|
|
922
|
-
if (maintenance !== "off")
|
|
923
|
-
|
|
925
|
+
const baseUrl = _chunkON56ISO6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
926
|
+
if (maintenance !== "off") _chunkKE6CSCUFjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
927
|
+
_chunkPKRW76XGjs.recordCliTrace.call(void 0, {
|
|
924
928
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
925
929
|
baseUrl,
|
|
926
930
|
command: compatibilityCommand
|
|
@@ -928,9 +932,9 @@ Exit codes:
|
|
|
928
932
|
return;
|
|
929
933
|
}
|
|
930
934
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
931
|
-
if (!playDryRun &&
|
|
935
|
+
if (!playDryRun && _chunk7GNZEOTHjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
932
936
|
if (maintenance !== "off") {
|
|
933
|
-
const baseUrl =
|
|
937
|
+
const baseUrl = _chunkON56ISO6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
934
938
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
935
939
|
baseUrl,
|
|
936
940
|
command: actionCommand,
|
|
@@ -939,27 +943,27 @@ Exit codes:
|
|
|
939
943
|
}
|
|
940
944
|
return;
|
|
941
945
|
}
|
|
942
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
946
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkCOJHT2KFjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
943
947
|
if (printStartupPhase) {
|
|
944
948
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
945
949
|
}
|
|
946
950
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
947
|
-
const baseUrl =
|
|
948
|
-
if (maintenance !== "off")
|
|
951
|
+
const baseUrl = _chunkON56ISO6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
952
|
+
if (maintenance !== "off") _chunkKE6CSCUFjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
949
953
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
950
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
951
|
-
const trusted = isToolExecuteCommand ? null :
|
|
954
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkON56ISO6js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
955
|
+
const trusted = isToolExecuteCommand ? null : _chunkKE6CSCUFjs.readTrustedCleanCompatibility.call(void 0,
|
|
952
956
|
baseUrl,
|
|
953
957
|
compatibilityCommand,
|
|
954
958
|
skillsVersion
|
|
955
959
|
);
|
|
956
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
960
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkKE6CSCUFjs.readFreshCleanCompatibility.call(void 0,
|
|
957
961
|
baseUrl,
|
|
958
962
|
compatibilityCommand,
|
|
959
963
|
skillsVersion
|
|
960
964
|
) !== null;
|
|
961
965
|
if (trusted) {
|
|
962
|
-
|
|
966
|
+
_chunkPKRW76XGjs.recordCliTrace.call(void 0, {
|
|
963
967
|
phase: "cli.sdk_compatibility",
|
|
964
968
|
ms: 0,
|
|
965
969
|
ok: true,
|
|
@@ -969,7 +973,7 @@ Exit codes:
|
|
|
969
973
|
source: "trusted_cache"
|
|
970
974
|
});
|
|
971
975
|
}
|
|
972
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
976
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkPKRW76XGjs.traceCliSpan.call(void 0,
|
|
973
977
|
"cli.sdk_compatibility",
|
|
974
978
|
{
|
|
975
979
|
baseUrl,
|
|
@@ -977,12 +981,12 @@ Exit codes:
|
|
|
977
981
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
978
982
|
fastDeadline
|
|
979
983
|
},
|
|
980
|
-
() =>
|
|
984
|
+
() => _chunkKE6CSCUFjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
981
985
|
command: compatibilityCommand,
|
|
982
986
|
skillsVersion,
|
|
983
987
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
984
|
-
catalog:
|
|
985
|
-
...fastDeadline ? { timeoutMs:
|
|
988
|
+
catalog: _chunkCOJHT2KFjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
989
|
+
...fastDeadline ? { timeoutMs: _chunkKE6CSCUFjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
986
990
|
})
|
|
987
991
|
);
|
|
988
992
|
if (compatibility.error) {
|
|
@@ -993,7 +997,7 @@ Exit codes:
|
|
|
993
997
|
response: null
|
|
994
998
|
};
|
|
995
999
|
}
|
|
996
|
-
const relaunched = await
|
|
1000
|
+
const relaunched = await _chunkCOJHT2KFjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
997
1001
|
compatibility.response,
|
|
998
1002
|
baseUrl,
|
|
999
1003
|
maintenance
|
|
@@ -1007,14 +1011,14 @@ Exit codes:
|
|
|
1007
1011
|
};
|
|
1008
1012
|
}
|
|
1009
1013
|
const policy = compatibility.response;
|
|
1010
|
-
const jsonOutput =
|
|
1011
|
-
|
|
1014
|
+
const jsonOutput = _chunkZY6FL4O4js.isJsonOutputMode.call(void 0, );
|
|
1015
|
+
_chunkKE6CSCUFjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1012
1016
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1013
|
-
|
|
1017
|
+
_chunkCOJHT2KFjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkKE6CSCUFjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1014
1018
|
});
|
|
1015
1019
|
const advisory = compatibility.response;
|
|
1016
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1017
|
-
|
|
1020
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkKE6CSCUFjs.isCiEnvironment.call(void 0, ) && !_chunkCOJHT2KFjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1021
|
+
_chunkZY6FL4O4js.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1018
1022
|
}
|
|
1019
1023
|
return {
|
|
1020
1024
|
shouldContinue: true,
|
|
@@ -1031,10 +1035,10 @@ Exit codes:
|
|
|
1031
1035
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1032
1036
|
await runStartupStage(
|
|
1033
1037
|
"agent skills sync",
|
|
1034
|
-
() =>
|
|
1038
|
+
() => _chunkPKRW76XGjs.traceCliSpan.call(void 0,
|
|
1035
1039
|
"cli.sdk_skills_sync",
|
|
1036
1040
|
{ baseUrl: startup.baseUrl },
|
|
1037
|
-
() =>
|
|
1041
|
+
() => _chunkKE6CSCUFjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1038
1042
|
update: skillsUpdate,
|
|
1039
1043
|
mode: "detached"
|
|
1040
1044
|
})
|
|
@@ -1048,16 +1052,16 @@ Exit codes:
|
|
|
1048
1052
|
);
|
|
1049
1053
|
const carriesFeedback = requestedCommand === "feedback" || requestedCommand === "session" || requestedCommand === "sessions";
|
|
1050
1054
|
if (carriesFeedback) suppressOutputReport();
|
|
1051
|
-
const commandRegistrationStartedAt =
|
|
1055
|
+
const commandRegistrationStartedAt = _chunkPKRW76XGjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1052
1056
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1053
1057
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1054
|
-
|
|
1058
|
+
_chunkPKRW76XGjs.recordCliTrace.call(void 0, {
|
|
1055
1059
|
phase: "cli.command_registration",
|
|
1056
1060
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1057
1061
|
});
|
|
1058
1062
|
}
|
|
1059
1063
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1060
|
-
if (
|
|
1064
|
+
if (_chunkZY6FL4O4js.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1061
1065
|
preflight.addHelpText(
|
|
1062
1066
|
"after",
|
|
1063
1067
|
`
|
|
@@ -1073,8 +1077,8 @@ Examples:
|
|
|
1073
1077
|
`
|
|
1074
1078
|
).action(async (options) => {
|
|
1075
1079
|
const data = await runPreflightCheck();
|
|
1076
|
-
if (
|
|
1077
|
-
|
|
1080
|
+
if (_chunkZY6FL4O4js.shouldEmitJson.call(void 0, options.json)) {
|
|
1081
|
+
_chunkZY6FL4O4js.printJson.call(void 0, data);
|
|
1078
1082
|
} else {
|
|
1079
1083
|
printPreflightHuman(data);
|
|
1080
1084
|
}
|
|
@@ -1099,7 +1103,7 @@ Examples:
|
|
|
1099
1103
|
).action(async (options) => {
|
|
1100
1104
|
if (options.playRunner) {
|
|
1101
1105
|
const data = await runPlayRunnerHealthCheck();
|
|
1102
|
-
|
|
1106
|
+
_chunkZY6FL4O4js.printCommandEnvelope.call(void 0, data, {
|
|
1103
1107
|
json: options.json,
|
|
1104
1108
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1105
1109
|
`
|
|
@@ -1107,15 +1111,15 @@ Examples:
|
|
|
1107
1111
|
return;
|
|
1108
1112
|
}
|
|
1109
1113
|
try {
|
|
1110
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1111
|
-
const baseUrl =
|
|
1114
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-ENBXAKQS.js")));
|
|
1115
|
+
const baseUrl = _chunkON56ISO6js.resolveBaseUrlOnly.call(void 0, );
|
|
1112
1116
|
const [{ status, data }, banner] = await Promise.all([
|
|
1113
1117
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1114
1118
|
readStatusBanner(baseUrl)
|
|
1115
1119
|
]);
|
|
1116
1120
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1117
1121
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1118
|
-
|
|
1122
|
+
_chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
|
|
1119
1123
|
{ ...data, status_banner: banner },
|
|
1120
1124
|
{
|
|
1121
1125
|
json: options.json,
|
|
@@ -1143,16 +1147,16 @@ Examples:
|
|
|
1143
1147
|
`
|
|
1144
1148
|
).action((options) => {
|
|
1145
1149
|
if (options.json) {
|
|
1146
|
-
|
|
1150
|
+
_chunkZY6FL4O4js.printCompactJson.call(void 0, { version: _chunkG26VJCNTjs.SDK_VERSION });
|
|
1147
1151
|
return;
|
|
1148
1152
|
}
|
|
1149
|
-
process.stdout.write(`deepline ${
|
|
1153
|
+
process.stdout.write(`deepline ${_chunkG26VJCNTjs.SDK_VERSION}
|
|
1150
1154
|
`);
|
|
1151
1155
|
});
|
|
1152
1156
|
if (process.argv.slice(2).length === 0) {
|
|
1153
1157
|
program.outputHelp({ error: true });
|
|
1154
1158
|
console.error("\nerror: missing command (see usage above)");
|
|
1155
|
-
|
|
1159
|
+
_chunkPKRW76XGjs.recordCliTrace.call(void 0, {
|
|
1156
1160
|
phase: "cli.main_total",
|
|
1157
1161
|
ms: Date.now() - mainStartedAt,
|
|
1158
1162
|
ok: false,
|
|
@@ -1164,16 +1168,16 @@ Examples:
|
|
|
1164
1168
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1165
1169
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1166
1170
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1167
|
-
if (!
|
|
1168
|
-
const baseUrl =
|
|
1171
|
+
if (!_chunkZY6FL4O4js.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1172
|
+
const baseUrl = _chunkON56ISO6js.autoDetectBaseUrl.call(void 0, );
|
|
1169
1173
|
await ensureTransport();
|
|
1170
1174
|
const versionHint = await newerCliCommandHint(
|
|
1171
1175
|
baseUrl,
|
|
1172
1176
|
requestedTopLevelCommand
|
|
1173
1177
|
);
|
|
1174
|
-
if (
|
|
1178
|
+
if (_chunkZY6FL4O4js.isJsonOutputMode.call(void 0, )) {
|
|
1175
1179
|
if (versionHint) {
|
|
1176
|
-
|
|
1180
|
+
_chunkZY6FL4O4js.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1177
1181
|
}
|
|
1178
1182
|
printUsageErrorJson(
|
|
1179
1183
|
"commander.unknownCommand",
|
|
@@ -1195,26 +1199,26 @@ Examples:
|
|
|
1195
1199
|
const helpArgs = process.argv.slice(2);
|
|
1196
1200
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1197
1201
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1198
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1199
|
-
rootHelpStatus = `Version: ${
|
|
1202
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-ENBXAKQS.js")));
|
|
1203
|
+
rootHelpStatus = `Version: ${_chunkG26VJCNTjs.SDK_VERSION}
|
|
1200
1204
|
${await authStatusLine()}
|
|
1201
1205
|
`;
|
|
1202
1206
|
}
|
|
1203
1207
|
if ((helpArgs.includes("--help") || helpArgs.includes("-h")) && helpPositionals.length >= 2) {
|
|
1204
|
-
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-
|
|
1208
|
+
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-TOMLCMV7.js")));
|
|
1205
1209
|
if (CONCURRENT_RUNS_HELP_COMMANDS.has(helpPositionals.slice(0, 2).join(" "))) {
|
|
1206
1210
|
await ensureTransport();
|
|
1207
1211
|
concurrentRunsHelpStatus = await read();
|
|
1208
1212
|
}
|
|
1209
1213
|
}
|
|
1210
1214
|
await program.parseAsync(process.argv);
|
|
1211
|
-
|
|
1215
|
+
_chunkPKRW76XGjs.recordCliTrace.call(void 0, {
|
|
1212
1216
|
phase: "cli.main_total",
|
|
1213
1217
|
ms: Date.now() - mainStartedAt,
|
|
1214
1218
|
ok: true
|
|
1215
1219
|
});
|
|
1216
1220
|
if (!carriesFeedback) {
|
|
1217
|
-
await
|
|
1221
|
+
await _chunkZY6FL4O4js.maybeReportSdkCliFailure.call(void 0, {
|
|
1218
1222
|
argv: process.argv.slice(2),
|
|
1219
1223
|
startedAtMs: mainStartedAt,
|
|
1220
1224
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1223,14 +1227,14 @@ ${await authStatusLine()}
|
|
|
1223
1227
|
} catch (error) {
|
|
1224
1228
|
commandFailed = true;
|
|
1225
1229
|
const commanderError = asCommanderError(error);
|
|
1226
|
-
|
|
1230
|
+
_chunkPKRW76XGjs.recordCliTrace.call(void 0, {
|
|
1227
1231
|
phase: "cli.main_total",
|
|
1228
1232
|
ms: Date.now() - mainStartedAt,
|
|
1229
1233
|
ok: false,
|
|
1230
1234
|
error: error instanceof Error ? error.message : String(error)
|
|
1231
1235
|
});
|
|
1232
1236
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1233
|
-
const wantsJson =
|
|
1237
|
+
const wantsJson = _chunkZY6FL4O4js.isJsonOutputMode.call(void 0, );
|
|
1234
1238
|
if (commanderError) {
|
|
1235
1239
|
const grammarError = [
|
|
1236
1240
|
"commander.unknownCommand",
|
|
@@ -1241,12 +1245,12 @@ ${await authStatusLine()}
|
|
|
1241
1245
|
if (grammarError) {
|
|
1242
1246
|
await ensureTransport();
|
|
1243
1247
|
const versionHint = await newerCliCommandHint(
|
|
1244
|
-
|
|
1248
|
+
_chunkON56ISO6js.autoDetectBaseUrl.call(void 0, ),
|
|
1245
1249
|
commandPath
|
|
1246
1250
|
);
|
|
1247
1251
|
if (wantsJson) {
|
|
1248
1252
|
if (versionHint) {
|
|
1249
|
-
|
|
1253
|
+
_chunkZY6FL4O4js.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1250
1254
|
}
|
|
1251
1255
|
} else {
|
|
1252
1256
|
if (versionHint) console.error(versionHint);
|
|
@@ -1266,43 +1270,43 @@ ${await authStatusLine()}
|
|
|
1266
1270
|
return;
|
|
1267
1271
|
} else if (wantsJson) {
|
|
1268
1272
|
if (error instanceof _chunk2GJZLIKWjs.AuthError) {
|
|
1269
|
-
|
|
1273
|
+
_chunkZY6FL4O4js.addJsonNotice.call(void 0, {
|
|
1270
1274
|
code: "auth_required",
|
|
1271
1275
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1272
1276
|
});
|
|
1273
1277
|
}
|
|
1274
|
-
const providerConcurrency =
|
|
1278
|
+
const providerConcurrency = _chunkZY6FL4O4js.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1275
1279
|
if (providerConcurrency) {
|
|
1276
|
-
|
|
1280
|
+
_chunkZY6FL4O4js.addJsonNotice.call(void 0, {
|
|
1277
1281
|
code: "provider_concurrency",
|
|
1278
1282
|
message: providerConcurrency
|
|
1279
1283
|
});
|
|
1280
1284
|
}
|
|
1281
|
-
const payload =
|
|
1282
|
-
|
|
1285
|
+
const payload = _chunkZY6FL4O4js.errorToJsonPayload.call(void 0, error);
|
|
1286
|
+
_chunkZY6FL4O4js.printJson.call(void 0, {
|
|
1283
1287
|
...payload,
|
|
1284
1288
|
// The envelope names the code the process exits with, so a caller
|
|
1285
1289
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1286
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1290
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkZY6FL4O4js.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1287
1291
|
...error instanceof _chunk2GJZLIKWjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1288
1292
|
});
|
|
1289
1293
|
} else if (error instanceof Error) {
|
|
1290
1294
|
console.error(`Error: ${error.message}`);
|
|
1291
|
-
const toolDiagnostic =
|
|
1295
|
+
const toolDiagnostic = _chunkZY6FL4O4js.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1292
1296
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1293
1297
|
if (error instanceof _chunk2GJZLIKWjs.AuthError) {
|
|
1294
1298
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1295
1299
|
}
|
|
1296
|
-
const providerConcurrency =
|
|
1300
|
+
const providerConcurrency = _chunkZY6FL4O4js.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1297
1301
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1298
1302
|
} else {
|
|
1299
1303
|
console.error(`Error: ${String(error)}`);
|
|
1300
1304
|
}
|
|
1301
1305
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1302
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1306
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkZY6FL4O4js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1303
1307
|
process.exitCode = failureExitCode;
|
|
1304
1308
|
if (!carriesFeedback) {
|
|
1305
|
-
await
|
|
1309
|
+
await _chunkZY6FL4O4js.maybeReportSdkCliFailure.call(void 0, {
|
|
1306
1310
|
argv: process.argv.slice(2),
|
|
1307
1311
|
startedAtMs: mainStartedAt,
|
|
1308
1312
|
exitCode: failureExitCode,
|
|
@@ -1310,13 +1314,13 @@ ${await authStatusLine()}
|
|
|
1310
1314
|
});
|
|
1311
1315
|
}
|
|
1312
1316
|
} finally {
|
|
1313
|
-
|
|
1317
|
+
_chunkCOJHT2KFjs.finishToolExecuteCommand.call(void 0, );
|
|
1314
1318
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1315
1319
|
deferredMaintenance.inlinePlay = null;
|
|
1316
1320
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1317
1321
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1318
1322
|
}
|
|
1319
|
-
await
|
|
1323
|
+
await _chunkCOJHT2KFjs.runDeferredAutoUpdate.call(void 0, );
|
|
1320
1324
|
}
|
|
1321
1325
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1322
1326
|
}
|
|
@@ -1324,7 +1328,7 @@ async function main() {
|
|
|
1324
1328
|
let disposeTransport;
|
|
1325
1329
|
const ensureTransport = async () => {
|
|
1326
1330
|
if (disposeTransport) return;
|
|
1327
|
-
const transportStartedAt =
|
|
1331
|
+
const transportStartedAt = _chunkPKRW76XGjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1328
1332
|
const hasProxy = [
|
|
1329
1333
|
"HTTP_PROXY",
|
|
1330
1334
|
"http_proxy",
|
|
@@ -1336,7 +1340,7 @@ async function main() {
|
|
|
1336
1340
|
disposeTransport = configureCliTransport();
|
|
1337
1341
|
}
|
|
1338
1342
|
if (transportStartedAt !== void 0) {
|
|
1339
|
-
|
|
1343
|
+
_chunkPKRW76XGjs.recordCliTrace.call(void 0, {
|
|
1340
1344
|
phase: "cli.transport_setup",
|
|
1341
1345
|
ms: performance.now() - transportStartedAt
|
|
1342
1346
|
});
|
|
@@ -1359,9 +1363,9 @@ async function main() {
|
|
|
1359
1363
|
skipOutputReport = true;
|
|
1360
1364
|
}
|
|
1361
1365
|
);
|
|
1362
|
-
const silentFailure =
|
|
1366
|
+
const silentFailure = _chunkZY6FL4O4js.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1363
1367
|
if (silentFailure) {
|
|
1364
|
-
|
|
1368
|
+
_chunkZY6FL4O4js.printJson.call(void 0, {
|
|
1365
1369
|
ok: false,
|
|
1366
1370
|
exitCode: Number(process.exitCode),
|
|
1367
1371
|
error: { code: "CLI_ERROR", message: silentFailure }
|