deepline 0.3.442 → 0.3.443
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/sdk/src/types.ts +4 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +34 -21
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +11 -0
- package/dist/cli/auth-AZVWLMZN.js +40 -0
- package/dist/cli/{auth-CUZJMTNS.mjs → auth-CP2CAI7J.mjs} +4 -4
- package/dist/cli/{billing-W2U5VKFI.js → billing-JYSP3C76.js} +73 -73
- package/dist/cli/{billing-SWH3WAMC.mjs → billing-N36FL3GI.mjs} +4 -4
- package/dist/cli/{chunk-P4GMPKMW.mjs → chunk-4A45A2MH.mjs} +1 -1
- package/dist/cli/{chunk-TP4TMEML.mjs → chunk-6NUGMJQA.mjs} +4 -1
- package/dist/cli/{chunk-C4WXHMKN.js → chunk-6RKZVPFA.js} +2 -2
- package/dist/cli/{chunk-7BH4ZOWE.js → chunk-757V3FDW.js} +2 -2
- package/dist/cli/{chunk-RWK35AB3.js → chunk-75VUSWF3.js} +6 -6
- package/dist/cli/{chunk-YGMUSZLV.mjs → chunk-B6AWQQK6.mjs} +3 -3
- package/dist/cli/{chunk-HYJKJJUM.js → chunk-BE2GX674.js} +20 -20
- package/dist/cli/{chunk-SOCWFREM.js → chunk-CGZ2KKPM.js} +10 -10
- package/dist/cli/{chunk-2GNX6SCO.mjs → chunk-CO3S56DX.mjs} +7 -2
- package/dist/cli/{chunk-VLQWLPQU.mjs → chunk-DOKTNYMQ.mjs} +1 -1
- package/dist/cli/{chunk-5ZQEDZDQ.mjs → chunk-DPEPHLAF.mjs} +1 -1
- package/dist/cli/{chunk-L3JU24MF.js → chunk-EWXXWSQM.js} +11 -8
- package/dist/cli/{chunk-KPKU53YO.mjs → chunk-FKAHVFPJ.mjs} +1 -1
- package/dist/cli/{chunk-WY4W6PRD.mjs → chunk-FRZLWUM6.mjs} +3 -3
- package/dist/cli/{chunk-SMM2EKDC.mjs → chunk-FU7ELMKS.mjs} +1 -1
- package/dist/cli/{chunk-KKTRHDLN.mjs → chunk-GVPHPLAX.mjs} +3 -3
- package/dist/cli/{chunk-GEHYAQSI.mjs → chunk-HHOJXBQQ.mjs} +2 -2
- package/dist/cli/{chunk-DM6Q634K.js → chunk-HTAXXY66.js} +7 -2
- package/dist/cli/{chunk-SKXQZUMX.mjs → chunk-HU6PIQDF.mjs} +2 -2
- package/dist/cli/{chunk-D7IDBZDR.js → chunk-K4ELTQAT.js} +8 -8
- package/dist/cli/{chunk-77DW6WSO.js → chunk-KJH4C2IJ.js} +249 -245
- package/dist/cli/{chunk-GEQOPXOS.js → chunk-KNAKCMGJ.js} +17 -17
- package/dist/cli/{chunk-2JHQ24IT.js → chunk-KZ2VAXB6.js} +16 -16
- package/dist/cli/{chunk-6YWIRIOI.mjs → chunk-L3CW2G7L.mjs} +2 -2
- package/dist/cli/{chunk-VUYUI35Q.js → chunk-LRNYRGCN.js} +20 -11
- package/dist/cli/{chunk-NBFXQCWM.js → chunk-LVM7CSAH.js} +8 -8
- package/dist/cli/{chunk-O765GAOA.mjs → chunk-MQYBXB2J.mjs} +15 -11
- package/dist/cli/{chunk-7ICMVQL5.mjs → chunk-MRW6XPDH.mjs} +1 -1
- package/dist/cli/{chunk-SZUU2WTZ.js → chunk-MWUTMJCU.js} +1 -1
- package/dist/cli/{chunk-AR5YQQF5.mjs → chunk-MZLZNISS.mjs} +2 -2
- package/dist/cli/{chunk-K2DHO3IM.js → chunk-OSYT3QQD.js} +26 -26
- package/dist/cli/{chunk-GXOQRZXG.js → chunk-PP66EATA.js} +2 -2
- package/dist/cli/{chunk-2GVUZA6C.js → chunk-PXXIBSBG.js} +4 -4
- package/dist/cli/{chunk-R2QWSSAG.js → chunk-QFXPA2E4.js} +7 -7
- package/dist/cli/{chunk-L2FWEP4G.mjs → chunk-VXGLDGOF.mjs} +4 -4
- package/dist/cli/{chunk-MLJBCS3E.mjs → chunk-W25OALCJ.mjs} +10 -1
- package/dist/cli/{chunk-ODWSTSRJ.mjs → chunk-WOUFCLTM.mjs} +5 -5
- package/dist/cli/{chunk-LXTSVUZN.mjs → chunk-WQPJQEDE.mjs} +1 -1
- package/dist/cli/{chunk-RR2LZVRA.js → chunk-XIJL6UMV.js} +35 -35
- package/dist/cli/{chunk-DUUY2JKP.mjs → chunk-Y45RAHEA.mjs} +2 -2
- package/dist/cli/{chunk-D5IOUCJS.js → chunk-YV6N4BF2.js} +52 -52
- package/dist/cli/{chunk-LCT6MTYQ.js → chunk-ZXJQ26QG.js} +50 -50
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-HSR32EPA.mjs → csv-Z53PJEPZ.mjs} +3 -3
- package/dist/cli/{csv-C5Z4OZQN.js → csv-ZQFVZ4R3.js} +12 -12
- package/dist/cli/{db-JJGI4J5I.mjs → db-4CNIBR5P.mjs} +4 -4
- package/dist/cli/{db-AK4ZYYRP.js → db-OHBRQL2N.js} +25 -25
- package/dist/cli/{describe-JVSD6F2G.js → describe-AEM7SYXF.js} +24 -24
- package/dist/cli/{describe-C35MTKF4.mjs → describe-GAR4MEGX.mjs} +16 -16
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-ZEA7O4PX.js → executions-CST4IDL3.js} +6 -6
- package/dist/cli/{executions-ZECDB4NA.mjs → executions-YBZPFAD6.mjs} +4 -4
- package/dist/cli/{feedback-W7UL4V47.mjs → feedback-FHJE6YDU.mjs} +3 -3
- package/dist/cli/{feedback-WQC4SX75.js → feedback-MEJZGB4C.js} +7 -7
- package/dist/cli/{git-QBB7LEAV.mjs → git-FIGXIUM5.mjs} +4 -4
- package/dist/cli/git-PANOVLJC.js +24 -0
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-E5NFHPKQ.mjs → legacy-noops-AXHAIAMH.mjs} +4 -4
- package/dist/cli/{legacy-noops-2QPJTEF4.js → legacy-noops-BE3VVOYG.js} +7 -7
- package/dist/cli/{monitors-MWBA46VZ.js → monitors-5OTJUY43.js} +84 -84
- package/dist/cli/{monitors-E56RLT6N.mjs → monitors-YTWELXP7.mjs} +4 -4
- package/dist/cli/{org-KE2DDK5A.mjs → org-WCKS4ZDK.mjs} +4 -4
- package/dist/cli/{org-HGIWXACI.js → org-Y5DMTECB.js} +66 -66
- package/dist/cli/{play-WO5UXBZM.js → play-B6Y6ZCPV.js} +296 -296
- package/dist/cli/{play-LGTF4IYG.mjs → play-UYAZYXHV.mjs} +12 -12
- package/dist/cli/{providers-77KQS23B.mjs → providers-IZVVGFAO.mjs} +4 -4
- package/dist/cli/{providers-AIJPT54M.js → providers-U7BLFNT4.js} +7 -7
- package/dist/cli/{quickstart-EFMHLU4T.mjs → quickstart-BY7N6GXZ.mjs} +3 -3
- package/dist/cli/{quickstart-CZQFBJVH.js → quickstart-MTNOTGIH.js} +5 -5
- package/dist/cli/{search-U5KEPKNV.mjs → search-SJXJKATQ.mjs} +5 -5
- package/dist/cli/search-W7VXB4YP.js +30 -0
- package/dist/cli/{secrets-CBBR73U4.js → secrets-C2FN2YMO.js} +13 -13
- package/dist/cli/{secrets-JYHZIRO4.mjs → secrets-IA6JBZEF.mjs} +4 -4
- package/dist/cli/{sessions-XA2EZDXD.js → sessions-HGJQTLZP.js} +5 -5
- package/dist/cli/{sessions-T74U74J7.mjs → sessions-MNK7ZR2Y.mjs} +4 -4
- package/dist/cli/{settings-C45BH4CU.mjs → settings-7UBMCVFK.mjs} +8 -8
- package/dist/cli/{settings-ND4437UB.js → settings-MRMSITAL.js} +75 -75
- package/dist/cli/{setup-QDH6FAEZ.mjs → setup-MD4F55X4.mjs} +7 -7
- package/dist/cli/{setup-FQ7JS4HM.js → setup-UX7KNUOW.js} +42 -42
- package/dist/cli/{skills-ZFSBA754.mjs → skills-W7SAJDG6.mjs} +5 -5
- package/dist/cli/skills-ZY4KFM33.js +29 -0
- package/dist/cli/tools-6G4PXAZ3.js +44 -0
- package/dist/cli/{tools-OVGOFORB.mjs → tools-VAWJLJAK.mjs} +15 -15
- package/dist/cli/update-3D4R5FW6.js +31 -0
- package/dist/cli/{update-BNU7VX5M.mjs → update-B2UOERFE.mjs} +7 -7
- package/dist/cli/{workflow-FX6GLQ3H.mjs → workflow-3BYE3YFQ.mjs} +5 -5
- package/dist/cli/{workflow-JSSXWU3T.js → workflow-K2YJNF64.js} +15 -15
- package/dist/{client-BqQ7Rb11.d.ts → client-CBitBZpr.d.ts} +15 -3
- package/dist/{client-BCmnJaL9.d.mts → client-CTUbBRgg.d.mts} +15 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +90 -90
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- 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-HAO2GLGH.js +0 -40
- package/dist/cli/git-E7CXCBZZ.js +0 -24
- package/dist/cli/search-XMNR7CYI.js +0 -30
- package/dist/cli/skills-CSA2YFW6.js +0 -29
- package/dist/cli/tools-GUALRDI7.js +0 -44
- package/dist/cli/update-K4WJSWDB.js +0 -31
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FRZLWUM6.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6NUGMJQA.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION,
|
|
20
20
|
autoDetectBaseUrl,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ensureProjectPrivatePathsIgnored,
|
|
23
23
|
resolveProjectPinTarget,
|
|
24
24
|
sdkCliStateDirPath
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4A45A2MH.mjs";
|
|
26
26
|
|
|
27
27
|
// src/cli/commands/skills.ts
|
|
28
28
|
import { spawn } from "child_process";
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKZ2VAXB6js = require('./chunk-KZ2VAXB6.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkYV6N4BF2js = require('./chunk-YV6N4BF2.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkEWXXWSQMjs = require('./chunk-EWXXWSQM.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkPXXIBSBGjs = require('./chunk-PXXIBSBG.js');
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -42,7 +42,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
42
42
|
async function reportAutoUpdateEvent(input) {
|
|
43
43
|
let apiKey = "";
|
|
44
44
|
try {
|
|
45
|
-
apiKey =
|
|
45
|
+
apiKey = _chunkPXXIBSBGjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
46
46
|
} catch (e2) {
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
@@ -58,15 +58,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
58
58
|
headers: {
|
|
59
59
|
Authorization: `Bearer ${apiKey}`,
|
|
60
60
|
"Content-Type": "application/json",
|
|
61
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
61
|
+
"User-Agent": `deepline-ts-sdk/${_chunkPXXIBSBGjs.SDK_VERSION}`,
|
|
62
62
|
"X-Deepline-Client-Family": "sdk",
|
|
63
63
|
"X-Deepline-CLI-Family": "sdk",
|
|
64
|
-
"X-Deepline-CLI-Version":
|
|
65
|
-
"X-Deepline-SDK-Version":
|
|
64
|
+
"X-Deepline-CLI-Version": _chunkPXXIBSBGjs.SDK_VERSION,
|
|
65
|
+
"X-Deepline-SDK-Version": _chunkPXXIBSBGjs.SDK_VERSION
|
|
66
66
|
},
|
|
67
67
|
body: JSON.stringify({
|
|
68
68
|
event: input.event,
|
|
69
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
69
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkPXXIBSBGjs.SDK_VERSION,
|
|
70
70
|
target_version: input.response.latest,
|
|
71
71
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
72
72
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -85,13 +85,13 @@ function envTruthy(name) {
|
|
|
85
85
|
return value === "1" || value === "true" || value === "yes";
|
|
86
86
|
}
|
|
87
87
|
function shouldSkipSelfUpdate(policy) {
|
|
88
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
88
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkKZ2VAXB6js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkYV6N4BF2js.isCiEnvironment.call(void 0, );
|
|
89
89
|
}
|
|
90
90
|
function isDowngradeAutoUpdateResponse(response) {
|
|
91
91
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
92
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
92
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkPXXIBSBGjs.SDK_VERSION;
|
|
93
93
|
if (!target) return false;
|
|
94
|
-
return
|
|
94
|
+
return _chunkKZ2VAXB6js.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
95
95
|
}
|
|
96
96
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
97
97
|
return new Promise((resolve) => {
|
|
@@ -144,7 +144,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
144
144
|
}
|
|
145
145
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
146
146
|
const target = response.latest;
|
|
147
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
147
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkPXXIBSBGjs.SDK_VERSION;
|
|
148
148
|
process.stderr.write(
|
|
149
149
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
150
150
|
`
|
|
@@ -152,21 +152,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
152
152
|
return false;
|
|
153
153
|
}
|
|
154
154
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
155
|
-
const plan =
|
|
155
|
+
const plan = _chunkKZ2VAXB6js.resolveUpdatePlan.call(void 0, {
|
|
156
156
|
packageSpec,
|
|
157
157
|
requireVerifiedNpmOwnership: true,
|
|
158
158
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
159
159
|
});
|
|
160
|
-
if (!
|
|
160
|
+
if (!_chunkKZ2VAXB6js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
161
161
|
return false;
|
|
162
162
|
}
|
|
163
163
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
164
164
|
deferredAutoUpdate = async () => {
|
|
165
165
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
166
166
|
};
|
|
167
|
-
if (
|
|
167
|
+
if (_chunkEWXXWSQMjs.isJsonOutputMode.call(void 0, )) {
|
|
168
168
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
169
|
-
|
|
169
|
+
_chunkEWXXWSQMjs.addJsonNotice.call(void 0, {
|
|
170
170
|
code: "sdk_update_queued",
|
|
171
171
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
172
172
|
});
|
|
@@ -179,7 +179,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
179
179
|
return true;
|
|
180
180
|
}
|
|
181
181
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
182
|
-
if (!
|
|
182
|
+
if (!_chunkKZ2VAXB6js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
183
183
|
const autoUpdate = response.auto_update;
|
|
184
184
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
185
185
|
process.stderr.write(
|
|
@@ -192,7 +192,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
192
192
|
event: "started",
|
|
193
193
|
installKind: plan.kind
|
|
194
194
|
});
|
|
195
|
-
const updateResult = await
|
|
195
|
+
const updateResult = await _chunkKZ2VAXB6js.runAutomaticUpdatePlan.call(void 0, plan);
|
|
196
196
|
if (updateResult.status === "skipped_previous_failure") {
|
|
197
197
|
void reportAutoUpdateEvent({
|
|
198
198
|
baseUrl,
|
|
@@ -243,7 +243,7 @@ var _crypto = require('crypto');
|
|
|
243
243
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
244
244
|
var activeToolExecuteCommand = null;
|
|
245
245
|
function progressLine(line) {
|
|
246
|
-
if (!
|
|
246
|
+
if (!_chunkEWXXWSQMjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
247
247
|
}
|
|
248
248
|
function beginToolExecuteCommand() {
|
|
249
249
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -28,7 +28,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkPXXIBSBGjs = require('./chunk-PXXIBSBG.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -647,7 +647,7 @@ var ToolCalls = class {
|
|
|
647
647
|
idempotencyKey,
|
|
648
648
|
onResponse: (response2) => {
|
|
649
649
|
lastResponse = null;
|
|
650
|
-
atomicToolsSupported = response2.headers.get(
|
|
650
|
+
atomicToolsSupported = response2.headers.get(_chunkPXXIBSBGjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
651
651
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
652
652
|
if (_optionalChain([options, 'optionalAccess', _29 => _29.onServerTiming])) {
|
|
653
653
|
try {
|
|
@@ -997,8 +997,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
997
997
|
}
|
|
998
998
|
const receivers = _optionalChain([env, 'access', _51 => _51.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]);
|
|
999
999
|
return {
|
|
1000
|
-
[
|
|
1001
|
-
...receivers ? { [
|
|
1000
|
+
[_chunkPXXIBSBGjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1001
|
+
...receivers ? { [_chunkPXXIBSBGjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1069,7 +1069,7 @@ var PlayClient = class {
|
|
|
1069
1069
|
return _chunkJKVRBCZLjs.startPlayRun.call(void 0,
|
|
1070
1070
|
this.http,
|
|
1071
1071
|
resolved.request,
|
|
1072
|
-
_optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1072
|
+
_optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkPXXIBSBGjs.SDK_API_MAJOR) } : headers,
|
|
1073
1073
|
options
|
|
1074
1074
|
);
|
|
1075
1075
|
}
|
|
@@ -1135,9 +1135,9 @@ var PlayClient = class {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
};
|
|
1137
1137
|
function createPlayClient(options) {
|
|
1138
|
-
const config =
|
|
1138
|
+
const config = _chunkPXXIBSBGjs.resolveConfig.call(void 0, options);
|
|
1139
1139
|
return new PlayClient(
|
|
1140
|
-
new (0,
|
|
1140
|
+
new (0, _chunkPXXIBSBGjs.HttpClient)(config),
|
|
1141
1141
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
1142
1142
|
);
|
|
1143
1143
|
}
|
|
@@ -3151,7 +3151,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3151
3151
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3152
3152
|
);
|
|
3153
3153
|
}
|
|
3154
|
-
return { [
|
|
3154
|
+
return { [_chunkPXXIBSBGjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3155
3155
|
}
|
|
3156
3156
|
function sleep(ms) {
|
|
3157
3157
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -3389,9 +3389,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3389
3389
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3390
3390
|
*/
|
|
3391
3391
|
constructor(options) {
|
|
3392
|
-
this.config =
|
|
3392
|
+
this.config = _chunkPXXIBSBGjs.resolveConfig.call(void 0, options);
|
|
3393
3393
|
this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
|
|
3394
|
-
this.http = new (0,
|
|
3394
|
+
this.http = new (0, _chunkPXXIBSBGjs.HttpClient)(this.config);
|
|
3395
3395
|
this.playClient = new PlayClient(this.http, this.environment);
|
|
3396
3396
|
this.toolCalls = new ToolCalls(
|
|
3397
3397
|
this.http,
|
|
@@ -598,8 +598,13 @@ Input:
|
|
|
598
598
|
Output (JSON):
|
|
599
599
|
job_id, status ("completed" or a failure status), toolResponse.rawV2 (the
|
|
600
600
|
complete provider result), output_preview {kind, rowCount, columns, preview,
|
|
601
|
-
listSourcePath}, summary, next, render.sections.
|
|
602
|
-
|
|
601
|
+
listSourcePath}, summary, next, render.sections.
|
|
602
|
+
Failures:
|
|
603
|
+
A failed call prints {ok:false, status:"failed", statusCode, error} and
|
|
604
|
+
exits non-zero. Treat ok:false or a non-zero exit as a failure, never as an
|
|
605
|
+
empty result: record the row as failed and retry it, not as "no match".
|
|
606
|
+
statusCode 429 is a rate or quota refusal; retry after the delay in
|
|
607
|
+
error.tool_error.retryAfterMs.
|
|
603
608
|
]]
|
|
604
609
|
[[mcp:
|
|
605
610
|
Output:
|
|
@@ -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.443",
|
|
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."
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkPXXIBSBGjs = require('./chunk-PXXIBSBG.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -288,8 +288,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
288
288
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
289
289
|
var defaultBrowserCommandRunner = childProcess;
|
|
290
290
|
function getAuthedHttpClient() {
|
|
291
|
-
const config =
|
|
292
|
-
return { config, http: new (0,
|
|
291
|
+
const config = _chunkPXXIBSBGjs.resolveConfig.call(void 0, );
|
|
292
|
+
return { config, http: new (0, _chunkPXXIBSBGjs.HttpClient)(config) };
|
|
293
293
|
}
|
|
294
294
|
function stableOsUserId() {
|
|
295
295
|
try {
|
|
@@ -629,7 +629,7 @@ function collectLocalEnvInfo() {
|
|
|
629
629
|
os: `${process.platform} ${process.arch}`,
|
|
630
630
|
node_version: process.version,
|
|
631
631
|
home_dir: homeDir,
|
|
632
|
-
agent_runtime:
|
|
632
|
+
agent_runtime: _chunkPXXIBSBGjs.detectAgentRuntime.call(void 0, )
|
|
633
633
|
};
|
|
634
634
|
const env = process.env;
|
|
635
635
|
const optional = {
|
|
@@ -876,9 +876,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
876
876
|
}
|
|
877
877
|
function withAgentCommandContext(value) {
|
|
878
878
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
879
|
-
return
|
|
879
|
+
return _chunkPXXIBSBGjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
880
880
|
...valueRecord,
|
|
881
|
-
command_context:
|
|
881
|
+
command_context: _chunkPXXIBSBGjs.resolveCliCommandContext.call(void 0, )
|
|
882
882
|
} : value;
|
|
883
883
|
}
|
|
884
884
|
function printJson(value, fields) {
|
|
@@ -949,8 +949,11 @@ function errorToJsonPayload(error) {
|
|
|
949
949
|
if (typeof _optionalChain([maybeRecord, 'optionalAccess', _33 => _33.cause]) === "string") {
|
|
950
950
|
details.cause = maybeRecord.cause;
|
|
951
951
|
}
|
|
952
|
+
const statusCode = typeof _optionalChain([maybeRecord, 'optionalAccess', _34 => _34.statusCode]) === "number" ? maybeRecord.statusCode : typeof _optionalChain([maybeRecord, 'optionalAccess', _35 => _35.status]) === "number" ? maybeRecord.status : _nullishCoalesce(_optionalChain([toolFailure, 'optionalAccess', _36 => _36.statusCode]), () => ( void 0));
|
|
952
953
|
return {
|
|
953
954
|
ok: false,
|
|
955
|
+
status: "failed",
|
|
956
|
+
...typeof statusCode === "number" ? { statusCode } : {},
|
|
954
957
|
...exitCode !== void 0 ? { exitCode } : {},
|
|
955
958
|
error: {
|
|
956
959
|
message,
|
|
@@ -1007,12 +1010,12 @@ function clip(value, maxLength) {
|
|
|
1007
1010
|
// src/cli/command-envelope.ts
|
|
1008
1011
|
function renderSections(render) {
|
|
1009
1012
|
const lines = [];
|
|
1010
|
-
for (const section of _nullishCoalesce(_optionalChain([render, 'optionalAccess',
|
|
1013
|
+
for (const section of _nullishCoalesce(_optionalChain([render, 'optionalAccess', _37 => _37.sections]), () => ( []))) {
|
|
1011
1014
|
if (!section.title || section.lines.length === 0) continue;
|
|
1012
1015
|
lines.push(section.title);
|
|
1013
1016
|
lines.push(...section.lines.map((line) => ` ${line}`));
|
|
1014
1017
|
}
|
|
1015
|
-
for (const action of _nullishCoalesce(_optionalChain([render, 'optionalAccess',
|
|
1018
|
+
for (const action of _nullishCoalesce(_optionalChain([render, 'optionalAccess', _38 => _38.actions]), () => ( []))) {
|
|
1016
1019
|
if (!action.label || !action.command) continue;
|
|
1017
1020
|
lines.push(`${action.label}: ${action.command}`);
|
|
1018
1021
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isJsonOutputMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6NUGMJQA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
sdkCliStateDirPath,
|
|
18
18
|
skillsAgentPathSegment,
|
|
19
19
|
writeSdkSkillsLocalVersion
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4A45A2MH.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DeeplineError
|
|
23
23
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_RELEASE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-DOKTNYMQ.mjs";
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-LJ5747UC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MRW6XPDH.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope,
|
|
9
9
|
renderCommandEnvelopeText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6NUGMJQA.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig,
|
|
13
13
|
sdkCliStateDirPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4A45A2MH.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__toESM
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6NUGMJQA.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4A45A2MH.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -598,8 +598,13 @@ Input:
|
|
|
598
598
|
Output (JSON):
|
|
599
599
|
job_id, status ("completed" or a failure status), toolResponse.rawV2 (the
|
|
600
600
|
complete provider result), output_preview {kind, rowCount, columns, preview,
|
|
601
|
-
listSourcePath}, summary, next, render.sections.
|
|
602
|
-
|
|
601
|
+
listSourcePath}, summary, next, render.sections.
|
|
602
|
+
Failures:
|
|
603
|
+
A failed call prints {ok:false, status:"failed", statusCode, error} and
|
|
604
|
+
exits non-zero. Treat ok:false or a non-zero exit as a failure, never as an
|
|
605
|
+
empty result: record the row as failed and retry it, not as "no match".
|
|
606
|
+
statusCode 429 is a rate or quota refusal; retry after the delay in
|
|
607
|
+
error.tool_error.retryAfterMs.
|
|
603
608
|
]]
|
|
604
609
|
[[mcp:
|
|
605
610
|
Output:
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WQPJQEDE.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildPlayDashboardUrl,
|
|
9
9
|
byokLines,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
examples,
|
|
14
14
|
schemaLines,
|
|
15
15
|
topLevelField
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-W25OALCJ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkEWXXWSQMjs = require('./chunk-EWXXWSQM.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPXXIBSBGjs = require('./chunk-PXXIBSBG.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkPXXIBSBGjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkEWXXWSQMjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkEWXXWSQMjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkEWXXWSQMjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkEWXXWSQMjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkEWXXWSQMjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|