deepline 0.3.526 → 0.3.528
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/context.ts +141 -211
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +66 -1
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +135 -161
- package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +56 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +11 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +36 -6
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +59 -8
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-start-admission.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +16 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +25 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-claim-loop-timing.ts +145 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +48 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +316 -71
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +13 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +30 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +105 -13
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/result-receipt-policy.ts +10 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +50 -8
- package/dist/cli/auth-CWJZYLTB.js +43 -0
- package/dist/cli/{auth-JATW5XZE.mjs → auth-PPOTNK4T.mjs} +5 -5
- package/dist/cli/{billing-TSHBJIJS.js → billing-3C7T7CUQ.js} +79 -79
- package/dist/cli/{billing-UT5LIESH.mjs → billing-OEZUQ2K6.mjs} +6 -6
- package/dist/cli/{chunk-UWCEBS7F.js → chunk-237PKFIQ.js} +14 -14
- package/dist/cli/{chunk-TBQC2XS3.js → chunk-36UD7H7Y.js} +41 -41
- package/dist/cli/{chunk-26ULNPQ7.mjs → chunk-42ZSDTOC.mjs} +2 -2
- package/dist/cli/{chunk-O7WUATQC.js → chunk-4SBUXDKZ.js} +13 -13
- package/dist/cli/{chunk-SCLRGDF4.js → chunk-5MJ4CDAQ.js} +44 -44
- package/dist/cli/{chunk-BFH3DJYV.mjs → chunk-6OLQWQU5.mjs} +3 -3
- package/dist/cli/{chunk-UTCGCES2.js → chunk-7WZXUAQW.js} +7 -7
- package/dist/cli/{chunk-CYN2AHR6.js → chunk-7X3NLHI7.js} +6 -6
- package/dist/cli/{chunk-D5OEUPPM.js → chunk-ADZGTMLU.js} +98 -98
- package/dist/cli/{chunk-6COGHW7B.mjs → chunk-AFIAVG5T.mjs} +2 -2
- package/dist/cli/{chunk-BYEF4RBX.js → chunk-B3HQF2CA.js} +11 -11
- package/dist/cli/{chunk-DY2AT3JQ.mjs → chunk-B6YWCGVC.mjs} +10 -10
- package/dist/cli/{chunk-BVITYMBK.mjs → chunk-CMTY6SVY.mjs} +2 -2
- package/dist/cli/{chunk-WOLY6SU4.mjs → chunk-DCVNL5XN.mjs} +1 -1
- package/dist/cli/{chunk-6JMWATX5.mjs → chunk-FPHAUP55.mjs} +5 -5
- package/dist/cli/{chunk-7COEN3IR.js → chunk-FXYWEKUK.js} +4 -4
- package/dist/cli/{chunk-J5OXJ4JI.js → chunk-G7RTPKRJ.js} +2 -2
- package/dist/cli/{chunk-RZJWHL7L.js → chunk-GCBFSFLA.js} +5 -5
- package/dist/cli/{chunk-C3EW6I65.mjs → chunk-GFGFAAY2.mjs} +1 -1
- package/dist/cli/{chunk-XVIMOB2U.mjs → chunk-GP7E4TE4.mjs} +2 -2
- package/dist/cli/{chunk-HPACLONQ.mjs → chunk-GSBKODMU.mjs} +2 -2
- package/dist/cli/{chunk-EEYZLTXX.mjs → chunk-HJVNCRXY.mjs} +1 -1
- package/dist/cli/{chunk-WITNIMLE.js → chunk-IJAEYEJM.js} +3 -3
- package/dist/cli/{chunk-YNFPZVII.mjs → chunk-IM5XQ4DG.mjs} +5 -5
- package/dist/cli/{chunk-46HEYGLY.js → chunk-IXEEXYE2.js} +9 -9
- package/dist/cli/{chunk-MQB25LMV.mjs → chunk-IYCRX34W.mjs} +5 -5
- package/dist/cli/{chunk-6H56LKJB.js → chunk-KHVCHFE3.js} +16 -16
- package/dist/cli/{chunk-TVHDWS5U.mjs → chunk-KLGYBOGZ.mjs} +1 -1
- package/dist/cli/{chunk-UUIC2JFZ.mjs → chunk-KWIKFR7Y.mjs} +1 -1
- package/dist/cli/{chunk-ED2N4NRI.js → chunk-LT4IEJ6V.js} +16 -16
- package/dist/cli/{chunk-WBY3R55B.js → chunk-LU4EA3ET.js} +2 -2
- package/dist/cli/{chunk-477PXM65.js → chunk-MLNH4DK2.js} +22 -22
- package/dist/cli/{chunk-77RAGJIZ.mjs → chunk-NCOTOGTK.mjs} +2 -2
- package/dist/cli/{chunk-IMP7WR22.mjs → chunk-NZM4KWWV.mjs} +5 -5
- package/dist/cli/{chunk-B33J4YCC.js → chunk-OEI7YUEF.js} +3 -3
- package/dist/cli/{chunk-3MYI3IXW.js → chunk-OGVUT2KM.js} +7 -7
- package/dist/cli/{chunk-SJ6KUCGM.js → chunk-OVZSNBDJ.js} +53 -53
- package/dist/cli/{chunk-D2XMFXFM.mjs → chunk-PS2UYVAE.mjs} +6 -6
- package/dist/cli/{chunk-3ZEV5BS5.js → chunk-R5ZQVQ3K.js} +26 -26
- package/dist/cli/{chunk-TCLJXJAG.mjs → chunk-RC5CG5SE.mjs} +4 -4
- package/dist/cli/{chunk-6DHEV6IA.js → chunk-RFTBMEWL.js} +2 -2
- package/dist/cli/{chunk-2GJW4RAQ.mjs → chunk-RML3VSTN.mjs} +1 -1
- package/dist/cli/{chunk-2JNX3MDG.mjs → chunk-SP2KZ7SH.mjs} +1 -1
- package/dist/cli/{chunk-IWLDJQGV.mjs → chunk-T4QPRL3P.mjs} +3 -3
- package/dist/cli/{chunk-Y47OCS5V.mjs → chunk-ULUI2FEM.mjs} +1 -1
- package/dist/cli/{chunk-FMPGWAIR.js → chunk-WXHBD6H7.js} +1 -1
- package/dist/cli/{chunk-CDP3LMDT.js → chunk-XD2DRBPH.js} +6 -6
- package/dist/cli/{chunk-TXJW6RIM.mjs → chunk-Z25KC5V2.mjs} +1 -1
- package/dist/cli/{chunk-U6OUX47C.mjs → chunk-Z44S7VWO.mjs} +2 -2
- package/dist/cli/{chunk-F5KFGF45.js → chunk-ZFD5FJCZ.js} +5 -5
- package/dist/cli/{csv-4BLFRED6.mjs → csv-K7TRWOFJ.mjs} +4 -4
- package/dist/cli/{csv-KSJB5Z3M.js → csv-OTRVTHD2.js} +13 -13
- package/dist/cli/{db-OVW6C3DV.mjs → db-C7GQU3TZ.mjs} +6 -6
- package/dist/cli/{db-G7Z5CKO2.js → db-UO2ZFLFN.js} +27 -27
- package/dist/cli/describe-IK4UYJ5M.js +50 -0
- package/dist/cli/{describe-OEFTD7WQ.mjs → describe-LG4CPTIV.mjs} +18 -18
- package/dist/cli/{executions-O7USCBCW.js → executions-LHFVPO7E.js} +8 -8
- package/dist/cli/{executions-7ZKQ4ZU3.mjs → executions-P3INNVZE.mjs} +6 -6
- package/dist/cli/{feedback-KUBL5E3I.mjs → feedback-H22FWG63.mjs} +6 -6
- package/dist/cli/{feedback-Y55WCRIQ.js → feedback-M3HZQAWX.js} +14 -14
- package/dist/cli/git-72ADWRUQ.js +25 -0
- package/dist/cli/{git-C6ZAU5JA.mjs → git-G2N7PVFI.mjs} +5 -5
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-OVWX4KB3.js → legacy-noops-2RVROWBY.js} +9 -9
- package/dist/cli/{legacy-noops-MUXD4HRC.mjs → legacy-noops-LDYSWTL2.mjs} +6 -6
- package/dist/cli/{monitors-2ZSGBY52.mjs → monitors-IYT3VON7.mjs} +7 -7
- package/dist/cli/{monitors-3QVYGYWA.js → monitors-U4RE6KN5.js} +100 -100
- package/dist/cli/{org-RDSPE5FB.mjs → org-R3JE22GS.mjs} +6 -6
- package/dist/cli/{org-S6Z3SDLI.js → org-SO52ZGRP.js} +86 -86
- package/dist/cli/{pages-K5DSMHLJ.mjs → pages-5RLT5YTF.mjs} +6 -6
- package/dist/cli/{pages-VUWF2OR7.js → pages-SWXJQJXH.js} +18 -18
- package/dist/cli/{play-PZLXOYEX.mjs → play-2ELYCSXZ.mjs} +18 -18
- package/dist/cli/{play-SQOJTUFC.js → play-J4UXOQOJ.js} +317 -317
- package/dist/cli/{providers-AMIGP3D4.mjs → providers-IXITXHTS.mjs} +6 -6
- package/dist/cli/{providers-FZBEPUOI.js → providers-VVUDGV2D.js} +9 -9
- package/dist/cli/{quickstart-HNOQKGOF.mjs → quickstart-HQCGDPPL.mjs} +4 -4
- package/dist/cli/{quickstart-QIHZDBGM.js → quickstart-XPH6MT47.js} +6 -6
- package/dist/cli/{run-JDW6BDNT.mjs → run-H2HQPWC4.mjs} +23 -23
- package/dist/cli/{run-IQGM3TO2.js → run-OR646AC6.js} +41 -41
- package/dist/cli/search-D27DZH2D.js +33 -0
- package/dist/cli/{search-DMVUKJ23.mjs → search-MBPI5SBW.mjs} +8 -8
- package/dist/cli/{search-output-5UAPUUHH.mjs → search-output-CYOMJNRV.mjs} +4 -4
- package/dist/cli/{search-output-UUW6UNHF.js → search-output-YGNSHBXX.js} +6 -6
- package/dist/cli/{secrets-U532KN24.js → secrets-HVZKNNLZ.js} +15 -15
- package/dist/cli/{secrets-46KSTPFN.mjs → secrets-NK2CN7WI.mjs} +6 -6
- package/dist/cli/sessions-MTISSOZ4.js +22 -0
- package/dist/cli/{sessions-RUNWYHYX.mjs → sessions-NY4G427U.mjs} +6 -6
- package/dist/cli/{settings-O2A37FFA.js → settings-PVJRDEN2.js} +86 -86
- package/dist/cli/{settings-56L3WHCY.mjs → settings-RC4FGYY2.mjs} +13 -13
- package/dist/cli/{setup-ETFSMSCH.js → setup-B7QB4YV2.js} +50 -50
- package/dist/cli/{setup-Q27X6JZY.mjs → setup-YT3XSY6X.mjs} +10 -10
- package/dist/cli/{skills-WFQRZL4D.mjs → skills-5ILFNAHR.mjs} +8 -8
- package/dist/cli/skills-BHF35NLX.js +37 -0
- package/dist/cli/{tools-EV6CKJOX.mjs → tools-7PAY32OZ.mjs} +17 -17
- package/dist/cli/tools-W5BZ37L6.js +57 -0
- package/dist/cli/update-M65CGK42.js +35 -0
- package/dist/cli/{update-KIPPFVCH.mjs → update-Z27QYB6O.mjs} +10 -10
- package/dist/cli/{views-LMJXWD4N.mjs → views-2IANF6KR.mjs} +6 -6
- package/dist/cli/{views-DNZ2HFTA.js → views-NP2SCMOV.js} +18 -18
- package/dist/cli/{workflow-ZUDTIOK6.js → workflow-2GNQL646.js} +17 -17
- package/dist/cli/{workflow-3XKUQ73U.mjs → workflow-CAMEZLLY.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +105 -104
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-L2POG3LL.js +0 -43
- package/dist/cli/describe-KMYR2JBC.js +0 -50
- package/dist/cli/git-NBVQ3VGW.js +0 -25
- package/dist/cli/search-BNWRL3YY.js +0 -33
- package/dist/cli/sessions-JZUONXH4.js +0 -22
- package/dist/cli/skills-IKDJ5JDN.js +0 -37
- package/dist/cli/tools-B735AA67.js +0 -57
- package/dist/cli/update-CNNURAM3.js +0 -35
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoDetectBaseUrl,
|
|
3
3
|
resolveApiKeyForBaseUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-Z25KC5V2.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SDK_VERSION,
|
|
7
7
|
agentSessionIdFromEnvironment,
|
|
8
8
|
deploymentProtectionHeaders,
|
|
9
9
|
detectAgentRuntime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RML3VSTN.mjs";
|
|
11
11
|
import {
|
|
12
12
|
DeeplineError
|
|
13
13
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkGCBFSFLAjs = require('./chunk-GCBFSFLA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk237PKFIQjs = require('./chunk-237PKFIQ.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk7WZXUAQWjs = require('./chunk-7WZXUAQW.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkIJAEYEJMjs = require('./chunk-IJAEYEJM.js');
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
var _commander = require('commander');
|
|
@@ -24,7 +24,7 @@ var _fs = require('fs');
|
|
|
24
24
|
var _path = require('path');
|
|
25
25
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
26
26
|
function lastSearchPath() {
|
|
27
|
-
return _path.join.call(void 0,
|
|
27
|
+
return _path.join.call(void 0, _chunkIJAEYEJMjs.sdkCliStateDirPath.call(void 0, _chunkIJAEYEJMjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
28
28
|
}
|
|
29
29
|
function rememberSearchRef(searchRef) {
|
|
30
30
|
writeSearchRefs({ searchRef });
|
|
@@ -134,9 +134,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
console.error("--summary-width must be an integer of at least 2.");
|
|
135
135
|
return 1;
|
|
136
136
|
}
|
|
137
|
-
const client = new (0,
|
|
137
|
+
const client = new (0, _chunkGCBFSFLAjs.DeeplineClient)();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-YGNSHBXX.js")));
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -159,7 +159,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
159
159
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
160
160
|
if (!multiple) {
|
|
161
161
|
if (searchRef) rememberSearchRef(searchRef);
|
|
162
|
-
|
|
162
|
+
_chunk7WZXUAQWjs.printCommandEnvelope.call(void 0, result, { json, text });
|
|
163
163
|
return 0;
|
|
164
164
|
}
|
|
165
165
|
searches.push({ ...result, query });
|
|
@@ -173,8 +173,8 @@ ${text}`);
|
|
|
173
173
|
}
|
|
174
174
|
} catch (error) {
|
|
175
175
|
if (!multiple) throw error;
|
|
176
|
-
const payload =
|
|
177
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
176
|
+
const payload = _chunk7WZXUAQWjs.errorToJsonPayload.call(void 0, error);
|
|
177
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunk237PKFIQjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
178
178
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
179
179
|
if (!json) {
|
|
180
180
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -186,7 +186,7 @@ Search failed.
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
rememberSearchRefsByTool(refs);
|
|
189
|
-
|
|
189
|
+
_chunk7WZXUAQWjs.printCommandEnvelope.call(void 0,
|
|
190
190
|
{ searches },
|
|
191
191
|
{
|
|
192
192
|
json,
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GFGFAAY2.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IYCRX34W.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Capability,
|
|
12
12
|
arrayField,
|
|
@@ -46,10 +46,10 @@ import {
|
|
|
46
46
|
} from "./chunk-FIVKWNMT.mjs";
|
|
47
47
|
import {
|
|
48
48
|
DeeplineClient
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-GSBKODMU.mjs";
|
|
50
50
|
import {
|
|
51
51
|
validateExecutionIdempotencyKey
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-SP2KZ7SH.mjs";
|
|
53
53
|
import {
|
|
54
54
|
stableStringify
|
|
55
55
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -59,18 +59,18 @@ import {
|
|
|
59
59
|
maybeAutoUpdateAndRelaunch,
|
|
60
60
|
registerCompatibilityCatalog,
|
|
61
61
|
runToolExecuteStage
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-NZM4KWWV.mjs";
|
|
63
63
|
import {
|
|
64
64
|
isCliTraceEnabled,
|
|
65
65
|
recordCliTrace,
|
|
66
66
|
resolveCliMaintenancePolicy
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-DCVNL5XN.mjs";
|
|
68
68
|
import {
|
|
69
69
|
checkSdkCompatibility,
|
|
70
70
|
enforceSdkCompatibilityResponse,
|
|
71
71
|
flushDeferredSkillsSyncNotices,
|
|
72
72
|
syncSdkSkillsIfNeeded
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-IM5XQ4DG.mjs";
|
|
74
74
|
import {
|
|
75
75
|
printCommandEnvelope,
|
|
76
76
|
printCompactJson,
|
|
@@ -78,12 +78,12 @@ import {
|
|
|
78
78
|
printJsonError,
|
|
79
79
|
renderCommandEnvelopeText,
|
|
80
80
|
shouldEmitJson
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-GP7E4TE4.mjs";
|
|
82
82
|
import {
|
|
83
83
|
readSdkSkillsLocalVersion,
|
|
84
84
|
resolveConfig,
|
|
85
85
|
sdkCliStateDirPath
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-Z25KC5V2.mjs";
|
|
87
87
|
import {
|
|
88
88
|
DeeplineError
|
|
89
89
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -1066,7 +1066,7 @@ Examples:
|
|
|
1066
1066
|
process.exitCode = await narrowView();
|
|
1067
1067
|
return;
|
|
1068
1068
|
}
|
|
1069
|
-
const { describeAnything } = await import("./describe-
|
|
1069
|
+
const { describeAnything } = await import("./describe-LG4CPTIV.mjs");
|
|
1070
1070
|
process.exitCode = await describeAnything(
|
|
1071
1071
|
toolId,
|
|
1072
1072
|
{
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GP7E4TE4.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Z25KC5V2.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KLGYBOGZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RC5CG5SE.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IM5XQ4DG.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GP7E4TE4.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-Z25KC5V2.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -17,12 +17,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkWXHBD6H7js = require('./chunk-WXHBD6H7.js');
|
|
21
21
|
|
|
22
22
|
// src/version.ts
|
|
23
|
-
var SDK_VERSION =
|
|
24
|
-
var SDK_API_MAJOR =
|
|
25
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
23
|
+
var SDK_VERSION = _chunkWXHBD6H7js.SDK_RELEASE.version;
|
|
24
|
+
var SDK_API_MAJOR = _chunkWXHBD6H7js.SDK_RELEASE.contracts.api.currentMajor;
|
|
25
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkWXHBD6H7js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
26
26
|
|
|
27
27
|
// src/agent-runtime.ts
|
|
28
28
|
var _fs = require('fs');
|
|
@@ -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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7WZXUAQWjs = require('./chunk-7WZXUAQW.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunk7WZXUAQWjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkOGVUT2KMjs = require('./chunk-OGVUT2KM.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIJAEYEJMjs = require('./chunk-IJAEYEJM.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkOGVUT2KMjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkIJAEYEJMjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkIJAEYEJMjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z25KC5V2.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RML3VSTN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
readToolUpstreamResponse,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SP2KZ7SH.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Z25KC5V2.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -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.528",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "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."
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkFXYWEKUKjs = require('./chunk-FXYWEKUK.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkFXYWEKUKjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkFXYWEKUKjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ULUI2FEM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AFIAVG5T.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-Z25KC5V2.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-RML3VSTN.mjs";
|
|
25
25
|
import {
|
|
26
26
|
SDK_RELEASE
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-HJVNCRXY.mjs";
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
import { randomUUID } from "crypto";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkOGVUT2KMjs = require('./chunk-OGVUT2KM.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
|
|
@@ -11,7 +11,7 @@ var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk7WZXUAQWjs = require('./chunk-7WZXUAQW.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 = _chunk7WZXUAQWjs.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 ? _chunk7WZXUAQWjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk7WZXUAQWjs.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 = _chunkOGVUT2KMjs.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 : _chunkOGVUT2KMjs.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 : _chunk7WZXUAQWjs.parseJsonFields.call(void 0,
|
|
992
|
+
[...fullJson ? ["--full"] : [], ..._chunk7WZXUAQWjs.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 || _chunk7WZXUAQWjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
998
998
|
const verboseLogs = Boolean(
|
|
999
999
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1000
1000
|
);
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GSBKODMU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveSdkCliFailureExitCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AFIAVG5T.mjs";
|
|
10
10
|
import {
|
|
11
11
|
errorToJsonPayload,
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GP7E4TE4.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveConfig,
|
|
16
16
|
sdkCliStateDirPath
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-Z25KC5V2.mjs";
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
import { Option } from "commander";
|
|
@@ -136,7 +136,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
136
136
|
}
|
|
137
137
|
const client = new DeeplineClient();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await import("./search-output-CYOMJNRV.mjs");
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -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 _chunkRFTBMEWLjs = require('./chunk-RFTBMEWL.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk36UD7H7Yjs = require('./chunk-36UD7H7Y.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk5MJ4CDAQjs = require('./chunk-5MJ4CDAQ.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk7WZXUAQWjs = require('./chunk-7WZXUAQW.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkIJAEYEJMjs = require('./chunk-IJAEYEJM.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 = _chunk5MJ4CDAQjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkRFTBMEWLjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkRFTBMEWLjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkIJAEYEJMjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunk5MJ4CDAQjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkIJAEYEJMjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunk36UD7H7Yjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunk7WZXUAQWjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunk7WZXUAQWjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunk7WZXUAQWjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunk7WZXUAQWjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|