deepline 0.3.298 → 0.3.299
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/async-operation.ts +15 -2
- package/dist/cli/auth-4WFBFN3L.js +31 -0
- package/dist/cli/{auth-TJGQB4RK.mjs → auth-GWIEEZWL.mjs} +4 -4
- package/dist/cli/{billing-HSBXETYG.js → billing-K5EVUVEH.js} +70 -70
- package/dist/cli/{billing-BUHGVESC.mjs → billing-O5RAKWXK.mjs} +4 -4
- package/dist/cli/{chunk-NHNFNVLD.js → chunk-2BISKKLW.js} +57 -57
- package/dist/cli/{chunk-OXCFNXS5.js → chunk-3M3LQJUV.js} +26 -26
- package/dist/cli/{chunk-CVNG2LB7.js → chunk-4B7VWFHW.js} +15 -15
- package/dist/cli/{chunk-S5CEMBUJ.mjs → chunk-5465KL4F.mjs} +4 -4
- package/dist/cli/{chunk-IZKS7OGL.mjs → chunk-6ECTEH6V.mjs} +2 -2
- package/dist/cli/{chunk-YJX7FY4F.js → chunk-ACSNZYU3.js} +2 -2
- package/dist/cli/{chunk-YFNB2GPD.mjs → chunk-BQ63LCEL.mjs} +3 -3
- package/dist/cli/{chunk-FJTNI2TE.mjs → chunk-CJBMCJW7.mjs} +1 -1
- package/dist/cli/{chunk-B5R4IGNU.js → chunk-CL4YLYGW.js} +6 -6
- package/dist/cli/{chunk-4TOJTO4S.js → chunk-D2P4AM5M.js} +6 -6
- package/dist/cli/{chunk-2Q4LGPVP.js → chunk-DMTWRFPD.js} +4 -4
- package/dist/cli/{chunk-MJWD6SJR.mjs → chunk-FKKCGFQ2.mjs} +2 -2
- package/dist/cli/{chunk-RES6RQXX.mjs → chunk-FT2TIKOX.mjs} +2 -2
- package/dist/cli/{chunk-6IOQ43VG.mjs → chunk-QAEIUQPS.mjs} +1 -1
- package/dist/cli/{chunk-BUKTFUM7.js → chunk-REFGDIMC.js} +1 -1
- package/dist/cli/{chunk-YE5PJMFK.mjs → chunk-S34ZVHGJ.mjs} +1 -1
- package/dist/cli/{chunk-7ZA3OMYT.js → chunk-SJK2LSDQ.js} +6 -6
- package/dist/cli/{chunk-U6G52KUV.mjs → chunk-TRSF2X3K.mjs} +1 -1
- package/dist/cli/{chunk-XZNFOO5U.mjs → chunk-W2N5FICT.mjs} +1 -1
- package/dist/cli/{chunk-TOAXEXTC.js → chunk-WF7XMZAC.js} +6 -6
- package/dist/cli/{chunk-BXYKLY5T.js → chunk-XUMCCIOY.js} +48 -48
- package/dist/cli/{chunk-FT4JXVAD.mjs → chunk-ZWUOF7WR.mjs} +1 -1
- package/dist/cli/{client-2TV2OKUH.mjs → client-OXUEAZD2.mjs} +3 -3
- package/dist/cli/client-ZBLK3VOY.js +20 -0
- package/dist/cli/{csv-N2CI4OLO.js → csv-J24BXLDP.js} +12 -12
- package/dist/cli/{csv-7XFZ333H.mjs → csv-NV6QBRGT.mjs} +3 -3
- package/dist/cli/{db-UXTCDLUO.js → db-FL4N5LXG.js} +20 -20
- package/dist/cli/{db-R37F3UHM.mjs → db-IY4LHKLR.mjs} +4 -4
- package/dist/cli/{executions-SQ3CYCNF.mjs → executions-72PNXJWI.mjs} +4 -4
- package/dist/cli/{executions-AVGJESD2.js → executions-OYGLF6K2.js} +6 -6
- package/dist/cli/{feedback-VRUQVLR2.mjs → feedback-NGPJBTUS.mjs} +3 -3
- package/dist/cli/{feedback-DY5GZCHY.js → feedback-WHOLOKBU.js} +6 -6
- package/dist/cli/git-GD5I7YOP.js +23 -0
- package/dist/cli/{git-YCT5WDUM.mjs → git-HQKCORLT.mjs} +4 -4
- package/dist/cli/index.js +73 -73
- package/dist/cli/index.mjs +30 -30
- package/dist/cli/{legacy-noops-EC6NUDQG.js → legacy-noops-5RHXWONK.js} +7 -7
- package/dist/cli/{legacy-noops-TPKXHLEJ.mjs → legacy-noops-MCAHTGPU.mjs} +4 -4
- package/dist/cli/{monitors-RAJW7CTX.js → monitors-MC4QEQ7N.js} +85 -85
- package/dist/cli/{monitors-BVIPCPTM.mjs → monitors-X2KE6CL6.mjs} +4 -4
- package/dist/cli/{org-CYBSXWOL.js → org-75TWPW5D.js} +60 -60
- package/dist/cli/{org-FQ6DJMPU.mjs → org-YW6EKMHL.mjs} +4 -4
- package/dist/cli/{play-W5UAFX62.js → play-CAMPEI5I.js} +200 -200
- package/dist/cli/{play-5KQLW4UV.mjs → play-DEBY5SCV.mjs} +6 -6
- package/dist/cli/{providers-NPP7DKNJ.mjs → providers-IA77P6YJ.mjs} +4 -4
- package/dist/cli/{providers-2YN7WGZW.js → providers-VNOHQ2AS.js} +7 -7
- package/dist/cli/{quickstart-NRCBIY5D.mjs → quickstart-K7HQS543.mjs} +3 -3
- package/dist/cli/{quickstart-F3UEWVYN.js → quickstart-LDTV2HGI.js} +5 -5
- package/dist/cli/{search-3HZ7PFXE.mjs → search-536X3UCU.mjs} +5 -5
- package/dist/cli/{search-HOHTWO7A.js → search-SN5OPRXZ.js} +6 -6
- package/dist/cli/{secrets-ROFLUSZW.js → secrets-2EW56WXT.js} +13 -13
- package/dist/cli/{secrets-44DTR7F7.mjs → secrets-B3AJVZEX.mjs} +4 -4
- package/dist/cli/{sessions-U7T5MEHM.js → sessions-3VDMBHNS.js} +5 -5
- package/dist/cli/{sessions-ZGKRSQ7U.mjs → sessions-WBJUUGWS.mjs} +4 -4
- package/dist/cli/{settings-SAFOFNX3.js → settings-KABYSG3X.js} +74 -74
- package/dist/cli/{settings-WDAIAP72.mjs → settings-RLDDNKLV.mjs} +7 -7
- package/dist/cli/{setup-SO5Y5PPR.js → setup-CSOSGT4H.js} +41 -41
- package/dist/cli/{setup-VZWFB35G.mjs → setup-LXS6GANX.mjs} +6 -6
- package/dist/cli/{skills-YUNBWLQ2.mjs → skills-63SF5XTZ.mjs} +4 -4
- package/dist/cli/skills-C7MLZJEK.js +28 -0
- package/dist/cli/{tools-HSBS6CL6.mjs → tools-HNP35FVR.mjs} +5 -5
- package/dist/cli/{tools-HYYND5GY.js → tools-RHL5K6UA.js} +50 -50
- package/dist/cli/{update-MENMYHFK.mjs → update-BIUXK2GK.mjs} +6 -6
- package/dist/cli/update-NFJGKKZ6.js +28 -0
- package/dist/cli/{workflow-JZIB3YKI.js → workflow-45YNQNPE.js} +15 -15
- package/dist/cli/{workflow-TWGYS6II.mjs → workflow-EKLCRCUD.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-AQCORSG5.js +0 -31
- package/dist/cli/client-QKZ6CTWN.js +0 -20
- package/dist/cli/git-72HXNB6W.js +0 -23
- package/dist/cli/skills-PVOBZRLZ.js +0 -28
- package/dist/cli/update-KTAZKIHP.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 _chunkACSNZYU3js = require('./chunk-ACSNZYU3.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk2BISKKLWjs = require('./chunk-2BISKKLW.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkWF7XMZACjs = require('./chunk-WF7XMZAC.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkDMTWRFPDjs = require('./chunk-DMTWRFPD.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 = _chunk2BISKKLWjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"]);
|
|
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 ? _chunkACSNZYU3js.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
564
|
+
const npmGlobalInstallFlags = _chunkACSNZYU3js.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()]) || _chunkDMTWRFPDjs.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 = _chunk2BISKKLWjs.resolveShellSpawn.call(void 0, command, args);
|
|
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, () => ( _chunkDMTWRFPDjs.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 _chunk2BISKKLWjs.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
|
+
_chunkWF7XMZACjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1176
1176
|
return 0;
|
|
1177
1177
|
}
|
|
1178
1178
|
if (options.printCommand) {
|
|
1179
|
-
|
|
1179
|
+
_chunkWF7XMZACjs.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
|
+
_chunkWF7XMZACjs.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
|
+
_chunkWF7XMZACjs.printCommandEnvelope.call(void 0,
|
|
1223
1223
|
{
|
|
1224
1224
|
ok: true,
|
|
1225
1225
|
pinnedVersion
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZWUOF7WR.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FKKCGFQ2.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-TRSF2X3K.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-S34ZVHGJ.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TRSF2X3K.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S34ZVHGJ.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -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 _chunk2BISKKLWjs = require('./chunk-2BISKKLW.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 = _chunk2BISKKLWjs.resolveShellSpawn.call(void 0, "npm", ["--version"]);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CJBMCJW7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TRSF2X3K.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
sdkCliStateDirPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S34ZVHGJ.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/search-ref.ts
|
|
13
13
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -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 _chunkWF7XMZACjs = require('./chunk-WF7XMZAC.js');
|
|
5
5
|
|
|
6
6
|
// src/cli/commands/sessions.ts
|
|
7
7
|
|
|
@@ -420,7 +420,7 @@ function buildSessionUploadContent(raw) {
|
|
|
420
420
|
return { encodedContent: encoded, needsChunking: true };
|
|
421
421
|
}
|
|
422
422
|
async function uploadPayload(path, payload) {
|
|
423
|
-
const { http } =
|
|
423
|
+
const { http } = _chunkWF7XMZACjs.getAuthedHttpClient.call(void 0, );
|
|
424
424
|
return await http.post(path, payload);
|
|
425
425
|
}
|
|
426
426
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -452,7 +452,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
452
452
|
environments: sessions.map(() => detectShellContext()),
|
|
453
453
|
...options.rating ? { rating: options.rating } : {}
|
|
454
454
|
});
|
|
455
|
-
|
|
455
|
+
_chunkWF7XMZACjs.printCommandEnvelope.call(void 0,
|
|
456
456
|
{
|
|
457
457
|
...response,
|
|
458
458
|
ok: true,
|
|
@@ -481,7 +481,7 @@ async function handleSessionsSend(options) {
|
|
|
481
481
|
filename: _path.basename.call(void 0, filePath),
|
|
482
482
|
...rating ? { rating } : {}
|
|
483
483
|
});
|
|
484
|
-
|
|
484
|
+
_chunkWF7XMZACjs.printCommandEnvelope.call(void 0,
|
|
485
485
|
{
|
|
486
486
|
...response2,
|
|
487
487
|
ok: true,
|
|
@@ -530,7 +530,7 @@ async function handleSessionsSend(options) {
|
|
|
530
530
|
environment: detectShellContext(),
|
|
531
531
|
...rating ? { rating } : {}
|
|
532
532
|
});
|
|
533
|
-
|
|
533
|
+
_chunkWF7XMZACjs.printCommandEnvelope.call(void 0,
|
|
534
534
|
{
|
|
535
535
|
...response,
|
|
536
536
|
ok: true,
|
|
@@ -635,7 +635,7 @@ ${refreshMeta}
|
|
|
635
635
|
</body>
|
|
636
636
|
</html>`;
|
|
637
637
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
638
|
-
|
|
638
|
+
_chunkWF7XMZACjs.printCommandEnvelope.call(void 0,
|
|
639
639
|
{
|
|
640
640
|
ok: true,
|
|
641
641
|
file: outputPath,
|
|
@@ -1,20 +1,20 @@
|
|
|
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 _chunkSJK2LSDQjs = require('./chunk-SJK2LSDQ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkWF7XMZACjs = require('./chunk-WF7XMZAC.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkDMTWRFPDjs = require('./chunk-DMTWRFPD.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/search-ref.ts
|
|
13
13
|
var _fs = require('fs');
|
|
14
14
|
var _path = require('path');
|
|
15
15
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
16
16
|
function lastSearchPath() {
|
|
17
|
-
return _path.join.call(void 0,
|
|
17
|
+
return _path.join.call(void 0, _chunkDMTWRFPDjs.sdkCliStateDirPath.call(void 0, _chunkDMTWRFPDjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
18
18
|
}
|
|
19
19
|
function rememberSearchRef(searchRef) {
|
|
20
20
|
try {
|
|
@@ -82,7 +82,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
82
82
|
console.error(USAGE);
|
|
83
83
|
return 1;
|
|
84
84
|
}
|
|
85
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
85
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkSJK2LSDQjs.DeeplineClient)().search({
|
|
86
86
|
query,
|
|
87
87
|
types,
|
|
88
88
|
exclude,
|
|
@@ -95,7 +95,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
95
95
|
includeSearchDebug: Boolean(options.includeSearchDebug)
|
|
96
96
|
});
|
|
97
97
|
if (searchRef) rememberSearchRef(searchRef);
|
|
98
|
-
|
|
98
|
+
_chunkWF7XMZACjs.printCommandEnvelope.call(void 0, result, {
|
|
99
99
|
json: options.json === true
|
|
100
100
|
});
|
|
101
101
|
return 0;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkREFGDIMCjs = require('./chunk-REFGDIMC.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 = _chunkREFGDIMCjs.SDK_RELEASE.version;
|
|
725
|
+
var SDK_API_MAJOR = _chunkREFGDIMCjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
726
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkREFGDIMCjs.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 @@ import {
|
|
|
3
3
|
} from "./chunk-GAMFK2ZP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TRSF2X3K.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
sdkCliStateDirPath,
|
|
23
23
|
skillsAgentPathSegment,
|
|
24
24
|
writeSdkSkillsLocalVersion
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-S34ZVHGJ.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|
|
28
28
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TRSF2X3K.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-S34ZVHGJ.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -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.299",
|
|
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
|
|
@@ -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.299",
|
|
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
|
|
@@ -14,7 +14,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkDMTWRFPDjs = require('./chunk-DMTWRFPD.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -2191,8 +2191,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2191
2191
|
}
|
|
2192
2192
|
const receivers = _optionalChain([process, 'access', _95 => _95.env, 'access', _96 => _96.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _97 => _97.trim, 'call', _98 => _98()]);
|
|
2193
2193
|
return {
|
|
2194
|
-
[
|
|
2195
|
-
...receivers ? { [
|
|
2194
|
+
[_chunkDMTWRFPDjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2195
|
+
...receivers ? { [_chunkDMTWRFPDjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2196
2196
|
};
|
|
2197
2197
|
}
|
|
2198
2198
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2208,7 +2208,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2208
2208
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2209
2209
|
);
|
|
2210
2210
|
}
|
|
2211
|
-
return { [
|
|
2211
|
+
return { [_chunkDMTWRFPDjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2212
2212
|
}
|
|
2213
2213
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2214
2214
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -2509,8 +2509,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
2509
2509
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
2510
2510
|
*/
|
|
2511
2511
|
constructor(options) {
|
|
2512
|
-
this.config =
|
|
2513
|
-
this.http = new (0,
|
|
2512
|
+
this.config = _chunkDMTWRFPDjs.resolveConfig.call(void 0, options);
|
|
2513
|
+
this.http = new (0, _chunkDMTWRFPDjs.HttpClient)(this.config);
|
|
2514
2514
|
this.toolCalls = new ToolCalls(
|
|
2515
2515
|
this.http,
|
|
2516
2516
|
this.config.timeout,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDMTWRFPDjs = require('./chunk-DMTWRFPD.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 = _chunkDMTWRFPDjs.resolveConfig.call(void 0, );
|
|
140
|
+
return { config, http: new (0, _chunkDMTWRFPDjs.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: _chunkDMTWRFPDjs.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 _chunkDMTWRFPDjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
729
729
|
...valueRecord,
|
|
730
|
-
command_context:
|
|
730
|
+
command_context: _chunkDMTWRFPDjs.resolveCliCommandContext.call(void 0, )
|
|
731
731
|
} : value;
|
|
732
732
|
}
|
|
733
733
|
function printJson(value, fields) {
|