deepline 0.3.541 → 0.3.543
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 +106 -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 +17 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/calendar-delegation.ts +132 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/tool-connection.ts +13 -0
- 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/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 +42 -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 +46 -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 +226 -144
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +1 -1
- 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-WJXA7XGM.mjs → auth-ITAELTOA.mjs} +5 -5
- package/dist/cli/auth-S6B5WUU5.js +43 -0
- package/dist/cli/{billing-34IV5DSV.js → billing-33XVFDUJ.js} +101 -101
- package/dist/cli/{billing-SHS4HMWT.mjs → billing-WZ7RVZW4.mjs} +12 -12
- package/dist/cli/{chunk-UKO6POLZ.js → chunk-23D224GI.js} +37 -17
- package/dist/cli/{chunk-DF7ARQRB.mjs → chunk-274WKLSY.mjs} +2 -2
- 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-FVZ5Y5L6.js → chunk-2KTGZKRE.js} +18 -18
- package/dist/cli/{chunk-6TZEDCN7.js → chunk-2LNTKICO.js} +3 -3
- package/dist/cli/{chunk-FYQWTENQ.js → chunk-2NCJQEZH.js} +53 -53
- package/dist/cli/{chunk-CNBPATLI.js → chunk-3JZXU5OB.js} +5 -5
- package/dist/cli/{chunk-323I5KQ5.js → chunk-46BEBZ3M.js} +497 -328
- package/dist/cli/{chunk-V4EYJKGJ.js → chunk-4JQEAYN3.js} +156 -17
- package/dist/cli/{chunk-XO2SGONT.mjs → chunk-4SKDSSPU.mjs} +2 -2
- package/dist/cli/{chunk-53QZ24DP.mjs → chunk-52YK3EII.mjs} +2 -2
- package/dist/cli/{chunk-S7NKIEHL.js → chunk-5MN3BKNB.js} +16 -16
- package/dist/cli/{chunk-XTR32PMA.mjs → chunk-5VIPTLRX.mjs} +1 -1
- package/dist/cli/{chunk-OLH2PHMC.mjs → chunk-6P7TGCHQ.mjs} +1 -1
- package/dist/cli/{chunk-QI76LGE3.mjs → chunk-6SJZMMD5.mjs} +37 -190
- package/dist/cli/chunk-7AUQTNLB.mjs +455 -0
- package/dist/cli/{chunk-GLINYHY7.mjs → chunk-AACKPOGA.mjs} +1 -1
- package/dist/cli/{chunk-Q66ADD4O.js → chunk-BGAUADV4.js} +41 -41
- package/dist/cli/{chunk-KQSTV4MW.js → chunk-BLYW6FFB.js} +60 -18
- package/dist/cli/{chunk-F3TLGM2U.js → chunk-C35NLLSA.js} +5 -5
- package/dist/cli/{chunk-LRPFCB2P.mjs → chunk-D6YAU3CF.mjs} +182 -13
- package/dist/cli/{chunk-FRPJSFNL.mjs → chunk-DH43ECTN.mjs} +7 -3
- package/dist/cli/{chunk-IZXMX65M.js → chunk-DI3GL3T6.js} +316 -469
- package/dist/cli/{chunk-OK4JMVTM.js → chunk-DUGTPVT7.js} +7 -7
- package/dist/cli/{chunk-UNDLNT3V.js → chunk-ECWOIXAV.js} +1 -1
- package/dist/cli/{chunk-KIYETQ6K.js → chunk-EHUG6EUT.js} +26 -26
- package/dist/cli/chunk-F6VSQ5LN.js +455 -0
- package/dist/cli/{chunk-JZNKEHXQ.mjs → chunk-FNW2SGPD.mjs} +2 -2
- package/dist/cli/{chunk-M6XIKHBS.js → chunk-GRCFX2EG.js} +4 -4
- package/dist/cli/{chunk-OVX3Q5Q3.mjs → chunk-GWNYLIF7.mjs} +1 -1
- package/dist/cli/{chunk-FTKX7OGB.mjs → chunk-HKJ26NRN.mjs} +5 -5
- package/dist/cli/{chunk-L2VKAASU.mjs → chunk-HXIR3VQL.mjs} +21 -0
- package/dist/cli/{chunk-POZPEDW7.js → chunk-J2F6F5GL.js} +7 -7
- package/dist/cli/{chunk-7AUQSK24.mjs → chunk-JXG7HWBA.mjs} +1 -1
- package/dist/cli/{chunk-Z2XA6YU4.mjs → chunk-LX35AXTN.mjs} +1 -0
- package/dist/cli/{chunk-WIV3E6Y7.js → chunk-MCBUWK5K.js} +22 -22
- package/dist/cli/{chunk-2TAGAPLL.js → chunk-NHKP2NSU.js} +2 -2
- package/dist/cli/{chunk-FANIRW74.mjs → chunk-NIPLY25A.mjs} +0 -2
- package/dist/cli/{chunk-UXXFCOE3.js → chunk-NLENABRU.js} +6 -6
- package/dist/cli/{chunk-DHC7EGI7.mjs → chunk-NR3O56FT.mjs} +5 -5
- package/dist/cli/{chunk-MPYM6TUO.js → chunk-O2KLWUNI.js} +44 -44
- package/dist/cli/{chunk-BMNLD63A.mjs → chunk-OAFKUHN5.mjs} +4 -4
- package/dist/cli/{chunk-RYYGNUNO.mjs → chunk-OELJKQOL.mjs} +24 -4
- package/dist/cli/{chunk-ZD673XAL.js → chunk-PX7XAVUC.js} +24 -20
- package/dist/cli/{chunk-FOCNY4GV.js → chunk-QFRMVI4S.js} +3 -3
- package/dist/cli/{chunk-AU7ZKXW5.mjs → chunk-R57UCXQG.mjs} +1 -1
- package/dist/cli/{chunk-IPVRMYWT.js → chunk-RKF263LR.js} +5 -5
- package/dist/cli/{chunk-CQDQNZGH.js → chunk-SL6MYJYM.js} +1 -0
- package/dist/cli/{chunk-BUCTWJBM.js → chunk-STXG2LFC.js} +2 -2
- package/dist/cli/{chunk-ECPCZVDM.mjs → chunk-SU4K4SUU.mjs} +1 -1
- package/dist/cli/{chunk-ABDXKELH.mjs → chunk-SYOPHFKB.mjs} +6 -6
- package/dist/cli/{chunk-H74CLEMB.mjs → chunk-SZNJENGT.mjs} +3 -3
- package/dist/cli/{chunk-5N4ENMYE.js → chunk-TBCNL2T5.js} +1 -1
- package/dist/cli/{chunk-E4CABWXL.js → chunk-TI6DTURF.js} +22 -1
- package/dist/cli/{chunk-C2LYJ3EX.js → chunk-UJ6GOV7K.js} +13 -13
- package/dist/cli/{chunk-GWHA4DAC.js → chunk-UV4RU2TE.js} +0 -2
- package/dist/cli/{chunk-6PJAC3P5.mjs → chunk-VSJEOSYL.mjs} +1 -1
- package/dist/cli/{chunk-NB4AIXEA.mjs → chunk-W2OPPSAZ.mjs} +3 -3
- package/dist/cli/{chunk-5LNWLEO3.mjs → chunk-XBM3KABD.mjs} +3 -3
- package/dist/cli/{chunk-VMIIUMAN.mjs → chunk-XFPVFWZR.mjs} +1 -1
- package/dist/cli/{chunk-UC5QFQGC.mjs → chunk-XSN6BAZT.mjs} +5 -5
- package/dist/cli/{chunk-IDDKNMFX.mjs → chunk-Y3T5GWYK.mjs} +153 -14
- package/dist/cli/{chunk-S6FF7Q5P.js → chunk-YE3T73BV.js} +10 -10
- package/dist/cli/{chunk-CY5LW6DW.js → chunk-YJYKZ2U3.js} +2 -2
- package/dist/cli/{chunk-F6QV42MC.mjs → chunk-Z7SXGOIQ.mjs} +1 -1
- package/dist/cli/{chunk-ZL2DER5D.mjs → chunk-ZRT2PNYY.mjs} +1 -1
- package/dist/cli/{chunk-WZMG2M65.mjs → chunk-ZSPBJB7I.mjs} +4 -4
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/concurrent-runs-help-E4OYD3DS.js +21 -0
- package/dist/cli/{concurrent-runs-help-ZJ77SAEU.mjs → concurrent-runs-help-Z6ODNL4E.mjs} +7 -7
- package/dist/cli/{csv-PX7F5YJN.mjs → csv-5QW2HPHT.mjs} +4 -4
- package/dist/cli/{csv-MJLIZZOR.js → csv-SSOFTXHU.js} +13 -13
- package/dist/cli/{db-BNCNAY4G.js → db-4LK5AJNO.js} +29 -29
- package/dist/cli/{db-KPKGTHPA.mjs → db-K2JMR6EM.mjs} +8 -8
- package/dist/cli/describe-AC6PLEFP.js +50 -0
- package/dist/cli/describe-AXHQZHTT.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-YNOFR7T2.js → executions-AATJQQAQ.js} +10 -10
- package/dist/cli/{executions-NMQY4GEY.mjs → executions-FY2XTX2W.mjs} +8 -8
- package/dist/cli/{feedback-LWYEO5LL.mjs → feedback-MKBPRGS6.mjs} +6 -6
- package/dist/cli/{feedback-RCP5DPO6.js → feedback-QPVJER75.js} +14 -14
- package/dist/cli/{git-3O4PFP3Q.mjs → git-AGRFZR3K.mjs} +5 -5
- package/dist/cli/git-RUYFQEJX.js +25 -0
- package/dist/cli/index.js +150 -146
- package/dist/cli/index.mjs +49 -45
- package/dist/cli/integrations-OUQ6U33M.mjs +98 -0
- package/dist/cli/integrations-R6OUFZXI.js +98 -0
- package/dist/cli/{legacy-noops-KFP674JT.mjs → legacy-noops-DVL2RRKL.mjs} +6 -6
- package/dist/cli/{legacy-noops-ZPZRG366.js → legacy-noops-H7INM2QN.js} +9 -9
- package/dist/cli/{mcp-OCYUXQ6L.mjs → mcp-2Z2YVOLK.mjs} +72 -15
- package/dist/cli/{mcp-HCXDW6PL.js → mcp-33F7D7WI.js} +89 -32
- package/dist/cli/{monitors-7Q7YT22Y.js → monitors-KDUJHAKJ.js} +102 -102
- package/dist/cli/{monitors-V5KJIJJE.mjs → monitors-NZD2WIKK.mjs} +9 -9
- package/dist/cli/{org-S37K6QYH.js → org-4PQGHLEB.js} +164 -88
- package/dist/cli/{org-C3QLHX7U.mjs → org-EJW45RUA.mjs} +84 -8
- package/dist/cli/{play-MXQ2DKML.mjs → play-3CM5RT5J.mjs} +44 -25
- package/dist/cli/{play-MLREAYHJ.js → play-MLHMQL4G.js} +374 -355
- package/dist/cli/{providers-FDJ4ZOST.mjs → providers-BHYBJI4R.mjs} +10 -9
- package/dist/cli/{providers-PPDWY7DH.js → providers-YBJG7277.js} +13 -12
- package/dist/cli/{quickstart-2Z57AMB7.mjs → quickstart-LL3MR562.mjs} +4 -4
- package/dist/cli/{quickstart-BOWQM7S7.js → quickstart-O7L2NNGJ.js} +6 -6
- package/dist/cli/{run-66HXNJNV.js → run-HJ2AR6CM.js} +49 -48
- package/dist/cli/{run-5RNJGPQ2.mjs → run-OK545H5Q.mjs} +28 -27
- package/dist/cli/search-UUNS6BCC.js +32 -0
- package/dist/cli/{search-7G4FYQYO.mjs → search-Z5ZKMRTX.mjs} +9 -9
- package/dist/cli/{search-output-6K4FHCVI.mjs → search-output-Q5VHNUWG.mjs} +4 -4
- package/dist/cli/{search-output-L6ICQDBL.js → search-output-SVW4DETG.js} +6 -6
- package/dist/cli/{secrets-PWFJKF7G.js → secrets-ENQWMCB5.js} +17 -17
- package/dist/cli/{secrets-FTQPCU7O.mjs → secrets-QIKIEFWB.mjs} +8 -8
- package/dist/cli/{sessions-YSSAAQVJ.mjs → sessions-AETO22RF.mjs} +6 -6
- package/dist/cli/sessions-FNSUDERA.js +22 -0
- package/dist/cli/{settings-KN7GNZ5J.mjs → settings-G5RGRPFV.mjs} +16 -16
- package/dist/cli/{settings-CZEMF2WD.js → settings-OFLIFTMZ.js} +89 -89
- package/dist/cli/{setup-5WLHGH57.mjs → setup-G4N3X6KG.mjs} +9 -9
- package/dist/cli/{setup-RW4X6DX4.js → setup-QW7Y62XD.js} +49 -49
- package/dist/cli/skills-3IXIY2IV.js +36 -0
- package/dist/cli/{skills-DLVI7IZK.mjs → skills-QRFQGHNA.mjs} +7 -7
- package/dist/cli/{tools-JVYQF7P3.mjs → tools-52BH7UTF.mjs} +20 -19
- package/dist/cli/tools-MYBUMPKH.js +57 -0
- package/dist/cli/update-GT7574UU.js +34 -0
- package/dist/cli/{update-XKLXU7YS.mjs → update-SDGZLAGL.mjs} +9 -9
- package/dist/cli/{views-QRRCWP6B.mjs → views-3BIJFJMQ.mjs} +8 -8
- package/dist/cli/{views-YNUYFS3S.js → views-5QKAWYPI.js} +23 -23
- package/dist/cli/{workflow-YUKADKCJ.js → workflow-G67RPWVY.js} +19 -19
- package/dist/cli/{workflow-KYFMA4LM.mjs → workflow-QAK773FR.mjs} +9 -9
- package/dist/{client-B1fixtK1.d.ts → client-D1ga52xq.d.ts} +1 -1
- package/dist/{client-CE4QBVbp.d.mts → client-bd4QQIXo.d.mts} +1 -1
- package/dist/{client-core-C-3FVlVq.d.ts → client-core-B6eMVx8h.d.ts} +335 -4
- package/dist/{client-core-2BkNBgrx.d.mts → client-core-CqfWNf2Q.d.mts} +335 -4
- package/dist/{compiler-manifest-Cys06iYg.d.ts → compiler-manifest-BWFtsQIC.d.mts} +21 -0
- package/dist/{compiler-manifest-Cys06iYg.d.mts → 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-V76O674K.js +0 -43
- package/dist/cli/concurrent-runs-help-MFEPUP6Y.js +0 -21
- package/dist/cli/describe-5OUJA5TH.mjs +0 -49
- package/dist/cli/describe-7MF5AHIU.js +0 -49
- package/dist/cli/git-WLQ3BS6K.js +0 -25
- package/dist/cli/search-LTUIIV6W.js +0 -32
- package/dist/cli/sessions-2IVFGTPA.js +0 -22
- package/dist/cli/skills-WT42AZVH.js +0 -36
- package/dist/cli/tools-D6STYBQG.js +0 -56
- package/dist/cli/update-XTUKBC3J.js +0 -34
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
concurrentRunsLine
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-XBM3KABD.mjs";
|
|
4
|
+
import "./chunk-W2OPPSAZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DeeplineClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4SKDSSPU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
iterateCursorPages,
|
|
10
10
|
requireBillingIdempotencyKey
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-D6YAU3CF.mjs";
|
|
12
|
+
import "./chunk-HXIR3VQL.mjs";
|
|
13
|
+
import "./chunk-LX35AXTN.mjs";
|
|
14
14
|
import "./chunk-PSX3WHIH.mjs";
|
|
15
15
|
import "./chunk-UBKA33KY.mjs";
|
|
16
16
|
import {
|
|
17
17
|
PLAY_RUNTIME_PRICING_NOTE
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-Y3T5GWYK.mjs";
|
|
19
19
|
import {
|
|
20
20
|
PRICING_PAGE_NOTE
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NIPLY25A.mjs";
|
|
22
22
|
import "./chunk-5LUF4LAR.mjs";
|
|
23
23
|
import {
|
|
24
24
|
PLAY_SANDBOX_SIZE_INPUTS
|
|
@@ -29,9 +29,9 @@ import {
|
|
|
29
29
|
openInBrowser,
|
|
30
30
|
printCommandEnvelope,
|
|
31
31
|
shouldEmitJson
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-DH43ECTN.mjs";
|
|
33
|
+
import "./chunk-R57UCXQG.mjs";
|
|
34
|
+
import "./chunk-JXG7HWBA.mjs";
|
|
35
35
|
import {
|
|
36
36
|
AuthError,
|
|
37
37
|
ConfigError
|
|
@@ -40,7 +40,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
40
40
|
import {
|
|
41
41
|
DeeplineError
|
|
42
42
|
} from "./chunk-JL2OTMSG.mjs";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-ZRT2PNYY.mjs";
|
|
44
44
|
import "./chunk-WZYKRD7T.mjs";
|
|
45
45
|
import "./chunk-KRD6H754.mjs";
|
|
46
46
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk2JHYYB3Fjs = require('./chunk-2JHYYB3F.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk46BEBZ3Mjs = require('./chunk-46BEBZ3M.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkSL6MYJYMjs = require('./chunk-SL6MYJYM.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkPX7XAVUCjs = require('./chunk-PX7XAVUC.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
|
|
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
|
|
|
581
581
|
return raw;
|
|
582
582
|
}
|
|
583
583
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
584
|
-
const selection =
|
|
584
|
+
const selection = _chunkPX7XAVUCjs.parseJsonFields.call(void 0, args, "run");
|
|
585
585
|
args = selection.args;
|
|
586
586
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
587
587
|
let filePath = null;
|
|
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
593
593
|
let revisionSelector = null;
|
|
594
594
|
const watch = !args.includes("--no-wait");
|
|
595
595
|
const dryRun = args.includes("--dry-run");
|
|
596
|
-
let jsonOutput = dryRun ?
|
|
596
|
+
let jsonOutput = dryRun ? _chunkPX7XAVUCjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkPX7XAVUCjs.argsWantJson.call(void 0, args);
|
|
597
597
|
const fullJson = args.includes("--full");
|
|
598
598
|
const force = args.includes("--force") || args.includes("--from-start");
|
|
599
599
|
const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
|
|
@@ -604,6 +604,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
604
604
|
let waitTimeoutMs = null;
|
|
605
605
|
let maxConcurrentExternalCalls = null;
|
|
606
606
|
let maxConcurrentRows = null;
|
|
607
|
+
let cacheReuseWindowSeconds = null;
|
|
607
608
|
let profile = null;
|
|
608
609
|
let fixtureBehavior = null;
|
|
609
610
|
let runIdFile = null;
|
|
@@ -656,7 +657,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
656
657
|
"--log-level requires one of: debug, info, warn, error."
|
|
657
658
|
);
|
|
658
659
|
}
|
|
659
|
-
const parsed =
|
|
660
|
+
const parsed = _chunk46BEBZ3Mjs.parseLogLevel.call(void 0, value);
|
|
660
661
|
if (!parsed) {
|
|
661
662
|
throw new Error(
|
|
662
663
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -693,7 +694,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
693
694
|
throw new Error("--profile requires an execution profile id.");
|
|
694
695
|
}
|
|
695
696
|
profile = value.trim();
|
|
696
|
-
|
|
697
|
+
_chunk2JHYYB3Fjs.resolveEnabledExecutionProfile.call(void 0, profile);
|
|
697
698
|
index += 1;
|
|
698
699
|
continue;
|
|
699
700
|
}
|
|
@@ -732,6 +733,20 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
732
733
|
index += 1;
|
|
733
734
|
continue;
|
|
734
735
|
}
|
|
736
|
+
if (arg === "--cache-reuse-window-seconds") {
|
|
737
|
+
const value = args[index + 1];
|
|
738
|
+
if (!value || !/^[1-9]\d*$/.test(value)) {
|
|
739
|
+
throw new Error(
|
|
740
|
+
"--cache-reuse-window-seconds requires a positive whole number."
|
|
741
|
+
);
|
|
742
|
+
}
|
|
743
|
+
cacheReuseWindowSeconds = parsePositiveInteger(
|
|
744
|
+
value,
|
|
745
|
+
"--cache-reuse-window-seconds"
|
|
746
|
+
);
|
|
747
|
+
index += 1;
|
|
748
|
+
continue;
|
|
749
|
+
}
|
|
735
750
|
if (arg === "--fixture-behavior") {
|
|
736
751
|
const value = args[index + 1];
|
|
737
752
|
if (!value) {
|
|
@@ -780,12 +795,12 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
780
795
|
}
|
|
781
796
|
if (arg === "--debug" && args[index + 1] && !args[index + 1].startsWith("--")) {
|
|
782
797
|
input ??= {};
|
|
783
|
-
|
|
798
|
+
_chunkSL6MYJYMjs.setDottedInputValue.call(void 0, input, "debug", parseInputFlagValue(args[++index]));
|
|
784
799
|
continue;
|
|
785
800
|
}
|
|
786
801
|
if (arg.startsWith("--debug=")) {
|
|
787
802
|
input ??= {};
|
|
788
|
-
|
|
803
|
+
_chunkSL6MYJYMjs.setDottedInputValue.call(void 0,
|
|
789
804
|
input,
|
|
790
805
|
"debug",
|
|
791
806
|
parseInputFlagValue(arg.slice("--debug=".length))
|
|
@@ -813,7 +828,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
813
828
|
if (arg.startsWith("--")) {
|
|
814
829
|
const { path, value } = parseInputFieldFlag(arg, args[index + 1]);
|
|
815
830
|
input ??= {};
|
|
816
|
-
|
|
831
|
+
_chunkSL6MYJYMjs.setDottedInputValue.call(void 0, input, path, parseInputFlagValue(value));
|
|
817
832
|
if (!arg.includes("=")) {
|
|
818
833
|
index += 1;
|
|
819
834
|
}
|
|
@@ -877,6 +892,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
877
892
|
waitTimeoutMs,
|
|
878
893
|
force,
|
|
879
894
|
forceToolRefresh,
|
|
895
|
+
cacheReuseWindowSeconds,
|
|
880
896
|
maxConcurrentExternalCalls,
|
|
881
897
|
maxConcurrentRows,
|
|
882
898
|
maxCredits: null,
|
|
@@ -902,7 +918,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
902
918
|
let initialInput = options.input === void 0 ? null : parseJsonInput(options.input);
|
|
903
919
|
if (typeof options.debug === "string") {
|
|
904
920
|
initialInput ??= {};
|
|
905
|
-
|
|
921
|
+
_chunkSL6MYJYMjs.setDottedInputValue.call(void 0,
|
|
906
922
|
initialInput,
|
|
907
923
|
"debug",
|
|
908
924
|
parseInputFlagValue(options.debug)
|
|
@@ -939,7 +955,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
939
955
|
if (dryRun && resolvedTarget.kind !== "file")
|
|
940
956
|
throw new Error("--dry-run currently requires a local Play file.");
|
|
941
957
|
const profile = _nullishCoalesce(_optionalChain([stringOption, 'call', _5 => _5(options.profile, "--profile"), 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]), () => ( base.profile));
|
|
942
|
-
if (profile !== null)
|
|
958
|
+
if (profile !== null) _chunk2JHYYB3Fjs.resolveEnabledExecutionProfile.call(void 0, profile);
|
|
943
959
|
const countOption = (value, flag) => {
|
|
944
960
|
if (value === void 0) return void 0;
|
|
945
961
|
if (!/^[1-9]\d*$/.test(value))
|
|
@@ -974,7 +990,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
974
990
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
975
991
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
976
992
|
);
|
|
977
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
993
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk46BEBZ3Mjs.parseLogLevel.call(void 0, options.logLevel);
|
|
978
994
|
if (!logLevel)
|
|
979
995
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
980
996
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -988,13 +1004,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
988
1004
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
989
1005
|
logLevel = "debug";
|
|
990
1006
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
991
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
992
|
-
[...fullJson ? ["--full"] : [], ...
|
|
1007
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkPX7XAVUCjs.parseJsonFields.call(void 0,
|
|
1008
|
+
[...fullJson ? ["--full"] : [], ..._chunkPX7XAVUCjs.jsonFieldArgs.call(void 0, options.json)],
|
|
993
1009
|
"run"
|
|
994
1010
|
).fields;
|
|
995
1011
|
const watch = options.wait === false ? false : base.watch;
|
|
996
1012
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
997
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
1013
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkPX7XAVUCjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
998
1014
|
const verboseLogs = Boolean(
|
|
999
1015
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1000
1016
|
);
|
|
@@ -1023,6 +1039,10 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
1023
1039
|
// as before, and an unset option inherits the base run's choice.
|
|
1024
1040
|
force: _nullishCoalesce(_nullishCoalesce(options.force, () => ( (options.fromStart || void 0))), () => ( base.force)),
|
|
1025
1041
|
forceToolRefresh: _nullishCoalesce(_nullishCoalesce(options.forceToolRefresh, () => ( (options.refreshCache || void 0))), () => ( base.forceToolRefresh)),
|
|
1042
|
+
cacheReuseWindowSeconds: _nullishCoalesce(countOption(
|
|
1043
|
+
options.cacheReuseWindowSeconds,
|
|
1044
|
+
"--cache-reuse-window-seconds"
|
|
1045
|
+
), () => ( base.cacheReuseWindowSeconds)),
|
|
1026
1046
|
maxConcurrentExternalCalls: externalCalls,
|
|
1027
1047
|
maxConcurrentRows: rows,
|
|
1028
1048
|
maxCredits,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D6YAU3CF.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-R57UCXQG.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isToolConnectionName
|
|
3
|
+
} from "./chunk-HXIR3VQL.mjs";
|
|
4
|
+
|
|
1
5
|
// ../plays/script-entry.ts
|
|
2
6
|
import { basename } from "path";
|
|
3
7
|
|
|
@@ -238,22 +242,60 @@ function typeArgument(call) {
|
|
|
238
242
|
const instantiation = call.typeArguments ?? call.typeParameters;
|
|
239
243
|
return isAstNode(instantiation) && Array.isArray(instantiation.params) ? instantiation.params.find(isAstNode) ?? null : null;
|
|
240
244
|
}
|
|
241
|
-
function wrapScriptPlay(source, script, {
|
|
245
|
+
function wrapScriptPlay(source, script, {
|
|
246
|
+
typed,
|
|
247
|
+
authoredSource = source
|
|
248
|
+
}) {
|
|
242
249
|
const { entry, entryCall } = script;
|
|
250
|
+
const program = programOf(source);
|
|
251
|
+
const authoredProgram = programOf(authoredSource);
|
|
252
|
+
const authoredEntry = authoredSource === source ? entry : playForm(authoredProgram)?.entry;
|
|
253
|
+
let usesNamedConnection = false;
|
|
254
|
+
function inspectNamedCalls(node, nested) {
|
|
255
|
+
if (node.type === "CallExpression" && isAstNode(node.callee)) {
|
|
256
|
+
const callee = node.callee;
|
|
257
|
+
const namespace = callee.object;
|
|
258
|
+
const request = Array.isArray(node.arguments) ? node.arguments[0] : void 0;
|
|
259
|
+
if (callee.type === "MemberExpression" && !callee.computed && isAstNode(callee.property) && callee.property.name === "execute" && isAstNode(namespace) && namespace.type === "MemberExpression" && !namespace.computed && isAstNode(namespace.object) && namespace.object.name === script.contextName && isAstNode(namespace.property) && namespace.property.name === "tools" && isAstNode(request) && request.type === "ObjectExpression") {
|
|
260
|
+
const fields = Array.isArray(request.properties) ? request.properties.filter(isAstNode) : [];
|
|
261
|
+
const named = fields.find(
|
|
262
|
+
(field) => isAstNode(field.key) && (field.key.name === "connection" || field.key.value === "connection")
|
|
263
|
+
);
|
|
264
|
+
if (named) {
|
|
265
|
+
if (nested)
|
|
266
|
+
fail(
|
|
267
|
+
authoredSource,
|
|
268
|
+
named,
|
|
269
|
+
"Named connections currently require a tool call in the Play entry function."
|
|
270
|
+
);
|
|
271
|
+
if (!isAstNode(named.value) || !isToolConnectionName(named.value.value)) {
|
|
272
|
+
fail(
|
|
273
|
+
authoredSource,
|
|
274
|
+
named,
|
|
275
|
+
"Use a literal workspace connection name or Google Workspace domain."
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
usesNamedConnection = true;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
const childIsNested = nested || FUNCTION_TYPES.has(node.type) && node !== authoredEntry?.node;
|
|
283
|
+
for (const child of childNodes(node))
|
|
284
|
+
inspectNamedCalls(child, childIsNested);
|
|
285
|
+
}
|
|
286
|
+
inspectNamedCalls(authoredProgram, false);
|
|
243
287
|
const unknownType = typed ? ": unknown" : "";
|
|
244
288
|
const anyType = typed ? ": any" : "";
|
|
245
|
-
const runtimeImport = defaultImportName(
|
|
246
|
-
headerOf(programOf(source)).find(isSdkImport)
|
|
247
|
-
) ? `import { runScriptPlay as __deeplineRunScriptPlay } from '${SCRIPT_SDK}';` : `import ${SCRIPT_SDK}, { runScriptPlay as __deeplineRunScriptPlay } from '${SCRIPT_SDK}';`;
|
|
289
|
+
const runtimeImport = defaultImportName(headerOf(program).find(isSdkImport)) ? `import { runScriptPlay as __deeplineRunScriptPlay } from '${SCRIPT_SDK}';` : `import ${SCRIPT_SDK}, { runScriptPlay as __deeplineRunScriptPlay } from '${SCRIPT_SDK}';`;
|
|
248
290
|
const entryBindings = entry ? ` let __deeplineEntry${anyType}; let __deeplineEntryResult${anyType};` : "";
|
|
249
|
-
const prefix = `${runtimeImport} export default async function (__deeplineContext${unknownType}, __deeplineInput${anyType}) { return __deeplineRunScriptPlay(__deeplineContext, __deeplineInput, async () => {${entryBindings}
|
|
291
|
+
const prefix = `${runtimeImport} export default async function (__deeplineContext${unknownType}, __deeplineInput${anyType}) { return __deeplineRunScriptPlay(__deeplineContext, __deeplineInput, async () => {${entryBindings}` + (usesNamedConnection ? ` if (!('namedWorkspaceConnections' in ${script.contextName}.tools)) throw new Error('This Play requires a runner that supports named workspace connections.');` : "");
|
|
250
292
|
const edits = [
|
|
251
293
|
{
|
|
252
294
|
at: script.headerEnd,
|
|
253
295
|
text: script.headerEnd === 0 ? `${prefix} ` : ` ${prefix}`
|
|
254
296
|
}
|
|
255
297
|
];
|
|
256
|
-
const configExport = configExportOf(
|
|
298
|
+
const configExport = configExportOf(program);
|
|
257
299
|
if (configExport) {
|
|
258
300
|
const declared = configExport.declaration;
|
|
259
301
|
edits.push({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkTI6DTURFjs = require('./chunk-TI6DTURF.js');
|
|
5
5
|
|
|
6
6
|
// ../play-runtime/scheduler-backend.ts
|
|
7
7
|
var PLAY_SCHEDULER_BACKENDS = {
|
|
@@ -25,8 +25,8 @@ var PLAY_RUNTIME_PROVIDERS = {
|
|
|
25
25
|
// Server runs execute on Daytona; the local-dev/test shape swaps the runner
|
|
26
26
|
// axis to local_process (same as the local profile) via an explicit
|
|
27
27
|
// runtimeBackend override at submit while tests drive local_process.
|
|
28
|
-
runner:
|
|
29
|
-
artifactKind:
|
|
28
|
+
runner: _chunkTI6DTURFjs.PLAY_RUNTIME_BACKENDS.daytona,
|
|
29
|
+
artifactKind: _chunkTI6DTURFjs.PLAY_ARTIFACT_KINDS.cjsNode20,
|
|
30
30
|
label: "Absurd (Postgres-native durable) scheduler + one-shot Daytona runner"
|
|
31
31
|
}
|
|
32
32
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDI3GL3T6js = require('./chunk-DI3GL3T6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDUGTPVT7js = require('./chunk-DUGTPVT7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkRKF263LRjs = require('./chunk-RKF263LR.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk3JZXU5OBjs = require('./chunk-3JZXU5OB.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkPX7XAVUCjs = require('./chunk-PX7XAVUC.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkQFRMVI4Sjs = require('./chunk-QFRMVI4S.js');
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
var _fs = require('fs');
|
|
@@ -32,14 +32,14 @@ var _path = require('path');
|
|
|
32
32
|
// src/cli/doc-read-reporting.ts
|
|
33
33
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
34
34
|
async function reportDocRead(docId) {
|
|
35
|
-
if (
|
|
35
|
+
if (_chunkPX7XAVUCjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
36
36
|
try {
|
|
37
|
-
const baseUrl =
|
|
38
|
-
const apiKey =
|
|
37
|
+
const baseUrl = _chunkQFRMVI4Sjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
38
|
+
const apiKey = _chunkQFRMVI4Sjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
39
39
|
if (!apiKey) return;
|
|
40
40
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
41
41
|
method: "POST",
|
|
42
|
-
headers:
|
|
42
|
+
headers: _chunkPX7XAVUCjs.failureReportHeaders.call(void 0, apiKey),
|
|
43
43
|
body: JSON.stringify({ doc_id: docId }),
|
|
44
44
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
45
45
|
});
|
|
@@ -52,16 +52,16 @@ function nothingNamed(name) {
|
|
|
52
52
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
53
53
|
}
|
|
54
54
|
function findNamed2(name, options) {
|
|
55
|
-
return
|
|
55
|
+
return _chunkRKF263LRjs.findNamed.call(void 0, name, options, _chunkRKF263LRjs.describeLookupsFor.call(void 0, new (0, _chunk3JZXU5OBjs.DeeplineClient)()));
|
|
56
56
|
}
|
|
57
57
|
async function describeAnything(name, options, onMissing) {
|
|
58
|
-
const client = new (0,
|
|
59
|
-
const lookups =
|
|
60
|
-
const outcome = await
|
|
58
|
+
const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
|
|
59
|
+
const lookups = _chunkRKF263LRjs.describeLookupsFor.call(void 0, client);
|
|
60
|
+
const outcome = await _chunkRKF263LRjs.describeName.call(void 0, name, options, {
|
|
61
61
|
...lookups,
|
|
62
62
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
63
63
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
64
|
-
seedStarterScript:
|
|
64
|
+
seedStarterScript: _chunkDI3GL3T6js.seedToolListScript
|
|
65
65
|
});
|
|
66
66
|
if (outcome.status === "missing") {
|
|
67
67
|
if (onMissing) return onMissing();
|
|
@@ -87,18 +87,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
87
87
|
` : text;
|
|
88
88
|
_fs.writeFileSync.call(void 0, path, content);
|
|
89
89
|
const bytes = Buffer.byteLength(content);
|
|
90
|
-
|
|
90
|
+
_chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
|
|
91
91
|
{ path, bytes },
|
|
92
92
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
93
93
|
` }
|
|
94
94
|
);
|
|
95
95
|
return 0;
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
_chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
98
98
|
return 0;
|
|
99
99
|
}
|
|
100
100
|
function registerDescribeCommand(program) {
|
|
101
|
-
|
|
101
|
+
_chunkDUGTPVT7js.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
102
102
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
103
103
|
).addHelpText(
|
|
104
104
|
"after",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPX7XAVUCjs = require('./chunk-PX7XAVUC.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkPX7XAVUCjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkPX7XAVUCjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|