deepline 0.3.580 → 0.3.582
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +4 -4
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +42 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +49 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +13 -4
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +12 -0
- package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +20 -0
- package/dist/cli/{agents-BF5VX5ZB.js → agents-2L73CJHH.js} +81 -39
- package/dist/cli/{agents-JRFTZE7G.mjs → agents-UAXDG4FS.mjs} +51 -9
- package/dist/cli/{auth-XJXZ64R4.mjs → auth-3B2QB4UH.mjs} +5 -5
- package/dist/cli/auth-ALBG5LF4.js +44 -0
- package/dist/cli/{billing-TXJBGP2I.mjs → billing-CPBRWG3M.mjs} +11 -11
- package/dist/cli/{billing-VGMTJI7W.js → billing-E7FO622G.js} +111 -111
- package/dist/cli/{chunk-IM322G7M.mjs → chunk-2K6EIL2D.mjs} +1 -1
- package/dist/cli/{chunk-3P4QZIJ5.mjs → chunk-3DVWSTAI.mjs} +1 -1
- package/dist/cli/{chunk-3OSNEWGR.js → chunk-3EOET5UB.js} +100 -100
- package/dist/cli/{chunk-GDBNH57Z.js → chunk-3HIJNXRB.js} +10 -10
- package/dist/cli/{chunk-H3B6QM6V.mjs → chunk-4TTEAUZV.mjs} +3 -3
- package/dist/cli/{chunk-7ORX33JX.mjs → chunk-4ZAWRCB6.mjs} +5 -5
- package/dist/cli/{chunk-2ZCFAUCV.js → chunk-5436ZJPH.js} +3 -3
- package/dist/cli/{chunk-5BPJW6X5.mjs → chunk-6NEMTKTA.mjs} +5 -5
- package/dist/cli/{chunk-LRZGS6RZ.mjs → chunk-7MMEW2WU.mjs} +1 -1
- package/dist/cli/{chunk-ZR7PDXIA.mjs → chunk-7QX5PCHP.mjs} +2 -2
- package/dist/cli/{chunk-BAXLPQTM.mjs → chunk-ABJZQHON.mjs} +4 -4
- package/dist/cli/{chunk-HEZ24K5F.js → chunk-CPZL6Z7D.js} +2 -2
- package/dist/cli/{chunk-D6I7QWOZ.js → chunk-CYZSHD66.js} +2 -2
- package/dist/cli/{chunk-IERWFFDB.mjs → chunk-D7J33HTK.mjs} +5 -5
- package/dist/cli/{chunk-LHV3HPAY.js → chunk-DI5MULNX.js} +26 -26
- package/dist/cli/{chunk-YY6EB252.js → chunk-DPLYQITT.js} +2 -2
- package/dist/cli/{chunk-SQBSK74D.mjs → chunk-DSHIB2XQ.mjs} +1 -1
- package/dist/cli/{chunk-TSOXJZSW.js → chunk-EB2YLLZJ.js} +41 -41
- package/dist/cli/{chunk-WJUAVMQC.js → chunk-EGH4JNJP.js} +8 -8
- package/dist/cli/{chunk-E2G2DNAB.js → chunk-EP3GZAHK.js} +7 -7
- package/dist/cli/{chunk-MBOPKQJF.js → chunk-FBSPHBAF.js} +1 -1
- package/dist/cli/{chunk-U4VCAECC.mjs → chunk-FWB3QR7W.mjs} +1 -1
- package/dist/cli/{chunk-MP6XUVAJ.mjs → chunk-G5YU6RJ4.mjs} +2 -2
- package/dist/cli/{chunk-V5NDHTBB.js → chunk-GZBXN56A.js} +23 -23
- package/dist/cli/{chunk-DQEHBAHL.js → chunk-H3KVMALU.js} +9 -9
- package/dist/cli/{chunk-COAAKSFX.js → chunk-HP6A3JCX.js} +5 -5
- package/dist/cli/{chunk-O7AWGIDD.mjs → chunk-I5J6HGVR.mjs} +2 -2
- package/dist/cli/{chunk-ANX3PYLT.js → chunk-ISN4F6AY.js} +13 -13
- package/dist/cli/{chunk-MEDA3STC.mjs → chunk-JD7P73ZW.mjs} +1 -1
- package/dist/cli/{chunk-GE4ZEMMA.mjs → chunk-JF4DUC2F.mjs} +2 -2
- package/dist/cli/{chunk-XQUVLYOL.js → chunk-JUZIMW4S.js} +7 -7
- package/dist/cli/{chunk-NV5IJ3NY.mjs → chunk-KDITCSPN.mjs} +21 -1
- package/dist/cli/{chunk-MCYZO3RB.js → chunk-KQEW3EAU.js} +16 -16
- package/dist/cli/{chunk-IG3CXIJY.mjs → chunk-LDMCTV2Z.mjs} +1 -1
- package/dist/cli/{chunk-VF3EGTHU.mjs → chunk-LHA45DNY.mjs} +3 -3
- package/dist/cli/{chunk-XFVJ3JNA.js → chunk-MRSYC74T.js} +5 -5
- package/dist/cli/{chunk-PFNYLTCZ.js → chunk-NJGXYYHN.js} +5 -5
- package/dist/cli/{chunk-3ZBPXNSW.mjs → chunk-NVHICORD.mjs} +2 -2
- package/dist/cli/{chunk-C6YXUGX2.mjs → chunk-NZR5PBNP.mjs} +3 -3
- package/dist/cli/{chunk-FCJJPEKN.mjs → chunk-OUFOJTEJ.mjs} +5 -5
- package/dist/cli/{chunk-7HOG3JZE.mjs → chunk-PNQVB4UD.mjs} +11 -11
- package/dist/cli/{chunk-VOQWPUIF.js → chunk-POYADK77.js} +20 -20
- package/dist/cli/{chunk-LC4ETCOA.mjs → chunk-RNZXMOA6.mjs} +2 -2
- package/dist/cli/{chunk-X5RXG6VS.mjs → chunk-ROUNT4NX.mjs} +1 -1
- package/dist/cli/{chunk-ZADJC22U.js → chunk-SKKRESFB.js} +3 -3
- package/dist/cli/{chunk-BK4Z62CF.mjs → chunk-SYWLWTWM.mjs} +4 -4
- package/dist/cli/{chunk-EI7KTESB.mjs → chunk-U2QQQNWW.mjs} +2 -2
- package/dist/cli/{chunk-URZPR54R.js → chunk-V54YQHPV.js} +6 -6
- package/dist/cli/{chunk-NNWEQDZR.js → chunk-VA35T3AF.js} +20 -20
- package/dist/cli/{chunk-HLMF53HZ.mjs → chunk-XYQMOXP4.mjs} +1 -1
- package/dist/cli/{chunk-AZTQJJH7.js → chunk-Y36SQMSN.js} +22 -2
- package/dist/cli/{chunk-R77IVVEZ.js → chunk-YPP436NM.js} +53 -53
- package/dist/cli/{chunk-Z6DERGHY.js → chunk-Z3IAEHID.js} +48 -48
- package/dist/cli/{chunk-GIZIWNL5.mjs → chunk-ZARGHLZZ.mjs} +1 -1
- package/dist/cli/{chunk-6VSUP4WN.js → chunk-ZH23XGJO.js} +4 -4
- package/dist/cli/{chunk-APJ7IPRT.js → chunk-ZL3O7F5J.js} +15 -15
- package/dist/cli/command-docs.js +4 -4
- package/dist/cli/command-docs.mjs +3 -3
- package/dist/cli/concurrent-runs-help-E3YMAO5Q.js +22 -0
- package/dist/cli/{concurrent-runs-help-DSUQRWZQ.mjs → concurrent-runs-help-UFNYQYU2.mjs} +6 -6
- package/dist/cli/{csv-QNXJBT5T.mjs → csv-QSDRGLQH.mjs} +4 -4
- package/dist/cli/{csv-HSHF6JYZ.js → csv-ZI5LYFHF.js} +13 -13
- package/dist/cli/{db-RAWY3SWS.mjs → db-WVWXNNMO.mjs} +6 -6
- package/dist/cli/{db-VHYWVLLU.js → db-ZDL6Q53U.js} +27 -27
- package/dist/cli/describe-QB5T47B3.js +50 -0
- package/dist/cli/{describe-WZOVHWAM.mjs → describe-UUQBKUVL.mjs} +18 -18
- package/dist/cli/{executions-QABOXV4K.mjs → executions-QN3OYJKT.mjs} +6 -6
- package/dist/cli/{executions-DQIFH4Z6.js → executions-SCGHTWTC.js} +8 -8
- package/dist/cli/{feedback-6IER2W4G.js → feedback-6QQ7ONLW.js} +14 -14
- package/dist/cli/{feedback-DW4O63DG.mjs → feedback-7QPHLXGU.mjs} +6 -6
- package/dist/cli/git-4FXTWHXT.js +26 -0
- package/dist/cli/{git-3NAPGZGR.mjs → git-HFPJX573.mjs} +5 -5
- package/dist/cli/index.js +150 -150
- package/dist/cli/index.mjs +49 -49
- package/dist/cli/{integrations-TSRUTENK.mjs → integrations-4SZ5O24P.mjs} +7 -7
- package/dist/cli/{integrations-5LHIBBXB.js → integrations-ND2HULSH.js} +29 -29
- package/dist/cli/{legacy-noops-S22XGYGN.js → legacy-noops-GQF6AYP5.js} +9 -9
- package/dist/cli/{legacy-noops-4N63A6H7.mjs → legacy-noops-WUP3TBR2.mjs} +6 -6
- package/dist/cli/{mcp-4EJHRRFV.mjs → mcp-3GUFYGCQ.mjs} +4 -4
- package/dist/cli/{mcp-JERBGJYE.js → mcp-L3YYVEU6.js} +24 -24
- package/dist/cli/{monitors-FF35CGC4.js → monitors-CVZZN5WG.js} +100 -100
- package/dist/cli/{monitors-7BTLBD6S.mjs → monitors-OFCVJSH5.mjs} +7 -7
- package/dist/cli/{org-QYIIBKA2.mjs → org-3DTAYA52.mjs} +6 -6
- package/dist/cli/{org-ADCDO7KU.js → org-MQ5AUN7I.js} +121 -121
- package/dist/cli/{outcomes-C5DIBG4Q.mjs → outcomes-42W24EXG.mjs} +6 -6
- package/dist/cli/{outcomes-2LW4GK2L.js → outcomes-MGDUYHUD.js} +14 -14
- package/dist/cli/{play-S5MZ2GRA.js → play-IMAD7QTV.js} +342 -342
- package/dist/cli/{play-DTTDTISL.mjs → play-PD45RNYZ.mjs} +21 -21
- package/dist/cli/{providers-AXOEFQ6Q.mjs → providers-DYKHG7NV.mjs} +6 -6
- package/dist/cli/{providers-N2IWEJBW.js → providers-WONHPTRG.js} +9 -9
- package/dist/cli/{quickstart-ADWSZBV6.mjs → quickstart-5QPGHLEX.mjs} +4 -4
- package/dist/cli/{quickstart-UC5AJZWU.js → quickstart-6AAFULGC.js} +6 -6
- package/dist/cli/{run-R2FVH3K6.mjs → run-4K6ZU7H7.mjs} +23 -23
- package/dist/cli/{run-6TDYUL7L.js → run-WOW7QO3W.js} +44 -44
- package/dist/cli/{search-GRHUFSLY.mjs → search-CKVFWVXQ.mjs} +7 -7
- package/dist/cli/search-YZIJS7QU.js +32 -0
- package/dist/cli/{search-output-O7NY3VMD.js → search-output-B5QE7ZNK.js} +6 -6
- package/dist/cli/{search-output-UPQNAFAF.mjs → search-output-WWB25JWA.mjs} +4 -4
- package/dist/cli/{secrets-NKAEJLIQ.mjs → secrets-SVZB6TSW.mjs} +6 -6
- package/dist/cli/{secrets-72GJHFER.js → secrets-WKIMR346.js} +15 -15
- package/dist/cli/{sessions-VIMF3UF5.mjs → sessions-P3QENG6T.mjs} +6 -6
- package/dist/cli/sessions-VQPGPXMU.js +23 -0
- package/dist/cli/{settings-HFAW5HIF.js → settings-UIFRGJW3.js} +85 -85
- package/dist/cli/{settings-KCQHBFNZ.mjs → settings-V5ABL6D2.mjs} +12 -12
- package/dist/cli/{setup-2MHWGEAD.js → setup-A5MIJU3S.js} +49 -49
- package/dist/cli/{setup-2ZD5ZIUH.mjs → setup-E67NJTEF.mjs} +9 -9
- package/dist/cli/skills-GTBK33MV.js +37 -0
- package/dist/cli/{skills-X2DZZG5P.mjs → skills-WLHOQ4DO.mjs} +7 -7
- package/dist/cli/{tools-KPTOWKD4.mjs → tools-EG4KL3BB.mjs} +17 -17
- package/dist/cli/tools-GPAIPRPQ.js +57 -0
- package/dist/cli/{update-6PMQCEUP.mjs → update-IPFBE6SA.mjs} +9 -9
- package/dist/cli/update-QLWS32WR.js +37 -0
- package/dist/cli/{views-VRZ5CTFL.mjs → views-XDN6SEWY.mjs} +6 -6
- package/dist/cli/{views-MNBHNO6C.js → views-ZIBY2RVB.js} +21 -21
- package/dist/cli/{workflow-SSMFO7YE.js → workflow-BLKPBRBT.js} +17 -17
- package/dist/cli/{workflow-7JUJWA5S.mjs → workflow-O2XPMOVL.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +120 -120
- package/dist/plays/bundle-play-file.mjs +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/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-25MVD7TK.js +0 -44
- package/dist/cli/concurrent-runs-help-DEN63DUM.js +0 -22
- package/dist/cli/describe-YHZ2EGBQ.js +0 -50
- package/dist/cli/git-SQ2MAKAH.js +0 -26
- package/dist/cli/search-V7ANBX3J.js +0 -32
- package/dist/cli/sessions-EO6RTMUC.js +0 -23
- package/dist/cli/skills-ID6KKDLH.js +0 -37
- package/dist/cli/tools-7UY7GERW.js +0 -57
- package/dist/cli/update-T2RDLLSY.js +0 -37
- /package/dist/cli/{chunk-YGCKMI5P.js → chunk-2M3VVGMZ.js} +0 -0
- /package/dist/cli/{chunk-7I4B6V2S.mjs → chunk-VMGJIFSB.mjs} +0 -0
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZ3IAEHIDjs = require('./chunk-Z3IAEHID.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkVA35T3AFjs = require('./chunk-VA35T3AF.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk5436ZJPHjs = require('./chunk-5436ZJPH.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkZH23XGJOjs = require('./chunk-ZH23XGJO.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 = _chunk5436ZJPHjs.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, () => ( _chunkZH23XGJOjs.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, _chunk5436ZJPHjs.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 = [..._chunkZ3IAEHIDjs.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=${_chunkZ3IAEHIDjs.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=${_chunkZ3IAEHIDjs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkZ3IAEHIDjs.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 = _chunkZ3IAEHIDjs.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
|
+
`${_chunkZ3IAEHIDjs.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(`${_chunkZ3IAEHIDjs.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 = _chunk5436ZJPHjs.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
|
+
_chunkVA35T3AFjs.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
|
+
_chunkVA35T3AFjs.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
|
+
_chunkVA35T3AFjs.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
|
+
_chunkVA35T3AFjs.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 = _chunk5436ZJPHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
367
367
|
const catalog = {
|
|
368
|
-
skillNames: [...
|
|
369
|
-
version:
|
|
368
|
+
skillNames: [..._chunkZ3IAEHIDjs.DEFAULT_SDK_SKILL_NAMES],
|
|
369
|
+
version: _chunkZH23XGJOjs.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
|
+
_chunkVA35T3AFjs.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)) && !_chunkZ3IAEHIDjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
381
|
+
_chunkVA35T3AFjs.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, ..._chunkZ3IAEHIDjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
414
414
|
];
|
|
415
415
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
416
|
-
|
|
416
|
+
_chunk5436ZJPHjs.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 _chunkZ3IAEHIDjs.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 _chunkZ3IAEHIDjs.SkillsStateUnavailableError)) throw error;
|
|
434
|
+
_chunkVA35T3AFjs.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
|
+
_chunkVA35T3AFjs.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 ${_chunkZ3IAEHIDjs.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
|
+
_chunkVA35T3AFjs.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
|
+
_chunkVA35T3AFjs.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: _chunkZH23XGJOjs.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
|
+
_chunkZ3IAEHIDjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
_chunkVA35T3AFjs.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 ${_chunkZ3IAEHIDjs.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(_chunkZ3IAEHIDjs.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
|
+
_chunkVA35T3AFjs.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 _chunkZ3IAEHIDjs.syncSdkSkillsIfNeeded.call(void 0, _chunk5436ZJPHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
660
660
|
mode: "inline",
|
|
661
661
|
notices: "defer",
|
|
662
662
|
claim
|
|
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkZH23XGJOjs = require('./chunk-ZH23XGJO.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -963,7 +963,7 @@ var ToolCalls = class {
|
|
|
963
963
|
idempotencyKey,
|
|
964
964
|
onResponse: (response2) => {
|
|
965
965
|
lastResponse = null;
|
|
966
|
-
atomicToolsSupported = response2.headers.get(
|
|
966
|
+
atomicToolsSupported = response2.headers.get(_chunkZH23XGJOjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
967
967
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
968
968
|
if (_optionalChain([options, 'optionalAccess', _38 => _38.onServerTiming])) {
|
|
969
969
|
try {
|
|
@@ -1350,15 +1350,15 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
const receivers = _optionalChain([env, 'access', _63 => _63.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65()]);
|
|
1352
1352
|
return {
|
|
1353
|
-
[
|
|
1354
|
-
...receivers ? { [
|
|
1353
|
+
[_chunkZH23XGJOjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1354
|
+
...receivers ? { [_chunkZH23XGJOjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1355
1355
|
};
|
|
1356
1356
|
}
|
|
1357
1357
|
function playRunStartHeaders(runtime, env) {
|
|
1358
1358
|
const headers = runtimeSelectionHeaders(runtime, env);
|
|
1359
1359
|
const experimentSwitches = _optionalChain([env, 'access', _66 => _66.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _67 => _67.trim, 'call', _68 => _68()]);
|
|
1360
1360
|
if (!experimentSwitches) return headers;
|
|
1361
|
-
return { ...headers, [
|
|
1361
|
+
return { ...headers, [_chunkZH23XGJOjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
|
|
1362
1362
|
}
|
|
1363
1363
|
function normalizeTestPolicyOverrides(value, source) {
|
|
1364
1364
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -1428,7 +1428,7 @@ var PlayClient = class {
|
|
|
1428
1428
|
return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
|
|
1429
1429
|
this.http,
|
|
1430
1430
|
resolved.request,
|
|
1431
|
-
_optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1431
|
+
_optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkZH23XGJOjs.SDK_API_MAJOR) } : headers,
|
|
1432
1432
|
options
|
|
1433
1433
|
);
|
|
1434
1434
|
}
|
|
@@ -3546,7 +3546,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3546
3546
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3547
3547
|
);
|
|
3548
3548
|
}
|
|
3549
|
-
return { [
|
|
3549
|
+
return { [_chunkZH23XGJOjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3550
3550
|
}
|
|
3551
3551
|
function sleep(ms) {
|
|
3552
3552
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4485,7 +4485,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4485
4485
|
);
|
|
4486
4486
|
const headers = _optionalChain([options, 'optionalAccess', _201 => _201.cliAdmission]) ? {
|
|
4487
4487
|
...runtimeHeaders,
|
|
4488
|
-
"X-Deepline-API-Major": String(
|
|
4488
|
+
"X-Deepline-API-Major": String(_chunkZH23XGJOjs.SDK_API_MAJOR)
|
|
4489
4489
|
} : runtimeHeaders;
|
|
4490
4490
|
const http = this.http;
|
|
4491
4491
|
let submitted = false;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2M3VVGMZjs = require('./chunk-2M3VVGMZ.js');
|
|
8
8
|
|
|
9
9
|
// ../play-runtime/worker-api-types.ts
|
|
10
10
|
var DAYTONA_COMPUTE_PRICING_USD = {
|
|
@@ -28,7 +28,7 @@ function roundUsd(amount) {
|
|
|
28
28
|
return Number(Math.max(0, amount).toFixed(12));
|
|
29
29
|
}
|
|
30
30
|
function sandboxSizeMetadata(cpu, memoryGiB) {
|
|
31
|
-
const entry = Object.entries(
|
|
31
|
+
const entry = Object.entries(_chunk2M3VVGMZjs.PLAY_SANDBOX_SIZE_LIMITS).find(
|
|
32
32
|
([, limits]) => limits.cpu === cpu && limits.memoryGiB === memoryGiB
|
|
33
33
|
);
|
|
34
34
|
return entry ? { sandboxSize: entry[0] } : {};
|
|
@@ -121,7 +121,7 @@ var SANDBOX_NETWORK_CUT_MAX_MS = 11 * 6e4;
|
|
|
121
121
|
var RUNNER_GATEWAY_CONNECTION_RETRY_BUDGET_MS = SANDBOX_NETWORK_CUT_MAX_MS + 6e4;
|
|
122
122
|
var RUNNER_GATEWAY_SCHEDULER_UNAVAILABLE_RETRY_BUDGET_MS = 3 * 6e4;
|
|
123
123
|
var PLAY_RUNNER_TIMEOUT_SECONDS = 40 * 60;
|
|
124
|
-
var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS =
|
|
124
|
+
var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS = _chunk2M3VVGMZjs.MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds + (PLAY_RUNNER_TIMEOUT_SECONDS - STANDARD_PLAY_RUNTIME_LIMIT_SECONDS);
|
|
125
125
|
|
|
126
126
|
// ../billing/compute-pricing-contract.ts
|
|
127
127
|
var COMPUTE_BILLING_MARKUP_MULTIPLIER = 5;
|
|
@@ -134,7 +134,7 @@ var PLAY_SANDBOX_COMPUTE_RATE_MULTIPLIERS = {
|
|
|
134
134
|
xlarge: 5
|
|
135
135
|
};
|
|
136
136
|
var MAX_SANDBOX_COMPUTE_PROVIDER_COST_USD = Math.max(
|
|
137
|
-
...Object.values(
|
|
137
|
+
...Object.values(_chunk2M3VVGMZjs.PLAY_SANDBOX_SIZE_LIMITS).flatMap((profile) => {
|
|
138
138
|
const modalResources = modalSandboxResourcesForPlay(profile);
|
|
139
139
|
return [
|
|
140
140
|
resolveDaytonaSandboxComputeItem({
|
|
@@ -181,7 +181,7 @@ function estimateModalMaximumComputeCredits(limits, elasticMemory = false) {
|
|
|
181
181
|
itemId: "estimate",
|
|
182
182
|
wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
|
|
183
183
|
physicalCpuCores: resources.physicalCpuCores,
|
|
184
|
-
memoryGiB: elasticMemory ?
|
|
184
|
+
memoryGiB: elasticMemory ? _chunk2M3VVGMZjs.modalSandboxMemoryLimitGiBForPlay.call(void 0, limits) : limits.memoryGiB
|
|
185
185
|
});
|
|
186
186
|
return roundUpCredits(
|
|
187
187
|
item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
|
|
@@ -194,9 +194,9 @@ function estimateMaximumSandboxComputeCredits(limits, elasticMemory = false) {
|
|
|
194
194
|
);
|
|
195
195
|
}
|
|
196
196
|
function formatNonStandardSandboxRuntimeWarning(limits) {
|
|
197
|
-
const size =
|
|
197
|
+
const size = _chunk2M3VVGMZjs.playSandboxSizeForLimits.call(void 0, limits);
|
|
198
198
|
if (!size) return null;
|
|
199
|
-
if (size === "standard" && limits.timeoutSeconds <=
|
|
199
|
+
if (size === "standard" && limits.timeoutSeconds <= _chunk2M3VVGMZjs.STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds) {
|
|
200
200
|
return null;
|
|
201
201
|
}
|
|
202
202
|
const maximumComputeCredits = estimateMaximumSandboxComputeCredits(limits);
|
|
@@ -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.582",
|
|
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."
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NVHICORD.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ROUNT4NX.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPOYADK77js = require('./chunk-POYADK77.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkZ3IAEHIDjs = require('./chunk-Z3IAEHID.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkVA35T3AFjs = require('./chunk-VA35T3AF.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk5436ZJPHjs = require('./chunk-5436ZJPH.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkZH23XGJOjs = require('./chunk-ZH23XGJO.js');
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -46,7 +46,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
46
46
|
async function reportAutoUpdateEvent(input) {
|
|
47
47
|
let apiKey = "";
|
|
48
48
|
try {
|
|
49
|
-
apiKey =
|
|
49
|
+
apiKey = _chunk5436ZJPHjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
50
50
|
} catch (e2) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
@@ -62,15 +62,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
62
62
|
headers: {
|
|
63
63
|
Authorization: `Bearer ${apiKey}`,
|
|
64
64
|
"Content-Type": "application/json",
|
|
65
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
65
|
+
"User-Agent": `deepline-ts-sdk/${_chunkZH23XGJOjs.SDK_VERSION}`,
|
|
66
66
|
"X-Deepline-Client-Family": "sdk",
|
|
67
67
|
"X-Deepline-CLI-Family": "sdk",
|
|
68
|
-
"X-Deepline-CLI-Version":
|
|
69
|
-
"X-Deepline-SDK-Version":
|
|
68
|
+
"X-Deepline-CLI-Version": _chunkZH23XGJOjs.SDK_VERSION,
|
|
69
|
+
"X-Deepline-SDK-Version": _chunkZH23XGJOjs.SDK_VERSION
|
|
70
70
|
},
|
|
71
71
|
body: JSON.stringify({
|
|
72
72
|
event: input.event,
|
|
73
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
73
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkZH23XGJOjs.SDK_VERSION,
|
|
74
74
|
target_version: input.response.latest,
|
|
75
75
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
76
76
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -89,19 +89,19 @@ function envTruthy(name) {
|
|
|
89
89
|
return value === "1" || value === "true" || value === "yes";
|
|
90
90
|
}
|
|
91
91
|
function shouldSkipSelfUpdate(policy) {
|
|
92
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
92
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkPOYADK77js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkZ3IAEHIDjs.isCiEnvironment.call(void 0, );
|
|
93
93
|
}
|
|
94
94
|
function isDowngradeAutoUpdateResponse(response) {
|
|
95
95
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
96
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
96
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkZH23XGJOjs.SDK_VERSION;
|
|
97
97
|
if (!target) return false;
|
|
98
|
-
return
|
|
98
|
+
return _chunkPOYADK77js.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
99
99
|
}
|
|
100
100
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
101
101
|
return new Promise((resolve) => {
|
|
102
102
|
const argv = _nullishCoalesce(runtime.argv, () => ( process.argv));
|
|
103
103
|
const platform = _nullishCoalesce(runtime.platform, () => ( process.platform));
|
|
104
|
-
const launch = plan.kind === "python-sidecar" ?
|
|
104
|
+
const launch = plan.kind === "python-sidecar" ? _chunkZ3IAEHIDjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
|
|
105
105
|
command: _nullishCoalesce(runtime.execPath, () => ( process.execPath)),
|
|
106
106
|
args: argv.slice(1),
|
|
107
107
|
shell: false
|
|
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
148
148
|
}
|
|
149
149
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
150
150
|
const target = response.latest;
|
|
151
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
151
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkZH23XGJOjs.SDK_VERSION;
|
|
152
152
|
process.stderr.write(
|
|
153
153
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
154
154
|
`
|
|
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
156
156
|
return false;
|
|
157
157
|
}
|
|
158
158
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
159
|
-
const plan =
|
|
159
|
+
const plan = _chunkPOYADK77js.resolveUpdatePlan.call(void 0, {
|
|
160
160
|
packageSpec,
|
|
161
161
|
requireVerifiedNpmOwnership: true,
|
|
162
162
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
163
163
|
});
|
|
164
|
-
if (!
|
|
164
|
+
if (!_chunkPOYADK77js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
165
165
|
return false;
|
|
166
166
|
}
|
|
167
167
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
168
168
|
deferredAutoUpdate = async () => {
|
|
169
169
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
170
170
|
};
|
|
171
|
-
if (
|
|
171
|
+
if (_chunkVA35T3AFjs.isJsonOutputMode.call(void 0, )) {
|
|
172
172
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
173
|
-
|
|
173
|
+
_chunkVA35T3AFjs.addJsonNotice.call(void 0, {
|
|
174
174
|
code: "sdk_update_queued",
|
|
175
175
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
176
176
|
});
|
|
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
183
183
|
return true;
|
|
184
184
|
}
|
|
185
185
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
186
|
-
if (!
|
|
186
|
+
if (!_chunkPOYADK77js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
187
187
|
const autoUpdate = response.auto_update;
|
|
188
188
|
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";
|
|
189
189
|
process.stderr.write(
|
|
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
196
196
|
event: "started",
|
|
197
197
|
installKind: plan.kind
|
|
198
198
|
});
|
|
199
|
-
const updateResult = await
|
|
199
|
+
const updateResult = await _chunkPOYADK77js.runAutomaticUpdatePlan.call(void 0, plan);
|
|
200
200
|
if (updateResult.status === "skipped_previous_failure") {
|
|
201
201
|
void reportAutoUpdateEvent({
|
|
202
202
|
baseUrl,
|
|
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
234
234
|
exitCode: 0
|
|
235
235
|
});
|
|
236
236
|
try {
|
|
237
|
-
await
|
|
237
|
+
await _chunkZ3IAEHIDjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
238
238
|
mode: "detached",
|
|
239
239
|
update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
|
|
240
240
|
afterCliUpdate: {
|
|
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
|
|
|
261
261
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
262
262
|
var activeToolExecuteCommand = null;
|
|
263
263
|
function progressLine(line) {
|
|
264
|
-
if (!
|
|
264
|
+
if (!_chunkVA35T3AFjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
265
265
|
}
|
|
266
266
|
function beginToolExecuteCommand() {
|
|
267
267
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|