deepline 0.3.556 → 0.3.558
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-MT7DWCZO.mjs → auth-JJXTMFWH.mjs} +5 -5
- package/dist/cli/auth-TWSGYOWI.js +44 -0
- package/dist/cli/{billing-4NOM52PO.mjs → billing-RBFJMAI5.mjs} +8 -8
- package/dist/cli/{billing-3HHUTNME.js → billing-V3TJKUHY.js} +99 -99
- package/dist/cli/{chunk-ASOLVHDL.mjs → chunk-2FFZ5SEU.mjs} +2 -2
- package/dist/cli/{chunk-NGB2VSGB.js → chunk-4CTBC6Q7.js} +3 -3
- package/dist/cli/{chunk-VCYPHVUE.mjs → chunk-4SVFZCCI.mjs} +2 -2
- package/dist/cli/{chunk-F5CE3JZQ.js → chunk-5V45LY6Y.js} +9 -9
- package/dist/cli/{chunk-GZFYLAXJ.js → chunk-67J4K4G2.js} +20 -20
- package/dist/cli/{chunk-EN5NHCCQ.js → chunk-6ASDTHEN.js} +17 -17
- package/dist/cli/{chunk-3R6RBAQW.js → chunk-6BDLYZYL.js} +26 -26
- package/dist/cli/{chunk-KA77KT46.mjs → chunk-6GBQNS6L.mjs} +1 -1
- package/dist/cli/{chunk-UO7NPJEK.js → chunk-6LFPPAMD.js} +3 -3
- package/dist/cli/{chunk-FQYEHUVR.mjs → chunk-6PIQC2XE.mjs} +3 -3
- package/dist/cli/{chunk-QVNX6AC3.js → chunk-7Q3EXOLC.js} +12 -12
- package/dist/cli/{chunk-VQZQCPCA.mjs → chunk-7Q5I4KEG.mjs} +4 -4
- package/dist/cli/{chunk-4HSPHSUB.js → chunk-A5MRMCMW.js} +5 -5
- package/dist/cli/{chunk-DAQQL743.mjs → chunk-AL4QQKUK.mjs} +2 -2
- package/dist/cli/{chunk-JRYF5W3A.mjs → chunk-ARGJDP77.mjs} +2 -2
- package/dist/cli/{chunk-4U5HIMZY.js → chunk-BFM2RCC3.js} +2 -2
- package/dist/cli/{chunk-C4GWTN3J.mjs → chunk-BHHCQGUY.mjs} +7 -7
- package/dist/cli/{chunk-XFZX6FNM.mjs → chunk-BM4GE67C.mjs} +18 -2
- package/dist/cli/{chunk-W5JM2QCI.mjs → chunk-BWWLLK56.mjs} +5 -5
- package/dist/cli/{chunk-7MD36QLK.js → chunk-C7BQBKRZ.js} +4 -4
- package/dist/cli/{chunk-KNOS6H4E.mjs → chunk-CB5DIX5K.mjs} +2 -2
- package/dist/cli/{chunk-ZGOTBBY3.mjs → chunk-CEEUL7ER.mjs} +1 -1
- package/dist/cli/{chunk-YO2FDGAN.mjs → chunk-CG3R4ZFS.mjs} +2 -2
- package/dist/cli/{chunk-MUIJGT2B.mjs → chunk-D4GCU735.mjs} +1 -1
- package/dist/cli/{chunk-YGW2CSB7.js → chunk-DDI4LNVC.js} +41 -41
- package/dist/cli/{chunk-L57JAXHI.mjs → chunk-DJAP2M5M.mjs} +1 -1
- package/dist/cli/{chunk-TGUQET3O.mjs → chunk-ENHQBPR5.mjs} +1 -1
- package/dist/cli/{chunk-SWVGAIJD.js → chunk-FCG42RQZ.js} +20 -20
- package/dist/cli/{chunk-UYPXQFJ4.mjs → chunk-FF3BWNLL.mjs} +1 -1
- package/dist/cli/{chunk-KN3NETDA.js → chunk-FH55SB63.js} +11 -11
- package/dist/cli/{chunk-LW2FKVCQ.mjs → chunk-GAQ6VSRS.mjs} +1 -1
- package/dist/cli/{chunk-PC2FTUCP.mjs → chunk-HUJMFETO.mjs} +2 -2
- package/dist/cli/{chunk-GY4S6A72.js → chunk-I3PX6NGG.js} +5 -5
- package/dist/cli/{chunk-ASMHON7N.mjs → chunk-I57JNBKA.mjs} +5 -5
- package/dist/cli/{chunk-CJF7AFBD.js → chunk-IS67LBNV.js} +2 -2
- package/dist/cli/{chunk-IFHMGEDN.mjs → chunk-KMNLER7F.mjs} +13 -13
- package/dist/cli/{chunk-LY5MMXFF.js → chunk-LHPYCJNL.js} +18 -2
- package/dist/cli/{chunk-QGQPVPJN.mjs → chunk-LIS6UJSC.mjs} +1 -1
- package/dist/cli/{chunk-N6LM2Q6V.js → chunk-M4CJGF53.js} +5 -5
- package/dist/cli/{chunk-P6ZIR4QD.mjs → chunk-MAN4IEO4.mjs} +4 -4
- package/dist/cli/{chunk-LU3OLGF3.js → chunk-NADXF2C5.js} +53 -53
- package/dist/cli/{chunk-CZ2RJTAQ.js → chunk-NAJAAIEE.js} +48 -48
- package/dist/cli/{chunk-KUDSTDSL.js → chunk-OWOUDGHO.js} +23 -23
- package/dist/cli/{chunk-O7QRNMSW.mjs → chunk-P2MVPTFJ.mjs} +1 -1
- package/dist/cli/{chunk-UERLY7PX.mjs → chunk-P3SLGOGA.mjs} +2 -2
- package/dist/cli/{chunk-G6BX5VJN.js → chunk-PAJLUB37.js} +274 -274
- package/dist/cli/{chunk-FFXLMJ5O.js → chunk-QGDU23YW.js} +8 -8
- package/dist/cli/{chunk-DAS66RGZ.js → chunk-QGJ4DYGE.js} +1 -1
- package/dist/cli/{chunk-KONNXKKX.js → chunk-RIQYBKHK.js} +2 -2
- package/dist/cli/{chunk-2ZS5PZB6.mjs → chunk-T6W7SKE7.mjs} +2 -2
- package/dist/cli/{chunk-3IKGZ4CG.js → chunk-TBLP7HDL.js} +7 -7
- package/dist/cli/{chunk-K4IPTGU5.js → chunk-VPJ663PV.js} +10 -10
- package/dist/cli/{chunk-B4RWCBU5.mjs → chunk-WJ7RY3PJ.mjs} +3 -3
- package/dist/cli/{chunk-HJO3MZ4M.mjs → chunk-XPSSXKBT.mjs} +2 -2
- package/dist/cli/{chunk-2NZQ432X.js → chunk-XV4DHKZ2.js} +13 -13
- package/dist/cli/{chunk-C2XLKCRH.mjs → chunk-YBJSDL34.mjs} +5 -5
- package/dist/cli/{chunk-7ERE37SK.js → chunk-YJ46MJMT.js} +6 -6
- package/dist/cli/{chunk-PWQ3IUD4.js → chunk-YVWINBZL.js} +20 -20
- package/dist/cli/concurrent-runs-help-4VRUNL3T.js +22 -0
- package/dist/cli/{concurrent-runs-help-AFJDK2SY.mjs → concurrent-runs-help-ZWWMHCK4.mjs} +6 -6
- package/dist/cli/{csv-CATF6MZU.mjs → csv-D76CXYOL.mjs} +4 -4
- package/dist/cli/{csv-NTNQLQXG.js → csv-V2FR4SO2.js} +13 -13
- package/dist/cli/{db-U3FK4FFM.mjs → db-2D7PD7A3.mjs} +6 -6
- package/dist/cli/{db-IKFKNLW5.js → db-B23O6Q4O.js} +27 -27
- package/dist/cli/{describe-F7OQQ7IO.mjs → describe-3LG6VO3D.mjs} +21 -21
- package/dist/cli/describe-QE4ITFPG.js +50 -0
- package/dist/cli/describe-core.d.mts +5 -0
- package/dist/cli/describe-core.d.ts +5 -0
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-3TA5SATU.js → executions-4P4UBPMX.js} +8 -8
- package/dist/cli/{executions-6KUA7RPH.mjs → executions-ORWO4SR4.mjs} +6 -6
- package/dist/cli/{feedback-U5I6UTJG.mjs → feedback-AY47IRDD.mjs} +6 -6
- package/dist/cli/{feedback-GX7RVC4O.js → feedback-LPHCSOJT.js} +14 -14
- package/dist/cli/{git-DYNKPPNT.mjs → git-LQGZNBZM.mjs} +5 -5
- package/dist/cli/git-XXVGEPEM.js +26 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-7FATBEB5.mjs → integrations-NEUZIBQT.mjs} +7 -7
- package/dist/cli/{integrations-PQX2FRPT.js → integrations-QEOUALDR.js} +15 -15
- package/dist/cli/{legacy-noops-ODATBQUL.mjs → legacy-noops-4G3DXN57.mjs} +6 -6
- package/dist/cli/{legacy-noops-JNXQWYUR.js → legacy-noops-PUO5VKHN.js} +9 -9
- package/dist/cli/{mcp-RXBXC4HW.js → mcp-EWAZKABW.js} +24 -24
- package/dist/cli/{mcp-UDNG33WQ.mjs → mcp-USM2QUKK.mjs} +4 -4
- package/dist/cli/{monitors-NDAGIRO4.js → monitors-2BI5J46A.js} +100 -100
- package/dist/cli/{monitors-L56QYFRW.mjs → monitors-T6FJSZCP.mjs} +7 -7
- package/dist/cli/{org-EA5DL5I7.mjs → org-BT45O64S.mjs} +6 -6
- package/dist/cli/{org-Q47O5ZTI.js → org-V6V3E7F7.js} +121 -121
- package/dist/cli/{outcomes-773GPYXN.mjs → outcomes-2T6W554M.mjs} +6 -6
- package/dist/cli/{outcomes-27ENBTWE.js → outcomes-B6RPHM6M.js} +14 -14
- package/dist/cli/{play-O6RGVBT7.mjs → play-CBBGJPRI.mjs} +20 -20
- package/dist/cli/{play-BOZIT25U.js → play-YCFVGEWK.js} +337 -337
- package/dist/cli/{providers-S2E5IGFO.js → providers-AGRUGBIY.js} +9 -9
- package/dist/cli/{providers-OOKYSLMJ.mjs → providers-RHBUQFFO.mjs} +6 -6
- package/dist/cli/{quickstart-YXKRRK43.js → quickstart-6N2KPWII.js} +6 -6
- package/dist/cli/{quickstart-7GVZ7YCQ.mjs → quickstart-OPR5NLIQ.mjs} +4 -4
- package/dist/cli/{run-3QGOVUHF.mjs → run-HAU2STMQ.mjs} +26 -26
- package/dist/cli/{run-7DXBARRO.js → run-MMANMS4E.js} +48 -48
- package/dist/cli/search-7LMUBMDC.js +32 -0
- package/dist/cli/{search-5UIB4QSG.mjs → search-TGWQMQ2C.mjs} +7 -7
- package/dist/cli/{search-output-MSUN3KPW.mjs → search-output-DZBYNJEO.mjs} +5 -5
- package/dist/cli/{search-output-C7ZPRC2B.js → search-output-VVM3DO2H.js} +8 -8
- package/dist/cli/{secrets-FU3DFFB6.js → secrets-V5WD552F.js} +15 -15
- package/dist/cli/{secrets-JYJS2VHO.mjs → secrets-Z6NEKNWM.mjs} +6 -6
- package/dist/cli/{sessions-JBD64DOX.mjs → sessions-C5GNXSPB.mjs} +6 -6
- package/dist/cli/sessions-VYIPZBSR.js +23 -0
- package/dist/cli/{settings-GDJGQXKT.js → settings-EZPZXJDG.js} +85 -85
- package/dist/cli/{settings-4KFYWSJI.mjs → settings-QUDVUIOJ.mjs} +12 -12
- package/dist/cli/{setup-46VMBV3K.mjs → setup-BCJBVQTI.mjs} +9 -9
- package/dist/cli/{setup-OKLUCTU7.js → setup-QY5VVGWQ.js} +49 -49
- package/dist/cli/{skills-XRJNXEEA.mjs → skills-LY2WZ22U.mjs} +7 -7
- package/dist/cli/skills-PKNTNDYL.js +37 -0
- package/dist/cli/tools-D6CKFZL3.js +57 -0
- package/dist/cli/{tools-WEBVZN3X.mjs → tools-FNCTTFWA.mjs} +19 -19
- package/dist/cli/update-E2H2DWH4.js +37 -0
- package/dist/cli/{update-RKTYJ6BO.mjs → update-YKQAC4AQ.mjs} +9 -9
- package/dist/cli/{views-VTOQ4U75.mjs → views-5R5NVYHL.mjs} +6 -6
- package/dist/cli/{views-XLAPDQXQ.js → views-NBTOBB67.js} +21 -21
- package/dist/cli/{workflow-RCO4R46B.mjs → workflow-HBDW43GT.mjs} +7 -7
- package/dist/cli/{workflow-HH4XVYPN.js → workflow-VNPT5VQS.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -118
- 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-HA7TI6SA.js +0 -44
- package/dist/cli/concurrent-runs-help-ZHOCLINF.js +0 -22
- package/dist/cli/describe-ZHNZ4H6S.js +0 -50
- package/dist/cli/git-6DK7N4V7.js +0 -26
- package/dist/cli/search-4DZYX3FR.js +0 -32
- package/dist/cli/sessions-E2IX3GU7.js +0 -23
- package/dist/cli/skills-GJS4Q7NU.js +0 -37
- package/dist/cli/tools-LICQXFYA.js +0 -57
- package/dist/cli/update-3XH3NVVY.js +0 -37
|
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkC7BQBKRZjs = require('./chunk-C7BQBKRZ.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -705,7 +705,7 @@ var ToolCalls = class {
|
|
|
705
705
|
idempotencyKey,
|
|
706
706
|
onResponse: (response2) => {
|
|
707
707
|
lastResponse = null;
|
|
708
|
-
atomicToolsSupported = response2.headers.get(
|
|
708
|
+
atomicToolsSupported = response2.headers.get(_chunkC7BQBKRZjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
709
709
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
710
710
|
if (_optionalChain([options, 'optionalAccess', _33 => _33.onServerTiming])) {
|
|
711
711
|
try {
|
|
@@ -1092,15 +1092,15 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
const receivers = _optionalChain([env, 'access', _58 => _58.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
|
|
1094
1094
|
return {
|
|
1095
|
-
[
|
|
1096
|
-
...receivers ? { [
|
|
1095
|
+
[_chunkC7BQBKRZjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1096
|
+
...receivers ? { [_chunkC7BQBKRZjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1097
1097
|
};
|
|
1098
1098
|
}
|
|
1099
1099
|
function playRunStartHeaders(runtime, env) {
|
|
1100
1100
|
const headers = runtimeSelectionHeaders(runtime, env);
|
|
1101
1101
|
const experimentSwitches = _optionalChain([env, 'access', _61 => _61.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
|
|
1102
1102
|
if (!experimentSwitches) return headers;
|
|
1103
|
-
return { ...headers, [
|
|
1103
|
+
return { ...headers, [_chunkC7BQBKRZjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
|
|
1104
1104
|
}
|
|
1105
1105
|
function normalizeTestPolicyOverrides(value, source) {
|
|
1106
1106
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -1170,7 +1170,7 @@ var PlayClient = class {
|
|
|
1170
1170
|
return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
|
|
1171
1171
|
this.http,
|
|
1172
1172
|
resolved.request,
|
|
1173
|
-
_optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1173
|
+
_optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkC7BQBKRZjs.SDK_API_MAJOR) } : headers,
|
|
1174
1174
|
options
|
|
1175
1175
|
);
|
|
1176
1176
|
}
|
|
@@ -3411,7 +3411,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3411
3411
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3412
3412
|
);
|
|
3413
3413
|
}
|
|
3414
|
-
return { [
|
|
3414
|
+
return { [_chunkC7BQBKRZjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3415
3415
|
}
|
|
3416
3416
|
function sleep(ms) {
|
|
3417
3417
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4347,7 +4347,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4347
4347
|
);
|
|
4348
4348
|
const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
|
|
4349
4349
|
...runtimeHeaders,
|
|
4350
|
-
"X-Deepline-API-Major": String(
|
|
4350
|
+
"X-Deepline-API-Major": String(_chunkC7BQBKRZjs.SDK_API_MAJOR)
|
|
4351
4351
|
} : runtimeHeaders;
|
|
4352
4352
|
const http = this.http;
|
|
4353
4353
|
let submitted = false;
|
|
@@ -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.558",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -1,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 _chunkNAJAAIEEjs = require('./chunk-NAJAAIEE.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 = _chunkNAJAAIEEjs.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
|
windowsHide: true,
|
|
19
19
|
encoding: "utf8",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FF3BWNLL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CEEUL7ER.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -314,7 +314,7 @@ function extractorValueType(name) {
|
|
|
314
314
|
}
|
|
315
315
|
const named = NAMED_VALUE_SHAPES[definition.valueKind];
|
|
316
316
|
if (!named) return { type: "string" };
|
|
317
|
-
const { type, fields } =
|
|
317
|
+
const { type, fields } = _chunkLHPYCJNLjs.schemaField.call(void 0, name, named.schema, true);
|
|
318
318
|
return { type, ...fields ? { fields } : {}, shape: named.shape };
|
|
319
319
|
}
|
|
320
320
|
function jsonSchemaOf(wrapper) {
|
|
@@ -374,7 +374,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
374
374
|
// The server's public monitor pricing sends `display`.
|
|
375
375
|
cost: stringField(pricing, "display", "displayText") || void 0,
|
|
376
376
|
guidance: [],
|
|
377
|
-
inputs:
|
|
377
|
+
inputs: _chunkLHPYCJNLjs.schemaFields.call(void 0,
|
|
378
378
|
recordField(tool, "payload_schema", "payloadSchema")
|
|
379
379
|
),
|
|
380
380
|
outputs: [],
|
|
@@ -411,7 +411,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
411
411
|
(path) => path.replace(/^toolResponse\.raw\./, "")
|
|
412
412
|
);
|
|
413
413
|
const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
|
|
414
|
-
const { fields, ...typed } =
|
|
414
|
+
const { fields, ...typed } = _chunkLHPYCJNLjs.schemaField.call(void 0, name, node, true);
|
|
415
415
|
const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
|
|
416
416
|
const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
|
|
417
417
|
const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
|
|
@@ -480,7 +480,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
480
480
|
],
|
|
481
481
|
rateLimit: withPlanRateLimit(
|
|
482
482
|
recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
|
|
483
|
-
|
|
483
|
+
_chunkLHPYCJNLjs.rateLimitSummary.call(void 0,
|
|
484
484
|
recordField(contract, "executionMetadata").configuredRateLimits
|
|
485
485
|
)
|
|
486
486
|
),
|
|
@@ -490,9 +490,9 @@ function describedTool(tool, requestedToolId) {
|
|
|
490
490
|
...connectCommand && !_optionalChain([tool, 'access', _5 => _5.auth, 'optionalAccess', _6 => _6.connectionRequired]) ? { connectCommand } : {},
|
|
491
491
|
...tool.auth ? { auth: tool.auth } : {},
|
|
492
492
|
...tool.toolUsage ? { toolUsage: tool.toolUsage } : {},
|
|
493
|
-
inputs:
|
|
493
|
+
inputs: _chunkLHPYCJNLjs.schemaFields.call(void 0, inputSchema),
|
|
494
494
|
outputs: [...lists, ...values].map(({ field }) => field),
|
|
495
|
-
rawResponse:
|
|
495
|
+
rawResponse: _chunkLHPYCJNLjs.schemaFields.call(void 0, outputSchema),
|
|
496
496
|
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
|
|
497
497
|
};
|
|
498
498
|
}
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkM4CJGF53js = require('./chunk-M4CJGF53.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkYVWINBZLjs = require('./chunk-YVWINBZL.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk4CTBC6Q7js = require('./chunk-4CTBC6Q7.js');
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
var _commander = require('commander');
|
|
@@ -22,7 +22,7 @@ var _fs = require('fs');
|
|
|
22
22
|
var _path = require('path');
|
|
23
23
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
24
24
|
function lastSearchPath() {
|
|
25
|
-
return _path.join.call(void 0,
|
|
25
|
+
return _path.join.call(void 0, _chunk4CTBC6Q7js.sdkCliStateDirPath.call(void 0, _chunk4CTBC6Q7js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
26
26
|
}
|
|
27
27
|
function rememberSearchRef(searchRef) {
|
|
28
28
|
writeSearchRefs({ searchRef });
|
|
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
132
132
|
console.error("--summary-width must be an integer of at least 2.");
|
|
133
133
|
return 1;
|
|
134
134
|
}
|
|
135
|
-
const client = new (0,
|
|
135
|
+
const client = new (0, _chunkM4CJGF53js.DeeplineClient)();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-VVM3DO2H.js")));
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
157
157
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
158
158
|
if (!multiple) {
|
|
159
159
|
if (searchRef) rememberSearchRef(searchRef);
|
|
160
|
-
|
|
160
|
+
_chunkYVWINBZLjs.printCommandEnvelope.call(void 0, result, { json, text });
|
|
161
161
|
return 0;
|
|
162
162
|
}
|
|
163
163
|
searches.push({ ...result, query });
|
|
@@ -171,8 +171,8 @@ ${text}`);
|
|
|
171
171
|
}
|
|
172
172
|
} catch (error) {
|
|
173
173
|
if (!multiple) throw error;
|
|
174
|
-
const payload =
|
|
175
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
174
|
+
const payload = _chunkYVWINBZLjs.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkYVWINBZLjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
176
176
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
177
177
|
if (!json) {
|
|
178
178
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -184,7 +184,7 @@ Search failed.
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
rememberSearchRefsByTool(refs);
|
|
187
|
-
|
|
187
|
+
_chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CB5DIX5K.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CEEUL7ER.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-GAQ6VSRS.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-T6W7SKE7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CB5DIX5K.mjs";
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
import { Option } from "commander";
|
|
@@ -1,15 +1,15 @@
|
|
|
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 _chunkIS67LBNVjs = require('./chunk-IS67LBNV.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYVWINBZLjs = require('./chunk-YVWINBZL.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkC7BQBKRZjs = require('./chunk-C7BQBKRZ.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
|
|
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
|
|
|
55
55
|
}
|
|
56
56
|
function listClaudeSessionFiles() {
|
|
57
57
|
const files = [];
|
|
58
|
-
for (const root of
|
|
58
|
+
for (const root of _chunkC7BQBKRZjs.claudeProjectsRoots.call(void 0, )) {
|
|
59
59
|
files.push(...listClaudeSessionFilesIn(root));
|
|
60
60
|
}
|
|
61
61
|
return files;
|
|
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
|
|
|
147
147
|
const newestFirst = listSessionFiles(agent).sort(
|
|
148
148
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
149
149
|
);
|
|
150
|
-
const sessionId =
|
|
150
|
+
const sessionId = _chunkC7BQBKRZjs.agentSessionIdFromEnvironment.call(void 0,
|
|
151
151
|
process.env,
|
|
152
152
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
153
153
|
);
|
|
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
|
|
|
156
156
|
(candidate) => candidate.sessionId === sessionId
|
|
157
157
|
);
|
|
158
158
|
if (named) return named;
|
|
159
|
-
const cowork = agent === "codex" ? null :
|
|
159
|
+
const cowork = agent === "codex" ? null : _chunkC7BQBKRZjs.coworkTranscriptFromEnvironment.call(void 0, );
|
|
160
160
|
const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
|
|
161
161
|
if (cowork && coworkStat) {
|
|
162
162
|
return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
|
|
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
|
|
|
166
166
|
), () => ( newestFirst[0])), () => ( null));
|
|
167
167
|
}
|
|
168
168
|
function feedbackAgentSessionId(agentRuntime) {
|
|
169
|
-
return _nullishCoalesce(
|
|
169
|
+
return _nullishCoalesce(_chunkC7BQBKRZjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkC7BQBKRZjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
|
|
170
170
|
}
|
|
171
171
|
function sessionStartedInDirectory(candidate, cwd) {
|
|
172
172
|
if (candidate.agent === "claude") {
|
|
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
|
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
217
217
|
function sessionSearchDescription(agent) {
|
|
218
|
-
const claude =
|
|
218
|
+
const claude = _chunkC7BQBKRZjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
|
|
219
219
|
if (agent === "claude") return claude;
|
|
220
220
|
if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
|
|
221
221
|
return `${claude} or ~/.codex/sessions/**/*.jsonl`;
|
|
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
|
|
|
472
472
|
return { encodedContent: encoded, needsChunking: true };
|
|
473
473
|
}
|
|
474
474
|
async function uploadPayload(path, payload) {
|
|
475
|
-
const { http } =
|
|
475
|
+
const { http } = _chunkYVWINBZLjs.getAuthedHttpClient.call(void 0, );
|
|
476
476
|
return await http.post(path, payload);
|
|
477
477
|
}
|
|
478
478
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
|
|
|
550
550
|
return target.sessionId;
|
|
551
551
|
}
|
|
552
552
|
async function handleSessionsSend(options) {
|
|
553
|
-
if (
|
|
553
|
+
if (_chunkIS67LBNVjs.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
554
554
|
const rating = parseSessionRating(options.rating);
|
|
555
555
|
if (options.file) {
|
|
556
556
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
|
|
|
562
562
|
filename: _path.basename.call(void 0, filePath),
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
|
-
|
|
565
|
+
_chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
|
|
566
566
|
{
|
|
567
567
|
...response2,
|
|
568
568
|
ok: true,
|
|
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
|
|
|
594
594
|
labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
|
|
595
595
|
});
|
|
596
596
|
const sessionIds = built.map((session) => session.sessionId);
|
|
597
|
-
|
|
597
|
+
_chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
|
|
598
598
|
{
|
|
599
599
|
...response,
|
|
600
600
|
ok: true,
|
|
@@ -702,7 +702,7 @@ ${refreshMeta}
|
|
|
702
702
|
</body>
|
|
703
703
|
</html>`;
|
|
704
704
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
705
|
-
|
|
705
|
+
_chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
|
|
706
706
|
{
|
|
707
707
|
ok: true,
|
|
708
708
|
file: outputPath,
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BWWLLK56.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
resolveShellSpawn,
|
|
11
11
|
syncSdkSkillsIfNeeded
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-I57JNBKA.mjs";
|
|
13
13
|
import {
|
|
14
14
|
addJsonNotice,
|
|
15
15
|
isJsonOutputMode
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CB5DIX5K.mjs";
|
|
17
17
|
import {
|
|
18
18
|
resolveApiKeyForBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CEEUL7ER.mjs";
|
|
20
20
|
import {
|
|
21
21
|
SDK_VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GAQ6VSRS.mjs";
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBFM2RCC3js = require('./chunk-BFM2RCC3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNAJAAIEEjs = require('./chunk-NAJAAIEE.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,18 +18,18 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunkNAJAAIEEjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkBFM2RCC3js.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkNAJAAIEEjs.requireSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
29
29
|
})
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
|
-
|
|
32
|
+
_chunkNAJAAIEEjs.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
|
|
33
33
|
quietAdvisory: true
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk4CTBC6Q7js = require('./chunk-4CTBC6Q7.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkC7BQBKRZjs = require('./chunk-C7BQBKRZ.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: _chunkC7BQBKRZjs.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 = _chunkC7BQBKRZjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
356
356
|
return {
|
|
357
|
-
...
|
|
357
|
+
..._chunkC7BQBKRZjs.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/${_chunkC7BQBKRZjs.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": _chunkC7BQBKRZjs.detectAgentRuntime.call(void 0, ),
|
|
365
|
+
"X-Deepline-CLI-Version": _chunkC7BQBKRZjs.SDK_VERSION,
|
|
366
|
+
"X-Deepline-SDK-Version": _chunkC7BQBKRZjs.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 = _chunk4CTBC6Q7js.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: _chunkC7BQBKRZjs.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: _chunkC7BQBKRZjs.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 = _chunk4CTBC6Q7js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
562
|
+
const apiKey = _chunk4CTBC6Q7js.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 = _chunk4CTBC6Q7js.resolveConfig.call(void 0, );
|
|
918
|
+
return { config, http: new (0, _chunk4CTBC6Q7js.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: _chunkC7BQBKRZjs.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 _chunkC7BQBKRZjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1507
1507
|
...valueRecord,
|
|
1508
|
-
command_context:
|
|
1508
|
+
command_context: _chunk4CTBC6Q7js.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, _chunkC7BQBKRZjs.readToolFailureHint.call(void 0, error));
|
|
1681
1681
|
return {
|
|
1682
1682
|
ok: false,
|
|
1683
1683
|
status: "failed",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkI3PX6NGGjs = require('./chunk-I3PX6NGG.js');
|
|
6
|
+
require('./chunk-NADXF2C5.js');
|
|
7
|
+
require('./chunk-H4ALLC2X.js');
|
|
8
|
+
require('./chunk-YVWINBZL.js');
|
|
9
|
+
require('./chunk-4CTBC6Q7.js');
|
|
10
|
+
require('./chunk-C7BQBKRZ.js');
|
|
11
|
+
require('./chunk-6VLFQZK6.js');
|
|
12
|
+
require('./chunk-XNYIZMNQ.js');
|
|
13
|
+
require('./chunk-LFQJW4S2.js');
|
|
14
|
+
require('./chunk-CFJFUVX2.js');
|
|
15
|
+
require('./chunk-QGJ4DYGE.js');
|
|
16
|
+
require('./chunk-OG64RBAC.js');
|
|
17
|
+
require('./chunk-COGTRVWW.js');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
exports.CONCURRENT_RUNS_HELP_COMMANDS = _chunkI3PX6NGGjs.CONCURRENT_RUNS_HELP_COMMANDS; exports.concurrentRunsHelpStatus = _chunkI3PX6NGGjs.concurrentRunsHelpStatus; exports.concurrentRunsLine = _chunkI3PX6NGGjs.concurrentRunsLine;
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
CONCURRENT_RUNS_HELP_COMMANDS,
|
|
3
3
|
concurrentRunsHelpStatus,
|
|
4
4
|
concurrentRunsLine
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-4SVFZCCI.mjs";
|
|
6
|
+
import "./chunk-WJ7RY3PJ.mjs";
|
|
7
7
|
import "./chunk-2RIKOPIM.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-CB5DIX5K.mjs";
|
|
9
|
+
import "./chunk-CEEUL7ER.mjs";
|
|
10
|
+
import "./chunk-GAQ6VSRS.mjs";
|
|
11
11
|
import "./chunk-ASB47RXJ.mjs";
|
|
12
12
|
import "./chunk-DLIRSHV6.mjs";
|
|
13
13
|
import "./chunk-Z3A2S3QM.mjs";
|
|
14
14
|
import "./chunk-2MGZAI54.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-D4GCU735.mjs";
|
|
16
16
|
import "./chunk-WZYKRD7T.mjs";
|
|
17
17
|
import "./chunk-KRD6H754.mjs";
|
|
18
18
|
export {
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
printCommandEnvelope,
|
|
5
5
|
printJson,
|
|
6
6
|
readCsvRows
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-CB5DIX5K.mjs";
|
|
8
|
+
import "./chunk-CEEUL7ER.mjs";
|
|
9
|
+
import "./chunk-GAQ6VSRS.mjs";
|
|
10
10
|
import "./chunk-ASB47RXJ.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-Z3A2S3QM.mjs";
|
|
13
13
|
import "./chunk-2MGZAI54.mjs";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-D4GCU735.mjs";
|
|
15
15
|
import "./chunk-WZYKRD7T.mjs";
|
|
16
16
|
import "./chunk-KRD6H754.mjs";
|
|
17
17
|
|