deepline 0.3.575 → 0.3.576
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 +13 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +145 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +153 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +41 -5
- package/dist/cli/{agents-ULGDKUTM.mjs → agents-BLJR2Y3X.mjs} +35 -4
- package/dist/cli/{agents-BCLO3KQJ.js → agents-CJQ7KBFT.js} +61 -30
- package/dist/cli/auth-GSDYP4ZN.js +44 -0
- package/dist/cli/{auth-4WCL7A6W.mjs → auth-SLZIRCPE.mjs} +5 -5
- package/dist/cli/{billing-7JQ6EUQU.mjs → billing-6Q4SK5KF.mjs} +9 -9
- package/dist/cli/{billing-BF5LVXOM.js → billing-IECMVARO.js} +102 -102
- package/dist/cli/{chunk-2T7XOKVL.mjs → chunk-2UHEJPSS.mjs} +5 -5
- package/dist/cli/{chunk-AO56MZ7D.js → chunk-36254433.js} +3 -3
- package/dist/cli/{chunk-EZIXKNKM.js → chunk-45POZK3F.js} +3 -3
- package/dist/cli/{chunk-5H6254MJ.js → chunk-4KIIXV5Z.js} +16 -16
- package/dist/cli/{chunk-GQZFZG6R.mjs → chunk-5VABOJ4M.mjs} +2 -2
- package/dist/cli/{chunk-TTBZ7QXX.mjs → chunk-66K7F7LR.mjs} +1 -1
- package/dist/cli/{chunk-HEOM3FAC.js → chunk-6JQZC6HX.js} +20 -20
- package/dist/cli/{chunk-XFV353R2.js → chunk-6RY5COUY.js} +23 -23
- package/dist/cli/{chunk-RHRRY2BX.mjs → chunk-7DI34I73.mjs} +3 -3
- package/dist/cli/{chunk-ZYSJND73.js → chunk-ANPHEXTT.js} +9 -9
- package/dist/cli/{chunk-JGLCK2XF.mjs → chunk-AUR24RQB.mjs} +2 -2
- package/dist/cli/{chunk-FDCU3VAJ.mjs → chunk-AZFSCPYK.mjs} +18 -1
- package/dist/cli/{chunk-YNAXKA23.js → chunk-BRPUB6UA.js} +5 -5
- package/dist/cli/{chunk-BM536WWR.mjs → chunk-CUIFDMNP.mjs} +11 -1
- package/dist/cli/{chunk-SYQTBHRX.mjs → chunk-D5LWYP2H.mjs} +3 -3
- package/dist/cli/{chunk-ZQXJYO5P.js → chunk-DGY4EYIX.js} +5 -5
- package/dist/cli/{chunk-2UM3I2MY.js → chunk-E4M4QZBP.js} +11 -1
- package/dist/cli/{chunk-V5XLENWK.js → chunk-EQO77FQZ.js} +5 -5
- package/dist/cli/{chunk-H6JMRLAZ.js → chunk-F4H26PP6.js} +100 -100
- package/dist/cli/{chunk-MN7JLH2T.mjs → chunk-GI57Q7JU.mjs} +2 -2
- package/dist/cli/{chunk-ZS6DT4LD.js → chunk-GZ7KYGYE.js} +15 -15
- package/dist/cli/{chunk-TMFR2B45.mjs → chunk-HE53AI2E.mjs} +3 -3
- package/dist/cli/{chunk-6IKLITVH.js → chunk-HHMO3CON.js} +6 -6
- package/dist/cli/{chunk-X47J55ZJ.mjs → chunk-JPFAD6G6.mjs} +2 -2
- package/dist/cli/{chunk-EV3OPDHF.js → chunk-JSIOLCTK.js} +20 -20
- package/dist/cli/{chunk-QKP3WYSZ.mjs → chunk-KQTZO6NT.mjs} +2 -2
- package/dist/cli/{chunk-636GD4IR.js → chunk-L6H72AIX.js} +2 -2
- package/dist/cli/{chunk-IAJ65IDZ.mjs → chunk-LKC7PHDX.mjs} +4 -4
- package/dist/cli/{chunk-HO76C7AE.js → chunk-M23G33MH.js} +2 -2
- package/dist/cli/{chunk-KNCNFL76.js → chunk-MDJ4LPQ5.js} +4 -4
- package/dist/cli/{chunk-DMPGJCNZ.js → chunk-MXPCTF57.js} +18 -1
- package/dist/cli/{chunk-FXXERR52.js → chunk-NQFZ7FYN.js} +10 -10
- package/dist/cli/{chunk-MWLOBURN.mjs → chunk-OMVBBAQP.mjs} +2 -2
- package/dist/cli/{chunk-737Y7QGT.js → chunk-OXRG325T.js} +41 -41
- package/dist/cli/{chunk-CVY4MBXH.mjs → chunk-PU5VCDCJ.mjs} +5 -5
- package/dist/cli/{chunk-5VSHQG5E.js → chunk-PYFMNPTA.js} +8 -8
- package/dist/cli/{chunk-IOWLFWWG.mjs → chunk-QCD7BQ5Z.mjs} +2 -2
- package/dist/cli/{chunk-QEDRUURT.mjs → chunk-R5NKLZL2.mjs} +1 -1
- package/dist/cli/{chunk-E4RYSSXX.mjs → chunk-S4IW4NAI.mjs} +1 -1
- package/dist/cli/{chunk-7DLAJ6JJ.js → chunk-SBZSJQEI.js} +53 -53
- package/dist/cli/{chunk-BQUAE6LQ.mjs → chunk-SY3OKOI5.mjs} +1 -1
- package/dist/cli/{chunk-NF722E6C.mjs → chunk-TZHS2W5Z.mjs} +1 -1
- package/dist/cli/{chunk-AS5XGOZY.js → chunk-UD6M2ZTY.js} +2 -2
- package/dist/cli/{chunk-56N3XAT6.mjs → chunk-UGIH4462.mjs} +5 -5
- package/dist/cli/{chunk-PQYDO72W.js → chunk-V25CXBR2.js} +26 -26
- package/dist/cli/{chunk-GB4IZ5TV.js → chunk-WDWV77SJ.js} +13 -13
- package/dist/cli/{chunk-G4WPDCXA.js → chunk-WPGZ6V36.js} +48 -48
- package/dist/cli/{chunk-UQZP7XBQ.mjs → chunk-X5V6S5KI.mjs} +5 -5
- package/dist/cli/{chunk-IBYMGR5Y.mjs → chunk-XJNJ3BWU.mjs} +1 -1
- package/dist/cli/{chunk-G2H6SQQY.js → chunk-Y4A6Y5EY.js} +7 -7
- package/dist/cli/{chunk-5D7OJY4W.mjs → chunk-YHM64N5C.mjs} +1 -1
- package/dist/cli/{chunk-H3CG72RZ.mjs → chunk-ZIGMC2X4.mjs} +11 -11
- package/dist/cli/{chunk-3PVKXUSJ.mjs → chunk-ZRC52APB.mjs} +1 -1
- package/dist/cli/{chunk-BONMEBWZ.mjs → chunk-ZYN6S6G2.mjs} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-HITK6EOO.mjs → concurrent-runs-help-H3SA7J6H.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-PB7GT6F2.js +22 -0
- package/dist/cli/{csv-RS7XHQ4P.js → csv-6DEKR3QQ.js} +13 -13
- package/dist/cli/{csv-V2T23MXT.mjs → csv-ICXI7JAS.mjs} +4 -4
- package/dist/cli/{db-WFIVRPKY.js → db-AG7INMLP.js} +27 -27
- package/dist/cli/{db-OQ4RNTGE.mjs → db-VI7T5E6O.mjs} +6 -6
- package/dist/cli/describe-LMHIG3DP.js +50 -0
- package/dist/cli/{describe-AXV2EEX3.mjs → describe-S6NFWWGK.mjs} +18 -18
- package/dist/cli/{executions-5H2RIWZ3.js → executions-M5R5QHIA.js} +8 -8
- package/dist/cli/{executions-THP5ZDBQ.mjs → executions-MK7H4Q2H.mjs} +6 -6
- package/dist/cli/{feedback-UOI6UEGA.js → feedback-L3L4FEQL.js} +14 -14
- package/dist/cli/{feedback-2EJPILGE.mjs → feedback-ZHATL2XF.mjs} +6 -6
- package/dist/cli/{git-DI3LJIAT.mjs → git-W5DHNH2Q.mjs} +5 -5
- package/dist/cli/git-WYNCLDHD.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-DJYS5VRK.mjs → integrations-73YSN2LI.mjs} +7 -7
- package/dist/cli/{integrations-TYN2BSQ6.js → integrations-IBWNO3YP.js} +29 -29
- package/dist/cli/{legacy-noops-Z457BB6O.mjs → legacy-noops-4LFZJTDX.mjs} +6 -6
- package/dist/cli/{legacy-noops-GXQHNLGJ.js → legacy-noops-AE6DBYJM.js} +9 -9
- package/dist/cli/{mcp-WMBOOTQL.js → mcp-BKL6M6OI.js} +24 -24
- package/dist/cli/{mcp-NAW3GFNN.mjs → mcp-E6PTSNDE.mjs} +4 -4
- package/dist/cli/{monitors-A7NYAXSJ.mjs → monitors-MXJ27KQK.mjs} +7 -7
- package/dist/cli/{monitors-OOQVE7XR.js → monitors-SW7ZCPPT.js} +100 -100
- package/dist/cli/{org-7YCDUSZE.mjs → org-HYAJ2MIK.mjs} +6 -6
- package/dist/cli/{org-D2AMIVBS.js → org-XJ44KZ5I.js} +121 -121
- package/dist/cli/{outcomes-2FKZDJSQ.js → outcomes-PTXGG4BZ.js} +14 -14
- package/dist/cli/{outcomes-TNTKCUEO.mjs → outcomes-PUMAXRGD.mjs} +6 -6
- package/dist/cli/{play-NWKHCHVZ.js → play-EPDZ3GDV.js} +336 -336
- package/dist/cli/{play-L6CVHSN4.mjs → play-QN3X6IAE.mjs} +19 -19
- package/dist/cli/{providers-PZGOI5CN.js → providers-GNJFGNDH.js} +9 -9
- package/dist/cli/{providers-22LO747B.mjs → providers-JIN5UQ7Z.mjs} +6 -6
- package/dist/cli/{quickstart-3ZRVKGMH.mjs → quickstart-4EBFHGB7.mjs} +4 -4
- package/dist/cli/{quickstart-LLWOC2GR.js → quickstart-YH6NNC5I.js} +6 -6
- package/dist/cli/{run-SNF23STR.js → run-4DRF7KQJ.js} +44 -44
- package/dist/cli/{run-D46W2GUA.mjs → run-5467KBCP.mjs} +23 -23
- package/dist/cli/search-B2KCWPUV.js +32 -0
- package/dist/cli/{search-XWVCICIX.mjs → search-ZERTOGH6.mjs} +7 -7
- package/dist/cli/{search-output-YM5QXFQQ.mjs → search-output-OAVJXRFO.mjs} +4 -4
- package/dist/cli/{search-output-36GHD67U.js → search-output-OMNZN2LP.js} +6 -6
- package/dist/cli/{secrets-UXCIHG5I.js → secrets-7XK2BGYX.js} +15 -15
- package/dist/cli/{secrets-7PTZEFRC.mjs → secrets-KAVDYB4P.mjs} +6 -6
- package/dist/cli/sessions-PUQURPPC.js +23 -0
- package/dist/cli/{sessions-DTXJKRP4.mjs → sessions-TNPI6XWB.mjs} +6 -6
- package/dist/cli/{settings-74B6UOS4.mjs → settings-KUABXRAJ.mjs} +12 -12
- package/dist/cli/{settings-EYSDZE37.js → settings-RQ3Z3JCM.js} +85 -85
- package/dist/cli/{setup-2QRZ36CH.mjs → setup-6IX6BSS7.mjs} +9 -9
- package/dist/cli/{setup-E7PVXBPL.js → setup-TDOWNKYN.js} +49 -49
- package/dist/cli/skills-AACRY2TV.js +37 -0
- package/dist/cli/{skills-2WZ7N3UW.mjs → skills-Z6NBJ4KP.mjs} +7 -7
- package/dist/cli/{tools-YK5SCUZD.mjs → tools-LQKFWK7J.mjs} +17 -17
- package/dist/cli/tools-OTYA4722.js +57 -0
- package/dist/cli/update-JTGMI6OJ.js +37 -0
- package/dist/cli/{update-563YQK53.mjs → update-RUB4EIKW.mjs} +9 -9
- package/dist/cli/{views-ISNCRZUP.mjs → views-D7WY5QPR.mjs} +6 -6
- package/dist/cli/{views-OLPS6TPG.js → views-FFLXLAGC.js} +21 -21
- package/dist/cli/{workflow-B3ZKU3OR.mjs → workflow-BV2OTEQD.mjs} +7 -7
- package/dist/cli/{workflow-CUSCTYMW.js → workflow-QW7QVODA.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +116 -116
- package/dist/release.d.mts +9 -1
- package/dist/release.d.ts +9 -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-DXUHEL5I.js +0 -44
- package/dist/cli/concurrent-runs-help-JLWY54WL.js +0 -22
- package/dist/cli/describe-33PBWO5O.js +0 -50
- package/dist/cli/git-2OPYEPYW.js +0 -26
- package/dist/cli/search-H57MZPLF.js +0 -32
- package/dist/cli/sessions-JJZMQSH4.js +0 -23
- package/dist/cli/skills-RIF2DCZI.js +0 -37
- package/dist/cli/tools-7VRQ4GSI.js +0 -57
- package/dist/cli/update-CMZAIAES.js +0 -37
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkWPGZ6V36js = require('./chunk-WPGZ6V36.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkJSIOLCTKjs = require('./chunk-JSIOLCTK.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk36254433js = require('./chunk-36254433.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkMDJ4LPQ5js = require('./chunk-MDJ4LPQ5.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 = _chunk36254433js.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, () => ( _chunkMDJ4LPQ5js.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, _chunk36254433js.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 = [..._chunkWPGZ6V36js.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=${_chunkWPGZ6V36js.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=${_chunkWPGZ6V36js.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkWPGZ6V36js.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 = _chunkWPGZ6V36js.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
|
+
`${_chunkWPGZ6V36js.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(`${_chunkWPGZ6V36js.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 = _chunk36254433js.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
|
+
_chunkJSIOLCTKjs.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
|
+
_chunkJSIOLCTKjs.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
|
+
_chunkJSIOLCTKjs.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
|
+
_chunkJSIOLCTKjs.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 = _chunk36254433js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
367
367
|
const catalog = {
|
|
368
|
-
skillNames: [...
|
|
369
|
-
version:
|
|
368
|
+
skillNames: [..._chunkWPGZ6V36js.DEFAULT_SDK_SKILL_NAMES],
|
|
369
|
+
version: _chunkMDJ4LPQ5js.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
|
+
_chunkJSIOLCTKjs.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)) && !_chunkWPGZ6V36js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
381
|
+
_chunkJSIOLCTKjs.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, ..._chunkWPGZ6V36js.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
414
414
|
];
|
|
415
415
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
416
|
-
|
|
416
|
+
_chunk36254433js.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 _chunkWPGZ6V36js.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 _chunkWPGZ6V36js.SkillsStateUnavailableError)) throw error;
|
|
434
|
+
_chunkJSIOLCTKjs.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
|
+
_chunkJSIOLCTKjs.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 ${_chunkWPGZ6V36js.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
|
+
_chunkJSIOLCTKjs.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
|
+
_chunkJSIOLCTKjs.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: _chunkMDJ4LPQ5js.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
|
+
_chunkWPGZ6V36js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
_chunkJSIOLCTKjs.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 ${_chunkWPGZ6V36js.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(_chunkWPGZ6V36js.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
|
+
_chunkJSIOLCTKjs.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 _chunkWPGZ6V36js.syncSdkSkillsIfNeeded.call(void 0, _chunk36254433js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
660
660
|
mode: "inline",
|
|
661
661
|
notices: "defer",
|
|
662
662
|
claim
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UGIH4462.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
resolveShellSpawn,
|
|
11
11
|
syncSdkSkillsIfNeeded
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2UHEJPSS.mjs";
|
|
13
13
|
import {
|
|
14
14
|
addJsonNotice,
|
|
15
15
|
isJsonOutputMode
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JPFAD6G6.mjs";
|
|
17
17
|
import {
|
|
18
18
|
resolveApiKeyForBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZRC52APB.mjs";
|
|
20
20
|
import {
|
|
21
21
|
SDK_VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-XJNJ3BWU.mjs";
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkMDJ4LPQ5js = require('./chunk-MDJ4LPQ5.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(_chunkMDJ4LPQ5js.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
|
+
[_chunkMDJ4LPQ5js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1354
|
+
...receivers ? { [_chunkMDJ4LPQ5js.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, [_chunkMDJ4LPQ5js.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(_chunkMDJ4LPQ5js.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 { [_chunkMDJ4LPQ5js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3550
3550
|
}
|
|
3551
3551
|
function sleep(ms) {
|
|
3552
3552
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4482,7 +4482,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4482
4482
|
);
|
|
4483
4483
|
const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
|
|
4484
4484
|
...runtimeHeaders,
|
|
4485
|
-
"X-Deepline-API-Major": String(
|
|
4485
|
+
"X-Deepline-API-Major": String(_chunkMDJ4LPQ5js.SDK_API_MAJOR)
|
|
4486
4486
|
} : runtimeHeaders;
|
|
4487
4487
|
const http = this.http;
|
|
4488
4488
|
let submitted = false;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R5NKLZL2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZRC52APB.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|