deepline 0.3.526 → 0.3.527
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +24 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +35 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +50 -8
- package/dist/cli/auth-C7BBYIQD.js +43 -0
- package/dist/cli/{auth-JATW5XZE.mjs → auth-LRMMQFJ4.mjs} +5 -5
- package/dist/cli/{billing-TSHBJIJS.js → billing-M76MMWZB.js} +79 -79
- package/dist/cli/{billing-UT5LIESH.mjs → billing-WZZDXVRJ.mjs} +6 -6
- package/dist/cli/{chunk-F5KFGF45.js → chunk-2A6IRSE6.js} +5 -5
- package/dist/cli/{chunk-2JNX3MDG.mjs → chunk-2L3HVEBM.mjs} +1 -1
- package/dist/cli/{chunk-BYEF4RBX.js → chunk-3L2DNG5X.js} +11 -11
- package/dist/cli/{chunk-FMPGWAIR.js → chunk-3PQDEBO6.js} +1 -1
- package/dist/cli/{chunk-HPACLONQ.mjs → chunk-4YN7DZEA.mjs} +2 -2
- package/dist/cli/{chunk-D2XMFXFM.mjs → chunk-5YR6CDJ2.mjs} +6 -6
- package/dist/cli/{chunk-3ZEV5BS5.js → chunk-66YLAQ2X.js} +26 -26
- package/dist/cli/{chunk-TXJW6RIM.mjs → chunk-77VNC2KF.mjs} +1 -1
- package/dist/cli/{chunk-WITNIMLE.js → chunk-7DPWGAOU.js} +3 -3
- package/dist/cli/{chunk-WOLY6SU4.mjs → chunk-AXFHQWGA.mjs} +1 -1
- package/dist/cli/{chunk-B33J4YCC.js → chunk-C7A44BZ7.js} +3 -3
- package/dist/cli/{chunk-U6OUX47C.mjs → chunk-E4TEZE62.mjs} +2 -2
- package/dist/cli/{chunk-UTCGCES2.js → chunk-EOL7PXLW.js} +7 -7
- package/dist/cli/{chunk-ED2N4NRI.js → chunk-ETXQZGQU.js} +16 -16
- package/dist/cli/{chunk-Y47OCS5V.mjs → chunk-GIRMVMXP.mjs} +1 -1
- package/dist/cli/{chunk-DY2AT3JQ.mjs → chunk-HA2J2OAS.mjs} +10 -10
- package/dist/cli/{chunk-SCLRGDF4.js → chunk-HB3YUHEL.js} +44 -44
- package/dist/cli/{chunk-J5OXJ4JI.js → chunk-HQZLTK3P.js} +2 -2
- package/dist/cli/{chunk-MQB25LMV.mjs → chunk-JEIGNX3G.mjs} +5 -5
- package/dist/cli/{chunk-7COEN3IR.js → chunk-JSEISVAZ.js} +4 -4
- package/dist/cli/{chunk-XVIMOB2U.mjs → chunk-JSVHBJE2.mjs} +2 -2
- package/dist/cli/{chunk-TVHDWS5U.mjs → chunk-KDFUQRVU.mjs} +1 -1
- package/dist/cli/{chunk-3MYI3IXW.js → chunk-LHMHUA5D.js} +7 -7
- package/dist/cli/{chunk-26ULNPQ7.mjs → chunk-M45S7JAY.mjs} +2 -2
- package/dist/cli/{chunk-6COGHW7B.mjs → chunk-MIL5YDKZ.mjs} +2 -2
- package/dist/cli/{chunk-IMP7WR22.mjs → chunk-MMM2WMTF.mjs} +5 -5
- package/dist/cli/{chunk-BVITYMBK.mjs → chunk-NVII3RWQ.mjs} +2 -2
- package/dist/cli/{chunk-RZJWHL7L.js → chunk-OKRBGXDI.js} +5 -5
- package/dist/cli/{chunk-CDP3LMDT.js → chunk-OLSATEDQ.js} +6 -6
- package/dist/cli/{chunk-SJ6KUCGM.js → chunk-OXHY3LD3.js} +53 -53
- package/dist/cli/{chunk-2GJW4RAQ.mjs → chunk-P5ZU5ZHA.mjs} +1 -1
- package/dist/cli/{chunk-IWLDJQGV.mjs → chunk-QKKT5G4K.mjs} +3 -3
- package/dist/cli/{chunk-TCLJXJAG.mjs → chunk-QKY3H3HA.mjs} +4 -4
- package/dist/cli/{chunk-UWCEBS7F.js → chunk-R6IWWPY7.js} +14 -14
- package/dist/cli/{chunk-WBY3R55B.js → chunk-RGL2YGJZ.js} +2 -2
- package/dist/cli/{chunk-EEYZLTXX.mjs → chunk-RMCKTV4R.mjs} +1 -1
- package/dist/cli/{chunk-6JMWATX5.mjs → chunk-RTPLRMEB.mjs} +5 -5
- package/dist/cli/{chunk-6DHEV6IA.js → chunk-SRQQAUXN.js} +2 -2
- package/dist/cli/{chunk-477PXM65.js → chunk-UAQ7ZWRP.js} +22 -22
- package/dist/cli/{chunk-BFH3DJYV.mjs → chunk-UJHS2O5O.mjs} +3 -3
- package/dist/cli/{chunk-UUIC2JFZ.mjs → chunk-UKOG6PCB.mjs} +1 -1
- package/dist/cli/{chunk-C3EW6I65.mjs → chunk-VTXBV4AX.mjs} +1 -1
- package/dist/cli/{chunk-YNFPZVII.mjs → chunk-VV2AFJ3I.mjs} +5 -5
- package/dist/cli/{chunk-46HEYGLY.js → chunk-XI47UAVU.js} +9 -9
- package/dist/cli/{chunk-D5OEUPPM.js → chunk-XYG4IOJK.js} +98 -98
- package/dist/cli/{chunk-O7WUATQC.js → chunk-YJ4YVFXC.js} +13 -13
- package/dist/cli/{chunk-77RAGJIZ.mjs → chunk-YKPMIJJ2.mjs} +2 -2
- package/dist/cli/{chunk-TBQC2XS3.js → chunk-YSDPYQBH.js} +41 -41
- package/dist/cli/{chunk-CYN2AHR6.js → chunk-YUYDP2EG.js} +6 -6
- package/dist/cli/{chunk-6H56LKJB.js → chunk-ZHY7AY5V.js} +16 -16
- package/dist/cli/{csv-4BLFRED6.mjs → csv-FEFNXZF7.mjs} +4 -4
- package/dist/cli/{csv-KSJB5Z3M.js → csv-IRP6VT7Q.js} +13 -13
- package/dist/cli/{db-OVW6C3DV.mjs → db-IHECMWZ3.mjs} +6 -6
- package/dist/cli/{db-G7Z5CKO2.js → db-Y5VNPNRD.js} +27 -27
- package/dist/cli/describe-MNJVJHRE.js +50 -0
- package/dist/cli/{describe-OEFTD7WQ.mjs → describe-XCVC2WLL.mjs} +18 -18
- package/dist/cli/{executions-7ZKQ4ZU3.mjs → executions-3FWZYUJV.mjs} +6 -6
- package/dist/cli/{executions-O7USCBCW.js → executions-QH3KJ6MA.js} +8 -8
- package/dist/cli/{feedback-Y55WCRIQ.js → feedback-BGHWMOLH.js} +14 -14
- package/dist/cli/{feedback-KUBL5E3I.mjs → feedback-F3OZXOPM.mjs} +6 -6
- package/dist/cli/git-MDOHEW5J.js +25 -0
- package/dist/cli/{git-C6ZAU5JA.mjs → git-RWPH3D75.mjs} +5 -5
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-MUXD4HRC.mjs → legacy-noops-5ADSTBJ5.mjs} +6 -6
- package/dist/cli/{legacy-noops-OVWX4KB3.js → legacy-noops-G6CYD5LM.js} +9 -9
- package/dist/cli/{monitors-2ZSGBY52.mjs → monitors-AFNAU3A2.mjs} +7 -7
- package/dist/cli/{monitors-3QVYGYWA.js → monitors-VZCBZO26.js} +100 -100
- package/dist/cli/{org-RDSPE5FB.mjs → org-JVLYTU24.mjs} +6 -6
- package/dist/cli/{org-S6Z3SDLI.js → org-X4QRYBC4.js} +86 -86
- package/dist/cli/{pages-K5DSMHLJ.mjs → pages-VELKZKBL.mjs} +6 -6
- package/dist/cli/{pages-VUWF2OR7.js → pages-YMM4KBW5.js} +18 -18
- package/dist/cli/{play-SQOJTUFC.js → play-J7DEBHI7.js} +317 -317
- package/dist/cli/{play-PZLXOYEX.mjs → play-MIY6BYRB.mjs} +18 -18
- package/dist/cli/{providers-AMIGP3D4.mjs → providers-2H3W3W7G.mjs} +6 -6
- package/dist/cli/{providers-FZBEPUOI.js → providers-TOUB7Y2A.js} +9 -9
- package/dist/cli/{quickstart-HNOQKGOF.mjs → quickstart-GKAS5265.mjs} +4 -4
- package/dist/cli/{quickstart-QIHZDBGM.js → quickstart-LHY2LN3P.js} +6 -6
- package/dist/cli/{run-JDW6BDNT.mjs → run-KYGNOWYD.mjs} +23 -23
- package/dist/cli/{run-IQGM3TO2.js → run-QCAVDPE5.js} +41 -41
- package/dist/cli/search-G67CEHR7.js +33 -0
- package/dist/cli/{search-DMVUKJ23.mjs → search-YPGAIFDX.mjs} +8 -8
- package/dist/cli/{search-output-UUW6UNHF.js → search-output-ASELNQ2U.js} +6 -6
- package/dist/cli/{search-output-5UAPUUHH.mjs → search-output-OOC3VK4T.mjs} +4 -4
- package/dist/cli/{secrets-U532KN24.js → secrets-KX3TQB4R.js} +15 -15
- package/dist/cli/{secrets-46KSTPFN.mjs → secrets-VJ4XYSMZ.mjs} +6 -6
- package/dist/cli/{sessions-RUNWYHYX.mjs → sessions-KUN7H7E5.mjs} +6 -6
- package/dist/cli/sessions-QILPX4XQ.js +22 -0
- package/dist/cli/{settings-O2A37FFA.js → settings-5NIF4BU7.js} +86 -86
- package/dist/cli/{settings-56L3WHCY.mjs → settings-JKFYZ2IT.mjs} +13 -13
- package/dist/cli/{setup-Q27X6JZY.mjs → setup-5AX3TN6G.mjs} +10 -10
- package/dist/cli/{setup-ETFSMSCH.js → setup-MYV3IHPS.js} +50 -50
- package/dist/cli/{skills-WFQRZL4D.mjs → skills-JLS4CINQ.mjs} +8 -8
- package/dist/cli/skills-NG32XTZI.js +37 -0
- package/dist/cli/tools-OZG3V77R.js +57 -0
- package/dist/cli/{tools-EV6CKJOX.mjs → tools-VBYKD3MJ.mjs} +17 -17
- package/dist/cli/{update-KIPPFVCH.mjs → update-QWAIVJRI.mjs} +10 -10
- package/dist/cli/update-YL5WVSKU.js +35 -0
- package/dist/cli/{views-LMJXWD4N.mjs → views-TBWGZAVZ.mjs} +6 -6
- package/dist/cli/{views-DNZ2HFTA.js → views-ZW56JZB5.js} +18 -18
- package/dist/cli/{workflow-ZUDTIOK6.js → workflow-EKSZST6M.js} +17 -17
- package/dist/cli/{workflow-3XKUQ73U.mjs → workflow-X7UQPJMQ.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +104 -104
- 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-L2POG3LL.js +0 -43
- package/dist/cli/describe-KMYR2JBC.js +0 -50
- package/dist/cli/git-NBVQ3VGW.js +0 -25
- package/dist/cli/search-BNWRL3YY.js +0 -33
- package/dist/cli/sessions-JZUONXH4.js +0 -22
- package/dist/cli/skills-IKDJ5JDN.js +0 -37
- package/dist/cli/tools-B735AA67.js +0 -57
- package/dist/cli/update-CNNURAM3.js +0 -35
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZHY7AY5Vjs = require('./chunk-ZHY7AY5V.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkHB3YUHELjs = require('./chunk-HB3YUHEL.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkEOL7PXLWjs = require('./chunk-EOL7PXLW.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk7DPWGAOUjs = require('./chunk-7DPWGAOU.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkJSEISVAZjs = require('./chunk-JSEISVAZ.js');
|
|
22
22
|
|
|
23
23
|
// src/cli/compatibility-catalog.ts
|
|
24
24
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
45
45
|
async function reportAutoUpdateEvent(input) {
|
|
46
46
|
let apiKey = "";
|
|
47
47
|
try {
|
|
48
|
-
apiKey =
|
|
48
|
+
apiKey = _chunk7DPWGAOUjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
49
49
|
} catch (e2) {
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
61
61
|
headers: {
|
|
62
62
|
Authorization: `Bearer ${apiKey}`,
|
|
63
63
|
"Content-Type": "application/json",
|
|
64
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
64
|
+
"User-Agent": `deepline-ts-sdk/${_chunkJSEISVAZjs.SDK_VERSION}`,
|
|
65
65
|
"X-Deepline-Client-Family": "sdk",
|
|
66
66
|
"X-Deepline-CLI-Family": "sdk",
|
|
67
|
-
"X-Deepline-CLI-Version":
|
|
68
|
-
"X-Deepline-SDK-Version":
|
|
67
|
+
"X-Deepline-CLI-Version": _chunkJSEISVAZjs.SDK_VERSION,
|
|
68
|
+
"X-Deepline-SDK-Version": _chunkJSEISVAZjs.SDK_VERSION
|
|
69
69
|
},
|
|
70
70
|
body: JSON.stringify({
|
|
71
71
|
event: input.event,
|
|
72
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
72
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkJSEISVAZjs.SDK_VERSION,
|
|
73
73
|
target_version: input.response.latest,
|
|
74
74
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
75
75
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -88,13 +88,13 @@ function envTruthy(name) {
|
|
|
88
88
|
return value === "1" || value === "true" || value === "yes";
|
|
89
89
|
}
|
|
90
90
|
function shouldSkipSelfUpdate(policy) {
|
|
91
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
91
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkZHY7AY5Vjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkHB3YUHELjs.isCiEnvironment.call(void 0, );
|
|
92
92
|
}
|
|
93
93
|
function isDowngradeAutoUpdateResponse(response) {
|
|
94
94
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
95
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
95
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkJSEISVAZjs.SDK_VERSION;
|
|
96
96
|
if (!target) return false;
|
|
97
|
-
return
|
|
97
|
+
return _chunkZHY7AY5Vjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
98
98
|
}
|
|
99
99
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
100
100
|
return new Promise((resolve) => {
|
|
@@ -147,7 +147,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
147
147
|
}
|
|
148
148
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
149
149
|
const target = response.latest;
|
|
150
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
150
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkJSEISVAZjs.SDK_VERSION;
|
|
151
151
|
process.stderr.write(
|
|
152
152
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
153
153
|
`
|
|
@@ -155,21 +155,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
155
155
|
return false;
|
|
156
156
|
}
|
|
157
157
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
158
|
-
const plan =
|
|
158
|
+
const plan = _chunkZHY7AY5Vjs.resolveUpdatePlan.call(void 0, {
|
|
159
159
|
packageSpec,
|
|
160
160
|
requireVerifiedNpmOwnership: true,
|
|
161
161
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
162
162
|
});
|
|
163
|
-
if (!
|
|
163
|
+
if (!_chunkZHY7AY5Vjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
164
164
|
return false;
|
|
165
165
|
}
|
|
166
166
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
167
167
|
deferredAutoUpdate = async () => {
|
|
168
168
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
169
169
|
};
|
|
170
|
-
if (
|
|
170
|
+
if (_chunkEOL7PXLWjs.isJsonOutputMode.call(void 0, )) {
|
|
171
171
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
172
|
-
|
|
172
|
+
_chunkEOL7PXLWjs.addJsonNotice.call(void 0, {
|
|
173
173
|
code: "sdk_update_queued",
|
|
174
174
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
175
175
|
});
|
|
@@ -182,7 +182,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
182
182
|
return true;
|
|
183
183
|
}
|
|
184
184
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
185
|
-
if (!
|
|
185
|
+
if (!_chunkZHY7AY5Vjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
186
186
|
const autoUpdate = response.auto_update;
|
|
187
187
|
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";
|
|
188
188
|
process.stderr.write(
|
|
@@ -195,7 +195,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
195
195
|
event: "started",
|
|
196
196
|
installKind: plan.kind
|
|
197
197
|
});
|
|
198
|
-
const updateResult = await
|
|
198
|
+
const updateResult = await _chunkZHY7AY5Vjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
199
199
|
if (updateResult.status === "skipped_previous_failure") {
|
|
200
200
|
void reportAutoUpdateEvent({
|
|
201
201
|
baseUrl,
|
|
@@ -233,7 +233,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
233
233
|
exitCode: 0
|
|
234
234
|
});
|
|
235
235
|
try {
|
|
236
|
-
await
|
|
236
|
+
await _chunkHB3YUHELjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
237
237
|
mode: "detached",
|
|
238
238
|
update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
|
|
239
239
|
afterCliUpdate: {
|
|
@@ -260,7 +260,7 @@ var _crypto = require('crypto');
|
|
|
260
260
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
261
261
|
var activeToolExecuteCommand = null;
|
|
262
262
|
function progressLine(line) {
|
|
263
|
-
if (!
|
|
263
|
+
if (!_chunkEOL7PXLWjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
264
264
|
}
|
|
265
265
|
function beginToolExecuteCommand() {
|
|
266
266
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UKOG6PCB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JSVHBJE2.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment,
|
|
10
10
|
claudeProjectsRoots,
|
|
11
11
|
coworkTranscriptFromEnvironment
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-P5ZU5ZHA.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
import {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GIRMVMXP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MIL5YDKZ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
sdkCliStateDirPath,
|
|
15
15
|
skillsAgentPathSegment,
|
|
16
16
|
writeSdkSkillsLocalVersion
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-77VNC2KF.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_API_CONTRACT,
|
|
20
20
|
SDK_API_MAJOR,
|
|
21
21
|
SDK_VERSION,
|
|
22
22
|
deploymentProtectionHeaders,
|
|
23
23
|
detectAgentRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-P5ZU5ZHA.mjs";
|
|
25
25
|
import {
|
|
26
26
|
SDK_RELEASE
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RMCKTV4R.mjs";
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
import { randomUUID } from "crypto";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkLHMHUA5Djs = require('./chunk-LHMHUA5D.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
|
|
@@ -11,7 +11,7 @@ var _chunk2KHUFWTKjs = require('./chunk-2KHUFWTK.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkEOL7PXLWjs = require('./chunk-EOL7PXLW.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.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 = _chunkEOL7PXLWjs.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 ? _chunkEOL7PXLWjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkEOL7PXLWjs.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");
|
|
@@ -656,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
656
656
|
"--log-level requires one of: debug, info, warn, error."
|
|
657
657
|
);
|
|
658
658
|
}
|
|
659
|
-
const parsed =
|
|
659
|
+
const parsed = _chunkLHMHUA5Djs.parseLogLevel.call(void 0, value);
|
|
660
660
|
if (!parsed) {
|
|
661
661
|
throw new Error(
|
|
662
662
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -974,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
974
974
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
975
975
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
976
976
|
);
|
|
977
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
977
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkLHMHUA5Djs.parseLogLevel.call(void 0, options.logLevel);
|
|
978
978
|
if (!logLevel)
|
|
979
979
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
980
980
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -988,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
988
988
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
989
989
|
logLevel = "debug";
|
|
990
990
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
991
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
992
|
-
[...fullJson ? ["--full"] : [], ...
|
|
991
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkEOL7PXLWjs.parseJsonFields.call(void 0,
|
|
992
|
+
[...fullJson ? ["--full"] : [], ..._chunkEOL7PXLWjs.jsonFieldArgs.call(void 0, options.json)],
|
|
993
993
|
"run"
|
|
994
994
|
).fields;
|
|
995
995
|
const watch = options.wait === false ? false : base.watch;
|
|
996
996
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
997
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
997
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkEOL7PXLWjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
998
998
|
const verboseLogs = Boolean(
|
|
999
999
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
1000
1000
|
);
|