deepline 0.3.484 → 0.3.485
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 +91 -30
- package/dist/bundling-sources/sdk/src/compat.ts +13 -0
- package/dist/bundling-sources/sdk/src/plays/client-core.ts +4 -1
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +143 -9
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +31 -4
- package/dist/bundling-sources/sdk/src/tool-calls.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-data-plane/sheet-column-storage.ts +32 -3
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +126 -41
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +231 -25
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-runtime-config.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +130 -19
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +105 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execute-server-timing.ts +4 -2
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +194 -56
- package/dist/bundling-sources/shared_libs/play-runtime/log-provenance.ts +11 -6
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/ports.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/postgres-adapter.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +30 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +195 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +20 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +102 -23
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/progress-sidecar.ts +9 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-control-transport.ts +25 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +133 -82
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +58 -16
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-sandbox-absence.ts +171 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +69 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +100 -40
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +67 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +5 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +6 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-errors.ts +14 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-writer.ts +87 -31
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/index.ts +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +14 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +204 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +39 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +26 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +44 -15
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +60 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +649 -38
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +25 -33
- package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +21 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/source-authoring-edition.ts +1 -1
- package/dist/cli/auth-ABZBH55L.js +43 -0
- package/dist/cli/{auth-EBFOTF7X.mjs → auth-OWMUENCU.mjs} +5 -5
- package/dist/cli/{billing-G2G3EF3I.js → billing-2FMNQGOX.js} +80 -80
- package/dist/cli/{billing-2ZOIMW5V.mjs → billing-JX4H3VFF.mjs} +7 -7
- package/dist/cli/{chunk-M4PG7FGC.js → chunk-2ILND7XX.js} +2 -2
- package/dist/cli/{chunk-WXRM3UC6.mjs → chunk-2ZEQ43B7.mjs} +3 -3
- package/dist/cli/{chunk-PU52JXKA.mjs → chunk-3DBW6C7M.mjs} +13 -4
- package/dist/cli/{chunk-4OVHIWE7.mjs → chunk-3DYU3JQN.mjs} +2 -2
- package/dist/cli/{chunk-QIDDTIVZ.js → chunk-3OF7NSGR.js} +322 -294
- package/dist/cli/{chunk-YWC5AN26.mjs → chunk-3Z24NKW7.mjs} +62 -34
- package/dist/cli/{chunk-RLLEH2SP.js → chunk-5DCQWQCP.js} +26 -26
- package/dist/cli/{chunk-DEXSQGXB.mjs → chunk-62PJ6PK7.mjs} +5 -5
- package/dist/cli/{chunk-6NPWXE32.mjs → chunk-676NZ7K4.mjs} +1 -1
- package/dist/cli/{chunk-FRD5WFT4.js → chunk-775AZTO7.js} +323 -247
- package/dist/cli/{chunk-4OEOM6GP.mjs → chunk-ACTUAZYP.mjs} +5 -5
- package/dist/cli/{chunk-ZOKM7DVA.js → chunk-AFADYKFE.js} +8 -8
- package/dist/cli/{chunk-GVAENVIG.js → chunk-AUQQVDAB.js} +110 -21
- package/dist/cli/{chunk-U7IJAGWB.js → chunk-BSKPQB2P.js} +7 -7
- package/dist/cli/chunk-C6QWRSMQ.js +42 -0
- package/dist/cli/{chunk-AK7UKQ5R.js → chunk-CSBMKHTV.js} +5 -5
- package/dist/cli/{chunk-YHA3EV3I.mjs → chunk-CW6TAQBF.mjs} +15 -4
- package/dist/cli/{chunk-UT4YMA2N.js → chunk-DMNVM34J.js} +5 -4
- package/dist/cli/{chunk-XZXIWPT3.mjs → chunk-E73JXJA3.mjs} +1 -1
- package/dist/cli/{chunk-5KNRQWHE.js → chunk-EC2CVPN5.js} +3 -3
- package/dist/cli/{chunk-IXWQOVNW.js → chunk-ECIXZNSW.js} +87 -76
- package/dist/cli/{chunk-LTZXLYKE.mjs → chunk-FJY6K3BG.mjs} +93 -17
- package/dist/cli/{chunk-TRLDJNVE.mjs → chunk-G5PI3RNT.mjs} +1 -1
- package/dist/cli/{chunk-WYUCDLVR.mjs → chunk-GHHJWCMD.mjs} +2 -1
- package/dist/cli/{chunk-FQK7BULS.js → chunk-HKGXGGIV.js} +1 -1
- package/dist/cli/{chunk-2AWYJXBX.js → chunk-IHMYIHF4.js} +5 -5
- package/dist/cli/{chunk-SD7QWZTV.mjs → chunk-INW22YP7.mjs} +1 -1
- package/dist/cli/{chunk-OWUZKXE7.mjs → chunk-J7EENGKJ.mjs} +1 -1
- package/dist/cli/{chunk-TIRSKEZH.mjs → chunk-JD6HKNKD.mjs} +1 -1
- package/dist/cli/{chunk-OHKKDPA5.js → chunk-JQXUWYWX.js} +13 -13
- package/dist/cli/{chunk-EACX7QXO.mjs → chunk-KZTNNLIL.mjs} +2 -2
- package/dist/cli/{chunk-7K5CWKKZ.mjs → chunk-L352NOE3.mjs} +2 -2
- package/dist/cli/{chunk-KGOC6HGI.js → chunk-L7IQ3DFH.js} +53 -53
- package/dist/cli/{chunk-4IOY2SCQ.js → chunk-LOX3BISD.js} +4 -4
- package/dist/cli/{chunk-6GRZEYSG.js → chunk-NKPTM7SK.js} +7 -7
- package/dist/cli/{chunk-VEVGM6B5.js → chunk-NLRTFJGH.js} +14 -14
- package/dist/cli/{chunk-UKM74PAA.js → chunk-NRNWPWBW.js} +37 -37
- package/dist/cli/{chunk-HNRELVCS.mjs → chunk-ONONSV2Q.mjs} +96 -7
- package/dist/cli/{chunk-CYWBAV5H.js → chunk-OW4OTEFF.js} +16 -16
- package/dist/cli/{chunk-5K5CAND4.mjs → chunk-RZE5I2XJ.mjs} +4 -4
- package/dist/cli/{chunk-3XQIVEAT.js → chunk-S3WQJ5VG.js} +3 -3
- package/dist/cli/{chunk-4SFC2XUF.mjs → chunk-SR6S4EYG.mjs} +5 -5
- package/dist/cli/{chunk-UWOY74RU.js → chunk-T4G2T5DS.js} +21 -21
- package/dist/cli/{chunk-TN2GW57M.mjs → chunk-TMCC7ORQ.mjs} +1 -1
- package/dist/cli/{chunk-HEI3BWIV.mjs → chunk-TSCUWWTM.mjs} +1 -1
- package/dist/cli/{chunk-DBJ62RAO.js → chunk-TVW6USSG.js} +3 -3
- package/dist/cli/{chunk-NW4QJE54.js → chunk-U6WEGDD3.js} +2 -2
- package/dist/cli/{chunk-V7JCMBLU.mjs → chunk-UPHXGZCE.mjs} +4 -4
- package/dist/cli/{chunk-C62NI2X6.js → chunk-UQ3LQ6IF.js} +5 -5
- package/dist/cli/{chunk-5GOG5ZGC.mjs → chunk-VZYTLWOM.mjs} +2 -2
- package/dist/cli/{chunk-AF7MOUZP.mjs → chunk-W33OL4F2.mjs} +2 -2
- package/dist/cli/{chunk-ZM2YPJQJ.js → chunk-XK5DMLZE.js} +5 -1
- package/dist/cli/{chunk-LJ5747UC.mjs → chunk-XRDXNAAY.mjs} +5 -1
- package/dist/cli/{chunk-YGN77QA5.mjs → chunk-YDA3PMKK.mjs} +3 -3
- package/dist/cli/{csv-S3CHUKI6.js → csv-HFEQPGNY.js} +13 -13
- package/dist/cli/{csv-NLWVWD3H.mjs → csv-OHF3Y5KB.mjs} +4 -4
- package/dist/cli/{db-OGRPAEEM.mjs → db-M456OUXD.mjs} +7 -7
- package/dist/cli/{db-WBSKMMOH.js → db-VLQKCYQS.js} +28 -28
- package/dist/cli/describe-CP35DZ5Z.js +49 -0
- package/dist/cli/{describe-FAD3Z7LN.mjs → describe-M6VXFYVL.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-LYCL344R.mjs → executions-4FGRBPJF.mjs} +7 -7
- package/dist/cli/{executions-SOAZHCY4.js → executions-GKINJZI6.js} +9 -9
- package/dist/cli/{feedback-AVF6V7SV.mjs → feedback-D2WMGK3V.mjs} +4 -4
- package/dist/cli/{feedback-OROUPUNJ.js → feedback-ZH5K7WV7.js} +8 -8
- package/dist/cli/git-IDALMZDN.js +25 -0
- package/dist/cli/{git-J5N5M57H.mjs → git-OCIJ5ME4.mjs} +5 -5
- package/dist/cli/index.js +142 -139
- package/dist/cli/index.mjs +45 -42
- package/dist/cli/{legacy-noops-QAQMZMEG.js → legacy-noops-QNIVP7LO.js} +8 -8
- package/dist/cli/{legacy-noops-ENRRM7BL.mjs → legacy-noops-V6Q2X34P.mjs} +5 -5
- package/dist/cli/{monitors-CKQ65WRL.mjs → monitors-2USHTG5G.mjs} +8 -8
- package/dist/cli/{monitors-SFMQ5LFR.js → monitors-5DNK7W2K.js} +92 -92
- package/dist/cli/{org-3UNTDLT2.js → org-RPGM5AN4.js} +73 -73
- package/dist/cli/{org-K4UIEU5P.mjs → org-TL2YPYSE.mjs} +7 -7
- package/dist/cli/{pages-NKZTGB4C.js → pages-PNUKPFWV.js} +18 -18
- package/dist/cli/{pages-6GPGBIAH.mjs → pages-XDEW6EE3.mjs} +7 -7
- package/dist/cli/{play-BDEADESI.js → play-F5LHRKV5.js} +858 -632
- package/dist/cli/{play-62BEE7IX.mjs → play-WINNQ4HZ.mjs} +372 -146
- package/dist/cli/{providers-SXGP44GH.js → providers-BD4IS5U5.js} +10 -10
- package/dist/cli/{providers-X3CUWMFP.mjs → providers-PXGL3FRE.mjs} +7 -7
- package/dist/cli/{quickstart-XQ4426M4.js → quickstart-7LVF6HZF.js} +6 -6
- package/dist/cli/{quickstart-7LN22BKX.mjs → quickstart-XTH3UQWZ.mjs} +4 -4
- package/dist/cli/{run-XXSN3B5A.mjs → run-MBMUENR7.mjs} +26 -26
- package/dist/cli/{run-PBJ4ZJ4W.js → run-NH2BAWPA.js} +41 -41
- package/dist/cli/{search-M75VMADD.mjs → search-BMRWBV66.mjs} +8 -8
- package/dist/cli/search-R3MQJQMT.js +32 -0
- package/dist/cli/{search-output-F6HCFYEI.js → search-output-5NNT337U.js} +22 -16
- package/dist/cli/{search-output-NUQAKWDM.mjs → search-output-QKKRD4MF.mjs} +14 -8
- package/dist/cli/{secrets-J2H6V33R.mjs → secrets-AWEXBTJV.mjs} +7 -7
- package/dist/cli/{secrets-LRYY4QPE.js → secrets-KQSTOREN.js} +16 -16
- package/dist/cli/{sessions-YPF62CZE.js → sessions-DSPLZYCJ.js} +6 -6
- package/dist/cli/{sessions-IMT336UV.mjs → sessions-RO25Q67X.mjs} +5 -5
- package/dist/cli/{settings-35YYC5WA.js → settings-7JXIKNKI.js} +79 -79
- package/dist/cli/{settings-PDWVQIGH.mjs → settings-JMGXGK4Z.mjs} +12 -12
- package/dist/cli/{setup-UR7GOR7H.js → setup-5QFAQQRW.js} +47 -47
- package/dist/cli/{setup-DG5DISSE.mjs → setup-ZQZ47FHB.mjs} +9 -9
- package/dist/cli/skills-EDZXY7DV.js +33 -0
- package/dist/cli/{skills-U6NJD5J7.mjs → skills-W3H2DL56.mjs} +7 -7
- package/dist/cli/{tools-2HGEOELR.mjs → tools-2BZCVNBS.mjs} +19 -19
- package/dist/cli/tools-2EY2ETCZ.js +56 -0
- package/dist/cli/{update-FRAYBAHK.mjs → update-GAWYMGAW.mjs} +9 -9
- package/dist/cli/update-UKDQKNBY.js +33 -0
- package/dist/cli/{workflow-DDKVTF36.mjs → workflow-M6LLHQ2I.mjs} +8 -8
- package/dist/cli/{workflow-JKKLOMBX.js → workflow-ZPTDFPKW.js} +18 -18
- package/dist/{client-DJ3r8VQJ.d.mts → client-BkbDHRIg.d.mts} +1 -1
- package/dist/{client-JPSNljtj.d.ts → client-D3hVHXjK.d.ts} +1 -1
- package/dist/{client-core-3SJlNsKU.d.mts → client-core-BZoSMKcY.d.mts} +30 -15
- package/dist/{client-core-rCoQ5Xz3.d.ts → client-core-DUdVqO_m.d.ts} +30 -15
- package/dist/{compiler-manifest-gkO9ZkVg.d.mts → compiler-manifest-BFTwq1HI.d.mts} +1 -1
- package/dist/{compiler-manifest-gkO9ZkVg.d.ts → compiler-manifest-BFTwq1HI.d.ts} +1 -1
- package/dist/{errors-Cc92LKH-.d.ts → errors-c3pMsylw.d.ts} +1 -1
- package/dist/{errors-CeCCOKSA.d.mts → errors-w31ybrQM.d.mts} +1 -1
- package/dist/{index-DJQKdV76.d.ts → index-CQ-15-QL.d.ts} +1 -1
- package/dist/{index-DsqWJL3Q.d.mts → index-DvNtxucX.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +117 -116
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -2
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +12 -2
- package/dist/plays/run-request.mjs +11 -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 +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-L5CSV3UO.js +0 -43
- package/dist/cli/chunk-KA2LNIUP.js +0 -33
- package/dist/cli/describe-UIAYCHWW.js +0 -49
- package/dist/cli/git-ATMWC27D.js +0 -25
- package/dist/cli/search-IGHLRLBD.js +0 -32
- package/dist/cli/skills-4U5WC4MJ.js +0 -33
- package/dist/cli/tools-PYJTQVVS.js +0 -56
- package/dist/cli/update-344OTRFM.js +0 -33
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkU7IJAGWBjs = require('./chunk-U7IJAGWB.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkS3WQJ5VGjs = require('./chunk-S3WQJ5VG.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkDMNVM34Jjs = require('./chunk-DMNVM34J.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
|
|
|
60
60
|
return `Service notice: ${banner.message}`;
|
|
61
61
|
}
|
|
62
62
|
function envFilePath(baseUrl) {
|
|
63
|
-
return
|
|
63
|
+
return _chunkS3WQJ5VGjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
64
64
|
}
|
|
65
65
|
function normalizeAuthScope(value) {
|
|
66
66
|
if (!value || value === "global") return "global";
|
|
@@ -73,7 +73,7 @@ function parseAuthScope(args) {
|
|
|
73
73
|
}
|
|
74
74
|
function pendingClaimPath(baseUrl, scope) {
|
|
75
75
|
if (scope === "folder") {
|
|
76
|
-
const target =
|
|
76
|
+
const target = _chunkS3WQJ5VGjs.resolveProjectPinTarget.call(void 0, );
|
|
77
77
|
if (!target.ok) {
|
|
78
78
|
throw new Error(
|
|
79
79
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -83,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
83
83
|
}
|
|
84
84
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
85
85
|
}
|
|
86
|
-
return `${
|
|
86
|
+
return `${_chunkS3WQJ5VGjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkS3WQJ5VGjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
90
90
|
}
|
|
91
91
|
function savePendingClaim(baseUrl, claim) {
|
|
92
92
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -190,21 +190,21 @@ function parseRegisterWaitMode(args) {
|
|
|
190
190
|
function shouldWaitForRegisterClaim(mode) {
|
|
191
191
|
if (mode === "yes") return true;
|
|
192
192
|
if (mode === "no") return false;
|
|
193
|
-
return
|
|
193
|
+
return _chunkDMNVM34Jjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
194
194
|
}
|
|
195
195
|
function saveEnvValues(values, baseUrl, scope) {
|
|
196
196
|
const filtered = {
|
|
197
|
-
...values[
|
|
198
|
-
...values[
|
|
199
|
-
...values[
|
|
200
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
197
|
+
...values[_chunkS3WQJ5VGjs.HOST_URL_ENV] ? { [_chunkS3WQJ5VGjs.HOST_URL_ENV]: values[_chunkS3WQJ5VGjs.HOST_URL_ENV] } : {},
|
|
198
|
+
...values[_chunkS3WQJ5VGjs.API_KEY_ENV] ? { [_chunkS3WQJ5VGjs.API_KEY_ENV]: values[_chunkS3WQJ5VGjs.API_KEY_ENV] } : {},
|
|
199
|
+
...values[_chunkS3WQJ5VGjs.ACTIVE_ORG_ID_ENV] ? { [_chunkS3WQJ5VGjs.ACTIVE_ORG_ID_ENV]: values[_chunkS3WQJ5VGjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
200
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkS3WQJ5VGjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkS3WQJ5VGjs.ACTIVE_ORG_NAME_ENV]: values[_chunkS3WQJ5VGjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
201
201
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
202
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
202
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkS3WQJ5VGjs.FEATURES_ENV) ? { [_chunkS3WQJ5VGjs.FEATURES_ENV]: values[_chunkS3WQJ5VGjs.FEATURES_ENV] } : {}
|
|
203
203
|
};
|
|
204
204
|
if (scope === "folder") {
|
|
205
|
-
|
|
205
|
+
_chunkS3WQJ5VGjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
206
206
|
} else {
|
|
207
|
-
|
|
207
|
+
_chunkS3WQJ5VGjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
function activeOrgEnvValues(data) {
|
|
@@ -212,21 +212,21 @@ function activeOrgEnvValues(data) {
|
|
|
212
212
|
if (!orgId) return {};
|
|
213
213
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
214
214
|
return {
|
|
215
|
-
[
|
|
216
|
-
[
|
|
217
|
-
...
|
|
215
|
+
[_chunkS3WQJ5VGjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
216
|
+
[_chunkS3WQJ5VGjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
217
|
+
..._chunkS3WQJ5VGjs.featureEnvValues.call(void 0, data)
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
221
221
|
const headers = {
|
|
222
222
|
"Content-Type": "application/json",
|
|
223
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
223
|
+
"User-Agent": `deepline-ts-sdk/${_chunkDMNVM34Jjs.SDK_VERSION}`,
|
|
224
224
|
"X-Deepline-Client-Family": "sdk",
|
|
225
225
|
"X-Deepline-CLI-Family": "sdk",
|
|
226
|
-
"X-Deepline-Agent-Runtime":
|
|
227
|
-
"X-Deepline-CLI-Version":
|
|
228
|
-
"X-Deepline-SDK-Version":
|
|
229
|
-
"X-Deepline-API-Contract":
|
|
226
|
+
"X-Deepline-Agent-Runtime": _chunkDMNVM34Jjs.detectAgentRuntime.call(void 0, ),
|
|
227
|
+
"X-Deepline-CLI-Version": _chunkDMNVM34Jjs.SDK_VERSION,
|
|
228
|
+
"X-Deepline-SDK-Version": _chunkDMNVM34Jjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-API-Contract": _chunkDMNVM34Jjs.SDK_API_CONTRACT
|
|
230
230
|
};
|
|
231
231
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
232
232
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -265,10 +265,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
265
265
|
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
266
266
|
throw failure;
|
|
267
267
|
}
|
|
268
|
-
const causeCode =
|
|
268
|
+
const causeCode = _chunkDMNVM34Jjs.networkCauseCode.call(void 0, failure);
|
|
269
269
|
throw Object.assign(
|
|
270
270
|
new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
271
|
-
|
|
271
|
+
_chunkDMNVM34Jjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
|
|
272
272
|
void 0,
|
|
273
273
|
"NETWORK_ERROR",
|
|
274
274
|
causeCode ? { causeCode } : void 0
|
|
@@ -285,7 +285,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
285
285
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
286
286
|
}
|
|
287
287
|
async function reportSetupCompleted(input) {
|
|
288
|
-
const apiKey = input.authScope === "folder" ?
|
|
288
|
+
const apiKey = input.authScope === "folder" ? _chunkS3WQJ5VGjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkS3WQJ5VGjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
289
289
|
if (!apiKey) return;
|
|
290
290
|
try {
|
|
291
291
|
await httpJson(
|
|
@@ -398,7 +398,7 @@ async function reportApprovalLinkShown(baseUrl, claim, mode) {
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
async function handleRegister(args, options) {
|
|
401
|
-
const baseUrl =
|
|
401
|
+
const baseUrl = _chunkS3WQJ5VGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
402
402
|
let orgName = "";
|
|
403
403
|
let orgId = "";
|
|
404
404
|
let agentName = "";
|
|
@@ -457,19 +457,19 @@ async function handleRegister(args, options) {
|
|
|
457
457
|
savePendingClaim(baseUrl, pendingClaim);
|
|
458
458
|
saveEnvValues(
|
|
459
459
|
{
|
|
460
|
-
[
|
|
460
|
+
[_chunkS3WQJ5VGjs.HOST_URL_ENV]: baseUrl
|
|
461
461
|
},
|
|
462
462
|
baseUrl,
|
|
463
463
|
authScope
|
|
464
464
|
);
|
|
465
465
|
}
|
|
466
466
|
if (claimUrl) {
|
|
467
|
-
const shouldOpen = waitMode !== "no" &&
|
|
467
|
+
const shouldOpen = waitMode !== "no" && _chunkDMNVM34Jjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
468
468
|
console.log(
|
|
469
469
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
470
470
|
);
|
|
471
471
|
console.log(` ${claimUrl}`);
|
|
472
|
-
if (shouldOpen)
|
|
472
|
+
if (shouldOpen) _chunkBSKPQB2Pjs.openInBrowser.call(void 0, claimUrl);
|
|
473
473
|
if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
|
|
474
474
|
await reportApprovalLinkShown(
|
|
475
475
|
baseUrl,
|
|
@@ -519,8 +519,8 @@ async function handleRegister(args, options) {
|
|
|
519
519
|
if (apiKey) {
|
|
520
520
|
saveEnvValues(
|
|
521
521
|
{
|
|
522
|
-
[
|
|
523
|
-
[
|
|
522
|
+
[_chunkS3WQJ5VGjs.HOST_URL_ENV]: baseUrl,
|
|
523
|
+
[_chunkS3WQJ5VGjs.API_KEY_ENV]: apiKey,
|
|
524
524
|
...activeOrgEnvValues(statusData)
|
|
525
525
|
},
|
|
526
526
|
baseUrl,
|
|
@@ -542,7 +542,7 @@ async function handleRegister(args, options) {
|
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
async function handleWait(args) {
|
|
545
|
-
const baseUrl =
|
|
545
|
+
const baseUrl = _chunkS3WQJ5VGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
546
546
|
let timeoutSeconds = 300;
|
|
547
547
|
let requestedScope;
|
|
548
548
|
if (args.includes("--auth-scope")) {
|
|
@@ -566,7 +566,7 @@ async function handleWait(args) {
|
|
|
566
566
|
const authScope = resumed.scope;
|
|
567
567
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
|
|
568
568
|
if (!pendingClaim) {
|
|
569
|
-
const scopedApiKey = authScope === "folder" ?
|
|
569
|
+
const scopedApiKey = authScope === "folder" ? _chunkS3WQJ5VGjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkS3WQJ5VGjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
570
570
|
if (scopedApiKey) {
|
|
571
571
|
console.log("Already connected.");
|
|
572
572
|
return EXIT_OK;
|
|
@@ -609,8 +609,8 @@ async function handleWait(args) {
|
|
|
609
609
|
if (apiKey) {
|
|
610
610
|
saveEnvValues(
|
|
611
611
|
{
|
|
612
|
-
[
|
|
613
|
-
[
|
|
612
|
+
[_chunkS3WQJ5VGjs.HOST_URL_ENV]: baseUrl,
|
|
613
|
+
[_chunkS3WQJ5VGjs.API_KEY_ENV]: apiKey,
|
|
614
614
|
...activeOrgEnvValues(data)
|
|
615
615
|
},
|
|
616
616
|
baseUrl,
|
|
@@ -634,8 +634,8 @@ async function handleWait(args) {
|
|
|
634
634
|
return EXIT_AUTH;
|
|
635
635
|
}
|
|
636
636
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
637
|
-
const baseUrl =
|
|
638
|
-
const apiKey =
|
|
637
|
+
const baseUrl = _chunkS3WQJ5VGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
638
|
+
const apiKey = _chunkS3WQJ5VGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
639
639
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
640
640
|
try {
|
|
641
641
|
const { status, data } = await httpJson(
|
|
@@ -658,9 +658,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
async function handleStatus(args) {
|
|
661
|
-
const baseUrl =
|
|
661
|
+
const baseUrl = _chunkS3WQJ5VGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
662
662
|
const reveal = args.includes("--reveal");
|
|
663
|
-
const jsonOutput =
|
|
663
|
+
const jsonOutput = _chunkBSKPQB2Pjs.argsWantJson.call(void 0, args);
|
|
664
664
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
665
665
|
let authScope = null;
|
|
666
666
|
if (hasExplicitAuthScope) {
|
|
@@ -701,14 +701,14 @@ async function handleStatus(args) {
|
|
|
701
701
|
};
|
|
702
702
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
703
703
|
}
|
|
704
|
-
const apiKey = authScope === "folder" ?
|
|
704
|
+
const apiKey = authScope === "folder" ? _chunkS3WQJ5VGjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkS3WQJ5VGjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkS3WQJ5VGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
705
705
|
if (!apiKey) {
|
|
706
706
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
707
707
|
baseUrl,
|
|
708
708
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
709
709
|
);
|
|
710
710
|
if (pendingClaim) {
|
|
711
|
-
|
|
711
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
712
712
|
{
|
|
713
713
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
714
714
|
status: "pending",
|
|
@@ -729,7 +729,7 @@ async function handleStatus(args) {
|
|
|
729
729
|
);
|
|
730
730
|
return EXIT_OK;
|
|
731
731
|
}
|
|
732
|
-
|
|
732
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
733
733
|
{
|
|
734
734
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
735
735
|
status: "not connected",
|
|
@@ -762,7 +762,7 @@ async function handleStatus(args) {
|
|
|
762
762
|
}
|
|
763
763
|
);
|
|
764
764
|
if (status === 401 || status === 403) {
|
|
765
|
-
|
|
765
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
766
766
|
{
|
|
767
767
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
768
768
|
status: "unauthorized",
|
|
@@ -789,7 +789,7 @@ async function handleStatus(args) {
|
|
|
789
789
|
console.error(`Auth status error (status ${status}).`);
|
|
790
790
|
return EXIT_SERVER;
|
|
791
791
|
}
|
|
792
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
792
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkS3WQJ5VGjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
793
793
|
clearSatisfiedPendingClaim(
|
|
794
794
|
baseUrl,
|
|
795
795
|
resolvedAuthScope,
|
|
@@ -817,28 +817,28 @@ async function handleStatus(args) {
|
|
|
817
817
|
if (apiKeyResp) {
|
|
818
818
|
saveEnvValues(
|
|
819
819
|
{
|
|
820
|
-
[
|
|
821
|
-
[
|
|
820
|
+
[_chunkS3WQJ5VGjs.HOST_URL_ENV]: baseUrl,
|
|
821
|
+
[_chunkS3WQJ5VGjs.API_KEY_ENV]: apiKeyResp,
|
|
822
822
|
...activeOrgEnvValues(data)
|
|
823
823
|
},
|
|
824
824
|
baseUrl,
|
|
825
825
|
resolvedAuthScope
|
|
826
826
|
);
|
|
827
827
|
if (resolvedAuthScope === "folder") {
|
|
828
|
-
const target =
|
|
828
|
+
const target = _chunkS3WQJ5VGjs.resolveProjectPinTarget.call(void 0, );
|
|
829
829
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
830
830
|
} else {
|
|
831
831
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
835
|
-
saveEnvValues(
|
|
834
|
+
} else if (resolvedAuthScope === "folder" || _chunkS3WQJ5VGjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
835
|
+
saveEnvValues(_chunkS3WQJ5VGjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
836
836
|
}
|
|
837
|
-
|
|
837
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
838
838
|
{
|
|
839
839
|
...payload,
|
|
840
|
-
...
|
|
841
|
-
command_context:
|
|
840
|
+
..._chunkDMNVM34Jjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
841
|
+
command_context: _chunkS3WQJ5VGjs.resolveCliCommandContext.call(void 0,
|
|
842
842
|
{ baseUrl, apiKey },
|
|
843
843
|
resolvedAuthScope
|
|
844
844
|
)
|
|
@@ -6,7 +6,7 @@ var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkXK5DMLZEjs = require('./chunk-XK5DMLZE.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
@@ -74,7 +74,7 @@ function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdi
|
|
|
74
74
|
const extractedValues = extractionContractEntries(
|
|
75
75
|
arrayField(toolExecutionResult, "extractedValues", "extracted_values")
|
|
76
76
|
);
|
|
77
|
-
const pricing =
|
|
77
|
+
const pricing = _chunkXK5DMLZEjs.Capability.fromCatalogEntry(tool).describe().customerCost();
|
|
78
78
|
const executionMetadataRecord = recordField(
|
|
79
79
|
tool,
|
|
80
80
|
"executionMetadata",
|
|
@@ -298,7 +298,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
298
298
|
stringField(cost, "displayText"),
|
|
299
299
|
// "Free (free)" says the same thing twice.
|
|
300
300
|
billing.toLowerCase() === stringField(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
|
|
301
|
-
|
|
301
|
+
_chunkXK5DMLZEjs.observedMaxText.call(void 0, cost) && `\u2014 ${_chunkXK5DMLZEjs.observedMaxText.call(void 0, cost)}`
|
|
302
302
|
].filter(Boolean).join(" ") || void 0,
|
|
303
303
|
guidance: [
|
|
304
304
|
...contract.deprecated === true ? [`Deprecated. ${stringField(deprecation, "message")}`.trim()] : [],
|
|
@@ -397,7 +397,7 @@ function toolMetadataJsonForDescribe(tool, requestedToolId, seedStarterScript) {
|
|
|
397
397
|
} = tool;
|
|
398
398
|
const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
|
|
399
399
|
return {
|
|
400
|
-
cost:
|
|
400
|
+
cost: _chunkXK5DMLZEjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
401
401
|
...publicTool,
|
|
402
402
|
toolId,
|
|
403
403
|
provider: tool.provider,
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkIHMYIHF4js = require('./chunk-IHMYIHF4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkS3WQJ5VGjs = require('./chunk-S3WQJ5VG.js');
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
var _commander = require('commander');
|
|
@@ -20,7 +20,7 @@ var _fs = require('fs');
|
|
|
20
20
|
var _path = require('path');
|
|
21
21
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
22
22
|
function lastSearchPath() {
|
|
23
|
-
return _path.join.call(void 0,
|
|
23
|
+
return _path.join.call(void 0, _chunkS3WQJ5VGjs.sdkCliStateDirPath.call(void 0, _chunkS3WQJ5VGjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
24
24
|
}
|
|
25
25
|
function rememberSearchRef(searchRef) {
|
|
26
26
|
try {
|
|
@@ -118,7 +118,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
118
118
|
console.error("--summary-width must be an integer of at least 2.");
|
|
119
119
|
return 1;
|
|
120
120
|
}
|
|
121
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
121
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkIHMYIHF4js.DeeplineClient)().search({
|
|
122
122
|
query,
|
|
123
123
|
types,
|
|
124
124
|
exclude,
|
|
@@ -132,8 +132,8 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
132
132
|
});
|
|
133
133
|
if (searchRef) rememberSearchRef(searchRef);
|
|
134
134
|
pointAtDescribe(result);
|
|
135
|
-
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
136
|
-
|
|
135
|
+
const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-5NNT337U.js")));
|
|
136
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0, result, {
|
|
137
137
|
json: options.json === true,
|
|
138
138
|
text: renderSearchResults(result, summaryWidth)
|
|
139
139
|
});
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk775AZTO7js = require('./chunk-775AZTO7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkAUQQVDABjs = require('./chunk-AUQQVDAB.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
|
|
|
579
579
|
return raw;
|
|
580
580
|
}
|
|
581
581
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
582
|
-
const selection =
|
|
582
|
+
const selection = _chunkBSKPQB2Pjs.parseJsonFields.call(void 0, args, "run");
|
|
583
583
|
args = selection.args;
|
|
584
584
|
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.";
|
|
585
585
|
let filePath = null;
|
|
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
591
591
|
let revisionSelector = null;
|
|
592
592
|
const watch = !args.includes("--no-wait");
|
|
593
593
|
const dryRun = args.includes("--dry-run");
|
|
594
|
-
let jsonOutput = dryRun ?
|
|
594
|
+
let jsonOutput = dryRun ? _chunkBSKPQB2Pjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkBSKPQB2Pjs.argsWantJson.call(void 0, args);
|
|
595
595
|
const fullJson = args.includes("--full");
|
|
596
596
|
const force = args.includes("--force");
|
|
597
597
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
654
654
|
"--log-level requires one of: debug, info, warn, error."
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
|
-
const parsed =
|
|
657
|
+
const parsed = _chunk775AZTO7js.parseLogLevel.call(void 0, value);
|
|
658
658
|
if (!parsed) {
|
|
659
659
|
throw new Error(
|
|
660
660
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -778,12 +778,12 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
778
778
|
}
|
|
779
779
|
if (arg === "--debug" && args[index + 1] && !args[index + 1].startsWith("--")) {
|
|
780
780
|
input ??= {};
|
|
781
|
-
|
|
781
|
+
_chunkAUQQVDABjs.setDottedInputValue.call(void 0, input, "debug", parseInputFlagValue(args[++index]));
|
|
782
782
|
continue;
|
|
783
783
|
}
|
|
784
784
|
if (arg.startsWith("--debug=")) {
|
|
785
785
|
input ??= {};
|
|
786
|
-
|
|
786
|
+
_chunkAUQQVDABjs.setDottedInputValue.call(void 0,
|
|
787
787
|
input,
|
|
788
788
|
"debug",
|
|
789
789
|
parseInputFlagValue(arg.slice("--debug=".length))
|
|
@@ -811,7 +811,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
811
811
|
if (arg.startsWith("--")) {
|
|
812
812
|
const { path, value } = parseInputFieldFlag(arg, args[index + 1]);
|
|
813
813
|
input ??= {};
|
|
814
|
-
|
|
814
|
+
_chunkAUQQVDABjs.setDottedInputValue.call(void 0, input, path, parseInputFlagValue(value));
|
|
815
815
|
if (!arg.includes("=")) {
|
|
816
816
|
index += 1;
|
|
817
817
|
}
|
|
@@ -900,7 +900,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
900
900
|
let initialInput = options.input === void 0 ? null : parseJsonInput(options.input);
|
|
901
901
|
if (typeof options.debug === "string") {
|
|
902
902
|
initialInput ??= {};
|
|
903
|
-
|
|
903
|
+
_chunkAUQQVDABjs.setDottedInputValue.call(void 0,
|
|
904
904
|
initialInput,
|
|
905
905
|
"debug",
|
|
906
906
|
parseInputFlagValue(options.debug)
|
|
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
972
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
973
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
974
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
975
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk775AZTO7js.parseLogLevel.call(void 0, options.logLevel);
|
|
976
976
|
if (!logLevel)
|
|
977
977
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
978
978
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
986
986
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
987
987
|
logLevel = "debug";
|
|
988
988
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
989
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
990
|
-
[...fullJson ? ["--full"] : [], ...
|
|
989
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkBSKPQB2Pjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkBSKPQB2Pjs.jsonFieldArgs.call(void 0, options.json)],
|
|
991
991
|
"run"
|
|
992
992
|
).fields;
|
|
993
993
|
const watch = options.wait === false ? false : base.watch;
|
|
994
994
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
995
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
995
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkBSKPQB2Pjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|