deepline 0.3.309 → 0.3.310
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/play-runtime/runner-backends/backends/daytona-lifecycle.ts +67 -14
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +4 -1
- package/dist/cli/auth-CP4YBO33.js +31 -0
- package/dist/cli/{auth-AA5SXOB6.mjs → auth-CS6NQ737.mjs} +4 -4
- package/dist/cli/{billing-6DJWMFV7.js → billing-7SIQJUEI.js} +70 -70
- package/dist/cli/{billing-CXUIXODY.mjs → billing-SDRP5BYV.mjs} +4 -4
- package/dist/cli/{chunk-6QWXPOZM.js → chunk-4YCPND5A.js} +2 -2
- package/dist/cli/{chunk-IQYTESPK.js → chunk-5VVRQY4Y.js} +6 -6
- package/dist/cli/{chunk-ATTN5BOA.mjs → chunk-7L27LIZO.mjs} +2 -2
- package/dist/cli/{chunk-A74BQEUC.mjs → chunk-AV4CJWNP.mjs} +175 -50
- package/dist/cli/{chunk-5VHI2LFM.js → chunk-D3HSRXCJ.js} +6 -6
- package/dist/cli/{chunk-52FXVKVC.js → chunk-DCUYMHHV.js} +48 -48
- package/dist/cli/{chunk-YBKMQLH2.mjs → chunk-HYACJPRJ.mjs} +1 -1
- package/dist/cli/{chunk-M2V27CEE.js → chunk-JVCD2CWD.js} +26 -26
- package/dist/cli/{chunk-3SZSFTLQ.js → chunk-KKAAKV77.js} +1 -1
- package/dist/cli/{chunk-TQ5BV5RT.mjs → chunk-LUJGLZCJ.mjs} +2 -2
- package/dist/cli/{chunk-N6P7NBX3.mjs → chunk-M4KGWEN2.mjs} +1 -1
- package/dist/cli/{chunk-CO5TGXG2.js → chunk-MWY35HT3.js} +250 -125
- package/dist/cli/{chunk-4SAHSARB.js → chunk-N2VXH4GK.js} +15 -15
- package/dist/cli/{chunk-W3CSORIT.mjs → chunk-NKRSVEP4.mjs} +1 -1
- package/dist/cli/{chunk-OTX2Z2Y7.mjs → chunk-NXFFT73P.mjs} +3 -3
- package/dist/cli/{chunk-GUUQJJBS.mjs → chunk-OJWZADOG.mjs} +1 -1
- package/dist/cli/{chunk-PAJVT47Z.js → chunk-PNNFR4L5.js} +6 -6
- package/dist/cli/{chunk-NZCFZXDP.js → chunk-QARMMLYE.js} +4 -4
- package/dist/cli/{chunk-V5PB43SQ.js → chunk-RYO6353O.js} +6 -6
- package/dist/cli/{chunk-YV5USGOP.mjs → chunk-T25I3M2J.mjs} +6 -6
- package/dist/cli/{chunk-3EVKBS6J.mjs → chunk-VN7Y4LVH.mjs} +1 -1
- package/dist/cli/{chunk-4A6BYN66.mjs → chunk-XOIOZ5JA.mjs} +2 -2
- package/dist/cli/{client-GXT2WRBH.mjs → client-G7HWPY6S.mjs} +3 -3
- package/dist/cli/client-MIVDO6SP.js +20 -0
- package/dist/cli/{csv-OLMTSK4E.mjs → csv-4JIXNZ6J.mjs} +3 -3
- package/dist/cli/{csv-FY7CVAUY.js → csv-6GDEDRY6.js} +12 -12
- package/dist/cli/{db-XHHF7SFB.js → db-MXNCRZNY.js} +20 -20
- package/dist/cli/{db-HWYKGEOK.mjs → db-TGAQ7XWX.mjs} +4 -4
- package/dist/cli/{executions-K2IJEKEN.js → executions-VEBKTUFZ.js} +6 -6
- package/dist/cli/{executions-5L7YUA7K.mjs → executions-XSGG4VCW.mjs} +4 -4
- package/dist/cli/{feedback-FZLBZKF7.js → feedback-GI3Q4RGW.js} +6 -6
- package/dist/cli/{feedback-BIN2IWO4.mjs → feedback-PY4ZCKEV.mjs} +3 -3
- package/dist/cli/git-5KB2XFJ6.js +23 -0
- package/dist/cli/{git-G4ULJPIH.mjs → git-7QAK7CKT.mjs} +4 -4
- package/dist/cli/index.js +73 -73
- package/dist/cli/index.mjs +30 -30
- package/dist/cli/{legacy-noops-TBTYKXMK.js → legacy-noops-2VT7K2VQ.js} +7 -7
- package/dist/cli/{legacy-noops-YBBLHKUV.mjs → legacy-noops-KCG3YZCN.mjs} +4 -4
- package/dist/cli/{monitors-PXBJTE6Q.js → monitors-7CLNZE7C.js} +85 -85
- package/dist/cli/{monitors-ZRNDHLTP.mjs → monitors-GTIHVO56.mjs} +4 -4
- package/dist/cli/{org-GR7CKJDU.mjs → org-FCPAM7NW.mjs} +4 -4
- package/dist/cli/{org-AUPHYG4W.js → org-HTA6MXVO.js} +60 -60
- package/dist/cli/{play-BXX6KDC5.js → play-Q5SVL5MG.js} +220 -220
- package/dist/cli/{play-7C4XXDLJ.mjs → play-YO22ZNSN.mjs} +6 -6
- package/dist/cli/{providers-2ALIWVHI.mjs → providers-25X5A5JC.mjs} +4 -4
- package/dist/cli/{providers-X3W5I7AI.js → providers-YHWPMW4J.js} +7 -7
- package/dist/cli/{quickstart-YU2FOUGV.js → quickstart-SLE7UMAK.js} +5 -5
- package/dist/cli/{quickstart-HFLMM6CB.mjs → quickstart-Z4CXNAQ3.mjs} +3 -3
- package/dist/cli/{search-5W6CX5FT.mjs → search-RQO3ZVKK.mjs} +5 -5
- package/dist/cli/{search-LBAPKYPL.js → search-UBWCREKT.js} +6 -6
- package/dist/cli/{secrets-N3LH3EFK.mjs → secrets-MV6MRXW5.mjs} +4 -4
- package/dist/cli/{secrets-4JYV6372.js → secrets-N37STTK4.js} +13 -13
- package/dist/cli/{sessions-4TCBDROP.mjs → sessions-4M2BUN2J.mjs} +4 -4
- package/dist/cli/{sessions-66MKLRBI.js → sessions-KBWZYHNE.js} +5 -5
- package/dist/cli/{settings-33RZDJOH.mjs → settings-EYMOSUED.mjs} +7 -7
- package/dist/cli/{settings-GQMXHDZN.js → settings-OCRYSYWC.js} +74 -74
- package/dist/cli/{setup-HU6LC4VR.js → setup-3UKEGBFB.js} +41 -41
- package/dist/cli/{setup-754356IS.mjs → setup-TUVPIGJV.mjs} +6 -6
- package/dist/cli/{skills-FLWPPQMH.mjs → skills-56ADS5BA.mjs} +4 -4
- package/dist/cli/skills-CUWFLZG4.js +28 -0
- package/dist/cli/{tools-IRLN4KYG.mjs → tools-M73P2E7K.mjs} +5 -5
- package/dist/cli/{tools-N4OW6HZK.js → tools-XSF6FCIM.js} +50 -50
- package/dist/cli/update-QOQRJM2S.js +28 -0
- package/dist/cli/{update-TOQOHGVE.mjs → update-Y6KMCBWD.mjs} +6 -6
- package/dist/cli/{workflow-WSYT32Y3.js → workflow-DHQ3NCVT.js} +15 -15
- package/dist/cli/{workflow-DRH7T3P4.mjs → workflow-DWKZA4FR.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +68 -68
- 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/package.json +1 -1
- package/dist/cli/auth-MXBOMMLC.js +0 -31
- package/dist/cli/client-B2MYCJW5.js +0 -20
- package/dist/cli/git-KSXSQSH2.js +0 -23
- package/dist/cli/skills-WWO2EIQU.js +0 -28
- package/dist/cli/update-CLSJ7ODP.js +0 -28
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4YCPND5Ajs = require('./chunk-4YCPND5A.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkMWY35HT3js = require('./chunk-MWY35HT3.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkRYO6353Ojs = require('./chunk-RYO6353O.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkQARMMLYEjs = require('./chunk-QARMMLYE.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -504,7 +504,7 @@ function normalizedNpmPrefix(value) {
|
|
|
504
504
|
}
|
|
505
505
|
function resolveNpmGlobalPrefix(env) {
|
|
506
506
|
try {
|
|
507
|
-
const plan =
|
|
507
|
+
const plan = _chunkMWY35HT3js.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
508
508
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
509
509
|
encoding: "utf8",
|
|
510
510
|
env,
|
|
@@ -560,8 +560,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
560
560
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
561
561
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
562
562
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
563
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
564
|
-
const npmGlobalInstallFlags =
|
|
563
|
+
const npmVersion = options.npmVersion === void 0 ? _chunk4YCPND5Ajs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
564
|
+
const npmGlobalInstallFlags = _chunk4YCPND5Ajs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
565
565
|
const args = installPrefix ? [
|
|
566
566
|
"install",
|
|
567
567
|
"-g",
|
|
@@ -571,7 +571,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
571
571
|
packageSpec
|
|
572
572
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
573
573
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
574
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
574
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkQARMMLYEjs.autoDetectBaseUrl.call(void 0, )
|
|
575
575
|
);
|
|
576
576
|
return {
|
|
577
577
|
kind: "npm-global",
|
|
@@ -718,7 +718,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
718
718
|
function runCommand(command, args, env = process.env) {
|
|
719
719
|
return new Promise((resolveResult) => {
|
|
720
720
|
let output = "";
|
|
721
|
-
const plan =
|
|
721
|
+
const plan = _chunkMWY35HT3js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
722
722
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
723
723
|
stdio: ["inherit", "pipe", "pipe"],
|
|
724
724
|
shell: plan.shell,
|
|
@@ -1094,14 +1094,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1094
1094
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1095
1095
|
}
|
|
1096
1096
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1097
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1097
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkQARMMLYEjs.autoDetectBaseUrl));
|
|
1098
1098
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1099
1099
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1100
1100
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1101
1101
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1102
1102
|
process.stdout.write = (() => true);
|
|
1103
1103
|
try {
|
|
1104
|
-
const exitCode = await
|
|
1104
|
+
const exitCode = await _chunkMWY35HT3js.runSkillsCommand.call(void 0, { json: true });
|
|
1105
1105
|
if (exitCode !== 0) {
|
|
1106
1106
|
throw new Error(
|
|
1107
1107
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1172,11 +1172,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1172
1172
|
]
|
|
1173
1173
|
};
|
|
1174
1174
|
if (options.json && !options.executeWithJson) {
|
|
1175
|
-
|
|
1175
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1176
1176
|
return 0;
|
|
1177
1177
|
}
|
|
1178
1178
|
if (options.printCommand) {
|
|
1179
|
-
|
|
1179
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0,
|
|
1180
1180
|
{
|
|
1181
1181
|
...plan,
|
|
1182
1182
|
render: {
|
|
@@ -1189,7 +1189,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1189
1189
|
return 0;
|
|
1190
1190
|
}
|
|
1191
1191
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1192
|
-
|
|
1192
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1193
1193
|
return 0;
|
|
1194
1194
|
}
|
|
1195
1195
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1219,7 +1219,7 @@ To retry with full installer output, run: deepline skills --json
|
|
|
1219
1219
|
);
|
|
1220
1220
|
}
|
|
1221
1221
|
if (options.executeWithJson && options.json) {
|
|
1222
|
-
|
|
1222
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0,
|
|
1223
1223
|
{
|
|
1224
1224
|
ok: true,
|
|
1225
1225
|
pinnedVersion
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NKRSVEP4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OJWZADOG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
sdkCliStateDirPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-M4KGWEN2.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/search-ref.ts
|
|
13
13
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -14,7 +14,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkQARMMLYEjs = require('./chunk-QARMMLYE.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -2743,8 +2743,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2743
2743
|
}
|
|
2744
2744
|
const receivers = _optionalChain([process, 'access', _102 => _102.env, 'access', _103 => _103.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _104 => _104.trim, 'call', _105 => _105()]);
|
|
2745
2745
|
return {
|
|
2746
|
-
[
|
|
2747
|
-
...receivers ? { [
|
|
2746
|
+
[_chunkQARMMLYEjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2747
|
+
...receivers ? { [_chunkQARMMLYEjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2748
2748
|
};
|
|
2749
2749
|
}
|
|
2750
2750
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2760,7 +2760,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2760
2760
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2761
2761
|
);
|
|
2762
2762
|
}
|
|
2763
|
-
return { [
|
|
2763
|
+
return { [_chunkQARMMLYEjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2764
2764
|
}
|
|
2765
2765
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2766
2766
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3061,8 +3061,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3061
3061
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3062
3062
|
*/
|
|
3063
3063
|
constructor(options) {
|
|
3064
|
-
this.config =
|
|
3065
|
-
this.http = new (0,
|
|
3064
|
+
this.config = _chunkQARMMLYEjs.resolveConfig.call(void 0, options);
|
|
3065
|
+
this.http = new (0, _chunkQARMMLYEjs.HttpClient)(this.config);
|
|
3066
3066
|
this.toolCalls = new ToolCalls(
|
|
3067
3067
|
this.http,
|
|
3068
3068
|
this.config.timeout,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKKAAKV77js = require('./chunk-KKAAKV77.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -721,9 +721,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
721
721
|
}
|
|
722
722
|
|
|
723
723
|
// src/version.ts
|
|
724
|
-
var SDK_VERSION =
|
|
725
|
-
var SDK_API_MAJOR =
|
|
726
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
724
|
+
var SDK_VERSION = _chunkKKAAKV77js.SDK_RELEASE.version;
|
|
725
|
+
var SDK_API_MAJOR = _chunkKKAAKV77js.SDK_RELEASE.contracts.api.currentMajor;
|
|
726
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkKKAAKV77js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
727
727
|
|
|
728
728
|
// src/agent-runtime.ts
|
|
729
729
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQARMMLYEjs = require('./chunk-QARMMLYE.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -136,8 +136,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
136
136
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
137
137
|
var defaultBrowserCommandRunner = childProcess;
|
|
138
138
|
function getAuthedHttpClient() {
|
|
139
|
-
const config =
|
|
140
|
-
return { config, http: new (0,
|
|
139
|
+
const config = _chunkQARMMLYEjs.resolveConfig.call(void 0, );
|
|
140
|
+
return { config, http: new (0, _chunkQARMMLYEjs.HttpClient)(config) };
|
|
141
141
|
}
|
|
142
142
|
function stableOsUserId() {
|
|
143
143
|
try {
|
|
@@ -477,7 +477,7 @@ function collectLocalEnvInfo() {
|
|
|
477
477
|
os: `${process.platform} ${process.arch}`,
|
|
478
478
|
node_version: process.version,
|
|
479
479
|
home_dir: homeDir,
|
|
480
|
-
agent_runtime:
|
|
480
|
+
agent_runtime: _chunkQARMMLYEjs.detectAgentRuntime.call(void 0, )
|
|
481
481
|
};
|
|
482
482
|
const env = process.env;
|
|
483
483
|
const optional = {
|
|
@@ -725,9 +725,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
725
725
|
}
|
|
726
726
|
function withAgentCommandContext(value) {
|
|
727
727
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
728
|
-
return
|
|
728
|
+
return _chunkQARMMLYEjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
729
729
|
...valueRecord,
|
|
730
|
-
command_context:
|
|
730
|
+
command_context: _chunkQARMMLYEjs.resolveCliCommandContext.call(void 0, )
|
|
731
731
|
} : value;
|
|
732
732
|
}
|
|
733
733
|
function printJson(value, fields) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XOIOZ5JA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AV4CJWNP.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OJWZADOG.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-M4KGWEN2.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -504,7 +504,7 @@ function normalizedNpmPrefix(value) {
|
|
|
504
504
|
}
|
|
505
505
|
function resolveNpmGlobalPrefix(env) {
|
|
506
506
|
try {
|
|
507
|
-
const plan = resolveShellSpawn("npm", ["prefix", "-g"]);
|
|
507
|
+
const plan = resolveShellSpawn("npm", ["prefix", "-g"], process.platform, env);
|
|
508
508
|
const result = spawnSync(plan.command, plan.args, {
|
|
509
509
|
encoding: "utf8",
|
|
510
510
|
env,
|
|
@@ -718,7 +718,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
718
718
|
function runCommand(command, args, env = process.env) {
|
|
719
719
|
return new Promise((resolveResult) => {
|
|
720
720
|
let output = "";
|
|
721
|
-
const plan = resolveShellSpawn(command, args);
|
|
721
|
+
const plan = resolveShellSpawn(command, args, process.platform, env);
|
|
722
722
|
const child = spawn(plan.command, plan.args, {
|
|
723
723
|
stdio: ["inherit", "pipe", "pipe"],
|
|
724
724
|
shell: plan.shell,
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.310",
|
|
53
53
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveShellSpawn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AV4CJWNP.mjs";
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
import { spawnSync } from "child_process";
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan = resolveShellSpawn("npm", ["--version"]);
|
|
16
|
+
const plan = resolveShellSpawn("npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = spawnSync(plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
MONITOR_JOB_PHASES,
|
|
4
4
|
MONITOR_JOB_RECONCILIATION_STATES,
|
|
5
5
|
MONITOR_JOB_STATES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NKRSVEP4.mjs";
|
|
7
7
|
import "./chunk-CBVIJSHF.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-M4KGWEN2.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-VN7Y4LVH.mjs";
|
|
11
11
|
import "./chunk-6IKARAYD.mjs";
|
|
12
12
|
import "./chunk-NXGCO4JB.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkPNNFR4L5js = require('./chunk-PNNFR4L5.js');
|
|
7
|
+
require('./chunk-LA46MMTL.js');
|
|
8
|
+
require('./chunk-QARMMLYE.js');
|
|
9
|
+
require('./chunk-XNYIZMNQ.js');
|
|
10
|
+
require('./chunk-KKAAKV77.js');
|
|
11
|
+
require('./chunk-S6R3OX7B.js');
|
|
12
|
+
require('./chunk-7P5AA3SN.js');
|
|
13
|
+
require('./chunk-OG64RBAC.js');
|
|
14
|
+
require('./chunk-COGTRVWW.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
exports.DeeplineClient = _chunkPNNFR4L5js.DeeplineClient; exports.MONITOR_JOB_PHASES = _chunkPNNFR4L5js.MONITOR_JOB_PHASES; exports.MONITOR_JOB_RECONCILIATION_STATES = _chunkPNNFR4L5js.MONITOR_JOB_RECONCILIATION_STATES; exports.MONITOR_JOB_STATES = _chunkPNNFR4L5js.MONITOR_JOB_STATES;
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-OJWZADOG.mjs";
|
|
8
|
+
import "./chunk-M4KGWEN2.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-VN7Y4LVH.mjs";
|
|
11
11
|
import "./chunk-NXGCO4JB.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkRYO6353Ojs = require('./chunk-RYO6353O.js');
|
|
8
|
+
require('./chunk-QARMMLYE.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-KKAAKV77.js');
|
|
11
11
|
require('./chunk-7P5AA3SN.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
@@ -126,7 +126,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
126
126
|
column.length,
|
|
127
127
|
...rows.map((row) => {
|
|
128
128
|
const value = _nullishCoalesce(row[column], () => ( ""));
|
|
129
|
-
return (verbose ? value :
|
|
129
|
+
return (verbose ? value : _chunkRYO6353Ojs.clip.call(void 0, value, 42)).length;
|
|
130
130
|
})
|
|
131
131
|
)
|
|
132
132
|
])
|
|
@@ -136,7 +136,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
|
|
|
136
136
|
const body = rows.map(
|
|
137
137
|
(row) => columns.map((column) => {
|
|
138
138
|
const raw = _nullishCoalesce(row[column], () => ( ""));
|
|
139
|
-
const display = verbose ? raw :
|
|
139
|
+
const display = verbose ? raw : _chunkRYO6353Ojs.clip.call(void 0, raw, 42);
|
|
140
140
|
return display.padEnd(widths[column]);
|
|
141
141
|
}).join(" | ")
|
|
142
142
|
);
|
|
@@ -156,7 +156,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
156
156
|
{ exitCode: 2 }
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
|
-
const allRows =
|
|
159
|
+
const allRows = _chunkRYO6353Ojs.readCsvRows.call(void 0, csvPath);
|
|
160
160
|
const [rowStart, rowEnd] = parseRowRange(options.rows);
|
|
161
161
|
const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
|
|
162
162
|
const { rows: selected, columns } = selectColumns(
|
|
@@ -169,7 +169,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
169
169
|
if (options.summary) {
|
|
170
170
|
const summaries = summarizeColumns(selected, columns);
|
|
171
171
|
if (format === "json") {
|
|
172
|
-
|
|
172
|
+
_chunkRYO6353Ojs.printJson.call(void 0, {
|
|
173
173
|
rows: summaries,
|
|
174
174
|
total_rows: selected.length,
|
|
175
175
|
source_total_rows: allRows.length
|
|
@@ -178,7 +178,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
178
178
|
}
|
|
179
179
|
const displayRows = summaryDisplayRows(summaries);
|
|
180
180
|
if (format === "csv") {
|
|
181
|
-
process.stdout.write(
|
|
181
|
+
process.stdout.write(_chunkRYO6353Ojs.csvStringFromRows.call(void 0, displayRows));
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
184
|
process.stdout.write(
|
|
@@ -193,7 +193,7 @@ async function handleCsvShow(path, options, command) {
|
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
195
|
if (format === "json") {
|
|
196
|
-
|
|
196
|
+
_chunkRYO6353Ojs.printJson.call(void 0, {
|
|
197
197
|
rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
|
|
198
198
|
});
|
|
199
199
|
return;
|
|
@@ -436,7 +436,7 @@ async function handleCsvRenderStart(options) {
|
|
|
436
436
|
if (log) {
|
|
437
437
|
detail = `
|
|
438
438
|
CSV render log:
|
|
439
|
-
${
|
|
439
|
+
${_chunkRYO6353Ojs.clip.call(void 0, log, 2e3)}`;
|
|
440
440
|
}
|
|
441
441
|
} catch (e7) {
|
|
442
442
|
}
|
|
@@ -487,7 +487,7 @@ async function handleCsvRenderStatus(options) {
|
|
|
487
487
|
if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
|
|
488
488
|
if (payload.url) lines.push(`Render URL: ${payload.url}`);
|
|
489
489
|
lines.push(`Render Health: ${payload.health_status}`);
|
|
490
|
-
|
|
490
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0, payload, {
|
|
491
491
|
json: options.json,
|
|
492
492
|
text: `${lines.join("\n")}
|
|
493
493
|
`
|
|
@@ -523,7 +523,7 @@ async function handleCsvRenderStop(options) {
|
|
|
523
523
|
};
|
|
524
524
|
const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
|
|
525
525
|
` : "No running CSV render process found.\n";
|
|
526
|
-
|
|
526
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
|
|
527
527
|
}
|
|
528
528
|
async function handleCsvRender(action, options) {
|
|
529
529
|
const normalized = _nullishCoalesce(action, () => ( "start"));
|
|
@@ -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(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPNNFR4L5js = require('./chunk-PNNFR4L5.js');
|
|
4
4
|
require('./chunk-LA46MMTL.js');
|
|
5
5
|
|
|
6
6
|
|
|
@@ -10,10 +10,10 @@ require('./chunk-LA46MMTL.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
require('./chunk-
|
|
13
|
+
var _chunkRYO6353Ojs = require('./chunk-RYO6353O.js');
|
|
14
|
+
require('./chunk-QARMMLYE.js');
|
|
15
15
|
require('./chunk-XNYIZMNQ.js');
|
|
16
|
-
require('./chunk-
|
|
16
|
+
require('./chunk-KKAAKV77.js');
|
|
17
17
|
require('./chunk-S6R3OX7B.js');
|
|
18
18
|
|
|
19
19
|
|
|
@@ -48,8 +48,8 @@ function formatCell(value) {
|
|
|
48
48
|
return text.length > 80 ? `${text.slice(0, 77)}...` : text;
|
|
49
49
|
}
|
|
50
50
|
function tableLines(result) {
|
|
51
|
-
const rows =
|
|
52
|
-
const responseColumns =
|
|
51
|
+
const rows = _chunkRYO6353Ojs.dataExportRows.call(void 0, customerDbRows(result));
|
|
52
|
+
const responseColumns = _chunkRYO6353Ojs.dataExportColumns.call(void 0,
|
|
53
53
|
rows,
|
|
54
54
|
customerDbColumnNames(result)
|
|
55
55
|
);
|
|
@@ -95,7 +95,7 @@ function tableLines(result) {
|
|
|
95
95
|
return lines;
|
|
96
96
|
}
|
|
97
97
|
function customerDbRows(result) {
|
|
98
|
-
return
|
|
98
|
+
return _chunkRYO6353Ojs.recordRows.call(void 0, result.rows);
|
|
99
99
|
}
|
|
100
100
|
function customerDbColumnNames(result) {
|
|
101
101
|
return result.columns.map((column) => column.name).filter(Boolean);
|
|
@@ -180,7 +180,7 @@ function writeCustomerDbCsv(result, outPath) {
|
|
|
180
180
|
const resolved = _path.resolve.call(void 0, outPath);
|
|
181
181
|
_fs.writeFileSync.call(void 0,
|
|
182
182
|
resolved,
|
|
183
|
-
|
|
183
|
+
_chunkRYO6353Ojs.dataExportCsvString.call(void 0, customerDbRows(result), customerDbColumnNames(result)),
|
|
184
184
|
"utf-8"
|
|
185
185
|
);
|
|
186
186
|
return resolved;
|
|
@@ -244,9 +244,9 @@ async function handleDbQuery(args) {
|
|
|
244
244
|
console.error("--out requires a path.");
|
|
245
245
|
return 1;
|
|
246
246
|
}
|
|
247
|
-
const jsonOutput =
|
|
247
|
+
const jsonOutput = _chunkRYO6353Ojs.argsWantJson.call(void 0, args);
|
|
248
248
|
const explicitJsonOutput = args.includes("--json");
|
|
249
|
-
const client = new (0,
|
|
249
|
+
const client = new (0, _chunkPNNFR4L5js.DeeplineClient)();
|
|
250
250
|
let result;
|
|
251
251
|
try {
|
|
252
252
|
result = await client.db.query({ sql, maxRows });
|
|
@@ -263,7 +263,7 @@ async function handleDbQuery(args) {
|
|
|
263
263
|
if (format === "csv") {
|
|
264
264
|
if (outPath) {
|
|
265
265
|
const exportedPath = writeCustomerDbCsv(result, outPath);
|
|
266
|
-
|
|
266
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0,
|
|
267
267
|
dbQueryExportEnvelope({
|
|
268
268
|
result,
|
|
269
269
|
format,
|
|
@@ -278,7 +278,7 @@ async function handleDbQuery(args) {
|
|
|
278
278
|
);
|
|
279
279
|
return 0;
|
|
280
280
|
}
|
|
281
|
-
|
|
281
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0,
|
|
282
282
|
dbQueryExportEnvelope({
|
|
283
283
|
result,
|
|
284
284
|
format,
|
|
@@ -287,7 +287,7 @@ async function handleDbQuery(args) {
|
|
|
287
287
|
}),
|
|
288
288
|
{
|
|
289
289
|
json: explicitJsonOutput,
|
|
290
|
-
text:
|
|
290
|
+
text: _chunkRYO6353Ojs.dataExportCsvString.call(void 0,
|
|
291
291
|
customerDbRows(result),
|
|
292
292
|
customerDbColumnNames(result)
|
|
293
293
|
)
|
|
@@ -296,14 +296,14 @@ async function handleDbQuery(args) {
|
|
|
296
296
|
return 0;
|
|
297
297
|
}
|
|
298
298
|
if (format === "markdown") {
|
|
299
|
-
const content =
|
|
299
|
+
const content = _chunkRYO6353Ojs.markdownTableFromRows.call(void 0,
|
|
300
300
|
customerDbRows(result),
|
|
301
301
|
customerDbColumnNames(result)
|
|
302
302
|
);
|
|
303
303
|
if (outPath) {
|
|
304
304
|
const exportedPath = _path.resolve.call(void 0, outPath);
|
|
305
305
|
_fs.writeFileSync.call(void 0, exportedPath, content, "utf-8");
|
|
306
|
-
|
|
306
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0,
|
|
307
307
|
dbQueryExportEnvelope({
|
|
308
308
|
result,
|
|
309
309
|
format,
|
|
@@ -318,7 +318,7 @@ async function handleDbQuery(args) {
|
|
|
318
318
|
);
|
|
319
319
|
return 0;
|
|
320
320
|
}
|
|
321
|
-
|
|
321
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0,
|
|
322
322
|
dbQueryExportEnvelope({
|
|
323
323
|
result,
|
|
324
324
|
format,
|
|
@@ -332,7 +332,7 @@ async function handleDbQuery(args) {
|
|
|
332
332
|
);
|
|
333
333
|
return 0;
|
|
334
334
|
}
|
|
335
|
-
|
|
335
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0,
|
|
336
336
|
{
|
|
337
337
|
...result,
|
|
338
338
|
next: { toolEquivalent: toolCommand },
|
|
@@ -350,8 +350,8 @@ async function handleDbQuery(args) {
|
|
|
350
350
|
async function handleDbRepair(args) {
|
|
351
351
|
const providerIndex = args.indexOf("--provider");
|
|
352
352
|
const provider = providerIndex >= 0 ? _optionalChain([args, 'access', _12 => _12[providerIndex + 1], 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) : void 0;
|
|
353
|
-
const jsonOutput =
|
|
354
|
-
const client = new (0,
|
|
353
|
+
const jsonOutput = _chunkRYO6353Ojs.argsWantJson.call(void 0, args);
|
|
354
|
+
const client = new (0, _chunkPNNFR4L5js.DeeplineClient)();
|
|
355
355
|
let result;
|
|
356
356
|
try {
|
|
357
357
|
result = await client.repairIngestionStorage(
|
|
@@ -367,7 +367,7 @@ async function handleDbRepair(args) {
|
|
|
367
367
|
console.error(errorMessage(error));
|
|
368
368
|
return 1;
|
|
369
369
|
}
|
|
370
|
-
|
|
370
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0,
|
|
371
371
|
{
|
|
372
372
|
command: "db repair",
|
|
373
373
|
status: result.status,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NKRSVEP4.mjs";
|
|
4
4
|
import "./chunk-CBVIJSHF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
argsWantJson,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
markdownTableFromRows,
|
|
11
11
|
printCommandEnvelope,
|
|
12
12
|
recordRows
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-OJWZADOG.mjs";
|
|
14
|
+
import "./chunk-M4KGWEN2.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-VN7Y4LVH.mjs";
|
|
17
17
|
import "./chunk-6IKARAYD.mjs";
|
|
18
18
|
import {
|
|
19
19
|
DeeplineError
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkPNNFR4L5js = require('./chunk-PNNFR4L5.js');
|
|
4
4
|
require('./chunk-LA46MMTL.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkRYO6353Ojs = require('./chunk-RYO6353O.js');
|
|
8
|
+
require('./chunk-QARMMLYE.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-KKAAKV77.js');
|
|
11
11
|
require('./chunk-S6R3OX7B.js');
|
|
12
12
|
require('./chunk-7P5AA3SN.js');
|
|
13
13
|
require('./chunk-OG64RBAC.js');
|
|
@@ -17,10 +17,10 @@ require('./chunk-COGTRVWW.js');
|
|
|
17
17
|
function registerExecutionsCommands(program) {
|
|
18
18
|
const executions = program.command("executions").description("Inspect and recover keyed tool executions.");
|
|
19
19
|
executions.command("get").description("Retrieve a tool execution by its idempotency key.").requiredOption("--idempotency-key <key>", "Stable execution recovery key").option("--json", "Emit the stable JSON response").action(async (options) => {
|
|
20
|
-
const result = await new (0,
|
|
20
|
+
const result = await new (0, _chunkPNNFR4L5js.DeeplineClient)().executions.getByKey(
|
|
21
21
|
options.idempotencyKey
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
_chunkRYO6353Ojs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
|