deepline 0.3.551 → 0.3.552
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 +23 -0
- package/dist/bundling-sources/sdk/src/http-core.ts +6 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +58 -29
- package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +80 -13
- package/dist/bundling-sources/shared_libs/monitors/tamradar-countries.ts +285 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +144 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +137 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +14 -2
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +20 -16
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +47 -14
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +48 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-constants.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +32 -10
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +37 -7
- package/dist/cli/{auth-E7BH4GMJ.mjs → auth-KVSBJZOX.mjs} +5 -5
- package/dist/cli/auth-MMNVWATX.js +43 -0
- package/dist/cli/{billing-OXKU462W.mjs → billing-54RHFEBI.mjs} +19 -12
- package/dist/cli/{billing-DNQAZGX7.js → billing-FQREA7UA.js} +105 -98
- package/dist/cli/{chunk-5VVSEU67.js → chunk-3FD5EQ62.js} +6 -6
- package/dist/cli/{chunk-WKBHUB6R.js → chunk-45PVGZST.js} +99 -99
- package/dist/cli/{chunk-COGREZAO.js → chunk-4MK42735.js} +44 -44
- package/dist/cli/{chunk-T2B5BVZE.js → chunk-4NQF6KJ3.js} +13 -13
- package/dist/cli/{chunk-V6SCP4B7.mjs → chunk-4TALT2M3.mjs} +1 -1
- package/dist/cli/{chunk-C4CUZH57.js → chunk-4UUR4TCH.js} +2 -2
- package/dist/cli/{chunk-PM7MO62Y.mjs → chunk-57VZVF5D.mjs} +3 -3
- package/dist/cli/{chunk-VTGG2RT3.js → chunk-634ZDA3F.js} +1 -1
- package/dist/cli/{chunk-E64HFB4L.mjs → chunk-6O5HOODW.mjs} +11 -11
- package/dist/cli/{chunk-GGB3JYCW.mjs → chunk-6PRW5UBA.mjs} +2 -2
- package/dist/cli/{chunk-GVYLCCKN.mjs → chunk-6RZOWL2V.mjs} +1 -1
- package/dist/cli/{chunk-POLUE7D5.js → chunk-6YCA5NKJ.js} +7 -7
- package/dist/cli/{chunk-5LUF4LAR.mjs → chunk-6ZORHRKB.mjs} +1 -0
- package/dist/cli/{chunk-PPSDCN6C.js → chunk-77AAAGVB.js} +2 -2
- package/dist/cli/{chunk-UDXULACQ.js → chunk-7IKQKKNX.js} +3 -3
- package/dist/cli/{chunk-2ZYRBMQM.js → chunk-ADRC5I3R.js} +22 -22
- package/dist/cli/{chunk-2UXDHFSF.mjs → chunk-AQWQ2BFX.mjs} +1 -1
- package/dist/cli/{chunk-D6M5HFBB.mjs → chunk-AWJPDPMA.mjs} +1 -1
- package/dist/cli/{chunk-CLRAANWH.mjs → chunk-AZQ264ID.mjs} +1 -1
- package/dist/cli/{chunk-NMWGZD6Y.js → chunk-BAIST2BR.js} +26 -26
- package/dist/cli/{chunk-5S6PHKRV.mjs → chunk-DJ2JDK4O.mjs} +1 -1
- package/dist/cli/{chunk-MNSTCJMX.mjs → chunk-EOPEYCY7.mjs} +3 -3
- package/dist/cli/{chunk-HEHVGEZV.mjs → chunk-EUPVF4SU.mjs} +5 -5
- package/dist/cli/{chunk-3G6QZACZ.js → chunk-F2LH7TGF.js} +15 -15
- package/dist/cli/{chunk-BIIJATTX.mjs → chunk-FTJLJCE5.mjs} +1 -1
- package/dist/cli/{chunk-XYE5XPGF.js → chunk-G4O75EXF.js} +9 -9
- package/dist/cli/{chunk-Z2FIOG3V.js → chunk-GKYAYLRI.js} +12 -12
- package/dist/cli/{chunk-3KYBDAR3.js → chunk-HO3XK3R7.js} +5 -5
- package/dist/cli/{chunk-FOTGUFVK.mjs → chunk-HYC4MKGK.mjs} +2 -2
- package/dist/cli/{chunk-44I675YK.js → chunk-IDVVIXPJ.js} +41 -41
- package/dist/cli/{chunk-ZCDKE4UH.js → chunk-IHRKLXZN.js} +5 -5
- package/dist/cli/{chunk-6PWJKMFQ.mjs → chunk-IYSTRCLX.mjs} +4 -4
- package/dist/cli/{chunk-CQ6JYQSW.js → chunk-JWUAX6OP.js} +10 -10
- package/dist/cli/{chunk-W2ZWQUHT.js → chunk-MF2GHZDO.js} +2 -2
- package/dist/cli/{chunk-LPJPCGT3.js → chunk-PFO3ISXA.js} +26 -15
- package/dist/cli/{chunk-W425ERWN.mjs → chunk-PTVD2GVQ.mjs} +5 -5
- package/dist/cli/{chunk-5IL7SC45.mjs → chunk-QAORXEY3.mjs} +2 -2
- package/dist/cli/{chunk-RE5MJBEV.mjs → chunk-QILKGXYF.mjs} +2 -2
- package/dist/cli/{chunk-VWLHRZFG.mjs → chunk-QPKH23EC.mjs} +4 -4
- package/dist/cli/{chunk-7DOQ3OEX.mjs → chunk-QX7LFGJR.mjs} +1 -1
- package/dist/cli/{chunk-3T65J5RG.mjs → chunk-QY3ZNU6Z.mjs} +2 -2
- package/dist/cli/{chunk-PACD5DGC.js → chunk-RBEUVDZF.js} +10 -6
- package/dist/cli/{chunk-4OMAGJ6U.js → chunk-RQZQVFCJ.js} +2 -2
- package/dist/cli/{chunk-MR5LTVHD.js → chunk-S46HWQKO.js} +53 -53
- package/dist/cli/{chunk-44KSACJW.mjs → chunk-S5S355UY.mjs} +2 -2
- package/dist/cli/{chunk-QM6Y6S4E.js → chunk-SHLFOPD6.js} +5 -5
- package/dist/cli/{chunk-MXGA6JFI.mjs → chunk-U7QRMBIY.mjs} +2 -2
- package/dist/cli/{chunk-R7J7CJPZ.js → chunk-V436Z54K.js} +1 -0
- package/dist/cli/{chunk-ZDQFBJPO.js → chunk-VQALXEXO.js} +19 -19
- package/dist/cli/{chunk-7WQNWJQW.mjs → chunk-WE5HES3H.mjs} +5 -5
- package/dist/cli/{chunk-54EEYLTF.js → chunk-WLN3SUIA.js} +3 -3
- package/dist/cli/{chunk-7RSIFA72.js → chunk-XVB7V4N7.js} +16 -16
- package/dist/cli/{chunk-I4VKGNAQ.mjs → chunk-YJHE3O5M.mjs} +5 -5
- package/dist/cli/{chunk-4D3WIZST.mjs → chunk-YLTMXJFC.mjs} +7 -3
- package/dist/cli/{chunk-ZMNGZ6XS.mjs → chunk-Z5TSLLOW.mjs} +19 -8
- package/dist/cli/{chunk-S7IZWGUA.mjs → chunk-ZIAXDBXX.mjs} +2 -2
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/concurrent-runs-help-FQAIHKKC.js +21 -0
- package/dist/cli/{concurrent-runs-help-C6L6I5OR.mjs → concurrent-runs-help-Q4KPAUJX.mjs} +6 -6
- package/dist/cli/{csv-SYSDXFEM.mjs → csv-2PTVDNO6.mjs} +4 -4
- package/dist/cli/{csv-QMF4FWE7.js → csv-F5VAGX4K.js} +13 -13
- package/dist/cli/{db-Q7HURWRZ.mjs → db-IEDXAUF7.mjs} +6 -6
- package/dist/cli/{db-YSHPPA4H.js → db-Z3OIUFMM.js} +27 -27
- package/dist/cli/{describe-YGMQBV44.mjs → describe-QDANCTS3.mjs} +18 -18
- package/dist/cli/describe-VUTT5ZKU.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-MWBC5TAW.js → executions-H6H5655J.js} +8 -8
- package/dist/cli/{executions-G7U3VUXN.mjs → executions-R3LP74QN.mjs} +6 -6
- package/dist/cli/{feedback-SD55OY6H.js → feedback-VFOUR66B.js} +14 -14
- package/dist/cli/{feedback-GMHIFLBJ.mjs → feedback-WL3MRVT5.mjs} +6 -6
- package/dist/cli/git-ETB3GH3K.js +25 -0
- package/dist/cli/{git-HPE45OPD.mjs → git-YX2J4GCI.mjs} +5 -5
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-2W4MGIQR.mjs → integrations-5ZK5KLVP.mjs} +7 -7
- package/dist/cli/{integrations-HFKVBY6G.js → integrations-E2JZYKHS.js} +15 -15
- package/dist/cli/{legacy-noops-SXVNDEXN.js → legacy-noops-3VW4IJTH.js} +9 -9
- package/dist/cli/{legacy-noops-GZYKNU2Z.mjs → legacy-noops-SMN3GSXY.mjs} +6 -6
- package/dist/cli/{mcp-PJRHQHHU.js → mcp-UQV2K4EW.js} +24 -24
- package/dist/cli/{mcp-BWA6KULG.mjs → mcp-V6MGCYAG.mjs} +4 -4
- package/dist/cli/{monitors-SYQKCATO.mjs → monitors-GGKS5W6M.mjs} +7 -7
- package/dist/cli/{monitors-K2WSI6CR.js → monitors-R3BBDCRC.js} +100 -100
- package/dist/cli/{org-YQ2CR32B.js → org-GRYVMNSW.js} +88 -88
- package/dist/cli/{org-5KD7X7IA.mjs → org-Z37NGJV4.mjs} +6 -6
- package/dist/cli/{play-SZXY2F2S.js → play-2MVO27VO.js} +319 -319
- package/dist/cli/{play-TTMABJEI.mjs → play-MDWPR4XG.mjs} +18 -18
- package/dist/cli/{providers-YDHCTZAF.js → providers-2AACRUZH.js} +9 -9
- package/dist/cli/{providers-GQIOMRQO.mjs → providers-AKDYFZJZ.mjs} +6 -6
- package/dist/cli/{quickstart-BNYOXQXG.js → quickstart-H6IV3PV3.js} +6 -6
- package/dist/cli/{quickstart-PHSSMKCA.mjs → quickstart-QDGRJFZY.mjs} +4 -4
- package/dist/cli/{run-GFIAZXVL.js → run-2634REDK.js} +43 -43
- package/dist/cli/{run-74C3C75C.mjs → run-RTSQNGRD.mjs} +23 -23
- package/dist/cli/{search-3SWUB7KX.mjs → search-6AOJ4XPP.mjs} +7 -7
- package/dist/cli/search-VTW2YNBS.js +32 -0
- package/dist/cli/{search-output-K2SWHVHQ.mjs → search-output-6ADMTOU5.mjs} +4 -4
- package/dist/cli/{search-output-6JF3S4TP.js → search-output-S5ODBL5E.js} +6 -6
- package/dist/cli/{secrets-2SAKLH2H.js → secrets-LHCIIHMT.js} +15 -15
- package/dist/cli/{secrets-2M4XWEKE.mjs → secrets-TFIFBFB3.mjs} +6 -6
- package/dist/cli/sessions-CJ4FJ2WB.js +22 -0
- package/dist/cli/{sessions-A64BCXTO.mjs → sessions-WHBVUHVW.mjs} +6 -6
- package/dist/cli/{settings-HV64WIJF.js → settings-CP4FVK2W.js} +85 -85
- package/dist/cli/{settings-SVGEC3FI.mjs → settings-EBONWL5C.mjs} +12 -12
- package/dist/cli/{setup-EDC3NEJ3.mjs → setup-I5AZE3IU.mjs} +9 -9
- package/dist/cli/{setup-FHXOLQGQ.js → setup-LFGHTNLQ.js} +49 -49
- package/dist/cli/skills-R7EBXREW.js +36 -0
- package/dist/cli/{skills-3HGHZMXB.mjs → skills-W76AO5XE.mjs} +7 -7
- package/dist/cli/{tools-P2QS6A6Q.mjs → tools-7IJHGF6W.mjs} +17 -17
- package/dist/cli/tools-V7U2BDXM.js +57 -0
- package/dist/cli/update-4COPZETK.js +34 -0
- package/dist/cli/{update-552BYQM4.mjs → update-GFOPZTHY.mjs} +9 -9
- package/dist/cli/{views-PA25NAE3.js → views-BPL2TQJ4.js} +21 -21
- package/dist/cli/{views-LD5HXJYY.mjs → views-D4NX4SBG.mjs} +6 -6
- package/dist/cli/{workflow-LDYFGBYP.mjs → workflow-YXP42FUI.mjs} +7 -7
- package/dist/cli/{workflow-FIDBUQV6.js → workflow-ZYNAUCKC.js} +17 -17
- package/dist/{client-t9HZAkFD.d.ts → client-Bf3IpUKN.d.ts} +1 -1
- package/dist/{client-DuDFiJDU.d.mts → client-CyXGrO4D.d.mts} +1 -1
- package/dist/{client-core-CJRzLanv.d.ts → client-core-BWd0lX0Z.d.ts} +17 -0
- package/dist/{client-core-DydMQOft.d.mts → client-core-BxsLnXlm.d.mts} +17 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +119 -118
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +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 +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-B4PI7GVY.js +0 -43
- package/dist/cli/concurrent-runs-help-JEFQZTJI.js +0 -21
- package/dist/cli/describe-PXTSBJTL.js +0 -50
- package/dist/cli/git-I3JV7IGH.js +0 -25
- package/dist/cli/search-2RRRF4LW.js +0 -32
- package/dist/cli/sessions-SBH27JNW.js +0 -22
- package/dist/cli/skills-Y3SRLOYD.js +0 -36
- package/dist/cli/tools-OFYPUPUV.js +0 -57
- package/dist/cli/update-SOUSCLB7.js +0 -34
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MF7PCM6C.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z5TSLLOW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-LX35AXTN.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6PRW5UBA.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-JL2OTMSG.mjs";
|
|
@@ -119,6 +119,7 @@ var PLAY_RUNNER_TERMINAL_GRACE_SECONDS = 90;
|
|
|
119
119
|
var PLAY_RUNNER_STARTUP_GRACE_SECONDS = 4 * 60;
|
|
120
120
|
var SANDBOX_NETWORK_CUT_MAX_MS = 11 * 6e4;
|
|
121
121
|
var RUNNER_GATEWAY_CONNECTION_RETRY_BUDGET_MS = SANDBOX_NETWORK_CUT_MAX_MS + 6e4;
|
|
122
|
+
var RUNNER_GATEWAY_SCHEDULER_UNAVAILABLE_RETRY_BUDGET_MS = 3 * 6e4;
|
|
122
123
|
var PLAY_RUNNER_TIMEOUT_SECONDS = 40 * 60;
|
|
123
124
|
var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS = _chunkYGCKMI5Pjs.MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds + (PLAY_RUNNER_TIMEOUT_SECONDS - STANDARD_PLAY_RUNTIME_LIMIT_SECONDS);
|
|
124
125
|
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkRBEUVDZFjs = require('./chunk-RBEUVDZF.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -330,7 +330,7 @@ function buildEnvironmentContext() {
|
|
|
330
330
|
node_version: process.version,
|
|
331
331
|
runtime: "Node.js",
|
|
332
332
|
hostname: _os.hostname.call(void 0, ),
|
|
333
|
-
agent_runtime:
|
|
333
|
+
agent_runtime: _chunkRBEUVDZFjs.detectAgentRuntime.call(void 0, )
|
|
334
334
|
};
|
|
335
335
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
336
336
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -351,18 +351,18 @@ function buildEnvironmentContext() {
|
|
|
351
351
|
return context;
|
|
352
352
|
}
|
|
353
353
|
function failureReportHeaders(apiKey) {
|
|
354
|
-
const agentSessionId =
|
|
354
|
+
const agentSessionId = _chunkRBEUVDZFjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
355
355
|
return {
|
|
356
|
-
...
|
|
356
|
+
..._chunkRBEUVDZFjs.deploymentProtectionHeaders.call(void 0, ),
|
|
357
357
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
358
358
|
Authorization: `Bearer ${apiKey}`,
|
|
359
359
|
"Content-Type": "application/json",
|
|
360
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
360
|
+
"User-Agent": `deepline-ts-sdk/${_chunkRBEUVDZFjs.SDK_VERSION}`,
|
|
361
361
|
"X-Deepline-Client-Family": "sdk",
|
|
362
362
|
"X-Deepline-CLI-Family": "sdk",
|
|
363
|
-
"X-Deepline-Agent-Runtime":
|
|
364
|
-
"X-Deepline-CLI-Version":
|
|
365
|
-
"X-Deepline-SDK-Version":
|
|
363
|
+
"X-Deepline-Agent-Runtime": _chunkRBEUVDZFjs.detectAgentRuntime.call(void 0, ),
|
|
364
|
+
"X-Deepline-CLI-Version": _chunkRBEUVDZFjs.SDK_VERSION,
|
|
365
|
+
"X-Deepline-SDK-Version": _chunkRBEUVDZFjs.SDK_VERSION
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
async function postFailureReport(input) {
|
|
@@ -390,7 +390,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
390
390
|
if (isFailureReportingDisabled()) return false;
|
|
391
391
|
let apiKey = "";
|
|
392
392
|
try {
|
|
393
|
-
apiKey =
|
|
393
|
+
apiKey = _chunk7IKQKKNXjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
394
394
|
} catch (e2) {
|
|
395
395
|
return false;
|
|
396
396
|
}
|
|
@@ -417,7 +417,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
417
417
|
failure_code: failureCode2,
|
|
418
418
|
failure_stage: failureStage,
|
|
419
419
|
error_body: "Automatic Deepline skills installation failed.",
|
|
420
|
-
cli_version:
|
|
420
|
+
cli_version: _chunkRBEUVDZFjs.SDK_VERSION,
|
|
421
421
|
context: {
|
|
422
422
|
environment: buildEnvironmentContext(),
|
|
423
423
|
skills_sync: {
|
|
@@ -537,7 +537,7 @@ function buildFailureReport(input) {
|
|
|
537
537
|
failure_kind: failureKind,
|
|
538
538
|
failure_code: code,
|
|
539
539
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
540
|
-
cli_version:
|
|
540
|
+
cli_version: _chunkRBEUVDZFjs.SDK_VERSION,
|
|
541
541
|
context: {
|
|
542
542
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
543
543
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -557,8 +557,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
557
557
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
558
558
|
const exitCode = resolvedExitCode(input);
|
|
559
559
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
560
|
-
const baseUrl =
|
|
561
|
-
const apiKey =
|
|
560
|
+
const baseUrl = _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
561
|
+
const apiKey = _chunk7IKQKKNXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
562
562
|
if (!apiKey) return false;
|
|
563
563
|
return postFailureReport({
|
|
564
564
|
baseUrl,
|
|
@@ -682,8 +682,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
682
682
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
683
683
|
var defaultBrowserCommandRunner = childProcess;
|
|
684
684
|
function getAuthedHttpClient() {
|
|
685
|
-
const config =
|
|
686
|
-
return { config, http: new (0,
|
|
685
|
+
const config = _chunk7IKQKKNXjs.resolveConfig.call(void 0, );
|
|
686
|
+
return { config, http: new (0, _chunk7IKQKKNXjs.HttpClient)(config) };
|
|
687
687
|
}
|
|
688
688
|
function stableOsUserId() {
|
|
689
689
|
try {
|
|
@@ -1024,7 +1024,7 @@ function collectLocalEnvInfo() {
|
|
|
1024
1024
|
os: `${process.platform} ${process.arch}`,
|
|
1025
1025
|
node_version: process.version,
|
|
1026
1026
|
home_dir: homeDir,
|
|
1027
|
-
agent_runtime:
|
|
1027
|
+
agent_runtime: _chunkRBEUVDZFjs.detectAgentRuntime.call(void 0, )
|
|
1028
1028
|
};
|
|
1029
1029
|
const env = process.env;
|
|
1030
1030
|
const optional = {
|
|
@@ -1271,9 +1271,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
function withAgentCommandContext(value) {
|
|
1273
1273
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1274
|
-
return
|
|
1274
|
+
return _chunkRBEUVDZFjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1275
1275
|
...valueRecord,
|
|
1276
|
-
command_context:
|
|
1276
|
+
command_context: _chunk7IKQKKNXjs.resolveCliCommandContext.call(void 0, )
|
|
1277
1277
|
} : value;
|
|
1278
1278
|
}
|
|
1279
1279
|
function printJson(value, fields, options = {}) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DJ2JDK4O.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IYSTRCLX.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-YJHE3O5M.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6PRW5UBA.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4TALT2M3.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -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 _chunkVQALXEXOjs = require('./chunk-VQALXEXO.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 && !_chunkVQALXEXOjs.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 (_chunkVQALXEXOjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -1,19 +1,19 @@
|
|
|
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 _chunk77AAAGVBjs = require('./chunk-77AAAGVB.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIDVVIXPJjs = require('./chunk-IDVVIXPJ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk4MK42735js = require('./chunk-4MK42735.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk7IKQKKNXjs = require('./chunk-7IKQKKNX.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunk4MK42735js.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -557,8 +557,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
557
557
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
558
558
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
559
559
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
560
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
561
|
-
const npmGlobalInstallFlags =
|
|
560
|
+
const npmVersion = options.npmVersion === void 0 ? _chunk77AAAGVBjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
561
|
+
const npmGlobalInstallFlags = _chunk77AAAGVBjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
562
562
|
const args = installPrefix ? [
|
|
563
563
|
"install",
|
|
564
564
|
"-g",
|
|
@@ -568,7 +568,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
568
568
|
packageSpec
|
|
569
569
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
570
570
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
571
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
571
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk7IKQKKNXjs.autoDetectBaseUrl.call(void 0, )
|
|
572
572
|
);
|
|
573
573
|
return {
|
|
574
574
|
kind: "npm-global",
|
|
@@ -817,7 +817,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
817
817
|
function runCommand(command, args, env = process.env) {
|
|
818
818
|
return new Promise((resolveResult) => {
|
|
819
819
|
let output = "";
|
|
820
|
-
const plan =
|
|
820
|
+
const plan = _chunk4MK42735js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
821
821
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
822
822
|
windowsHide: true,
|
|
823
823
|
stdio: ["inherit", "pipe", "pipe"],
|
|
@@ -1201,14 +1201,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1201
1201
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1202
1202
|
}
|
|
1203
1203
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1204
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1204
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk7IKQKKNXjs.autoDetectBaseUrl));
|
|
1205
1205
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1206
1206
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1207
1207
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1208
1208
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1209
1209
|
process.stdout.write = (() => true);
|
|
1210
1210
|
try {
|
|
1211
|
-
const exitCode = await
|
|
1211
|
+
const exitCode = await _chunkIDVVIXPJjs.runSkillsCommand.call(void 0, { json: true });
|
|
1212
1212
|
if (exitCode !== 0) {
|
|
1213
1213
|
throw new Error(
|
|
1214
1214
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1279,11 +1279,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1279
1279
|
]
|
|
1280
1280
|
};
|
|
1281
1281
|
if (options.json && !options.executeWithJson) {
|
|
1282
|
-
|
|
1282
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1283
1283
|
return 0;
|
|
1284
1284
|
}
|
|
1285
1285
|
if (options.printCommand) {
|
|
1286
|
-
|
|
1286
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
1287
1287
|
{
|
|
1288
1288
|
...plan,
|
|
1289
1289
|
render: {
|
|
@@ -1296,7 +1296,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1296
1296
|
return 0;
|
|
1297
1297
|
}
|
|
1298
1298
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1299
|
-
|
|
1299
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1300
1300
|
return 0;
|
|
1301
1301
|
}
|
|
1302
1302
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1326,7 +1326,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1326
1326
|
);
|
|
1327
1327
|
}
|
|
1328
1328
|
if (options.executeWithJson && options.json) {
|
|
1329
|
-
|
|
1329
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0,
|
|
1330
1330
|
{
|
|
1331
1331
|
ok: true,
|
|
1332
1332
|
pinnedVersion
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AZQ264ID.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6PRW5UBA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
sdkCliStateDirPath,
|
|
15
15
|
skillsAgentPathSegment,
|
|
16
16
|
writeSdkSkillsLocalVersion
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-4TALT2M3.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_API_CONTRACT,
|
|
20
20
|
SDK_API_MAJOR,
|
|
21
21
|
SDK_VERSION,
|
|
22
22
|
deploymentProtectionHeaders,
|
|
23
23
|
detectAgentRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-YLTMXJFC.mjs";
|
|
25
25
|
import {
|
|
26
26
|
SDK_RELEASE
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AQWQ2BFX.mjs";
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
import { randomUUID } from "crypto";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-JL2OTMSG.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_RELEASE
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AQWQ2BFX.mjs";
|
|
21
21
|
|
|
22
22
|
// src/version.ts
|
|
23
23
|
var SDK_VERSION = SDK_RELEASE.version;
|
|
@@ -949,8 +949,12 @@ function parseRetryAfterHint(response) {
|
|
|
949
949
|
const header = response.headers.get("retry-after");
|
|
950
950
|
if (header) {
|
|
951
951
|
const seconds = Number(header);
|
|
952
|
-
if (Number.isFinite(seconds)
|
|
953
|
-
return { delayMs: seconds * 1e3, exact: false };
|
|
952
|
+
if (Number.isFinite(seconds)) {
|
|
953
|
+
return seconds > 0 ? { delayMs: seconds * 1e3, exact: false } : null;
|
|
954
|
+
}
|
|
955
|
+
const retryAtMs = Date.parse(header);
|
|
956
|
+
if (Number.isFinite(retryAtMs)) {
|
|
957
|
+
return { delayMs: Math.max(0, retryAtMs - Date.now()), exact: false };
|
|
954
958
|
}
|
|
955
959
|
}
|
|
956
960
|
return null;
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
38
38
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
39
39
|
SDK_API_MAJOR
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-YLTMXJFC.mjs";
|
|
41
41
|
import {
|
|
42
42
|
CustomerDbQueryOutcomeUnknownError
|
|
43
43
|
} from "./chunk-NURW5XH4.mjs";
|
|
@@ -3076,8 +3076,9 @@ var RUN_WATCH_STARTUP_POLL_INTERVAL_MS = 300;
|
|
|
3076
3076
|
var RUN_WATCH_STARTUP_WINDOW_MS = 6e3;
|
|
3077
3077
|
var RUN_WATCH_INTERACTIVE_POLL_INTERVAL_MS = 500;
|
|
3078
3078
|
var RUN_WATCH_INTERACTIVE_WINDOW_MS = 3e4;
|
|
3079
|
-
var RUN_WATCH_SERVER_WAIT_MS =
|
|
3080
|
-
var RUN_WATCH_SERVER_WAIT_FROM_START =
|
|
3079
|
+
var RUN_WATCH_SERVER_WAIT_MS = 2e4;
|
|
3080
|
+
var RUN_WATCH_SERVER_WAIT_FROM_START = true;
|
|
3081
|
+
var RUN_WATCH_HOLD_HEADER = "x-deepline-run-watch-hold";
|
|
3081
3082
|
var TERMINAL_LOG_PROJECTION_RETRY_LIMIT = 3;
|
|
3082
3083
|
function waitForNextPoll(ms, signal) {
|
|
3083
3084
|
if (signal?.aborted) {
|
|
@@ -3172,14 +3173,16 @@ async function* watchRunEvents(options) {
|
|
|
3172
3173
|
let outageNoticeSent = false;
|
|
3173
3174
|
let pollCount = 0;
|
|
3174
3175
|
let terminalLogProjectionRetries = 0;
|
|
3176
|
+
let serverHoldDeclined = false;
|
|
3175
3177
|
while (!signal?.aborted) {
|
|
3176
3178
|
const pollStartedAt = Date.now();
|
|
3177
3179
|
const poll = ++pollCount;
|
|
3178
3180
|
const watchedMs = pollStartedAt - watchStartedAt;
|
|
3179
3181
|
const pastStartup = watchedMs >= RUN_WATCH_STARTUP_WINDOW_MS;
|
|
3180
3182
|
const pastInteractive = watchedMs >= RUN_WATCH_INTERACTIVE_WINDOW_MS;
|
|
3181
|
-
const serverWaitMs = options.pollIntervalMs === void 0 && options.deferLogs && (pastStartup || RUN_WATCH_SERVER_WAIT_FROM_START) && RUN_WATCH_SERVER_WAIT_MS > 0 ? RUN_WATCH_SERVER_WAIT_MS : 0;
|
|
3182
|
-
const
|
|
3183
|
+
const serverWaitMs = options.pollIntervalMs === void 0 && options.deferLogs && !serverHoldDeclined && (pastStartup || RUN_WATCH_SERVER_WAIT_FROM_START) && RUN_WATCH_SERVER_WAIT_MS > 0 ? RUN_WATCH_SERVER_WAIT_MS : 0;
|
|
3184
|
+
const clientPollIntervalMs = options.pollIntervalMs ?? (pastInteractive ? RUN_WATCH_POLL_INTERVAL_MS : pastStartup ? RUN_WATCH_INTERACTIVE_POLL_INTERVAL_MS : RUN_WATCH_STARTUP_POLL_INTERVAL_MS);
|
|
3185
|
+
const pollIntervalMs = clientPollIntervalMs;
|
|
3183
3186
|
let snapshot;
|
|
3184
3187
|
let terminalStatus;
|
|
3185
3188
|
let responseStatus;
|
|
@@ -3203,10 +3206,13 @@ async function* watchRunEvents(options) {
|
|
|
3203
3206
|
serverWaitMs > 0 ? `${path}&waitForTerminalMs=${serverWaitMs}` : path,
|
|
3204
3207
|
{
|
|
3205
3208
|
signal,
|
|
3206
|
-
...options.onPoll ? {
|
|
3209
|
+
...options.onPoll || serverWaitMs > 0 ? {
|
|
3207
3210
|
onResponse: (response2) => {
|
|
3208
3211
|
responseStatus = response2.status;
|
|
3209
3212
|
serverTiming = response2.headers.get("server-timing") ?? void 0;
|
|
3213
|
+
if (serverWaitMs > 0 && response2.ok && response2.headers.get(RUN_WATCH_HOLD_HEADER) !== "applied") {
|
|
3214
|
+
serverHoldDeclined = true;
|
|
3215
|
+
}
|
|
3210
3216
|
}
|
|
3211
3217
|
} : {}
|
|
3212
3218
|
}
|
|
@@ -3226,7 +3232,9 @@ async function* watchRunEvents(options) {
|
|
|
3226
3232
|
if (signal?.aborted) {
|
|
3227
3233
|
return;
|
|
3228
3234
|
}
|
|
3229
|
-
|
|
3235
|
+
const heldTimeout = serverWaitMs > 0 && error instanceof DeeplineError && error.code === "NETWORK_TIMEOUT";
|
|
3236
|
+
if (heldTimeout) serverHoldDeclined = true;
|
|
3237
|
+
if (!heldTimeout && !isTransientPlayRunReadError(error)) {
|
|
3230
3238
|
throw error;
|
|
3231
3239
|
}
|
|
3232
3240
|
consecutiveFailures += 1;
|
|
@@ -6748,7 +6756,10 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6748
6756
|
action: options.action,
|
|
6749
6757
|
...options.action === "start_or_change" && options.billingEmail ? { billing_email: options.billingEmail } : {},
|
|
6750
6758
|
...options.targetPlanSku ? { target_plan_sku: options.targetPlanSku } : {},
|
|
6751
|
-
...options.action === "start_or_change" && options.promoCode ? { promo_code: options.promoCode } : {}
|
|
6759
|
+
...options.action === "start_or_change" && options.promoCode ? { promo_code: options.promoCode } : {},
|
|
6760
|
+
// Sent only for an annual purchase, so a monthly request's body (and
|
|
6761
|
+
// its idempotency hash) is unchanged.
|
|
6762
|
+
...options.action === "start_or_change" && options.billingInterval === "year" ? { billing_interval: "year" } : {}
|
|
6752
6763
|
},
|
|
6753
6764
|
{ "Idempotency-Key": idempotencyKey },
|
|
6754
6765
|
{ maxRetries: 0, exactUrlOnly: true }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QY3ZNU6Z.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6PRW5UBA.mjs";
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
import { Option } from "commander";
|
package/dist/cli/command-docs.js
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk4UUR4TCHjs = require('./chunk-4UUR4TCH.js');
|
|
11
11
|
require('./chunk-H4ALLC2X.js');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-V436Z54K.js');
|
|
13
13
|
require('./chunk-YGCKMI5P.js');
|
|
14
14
|
require('./chunk-COGTRVWW.js');
|
|
15
15
|
|
|
@@ -21,4 +21,4 @@ require('./chunk-COGTRVWW.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
exports.CLI_DOC_SURFACE =
|
|
24
|
+
exports.CLI_DOC_SURFACE = _chunk4UUR4TCHjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunk4UUR4TCHjs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunk4UUR4TCHjs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunk4UUR4TCHjs.commandDocKey; exports.helpDetailFromArgv = _chunk4UUR4TCHjs.helpDetailFromArgv; exports.renderActionExplanation = _chunk4UUR4TCHjs.renderActionExplanation; exports.renderCommandExplanation = _chunk4UUR4TCHjs.renderCommandExplanation; exports.renderDocText = _chunk4UUR4TCHjs.renderDocText;
|
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
renderActionExplanation,
|
|
8
8
|
renderCommandExplanation,
|
|
9
9
|
renderDocText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QX7LFGJR.mjs";
|
|
11
11
|
import "./chunk-2RIKOPIM.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-6ZORHRKB.mjs";
|
|
13
13
|
import "./chunk-7I4B6V2S.mjs";
|
|
14
14
|
import "./chunk-KRD6H754.mjs";
|
|
15
15
|
export {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkHO3XK3R7js = require('./chunk-HO3XK3R7.js');
|
|
6
|
+
require('./chunk-S46HWQKO.js');
|
|
7
|
+
require('./chunk-H4ALLC2X.js');
|
|
8
|
+
require('./chunk-VQALXEXO.js');
|
|
9
|
+
require('./chunk-7IKQKKNX.js');
|
|
10
|
+
require('./chunk-RBEUVDZF.js');
|
|
11
|
+
require('./chunk-EITMD3A5.js');
|
|
12
|
+
require('./chunk-XNYIZMNQ.js');
|
|
13
|
+
require('./chunk-BBTKAASQ.js');
|
|
14
|
+
require('./chunk-634ZDA3F.js');
|
|
15
|
+
require('./chunk-OG64RBAC.js');
|
|
16
|
+
require('./chunk-COGTRVWW.js');
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
exports.CONCURRENT_RUNS_HELP_COMMANDS = _chunkHO3XK3R7js.CONCURRENT_RUNS_HELP_COMMANDS; exports.concurrentRunsHelpStatus = _chunkHO3XK3R7js.concurrentRunsHelpStatus; exports.concurrentRunsLine = _chunkHO3XK3R7js.concurrentRunsLine;
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
CONCURRENT_RUNS_HELP_COMMANDS,
|
|
3
3
|
concurrentRunsHelpStatus,
|
|
4
4
|
concurrentRunsLine
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-HYC4MKGK.mjs";
|
|
6
|
+
import "./chunk-EOPEYCY7.mjs";
|
|
7
7
|
import "./chunk-2RIKOPIM.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-6PRW5UBA.mjs";
|
|
9
|
+
import "./chunk-4TALT2M3.mjs";
|
|
10
|
+
import "./chunk-YLTMXJFC.mjs";
|
|
11
11
|
import "./chunk-NURW5XH4.mjs";
|
|
12
12
|
import "./chunk-DLIRSHV6.mjs";
|
|
13
13
|
import "./chunk-JL2OTMSG.mjs";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-AQWQ2BFX.mjs";
|
|
15
15
|
import "./chunk-WZYKRD7T.mjs";
|
|
16
16
|
import "./chunk-KRD6H754.mjs";
|
|
17
17
|
export {
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-6PRW5UBA.mjs";
|
|
8
|
+
import "./chunk-4TALT2M3.mjs";
|
|
9
|
+
import "./chunk-YLTMXJFC.mjs";
|
|
10
10
|
import "./chunk-NURW5XH4.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-JL2OTMSG.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-AQWQ2BFX.mjs";
|
|
14
14
|
import "./chunk-WZYKRD7T.mjs";
|
|
15
15
|
import "./chunk-KRD6H754.mjs";
|
|
16
16
|
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
7
|
+
var _chunkVQALXEXOjs = require('./chunk-VQALXEXO.js');
|
|
8
|
+
require('./chunk-7IKQKKNX.js');
|
|
9
|
+
require('./chunk-RBEUVDZF.js');
|
|
10
10
|
require('./chunk-EITMD3A5.js');
|
|
11
11
|
require('./chunk-XNYIZMNQ.js');
|
|
12
12
|
require('./chunk-BBTKAASQ.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-634ZDA3F.js');
|
|
14
14
|
require('./chunk-OG64RBAC.js');
|
|
15
15
|
require('./chunk-COGTRVWW.js');
|
|
16
16
|
|
|
@@ -128,7 +128,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
128
128
|
column.length,
|
|
129
129
|
...rows.map((row) => {
|
|
130
130
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
131
|
-
return (verbose ? value :
|
|
131
|
+
return (verbose ? value : _chunkVQALXEXOjs.clip.call(void 0, value, 42)).length;
|
|
132
132
|
})
|
|
133
133
|
)
|
|
134
134
|
])
|
|
@@ -138,7 +138,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
138
138
|
const body = rows.map(
|
|
139
139
|
(row) => columns.map((column) => {
|
|
140
140
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
141
|
-
const display = verbose ? raw :
|
|
141
|
+
const display = verbose ? raw : _chunkVQALXEXOjs.clip.call(void 0, raw, 42);
|
|
142
142
|
return display.padEnd(widths[column]);
|
|
143
143
|
}).join(" | ")
|
|
144
144
|
);
|
|
@@ -158,7 +158,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
158
158
|
{ exitCode: 2 }
|
|
159
159
|
);
|
|
160
160
|
}
|
|
161
|
-
const allRows =
|
|
161
|
+
const allRows = _chunkVQALXEXOjs.readCsvRows.call(void 0, csvPath);
|
|
162
162
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
163
163
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
164
164
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -171,7 +171,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
171
171
|
if (options.summary) {
|
|
172
172
|
const summaries = summarizeColumns(selected, columns);
|
|
173
173
|
if (format === "json") {
|
|
174
|
-
|
|
174
|
+
_chunkVQALXEXOjs.printJson.call(void 0, {
|
|
175
175
|
rows: summaries,
|
|
176
176
|
total_rows: selected.length,
|
|
177
177
|
source_total_rows: allRows.length
|
|
@@ -180,7 +180,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
180
180
|
}
|
|
181
181
|
const displayRows = summaryDisplayRows(summaries);
|
|
182
182
|
if (format === "csv") {
|
|
183
|
-
process.stdout.write(
|
|
183
|
+
process.stdout.write(_chunkVQALXEXOjs.csvStringFromRows.call(void 0, displayRows));
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
process.stdout.write(
|
|
@@ -195,7 +195,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
197
|
if (format === "json") {
|
|
198
|
-
|
|
198
|
+
_chunkVQALXEXOjs.printJson.call(void 0, {
|
|
199
199
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
200
200
|
});
|
|
201
201
|
return;
|
|
@@ -443,7 +443,7 @@ async function handleCsvRenderStart(options) {
|
|
|
443
443
|
if (log) {
|
|
444
444
|
detail = `
|
|
445
445
|
CSV render log:
|
|
446
|
-
${
|
|
446
|
+
${_chunkVQALXEXOjs.clip.call(void 0, log, 2e3)}`;
|
|
447
447
|
}
|
|
448
448
|
} catch (e7) {
|
|
449
449
|
}
|
|
@@ -494,7 +494,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
494
494
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
495
495
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
496
496
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
497
|
-
|
|
497
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0, payload, {
|
|
498
498
|
json: options.json,
|
|
499
499
|
text: `${lines.join("\n")}
|
|
500
500
|
`
|
|
@@ -530,7 +530,7 @@ async function handleCsvRenderStop(options) {
|
|
|
530
530
|
};
|
|
531
531
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
532
532
|
` : "No running CSV render process found.\n";
|
|
533
|
-
|
|
533
|
+
_chunkVQALXEXOjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
534
534
|
}
|
|
535
535
|
async function handleCsvRender(action, options) {
|
|
536
536
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|