deepline 0.3.490 → 0.3.492
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/client-core.ts +6 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +4 -1
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +5 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +293 -110
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +104 -2
- package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +7 -2
- package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +4 -0
- package/dist/bundling-sources/shared_libs/product-notifications/content.ts +13 -0
- package/dist/bundling-sources/shared_libs/product-notifications/email.ts +49 -10
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +22 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +6 -1
- package/dist/cli/{auth-RL6LOZGC.mjs → auth-4I6QY5WX.mjs} +5 -5
- package/dist/cli/auth-7BCLZU6K.js +43 -0
- package/dist/cli/{billing-LIDDSOSY.js → billing-2H4GOJZY.js} +79 -79
- package/dist/cli/{billing-33THO76F.mjs → billing-4F6L4JSI.mjs} +6 -6
- package/dist/cli/{chunk-TVZJ6XWM.mjs → chunk-3BRDP4UP.mjs} +1 -1
- package/dist/cli/{chunk-FPYESYBO.js → chunk-3IBKEOL4.js} +4 -4
- package/dist/cli/{chunk-B7MPY7WH.js → chunk-3TISK5RQ.js} +6 -6
- package/dist/cli/{chunk-XSGJKXMP.js → chunk-42Z6VC2Q.js} +2 -2
- package/dist/cli/{chunk-2HYJU4LJ.mjs → chunk-4GJIJHRQ.mjs} +1 -1
- package/dist/cli/{chunk-63TNO23X.js → chunk-4RB74KJX.js} +10 -10
- package/dist/cli/{chunk-MBQZMHE6.mjs → chunk-6YO4OJPM.mjs} +4 -4
- package/dist/cli/{chunk-YYN2O43C.js → chunk-B2JE3HD6.js} +3 -3
- package/dist/cli/{chunk-Y2KHSQEF.js → chunk-BDUFZSUL.js} +8 -8
- package/dist/cli/{chunk-EPQZ42PY.js → chunk-DJOLMS2A.js} +1 -1
- package/dist/cli/{chunk-27IBWHR5.mjs → chunk-DVGCPOEA.mjs} +4 -4
- package/dist/cli/{chunk-PVMN4OE2.js → chunk-E47VAVAR.js} +5 -5
- package/dist/cli/{chunk-Z7W6VJFN.mjs → chunk-EANFUHRM.mjs} +1 -1
- package/dist/cli/{chunk-UQXHBCHU.js → chunk-EFFHRXKB.js} +2 -2
- package/dist/cli/{chunk-J5HMAZ34.mjs → chunk-F6EQWY4E.mjs} +2 -2
- package/dist/cli/{chunk-MEYQOZPF.mjs → chunk-FFOJRD53.mjs} +5 -2
- package/dist/cli/{chunk-QC6QUFKY.js → chunk-FPLN7PHP.js} +5 -5
- package/dist/cli/{chunk-QWJZSPCV.mjs → chunk-GDSZWTJK.mjs} +10 -10
- package/dist/cli/{chunk-QZPJWFGD.js → chunk-HFEJ7JJT.js} +26 -26
- package/dist/cli/{chunk-IFGBL3US.js → chunk-JHBRJDUC.js} +7 -7
- package/dist/cli/{chunk-WNVZV6VK.js → chunk-JJAHWKJ2.js} +53 -53
- package/dist/cli/{chunk-LQIKW55V.mjs → chunk-LCCFGSV7.mjs} +2 -2
- package/dist/cli/{chunk-CB7IFKXN.mjs → chunk-MJFVF5AW.mjs} +2 -2
- package/dist/cli/{chunk-CSSOP7XG.mjs → chunk-MPITIXW4.mjs} +1 -1
- package/dist/cli/{chunk-JSYCPTG6.mjs → chunk-MQ2LQOAM.mjs} +3 -3
- package/dist/cli/{chunk-FDYCUA7A.js → chunk-NBL6JMIY.js} +16 -16
- package/dist/cli/{chunk-TCBYQX5N.js → chunk-NF7NUKWF.js} +37 -37
- package/dist/cli/{chunk-HHGAY2A4.js → chunk-O2FB42N2.js} +53 -53
- package/dist/cli/{chunk-OFCP66VS.mjs → chunk-O65HDVA7.mjs} +2 -2
- package/dist/cli/{chunk-LZ37B62K.js → chunk-OGNIB64W.js} +3 -3
- package/dist/cli/{chunk-3M5VPIRL.mjs → chunk-OKHBAAJG.mjs} +2 -2
- package/dist/cli/{chunk-UTKNSD6T.js → chunk-OTDX4A4W.js} +21 -21
- package/dist/cli/{chunk-V47SUOAE.mjs → chunk-OTUT3XTX.mjs} +4 -4
- package/dist/cli/{chunk-JC2M6XG2.mjs → chunk-PIC6M4X3.mjs} +1 -1
- package/dist/cli/{chunk-L7QSZAF6.js → chunk-Q3CCCTRQ.js} +9 -9
- package/dist/cli/{chunk-MDKAPUN2.mjs → chunk-R5MP3CIY.mjs} +2 -2
- package/dist/cli/{chunk-NRM5OWH2.mjs → chunk-RC366IJS.mjs} +4 -4
- package/dist/cli/{chunk-SGG3TERP.js → chunk-SE23YSBK.js} +3 -3
- package/dist/cli/{chunk-6TTPAGNX.js → chunk-TVUE4CPW.js} +122 -119
- package/dist/cli/{chunk-PIENQTDE.mjs → chunk-UUH4GQRL.mjs} +1 -1
- package/dist/cli/{chunk-YPUDIEZX.js → chunk-W4FEX5ZF.js} +94 -94
- package/dist/cli/{chunk-BL5Q5JY7.mjs → chunk-Y7QCMOGZ.mjs} +5 -5
- package/dist/cli/{chunk-7W53Y4VH.mjs → chunk-YOCEY4EI.mjs} +5 -5
- package/dist/cli/{chunk-JTYKW3UL.mjs → chunk-YVOYZPMY.mjs} +2 -2
- package/dist/cli/{chunk-A3D677RX.mjs → chunk-ZCKUNXXR.mjs} +1 -1
- package/dist/cli/{chunk-E26477MJ.js → chunk-ZDTPSVGF.js} +7 -7
- package/dist/cli/{csv-PLJNQPLE.js → csv-JGJNDRSA.js} +13 -13
- package/dist/cli/{csv-TELSH4ND.mjs → csv-VGXGV7YM.mjs} +4 -4
- package/dist/cli/{db-GISAU665.mjs → db-OYG27ZBM.mjs} +6 -6
- package/dist/cli/{db-QDJ6GWF5.js → db-W52WJ6E5.js} +27 -27
- package/dist/cli/{describe-F4K54VXB.mjs → describe-FIXCRO5N.mjs} +17 -17
- package/dist/cli/describe-G3O6OUBG.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-3QE7MRBG.mjs → executions-EVE4KUGL.mjs} +6 -6
- package/dist/cli/{executions-VKUTKQNN.js → executions-LAJHZGPY.js} +8 -8
- package/dist/cli/{feedback-JU7PJGDL.mjs → feedback-75QB7KVG.mjs} +4 -4
- package/dist/cli/{feedback-HH5AUYLA.js → feedback-ZABCN7RT.js} +8 -8
- package/dist/cli/git-QBAR46NW.js +25 -0
- package/dist/cli/{git-ACXH7K7D.mjs → git-QIFEYQGY.mjs} +5 -5
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-NRPYJZOP.js → legacy-noops-2TBIAMCM.js} +8 -8
- package/dist/cli/{legacy-noops-IOAZ3YJ2.mjs → legacy-noops-PNTWBBGY.mjs} +5 -5
- package/dist/cli/{monitors-PMQUOIOI.mjs → monitors-LOHUYJEI.mjs} +7 -7
- package/dist/cli/{monitors-4SKMAAMR.js → monitors-UKBOEGBS.js} +91 -91
- package/dist/cli/{org-WJM7X6WB.js → org-E7A6QLBW.js} +72 -72
- package/dist/cli/{org-XNT3W6OU.mjs → org-JRUKUOUF.mjs} +6 -6
- package/dist/cli/{pages-WXY4GGZG.js → pages-EUDFFLLD.js} +17 -17
- package/dist/cli/{pages-Y3JKBS4B.mjs → pages-K76HA473.mjs} +6 -6
- package/dist/cli/{play-NPWWAQYK.mjs → play-DG2N66SV.mjs} +19 -18
- package/dist/cli/{play-NKSRPIAV.js → play-UWHNUJRA.js} +314 -313
- package/dist/cli/{providers-VNPJHXK5.js → providers-DZX6TTC6.js} +9 -9
- package/dist/cli/{providers-CUIKFE6F.mjs → providers-RUTTPUZD.mjs} +6 -6
- package/dist/cli/{quickstart-PJYPKFZI.mjs → quickstart-RGZZN2YE.mjs} +4 -4
- package/dist/cli/{quickstart-6OTS2HDR.js → quickstart-U4NMD7KX.js} +6 -6
- package/dist/cli/{run-2DLJBYFC.js → run-5UNF4FHG.js} +36 -36
- package/dist/cli/{run-AGX3EUK4.mjs → run-MOJWQYFQ.mjs} +22 -22
- package/dist/cli/search-3DAEJL6S.js +32 -0
- package/dist/cli/{search-DVIEJ2UQ.mjs → search-5B3ZDU7H.mjs} +7 -7
- package/dist/cli/{search-output-TXSIPSPS.mjs → search-output-QS4IWWHA.mjs} +4 -4
- package/dist/cli/{search-output-PFLNDCA7.js → search-output-VQWJS3FN.js} +6 -6
- package/dist/cli/{secrets-O5OQTFVD.js → secrets-S3PJMEAC.js} +15 -15
- package/dist/cli/{secrets-OAGXFXEX.mjs → secrets-V5XVDBIS.mjs} +6 -6
- package/dist/cli/{sessions-GBR5PGB6.mjs → sessions-5V3X24XI.mjs} +5 -5
- package/dist/cli/{sessions-WT7P3F73.js → sessions-Y5QMEZ3D.js} +6 -6
- package/dist/cli/{settings-U7UNDUDB.js → settings-3U6RRO5F.js} +78 -78
- package/dist/cli/{settings-KGNBIFOU.mjs → settings-LHZYY5PT.mjs} +11 -11
- package/dist/cli/{setup-PYWSU4YM.mjs → setup-AJLWXYAN.mjs} +9 -9
- package/dist/cli/{setup-4MZNDFKM.js → setup-MLLIGO2S.js} +49 -49
- package/dist/cli/{skills-7Y6OBM7Z.mjs → skills-5O2MUWKK.mjs} +7 -7
- package/dist/cli/skills-BBLIML5M.js +36 -0
- package/dist/cli/{tools-O7L435CR.mjs → tools-PWNMI5CD.mjs} +16 -16
- package/dist/cli/tools-X5SQXUMM.js +57 -0
- package/dist/cli/update-AEJ2ZSZQ.js +34 -0
- package/dist/cli/{update-SPHIBY5L.mjs → update-SXT4QW7S.mjs} +9 -9
- package/dist/cli/{workflow-GTDKPIEV.js → workflow-3WTF5IYT.js} +17 -17
- package/dist/cli/{workflow-ZRYO5J3K.mjs → workflow-KPRM6ARO.mjs} +7 -7
- package/dist/{client-D3hVHXjK.d.ts → client-Cb1ej1Vr.d.ts} +1 -1
- package/dist/{client-core-DUdVqO_m.d.ts → client-core-BmVs6SP0.d.ts} +72 -3
- package/dist/{client-core-BZoSMKcY.d.mts → client-core-CoBTvsXG.d.mts} +72 -3
- package/dist/{client-BkbDHRIg.d.mts → client-vWpbLNCB.d.mts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +102 -102
- 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/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-AW34RGV5.js +0 -43
- package/dist/cli/describe-R6NVISAS.js +0 -50
- package/dist/cli/git-CXRU4CRW.js +0 -25
- package/dist/cli/search-Y7VFEFJJ.js +0 -32
- package/dist/cli/skills-BQC2323O.js +0 -36
- package/dist/cli/tools-732SZ4KV.js +0 -57
- package/dist/cli/update-PCYIUORM.js +0 -34
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkO2FB42N2js = require('./chunk-O2FB42N2.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkZDTPSVGFjs = require('./chunk-ZDTPSVGF.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkB2JE3HD6js = require('./chunk-B2JE3HD6.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk3IBKEOL4js = require('./chunk-3IBKEOL4.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunk4OLXMJ2Ljs = require('./chunk-4OLXMJ2L.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 = _chunkB2JE3HD6js.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, () => ( _chunk3IBKEOL4js.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, _chunkB2JE3HD6js.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 = [..._chunkO2FB42N2js.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=${_chunkO2FB42N2js.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=${_chunkO2FB42N2js.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkO2FB42N2js.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 = _chunkO2FB42N2js.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -268,7 +268,7 @@ function runProcess(command, args, cwd) {
|
|
|
268
268
|
child.kill("SIGTERM");
|
|
269
269
|
reject(
|
|
270
270
|
new Error(
|
|
271
|
-
`${
|
|
271
|
+
`${_chunkO2FB42N2js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
272
272
|
)
|
|
273
273
|
);
|
|
274
274
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -279,7 +279,7 @@ function runProcess(command, args, cwd) {
|
|
|
279
279
|
child.once("close", (code) => {
|
|
280
280
|
clearTimeout(timeout);
|
|
281
281
|
if (code && stderr.trim()) {
|
|
282
|
-
process.stderr.write(`${
|
|
282
|
+
process.stderr.write(`${_chunkO2FB42N2js.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
283
283
|
`);
|
|
284
284
|
}
|
|
285
285
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -293,7 +293,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
293
293
|
scope = normalizeScope(options.scope);
|
|
294
294
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
295
295
|
} catch (error) {
|
|
296
|
-
|
|
296
|
+
_chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
|
|
297
297
|
{
|
|
298
298
|
ok: false,
|
|
299
299
|
status: "failed",
|
|
@@ -305,22 +305,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
305
305
|
);
|
|
306
306
|
return 2;
|
|
307
307
|
}
|
|
308
|
-
const baseUrl =
|
|
308
|
+
const baseUrl = _chunkB2JE3HD6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
309
309
|
const catalog = {
|
|
310
|
-
skillNames: [...
|
|
311
|
-
version:
|
|
310
|
+
skillNames: [..._chunkO2FB42N2js.DEFAULT_SDK_SKILL_NAMES],
|
|
311
|
+
version: _chunk3IBKEOL4js.SDK_VERSION
|
|
312
312
|
};
|
|
313
313
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
314
314
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
315
315
|
if (options.dryRun) {
|
|
316
|
-
|
|
316
|
+
_chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
|
|
317
317
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
318
318
|
{ json: options.json }
|
|
319
319
|
);
|
|
320
320
|
return 0;
|
|
321
321
|
}
|
|
322
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
323
|
-
|
|
322
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkO2FB42N2js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
323
|
+
_chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
|
|
324
324
|
{
|
|
325
325
|
ok: true,
|
|
326
326
|
status: "current",
|
|
@@ -352,10 +352,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
352
352
|
}
|
|
353
353
|
if (scope === "local" && root) {
|
|
354
354
|
const managedNames = [
|
|
355
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
355
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkO2FB42N2js.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
356
356
|
];
|
|
357
357
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
358
|
-
|
|
358
|
+
_chunkB2JE3HD6js.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
359
359
|
".deepline/",
|
|
360
360
|
...agentRoots.flatMap(
|
|
361
361
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -364,7 +364,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
364
364
|
}
|
|
365
365
|
let lease;
|
|
366
366
|
try {
|
|
367
|
-
lease = scope === "global" ? await
|
|
367
|
+
lease = scope === "global" ? await _chunkO2FB42N2js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
368
368
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
369
369
|
onWait: () => process.stderr.write(
|
|
370
370
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -372,8 +372,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
372
372
|
}) : { release: () => {
|
|
373
373
|
} };
|
|
374
374
|
} catch (error) {
|
|
375
|
-
if (!(error instanceof
|
|
376
|
-
|
|
375
|
+
if (!(error instanceof _chunkO2FB42N2js.SkillsStateUnavailableError)) throw error;
|
|
376
|
+
_chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
|
|
377
377
|
{
|
|
378
378
|
ok: false,
|
|
379
379
|
status: "failed",
|
|
@@ -389,7 +389,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
389
389
|
return 5;
|
|
390
390
|
}
|
|
391
391
|
if (!lease) {
|
|
392
|
-
|
|
392
|
+
_chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
ok: false,
|
|
395
395
|
status: "failed",
|
|
@@ -398,7 +398,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
398
398
|
scope,
|
|
399
399
|
agents,
|
|
400
400
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
401
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
401
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkO2FB42N2js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
402
402
|
},
|
|
403
403
|
{ json: options.json }
|
|
404
404
|
);
|
|
@@ -447,7 +447,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
449
|
} catch (error) {
|
|
450
|
-
|
|
450
|
+
_chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
|
|
451
451
|
{
|
|
452
452
|
ok: false,
|
|
453
453
|
status: "failed",
|
|
@@ -463,7 +463,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
463
463
|
return 5;
|
|
464
464
|
}
|
|
465
465
|
if (missing.length > 0) {
|
|
466
|
-
|
|
466
|
+
_chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
|
|
467
467
|
{
|
|
468
468
|
ok: false,
|
|
469
469
|
status: "failed",
|
|
@@ -503,7 +503,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
503
503
|
{
|
|
504
504
|
schemaVersion: 1,
|
|
505
505
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
506
|
-
cliVersion:
|
|
506
|
+
cliVersion: _chunk3IBKEOL4js.SDK_VERSION,
|
|
507
507
|
scope,
|
|
508
508
|
agents,
|
|
509
509
|
skillsVersion: plan.version,
|
|
@@ -516,9 +516,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
516
516
|
"utf8"
|
|
517
517
|
);
|
|
518
518
|
if (scope === "global") {
|
|
519
|
-
|
|
519
|
+
_chunkO2FB42N2js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
520
520
|
}
|
|
521
|
-
|
|
521
|
+
_chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
|
|
522
522
|
{
|
|
523
523
|
ok: true,
|
|
524
524
|
status: "complete",
|
|
@@ -549,7 +549,7 @@ function registerSkillsCommand(program) {
|
|
|
549
549
|
"after",
|
|
550
550
|
`
|
|
551
551
|
Notes:
|
|
552
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
552
|
+
This command reinstalls current Deepline-managed skills using ${_chunkO2FB42N2js.SKILLS_NPX_PACKAGE},
|
|
553
553
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
554
554
|
persistent project.
|
|
555
555
|
|
|
@@ -561,13 +561,13 @@ Examples:
|
|
|
561
561
|
).action(async (options) => {
|
|
562
562
|
process.exitCode = await runSkillsCommand(options);
|
|
563
563
|
});
|
|
564
|
-
program.command(
|
|
564
|
+
program.command(_chunkO2FB42N2js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
565
565
|
"--claim <token>",
|
|
566
566
|
"Owner token of the leases this child was started for."
|
|
567
567
|
).action(async (options) => {
|
|
568
568
|
const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
|
|
569
569
|
if (!claim) {
|
|
570
|
-
|
|
570
|
+
_chunkZDTPSVGFjs.printCommandEnvelope.call(void 0,
|
|
571
571
|
{
|
|
572
572
|
ok: false,
|
|
573
573
|
status: "failed",
|
|
@@ -580,7 +580,7 @@ Examples:
|
|
|
580
580
|
process.exitCode = 2;
|
|
581
581
|
return;
|
|
582
582
|
}
|
|
583
|
-
await
|
|
583
|
+
await _chunkO2FB42N2js.syncSdkSkillsIfNeeded.call(void 0, _chunkB2JE3HD6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
584
584
|
mode: "inline",
|
|
585
585
|
notices: "defer",
|
|
586
586
|
claim
|
|
@@ -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(); } } 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
|
-
var
|
|
3
|
+
var _chunkSE23YSBKjs = require('./chunk-SE23YSBK.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ var _chunkSGG3TERPjs = require('./chunk-SGG3TERP.js');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkB2JE3HD6js = require('./chunk-B2JE3HD6.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -20,13 +20,13 @@ var _chunkYYN2O43Cjs = require('./chunk-YYN2O43C.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk3IBKEOL4js = require('./chunk-3IBKEOL4.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkDJOLMS2Ajs = require('./chunk-DJOLMS2A.js');
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
var _crypto = require('crypto');
|
|
@@ -61,7 +61,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
61
61
|
return value === "1" || value === "true" || value === "yes";
|
|
62
62
|
}
|
|
63
63
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
64
|
-
return _path.join.call(void 0,
|
|
64
|
+
return _path.join.call(void 0, _chunkB2JE3HD6js.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
65
65
|
}
|
|
66
66
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
67
67
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -69,9 +69,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
69
69
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
70
70
|
return JSON.stringify({
|
|
71
71
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
72
|
-
version:
|
|
73
|
-
apiContract:
|
|
74
|
-
apiMajor:
|
|
72
|
+
version: _chunk3IBKEOL4js.SDK_VERSION,
|
|
73
|
+
apiContract: _chunk3IBKEOL4js.SDK_API_CONTRACT,
|
|
74
|
+
apiMajor: _chunk3IBKEOL4js.SDK_API_MAJOR,
|
|
75
75
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
76
76
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
77
77
|
});
|
|
@@ -79,8 +79,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
79
79
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
80
80
|
return JSON.stringify({
|
|
81
81
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
82
|
-
version:
|
|
83
|
-
apiContract:
|
|
82
|
+
version: _chunk3IBKEOL4js.SDK_VERSION,
|
|
83
|
+
apiContract: _chunk3IBKEOL4js.SDK_API_CONTRACT,
|
|
84
84
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
85
85
|
});
|
|
86
86
|
}
|
|
@@ -105,7 +105,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
105
105
|
}
|
|
106
106
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
107
107
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
108
|
-
const path = _path.join.call(void 0,
|
|
108
|
+
const path = _path.join.call(void 0, _chunkB2JE3HD6js.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
109
109
|
try {
|
|
110
110
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
111
111
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -192,7 +192,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
192
192
|
);
|
|
193
193
|
try {
|
|
194
194
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
195
|
-
url.searchParams.set("version",
|
|
195
|
+
url.searchParams.set("version", _chunk3IBKEOL4js.SDK_VERSION);
|
|
196
196
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
197
197
|
url.searchParams.set("command", options.command.trim());
|
|
198
198
|
}
|
|
@@ -200,7 +200,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
200
200
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
201
201
|
url.searchParams.set(
|
|
202
202
|
"skills_cli_capability",
|
|
203
|
-
String(
|
|
203
|
+
String(_chunkDJOLMS2Ajs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
204
204
|
);
|
|
205
205
|
}
|
|
206
206
|
if (options.catalog) {
|
|
@@ -212,14 +212,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
212
212
|
const response = await fetch(url, {
|
|
213
213
|
method: "GET",
|
|
214
214
|
headers: {
|
|
215
|
-
...
|
|
216
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
217
|
-
"X-Deepline-SDK-Version":
|
|
218
|
-
"X-Deepline-API-Major": String(
|
|
219
|
-
"X-Deepline-API-Contract":
|
|
215
|
+
..._chunk3IBKEOL4js.deploymentProtectionHeaders.call(void 0, ),
|
|
216
|
+
"User-Agent": `deepline-ts-sdk/${_chunk3IBKEOL4js.SDK_VERSION}`,
|
|
217
|
+
"X-Deepline-SDK-Version": _chunk3IBKEOL4js.SDK_VERSION,
|
|
218
|
+
"X-Deepline-API-Major": String(_chunk3IBKEOL4js.SDK_API_MAJOR),
|
|
219
|
+
"X-Deepline-API-Contract": _chunk3IBKEOL4js.SDK_API_CONTRACT,
|
|
220
220
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
221
221
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
222
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
222
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkB2JE3HD6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
223
223
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
224
224
|
},
|
|
225
225
|
signal: controller.signal
|
|
@@ -388,7 +388,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
388
388
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
389
389
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
390
390
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
391
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
391
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkB2JE3HD6js.DEFAULT_SKILL_AGENTS));
|
|
392
392
|
const values = {
|
|
393
393
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
394
394
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -607,7 +607,7 @@ function buildEnvironmentContext() {
|
|
|
607
607
|
node_version: process.version,
|
|
608
608
|
runtime: "Node.js",
|
|
609
609
|
hostname: _os.hostname.call(void 0, ),
|
|
610
|
-
agent_runtime:
|
|
610
|
+
agent_runtime: _chunk3IBKEOL4js.detectAgentRuntime.call(void 0, )
|
|
611
611
|
};
|
|
612
612
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
613
613
|
const normalized = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58[key], 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
|
|
@@ -628,18 +628,18 @@ function buildEnvironmentContext() {
|
|
|
628
628
|
return context;
|
|
629
629
|
}
|
|
630
630
|
function failureReportHeaders(apiKey) {
|
|
631
|
-
const agentSessionId =
|
|
631
|
+
const agentSessionId = _chunk3IBKEOL4js.agentSessionIdFromEnvironment.call(void 0, );
|
|
632
632
|
return {
|
|
633
|
-
...
|
|
633
|
+
..._chunk3IBKEOL4js.deploymentProtectionHeaders.call(void 0, ),
|
|
634
634
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
635
635
|
Authorization: `Bearer ${apiKey}`,
|
|
636
636
|
"Content-Type": "application/json",
|
|
637
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
637
|
+
"User-Agent": `deepline-ts-sdk/${_chunk3IBKEOL4js.SDK_VERSION}`,
|
|
638
638
|
"X-Deepline-Client-Family": "sdk",
|
|
639
639
|
"X-Deepline-CLI-Family": "sdk",
|
|
640
|
-
"X-Deepline-Agent-Runtime":
|
|
641
|
-
"X-Deepline-CLI-Version":
|
|
642
|
-
"X-Deepline-SDK-Version":
|
|
640
|
+
"X-Deepline-Agent-Runtime": _chunk3IBKEOL4js.detectAgentRuntime.call(void 0, ),
|
|
641
|
+
"X-Deepline-CLI-Version": _chunk3IBKEOL4js.SDK_VERSION,
|
|
642
|
+
"X-Deepline-SDK-Version": _chunk3IBKEOL4js.SDK_VERSION
|
|
643
643
|
};
|
|
644
644
|
}
|
|
645
645
|
async function postFailureReport(input) {
|
|
@@ -667,7 +667,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
667
667
|
if (isFailureReportingDisabled()) return false;
|
|
668
668
|
let apiKey = "";
|
|
669
669
|
try {
|
|
670
|
-
apiKey =
|
|
670
|
+
apiKey = _chunkB2JE3HD6js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
671
671
|
} catch (e9) {
|
|
672
672
|
return false;
|
|
673
673
|
}
|
|
@@ -694,7 +694,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
694
694
|
failure_code: failureCode2,
|
|
695
695
|
failure_stage: failureStage,
|
|
696
696
|
error_body: "Automatic Deepline skills installation failed.",
|
|
697
|
-
cli_version:
|
|
697
|
+
cli_version: _chunk3IBKEOL4js.SDK_VERSION,
|
|
698
698
|
context: {
|
|
699
699
|
environment: buildEnvironmentContext(),
|
|
700
700
|
skills_sync: {
|
|
@@ -814,7 +814,7 @@ function buildFailureReport(input) {
|
|
|
814
814
|
failure_kind: failureKind,
|
|
815
815
|
failure_code: code,
|
|
816
816
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
817
|
-
cli_version:
|
|
817
|
+
cli_version: _chunk3IBKEOL4js.SDK_VERSION,
|
|
818
818
|
context: {
|
|
819
819
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
820
820
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -834,8 +834,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
834
834
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
835
835
|
const exitCode = resolvedExitCode(input);
|
|
836
836
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
837
|
-
const baseUrl =
|
|
838
|
-
const apiKey =
|
|
837
|
+
const baseUrl = _chunkB2JE3HD6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
838
|
+
const apiKey = _chunkB2JE3HD6js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
839
839
|
if (!apiKey) return false;
|
|
840
840
|
return postFailureReport({
|
|
841
841
|
baseUrl,
|
|
@@ -872,25 +872,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
872
872
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
873
873
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
874
874
|
function shouldSkipSkillsSync() {
|
|
875
|
-
if (
|
|
875
|
+
if (_chunk3IBKEOL4js.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
876
876
|
return true;
|
|
877
877
|
}
|
|
878
878
|
const value = _optionalChain([process, 'access', _81 => _81.env, 'access', _82 => _82.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _83 => _83.trim, 'call', _84 => _84(), 'access', _85 => _85.toLowerCase, 'call', _86 => _86()]);
|
|
879
879
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
880
880
|
}
|
|
881
881
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
882
|
-
return _path.join.call(void 0,
|
|
882
|
+
return _path.join.call(void 0, _chunkB2JE3HD6js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
883
883
|
}
|
|
884
884
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
885
885
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
886
|
-
var agentLeaseSegment =
|
|
886
|
+
var agentLeaseSegment = _chunkB2JE3HD6js.skillsAgentPathSegment;
|
|
887
887
|
function sortedLeaseAgents(agents) {
|
|
888
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
888
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkB2JE3HD6js.KNOWN_SKILL_AGENTS] : agents;
|
|
889
889
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
890
890
|
}
|
|
891
891
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
892
892
|
return _path.join.call(void 0,
|
|
893
|
-
|
|
893
|
+
_chunkB2JE3HD6js.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
894
894
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
895
895
|
);
|
|
896
896
|
}
|
|
@@ -1049,7 +1049,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1049
1049
|
constructor(baseUrl, error) {
|
|
1050
1050
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1051
1051
|
super(
|
|
1052
|
-
`Could not save skills state in ${
|
|
1052
|
+
`Could not save skills state in ${_chunkB2JE3HD6js.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1053
1053
|
);
|
|
1054
1054
|
this.name = "SkillsStateUnavailableError";
|
|
1055
1055
|
}
|
|
@@ -1134,7 +1134,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1136
1136
|
return _path.join.call(void 0,
|
|
1137
|
-
|
|
1137
|
+
_chunkB2JE3HD6js.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1138
1138
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1139
1139
|
);
|
|
1140
1140
|
}
|
|
@@ -1168,8 +1168,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1168
1168
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1169
1169
|
}
|
|
1170
1170
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1171
|
-
if (shouldSkipSkillsSync() ||
|
|
1172
|
-
const agents =
|
|
1171
|
+
if (shouldSkipSkillsSync() || _chunkB2JE3HD6js.hasActivePluginSkills.call(void 0, )) return;
|
|
1172
|
+
const agents = _chunkB2JE3HD6js.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1173
1173
|
if (agents.length === 0) return;
|
|
1174
1174
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1175
1175
|
}
|
|
@@ -1185,7 +1185,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1187
1187
|
return _path.join.call(void 0,
|
|
1188
|
-
|
|
1188
|
+
_chunkB2JE3HD6js.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1189
1189
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1190
1190
|
);
|
|
1191
1191
|
}
|
|
@@ -1214,7 +1214,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1214
1214
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1215
1215
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1216
1216
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1217
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _90 => _90.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1217
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _90 => _90.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkB2JE3HD6js.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1218
1218
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _91 => _91.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
1219
1219
|
notice(
|
|
1220
1220
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1302,7 +1302,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1302
1302
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1303
1303
|
}
|
|
1304
1304
|
function isDefaultAgentSet(agents) {
|
|
1305
|
-
return agents.length ===
|
|
1305
|
+
return agents.length === _chunkB2JE3HD6js.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkB2JE3HD6js.DEFAULT_SKILL_AGENTS[index]);
|
|
1306
1306
|
}
|
|
1307
1307
|
function safeSkillFilePath(value) {
|
|
1308
1308
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1459,10 +1459,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1459
1459
|
method: "POST",
|
|
1460
1460
|
headers: { "Content-Type": "application/json" },
|
|
1461
1461
|
body: JSON.stringify({
|
|
1462
|
-
sdk_cli: { version:
|
|
1462
|
+
sdk_cli: { version: _chunk3IBKEOL4js.SDK_VERSION },
|
|
1463
1463
|
skills: {
|
|
1464
1464
|
version: localVersion,
|
|
1465
|
-
capability:
|
|
1465
|
+
capability: _chunkDJOLMS2Ajs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1466
1466
|
}
|
|
1467
1467
|
}),
|
|
1468
1468
|
signal: controller.signal
|
|
@@ -1501,7 +1501,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1501
1501
|
}
|
|
1502
1502
|
function noInstallerProbePath(baseUrl) {
|
|
1503
1503
|
return _path.join.call(void 0,
|
|
1504
|
-
|
|
1504
|
+
_chunkB2JE3HD6js.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1505
1505
|
"skills-sync-no-installer-unknown.json"
|
|
1506
1506
|
);
|
|
1507
1507
|
}
|
|
@@ -1580,7 +1580,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1580
1580
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1581
1581
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1582
1582
|
}
|
|
1583
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1583
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkB2JE3HD6js.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1584
1584
|
const commands = [];
|
|
1585
1585
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1586
1586
|
if (probes.bunx === "available") {
|
|
@@ -1722,7 +1722,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
function writeSdkSkillsStatusLine(line) {
|
|
1725
|
-
const progress =
|
|
1725
|
+
const progress = _chunkSE23YSBKjs.getActiveCliProgress.call(void 0, );
|
|
1726
1726
|
if (progress) {
|
|
1727
1727
|
progress.writeLine(line);
|
|
1728
1728
|
return;
|
|
@@ -1732,11 +1732,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1732
1732
|
}
|
|
1733
1733
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1734
1734
|
if (shouldSkipSkillsSync()) return;
|
|
1735
|
-
const usingPluginSkills =
|
|
1735
|
+
const usingPluginSkills = _chunkB2JE3HD6js.hasActivePluginSkills.call(void 0, );
|
|
1736
1736
|
if (usingPluginSkills) {
|
|
1737
1737
|
return;
|
|
1738
1738
|
}
|
|
1739
|
-
const agents =
|
|
1739
|
+
const agents = _chunkB2JE3HD6js.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1740
1740
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1741
1741
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1742
1742
|
}
|
|
@@ -1764,7 +1764,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1764
1764
|
return;
|
|
1765
1765
|
}
|
|
1766
1766
|
try {
|
|
1767
|
-
const localVersion =
|
|
1767
|
+
const localVersion = _chunkB2JE3HD6js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1768
1768
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1769
1769
|
needsUpdate: options.update.needs_update,
|
|
1770
1770
|
remoteVersion: options.update.remote.version
|
|
@@ -1930,7 +1930,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
1932
|
runLegacySkillsCleanup(agents);
|
|
1933
|
-
if (!
|
|
1933
|
+
if (!_chunkB2JE3HD6js.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1934
1934
|
notice(
|
|
1935
1935
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1936
1936
|
);
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PIC6M4X3.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZCKUNXXR.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -6,7 +6,7 @@ var _chunk4IP5MLWUjs = require('./chunk-4IP5MLWU.js');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkZDTPSVGFjs = require('./chunk-ZDTPSVGF.js');
|
|
10
10
|
|
|
11
11
|
// src/cli/describe-options.ts
|
|
12
12
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -247,7 +247,7 @@ function projectRunDatasetCell(value) {
|
|
|
247
247
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
248
248
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
249
249
|
if (typeof logicalValue === "object") {
|
|
250
|
-
return
|
|
250
|
+
return _chunkZDTPSVGFjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
251
251
|
}
|
|
252
252
|
return logicalValue;
|
|
253
253
|
}
|
|
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
|
|
|
642
642
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
643
|
columns
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return _chunkZDTPSVGFjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options) {
|
|
648
648
|
let temp;
|