deepline 0.3.576 → 0.3.578
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/{agents-BLJR2Y3X.mjs → agents-LRBANBZH.mjs} +4 -4
- package/dist/cli/{agents-CJQ7KBFT.js → agents-MCU3ITQZ.js} +31 -31
- package/dist/cli/{auth-SLZIRCPE.mjs → auth-5BJKVYMQ.mjs} +5 -5
- package/dist/cli/auth-VSW3MTFO.js +44 -0
- package/dist/cli/{billing-6Q4SK5KF.mjs → billing-EBBI4MVL.mjs} +8 -8
- package/dist/cli/{billing-IECMVARO.js → billing-NT57POHH.js} +99 -99
- package/dist/cli/{chunk-WDWV77SJ.js → chunk-24FGR73C.js} +13 -13
- package/dist/cli/{chunk-L6H72AIX.js → chunk-25SSGQJJ.js} +2 -2
- package/dist/cli/{chunk-6RY5COUY.js → chunk-27HAQRGH.js} +23 -23
- package/dist/cli/{chunk-ZYN6S6G2.mjs → chunk-3GF33QJJ.mjs} +4 -4
- package/dist/cli/{chunk-PYFMNPTA.js → chunk-3ZUKYLC6.js} +8 -8
- package/dist/cli/{chunk-KQTZO6NT.mjs → chunk-4CNHOBUO.mjs} +2 -2
- package/dist/cli/{chunk-ZIGMC2X4.mjs → chunk-4KNRCUKY.mjs} +11 -11
- package/dist/cli/{chunk-JPFAD6G6.mjs → chunk-4LMTY4RQ.mjs} +2 -2
- package/dist/cli/{chunk-CUIFDMNP.mjs → chunk-4YSJOSBG.mjs} +1 -1
- package/dist/cli/{chunk-SBZSJQEI.js → chunk-5IMWXYVB.js} +53 -53
- package/dist/cli/{chunk-6JQZC6HX.js → chunk-5LCV36BR.js} +20 -20
- package/dist/cli/{chunk-5VABOJ4M.mjs → chunk-6UFTWNC5.mjs} +2 -2
- package/dist/cli/{chunk-66K7F7LR.mjs → chunk-7J473OJ5.mjs} +1 -1
- package/dist/cli/{chunk-MDJ4LPQ5.js → chunk-A7NKOXBV.js} +4 -4
- package/dist/cli/{chunk-YHM64N5C.mjs → chunk-ALXYCC4K.mjs} +1 -1
- package/dist/cli/{chunk-4KIIXV5Z.js → chunk-BPMA4S3O.js} +16 -16
- package/dist/cli/{chunk-GI57Q7JU.mjs → chunk-CFG3ZM7M.mjs} +2 -2
- package/dist/cli/{chunk-XJNJ3BWU.mjs → chunk-CFLAGRWL.mjs} +1 -1
- package/dist/cli/{chunk-E4M4QZBP.js → chunk-CPNTDIJK.js} +1 -1
- package/dist/cli/{chunk-V25CXBR2.js → chunk-CS36W3RL.js} +26 -26
- package/dist/cli/{chunk-S4IW4NAI.mjs → chunk-CSPOWVWS.mjs} +1 -1
- package/dist/cli/{chunk-LKC7PHDX.mjs → chunk-DDJN4RR6.mjs} +4 -4
- package/dist/cli/{chunk-EQO77FQZ.js → chunk-G7PH2QVM.js} +5 -5
- package/dist/cli/{chunk-PU5VCDCJ.mjs → chunk-H7DY5NQ3.mjs} +5 -5
- package/dist/cli/{chunk-JSIOLCTK.js → chunk-HGQT6EGK.js} +20 -20
- package/dist/cli/{chunk-HE53AI2E.mjs → chunk-HKZN33F2.mjs} +3 -3
- package/dist/cli/{chunk-UGIH4462.mjs → chunk-HZXF2HFF.mjs} +5 -5
- package/dist/cli/{chunk-7DI34I73.mjs → chunk-IFWB4BYZ.mjs} +3 -3
- package/dist/cli/{chunk-QCD7BQ5Z.mjs → chunk-ITYSPUKD.mjs} +2 -2
- package/dist/cli/{chunk-DGY4EYIX.js → chunk-J7PCSLRY.js} +5 -5
- package/dist/cli/{chunk-SY3OKOI5.mjs → chunk-JQPFICW3.mjs} +1 -1
- package/dist/cli/{chunk-TZHS2W5Z.mjs → chunk-LYZPGP3P.mjs} +1 -1
- package/dist/cli/{chunk-OXRG325T.js → chunk-M3ITWEGS.js} +41 -41
- package/dist/cli/{chunk-NQFZ7FYN.js → chunk-NEH7NZFT.js} +10 -10
- package/dist/cli/{chunk-R5NKLZL2.mjs → chunk-NTHN7ODR.mjs} +1 -1
- package/dist/cli/{chunk-2UHEJPSS.mjs → chunk-OAQYLTUN.mjs} +5 -5
- package/dist/cli/{chunk-F4H26PP6.js → chunk-P35YQAUC.js} +100 -100
- package/dist/cli/{chunk-D5LWYP2H.mjs → chunk-PJXPHUAR.mjs} +3 -3
- package/dist/cli/{chunk-45POZK3F.js → chunk-PXMCPEE2.js} +3 -3
- package/dist/cli/{chunk-AUR24RQB.mjs → chunk-QPOJLAFT.mjs} +2 -2
- package/dist/cli/{chunk-HHMO3CON.js → chunk-RLPPLS6A.js} +6 -6
- package/dist/cli/{chunk-Y4A6Y5EY.js → chunk-RWDYULX2.js} +7 -7
- package/dist/cli/{chunk-X5V6S5KI.mjs → chunk-T2CCLYHV.mjs} +5 -5
- package/dist/cli/{chunk-BRPUB6UA.js → chunk-UKSOIH2P.js} +5 -5
- package/dist/cli/{chunk-OMVBBAQP.mjs → chunk-VMCJKGZS.mjs} +2 -2
- package/dist/cli/{chunk-GZ7KYGYE.js → chunk-VVZ7JZMQ.js} +15 -15
- package/dist/cli/{chunk-ANPHEXTT.js → chunk-W47SXEWQ.js} +9 -9
- package/dist/cli/{chunk-ZRC52APB.mjs → chunk-W66GXHYR.mjs} +1 -1
- package/dist/cli/{chunk-36254433.js → chunk-XBO4ERH6.js} +3 -3
- package/dist/cli/{chunk-M23G33MH.js → chunk-XE66BGLB.js} +2 -2
- package/dist/cli/{chunk-WPGZ6V36.js → chunk-XX7TZM4N.js} +48 -48
- package/dist/cli/{chunk-UD6M2ZTY.js → chunk-Y2TK7OXN.js} +2 -2
- package/dist/cli/{concurrent-runs-help-H3SA7J6H.mjs → concurrent-runs-help-2MHLIUC6.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-ATT2GVTQ.js +22 -0
- package/dist/cli/{csv-ICXI7JAS.mjs → csv-J6SRBMOT.mjs} +4 -4
- package/dist/cli/{csv-6DEKR3QQ.js → csv-RYYDAC76.js} +13 -13
- package/dist/cli/{db-AG7INMLP.js → db-5QLH6QK5.js} +27 -27
- package/dist/cli/{db-VI7T5E6O.mjs → db-WK226TM7.mjs} +6 -6
- package/dist/cli/describe-Q27SRQWM.js +50 -0
- package/dist/cli/{describe-S6NFWWGK.mjs → describe-UBSCFPH5.mjs} +18 -18
- package/dist/cli/{executions-M5R5QHIA.js → executions-AGV5V7SD.js} +8 -8
- package/dist/cli/{executions-MK7H4Q2H.mjs → executions-XF5BNCFS.mjs} +6 -6
- package/dist/cli/{feedback-L3L4FEQL.js → feedback-3RDEZE2M.js} +14 -14
- package/dist/cli/{feedback-ZHATL2XF.mjs → feedback-LT3PDK72.mjs} +6 -6
- package/dist/cli/{git-W5DHNH2Q.mjs → git-7VBTCCBV.mjs} +5 -5
- package/dist/cli/git-BBTP3H7J.js +26 -0
- package/dist/cli/index.js +144 -144
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-73YSN2LI.mjs → integrations-E7QRWMKZ.mjs} +7 -7
- package/dist/cli/{integrations-IBWNO3YP.js → integrations-JP732FQB.js} +29 -29
- package/dist/cli/{legacy-noops-4LFZJTDX.mjs → legacy-noops-UFNQBPIT.mjs} +6 -6
- package/dist/cli/{legacy-noops-AE6DBYJM.js → legacy-noops-UTL4W5WE.js} +9 -9
- package/dist/cli/{mcp-BKL6M6OI.js → mcp-5X4XFB4V.js} +24 -24
- package/dist/cli/{mcp-E6PTSNDE.mjs → mcp-YHETA3AU.mjs} +4 -4
- package/dist/cli/{monitors-SW7ZCPPT.js → monitors-AN6KH4XY.js} +100 -100
- package/dist/cli/{monitors-MXJ27KQK.mjs → monitors-WFVZ42OQ.mjs} +7 -7
- package/dist/cli/{org-XJ44KZ5I.js → org-CN3XJZLA.js} +121 -121
- package/dist/cli/{org-HYAJ2MIK.mjs → org-OMDV7WDF.mjs} +6 -6
- package/dist/cli/{outcomes-PTXGG4BZ.js → outcomes-7HCZ6K3Q.js} +14 -14
- package/dist/cli/{outcomes-PUMAXRGD.mjs → outcomes-I4ZTG5ND.mjs} +6 -6
- package/dist/cli/{play-EPDZ3GDV.js → play-45VXZ57A.js} +336 -336
- package/dist/cli/{play-QN3X6IAE.mjs → play-TSNBSHGA.mjs} +19 -19
- package/dist/cli/{providers-JIN5UQ7Z.mjs → providers-4TB56ZLK.mjs} +6 -6
- package/dist/cli/{providers-GNJFGNDH.js → providers-RB3TT7AE.js} +9 -9
- package/dist/cli/{quickstart-4EBFHGB7.mjs → quickstart-XHZ3PG5I.mjs} +4 -4
- package/dist/cli/{quickstart-YH6NNC5I.js → quickstart-ZNDM6VUD.js} +6 -6
- package/dist/cli/{run-5467KBCP.mjs → run-7PY4G6GB.mjs} +23 -23
- package/dist/cli/{run-4DRF7KQJ.js → run-XNEJGAKV.js} +44 -44
- package/dist/cli/{search-ZERTOGH6.mjs → search-BG7KCIOG.mjs} +7 -7
- package/dist/cli/search-ZBU5GW4W.js +32 -0
- package/dist/cli/{search-output-OMNZN2LP.js → search-output-3ZBNTHGO.js} +6 -6
- package/dist/cli/{search-output-OAVJXRFO.mjs → search-output-TWKKP2BE.mjs} +4 -4
- package/dist/cli/{secrets-KAVDYB4P.mjs → secrets-AZZCE7E3.mjs} +6 -6
- package/dist/cli/{secrets-7XK2BGYX.js → secrets-FNR6MX6A.js} +15 -15
- package/dist/cli/sessions-GCY62GAW.js +23 -0
- package/dist/cli/{sessions-TNPI6XWB.mjs → sessions-ZAMKN3AF.mjs} +6 -6
- package/dist/cli/{settings-RQ3Z3JCM.js → settings-QGASFWV3.js} +85 -85
- package/dist/cli/{settings-KUABXRAJ.mjs → settings-WKWOOOI2.mjs} +12 -12
- package/dist/cli/{setup-TDOWNKYN.js → setup-KUZDCR3F.js} +49 -49
- package/dist/cli/{setup-6IX6BSS7.mjs → setup-U36W42LE.mjs} +9 -9
- package/dist/cli/{skills-Z6NBJ4KP.mjs → skills-25CSZQIK.mjs} +7 -7
- package/dist/cli/skills-43DHMLRW.js +37 -0
- package/dist/cli/{tools-LQKFWK7J.mjs → tools-4NZQ22AA.mjs} +17 -17
- package/dist/cli/tools-5BGKNMFU.js +57 -0
- package/dist/cli/{update-RUB4EIKW.mjs → update-CJYP36TG.mjs} +9 -9
- package/dist/cli/update-CUO2MTB6.js +37 -0
- package/dist/cli/{views-FFLXLAGC.js → views-76UIPWJD.js} +21 -21
- package/dist/cli/{views-D7WY5QPR.mjs → views-GYGE7FSV.mjs} +6 -6
- package/dist/cli/{workflow-BV2OTEQD.mjs → workflow-LZSWALZS.mjs} +7 -7
- package/dist/cli/{workflow-QW7QVODA.js → workflow-NCVXBATM.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +114 -114
- 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-GSDYP4ZN.js +0 -44
- package/dist/cli/concurrent-runs-help-PB7GT6F2.js +0 -22
- package/dist/cli/describe-LMHIG3DP.js +0 -50
- package/dist/cli/git-WYNCLDHD.js +0 -26
- package/dist/cli/search-B2KCWPUV.js +0 -32
- package/dist/cli/sessions-PUQURPPC.js +0 -23
- package/dist/cli/skills-AACRY2TV.js +0 -37
- package/dist/cli/tools-OTYA4722.js +0 -57
- package/dist/cli/update-JTGMI6OJ.js +0 -37
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkXX7TZM4Njs = require('./chunk-XX7TZM4N.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkHGQT6EGKjs = require('./chunk-HGQT6EGK.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkXBO4ERH6js = require('./chunk-XBO4ERH6.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkA7NKOXBVjs = require('./chunk-A7NKOXBV.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 = _chunkXBO4ERH6js.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, () => ( _chunkA7NKOXBVjs.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, _chunkXBO4ERH6js.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 = [..._chunkXX7TZM4Njs.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=${_chunkXX7TZM4Njs.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=${_chunkXX7TZM4Njs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkXX7TZM4Njs.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 = _chunkXX7TZM4Njs.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
|
+
`${_chunkXX7TZM4Njs.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(`${_chunkXX7TZM4Njs.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 = _chunkXBO4ERH6js.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
|
+
_chunkHGQT6EGKjs.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
|
+
_chunkHGQT6EGKjs.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
|
+
_chunkHGQT6EGKjs.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
|
+
_chunkHGQT6EGKjs.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 = _chunkXBO4ERH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
367
367
|
const catalog = {
|
|
368
|
-
skillNames: [...
|
|
369
|
-
version:
|
|
368
|
+
skillNames: [..._chunkXX7TZM4Njs.DEFAULT_SDK_SKILL_NAMES],
|
|
369
|
+
version: _chunkA7NKOXBVjs.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
|
+
_chunkHGQT6EGKjs.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)) && !_chunkXX7TZM4Njs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
381
|
+
_chunkHGQT6EGKjs.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, ..._chunkXX7TZM4Njs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
414
414
|
];
|
|
415
415
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
416
|
-
|
|
416
|
+
_chunkXBO4ERH6js.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 _chunkXX7TZM4Njs.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 _chunkXX7TZM4Njs.SkillsStateUnavailableError)) throw error;
|
|
434
|
+
_chunkHGQT6EGKjs.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
|
+
_chunkHGQT6EGKjs.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 ${_chunkXX7TZM4Njs.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
|
+
_chunkHGQT6EGKjs.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
|
+
_chunkHGQT6EGKjs.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: _chunkA7NKOXBVjs.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
|
+
_chunkXX7TZM4Njs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
_chunkHGQT6EGKjs.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 ${_chunkXX7TZM4Njs.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(_chunkXX7TZM4Njs.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
|
+
_chunkHGQT6EGKjs.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 _chunkXX7TZM4Njs.syncSdkSkillsIfNeeded.call(void 0, _chunkXBO4ERH6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
660
660
|
mode: "inline",
|
|
661
661
|
notices: "defer",
|
|
662
662
|
claim
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkUKSOIH2Pjs = require('./chunk-UKSOIH2P.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkHGQT6EGKjs = require('./chunk-HGQT6EGK.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkXBO4ERH6js = require('./chunk-XBO4ERH6.js');
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
var _commander = require('commander');
|
|
@@ -22,7 +22,7 @@ var _fs = require('fs');
|
|
|
22
22
|
var _path = require('path');
|
|
23
23
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
24
24
|
function lastSearchPath() {
|
|
25
|
-
return _path.join.call(void 0,
|
|
25
|
+
return _path.join.call(void 0, _chunkXBO4ERH6js.sdkCliStateDirPath.call(void 0, _chunkXBO4ERH6js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
26
26
|
}
|
|
27
27
|
function rememberSearchRef(searchRef) {
|
|
28
28
|
writeSearchRefs({ searchRef });
|
|
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
132
132
|
console.error("--summary-width must be an integer of at least 2.");
|
|
133
133
|
return 1;
|
|
134
134
|
}
|
|
135
|
-
const client = new (0,
|
|
135
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-3ZBNTHGO.js")));
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
157
157
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
158
158
|
if (!multiple) {
|
|
159
159
|
if (searchRef) rememberSearchRef(searchRef);
|
|
160
|
-
|
|
160
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, result, { json, text });
|
|
161
161
|
return 0;
|
|
162
162
|
}
|
|
163
163
|
searches.push({ ...result, query });
|
|
@@ -171,8 +171,8 @@ ${text}`);
|
|
|
171
171
|
}
|
|
172
172
|
} catch (error) {
|
|
173
173
|
if (!multiple) throw error;
|
|
174
|
-
const payload =
|
|
175
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
174
|
+
const payload = _chunkHGQT6EGKjs.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkHGQT6EGKjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
176
176
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
177
177
|
if (!json) {
|
|
178
178
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -184,7 +184,7 @@ Search failed.
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
rememberSearchRefsByTool(refs);
|
|
187
|
-
|
|
187
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7J473OJ5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4LMTY4RQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_MAX_RETRIES,
|
|
9
9
|
DEFAULT_SKILL_AGENTS,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
sdkCliStateDirPath,
|
|
19
19
|
skillsAgentPathSegment,
|
|
20
20
|
writeSdkSkillsLocalVersion
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-W66GXHYR.mjs";
|
|
22
22
|
import {
|
|
23
23
|
SDK_API_CONTRACT,
|
|
24
24
|
SDK_API_MAJOR,
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
deploymentProtectionHeaders,
|
|
27
27
|
detectAgentRuntime
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-CFLAGRWL.mjs";
|
|
29
29
|
import {
|
|
30
30
|
DeeplineError
|
|
31
31
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
32
32
|
import {
|
|
33
33
|
SDK_RELEASE
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-4YSJOSBG.mjs";
|
|
35
35
|
|
|
36
36
|
// src/compat.ts
|
|
37
37
|
import { randomUUID } from "crypto";
|