deepline 0.3.479 → 0.3.480
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/cli/auth-7FOB243B.js +43 -0
- package/dist/cli/{auth-D7DYB57R.mjs → auth-KMKFQX7X.mjs} +7 -5
- package/dist/cli/{billing-DT4JT4QN.mjs → billing-G3Y5FTQM.mjs} +6 -6
- package/dist/cli/{billing-DHGSNM6E.js → billing-R5RCTEW6.js} +79 -79
- package/dist/cli/{chunk-RJVUILW4.mjs → chunk-2AYWC63S.mjs} +2 -2
- package/dist/cli/{chunk-D6MLXRMQ.mjs → chunk-44TVNYYV.mjs} +10 -10
- package/dist/cli/{chunk-GQCH6Y7W.js → chunk-4V6KEXCM.js} +1 -1
- package/dist/cli/{chunk-YC2QBF2W.mjs → chunk-53LLOGNV.mjs} +2 -2
- package/dist/cli/{chunk-K5RRY7DJ.mjs → chunk-57MJL2HU.mjs} +4 -4
- package/dist/cli/{chunk-FV7WGK5X.js → chunk-5IVGZCKY.js} +5 -5
- package/dist/cli/{chunk-ZJRVHQSZ.mjs → chunk-63QH6FL3.mjs} +4 -4
- package/dist/cli/{chunk-GSULE54L.js → chunk-6AYQK7Z6.js} +6 -6
- package/dist/cli/{chunk-PUOKABQF.mjs → chunk-7LMLHUCP.mjs} +5 -5
- package/dist/cli/{chunk-VRZXGJXH.js → chunk-A3PZKD47.js} +21 -21
- package/dist/cli/{chunk-JKUFOP7M.mjs → chunk-AKCYZDBO.mjs} +1 -1
- package/dist/cli/{chunk-VKBLXJCK.js → chunk-APFFHSPL.js} +8 -8
- package/dist/cli/{chunk-TZCHXF4R.mjs → chunk-ASARTL6E.mjs} +2 -2
- package/dist/cli/{chunk-FKEZ5DIJ.mjs → chunk-DIDWIPMA.mjs} +1 -1
- package/dist/cli/{chunk-33O2JGHE.js → chunk-DQYJXVAF.js} +4 -4
- package/dist/cli/{chunk-W6N2S5N7.js → chunk-FFSOXQEM.js} +8 -8
- package/dist/cli/{chunk-27PXHD2P.mjs → chunk-FZ42SO3Q.mjs} +1 -1
- package/dist/cli/{chunk-AFHFZU5V.js → chunk-FZX2DGQZ.js} +37 -37
- package/dist/cli/{chunk-6C3QY5JS.mjs → chunk-IQ6WL36K.mjs} +1 -1
- package/dist/cli/{chunk-N7E25EU2.mjs → chunk-JBQKBDDN.mjs} +5 -5
- package/dist/cli/{chunk-W4HIOBQQ.js → chunk-JH77OHD5.js} +2 -2
- package/dist/cli/{chunk-27GSBTWD.js → chunk-K7E2DO5P.js} +96 -65
- package/dist/cli/{chunk-GONL4EFT.mjs → chunk-KQNQCZLB.mjs} +2 -2
- package/dist/cli/{chunk-N4M6CO5H.js → chunk-LBZLV6QF.js} +9 -9
- package/dist/cli/{chunk-AKVNUNL7.js → chunk-LHU6BMDV.js} +3 -3
- package/dist/cli/{chunk-JNFNNJ75.mjs → chunk-LLEBPM3N.mjs} +4 -4
- package/dist/cli/{chunk-3GIM7XRH.js → chunk-MEJJD7PA.js} +2 -2
- package/dist/cli/{chunk-UOYA35OT.mjs → chunk-MTMOYZMK.mjs} +1 -1
- package/dist/cli/{chunk-OVFCPV24.js → chunk-NBXG4S2X.js} +53 -53
- package/dist/cli/{chunk-JMCTNS6S.js → chunk-NVTVS4AV.js} +6 -6
- package/dist/cli/{chunk-FBEXJVQL.js → chunk-OGXG46LY.js} +93 -93
- package/dist/cli/{chunk-CK2Q6AWR.js → chunk-OQOXR6JL.js} +26 -26
- package/dist/cli/{chunk-6QIXWFPO.mjs → chunk-PC42DFZC.mjs} +3 -3
- package/dist/cli/{chunk-EMVWC5LP.js → chunk-PDDUX5UY.js} +5 -5
- package/dist/cli/{chunk-3PHOAUU4.mjs → chunk-PM2CT7HZ.mjs} +41 -10
- package/dist/cli/{chunk-GZ43YXHT.mjs → chunk-PYIWO4GS.mjs} +2 -2
- package/dist/cli/{chunk-J5VDE42G.js → chunk-QEV3GFDS.js} +3 -3
- package/dist/cli/{chunk-G6V34EQ5.js → chunk-RPJSVGSC.js} +16 -16
- package/dist/cli/{chunk-GICSDK72.mjs → chunk-SUTQCM7U.mjs} +2 -2
- package/dist/cli/{chunk-XDFARN7U.mjs → chunk-T7EWDIVM.mjs} +1 -1
- package/dist/cli/{chunk-3SGA53DX.js → chunk-TBJ23WKT.js} +3 -3
- package/dist/cli/{chunk-O5BUFQ2P.mjs → chunk-TXFURKHD.mjs} +1 -1
- package/dist/cli/{chunk-Y2MVDYV6.js → chunk-VPO2D7WV.js} +10 -10
- package/dist/cli/{chunk-LXYDN5FE.js → chunk-WQBJHB63.js} +7 -7
- package/dist/cli/{chunk-JFGOMQW6.mjs → chunk-XNXE7YWI.mjs} +2 -2
- package/dist/cli/{chunk-XBYW5EHY.mjs → chunk-ZSWY5E3W.mjs} +1 -1
- package/dist/cli/{csv-DQWOZ2BL.js → csv-57D62T7L.js} +13 -13
- package/dist/cli/{csv-JXFOD7DJ.mjs → csv-P3AEI4G4.mjs} +4 -4
- package/dist/cli/{db-Q2OAAXRX.js → db-FWFYU34R.js} +27 -27
- package/dist/cli/{db-NOGMZAQE.mjs → db-PJQMPZJP.mjs} +6 -6
- package/dist/cli/{describe-VKZTZLX6.mjs → describe-F57VZZML.mjs} +17 -17
- package/dist/cli/describe-ZAYUBNUQ.js +48 -0
- package/dist/cli/{executions-B3GDZ4GQ.js → executions-YBT7NTY5.js} +8 -8
- package/dist/cli/{executions-XU3JMNI3.mjs → executions-ZAJGMAAT.mjs} +6 -6
- package/dist/cli/{feedback-R5UQXINE.mjs → feedback-L3ZQCSY6.mjs} +4 -4
- package/dist/cli/{feedback-5IW3ZKRP.js → feedback-YLYY2EG4.js} +8 -8
- package/dist/cli/git-A3433UTN.js +25 -0
- package/dist/cli/{git-7B4H7VEL.mjs → git-M7735NWJ.mjs} +5 -5
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-KY7JAALE.mjs → legacy-noops-PKNMQMGY.mjs} +5 -5
- package/dist/cli/{legacy-noops-AVT6T5QI.js → legacy-noops-TX37UP3U.js} +8 -8
- package/dist/cli/{monitors-GZB6CWK2.js → monitors-5YTGQSGD.js} +91 -91
- package/dist/cli/{monitors-G7L7AFXR.mjs → monitors-U7AUIOFZ.mjs} +7 -7
- package/dist/cli/{org-ZHHKAPCE.js → org-N6DSSLLD.js} +72 -72
- package/dist/cli/{org-QDUBOQTH.mjs → org-SRKZRVVH.mjs} +6 -6
- package/dist/cli/{pages-Q4WGQCST.mjs → pages-UOPJUFCF.mjs} +6 -6
- package/dist/cli/{pages-5P3SPMN5.js → pages-YPN54RCC.js} +17 -17
- package/dist/cli/{play-WRSHD4RE.mjs → play-4IK4WXWU.mjs} +17 -17
- package/dist/cli/{play-IRLKESZB.js → play-MEYZEYOV.js} +306 -306
- package/dist/cli/{providers-7CQUHS57.mjs → providers-UGHUYP4C.mjs} +6 -6
- package/dist/cli/{providers-LKEYLN6D.js → providers-VS5MK4ZH.js} +9 -9
- package/dist/cli/{quickstart-KS45M5SR.js → quickstart-GW2ERQ2A.js} +6 -6
- package/dist/cli/{quickstart-I6NYGMEE.mjs → quickstart-YBOQSLFV.mjs} +4 -4
- package/dist/cli/{run-AZETCL7R.mjs → run-44JT5GJM.mjs} +22 -22
- package/dist/cli/{run-BLMOBNAN.js → run-IVGMLY3J.js} +36 -36
- package/dist/cli/search-2XTYY7BF.js +32 -0
- package/dist/cli/{search-EEKEP67Y.mjs → search-43NY73VR.mjs} +7 -7
- package/dist/cli/{secrets-M6NU3TD2.js → secrets-DABUD3B7.js} +15 -15
- package/dist/cli/{secrets-HAULG2EW.mjs → secrets-ONDQGW3B.mjs} +6 -6
- package/dist/cli/{sessions-DSR5AHIA.js → sessions-4ILQMBKR.js} +6 -6
- package/dist/cli/{sessions-5MB4XKOK.mjs → sessions-AIAKKLSR.mjs} +5 -5
- package/dist/cli/{settings-6US327NQ.js → settings-BWNLL7TP.js} +78 -78
- package/dist/cli/{settings-JUQP4HYQ.mjs → settings-HSGKYOJT.mjs} +11 -11
- package/dist/cli/{setup-5ZRSEQUD.js → setup-37QOD4UT.js} +67 -52
- package/dist/cli/{setup-JRH4UC47.mjs → setup-LE4OVH4M.mjs} +33 -18
- package/dist/cli/{skills-HFOZ5WDH.mjs → skills-A3ZVR2YX.mjs} +7 -7
- package/dist/cli/skills-TULQXRQJ.js +33 -0
- package/dist/cli/{tools-CJEBZNPB.mjs → tools-ITKPPUDT.mjs} +16 -16
- package/dist/cli/tools-QYYBWDXU.js +55 -0
- package/dist/cli/{update-VQJEPAAK.mjs → update-XJOSCOK5.mjs} +9 -9
- package/dist/cli/update-XSMY7KWH.js +33 -0
- package/dist/cli/{workflow-EYWE3T75.mjs → workflow-KYQYFSND.mjs} +7 -7
- package/dist/cli/{workflow-NKPDRZOP.js → workflow-LERZ3TYV.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +96 -96
- 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-MZDFNRPG.js +0 -41
- package/dist/cli/describe-THHHNUEA.js +0 -48
- package/dist/cli/git-BX27JAW4.js +0 -25
- package/dist/cli/search-PEQXXY2B.js +0 -32
- package/dist/cli/skills-P67KCVDR.js +0 -33
- package/dist/cli/tools-PDBEAI22.js +0 -55
- package/dist/cli/update-G6DI3BQW.js +0 -33
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkNBXG4S2Xjs = require('./chunk-NBXG4S2X.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkWQBJHB63js = require('./chunk-WQBJHB63.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkTBJ23WKTjs = require('./chunk-TBJ23WKT.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkDQYJXVAFjs = require('./chunk-DQYJXVAF.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
var _child_process = require('child_process');
|
|
@@ -132,7 +132,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
132
132
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
133
133
|
}
|
|
134
134
|
function resolveLocalRoot() {
|
|
135
|
-
const target =
|
|
135
|
+
const target = _chunkTBJ23WKTjs.resolveProjectPinTarget.call(void 0, );
|
|
136
136
|
if (!target.ok) {
|
|
137
137
|
throw new Error(
|
|
138
138
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -143,7 +143,7 @@ function resolveLocalRoot() {
|
|
|
143
143
|
return target.dir;
|
|
144
144
|
}
|
|
145
145
|
function detectSkillsAgents(input) {
|
|
146
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
146
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, )));
|
|
147
147
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
148
148
|
if (knownAgent) return [knownAgent];
|
|
149
149
|
const roots = [
|
|
@@ -158,11 +158,11 @@ function detectSkillsAgents(input) {
|
|
|
158
158
|
return detected.length > 0 ? detected : ["*"];
|
|
159
159
|
}
|
|
160
160
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
161
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
161
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkTBJ23WKTjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
162
162
|
}
|
|
163
163
|
function buildSkillsPlan(input) {
|
|
164
164
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
165
|
-
const legacyNames = [...
|
|
165
|
+
const legacyNames = [..._chunkNBXG4S2Xjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
166
166
|
(a, b) => a.localeCompare(b)
|
|
167
167
|
);
|
|
168
168
|
return {
|
|
@@ -176,7 +176,7 @@ function buildSkillsPlan(input) {
|
|
|
176
176
|
args: [
|
|
177
177
|
"exec",
|
|
178
178
|
"--yes",
|
|
179
|
-
`--package=${
|
|
179
|
+
`--package=${_chunkNBXG4S2Xjs.SKILLS_NPX_PACKAGE}`,
|
|
180
180
|
"--",
|
|
181
181
|
"skills",
|
|
182
182
|
"remove",
|
|
@@ -192,11 +192,11 @@ function buildSkillsPlan(input) {
|
|
|
192
192
|
args: [
|
|
193
193
|
"exec",
|
|
194
194
|
"--yes",
|
|
195
|
-
`--package=${
|
|
195
|
+
`--package=${_chunkNBXG4S2Xjs.SKILLS_NPX_PACKAGE}`,
|
|
196
196
|
"--",
|
|
197
197
|
"skills",
|
|
198
198
|
"add",
|
|
199
|
-
|
|
199
|
+
_chunkNBXG4S2Xjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
200
200
|
"--agent",
|
|
201
201
|
...input.agents,
|
|
202
202
|
...scopeArgs,
|
|
@@ -233,7 +233,7 @@ function readSkillsInstallState(path) {
|
|
|
233
233
|
}
|
|
234
234
|
function runProcess(command, args, cwd) {
|
|
235
235
|
return new Promise((resolve, reject) => {
|
|
236
|
-
const plan =
|
|
236
|
+
const plan = _chunkNBXG4S2Xjs.resolveShellSpawn.call(void 0,
|
|
237
237
|
command,
|
|
238
238
|
args,
|
|
239
239
|
process.platform,
|
|
@@ -255,7 +255,7 @@ function runProcess(command, args, cwd) {
|
|
|
255
255
|
child.kill("SIGTERM");
|
|
256
256
|
reject(
|
|
257
257
|
new Error(
|
|
258
|
-
`${
|
|
258
|
+
`${_chunkNBXG4S2Xjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
259
259
|
)
|
|
260
260
|
);
|
|
261
261
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -266,7 +266,7 @@ function runProcess(command, args, cwd) {
|
|
|
266
266
|
child.once("close", (code) => {
|
|
267
267
|
clearTimeout(timeout);
|
|
268
268
|
if (code && stderr.trim()) {
|
|
269
|
-
process.stderr.write(`${
|
|
269
|
+
process.stderr.write(`${_chunkNBXG4S2Xjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
270
270
|
`);
|
|
271
271
|
}
|
|
272
272
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -280,7 +280,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
280
280
|
scope = normalizeScope(options.scope);
|
|
281
281
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
282
282
|
} catch (error) {
|
|
283
|
-
|
|
283
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
284
284
|
{
|
|
285
285
|
ok: false,
|
|
286
286
|
status: "failed",
|
|
@@ -292,22 +292,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
292
292
|
);
|
|
293
293
|
return 2;
|
|
294
294
|
}
|
|
295
|
-
const baseUrl =
|
|
295
|
+
const baseUrl = _chunkTBJ23WKTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
296
296
|
const catalog = {
|
|
297
|
-
skillNames: [...
|
|
298
|
-
version:
|
|
297
|
+
skillNames: [..._chunkNBXG4S2Xjs.DEFAULT_SDK_SKILL_NAMES],
|
|
298
|
+
version: _chunkDQYJXVAFjs.SDK_VERSION
|
|
299
299
|
};
|
|
300
300
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
301
301
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
302
302
|
if (options.dryRun) {
|
|
303
|
-
|
|
303
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
304
304
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
305
305
|
{ json: options.json }
|
|
306
306
|
);
|
|
307
307
|
return 0;
|
|
308
308
|
}
|
|
309
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
310
|
-
|
|
309
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkNBXG4S2Xjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
310
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
311
311
|
{
|
|
312
312
|
ok: true,
|
|
313
313
|
status: "current",
|
|
@@ -339,10 +339,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
339
339
|
}
|
|
340
340
|
if (scope === "local" && root) {
|
|
341
341
|
const managedNames = [
|
|
342
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
342
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkNBXG4S2Xjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
343
343
|
];
|
|
344
344
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
345
|
-
|
|
345
|
+
_chunkTBJ23WKTjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
346
346
|
".deepline/",
|
|
347
347
|
...agentRoots.flatMap(
|
|
348
348
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
351
351
|
}
|
|
352
352
|
let lease;
|
|
353
353
|
try {
|
|
354
|
-
lease = scope === "global" ? await
|
|
354
|
+
lease = scope === "global" ? await _chunkNBXG4S2Xjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
355
355
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
356
356
|
onWait: () => process.stderr.write(
|
|
357
357
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -359,8 +359,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
359
359
|
}) : { release: () => {
|
|
360
360
|
} };
|
|
361
361
|
} catch (error) {
|
|
362
|
-
if (!(error instanceof
|
|
363
|
-
|
|
362
|
+
if (!(error instanceof _chunkNBXG4S2Xjs.SkillsStateUnavailableError)) throw error;
|
|
363
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
364
364
|
{
|
|
365
365
|
ok: false,
|
|
366
366
|
status: "failed",
|
|
@@ -376,7 +376,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
376
376
|
return 5;
|
|
377
377
|
}
|
|
378
378
|
if (!lease) {
|
|
379
|
-
|
|
379
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
380
380
|
{
|
|
381
381
|
ok: false,
|
|
382
382
|
status: "failed",
|
|
@@ -385,7 +385,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
385
385
|
scope,
|
|
386
386
|
agents,
|
|
387
387
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
388
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
388
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkNBXG4S2Xjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
389
389
|
},
|
|
390
390
|
{ json: options.json }
|
|
391
391
|
);
|
|
@@ -434,7 +434,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
} catch (error) {
|
|
437
|
-
|
|
437
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
438
438
|
{
|
|
439
439
|
ok: false,
|
|
440
440
|
status: "failed",
|
|
@@ -450,7 +450,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
450
450
|
return 5;
|
|
451
451
|
}
|
|
452
452
|
if (missing.length > 0) {
|
|
453
|
-
|
|
453
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
454
454
|
{
|
|
455
455
|
ok: false,
|
|
456
456
|
status: "failed",
|
|
@@ -490,7 +490,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
490
490
|
{
|
|
491
491
|
schemaVersion: 1,
|
|
492
492
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
493
|
-
cliVersion:
|
|
493
|
+
cliVersion: _chunkDQYJXVAFjs.SDK_VERSION,
|
|
494
494
|
scope,
|
|
495
495
|
agents,
|
|
496
496
|
skillsVersion: plan.version,
|
|
@@ -503,9 +503,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
503
503
|
"utf8"
|
|
504
504
|
);
|
|
505
505
|
if (scope === "global") {
|
|
506
|
-
|
|
506
|
+
_chunkNBXG4S2Xjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
507
507
|
}
|
|
508
|
-
|
|
508
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
509
509
|
{
|
|
510
510
|
ok: true,
|
|
511
511
|
status: "complete",
|
|
@@ -536,7 +536,7 @@ function registerSkillsCommand(program) {
|
|
|
536
536
|
"after",
|
|
537
537
|
`
|
|
538
538
|
Notes:
|
|
539
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
539
|
+
This command reinstalls current Deepline-managed skills using ${_chunkNBXG4S2Xjs.SKILLS_NPX_PACKAGE},
|
|
540
540
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
541
541
|
persistent project.
|
|
542
542
|
|
|
@@ -548,13 +548,13 @@ Examples:
|
|
|
548
548
|
).action(async (options) => {
|
|
549
549
|
process.exitCode = await runSkillsCommand(options);
|
|
550
550
|
});
|
|
551
|
-
program.command(
|
|
551
|
+
program.command(_chunkNBXG4S2Xjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
552
552
|
"--claim <token>",
|
|
553
553
|
"Owner token of the leases this child was started for."
|
|
554
554
|
).action(async (options) => {
|
|
555
555
|
const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
|
|
556
556
|
if (!claim) {
|
|
557
|
-
|
|
557
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
558
558
|
{
|
|
559
559
|
ok: false,
|
|
560
560
|
status: "failed",
|
|
@@ -567,7 +567,7 @@ Examples:
|
|
|
567
567
|
process.exitCode = 2;
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
570
|
-
await
|
|
570
|
+
await _chunkNBXG4S2Xjs.syncSdkSkillsIfNeeded.call(void 0, _chunkTBJ23WKTjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
571
571
|
mode: "inline",
|
|
572
572
|
notices: "defer",
|
|
573
573
|
claim
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7LMLHUCP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-57MJL2HU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-53LLOGNV.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TXFURKHD.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-T7EWDIVM.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunkWQBJHB63js = require('./chunk-WQBJHB63.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkWQBJHB63js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|