deepline 0.3.516 → 0.3.518
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/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/bounded-batch-function.ts +21 -3
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +163 -63
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-production-gate.ts +32 -5
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-policy.ts +8 -13
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +14 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +119 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +8 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +12 -11
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/detached-runner-readiness-pacing.ts +44 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +16 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +42 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-completion-coalescer.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/runtime-step-receipts-adapter.ts +22 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -7
- package/dist/cli/{artifacts-KMWS32R5.js → artifacts-EAOGAB5K.js} +21 -19
- package/dist/cli/{artifacts-G56FISIE.mjs → artifacts-LGFPVJSE.mjs} +9 -7
- package/dist/cli/auth-CLNPH65D.js +43 -0
- package/dist/cli/{auth-RSS7MOBV.mjs → auth-FXXZIWLI.mjs} +5 -5
- package/dist/cli/{billing-2ALO3XEG.mjs → billing-4Q5WAB5D.mjs} +7 -7
- package/dist/cli/{billing-RCC6WBIZ.js → billing-ESZXVREA.js} +82 -82
- package/dist/cli/{chunk-ZFRN3B2R.mjs → chunk-2DRW5ALK.mjs} +1 -1
- package/dist/cli/{chunk-YS7AI7R6.js → chunk-2G6MARKU.js} +7 -7
- package/dist/cli/{chunk-LWUFEX26.mjs → chunk-2LBKIVIW.mjs} +2 -2
- package/dist/cli/{chunk-UW5QWTUG.js → chunk-3NMQ5EIV.js} +14 -14
- package/dist/cli/{chunk-Q47MAAHI.mjs → chunk-4YR3W2YB.mjs} +1 -1
- package/dist/cli/{chunk-4IIK6GIY.js → chunk-5X4P3MNG.js} +9 -9
- package/dist/cli/{chunk-LZROM6VQ.js → chunk-6IPKRQMH.js} +2 -2
- package/dist/cli/{chunk-W5I53WQ4.js → chunk-7X32UR2E.js} +96 -96
- package/dist/cli/{chunk-6ZLL5GDN.js → chunk-B26LSUCI.js} +2 -2
- package/dist/cli/{chunk-LCKAG5RL.mjs → chunk-B2MSOFEI.mjs} +2 -2
- package/dist/cli/{chunk-RB3OR32I.js → chunk-BVQDUYXJ.js} +16 -16
- package/dist/cli/{chunk-WCQ7JGDV.mjs → chunk-DYWQ72ZQ.mjs} +1 -1
- package/dist/cli/{chunk-N6Q5SDGA.js → chunk-ENVSFG5E.js} +44 -44
- package/dist/cli/{chunk-HY6KAW5H.mjs → chunk-G6BD4K3K.mjs} +5 -5
- package/dist/cli/{chunk-7R2V5Z6O.js → chunk-GDMO6MMY.js} +41 -41
- package/dist/cli/{chunk-PPYJXP4Z.js → chunk-HIJM54NU.js} +22 -22
- package/dist/cli/{chunk-D4OZSC3C.js → chunk-HYR34KFA.js} +5 -4
- package/dist/cli/{chunk-JB6FEEDQ.js → chunk-ICHUGGZ3.js} +2 -2
- package/dist/cli/{chunk-FIIBDWAO.js → chunk-J2UOHFDH.js} +53 -53
- package/dist/cli/{chunk-72L5HQ3J.js → chunk-JKSLK5PS.js} +5 -5
- package/dist/cli/{chunk-PKKSXXZ5.js → chunk-K5GUMXRT.js} +26 -26
- package/dist/cli/{chunk-V46UBZBJ.mjs → chunk-KIYDPAGX.mjs} +2 -2
- package/dist/cli/{chunk-X2YP36YP.mjs → chunk-KP5AAMJ3.mjs} +1 -1
- package/dist/cli/{chunk-ZMCQP4EU.mjs → chunk-KQV75ZUA.mjs} +10 -10
- package/dist/cli/{chunk-QG4LIOGI.mjs → chunk-L256EFFV.mjs} +2 -2
- package/dist/cli/{chunk-E7ZM2ZRD.mjs → chunk-L4RQDVCN.mjs} +5 -5
- package/dist/cli/{chunk-CKEZXNMV.js → chunk-LLO5UYI5.js} +6 -6
- package/dist/cli/{chunk-6ADGVZRX.mjs → chunk-LTCNF6KG.mjs} +5 -5
- package/dist/cli/{chunk-WE223LFR.js → chunk-M4DA3HTT.js} +16 -16
- package/dist/cli/{chunk-RB5EMAWD.mjs → chunk-MNWLM3FA.mjs} +1 -1
- package/dist/cli/{chunk-TZNQRKDF.js → chunk-NQFVQCCV.js} +1 -1
- package/dist/cli/{chunk-72MFP7V4.mjs → chunk-QX4QFGU7.mjs} +1 -1
- package/dist/cli/{chunk-QG3MRMU5.js → chunk-R4ZEJD5F.js} +4 -4
- package/dist/cli/{chunk-JPLEDOEW.mjs → chunk-RASCFMYI.mjs} +2 -2
- package/dist/cli/{chunk-VIZJIBI4.js → chunk-REEWKGQZ.js} +10 -10
- package/dist/cli/{chunk-J4VMWSQK.mjs → chunk-RFUJBBJE.mjs} +6 -6
- package/dist/cli/{chunk-C2SR3X7Y.mjs → chunk-RYHNKT4P.mjs} +2 -2
- package/dist/cli/{chunk-QUSYG3VP.js → chunk-SNFRDG7G.js} +3 -3
- package/dist/cli/{chunk-PMS3LQ6B.js → chunk-ST7WCRVQ.js} +5 -5
- package/dist/cli/{chunk-2YEFJHAF.mjs → chunk-TH2AQ4VG.mjs} +3 -3
- package/dist/cli/{chunk-CA24C3XL.mjs → chunk-TU5RR775.mjs} +3 -3
- package/dist/cli/{chunk-QX7WDG4V.js → chunk-UY5JSZDA.js} +11 -11
- package/dist/cli/{chunk-C72J6JE3.mjs → chunk-V6DIYGTK.mjs} +1 -1
- package/dist/cli/{chunk-YXGTO5XA.mjs → chunk-VE6FHVXZ.mjs} +5 -4
- package/dist/cli/{chunk-RLI6FDQM.js → chunk-VHFICSS7.js} +6 -6
- package/dist/cli/{chunk-PVVWKOEB.mjs → chunk-W3UFYU63.mjs} +1 -1
- package/dist/cli/{chunk-EYWP5JPU.mjs → chunk-WTQF2Z6X.mjs} +4 -4
- package/dist/cli/{chunk-5NU37KME.mjs → chunk-X6H3JGOP.mjs} +2 -2
- package/dist/cli/{chunk-H6BSB2YJ.mjs → chunk-XA7OTIYW.mjs} +1 -1
- package/dist/cli/{chunk-P6AADORO.js → chunk-XJ5NVLIP.js} +3 -3
- package/dist/cli/{chunk-Z3KLCDCB.mjs → chunk-YNIH4YTR.mjs} +5 -5
- package/dist/cli/{chunk-XEQBYK4B.js → chunk-ZJ3HEEGF.js} +7 -7
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-YXK5TB47.mjs → csv-KRGEVVN7.mjs} +4 -4
- package/dist/cli/{csv-RPR64UBS.js → csv-RLFOF4P4.js} +13 -13
- package/dist/cli/{db-UQYILAMF.mjs → db-2B6G4YO3.mjs} +6 -6
- package/dist/cli/{db-KO3JCGRG.js → db-NJC3NPOL.js} +27 -27
- package/dist/cli/{describe-P2OK5X2S.mjs → describe-BLJFAM4U.mjs} +18 -18
- package/dist/cli/describe-DRMUODJN.js +50 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-IQCRQXVA.mjs → executions-25XYBGJ5.mjs} +6 -6
- package/dist/cli/{executions-5Z7H7HV3.js → executions-ENELLT7A.js} +8 -8
- package/dist/cli/{feedback-ZO6A4HTV.mjs → feedback-5OAKHVQE.mjs} +5 -5
- package/dist/cli/{feedback-EDZJDARP.js → feedback-UPI2JQPL.js} +10 -10
- package/dist/cli/{git-OBXSILWM.mjs → git-MRYSIZV4.mjs} +5 -5
- package/dist/cli/git-P4OPT6Q7.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-HKXU2EU6.js → legacy-noops-DHEWQKER.js} +9 -9
- package/dist/cli/{legacy-noops-4UJM3FMN.mjs → legacy-noops-OJD5KYUO.mjs} +6 -6
- package/dist/cli/{monitors-7EP3Q2DX.js → monitors-22AFKUQN.js} +100 -100
- package/dist/cli/{monitors-ZXF2KCW7.mjs → monitors-24JM24NV.mjs} +7 -7
- package/dist/cli/{org-GFGOTUWP.js → org-HNYKUDJB.js} +72 -72
- package/dist/cli/{org-EDHCUR6V.mjs → org-I2X7ZZGQ.mjs} +6 -6
- package/dist/cli/{pages-EGEWMPJN.mjs → pages-4LSYUDES.mjs} +6 -6
- package/dist/cli/{pages-TLFQQL5S.js → pages-OUSF2RNH.js} +18 -18
- package/dist/cli/{play-NBO3MPDL.mjs → play-64XKQRA4.mjs} +18 -18
- package/dist/cli/{play-XDHJY5R4.js → play-ESY43EFW.js} +317 -317
- package/dist/cli/{providers-RU6BGEDM.js → providers-ENWSSRYR.js} +9 -9
- package/dist/cli/{providers-NXJ7WPNH.mjs → providers-VHK26CSP.mjs} +6 -6
- package/dist/cli/{quickstart-YBNDPNAR.mjs → quickstart-4NNLQMD7.mjs} +4 -4
- package/dist/cli/{quickstart-4ZZBMZPF.js → quickstart-TZ6IAUMS.js} +6 -6
- package/dist/cli/{run-LX52KVZM.mjs → run-DOH3AMYU.mjs} +23 -23
- package/dist/cli/{run-374CTJBV.js → run-RR7KPWP7.js} +41 -41
- package/dist/cli/search-SE6PM33H.js +33 -0
- package/dist/cli/{search-EH6JPV62.mjs → search-YFOCGXWL.mjs} +8 -8
- package/dist/cli/{search-output-NATLJOWW.js → search-output-AOTV6C36.js} +6 -6
- package/dist/cli/{search-output-XIQERUHF.mjs → search-output-IV2HSRLQ.mjs} +4 -4
- package/dist/cli/{secrets-A3UXDE5V.js → secrets-ATPM2AXV.js} +15 -15
- package/dist/cli/{secrets-VRJQFUKF.mjs → secrets-GMFCHPTV.mjs} +6 -6
- package/dist/cli/sessions-NN3H2KSE.js +18 -0
- package/dist/cli/{sessions-5TTH5FGZ.mjs → sessions-X3M4H2WY.mjs} +6 -6
- package/dist/cli/{settings-LX5EGLVT.js → settings-4V52LMWP.js} +86 -86
- package/dist/cli/{settings-VRGFTOTJ.mjs → settings-GRXFOR5V.mjs} +13 -13
- package/dist/cli/{setup-FXP5Y3Y6.mjs → setup-63WAXGPH.mjs} +10 -10
- package/dist/cli/{setup-QL4YWKOR.js → setup-OCCXAVQL.js} +50 -50
- package/dist/cli/skills-6XXVKQP4.js +37 -0
- package/dist/cli/{skills-ET4PMBJE.mjs → skills-IVGTO4NE.mjs} +8 -8
- package/dist/cli/tools-5COWG5TH.js +57 -0
- package/dist/cli/{tools-WPL3NZAA.mjs → tools-KGHX6MLB.mjs} +17 -17
- package/dist/cli/{update-OCAHAKL2.mjs → update-2OBZ4IUJ.mjs} +10 -10
- package/dist/cli/update-SQD25OCL.js +35 -0
- package/dist/cli/{workflow-CWO3XL4O.js → workflow-HGLO4V7R.js} +17 -17
- package/dist/cli/{workflow-NPZ2RLQG.mjs → workflow-ZZOATQYV.mjs} +7 -7
- package/dist/{client-K1g4ab5Y.d.mts → client-CpSiHSti.d.mts} +1 -1
- package/dist/{client-CQSPuqxh.d.ts → client-CswZYCGj.d.ts} +1 -1
- package/dist/{client-core-BksGf5Gd.d.mts → client-core-C1xVOg8Y.d.mts} +1 -1
- package/dist/{client-core-BlaqOlQ7.d.ts → client-core-D2pLt36Q.d.ts} +1 -1
- package/dist/{compiler-manifest-BliMS7ax.d.mts → compiler-manifest-B4mIIbw7.d.mts} +3 -3
- package/dist/{compiler-manifest-BliMS7ax.d.ts → compiler-manifest-B4mIIbw7.d.ts} +3 -3
- package/dist/{errors-BZ6Zq1cz.d.mts → errors-C2F4qzAq.d.mts} +1 -1
- package/dist/{errors-xfNscfS1.d.ts → errors-Gj9i5Rkd.d.ts} +1 -1
- package/dist/{index-DbvCg4zg.d.mts → index-5JZBufdF.d.mts} +1 -1
- package/dist/{index-FGdQv8J8.d.ts → index-BXtSj8bv.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- 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 +3 -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/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 +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-6EIEZ3UE.js +0 -43
- package/dist/cli/describe-BPX3U2BF.js +0 -50
- package/dist/cli/git-Y34J73QC.js +0 -25
- package/dist/cli/search-YS4DHSQC.js +0 -33
- package/dist/cli/sessions-EXII5VOV.js +0 -18
- package/dist/cli/skills-5L4CYX3V.js +0 -37
- package/dist/cli/tools-5V77VIUA.js +0 -57
- package/dist/cli/update-G5RSSWM5.js +0 -35
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoDetectBaseUrl,
|
|
3
3
|
resolveApiKeyForBaseUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2DRW5ALK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SDK_VERSION,
|
|
7
7
|
agentSessionIdFromEnvironment,
|
|
8
8
|
deploymentProtectionHeaders,
|
|
9
9
|
detectAgentRuntime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W3UFYU63.mjs";
|
|
11
11
|
import {
|
|
12
12
|
DeeplineError
|
|
13
13
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSNFRDG7Gjs = require('./chunk-SNFRDG7G.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkR4ZEJD5Fjs = require('./chunk-R4ZEJD5F.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
@@ -150,7 +150,7 @@ function buildEnvironmentContext() {
|
|
|
150
150
|
node_version: process.version,
|
|
151
151
|
runtime: "Node.js",
|
|
152
152
|
hostname: _os.hostname.call(void 0, ),
|
|
153
|
-
agent_runtime:
|
|
153
|
+
agent_runtime: _chunkR4ZEJD5Fjs.detectAgentRuntime.call(void 0, )
|
|
154
154
|
};
|
|
155
155
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
156
156
|
const normalized = _optionalChain([process, 'access', _5 => _5.env, 'access', _6 => _6[key], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);
|
|
@@ -171,18 +171,18 @@ function buildEnvironmentContext() {
|
|
|
171
171
|
return context;
|
|
172
172
|
}
|
|
173
173
|
function failureReportHeaders(apiKey) {
|
|
174
|
-
const agentSessionId =
|
|
174
|
+
const agentSessionId = _chunkR4ZEJD5Fjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
175
175
|
return {
|
|
176
|
-
...
|
|
176
|
+
..._chunkR4ZEJD5Fjs.deploymentProtectionHeaders.call(void 0, ),
|
|
177
177
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
178
178
|
Authorization: `Bearer ${apiKey}`,
|
|
179
179
|
"Content-Type": "application/json",
|
|
180
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
180
|
+
"User-Agent": `deepline-ts-sdk/${_chunkR4ZEJD5Fjs.SDK_VERSION}`,
|
|
181
181
|
"X-Deepline-Client-Family": "sdk",
|
|
182
182
|
"X-Deepline-CLI-Family": "sdk",
|
|
183
|
-
"X-Deepline-Agent-Runtime":
|
|
184
|
-
"X-Deepline-CLI-Version":
|
|
185
|
-
"X-Deepline-SDK-Version":
|
|
183
|
+
"X-Deepline-Agent-Runtime": _chunkR4ZEJD5Fjs.detectAgentRuntime.call(void 0, ),
|
|
184
|
+
"X-Deepline-CLI-Version": _chunkR4ZEJD5Fjs.SDK_VERSION,
|
|
185
|
+
"X-Deepline-SDK-Version": _chunkR4ZEJD5Fjs.SDK_VERSION
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
async function postFailureReport(input) {
|
|
@@ -210,7 +210,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
210
210
|
if (isFailureReportingDisabled()) return false;
|
|
211
211
|
let apiKey = "";
|
|
212
212
|
try {
|
|
213
|
-
apiKey =
|
|
213
|
+
apiKey = _chunkSNFRDG7Gjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
214
214
|
} catch (e2) {
|
|
215
215
|
return false;
|
|
216
216
|
}
|
|
@@ -237,7 +237,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
237
237
|
failure_code: failureCode2,
|
|
238
238
|
failure_stage: failureStage,
|
|
239
239
|
error_body: "Automatic Deepline skills installation failed.",
|
|
240
|
-
cli_version:
|
|
240
|
+
cli_version: _chunkR4ZEJD5Fjs.SDK_VERSION,
|
|
241
241
|
context: {
|
|
242
242
|
environment: buildEnvironmentContext(),
|
|
243
243
|
skills_sync: {
|
|
@@ -357,7 +357,7 @@ function buildFailureReport(input) {
|
|
|
357
357
|
failure_kind: failureKind,
|
|
358
358
|
failure_code: code,
|
|
359
359
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
360
|
-
cli_version:
|
|
360
|
+
cli_version: _chunkR4ZEJD5Fjs.SDK_VERSION,
|
|
361
361
|
context: {
|
|
362
362
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
363
363
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -377,8 +377,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
377
377
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
378
378
|
const exitCode = resolvedExitCode(input);
|
|
379
379
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
380
|
-
const baseUrl =
|
|
381
|
-
const apiKey =
|
|
380
|
+
const baseUrl = _chunkSNFRDG7Gjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
381
|
+
const apiKey = _chunkSNFRDG7Gjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
382
382
|
if (!apiKey) return false;
|
|
383
383
|
return postFailureReport({
|
|
384
384
|
baseUrl,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2G6MARKUjs = require('./chunk-2G6MARKU.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk6Y3DDRRNjs = require('./chunk-6Y3DDRRN.js');
|
|
@@ -11,7 +11,7 @@ var _chunk6Y3DDRRNjs = require('./chunk-6Y3DDRRN.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZJ3HEEGFjs = require('./chunk-ZJ3HEEGF.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.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 = _chunkZJ3HEEGFjs.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 ? _chunkZJ3HEEGFjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkZJ3HEEGFjs.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");
|
|
@@ -656,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
656
656
|
"--log-level requires one of: debug, info, warn, error."
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
|
-
const parsed =
|
|
659
|
+
const parsed = _chunk2G6MARKUjs.parseLogLevel.call(void 0, value);
|
|
660
660
|
if (!parsed) {
|
|
661
661
|
throw new Error(
|
|
662
662
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -974,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
974
974
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
975
975
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
976
976
|
);
|
|
977
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
977
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk2G6MARKUjs.parseLogLevel.call(void 0, options.logLevel);
|
|
978
978
|
if (!logLevel)
|
|
979
979
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
980
980
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -988,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
988
988
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
989
989
|
logLevel = "debug";
|
|
990
990
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
991
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
992
|
-
[...fullJson ? ["--full"] : [], ...
|
|
991
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkZJ3HEEGFjs.parseJsonFields.call(void 0,
|
|
992
|
+
[...fullJson ? ["--full"] : [], ..._chunkZJ3HEEGFjs.jsonFieldArgs.call(void 0, options.json)],
|
|
993
993
|
"run"
|
|
994
994
|
).fields;
|
|
995
995
|
const watch = options.wait === false ? false : base.watch;
|
|
996
996
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
997
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
997
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkZJ3HEEGFjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
998
998
|
const verboseLogs = Boolean(
|
|
999
999
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1000
1000
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZJ3HEEGFjs = require('./chunk-ZJ3HEEGF.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkZJ3HEEGFjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|