deepline 0.3.558 → 0.3.559
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/observability/redaction.ts +23 -1
- package/dist/bundling-sources/shared_libs/observability/telemetry.ts +4 -1
- package/dist/cli/auth-3SBMYRAJ.js +44 -0
- package/dist/cli/{auth-JJXTMFWH.mjs → auth-D6S6E7BL.mjs} +5 -5
- package/dist/cli/{billing-RBFJMAI5.mjs → billing-3BNTAYUY.mjs} +8 -8
- package/dist/cli/{billing-V3TJKUHY.js → billing-7YRVKWAU.js} +99 -99
- package/dist/cli/{chunk-6PIQC2XE.mjs → chunk-22Z2U5MW.mjs} +3 -3
- package/dist/cli/{chunk-QGJ4DYGE.js → chunk-24XWLHKJ.js} +1 -1
- package/dist/cli/{chunk-IS67LBNV.js → chunk-2YQGXPQ7.js} +2 -2
- package/dist/cli/{chunk-I57JNBKA.mjs → chunk-3MVBZ4XI.mjs} +5 -5
- package/dist/cli/{chunk-CEEUL7ER.mjs → chunk-53HQJS6D.mjs} +1 -1
- package/dist/cli/{chunk-BFM2RCC3.js → chunk-6BJHMXMA.js} +2 -2
- package/dist/cli/{chunk-QGDU23YW.js → chunk-A4KQZ6P5.js} +8 -8
- package/dist/cli/{chunk-LIS6UJSC.mjs → chunk-D7DXRFM2.mjs} +1 -1
- package/dist/cli/{chunk-YJ46MJMT.js → chunk-EEUJNR5K.js} +6 -6
- package/dist/cli/{chunk-C7BQBKRZ.js → chunk-EYL4V32Q.js} +4 -4
- package/dist/cli/{chunk-NADXF2C5.js → chunk-FDVSB4NF.js} +53 -53
- package/dist/cli/{chunk-P2MVPTFJ.mjs → chunk-FHMGNUOP.mjs} +1 -1
- package/dist/cli/{chunk-FCG42RQZ.js → chunk-G7IGOVPF.js} +20 -20
- package/dist/cli/{chunk-BHHCQGUY.mjs → chunk-GETMCDVX.mjs} +5 -5
- package/dist/cli/{chunk-A5MRMCMW.js → chunk-GFHBS7HG.js} +5 -5
- package/dist/cli/{chunk-7Q5I4KEG.mjs → chunk-GWS7XJI2.mjs} +4 -4
- package/dist/cli/{chunk-CG3R4ZFS.mjs → chunk-II33OPIO.mjs} +1 -1
- package/dist/cli/{chunk-YVWINBZL.js → chunk-IUDO463I.js} +20 -20
- package/dist/cli/{chunk-67J4K4G2.js → chunk-JME33A35.js} +15 -15
- package/dist/cli/{chunk-FH55SB63.js → chunk-JUTXZW3S.js} +7 -7
- package/dist/cli/{chunk-5V45LY6Y.js → chunk-K5BZF2VO.js} +9 -9
- package/dist/cli/{chunk-ARGJDP77.mjs → chunk-KACD2TYW.mjs} +2 -2
- package/dist/cli/{chunk-YBJSDL34.mjs → chunk-KGCY3MSS.mjs} +5 -5
- package/dist/cli/{chunk-6GBQNS6L.mjs → chunk-LTCV5BI2.mjs} +1 -1
- package/dist/cli/{chunk-4CTBC6Q7.js → chunk-LWOYDMYC.js} +3 -3
- package/dist/cli/{chunk-FF3BWNLL.mjs → chunk-MJ4JEJLL.mjs} +1 -1
- package/dist/cli/{chunk-KMNLER7F.mjs → chunk-MPEMAGZS.mjs} +11 -11
- package/dist/cli/{chunk-AL4QQKUK.mjs → chunk-MWZEGRY2.mjs} +2 -2
- package/dist/cli/{chunk-XPSSXKBT.mjs → chunk-OFC24U3N.mjs} +2 -2
- package/dist/cli/{chunk-VPJ663PV.js → chunk-OJ3FRPEP.js} +10 -10
- package/dist/cli/{chunk-DDI4LNVC.js → chunk-OSHKFYY4.js} +41 -41
- package/dist/cli/{chunk-D4GCU735.mjs → chunk-P2DFD2NG.mjs} +1 -1
- package/dist/cli/{chunk-M4CJGF53.js → chunk-PNFC7VHH.js} +5 -5
- package/dist/cli/{chunk-XV4DHKZ2.js → chunk-PQ52YTDB.js} +13 -13
- package/dist/cli/{chunk-MAN4IEO4.mjs → chunk-PZUBDHQ7.mjs} +4 -4
- package/dist/cli/{chunk-PAJLUB37.js → chunk-QGVOD6Y4.js} +100 -100
- package/dist/cli/{chunk-OWOUDGHO.js → chunk-QQ6AVBHW.js} +23 -23
- package/dist/cli/{chunk-7Q3EXOLC.js → chunk-SSE5P2CX.js} +12 -12
- package/dist/cli/{chunk-NAJAAIEE.js → chunk-TIMFDVUN.js} +48 -48
- package/dist/cli/{chunk-I3PX6NGG.js → chunk-TPLISQND.js} +5 -5
- package/dist/cli/{chunk-2FFZ5SEU.mjs → chunk-UA2VLWZH.mjs} +2 -2
- package/dist/cli/{chunk-DJAP2M5M.mjs → chunk-UHIOXXAO.mjs} +1 -1
- package/dist/cli/{chunk-GAQ6VSRS.mjs → chunk-URACGTQE.mjs} +1 -1
- package/dist/cli/{chunk-T6W7SKE7.mjs → chunk-VZKBLSTA.mjs} +2 -2
- package/dist/cli/{chunk-6LFPPAMD.js → chunk-WZUOUQZ3.js} +3 -3
- package/dist/cli/{chunk-RIQYBKHK.js → chunk-XNN45XYF.js} +2 -2
- package/dist/cli/{chunk-WJ7RY3PJ.mjs → chunk-XPS2UBYV.mjs} +3 -3
- package/dist/cli/{chunk-P3SLGOGA.mjs → chunk-XXZDT3U7.mjs} +2 -2
- package/dist/cli/{chunk-6BDLYZYL.js → chunk-YE7OCVI5.js} +26 -26
- package/dist/cli/{chunk-BWWLLK56.mjs → chunk-YFUFYV4M.mjs} +5 -5
- package/dist/cli/{chunk-4SVFZCCI.mjs → chunk-YODGCJPX.mjs} +2 -2
- package/dist/cli/{chunk-CB5DIX5K.mjs → chunk-ZMC5FEJN.mjs} +2 -2
- package/dist/cli/{concurrent-runs-help-ZWWMHCK4.mjs → concurrent-runs-help-FCAZLZNA.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-TVQO4USY.js +22 -0
- package/dist/cli/{csv-D76CXYOL.mjs → csv-BC26EB4B.mjs} +4 -4
- package/dist/cli/{csv-V2FR4SO2.js → csv-SCIQKZNH.js} +13 -13
- package/dist/cli/{db-B23O6Q4O.js → db-IJRJVIQ3.js} +27 -27
- package/dist/cli/{db-2D7PD7A3.mjs → db-RVOPGYKY.mjs} +6 -6
- package/dist/cli/describe-4FBGZZK5.js +50 -0
- package/dist/cli/{describe-3LG6VO3D.mjs → describe-K7CRL4PA.mjs} +18 -18
- package/dist/cli/{executions-4P4UBPMX.js → executions-IEVLTSXV.js} +8 -8
- package/dist/cli/{executions-ORWO4SR4.mjs → executions-PDOO2GFK.mjs} +6 -6
- package/dist/cli/{feedback-AY47IRDD.mjs → feedback-7YVUUROQ.mjs} +6 -6
- package/dist/cli/{feedback-LPHCSOJT.js → feedback-KHYOWTXA.js} +14 -14
- package/dist/cli/{git-LQGZNBZM.mjs → git-426CAP5S.mjs} +5 -5
- package/dist/cli/git-O6A2FVJE.js +26 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-QEOUALDR.js → integrations-BVHTRN3W.js} +15 -15
- package/dist/cli/{integrations-NEUZIBQT.mjs → integrations-TNJ4IELE.mjs} +7 -7
- package/dist/cli/{legacy-noops-4G3DXN57.mjs → legacy-noops-2GB35THO.mjs} +6 -6
- package/dist/cli/{legacy-noops-PUO5VKHN.js → legacy-noops-F73BMPBV.js} +9 -9
- package/dist/cli/{mcp-USM2QUKK.mjs → mcp-BAGMQXNR.mjs} +4 -4
- package/dist/cli/{mcp-EWAZKABW.js → mcp-KMTC7OBK.js} +24 -24
- package/dist/cli/{monitors-T6FJSZCP.mjs → monitors-ECONWLHL.mjs} +7 -7
- package/dist/cli/{monitors-2BI5J46A.js → monitors-O2BUIK7Q.js} +100 -100
- package/dist/cli/{org-V6V3E7F7.js → org-5NQQ4PRU.js} +121 -121
- package/dist/cli/{org-BT45O64S.mjs → org-AEZZBWA3.mjs} +6 -6
- package/dist/cli/{outcomes-B6RPHM6M.js → outcomes-IKEQKAF7.js} +14 -14
- package/dist/cli/{outcomes-2T6W554M.mjs → outcomes-ZWHAJH5I.mjs} +6 -6
- package/dist/cli/{play-CBBGJPRI.mjs → play-BVKLMTAS.mjs} +19 -19
- package/dist/cli/{play-YCFVGEWK.js → play-VDWB7FZ5.js} +324 -324
- package/dist/cli/{providers-AGRUGBIY.js → providers-RXT3Q5Q7.js} +9 -9
- package/dist/cli/{providers-RHBUQFFO.mjs → providers-SWRTGKJJ.mjs} +6 -6
- package/dist/cli/{quickstart-OPR5NLIQ.mjs → quickstart-GQVXM7XV.mjs} +4 -4
- package/dist/cli/{quickstart-6N2KPWII.js → quickstart-UJJNXI2S.js} +6 -6
- package/dist/cli/{run-HAU2STMQ.mjs → run-GDIEU622.mjs} +23 -23
- package/dist/cli/{run-MMANMS4E.js → run-WOTVRFGN.js} +44 -44
- package/dist/cli/{search-TGWQMQ2C.mjs → search-EWC7V6GT.mjs} +7 -7
- package/dist/cli/search-UIZHXBHR.js +32 -0
- package/dist/cli/{search-output-DZBYNJEO.mjs → search-output-FCW4R6Z4.mjs} +4 -4
- package/dist/cli/{search-output-VVM3DO2H.js → search-output-FL7STAYJ.js} +6 -6
- package/dist/cli/{secrets-V5WD552F.js → secrets-UXDUGONR.js} +15 -15
- package/dist/cli/{secrets-Z6NEKNWM.mjs → secrets-XG22PDCR.mjs} +6 -6
- package/dist/cli/{sessions-C5GNXSPB.mjs → sessions-2OKBG7FD.mjs} +6 -6
- package/dist/cli/sessions-DPYJFTCW.js +23 -0
- package/dist/cli/{settings-QUDVUIOJ.mjs → settings-EDYA2V4W.mjs} +12 -12
- package/dist/cli/{settings-EZPZXJDG.js → settings-RWN7YHK3.js} +85 -85
- package/dist/cli/{setup-QY5VVGWQ.js → setup-HA3PG3ST.js} +49 -49
- package/dist/cli/{setup-BCJBVQTI.mjs → setup-UZW2IHAT.mjs} +9 -9
- package/dist/cli/skills-RQ6V5TGY.js +37 -0
- package/dist/cli/{skills-LY2WZ22U.mjs → skills-V4KAUQQA.mjs} +7 -7
- package/dist/cli/{tools-FNCTTFWA.mjs → tools-HFUGLYHU.mjs} +17 -17
- package/dist/cli/tools-NGQKXMHP.js +57 -0
- package/dist/cli/{update-YKQAC4AQ.mjs → update-S3KEH7P2.mjs} +9 -9
- package/dist/cli/update-SJJK6XXM.js +37 -0
- package/dist/cli/{views-NBTOBB67.js → views-QH5L37UW.js} +21 -21
- package/dist/cli/{views-5R5NVYHL.mjs → views-Y7Y5Y7V2.mjs} +6 -6
- package/dist/cli/{workflow-VNPT5VQS.js → workflow-4W5JT5HP.js} +17 -17
- package/dist/cli/{workflow-HBDW43GT.mjs → workflow-XNN54KIK.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -112
- 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-TWSGYOWI.js +0 -44
- package/dist/cli/concurrent-runs-help-4VRUNL3T.js +0 -22
- package/dist/cli/describe-QE4ITFPG.js +0 -50
- package/dist/cli/git-XXVGEPEM.js +0 -26
- package/dist/cli/search-7LMUBMDC.js +0 -32
- package/dist/cli/sessions-VYIPZBSR.js +0 -23
- package/dist/cli/skills-PKNTNDYL.js +0 -37
- package/dist/cli/tools-D6CKFZL3.js +0 -57
- package/dist/cli/update-E2H2DWH4.js +0 -37
|
@@ -1,23 +1,23 @@
|
|
|
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 _chunkXNN45XYFjs = require('./chunk-XNN45XYF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkOSHKFYY4js = require('./chunk-OSHKFYY4.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkTIMFDVUNjs = require('./chunk-TIMFDVUN.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkIUDO463Ijs = require('./chunk-IUDO463I.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkLWOYDMYCjs = require('./chunk-LWOYDMYC.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/update.ts
|
|
23
23
|
var _child_process = require('child_process');
|
|
@@ -499,7 +499,7 @@ function normalizedNpmPrefix(value) {
|
|
|
499
499
|
}
|
|
500
500
|
function resolveNpmGlobalPrefix(env) {
|
|
501
501
|
try {
|
|
502
|
-
const plan =
|
|
502
|
+
const plan = _chunkTIMFDVUNjs.resolveShellSpawn.call(void 0,
|
|
503
503
|
"npm",
|
|
504
504
|
["prefix", "-g"],
|
|
505
505
|
process.platform,
|
|
@@ -561,8 +561,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
561
561
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
562
562
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
563
563
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
564
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
565
|
-
const npmGlobalInstallFlags =
|
|
564
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkXNN45XYFjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
565
|
+
const npmGlobalInstallFlags = _chunkXNN45XYFjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
566
566
|
const args = installPrefix ? [
|
|
567
567
|
"install",
|
|
568
568
|
"-g",
|
|
@@ -572,7 +572,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
572
572
|
packageSpec
|
|
573
573
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
574
574
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
575
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
575
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkLWOYDMYCjs.autoDetectBaseUrl.call(void 0, )
|
|
576
576
|
);
|
|
577
577
|
return {
|
|
578
578
|
kind: "npm-global",
|
|
@@ -821,7 +821,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
821
821
|
function runCommand(command, args, env = process.env) {
|
|
822
822
|
return new Promise((resolveResult) => {
|
|
823
823
|
let output = "";
|
|
824
|
-
const plan =
|
|
824
|
+
const plan = _chunkTIMFDVUNjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
825
825
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
826
826
|
windowsHide: true,
|
|
827
827
|
stdio: ["inherit", "pipe", "pipe"],
|
|
@@ -1169,7 +1169,7 @@ function normalizePinnedVersion(value) {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
async function readPinMetadata(registryUrl, version) {
|
|
1171
1171
|
const controller = new AbortController();
|
|
1172
|
-
const timeout = setTimeout(() => controller.abort(),
|
|
1172
|
+
const timeout = setTimeout(() => controller.abort(), _chunkLWOYDMYCjs.DEFAULT_TIMEOUT);
|
|
1173
1173
|
try {
|
|
1174
1174
|
const response = await fetch(
|
|
1175
1175
|
new URL(
|
|
@@ -1185,7 +1185,7 @@ async function readPinMetadata(registryUrl, version) {
|
|
|
1185
1185
|
if (!response.ok) {
|
|
1186
1186
|
return {
|
|
1187
1187
|
kind: "miss",
|
|
1188
|
-
transient:
|
|
1188
|
+
transient: _chunkLWOYDMYCjs.TRANSIENT_HTTP_STATUSES.has(response.status),
|
|
1189
1189
|
error: new Error(`${registryUrl} returned HTTP ${response.status}`)
|
|
1190
1190
|
};
|
|
1191
1191
|
}
|
|
@@ -1219,8 +1219,8 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl, retry =
|
|
|
1219
1219
|
"https://registry.npmjs.org/",
|
|
1220
1220
|
...fallbackRegistryUrl ? [fallbackRegistryUrl] : []
|
|
1221
1221
|
];
|
|
1222
|
-
const maxRetries = _nullishCoalesce(retry.maxRetries, () => (
|
|
1223
|
-
const backoffMs = _nullishCoalesce(retry.backoffMs, () => (
|
|
1222
|
+
const maxRetries = _nullishCoalesce(retry.maxRetries, () => ( _chunkLWOYDMYCjs.DEFAULT_MAX_RETRIES));
|
|
1223
|
+
const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunkLWOYDMYCjs.defaultRetryBackoffMs));
|
|
1224
1224
|
let lastError = null;
|
|
1225
1225
|
for (let round = 1; ; round += 1) {
|
|
1226
1226
|
let transientOnly = true;
|
|
@@ -1283,14 +1283,14 @@ async function resolveInstalledVersionIfLatest(plan) {
|
|
|
1283
1283
|
return null;
|
|
1284
1284
|
}
|
|
1285
1285
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1286
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1286
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkLWOYDMYCjs.autoDetectBaseUrl));
|
|
1287
1287
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1288
1288
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1289
1289
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1290
1290
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1291
1291
|
process.stdout.write = (() => true);
|
|
1292
1292
|
try {
|
|
1293
|
-
const exitCode = await
|
|
1293
|
+
const exitCode = await _chunkOSHKFYY4js.runSkillsCommand.call(void 0, { json: true });
|
|
1294
1294
|
if (exitCode !== 0) {
|
|
1295
1295
|
throw new Error(
|
|
1296
1296
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1363,7 +1363,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1363
1363
|
};
|
|
1364
1364
|
if (options.json && !options.executeWithJson) {
|
|
1365
1365
|
const upToDateVersion2 = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
|
|
1366
|
-
|
|
1366
|
+
_chunkIUDO463Ijs.printCommandEnvelope.call(void 0,
|
|
1367
1367
|
{
|
|
1368
1368
|
...plan,
|
|
1369
1369
|
updated: false,
|
|
@@ -1375,7 +1375,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1375
1375
|
return 0;
|
|
1376
1376
|
}
|
|
1377
1377
|
if (options.printCommand) {
|
|
1378
|
-
|
|
1378
|
+
_chunkIUDO463Ijs.printCommandEnvelope.call(void 0,
|
|
1379
1379
|
{
|
|
1380
1380
|
...plan,
|
|
1381
1381
|
render: {
|
|
@@ -1388,7 +1388,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1388
1388
|
return 0;
|
|
1389
1389
|
}
|
|
1390
1390
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1391
|
-
|
|
1391
|
+
_chunkIUDO463Ijs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1392
1392
|
return 0;
|
|
1393
1393
|
}
|
|
1394
1394
|
const upToDateVersion = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
|
|
@@ -1426,7 +1426,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1426
1426
|
);
|
|
1427
1427
|
}
|
|
1428
1428
|
if (options.executeWithJson && options.json) {
|
|
1429
|
-
|
|
1429
|
+
_chunkIUDO463Ijs.printCommandEnvelope.call(void 0,
|
|
1430
1430
|
{
|
|
1431
1431
|
ok: true,
|
|
1432
1432
|
pinnedVersion,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MPEMAGZS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-II33OPIO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
} from "./chunk-BM4GE67C.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VZKBLSTA.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled,
|
|
21
21
|
printCommandEnvelope
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZMC5FEJN.mjs";
|
|
23
23
|
import {
|
|
24
24
|
autoDetectBaseUrl,
|
|
25
25
|
resolveApiKeyForBaseUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-53HQJS6D.mjs";
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
import { writeFileSync } from "fs";
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkA4KQZ6P5js = require('./chunk-A4KQZ6P5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLWOYDMYCjs = require('./chunk-LWOYDMYC.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkLWOYDMYCjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkA4KQZ6P5js.PlayClient)(
|
|
142
|
+
new (0, _chunkLWOYDMYCjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VZKBLSTA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
errorToJsonPayload,
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
resolveSdkCliFailureExitCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ZMC5FEJN.mjs";
|
|
12
12
|
import {
|
|
13
13
|
resolveConfig,
|
|
14
14
|
sdkCliStateDirPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-53HQJS6D.mjs";
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
import { Option } from "commander";
|
|
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
}
|
|
135
135
|
const client = new DeeplineClient();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await import("./search-output-FCW4R6Z4.mjs");
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkLWOYDMYCjs = require('./chunk-LWOYDMYC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkEYL4V32Qjs = require('./chunk-EYL4V32Q.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -331,7 +331,7 @@ function buildEnvironmentContext() {
|
|
|
331
331
|
node_version: process.version,
|
|
332
332
|
runtime: "Node.js",
|
|
333
333
|
hostname: _os.hostname.call(void 0, ),
|
|
334
|
-
agent_runtime:
|
|
334
|
+
agent_runtime: _chunkEYL4V32Qjs.detectAgentRuntime.call(void 0, )
|
|
335
335
|
};
|
|
336
336
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
337
337
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -352,18 +352,18 @@ function buildEnvironmentContext() {
|
|
|
352
352
|
return context;
|
|
353
353
|
}
|
|
354
354
|
function failureReportHeaders(apiKey) {
|
|
355
|
-
const agentSessionId =
|
|
355
|
+
const agentSessionId = _chunkEYL4V32Qjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
356
356
|
return {
|
|
357
|
-
...
|
|
357
|
+
..._chunkEYL4V32Qjs.deploymentProtectionHeaders.call(void 0, ),
|
|
358
358
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
359
359
|
Authorization: `Bearer ${apiKey}`,
|
|
360
360
|
"Content-Type": "application/json",
|
|
361
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
361
|
+
"User-Agent": `deepline-ts-sdk/${_chunkEYL4V32Qjs.SDK_VERSION}`,
|
|
362
362
|
"X-Deepline-Client-Family": "sdk",
|
|
363
363
|
"X-Deepline-CLI-Family": "sdk",
|
|
364
|
-
"X-Deepline-Agent-Runtime":
|
|
365
|
-
"X-Deepline-CLI-Version":
|
|
366
|
-
"X-Deepline-SDK-Version":
|
|
364
|
+
"X-Deepline-Agent-Runtime": _chunkEYL4V32Qjs.detectAgentRuntime.call(void 0, ),
|
|
365
|
+
"X-Deepline-CLI-Version": _chunkEYL4V32Qjs.SDK_VERSION,
|
|
366
|
+
"X-Deepline-SDK-Version": _chunkEYL4V32Qjs.SDK_VERSION
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
async function postFailureReport(input) {
|
|
@@ -391,7 +391,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
391
391
|
if (isFailureReportingDisabled()) return false;
|
|
392
392
|
let apiKey = "";
|
|
393
393
|
try {
|
|
394
|
-
apiKey =
|
|
394
|
+
apiKey = _chunkLWOYDMYCjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
395
395
|
} catch (e2) {
|
|
396
396
|
return false;
|
|
397
397
|
}
|
|
@@ -418,7 +418,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
418
418
|
failure_code: failureCode2,
|
|
419
419
|
failure_stage: failureStage,
|
|
420
420
|
error_body: "Automatic Deepline skills installation failed.",
|
|
421
|
-
cli_version:
|
|
421
|
+
cli_version: _chunkEYL4V32Qjs.SDK_VERSION,
|
|
422
422
|
context: {
|
|
423
423
|
environment: buildEnvironmentContext(),
|
|
424
424
|
skills_sync: {
|
|
@@ -538,7 +538,7 @@ function buildFailureReport(input) {
|
|
|
538
538
|
failure_kind: failureKind,
|
|
539
539
|
failure_code: code,
|
|
540
540
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
541
|
-
cli_version:
|
|
541
|
+
cli_version: _chunkEYL4V32Qjs.SDK_VERSION,
|
|
542
542
|
context: {
|
|
543
543
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
544
544
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -558,8 +558,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
558
558
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
559
559
|
const exitCode = resolvedExitCode(input);
|
|
560
560
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
561
|
-
const baseUrl =
|
|
562
|
-
const apiKey =
|
|
561
|
+
const baseUrl = _chunkLWOYDMYCjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
562
|
+
const apiKey = _chunkLWOYDMYCjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
563
563
|
if (!apiKey) return false;
|
|
564
564
|
return postFailureReport({
|
|
565
565
|
baseUrl,
|
|
@@ -914,8 +914,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
914
914
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
915
915
|
var defaultBrowserCommandRunner = childProcess;
|
|
916
916
|
function getAuthedHttpClient() {
|
|
917
|
-
const config =
|
|
918
|
-
return { config, http: new (0,
|
|
917
|
+
const config = _chunkLWOYDMYCjs.resolveConfig.call(void 0, );
|
|
918
|
+
return { config, http: new (0, _chunkLWOYDMYCjs.HttpClient)(config) };
|
|
919
919
|
}
|
|
920
920
|
function stableOsUserId() {
|
|
921
921
|
try {
|
|
@@ -1256,7 +1256,7 @@ function collectLocalEnvInfo() {
|
|
|
1256
1256
|
os: `${process.platform} ${process.arch}`,
|
|
1257
1257
|
node_version: process.version,
|
|
1258
1258
|
home_dir: homeDir,
|
|
1259
|
-
agent_runtime:
|
|
1259
|
+
agent_runtime: _chunkEYL4V32Qjs.detectAgentRuntime.call(void 0, )
|
|
1260
1260
|
};
|
|
1261
1261
|
const env = process.env;
|
|
1262
1262
|
const optional = {
|
|
@@ -1503,9 +1503,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
function withAgentCommandContext(value) {
|
|
1505
1505
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1506
|
-
return
|
|
1506
|
+
return _chunkEYL4V32Qjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1507
1507
|
...valueRecord,
|
|
1508
|
-
command_context:
|
|
1508
|
+
command_context: _chunkLWOYDMYCjs.resolveCliCommandContext.call(void 0, )
|
|
1509
1509
|
} : value;
|
|
1510
1510
|
}
|
|
1511
1511
|
function printJson(value, fields, options = {}) {
|
|
@@ -1677,7 +1677,7 @@ function errorToJsonPayload(error) {
|
|
|
1677
1677
|
...upstreamResponse ? { upstreamResponse } : {},
|
|
1678
1678
|
...Object.keys(details).length > 0 ? { details } : {}
|
|
1679
1679
|
};
|
|
1680
|
-
const retry = cliRetryGuidance(payloadError,
|
|
1680
|
+
const retry = cliRetryGuidance(payloadError, _chunkEYL4V32Qjs.readToolFailureHint.call(void 0, error));
|
|
1681
1681
|
return {
|
|
1682
1682
|
ok: false,
|
|
1683
1683
|
status: "failed",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQGVOD6Y4js = require('./chunk-QGVOD6Y4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJUTXZW3Sjs = require('./chunk-JUTXZW3S.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,16 +14,16 @@ var _chunk6ASDTHENjs = require('./chunk-6ASDTHEN.js');
|
|
|
14
14
|
var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkPNFC7VHHjs = require('./chunk-PNFC7VHH.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkIUDO463Ijs = require('./chunk-IUDO463I.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkLWOYDMYCjs = require('./chunk-LWOYDMYC.js');
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
var _fs = require('fs');
|
|
@@ -32,14 +32,14 @@ var _path = require('path');
|
|
|
32
32
|
// src/cli/doc-read-reporting.ts
|
|
33
33
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
34
34
|
async function reportDocRead(docId) {
|
|
35
|
-
if (
|
|
35
|
+
if (_chunkIUDO463Ijs.isFailureReportingDisabled.call(void 0, )) return;
|
|
36
36
|
try {
|
|
37
|
-
const baseUrl =
|
|
38
|
-
const apiKey =
|
|
37
|
+
const baseUrl = _chunkLWOYDMYCjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
38
|
+
const apiKey = _chunkLWOYDMYCjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
39
39
|
if (!apiKey) return;
|
|
40
40
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
41
41
|
method: "POST",
|
|
42
|
-
headers:
|
|
42
|
+
headers: _chunkIUDO463Ijs.failureReportHeaders.call(void 0, apiKey),
|
|
43
43
|
body: JSON.stringify({ doc_id: docId }),
|
|
44
44
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
45
45
|
});
|
|
@@ -52,16 +52,16 @@ function nothingNamed(name) {
|
|
|
52
52
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
53
53
|
}
|
|
54
54
|
function findNamed2(name, options) {
|
|
55
|
-
return _chunk6ASDTHENjs.findNamed.call(void 0, name, options, _chunk6ASDTHENjs.describeLookupsFor.call(void 0, new (0,
|
|
55
|
+
return _chunk6ASDTHENjs.findNamed.call(void 0, name, options, _chunk6ASDTHENjs.describeLookupsFor.call(void 0, new (0, _chunkPNFC7VHHjs.DeeplineClient)()));
|
|
56
56
|
}
|
|
57
57
|
async function describeAnything(name, options, onMissing) {
|
|
58
|
-
const client = new (0,
|
|
58
|
+
const client = new (0, _chunkPNFC7VHHjs.DeeplineClient)();
|
|
59
59
|
const lookups = _chunk6ASDTHENjs.describeLookupsFor.call(void 0, client);
|
|
60
60
|
const outcome = await _chunk6ASDTHENjs.describeName.call(void 0, name, options, {
|
|
61
61
|
...lookups,
|
|
62
62
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
63
63
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
64
|
-
seedStarterScript:
|
|
64
|
+
seedStarterScript: _chunkQGVOD6Y4js.seedToolListScript
|
|
65
65
|
});
|
|
66
66
|
if (outcome.status === "missing") {
|
|
67
67
|
if (onMissing) return onMissing();
|
|
@@ -90,18 +90,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
90
90
|
` : text;
|
|
91
91
|
_fs.writeFileSync.call(void 0, path, content);
|
|
92
92
|
const bytes = Buffer.byteLength(content);
|
|
93
|
-
|
|
93
|
+
_chunkIUDO463Ijs.printCommandEnvelope.call(void 0,
|
|
94
94
|
{ path, bytes },
|
|
95
95
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
96
96
|
` }
|
|
97
97
|
);
|
|
98
98
|
return 0;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunkIUDO463Ijs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
101
101
|
return 0;
|
|
102
102
|
}
|
|
103
103
|
function registerDescribeCommand(program) {
|
|
104
|
-
|
|
104
|
+
_chunkJUTXZW3Sjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
105
105
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
106
106
|
).addHelpText(
|
|
107
107
|
"after",
|
|
@@ -9,7 +9,7 @@ var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkIUDO463Ijs = require('./chunk-IUDO463I.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
|
|
|
250
250
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
251
251
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
252
252
|
if (typeof logicalValue === "object") {
|
|
253
|
-
return
|
|
253
|
+
return _chunkIUDO463Ijs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
254
254
|
}
|
|
255
255
|
return logicalValue;
|
|
256
256
|
}
|
|
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
|
|
|
642
642
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
643
|
columns
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return _chunkIUDO463Ijs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
648
|
let temp;
|
|
@@ -770,7 +770,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
770
770
|
};
|
|
771
771
|
if (options.receiptOut && !skipReceiptFile) {
|
|
772
772
|
persist(options.receiptOut, jsonText(receipt));
|
|
773
|
-
|
|
773
|
+
_chunkIUDO463Ijs.markJsonOutputHandled.call(void 0, );
|
|
774
774
|
} else {
|
|
775
775
|
printReceipt(receipt, options, {
|
|
776
776
|
data: hasData ? result.data : void 0,
|
|
@@ -939,7 +939,7 @@ function receiptText(receipt, options, extra) {
|
|
|
939
939
|
problems.push(
|
|
940
940
|
`Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
|
|
941
941
|
);
|
|
942
|
-
const diagnostic =
|
|
942
|
+
const diagnostic = _chunkIUDO463Ijs.formatCliFailureDiagnostic.call(void 0, error);
|
|
943
943
|
if (diagnostic) problems.push(...diagnostic.split("\n"));
|
|
944
944
|
if (record(error) && typeof error.recoveryFile === "string") {
|
|
945
945
|
problems.push(
|
|
@@ -1032,8 +1032,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1032
1032
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1033
1033
|
` : receiptText(receipt, options, extra);
|
|
1034
1034
|
if (options.receiptOut !== void 0) {
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
_chunkIUDO463Ijs.writeRawStderr.call(void 0, text);
|
|
1036
|
+
_chunkIUDO463Ijs.markJsonOutputHandled.call(void 0, );
|
|
1037
1037
|
} else {
|
|
1038
1038
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1039
1039
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkCSPHSNBWjs = require('./chunk-CSPHSNBW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkA4KQZ6P5js = require('./chunk-A4KQZ6P5.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
|
|
@@ -11,7 +11,7 @@ var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkIUDO463Ijs = require('./chunk-IUDO463I.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.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 = _chunkIUDO463Ijs.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 ? _chunkIUDO463Ijs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkIUDO463Ijs.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");
|
|
@@ -657,7 +657,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
657
657
|
"--log-level requires one of: debug, info, warn, error."
|
|
658
658
|
);
|
|
659
659
|
}
|
|
660
|
-
const parsed =
|
|
660
|
+
const parsed = _chunkA4KQZ6P5js.parseLogLevel.call(void 0, value);
|
|
661
661
|
if (!parsed) {
|
|
662
662
|
throw new Error(
|
|
663
663
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -990,7 +990,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
990
990
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
991
991
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
992
992
|
);
|
|
993
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
993
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkA4KQZ6P5js.parseLogLevel.call(void 0, options.logLevel);
|
|
994
994
|
if (!logLevel)
|
|
995
995
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
996
996
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -1004,13 +1004,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
1004
1004
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
1005
1005
|
logLevel = "debug";
|
|
1006
1006
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
1007
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
1008
|
-
[...fullJson ? ["--full"] : [], ...
|
|
1007
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkIUDO463Ijs.parseJsonFields.call(void 0,
|
|
1008
|
+
[...fullJson ? ["--full"] : [], ..._chunkIUDO463Ijs.jsonFieldArgs.call(void 0, options.json)],
|
|
1009
1009
|
"run"
|
|
1010
1010
|
).fields;
|
|
1011
1011
|
const watch = options.wait === false ? false : base.watch;
|
|
1012
1012
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
1013
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
1013
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkIUDO463Ijs.argsWantJson.call(void 0, []) : explicitJson;
|
|
1014
1014
|
const verboseLogs = Boolean(
|
|
1015
1015
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1016
1016
|
);
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZMC5FEJN.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-53HQJS6D.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YFUFYV4M.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
resolveShellSpawn,
|
|
11
11
|
syncSdkSkillsIfNeeded
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3MVBZ4XI.mjs";
|
|
13
13
|
import {
|
|
14
14
|
addJsonNotice,
|
|
15
15
|
isJsonOutputMode
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZMC5FEJN.mjs";
|
|
17
17
|
import {
|
|
18
18
|
resolveApiKeyForBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-53HQJS6D.mjs";
|
|
20
20
|
import {
|
|
21
21
|
SDK_VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-URACGTQE.mjs";
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|