deepline 0.3.411 → 0.3.413
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/sdk/src/types.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +11 -11
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +0 -1
- package/dist/cli/{auth-YD6ZTMB2.mjs → auth-3D4KKBVE.mjs} +4 -4
- package/dist/cli/auth-5NDVMF4F.js +40 -0
- package/dist/cli/{billing-ZT46GV4C.mjs → billing-2EOBIABD.mjs} +4 -4
- package/dist/cli/{billing-2L3MOB42.js → billing-EJQFNJSI.js} +73 -73
- package/dist/cli/{chunk-FRVPOXGB.js → chunk-2T2JTZT2.js} +79 -79
- package/dist/cli/{chunk-XJD6LZCO.mjs → chunk-4GEA7QZY.mjs} +1 -1
- package/dist/cli/{chunk-7DSMMCXP.js → chunk-5PE74ZQ4.js} +35 -35
- package/dist/cli/{chunk-4O4WNFFC.js → chunk-7GGLDFIU.js} +16 -16
- package/dist/cli/{chunk-IR3AKJAY.mjs → chunk-CUY5U4QK.mjs} +3 -3
- package/dist/cli/{chunk-M6OASCVL.mjs → chunk-D65C5V3L.mjs} +2 -2
- package/dist/cli/{chunk-JYHSEGRM.js → chunk-EGZUJT3T.js} +8 -8
- package/dist/cli/{chunk-OGSXENOF.mjs → chunk-GH4FIWEU.mjs} +1 -1
- package/dist/cli/{chunk-LWBM5FFL.js → chunk-GNDHF3ZI.js} +50 -50
- package/dist/cli/{chunk-RFES6Q2J.mjs → chunk-HCBTS7KU.mjs} +8 -8
- package/dist/cli/{chunk-2WUY3VNK.js → chunk-HNL6FVEL.js} +2 -2
- package/dist/cli/{chunk-TPFD4F5S.js → chunk-ID4QO6ME.js} +52 -52
- package/dist/cli/{chunk-5IGDNBG7.js → chunk-JXNCP2M5.js} +26 -26
- package/dist/cli/{chunk-NQWIZ5PZ.js → chunk-KSJS5F57.js} +20 -20
- package/dist/cli/{chunk-OZSC6CEW.js → chunk-LF5WZGBG.js} +4 -4
- package/dist/cli/{chunk-RMINBDYY.js → chunk-NCWUFF6U.js} +1 -1
- package/dist/cli/{chunk-5LRWWMRV.mjs → chunk-OT5HUMKM.mjs} +5 -5
- package/dist/cli/{chunk-E52TKKVI.mjs → chunk-OXUDZTF3.mjs} +1 -1
- package/dist/cli/{chunk-UAEVKAUR.mjs → chunk-PDW33FLZ.mjs} +1 -1
- package/dist/cli/{chunk-U5AQKE3T.js → chunk-QR4SD7RI.js} +10 -10
- package/dist/cli/{chunk-6AUE6JXY.js → chunk-REVPPQFK.js} +6 -6
- package/dist/cli/{chunk-G43JLBDE.mjs → chunk-V5L3WCSG.mjs} +3 -3
- package/dist/cli/{chunk-BJV3VSKE.mjs → chunk-VHBCEFS7.mjs} +1 -1
- package/dist/cli/{chunk-IPGV6VFA.mjs → chunk-VTL3NDUG.mjs} +3 -3
- package/dist/cli/{chunk-E4KBNNNB.mjs → chunk-VZ57YWB6.mjs} +1 -1
- package/dist/cli/{chunk-XAB47ZRV.mjs → chunk-WDQYMXDK.mjs} +4 -4
- package/dist/cli/{chunk-2NI6DHN7.js → chunk-X5FXFSHJ.js} +2 -2
- package/dist/cli/{chunk-JQMZUWNM.mjs → chunk-Y3MHIAMV.mjs} +2 -2
- package/dist/cli/{chunk-VGHWJL4W.js → chunk-YAM52S2K.js} +8 -8
- package/dist/cli/{chunk-4BA6ATHA.mjs → chunk-YCPKC54Z.mjs} +2 -2
- package/dist/cli/{chunk-ZHWBU36H.js → chunk-ZDY367QD.js} +6 -6
- package/dist/cli/{chunk-PO2VU6WV.mjs → chunk-ZGVFEBX7.mjs} +2 -2
- package/dist/cli/{csv-BKNRRW7D.mjs → csv-3GKD6ODW.mjs} +3 -3
- package/dist/cli/{csv-SVDP2EU7.js → csv-FVLNH7XW.js} +12 -12
- package/dist/cli/{db-LU4KLRM6.mjs → db-TFECIZXA.mjs} +4 -4
- package/dist/cli/{db-OQ6S7TTZ.js → db-YBLULEQY.js} +25 -25
- package/dist/cli/{describe-U4KOGDRA.mjs → describe-4CGSYQ6N.mjs} +12 -12
- package/dist/cli/{describe-45TGETKR.js → describe-Y4XESTCE.js} +16 -16
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/{executions-VZN56VRC.js → executions-F7S72KOK.js} +6 -6
- package/dist/cli/{executions-2GAAUXLA.mjs → executions-GSXZKYBA.mjs} +4 -4
- package/dist/cli/{feedback-NS76B5GU.js → feedback-GCCC2YTL.js} +7 -7
- package/dist/cli/{feedback-XW5IWA5R.mjs → feedback-PMCZCNOK.mjs} +3 -3
- package/dist/cli/git-NOKHD2LT.js +24 -0
- package/dist/cli/{git-CLI66XP6.mjs → git-RNPGVB5K.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-ODDOMLBL.mjs → legacy-noops-FNJK7BKV.mjs} +4 -4
- package/dist/cli/{legacy-noops-HCFB3ZOV.js → legacy-noops-J4CNOAAZ.js} +7 -7
- package/dist/cli/{monitors-7WXQ7JFT.js → monitors-IRPUBNV3.js} +84 -84
- package/dist/cli/{monitors-ZXX456TE.mjs → monitors-LZDR7Y5R.mjs} +4 -4
- package/dist/cli/{org-YUN3TLNP.mjs → org-CG5H5PYW.mjs} +4 -4
- package/dist/cli/{org-YLX5PHBQ.js → org-GMQQV4B4.js} +64 -64
- package/dist/cli/{play-LL73A7EP.mjs → play-AQJXC3UT.mjs} +15 -13
- package/dist/cli/{play-YGOXL52D.js → play-JGBMKAVZ.js} +288 -286
- package/dist/cli/{providers-RHCIU2PX.js → providers-6W2LUEB2.js} +7 -7
- package/dist/cli/{providers-35QSAUHL.mjs → providers-TU5QOBJL.mjs} +4 -4
- package/dist/cli/{quickstart-6BN3LCZH.mjs → quickstart-NIED5SQP.mjs} +3 -3
- package/dist/cli/{quickstart-ORMM4NRK.js → quickstart-XO4LNJIB.js} +5 -5
- package/dist/cli/search-46BMUNKI.js +30 -0
- package/dist/cli/{search-GAERWLSE.mjs → search-P322OCZS.mjs} +5 -5
- package/dist/cli/{secrets-FCL5PALY.mjs → secrets-36GD5ORQ.mjs} +4 -4
- package/dist/cli/{secrets-3AFCTGT7.js → secrets-5JX66PSU.js} +13 -13
- package/dist/cli/{sessions-RSSL7I7O.mjs → sessions-EU5EGYQA.mjs} +4 -4
- package/dist/cli/{sessions-3OEHEQG7.js → sessions-TRPCS2XC.js} +5 -5
- package/dist/cli/{settings-RX5K4I7H.js → settings-2GBXXYEC.js} +75 -75
- package/dist/cli/{settings-GE4NRE7Y.mjs → settings-XZCFPMJK.mjs} +8 -8
- package/dist/cli/{setup-N3ZNAEL5.js → setup-3R62S2HC.js} +42 -42
- package/dist/cli/{setup-X3RXGG4F.mjs → setup-62YVBUGJ.mjs} +7 -7
- package/dist/cli/{skills-5JEAJBDE.mjs → skills-GCRGKFZZ.mjs} +5 -5
- package/dist/cli/skills-GVWVI3WO.js +29 -0
- package/dist/cli/{tools-JOKUWEBZ.mjs → tools-PZ5BRPG4.mjs} +12 -12
- package/dist/cli/tools-VFSX2OY3.js +44 -0
- package/dist/cli/update-KHJC44FI.js +31 -0
- package/dist/cli/{update-UBHEVFR3.mjs → update-Y2VCL75Z.mjs} +7 -7
- package/dist/cli/{workflow-FR6EXAXF.mjs → workflow-THUIMN33.mjs} +5 -5
- package/dist/cli/{workflow-SZAVOHN6.js → workflow-ZSV2DPQ3.js} +15 -15
- package/dist/{client-74k4IPh6.d.mts → client-D2A39edb.d.mts} +1 -1
- package/dist/{client-C1IK1f8c.d.ts → client-D6w0_gN1.d.ts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +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/package.json +1 -1
- package/dist/cli/auth-M7TBLW55.js +0 -40
- package/dist/cli/git-VGYRGFEN.js +0 -24
- package/dist/cli/search-EWDMUPHR.js +0 -30
- package/dist/cli/skills-VAAQVEQC.js +0 -29
- package/dist/cli/tools-BYYOT2DU.js +0 -44
- package/dist/cli/update-36G4ZD7B.js +0 -31
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkID4QO6MEjs = require('./chunk-ID4QO6ME.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkZDY367QDjs = require('./chunk-ZDY367QD.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ var _chunkZHWBU36Hjs = require('./chunk-ZHWBU36H.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkLF5WZGBGjs = require('./chunk-LF5WZGBG.js');
|
|
26
26
|
|
|
27
27
|
// src/cli/commands/skills.ts
|
|
28
28
|
var _child_process = require('child_process');
|
|
@@ -75,7 +75,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
75
75
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
76
76
|
}
|
|
77
77
|
function resolveLocalRoot() {
|
|
78
|
-
const target =
|
|
78
|
+
const target = _chunkLF5WZGBGjs.resolveProjectPinTarget.call(void 0, );
|
|
79
79
|
if (!target.ok) {
|
|
80
80
|
throw new Error(
|
|
81
81
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -86,7 +86,7 @@ function resolveLocalRoot() {
|
|
|
86
86
|
return target.dir;
|
|
87
87
|
}
|
|
88
88
|
function detectSkillsAgents(input) {
|
|
89
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
89
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkLF5WZGBGjs.detectAgentRuntime.call(void 0, )));
|
|
90
90
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
91
91
|
if (knownAgent) return [knownAgent];
|
|
92
92
|
const roots = [
|
|
@@ -101,11 +101,11 @@ function detectSkillsAgents(input) {
|
|
|
101
101
|
return detected.length > 0 ? detected : ["*"];
|
|
102
102
|
}
|
|
103
103
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
104
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
104
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkLF5WZGBGjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
105
105
|
}
|
|
106
106
|
function buildSkillsPlan(input) {
|
|
107
107
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
108
|
-
const legacyNames = [...
|
|
108
|
+
const legacyNames = [..._chunkID4QO6MEjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
109
109
|
(a, b) => a.localeCompare(b)
|
|
110
110
|
);
|
|
111
111
|
return {
|
|
@@ -119,7 +119,7 @@ function buildSkillsPlan(input) {
|
|
|
119
119
|
args: [
|
|
120
120
|
"exec",
|
|
121
121
|
"--yes",
|
|
122
|
-
`--package=${
|
|
122
|
+
`--package=${_chunkID4QO6MEjs.SKILLS_NPX_PACKAGE}`,
|
|
123
123
|
"--",
|
|
124
124
|
"skills",
|
|
125
125
|
"remove",
|
|
@@ -135,11 +135,11 @@ function buildSkillsPlan(input) {
|
|
|
135
135
|
args: [
|
|
136
136
|
"exec",
|
|
137
137
|
"--yes",
|
|
138
|
-
`--package=${
|
|
138
|
+
`--package=${_chunkID4QO6MEjs.SKILLS_NPX_PACKAGE}`,
|
|
139
139
|
"--",
|
|
140
140
|
"skills",
|
|
141
141
|
"add",
|
|
142
|
-
|
|
142
|
+
_chunkID4QO6MEjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
143
143
|
"--agent",
|
|
144
144
|
...input.agents,
|
|
145
145
|
...scopeArgs,
|
|
@@ -176,7 +176,7 @@ function readSkillsInstallState(path) {
|
|
|
176
176
|
}
|
|
177
177
|
function runProcess(command, args, cwd) {
|
|
178
178
|
return new Promise((resolve, reject) => {
|
|
179
|
-
const plan =
|
|
179
|
+
const plan = _chunkID4QO6MEjs.resolveShellSpawn.call(void 0,
|
|
180
180
|
command,
|
|
181
181
|
args,
|
|
182
182
|
process.platform,
|
|
@@ -198,7 +198,7 @@ function runProcess(command, args, cwd) {
|
|
|
198
198
|
child.kill("SIGTERM");
|
|
199
199
|
reject(
|
|
200
200
|
new Error(
|
|
201
|
-
`${
|
|
201
|
+
`${_chunkID4QO6MEjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
202
202
|
)
|
|
203
203
|
);
|
|
204
204
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -209,7 +209,7 @@ function runProcess(command, args, cwd) {
|
|
|
209
209
|
child.once("close", (code) => {
|
|
210
210
|
clearTimeout(timeout);
|
|
211
211
|
if (code && stderr.trim()) {
|
|
212
|
-
process.stderr.write(`${
|
|
212
|
+
process.stderr.write(`${_chunkID4QO6MEjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
213
213
|
`);
|
|
214
214
|
}
|
|
215
215
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -223,7 +223,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
223
223
|
scope = normalizeScope(options.scope);
|
|
224
224
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
225
225
|
} catch (error) {
|
|
226
|
-
|
|
226
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0,
|
|
227
227
|
{
|
|
228
228
|
ok: false,
|
|
229
229
|
status: "failed",
|
|
@@ -235,22 +235,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
235
235
|
);
|
|
236
236
|
return 2;
|
|
237
237
|
}
|
|
238
|
-
const baseUrl =
|
|
238
|
+
const baseUrl = _chunkLF5WZGBGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
239
239
|
const catalog = {
|
|
240
|
-
skillNames: [...
|
|
241
|
-
version:
|
|
240
|
+
skillNames: [..._chunkID4QO6MEjs.DEFAULT_SDK_SKILL_NAMES],
|
|
241
|
+
version: _chunkLF5WZGBGjs.SDK_VERSION
|
|
242
242
|
};
|
|
243
243
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
244
244
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
245
245
|
if (options.dryRun) {
|
|
246
|
-
|
|
246
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0,
|
|
247
247
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
248
248
|
{ json: options.json }
|
|
249
249
|
);
|
|
250
250
|
return 0;
|
|
251
251
|
}
|
|
252
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
253
|
-
|
|
252
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkID4QO6MEjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
253
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0,
|
|
254
254
|
{
|
|
255
255
|
ok: true,
|
|
256
256
|
status: "current",
|
|
@@ -282,10 +282,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
282
282
|
}
|
|
283
283
|
if (scope === "local" && root) {
|
|
284
284
|
const managedNames = [
|
|
285
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
285
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkID4QO6MEjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
286
286
|
];
|
|
287
287
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
288
|
-
|
|
288
|
+
_chunkLF5WZGBGjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
289
289
|
".deepline/",
|
|
290
290
|
...agentRoots.flatMap(
|
|
291
291
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -294,7 +294,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
294
294
|
}
|
|
295
295
|
let lease;
|
|
296
296
|
try {
|
|
297
|
-
lease = scope === "global" ? await
|
|
297
|
+
lease = scope === "global" ? await _chunkID4QO6MEjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
298
298
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
299
299
|
onWait: () => process.stderr.write(
|
|
300
300
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -302,8 +302,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
302
302
|
}) : { release: () => {
|
|
303
303
|
} };
|
|
304
304
|
} catch (error) {
|
|
305
|
-
if (!(error instanceof
|
|
306
|
-
|
|
305
|
+
if (!(error instanceof _chunkID4QO6MEjs.SkillsStateUnavailableError)) throw error;
|
|
306
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0,
|
|
307
307
|
{
|
|
308
308
|
ok: false,
|
|
309
309
|
status: "failed",
|
|
@@ -319,7 +319,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
319
319
|
return 5;
|
|
320
320
|
}
|
|
321
321
|
if (!lease) {
|
|
322
|
-
|
|
322
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
ok: false,
|
|
325
325
|
status: "failed",
|
|
@@ -328,7 +328,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
328
328
|
scope,
|
|
329
329
|
agents,
|
|
330
330
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
331
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
331
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkID4QO6MEjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
332
332
|
},
|
|
333
333
|
{ json: options.json }
|
|
334
334
|
);
|
|
@@ -365,7 +365,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
365
365
|
throw new Error("Could not install the current Deepline skills.");
|
|
366
366
|
}
|
|
367
367
|
} catch (error) {
|
|
368
|
-
|
|
368
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0,
|
|
369
369
|
{
|
|
370
370
|
ok: false,
|
|
371
371
|
status: "failed",
|
|
@@ -404,7 +404,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
404
404
|
{
|
|
405
405
|
schemaVersion: 1,
|
|
406
406
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
407
|
-
cliVersion:
|
|
407
|
+
cliVersion: _chunkLF5WZGBGjs.SDK_VERSION,
|
|
408
408
|
scope,
|
|
409
409
|
agents,
|
|
410
410
|
skillsVersion: plan.version,
|
|
@@ -417,9 +417,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
417
417
|
"utf8"
|
|
418
418
|
);
|
|
419
419
|
if (scope === "global") {
|
|
420
|
-
|
|
420
|
+
_chunkID4QO6MEjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
421
421
|
}
|
|
422
|
-
|
|
422
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0,
|
|
423
423
|
{
|
|
424
424
|
ok: true,
|
|
425
425
|
status: "complete",
|
|
@@ -450,7 +450,7 @@ function registerSkillsCommand(program) {
|
|
|
450
450
|
"after",
|
|
451
451
|
`
|
|
452
452
|
Notes:
|
|
453
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
453
|
+
This command reinstalls current Deepline-managed skills using ${_chunkID4QO6MEjs.SKILLS_NPX_PACKAGE},
|
|
454
454
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
455
455
|
persistent project.
|
|
456
456
|
|
|
@@ -462,13 +462,13 @@ Examples:
|
|
|
462
462
|
).action(async (options) => {
|
|
463
463
|
process.exitCode = await runSkillsCommand(options);
|
|
464
464
|
});
|
|
465
|
-
program.command(
|
|
465
|
+
program.command(_chunkID4QO6MEjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
466
466
|
"--claim <token>",
|
|
467
467
|
"Owner token of the leases this child was started for."
|
|
468
468
|
).action(async (options) => {
|
|
469
469
|
const claim = _optionalChain([options, 'access', _ => _.claim, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]);
|
|
470
470
|
if (!claim) {
|
|
471
|
-
|
|
471
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0,
|
|
472
472
|
{
|
|
473
473
|
ok: false,
|
|
474
474
|
status: "failed",
|
|
@@ -481,7 +481,7 @@ Examples:
|
|
|
481
481
|
process.exitCode = 2;
|
|
482
482
|
return;
|
|
483
483
|
}
|
|
484
|
-
await
|
|
484
|
+
await _chunkID4QO6MEjs.syncSdkSkillsIfNeeded.call(void 0, _chunkLF5WZGBGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
485
485
|
mode: "inline",
|
|
486
486
|
notices: "defer",
|
|
487
487
|
claim
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkX5FXFSHJjs = require('./chunk-X5FXFSHJ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5PE74ZQ4js = require('./chunk-5PE74ZQ4.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkID4QO6MEjs = require('./chunk-ID4QO6ME.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkZDY367QDjs = require('./chunk-ZDY367QD.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkLF5WZGBGjs = require('./chunk-LF5WZGBG.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkID4QO6MEjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkX5FXFSHJjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkX5FXFSHJjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkLF5WZGBGjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkID4QO6MEjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkLF5WZGBGjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunk5PE74ZQ4js.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isJsonOutputMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4GEA7QZY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
sdkCliStateDirPath,
|
|
18
18
|
skillsAgentPathSegment,
|
|
19
19
|
writeSdkSkillsLocalVersion
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OXUDZTF3.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DeeplineError
|
|
23
23
|
} from "./chunk-E4IXDAZI.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_RELEASE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GH4FIWEU.mjs";
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4GEA7QZY.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OXUDZTF3.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQR4SD7RIjs = require('./chunk-QR4SD7RI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkZDY367QDjs = require('./chunk-ZDY367QD.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkLF5WZGBGjs = require('./chunk-LF5WZGBG.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
|
|
|
5713
5713
|
var _path = require('path');
|
|
5714
5714
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
5715
5715
|
function lastSearchPath() {
|
|
5716
|
-
return _path.join.call(void 0,
|
|
5716
|
+
return _path.join.call(void 0, _chunkLF5WZGBGjs.sdkCliStateDirPath.call(void 0, _chunkLF5WZGBGjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
5717
5717
|
}
|
|
5718
5718
|
function rememberSearchRef(searchRef) {
|
|
5719
5719
|
try {
|
|
@@ -5859,7 +5859,7 @@ function searchRow(item) {
|
|
|
5859
5859
|
}
|
|
5860
5860
|
function renderSearchResults(result) {
|
|
5861
5861
|
if (result.results.length === 0)
|
|
5862
|
-
return
|
|
5862
|
+
return _chunkZDY367QDjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5863
5863
|
const rows = result.results.map(searchRow);
|
|
5864
5864
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5865
5865
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5890,7 +5890,7 @@ function renderSearchResults(result) {
|
|
|
5890
5890
|
actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
|
|
5891
5891
|
};
|
|
5892
5892
|
const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
|
|
5893
|
-
${
|
|
5893
|
+
${_chunkZDY367QDjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5894
5894
|
const notes = rows.flatMap(
|
|
5895
5895
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5896
5896
|
);
|
|
@@ -5967,7 +5967,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5967
5967
|
console.error(USAGE);
|
|
5968
5968
|
return 1;
|
|
5969
5969
|
}
|
|
5970
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
5970
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkQR4SD7RIjs.DeeplineClient)().search({
|
|
5971
5971
|
query,
|
|
5972
5972
|
types,
|
|
5973
5973
|
exclude,
|
|
@@ -5981,7 +5981,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5981
5981
|
});
|
|
5982
5982
|
if (searchRef) rememberSearchRef(searchRef);
|
|
5983
5983
|
pointAtDescribe(result);
|
|
5984
|
-
|
|
5984
|
+
_chunkZDY367QDjs.printCommandEnvelope.call(void 0, result, {
|
|
5985
5985
|
json: options.json === true,
|
|
5986
5986
|
text: renderSearchResults(result)
|
|
5987
5987
|
});
|
|
@@ -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.413",
|
|
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."
|