deepline 0.3.340 → 0.3.341
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/cli/auth-R7MYOAIT.js +31 -0
- package/dist/cli/{auth-AAHQCTJW.mjs → auth-VIQ6WBU5.mjs} +4 -4
- package/dist/cli/{billing-2X4SP44P.mjs → billing-7MIYVDBJ.mjs} +4 -4
- package/dist/cli/{billing-SBU4F4VS.js → billing-FW5TG3CQ.js} +71 -71
- package/dist/cli/{chunk-WDB7AIXJ.mjs → chunk-24RQUGMX.mjs} +6 -6
- package/dist/cli/{chunk-YODUXBLR.js → chunk-2DFZELZG.js} +225 -225
- package/dist/cli/{chunk-2IZ6RE5L.mjs → chunk-4LXK5CMK.mjs} +1 -1
- package/dist/cli/{chunk-YLDIZ7A3.js → chunk-5GQQMICZ.js} +9 -9
- package/dist/cli/{chunk-OD7LIBSF.mjs → chunk-5RSBKWF6.mjs} +2 -2
- package/dist/cli/{chunk-VLV2PVA2.js → chunk-7IT3B2BL.js} +8 -8
- package/dist/cli/{chunk-77YWQTE6.mjs → chunk-7ZBSHTYB.mjs} +4 -4
- package/dist/cli/{chunk-YAYAOUH3.js → chunk-AFCZAA2Y.js} +8 -8
- package/dist/cli/{chunk-URO52CD6.js → chunk-ASW2NN7E.js} +2 -2
- package/dist/cli/{chunk-XCB2WE4D.js → chunk-ATLE7AKN.js} +15 -15
- package/dist/cli/{chunk-DX37W6IS.mjs → chunk-BX6GJWBS.mjs} +3 -3
- package/dist/cli/{chunk-B2HJ2OFH.js → chunk-FH6IVCYY.js} +48 -48
- package/dist/cli/{chunk-N3X2DMF2.mjs → chunk-IWSPBSV7.mjs} +1 -1
- package/dist/cli/{chunk-M3KIBSVO.mjs → chunk-KIGZU235.mjs} +2 -2
- package/dist/cli/{chunk-A4LUPRGL.js → chunk-LT33BWLY.js} +6 -6
- package/dist/cli/{chunk-EQFYORNR.js → chunk-MGYI6JH2.js} +26 -26
- package/dist/cli/{chunk-NPPD5XT6.js → chunk-NUIPBZVP.js} +45 -45
- package/dist/cli/{chunk-AYAEVVB5.js → chunk-PIVZA4GI.js} +4 -4
- package/dist/cli/{chunk-6D77EBSR.mjs → chunk-TU3WZZG4.mjs} +5 -5
- package/dist/cli/{chunk-VMEJLJJD.mjs → chunk-TVNBP3CX.mjs} +1 -1
- package/dist/cli/{chunk-YRDTRTU4.mjs → chunk-U4VULGDJ.mjs} +2 -2
- package/dist/cli/{chunk-PLSVHYRC.mjs → chunk-VO4RF766.mjs} +1 -1
- package/dist/cli/{chunk-X6A7PAR6.js → chunk-WQ5LPOFC.js} +60 -60
- package/dist/cli/{chunk-6ONNP4XL.js → chunk-XQD53NOJ.js} +1 -1
- package/dist/cli/{chunk-LR66EFVU.mjs → chunk-Y2BTWBO7.mjs} +1 -1
- package/dist/cli/{chunk-AN3X5XIR.mjs → chunk-ZK7BK7OD.mjs} +2 -2
- package/dist/cli/{client-LKEH3EYO.mjs → client-5FQFKJS3.mjs} +3 -3
- package/dist/cli/client-HTXSC666.js +20 -0
- package/dist/cli/{csv-WDWQGVDN.mjs → csv-J7CGFUZO.mjs} +3 -3
- package/dist/cli/{csv-ZQIEH4Q3.js → csv-X5GUUDBX.js} +12 -12
- package/dist/cli/{db-KKC6CT3W.mjs → db-DXPCEPTU.mjs} +4 -4
- package/dist/cli/{db-CRQSATVK.js → db-SQXA3O74.js} +29 -29
- package/dist/cli/{describe-HGYOEBYE.js → describe-EQTSIVVZ.js} +15 -15
- package/dist/cli/{describe-YEVXHHHH.mjs → describe-VHW7FVBJ.mjs} +8 -8
- package/dist/cli/{executions-ISG5EEOO.js → executions-4XLP2D45.js} +6 -6
- package/dist/cli/{executions-MMNCPQNE.mjs → executions-OSF7KBAM.mjs} +4 -4
- package/dist/cli/{feedback-U5SC3CAL.js → feedback-7EBKMWNP.js} +7 -7
- package/dist/cli/{feedback-3HNMWGJA.mjs → feedback-HM4OG6GJ.mjs} +3 -3
- package/dist/cli/git-4VXVJGO6.js +23 -0
- package/dist/cli/{git-REGKM36C.mjs → git-LXIXK5ZP.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-KUIQG6VC.mjs → legacy-noops-HEDDLUOF.mjs} +4 -4
- package/dist/cli/{legacy-noops-GTUAF7TM.js → legacy-noops-O5TQI3GH.js} +7 -7
- package/dist/cli/{monitors-V5RFXFO5.js → monitors-334IBGT6.js} +85 -85
- package/dist/cli/{monitors-7IYKWVMJ.mjs → monitors-6EX3T2US.mjs} +4 -4
- package/dist/cli/{org-77BRBYNS.js → org-VWLMFKI7.js} +60 -60
- package/dist/cli/{org-RSN7GZN4.mjs → org-ZMKKQ5EY.mjs} +4 -4
- package/dist/cli/play-4OUTDB4O.js +153 -0
- package/dist/cli/{play-ZPWFRN3I.mjs → play-CSMPSPXC.mjs} +7 -7
- package/dist/cli/{providers-TVELPXNI.mjs → providers-PE4K7ZNQ.mjs} +4 -4
- package/dist/cli/{providers-2LD2BJUO.js → providers-Z3F3M67Z.js} +7 -7
- package/dist/cli/{quickstart-CYL2GNSK.js → quickstart-BBO4ZMFA.js} +5 -5
- package/dist/cli/{quickstart-7RUT33IL.mjs → quickstart-P6Q5NLOI.mjs} +3 -3
- package/dist/cli/search-6MGGRBOO.js +26 -0
- package/dist/cli/{search-GJURFP4W.mjs → search-WLQSHUO5.mjs} +5 -5
- package/dist/cli/{secrets-KWBPK5GP.js → secrets-IITTIRV2.js} +13 -13
- package/dist/cli/{secrets-L5LNMMSB.mjs → secrets-JAYFSPQL.mjs} +4 -4
- package/dist/cli/{sessions-5DWIUOGX.js → sessions-EAWCTMCB.js} +5 -5
- package/dist/cli/{sessions-5EAEXNJY.mjs → sessions-XIGZKWJG.mjs} +4 -4
- package/dist/cli/{settings-KBPJL4KI.js → settings-S6CF5T6U.js} +74 -74
- package/dist/cli/{settings-OPD6MT4Q.mjs → settings-XOZ3IVRT.mjs} +7 -7
- package/dist/cli/{setup-B5UDLN32.js → setup-PO6TJJ5P.js} +41 -41
- package/dist/cli/{setup-GFHBMHWJ.mjs → setup-QGS4YTRD.mjs} +6 -6
- package/dist/cli/skills-2LS3SJP6.js +28 -0
- package/dist/cli/{skills-3245BDMO.mjs → skills-I6ZYMTOV.mjs} +4 -4
- package/dist/cli/tools-JEO4GEFK.js +40 -0
- package/dist/cli/{tools-ZKXMREZU.mjs → tools-XLYFZCRO.mjs} +6 -6
- package/dist/cli/{update-NBHQD6N6.mjs → update-JTTZPF4K.mjs} +6 -6
- package/dist/cli/update-NYIWSIRQ.js +28 -0
- package/dist/cli/{workflow-5XYAE4BX.mjs → workflow-2R4X2YR5.mjs} +5 -5
- package/dist/cli/{workflow-T3IWKJI2.js → workflow-D2YLWJDP.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- 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/viewer/viewer.js +86 -11
- package/package.json +1 -1
- package/dist/cli/auth-WDM5N7LQ.js +0 -31
- package/dist/cli/client-2MTAJ6XW.js +0 -20
- package/dist/cli/git-BULAJZKJ.js +0 -23
- package/dist/cli/play-IKPMX4VZ.js +0 -153
- package/dist/cli/search-2ZFU42IA.js +0 -26
- package/dist/cli/skills-I5MHLBGC.js +0 -28
- package/dist/cli/tools-QQVNDK7W.js +0 -40
- package/dist/cli/update-6OCUCA4T.js +0 -28
|
@@ -15,7 +15,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
167
167
|
if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
|
|
168
168
|
// lost connections and explicitly unknown transaction resolution.
|
|
169
169
|
/^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
|
|
170
|
-
throw new (0,
|
|
170
|
+
throw new (0, _chunkPIVZA4GIjs.CustomerDbQueryOutcomeUnknownError)(
|
|
171
171
|
error,
|
|
172
172
|
plan.request.body.operation_key
|
|
173
173
|
);
|
|
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
175
175
|
throw error;
|
|
176
176
|
}
|
|
177
177
|
if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
|
|
178
|
-
throw new (0,
|
|
178
|
+
throw new (0, _chunkPIVZA4GIjs.CustomerDbQueryOutcomeUnknownError)(
|
|
179
179
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
180
180
|
"The SQL response did not contain a valid result.",
|
|
181
181
|
200,
|
|
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
186
186
|
}
|
|
187
187
|
const operation = result.operation;
|
|
188
188
|
if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
|
|
189
|
-
throw new (0,
|
|
189
|
+
throw new (0, _chunkPIVZA4GIjs.CustomerDbQueryOutcomeUnknownError)(
|
|
190
190
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
191
191
|
"The server did not confirm the original atomic SQL operation.",
|
|
192
192
|
200,
|
|
@@ -2875,8 +2875,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2875
2875
|
}
|
|
2876
2876
|
const receivers = _optionalChain([process, 'access', _102 => _102.env, 'access', _103 => _103.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _104 => _104.trim, 'call', _105 => _105()]);
|
|
2877
2877
|
return {
|
|
2878
|
-
[
|
|
2879
|
-
...receivers ? { [
|
|
2878
|
+
[_chunkPIVZA4GIjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2879
|
+
...receivers ? { [_chunkPIVZA4GIjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2880
2880
|
};
|
|
2881
2881
|
}
|
|
2882
2882
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2892,7 +2892,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2892
2892
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2893
2893
|
);
|
|
2894
2894
|
}
|
|
2895
|
-
return { [
|
|
2895
|
+
return { [_chunkPIVZA4GIjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2896
2896
|
}
|
|
2897
2897
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2898
2898
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3182,8 +3182,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3182
3182
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3183
3183
|
*/
|
|
3184
3184
|
constructor(options) {
|
|
3185
|
-
this.config =
|
|
3186
|
-
this.http = new (0,
|
|
3185
|
+
this.config = _chunkPIVZA4GIjs.resolveConfig.call(void 0, options);
|
|
3186
|
+
this.http = new (0, _chunkPIVZA4GIjs.HttpClient)(this.config);
|
|
3187
3187
|
this.toolCalls = new ToolCalls(
|
|
3188
3188
|
this.http,
|
|
3189
3189
|
this.config.timeout,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IWSPBSV7.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VO4RF766.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -1,21 +1,21 @@
|
|
|
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 _chunk5GQQMICZjs = require('./chunk-5GQQMICZ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLT33BWLYjs = require('./chunk-LT33BWLY.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/search-ref.ts
|
|
14
14
|
var _fs = require('fs');
|
|
15
15
|
var _path = require('path');
|
|
16
16
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
17
17
|
function lastSearchPath() {
|
|
18
|
-
return _path.join.call(void 0,
|
|
18
|
+
return _path.join.call(void 0, _chunkPIVZA4GIjs.sdkCliStateDirPath.call(void 0, _chunkPIVZA4GIjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
19
19
|
}
|
|
20
20
|
function rememberSearchRef(searchRef) {
|
|
21
21
|
try {
|
|
@@ -127,7 +127,7 @@ function searchRow(item) {
|
|
|
127
127
|
}
|
|
128
128
|
function renderSearchResults(result) {
|
|
129
129
|
if (result.results.length === 0)
|
|
130
|
-
return
|
|
130
|
+
return _chunkLT33BWLYjs.renderCommandEnvelopeText.call(void 0, result);
|
|
131
131
|
const rows = result.results.map(searchRow);
|
|
132
132
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
133
133
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -144,7 +144,7 @@ function renderSearchResults(result) {
|
|
|
144
144
|
actions: _optionalChain([render, 'optionalAccess', _9 => _9.actions])
|
|
145
145
|
};
|
|
146
146
|
const followUps = _optionalChain([remaining, 'access', _10 => _10.sections, 'optionalAccess', _11 => _11.length]) || _optionalChain([remaining, 'access', _12 => _12.actions, 'optionalAccess', _13 => _13.length]) ? `
|
|
147
|
-
${
|
|
147
|
+
${_chunkLT33BWLYjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
148
148
|
const notes = rows.flatMap(
|
|
149
149
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
150
150
|
);
|
|
@@ -224,7 +224,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
224
224
|
console.error(USAGE);
|
|
225
225
|
return 1;
|
|
226
226
|
}
|
|
227
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
227
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunk5GQQMICZjs.DeeplineClient)().search({
|
|
228
228
|
query,
|
|
229
229
|
types,
|
|
230
230
|
exclude,
|
|
@@ -238,7 +238,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
238
238
|
});
|
|
239
239
|
if (searchRef) rememberSearchRef(searchRef);
|
|
240
240
|
pointAtDescribe(result);
|
|
241
|
-
|
|
241
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0, result, {
|
|
242
242
|
json: options.json === true,
|
|
243
243
|
text: renderSearchResults(result)
|
|
244
244
|
});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4LXK5CMK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U4VULGDJ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IWSPBSV7.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VO4RF766.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkLT33BWLYjs = require('./chunk-LT33BWLY.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkPIVZA4GIjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
143
143
|
const cwd = process.cwd();
|
|
144
144
|
return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
|
|
145
145
|
(candidate) => sessionStartedInDirectory(candidate, cwd)
|
|
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
|
|
|
448
448
|
return { encodedContent: encoded, needsChunking: true };
|
|
449
449
|
}
|
|
450
450
|
async function uploadPayload(path, payload) {
|
|
451
|
-
const { http } =
|
|
451
|
+
const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
|
|
452
452
|
return await http.post(path, payload);
|
|
453
453
|
}
|
|
454
454
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
481
481
|
...options.rating ? { rating: options.rating } : {}
|
|
482
482
|
});
|
|
483
483
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
484
|
-
|
|
484
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
485
485
|
{
|
|
486
486
|
...response,
|
|
487
487
|
ok: true,
|
|
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
|
|
|
513
513
|
filename: _path.basename.call(void 0, filePath),
|
|
514
514
|
...rating ? { rating } : {}
|
|
515
515
|
});
|
|
516
|
-
|
|
516
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
517
517
|
{
|
|
518
518
|
...response2,
|
|
519
519
|
ok: true,
|
|
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
|
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
565
|
const sessionIds = built.map((session) => session.sessionId);
|
|
566
|
-
|
|
566
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
567
567
|
{
|
|
568
568
|
...response,
|
|
569
569
|
ok: true,
|
|
@@ -671,7 +671,7 @@ ${refreshMeta}
|
|
|
671
671
|
</body>
|
|
672
672
|
</html>`;
|
|
673
673
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
674
|
-
|
|
674
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
675
675
|
{
|
|
676
676
|
ok: true,
|
|
677
677
|
file: outputPath,
|
|
@@ -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 _chunkWQ5LPOFCjs = require('./chunk-WQ5LPOFC.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkWQ5LPOFCjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -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 _chunkASW2NN7Ejs = require('./chunk-ASW2NN7E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkWQ5LPOFCjs = require('./chunk-WQ5LPOFC.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkLT33BWLYjs = require('./chunk-LT33BWLY.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
|
|
|
489
489
|
}
|
|
490
490
|
function resolveNpmGlobalPrefix(env) {
|
|
491
491
|
try {
|
|
492
|
-
const plan =
|
|
492
|
+
const plan = _chunkWQ5LPOFCjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
493
493
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
494
494
|
encoding: "utf8",
|
|
495
495
|
env,
|
|
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
545
545
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
546
546
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
547
547
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
548
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
549
|
-
const npmGlobalInstallFlags =
|
|
548
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkASW2NN7Ejs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunkASW2NN7Ejs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
550
550
|
const args = installPrefix ? [
|
|
551
551
|
"install",
|
|
552
552
|
"-g",
|
|
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
packageSpec
|
|
557
557
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
558
558
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
559
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
559
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkPIVZA4GIjs.autoDetectBaseUrl.call(void 0, )
|
|
560
560
|
);
|
|
561
561
|
return {
|
|
562
562
|
kind: "npm-global",
|
|
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
703
703
|
function runCommand(command, args, env = process.env) {
|
|
704
704
|
return new Promise((resolveResult) => {
|
|
705
705
|
let output = "";
|
|
706
|
-
const plan =
|
|
706
|
+
const plan = _chunkWQ5LPOFCjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
707
707
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
708
708
|
stdio: ["inherit", "pipe", "pipe"],
|
|
709
709
|
shell: plan.shell,
|
|
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1079
1079
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1080
1080
|
}
|
|
1081
1081
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1082
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1082
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkPIVZA4GIjs.autoDetectBaseUrl));
|
|
1083
1083
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1084
1084
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1085
1085
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1086
1086
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1087
1087
|
process.stdout.write = (() => true);
|
|
1088
1088
|
try {
|
|
1089
|
-
const exitCode = await
|
|
1089
|
+
const exitCode = await _chunkWQ5LPOFCjs.runSkillsCommand.call(void 0, { json: true });
|
|
1090
1090
|
if (exitCode !== 0) {
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1157
1157
|
]
|
|
1158
1158
|
};
|
|
1159
1159
|
if (options.json && !options.executeWithJson) {
|
|
1160
|
-
|
|
1160
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
...plan,
|
|
1167
1167
|
render: {
|
|
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1174
1174
|
return 0;
|
|
1175
1175
|
}
|
|
1176
1176
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1177
|
-
|
|
1177
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
}
|
|
1180
1180
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
|
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.executeWithJson && options.json) {
|
|
1207
|
-
|
|
1207
|
+
_chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Y2BTWBO7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope,
|
|
6
6
|
renderCommandEnvelopeText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IWSPBSV7.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveConfig,
|
|
10
10
|
sdkCliStateDirPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VO4RF766.mjs";
|
|
12
12
|
|
|
13
13
|
// src/cli/search-ref.ts
|
|
14
14
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|