deepline 0.3.560 → 0.3.562
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/modal.ts +16 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +57 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +24 -2
- package/dist/cli/auth-FM3JO6FN.js +44 -0
- package/dist/cli/{auth-5DIOQ3MO.mjs → auth-OFHWBJ2W.mjs} +5 -5
- package/dist/cli/{billing-N5NS5CU6.js → billing-BORJ3ZHJ.js} +99 -99
- package/dist/cli/{billing-K7EJAM55.mjs → billing-PPOC7TAY.mjs} +8 -8
- package/dist/cli/{chunk-4CQ7LVRT.js → chunk-3BV2OD25.js} +48 -48
- package/dist/cli/{chunk-SCM6BR4Q.mjs → chunk-3OJLUVOS.mjs} +1 -1
- package/dist/cli/{chunk-5VC6K4NJ.js → chunk-4O47WP3B.js} +26 -26
- package/dist/cli/{chunk-ZXB2Y3SG.js → chunk-5COJEZSB.js} +4 -4
- package/dist/cli/{chunk-4PBYS3PS.mjs → chunk-5KMZR36E.mjs} +1 -1
- package/dist/cli/{chunk-V7ZOAXZ4.js → chunk-5NGS4RLF.js} +23 -23
- package/dist/cli/{chunk-GKONGPVW.mjs → chunk-5VXK34DQ.mjs} +5 -5
- package/dist/cli/{chunk-JQDVX3D4.mjs → chunk-5XS5BTMC.mjs} +4 -4
- package/dist/cli/{chunk-BQ2Z6PSE.mjs → chunk-5YQVEV7I.mjs} +5 -5
- package/dist/cli/{chunk-Q77PM7U2.js → chunk-6BGEW3KU.js} +20 -20
- package/dist/cli/{chunk-A62A73U6.mjs → chunk-7DRCIDPW.mjs} +3 -3
- package/dist/cli/{chunk-I7CQJ7JP.js → chunk-7HFWEQ6Y.js} +2 -2
- package/dist/cli/{chunk-OPT36HX4.js → chunk-7IHSJ3RD.js} +53 -53
- package/dist/cli/{chunk-V7OFUYMO.mjs → chunk-AAIYXQRJ.mjs} +2 -2
- package/dist/cli/{chunk-JYT6P2M2.js → chunk-AASSDBQ3.js} +2 -2
- package/dist/cli/{chunk-CQS5E6D2.js → chunk-CIEMDAJE.js} +100 -100
- package/dist/cli/{chunk-NNKZ4JYP.mjs → chunk-EHUUHKWY.mjs} +5 -5
- package/dist/cli/{chunk-7ZE6DF6B.js → chunk-EVZDU7CF.js} +3 -3
- package/dist/cli/{chunk-DOAD7ZCA.mjs → chunk-GAMCJW6E.mjs} +1 -1
- package/dist/cli/{chunk-LMY7CGI7.js → chunk-GAN6UYEN.js} +5 -5
- package/dist/cli/{chunk-UTPANENL.js → chunk-GH5R65SB.js} +12 -12
- package/dist/cli/{chunk-GTRGJITW.mjs → chunk-GWJ4EOW2.mjs} +11 -11
- package/dist/cli/{chunk-Y5CZWGO4.js → chunk-IQJQB7J6.js} +1 -1
- package/dist/cli/{chunk-E76MM3SC.js → chunk-J5P7VGV5.js} +20 -20
- package/dist/cli/{chunk-4MAY2TA3.mjs → chunk-J7XEUV5W.mjs} +2 -2
- package/dist/cli/{chunk-GR5WG72L.mjs → chunk-KJDS2X5S.mjs} +2 -2
- package/dist/cli/{chunk-AMUMEL4C.mjs → chunk-L4KUAJFR.mjs} +1 -1
- package/dist/cli/{chunk-4GRIMNDO.js → chunk-LJXFCEP2.js} +41 -41
- package/dist/cli/{chunk-JHS7WKRS.mjs → chunk-LK4LR4K7.mjs} +3 -3
- package/dist/cli/{chunk-F5CZ3Q2I.mjs → chunk-LXL7OZOG.mjs} +1 -1
- package/dist/cli/{chunk-24GZT76F.js → chunk-P6XJRHLF.js} +7 -7
- package/dist/cli/{chunk-YDWFE7MX.js → chunk-PDHLHEUL.js} +2 -2
- package/dist/cli/{chunk-UI7BBF2O.mjs → chunk-QC3NTBF7.mjs} +5 -5
- package/dist/cli/{chunk-KP4B3JOT.js → chunk-QWB4VW4T.js} +13 -13
- package/dist/cli/{chunk-TE2NSUT5.js → chunk-R5PPP3JU.js} +5 -5
- package/dist/cli/{chunk-5QMEJPN5.js → chunk-RFB52LP5.js} +8 -8
- package/dist/cli/{chunk-G33LSF4T.mjs → chunk-RKB536LB.mjs} +2 -2
- package/dist/cli/{chunk-BW4NVW5T.js → chunk-RYWWBTDB.js} +3 -3
- package/dist/cli/{chunk-OS3FDGKX.mjs → chunk-SQFWIUNP.mjs} +4 -4
- package/dist/cli/{chunk-A4X2O75M.mjs → chunk-UC2ATYB3.mjs} +2 -2
- package/dist/cli/{chunk-ZSDZ3Q5P.mjs → chunk-USA6QRDO.mjs} +1 -1
- package/dist/cli/{chunk-MBLPUJ5I.js → chunk-UVZQR7I6.js} +5 -5
- package/dist/cli/{chunk-ZJJUVUP6.mjs → chunk-UZ4ELBHM.mjs} +2 -2
- package/dist/cli/{chunk-WOZKGI6H.mjs → chunk-WDKU7NOR.mjs} +1 -1
- package/dist/cli/{chunk-XLM7L4UY.mjs → chunk-WFVL6A7I.mjs} +1 -1
- package/dist/cli/{chunk-CQJMFUMK.mjs → chunk-XHZFA67G.mjs} +1 -1
- package/dist/cli/{chunk-RQKCNQ5Q.mjs → chunk-YAXYFPBF.mjs} +2 -2
- package/dist/cli/{chunk-ZY64JRBV.js → chunk-YB6N6WKX.js} +10 -10
- package/dist/cli/{chunk-FW2WRBZO.js → chunk-YT4WIYFT.js} +9 -9
- package/dist/cli/{chunk-MCGR7NG3.js → chunk-YX47WHVT.js} +6 -6
- package/dist/cli/{chunk-Z4FWF237.js → chunk-Z2FC6UQQ.js} +15 -15
- package/dist/cli/{chunk-5XMABMQU.mjs → chunk-ZQLEEOZR.mjs} +2 -2
- package/dist/cli/{concurrent-runs-help-TCB2EKTR.mjs → concurrent-runs-help-IRM4PNIE.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-RGKC4GDM.js +22 -0
- package/dist/cli/{csv-R45YJYUO.mjs → csv-6T4CONXY.mjs} +4 -4
- package/dist/cli/{csv-DWC44DLD.js → csv-UEFHJV5P.js} +13 -13
- package/dist/cli/{db-XZXNKW7B.mjs → db-P6SN3JUE.mjs} +6 -6
- package/dist/cli/{db-XIN3KF47.js → db-PNDYQRRC.js} +27 -27
- package/dist/cli/describe-DDP4Q7SK.js +50 -0
- package/dist/cli/{describe-6KSAHJBD.mjs → describe-U2ZIQ4JH.mjs} +18 -18
- package/dist/cli/{executions-C3UZLR7Y.js → executions-7AOZES2Z.js} +8 -8
- package/dist/cli/{executions-RSPQRWYL.mjs → executions-WELIUVIV.mjs} +6 -6
- package/dist/cli/{feedback-7RCSKLW4.mjs → feedback-66WWUWIR.mjs} +6 -6
- package/dist/cli/{feedback-A7WP67XL.js → feedback-XTTK5GLD.js} +14 -14
- package/dist/cli/git-53OSBVPB.js +26 -0
- package/dist/cli/{git-JE6TFEK4.mjs → git-S23WMQAB.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-DEU3ZW5P.mjs → integrations-DEHG2ILN.mjs} +7 -7
- package/dist/cli/{integrations-L2D3EY3H.js → integrations-MPKN5JRT.js} +20 -20
- package/dist/cli/{legacy-noops-TL5PBCVQ.mjs → legacy-noops-7TU2COQH.mjs} +6 -6
- package/dist/cli/{legacy-noops-AHTEO6EF.js → legacy-noops-IKVIOTDJ.js} +9 -9
- package/dist/cli/{mcp-KXR7YJEG.js → mcp-5ZFZKBX2.js} +24 -24
- package/dist/cli/{mcp-PVRF5CGK.mjs → mcp-BGUKF2AA.mjs} +4 -4
- package/dist/cli/{monitors-BMGSROH3.mjs → monitors-2QZUTM7K.mjs} +7 -7
- package/dist/cli/{monitors-YHF6RQGU.js → monitors-EUSWYOUL.js} +100 -100
- package/dist/cli/{org-OO6LQPS6.mjs → org-FDA5EGQC.mjs} +6 -6
- package/dist/cli/{org-IQJO6DJ7.js → org-W4S2QIOX.js} +121 -121
- package/dist/cli/{outcomes-6QO6NEKO.mjs → outcomes-KZ7SM5TM.mjs} +6 -6
- package/dist/cli/{outcomes-NAEAOCNT.js → outcomes-WF34PZAX.js} +14 -14
- package/dist/cli/{play-MZQSOYVV.mjs → play-XHHJYBBZ.mjs} +19 -19
- package/dist/cli/{play-TYIBTW4E.js → play-XYJBKWRX.js} +324 -324
- package/dist/cli/{providers-JDSSPMWH.js → providers-SCT2LUCO.js} +9 -9
- package/dist/cli/{providers-JR4OWXRX.mjs → providers-WHPZMDA6.mjs} +6 -6
- package/dist/cli/{quickstart-T363ASLH.js → quickstart-IXLB34QZ.js} +6 -6
- package/dist/cli/{quickstart-JBX6BKGZ.mjs → quickstart-L45XFREM.mjs} +4 -4
- package/dist/cli/{run-J3KWBIXA.js → run-EZCUNFI7.js} +44 -44
- package/dist/cli/{run-6PWTGRJI.mjs → run-SAWTV6NP.mjs} +23 -23
- package/dist/cli/{search-XQG7UXAE.mjs → search-GW2P4KNN.mjs} +7 -7
- package/dist/cli/search-S5KQIDCG.js +32 -0
- package/dist/cli/{search-output-DNONJFPF.mjs → search-output-ASU6D6XX.mjs} +4 -4
- package/dist/cli/{search-output-YZYLNDU6.js → search-output-WRDJJFBW.js} +6 -6
- package/dist/cli/{secrets-SCKPXIT7.js → secrets-AAV7JKPF.js} +15 -15
- package/dist/cli/{secrets-MR7VXG74.mjs → secrets-N5EAETGP.mjs} +6 -6
- package/dist/cli/sessions-H33DKDTF.js +23 -0
- package/dist/cli/{sessions-MPIJTGWQ.mjs → sessions-WYISBB4D.mjs} +6 -6
- package/dist/cli/{settings-YPKR5JFF.js → settings-WOIN3AIB.js} +85 -85
- package/dist/cli/{settings-Y5NW74ER.mjs → settings-X7BTX2N3.mjs} +12 -12
- package/dist/cli/{setup-5RJCLRZI.mjs → setup-APLGF5BY.mjs} +9 -9
- package/dist/cli/{setup-673Q3LGR.js → setup-J3RS6UKU.js} +49 -49
- package/dist/cli/skills-7PT2KDQN.js +37 -0
- package/dist/cli/{skills-2QVBD4LD.mjs → skills-UGPVOIYQ.mjs} +7 -7
- package/dist/cli/{tools-627KG34F.mjs → tools-6WNR75VQ.mjs} +17 -17
- package/dist/cli/tools-Q2PVYNUE.js +57 -0
- package/dist/cli/update-C64JFIMU.js +37 -0
- package/dist/cli/{update-535TTARD.mjs → update-XG2EJRAG.mjs} +9 -9
- package/dist/cli/{views-FQNWZUWB.js → views-FSB6OV5N.js} +21 -21
- package/dist/cli/{views-3M24ZTXA.mjs → views-LUNVYDBY.mjs} +6 -6
- package/dist/cli/{workflow-H6F7WAOE.js → workflow-RWTUI4GA.js} +17 -17
- package/dist/cli/{workflow-CN46XZPG.mjs → workflow-TEJ7J2EQ.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -112
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-R2S7KYAA.js +0 -44
- package/dist/cli/concurrent-runs-help-TKAZVMA4.js +0 -22
- package/dist/cli/describe-WLRAQDYC.js +0 -50
- package/dist/cli/git-E6XV5MEY.js +0 -26
- package/dist/cli/search-DPVHT5MJ.js +0 -32
- package/dist/cli/sessions-VNWLXJR2.js +0 -23
- package/dist/cli/skills-YGFFPGCR.js +0 -37
- package/dist/cli/tools-2BC7K3ZU.js +0 -57
- package/dist/cli/update-HWEOSPDS.js +0 -37
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk3BV2OD25js = require('./chunk-3BV2OD25.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkJ5P7VGV5js = require('./chunk-J5P7VGV5.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkEVZDU7CFjs = require('./chunk-EVZDU7CF.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk5COJEZSBjs = require('./chunk-5COJEZSB.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
|
|
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
145
145
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
146
146
|
}
|
|
147
147
|
function resolveLocalRoot() {
|
|
148
|
-
const target =
|
|
148
|
+
const target = _chunkEVZDU7CFjs.resolveProjectPinTarget.call(void 0, );
|
|
149
149
|
if (!target.ok) {
|
|
150
150
|
throw new Error(
|
|
151
151
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
|
|
|
156
156
|
return target.dir;
|
|
157
157
|
}
|
|
158
158
|
function detectSkillsAgents(input) {
|
|
159
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
159
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunk5COJEZSBjs.detectAgentRuntime.call(void 0, )));
|
|
160
160
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
161
161
|
if (knownAgent) return [knownAgent];
|
|
162
162
|
const roots = [
|
|
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
|
|
|
171
171
|
return detected.length > 0 ? detected : ["*"];
|
|
172
172
|
}
|
|
173
173
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
174
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
174
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkEVZDU7CFjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
175
175
|
}
|
|
176
176
|
function buildSkillsPlan(input) {
|
|
177
177
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
178
|
-
const legacyNames = [...
|
|
178
|
+
const legacyNames = [..._chunk3BV2OD25js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
179
179
|
(a, b) => a.localeCompare(b)
|
|
180
180
|
);
|
|
181
181
|
return {
|
|
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
|
|
|
189
189
|
args: [
|
|
190
190
|
"exec",
|
|
191
191
|
"--yes",
|
|
192
|
-
`--package=${
|
|
192
|
+
`--package=${_chunk3BV2OD25js.SKILLS_NPX_PACKAGE}`,
|
|
193
193
|
"--",
|
|
194
194
|
"skills",
|
|
195
195
|
"remove",
|
|
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
|
|
|
205
205
|
args: [
|
|
206
206
|
"exec",
|
|
207
207
|
"--yes",
|
|
208
|
-
`--package=${
|
|
208
|
+
`--package=${_chunk3BV2OD25js.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunk3BV2OD25js.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
213
213
|
"--agent",
|
|
214
214
|
...input.agents,
|
|
215
215
|
...scopeArgs,
|
|
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
|
|
|
246
246
|
}
|
|
247
247
|
function runProcess(command, args, cwd) {
|
|
248
248
|
return new Promise((resolve, reject) => {
|
|
249
|
-
const plan =
|
|
249
|
+
const plan = _chunk3BV2OD25js.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -269,7 +269,7 @@ function runProcess(command, args, cwd) {
|
|
|
269
269
|
child.kill("SIGTERM");
|
|
270
270
|
reject(
|
|
271
271
|
new Error(
|
|
272
|
-
`${
|
|
272
|
+
`${_chunk3BV2OD25js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
273
273
|
)
|
|
274
274
|
);
|
|
275
275
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -280,7 +280,7 @@ function runProcess(command, args, cwd) {
|
|
|
280
280
|
child.once("close", (code) => {
|
|
281
281
|
clearTimeout(timeout);
|
|
282
282
|
if (code && stderr.trim()) {
|
|
283
|
-
process.stderr.write(`${
|
|
283
|
+
process.stderr.write(`${_chunk3BV2OD25js.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
284
284
|
`);
|
|
285
285
|
}
|
|
286
286
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -288,7 +288,7 @@ function runProcess(command, args, cwd) {
|
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
290
|
async function showSkills(options, name) {
|
|
291
|
-
const baseUrl =
|
|
291
|
+
const baseUrl = _chunkEVZDU7CFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
292
292
|
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
293
293
|
try {
|
|
294
294
|
const response = await fetch(url, {
|
|
@@ -301,7 +301,7 @@ async function showSkills(options, name) {
|
|
|
301
301
|
}
|
|
302
302
|
if (name) {
|
|
303
303
|
const markdown = await response.text();
|
|
304
|
-
|
|
304
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
305
305
|
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
306
306
|
{ json: options.json, text: markdown }
|
|
307
307
|
);
|
|
@@ -311,7 +311,7 @@ async function showSkills(options, name) {
|
|
|
311
311
|
const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
|
|
312
312
|
(skill) => skill.install_surface === "v1" && skill.name
|
|
313
313
|
);
|
|
314
|
-
|
|
314
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
315
315
|
{
|
|
316
316
|
ok: true,
|
|
317
317
|
status: "completed",
|
|
@@ -328,7 +328,7 @@ Read one with: deepline skills show <name>
|
|
|
328
328
|
);
|
|
329
329
|
return 0;
|
|
330
330
|
} catch (error) {
|
|
331
|
-
|
|
331
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
332
332
|
{
|
|
333
333
|
ok: false,
|
|
334
334
|
status: "failed",
|
|
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
351
351
|
scope = normalizeScope(options.scope);
|
|
352
352
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
353
353
|
} catch (error) {
|
|
354
|
-
|
|
354
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
355
355
|
{
|
|
356
356
|
ok: false,
|
|
357
357
|
status: "failed",
|
|
@@ -363,22 +363,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
363
363
|
);
|
|
364
364
|
return 2;
|
|
365
365
|
}
|
|
366
|
-
const baseUrl =
|
|
366
|
+
const baseUrl = _chunkEVZDU7CFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
367
367
|
const catalog = {
|
|
368
|
-
skillNames: [...
|
|
369
|
-
version:
|
|
368
|
+
skillNames: [..._chunk3BV2OD25js.DEFAULT_SDK_SKILL_NAMES],
|
|
369
|
+
version: _chunk5COJEZSBjs.SDK_VERSION
|
|
370
370
|
};
|
|
371
371
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
372
372
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
373
373
|
if (options.dryRun) {
|
|
374
|
-
|
|
374
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
375
375
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
376
376
|
{ json: options.json }
|
|
377
377
|
);
|
|
378
378
|
return 0;
|
|
379
379
|
}
|
|
380
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
381
|
-
|
|
380
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk3BV2OD25js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
381
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
382
382
|
{
|
|
383
383
|
ok: true,
|
|
384
384
|
status: "current",
|
|
@@ -410,10 +410,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
410
410
|
}
|
|
411
411
|
if (scope === "local" && root) {
|
|
412
412
|
const managedNames = [
|
|
413
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
413
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk3BV2OD25js.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
414
414
|
];
|
|
415
415
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
416
|
-
|
|
416
|
+
_chunkEVZDU7CFjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
417
417
|
".deepline/",
|
|
418
418
|
...agentRoots.flatMap(
|
|
419
419
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -422,7 +422,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
422
422
|
}
|
|
423
423
|
let lease;
|
|
424
424
|
try {
|
|
425
|
-
lease = scope === "global" ? await
|
|
425
|
+
lease = scope === "global" ? await _chunk3BV2OD25js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
426
426
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
427
427
|
onWait: () => process.stderr.write(
|
|
428
428
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -430,8 +430,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
430
430
|
}) : { release: () => {
|
|
431
431
|
} };
|
|
432
432
|
} catch (error) {
|
|
433
|
-
if (!(error instanceof
|
|
434
|
-
|
|
433
|
+
if (!(error instanceof _chunk3BV2OD25js.SkillsStateUnavailableError)) throw error;
|
|
434
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
435
435
|
{
|
|
436
436
|
ok: false,
|
|
437
437
|
status: "failed",
|
|
@@ -447,7 +447,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
447
447
|
return 5;
|
|
448
448
|
}
|
|
449
449
|
if (!lease) {
|
|
450
|
-
|
|
450
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
451
451
|
{
|
|
452
452
|
ok: false,
|
|
453
453
|
status: "failed",
|
|
@@ -456,7 +456,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
456
456
|
scope,
|
|
457
457
|
agents,
|
|
458
458
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
459
|
-
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${
|
|
459
|
+
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunk3BV2OD25js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
460
460
|
},
|
|
461
461
|
{ json: options.json }
|
|
462
462
|
);
|
|
@@ -505,7 +505,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
507
|
} catch (error) {
|
|
508
|
-
|
|
508
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
509
509
|
{
|
|
510
510
|
ok: false,
|
|
511
511
|
status: "failed",
|
|
@@ -521,7 +521,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
521
521
|
return 5;
|
|
522
522
|
}
|
|
523
523
|
if (missing.length > 0) {
|
|
524
|
-
|
|
524
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
525
525
|
{
|
|
526
526
|
ok: false,
|
|
527
527
|
status: "failed",
|
|
@@ -561,7 +561,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
561
561
|
{
|
|
562
562
|
schemaVersion: 1,
|
|
563
563
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
564
|
-
cliVersion:
|
|
564
|
+
cliVersion: _chunk5COJEZSBjs.SDK_VERSION,
|
|
565
565
|
scope,
|
|
566
566
|
agents,
|
|
567
567
|
skillsVersion: plan.version,
|
|
@@ -574,9 +574,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
574
574
|
"utf8"
|
|
575
575
|
);
|
|
576
576
|
if (scope === "global") {
|
|
577
|
-
|
|
577
|
+
_chunk3BV2OD25js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
580
580
|
{
|
|
581
581
|
ok: true,
|
|
582
582
|
status: "complete",
|
|
@@ -625,7 +625,7 @@ Examples:
|
|
|
625
625
|
"after",
|
|
626
626
|
`
|
|
627
627
|
Notes:
|
|
628
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
628
|
+
This command reinstalls current Deepline-managed skills using ${_chunk3BV2OD25js.SKILLS_NPX_PACKAGE},
|
|
629
629
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
630
630
|
persistent project.
|
|
631
631
|
|
|
@@ -637,13 +637,13 @@ Examples:
|
|
|
637
637
|
).action(async (options) => {
|
|
638
638
|
process.exitCode = await runSkillsCommand(options);
|
|
639
639
|
});
|
|
640
|
-
program.command(
|
|
640
|
+
program.command(_chunk3BV2OD25js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
641
641
|
"--claim <token>",
|
|
642
642
|
"Owner token of the leases this child was started for."
|
|
643
643
|
).action(async (options) => {
|
|
644
644
|
const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
|
|
645
645
|
if (!claim) {
|
|
646
|
-
|
|
646
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
647
647
|
{
|
|
648
648
|
ok: false,
|
|
649
649
|
status: "failed",
|
|
@@ -656,7 +656,7 @@ Examples:
|
|
|
656
656
|
process.exitCode = 2;
|
|
657
657
|
return;
|
|
658
658
|
}
|
|
659
|
-
await
|
|
659
|
+
await _chunk3BV2OD25js.syncSdkSkillsIfNeeded.call(void 0, _chunkEVZDU7CFjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
660
660
|
mode: "inline",
|
|
661
661
|
notices: "defer",
|
|
662
662
|
claim
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RKB536LB.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-XHZFA67G.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-L4KUAJFR.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -9,7 +9,7 @@ var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkJ5P7VGV5js = require('./chunk-J5P7VGV5.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
|
|
|
250
250
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
251
251
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
252
252
|
if (typeof logicalValue === "object") {
|
|
253
|
-
return
|
|
253
|
+
return _chunkJ5P7VGV5js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
254
254
|
}
|
|
255
255
|
return logicalValue;
|
|
256
256
|
}
|
|
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
|
|
|
642
642
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
643
|
columns
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return _chunkJ5P7VGV5js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
648
|
let temp;
|
|
@@ -770,7 +770,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
770
770
|
};
|
|
771
771
|
if (options.receiptOut && !skipReceiptFile) {
|
|
772
772
|
persist(options.receiptOut, jsonText(receipt));
|
|
773
|
-
|
|
773
|
+
_chunkJ5P7VGV5js.markJsonOutputHandled.call(void 0, );
|
|
774
774
|
} else {
|
|
775
775
|
printReceipt(receipt, options, {
|
|
776
776
|
data: hasData ? result.data : void 0,
|
|
@@ -939,7 +939,7 @@ function receiptText(receipt, options, extra) {
|
|
|
939
939
|
problems.push(
|
|
940
940
|
`Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
|
|
941
941
|
);
|
|
942
|
-
const diagnostic =
|
|
942
|
+
const diagnostic = _chunkJ5P7VGV5js.formatCliFailureDiagnostic.call(void 0, error);
|
|
943
943
|
if (diagnostic) problems.push(...diagnostic.split("\n"));
|
|
944
944
|
if (record(error) && typeof error.recoveryFile === "string") {
|
|
945
945
|
problems.push(
|
|
@@ -1032,8 +1032,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1032
1032
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1033
1033
|
` : receiptText(receipt, options, extra);
|
|
1034
1034
|
if (options.receiptOut !== void 0) {
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
_chunkJ5P7VGV5js.writeRawStderr.call(void 0, text);
|
|
1036
|
+
_chunkJ5P7VGV5js.markJsonOutputHandled.call(void 0, );
|
|
1037
1037
|
} else {
|
|
1038
1038
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1039
1039
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkJ5P7VGV5js = require('./chunk-J5P7VGV5.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GWJ4EOW2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3OJLUVOS.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
} from "./chunk-BM4GE67C.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YAXYFPBF.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled,
|
|
21
21
|
printCommandEnvelope
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RKB536LB.mjs";
|
|
23
23
|
import {
|
|
24
24
|
autoDetectBaseUrl,
|
|
25
25
|
resolveApiKeyForBaseUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-XHZFA67G.mjs";
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
import { writeFileSync } from "fs";
|
|
@@ -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 _chunkPDHLHEULjs = require('./chunk-PDHLHEUL.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJ5P7VGV5js = require('./chunk-J5P7VGV5.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk5COJEZSBjs = require('./chunk-5COJEZSB.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 _chunk5COJEZSBjs.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 = _chunk5COJEZSBjs.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 : _chunk5COJEZSBjs.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(_chunk5COJEZSBjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunk5COJEZSBjs.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 = _chunk5COJEZSBjs.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 } = _chunkJ5P7VGV5js.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 (_chunkPDHLHEULjs.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
|
+
_chunkJ5P7VGV5js.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
|
+
_chunkJ5P7VGV5js.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
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
706
706
|
{
|
|
707
707
|
ok: true,
|
|
708
708
|
file: outputPath,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkRFB52LP5js = require('./chunk-RFB52LP5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkEVZDU7CFjs = require('./chunk-EVZDU7CF.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkEVZDU7CFjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkRFB52LP5js.PlayClient)(
|
|
142
|
+
new (0, _chunkEVZDU7CFjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunk5COJEZSBjs = require('./chunk-5COJEZSB.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -844,7 +844,7 @@ var ToolCalls = class {
|
|
|
844
844
|
idempotencyKey,
|
|
845
845
|
onResponse: (response2) => {
|
|
846
846
|
lastResponse = null;
|
|
847
|
-
atomicToolsSupported = response2.headers.get(
|
|
847
|
+
atomicToolsSupported = response2.headers.get(_chunk5COJEZSBjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
848
848
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
849
849
|
if (_optionalChain([options, 'optionalAccess', _38 => _38.onServerTiming])) {
|
|
850
850
|
try {
|
|
@@ -1231,15 +1231,15 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
const receivers = _optionalChain([env, 'access', _63 => _63.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65()]);
|
|
1233
1233
|
return {
|
|
1234
|
-
[
|
|
1235
|
-
...receivers ? { [
|
|
1234
|
+
[_chunk5COJEZSBjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1235
|
+
...receivers ? { [_chunk5COJEZSBjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1236
1236
|
};
|
|
1237
1237
|
}
|
|
1238
1238
|
function playRunStartHeaders(runtime, env) {
|
|
1239
1239
|
const headers = runtimeSelectionHeaders(runtime, env);
|
|
1240
1240
|
const experimentSwitches = _optionalChain([env, 'access', _66 => _66.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _67 => _67.trim, 'call', _68 => _68()]);
|
|
1241
1241
|
if (!experimentSwitches) return headers;
|
|
1242
|
-
return { ...headers, [
|
|
1242
|
+
return { ...headers, [_chunk5COJEZSBjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
|
|
1243
1243
|
}
|
|
1244
1244
|
function normalizeTestPolicyOverrides(value, source) {
|
|
1245
1245
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -1309,7 +1309,7 @@ var PlayClient = class {
|
|
|
1309
1309
|
return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
|
|
1310
1310
|
this.http,
|
|
1311
1311
|
resolved.request,
|
|
1312
|
-
_optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1312
|
+
_optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk5COJEZSBjs.SDK_API_MAJOR) } : headers,
|
|
1313
1313
|
options
|
|
1314
1314
|
);
|
|
1315
1315
|
}
|
|
@@ -3427,7 +3427,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3427
3427
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3428
3428
|
);
|
|
3429
3429
|
}
|
|
3430
|
-
return { [
|
|
3430
|
+
return { [_chunk5COJEZSBjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3431
3431
|
}
|
|
3432
3432
|
function sleep(ms) {
|
|
3433
3433
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4363,7 +4363,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4363
4363
|
);
|
|
4364
4364
|
const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
|
|
4365
4365
|
...runtimeHeaders,
|
|
4366
|
-
"X-Deepline-API-Major": String(
|
|
4366
|
+
"X-Deepline-API-Major": String(_chunk5COJEZSBjs.SDK_API_MAJOR)
|
|
4367
4367
|
} : runtimeHeaders;
|
|
4368
4368
|
const http = this.http;
|
|
4369
4369
|
let submitted = false;
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
resolveApiKeyForBaseUrl,
|
|
5
5
|
resolveCliCommandContext,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XHZFA67G.mjs";
|
|
8
8
|
import {
|
|
9
9
|
SDK_VERSION,
|
|
10
10
|
agentSessionIdFromEnvironment,
|
|
11
11
|
deploymentProtectionHeaders,
|
|
12
12
|
detectAgentRuntime,
|
|
13
13
|
readToolFailureHint
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-L4KUAJFR.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError,
|
|
17
17
|
normalizeToolExecutionFailure,
|