deepline 0.3.556 → 0.3.558
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/cli/{auth-MT7DWCZO.mjs → auth-JJXTMFWH.mjs} +5 -5
- package/dist/cli/auth-TWSGYOWI.js +44 -0
- package/dist/cli/{billing-4NOM52PO.mjs → billing-RBFJMAI5.mjs} +8 -8
- package/dist/cli/{billing-3HHUTNME.js → billing-V3TJKUHY.js} +99 -99
- package/dist/cli/{chunk-ASOLVHDL.mjs → chunk-2FFZ5SEU.mjs} +2 -2
- package/dist/cli/{chunk-NGB2VSGB.js → chunk-4CTBC6Q7.js} +3 -3
- package/dist/cli/{chunk-VCYPHVUE.mjs → chunk-4SVFZCCI.mjs} +2 -2
- package/dist/cli/{chunk-F5CE3JZQ.js → chunk-5V45LY6Y.js} +9 -9
- package/dist/cli/{chunk-GZFYLAXJ.js → chunk-67J4K4G2.js} +20 -20
- package/dist/cli/{chunk-EN5NHCCQ.js → chunk-6ASDTHEN.js} +17 -17
- package/dist/cli/{chunk-3R6RBAQW.js → chunk-6BDLYZYL.js} +26 -26
- package/dist/cli/{chunk-KA77KT46.mjs → chunk-6GBQNS6L.mjs} +1 -1
- package/dist/cli/{chunk-UO7NPJEK.js → chunk-6LFPPAMD.js} +3 -3
- package/dist/cli/{chunk-FQYEHUVR.mjs → chunk-6PIQC2XE.mjs} +3 -3
- package/dist/cli/{chunk-QVNX6AC3.js → chunk-7Q3EXOLC.js} +12 -12
- package/dist/cli/{chunk-VQZQCPCA.mjs → chunk-7Q5I4KEG.mjs} +4 -4
- package/dist/cli/{chunk-4HSPHSUB.js → chunk-A5MRMCMW.js} +5 -5
- package/dist/cli/{chunk-DAQQL743.mjs → chunk-AL4QQKUK.mjs} +2 -2
- package/dist/cli/{chunk-JRYF5W3A.mjs → chunk-ARGJDP77.mjs} +2 -2
- package/dist/cli/{chunk-4U5HIMZY.js → chunk-BFM2RCC3.js} +2 -2
- package/dist/cli/{chunk-C4GWTN3J.mjs → chunk-BHHCQGUY.mjs} +7 -7
- package/dist/cli/{chunk-XFZX6FNM.mjs → chunk-BM4GE67C.mjs} +18 -2
- package/dist/cli/{chunk-W5JM2QCI.mjs → chunk-BWWLLK56.mjs} +5 -5
- package/dist/cli/{chunk-7MD36QLK.js → chunk-C7BQBKRZ.js} +4 -4
- package/dist/cli/{chunk-KNOS6H4E.mjs → chunk-CB5DIX5K.mjs} +2 -2
- package/dist/cli/{chunk-ZGOTBBY3.mjs → chunk-CEEUL7ER.mjs} +1 -1
- package/dist/cli/{chunk-YO2FDGAN.mjs → chunk-CG3R4ZFS.mjs} +2 -2
- package/dist/cli/{chunk-MUIJGT2B.mjs → chunk-D4GCU735.mjs} +1 -1
- package/dist/cli/{chunk-YGW2CSB7.js → chunk-DDI4LNVC.js} +41 -41
- package/dist/cli/{chunk-L57JAXHI.mjs → chunk-DJAP2M5M.mjs} +1 -1
- package/dist/cli/{chunk-TGUQET3O.mjs → chunk-ENHQBPR5.mjs} +1 -1
- package/dist/cli/{chunk-SWVGAIJD.js → chunk-FCG42RQZ.js} +20 -20
- package/dist/cli/{chunk-UYPXQFJ4.mjs → chunk-FF3BWNLL.mjs} +1 -1
- package/dist/cli/{chunk-KN3NETDA.js → chunk-FH55SB63.js} +11 -11
- package/dist/cli/{chunk-LW2FKVCQ.mjs → chunk-GAQ6VSRS.mjs} +1 -1
- package/dist/cli/{chunk-PC2FTUCP.mjs → chunk-HUJMFETO.mjs} +2 -2
- package/dist/cli/{chunk-GY4S6A72.js → chunk-I3PX6NGG.js} +5 -5
- package/dist/cli/{chunk-ASMHON7N.mjs → chunk-I57JNBKA.mjs} +5 -5
- package/dist/cli/{chunk-CJF7AFBD.js → chunk-IS67LBNV.js} +2 -2
- package/dist/cli/{chunk-IFHMGEDN.mjs → chunk-KMNLER7F.mjs} +13 -13
- package/dist/cli/{chunk-LY5MMXFF.js → chunk-LHPYCJNL.js} +18 -2
- package/dist/cli/{chunk-QGQPVPJN.mjs → chunk-LIS6UJSC.mjs} +1 -1
- package/dist/cli/{chunk-N6LM2Q6V.js → chunk-M4CJGF53.js} +5 -5
- package/dist/cli/{chunk-P6ZIR4QD.mjs → chunk-MAN4IEO4.mjs} +4 -4
- package/dist/cli/{chunk-LU3OLGF3.js → chunk-NADXF2C5.js} +53 -53
- package/dist/cli/{chunk-CZ2RJTAQ.js → chunk-NAJAAIEE.js} +48 -48
- package/dist/cli/{chunk-KUDSTDSL.js → chunk-OWOUDGHO.js} +23 -23
- package/dist/cli/{chunk-O7QRNMSW.mjs → chunk-P2MVPTFJ.mjs} +1 -1
- package/dist/cli/{chunk-UERLY7PX.mjs → chunk-P3SLGOGA.mjs} +2 -2
- package/dist/cli/{chunk-G6BX5VJN.js → chunk-PAJLUB37.js} +274 -274
- package/dist/cli/{chunk-FFXLMJ5O.js → chunk-QGDU23YW.js} +8 -8
- package/dist/cli/{chunk-DAS66RGZ.js → chunk-QGJ4DYGE.js} +1 -1
- package/dist/cli/{chunk-KONNXKKX.js → chunk-RIQYBKHK.js} +2 -2
- package/dist/cli/{chunk-2ZS5PZB6.mjs → chunk-T6W7SKE7.mjs} +2 -2
- package/dist/cli/{chunk-3IKGZ4CG.js → chunk-TBLP7HDL.js} +7 -7
- package/dist/cli/{chunk-K4IPTGU5.js → chunk-VPJ663PV.js} +10 -10
- package/dist/cli/{chunk-B4RWCBU5.mjs → chunk-WJ7RY3PJ.mjs} +3 -3
- package/dist/cli/{chunk-HJO3MZ4M.mjs → chunk-XPSSXKBT.mjs} +2 -2
- package/dist/cli/{chunk-2NZQ432X.js → chunk-XV4DHKZ2.js} +13 -13
- package/dist/cli/{chunk-C2XLKCRH.mjs → chunk-YBJSDL34.mjs} +5 -5
- package/dist/cli/{chunk-7ERE37SK.js → chunk-YJ46MJMT.js} +6 -6
- package/dist/cli/{chunk-PWQ3IUD4.js → chunk-YVWINBZL.js} +20 -20
- package/dist/cli/concurrent-runs-help-4VRUNL3T.js +22 -0
- package/dist/cli/{concurrent-runs-help-AFJDK2SY.mjs → concurrent-runs-help-ZWWMHCK4.mjs} +6 -6
- package/dist/cli/{csv-CATF6MZU.mjs → csv-D76CXYOL.mjs} +4 -4
- package/dist/cli/{csv-NTNQLQXG.js → csv-V2FR4SO2.js} +13 -13
- package/dist/cli/{db-U3FK4FFM.mjs → db-2D7PD7A3.mjs} +6 -6
- package/dist/cli/{db-IKFKNLW5.js → db-B23O6Q4O.js} +27 -27
- package/dist/cli/{describe-F7OQQ7IO.mjs → describe-3LG6VO3D.mjs} +21 -21
- package/dist/cli/describe-QE4ITFPG.js +50 -0
- package/dist/cli/describe-core.d.mts +5 -0
- package/dist/cli/describe-core.d.ts +5 -0
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-3TA5SATU.js → executions-4P4UBPMX.js} +8 -8
- package/dist/cli/{executions-6KUA7RPH.mjs → executions-ORWO4SR4.mjs} +6 -6
- package/dist/cli/{feedback-U5I6UTJG.mjs → feedback-AY47IRDD.mjs} +6 -6
- package/dist/cli/{feedback-GX7RVC4O.js → feedback-LPHCSOJT.js} +14 -14
- package/dist/cli/{git-DYNKPPNT.mjs → git-LQGZNBZM.mjs} +5 -5
- package/dist/cli/git-XXVGEPEM.js +26 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-7FATBEB5.mjs → integrations-NEUZIBQT.mjs} +7 -7
- package/dist/cli/{integrations-PQX2FRPT.js → integrations-QEOUALDR.js} +15 -15
- package/dist/cli/{legacy-noops-ODATBQUL.mjs → legacy-noops-4G3DXN57.mjs} +6 -6
- package/dist/cli/{legacy-noops-JNXQWYUR.js → legacy-noops-PUO5VKHN.js} +9 -9
- package/dist/cli/{mcp-RXBXC4HW.js → mcp-EWAZKABW.js} +24 -24
- package/dist/cli/{mcp-UDNG33WQ.mjs → mcp-USM2QUKK.mjs} +4 -4
- package/dist/cli/{monitors-NDAGIRO4.js → monitors-2BI5J46A.js} +100 -100
- package/dist/cli/{monitors-L56QYFRW.mjs → monitors-T6FJSZCP.mjs} +7 -7
- package/dist/cli/{org-EA5DL5I7.mjs → org-BT45O64S.mjs} +6 -6
- package/dist/cli/{org-Q47O5ZTI.js → org-V6V3E7F7.js} +121 -121
- package/dist/cli/{outcomes-773GPYXN.mjs → outcomes-2T6W554M.mjs} +6 -6
- package/dist/cli/{outcomes-27ENBTWE.js → outcomes-B6RPHM6M.js} +14 -14
- package/dist/cli/{play-O6RGVBT7.mjs → play-CBBGJPRI.mjs} +20 -20
- package/dist/cli/{play-BOZIT25U.js → play-YCFVGEWK.js} +337 -337
- package/dist/cli/{providers-S2E5IGFO.js → providers-AGRUGBIY.js} +9 -9
- package/dist/cli/{providers-OOKYSLMJ.mjs → providers-RHBUQFFO.mjs} +6 -6
- package/dist/cli/{quickstart-YXKRRK43.js → quickstart-6N2KPWII.js} +6 -6
- package/dist/cli/{quickstart-7GVZ7YCQ.mjs → quickstart-OPR5NLIQ.mjs} +4 -4
- package/dist/cli/{run-3QGOVUHF.mjs → run-HAU2STMQ.mjs} +26 -26
- package/dist/cli/{run-7DXBARRO.js → run-MMANMS4E.js} +48 -48
- package/dist/cli/search-7LMUBMDC.js +32 -0
- package/dist/cli/{search-5UIB4QSG.mjs → search-TGWQMQ2C.mjs} +7 -7
- package/dist/cli/{search-output-MSUN3KPW.mjs → search-output-DZBYNJEO.mjs} +5 -5
- package/dist/cli/{search-output-C7ZPRC2B.js → search-output-VVM3DO2H.js} +8 -8
- package/dist/cli/{secrets-FU3DFFB6.js → secrets-V5WD552F.js} +15 -15
- package/dist/cli/{secrets-JYJS2VHO.mjs → secrets-Z6NEKNWM.mjs} +6 -6
- package/dist/cli/{sessions-JBD64DOX.mjs → sessions-C5GNXSPB.mjs} +6 -6
- package/dist/cli/sessions-VYIPZBSR.js +23 -0
- package/dist/cli/{settings-GDJGQXKT.js → settings-EZPZXJDG.js} +85 -85
- package/dist/cli/{settings-4KFYWSJI.mjs → settings-QUDVUIOJ.mjs} +12 -12
- package/dist/cli/{setup-46VMBV3K.mjs → setup-BCJBVQTI.mjs} +9 -9
- package/dist/cli/{setup-OKLUCTU7.js → setup-QY5VVGWQ.js} +49 -49
- package/dist/cli/{skills-XRJNXEEA.mjs → skills-LY2WZ22U.mjs} +7 -7
- package/dist/cli/skills-PKNTNDYL.js +37 -0
- package/dist/cli/tools-D6CKFZL3.js +57 -0
- package/dist/cli/{tools-WEBVZN3X.mjs → tools-FNCTTFWA.mjs} +19 -19
- package/dist/cli/update-E2H2DWH4.js +37 -0
- package/dist/cli/{update-RKTYJ6BO.mjs → update-YKQAC4AQ.mjs} +9 -9
- package/dist/cli/{views-VTOQ4U75.mjs → views-5R5NVYHL.mjs} +6 -6
- package/dist/cli/{views-XLAPDQXQ.js → views-NBTOBB67.js} +21 -21
- package/dist/cli/{workflow-RCO4R46B.mjs → workflow-HBDW43GT.mjs} +7 -7
- package/dist/cli/{workflow-HH4XVYPN.js → workflow-VNPT5VQS.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -118
- 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-HA7TI6SA.js +0 -44
- package/dist/cli/concurrent-runs-help-ZHOCLINF.js +0 -22
- package/dist/cli/describe-ZHNZ4H6S.js +0 -50
- package/dist/cli/git-6DK7N4V7.js +0 -26
- package/dist/cli/search-4DZYX3FR.js +0 -32
- package/dist/cli/sessions-E2IX3GU7.js +0 -23
- package/dist/cli/skills-GJS4Q7NU.js +0 -37
- package/dist/cli/tools-LICQXFYA.js +0 -57
- package/dist/cli/update-3XH3NVVY.js +0 -37
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkNAJAAIEEjs = require('./chunk-NAJAAIEE.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkYVWINBZLjs = require('./chunk-YVWINBZL.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk4CTBC6Q7js = require('./chunk-4CTBC6Q7.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkC7BQBKRZjs = require('./chunk-C7BQBKRZ.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 = _chunk4CTBC6Q7js.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, () => ( _chunkC7BQBKRZjs.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, _chunk4CTBC6Q7js.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 = [..._chunkNAJAAIEEjs.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=${_chunkNAJAAIEEjs.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=${_chunkNAJAAIEEjs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkNAJAAIEEjs.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 = _chunkNAJAAIEEjs.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
|
+
`${_chunkNAJAAIEEjs.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(`${_chunkNAJAAIEEjs.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 = _chunk4CTBC6Q7js.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
|
+
_chunkYVWINBZLjs.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
|
+
_chunkYVWINBZLjs.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
|
+
_chunkYVWINBZLjs.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
|
+
_chunkYVWINBZLjs.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 = _chunk4CTBC6Q7js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
367
367
|
const catalog = {
|
|
368
|
-
skillNames: [...
|
|
369
|
-
version:
|
|
368
|
+
skillNames: [..._chunkNAJAAIEEjs.DEFAULT_SDK_SKILL_NAMES],
|
|
369
|
+
version: _chunkC7BQBKRZjs.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
|
+
_chunkYVWINBZLjs.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)) && !_chunkNAJAAIEEjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
381
|
+
_chunkYVWINBZLjs.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, ..._chunkNAJAAIEEjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
414
414
|
];
|
|
415
415
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
416
|
-
|
|
416
|
+
_chunk4CTBC6Q7js.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 _chunkNAJAAIEEjs.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 _chunkNAJAAIEEjs.SkillsStateUnavailableError)) throw error;
|
|
434
|
+
_chunkYVWINBZLjs.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
|
+
_chunkYVWINBZLjs.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 ${_chunkNAJAAIEEjs.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
|
+
_chunkYVWINBZLjs.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
|
+
_chunkYVWINBZLjs.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: _chunkC7BQBKRZjs.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
|
+
_chunkNAJAAIEEjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
_chunkYVWINBZLjs.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 ${_chunkNAJAAIEEjs.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(_chunkNAJAAIEEjs.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
|
+
_chunkYVWINBZLjs.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 _chunkNAJAAIEEjs.syncSdkSkillsIfNeeded.call(void 0, _chunk4CTBC6Q7js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
660
660
|
mode: "inline",
|
|
661
661
|
notices: "defer",
|
|
662
662
|
claim
|
|
@@ -1,23 +1,23 @@
|
|
|
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 _chunkRIQYBKHKjs = require('./chunk-RIQYBKHK.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDDI4LNVCjs = require('./chunk-DDI4LNVC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkNAJAAIEEjs = require('./chunk-NAJAAIEE.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkYVWINBZLjs = require('./chunk-YVWINBZL.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk4CTBC6Q7js = require('./chunk-4CTBC6Q7.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/update.ts
|
|
23
23
|
var _child_process = require('child_process');
|
|
@@ -499,7 +499,7 @@ function normalizedNpmPrefix(value) {
|
|
|
499
499
|
}
|
|
500
500
|
function resolveNpmGlobalPrefix(env) {
|
|
501
501
|
try {
|
|
502
|
-
const plan =
|
|
502
|
+
const plan = _chunkNAJAAIEEjs.resolveShellSpawn.call(void 0,
|
|
503
503
|
"npm",
|
|
504
504
|
["prefix", "-g"],
|
|
505
505
|
process.platform,
|
|
@@ -561,8 +561,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
561
561
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
562
562
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
563
563
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
564
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
565
|
-
const npmGlobalInstallFlags =
|
|
564
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkRIQYBKHKjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
565
|
+
const npmGlobalInstallFlags = _chunkRIQYBKHKjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
566
566
|
const args = installPrefix ? [
|
|
567
567
|
"install",
|
|
568
568
|
"-g",
|
|
@@ -572,7 +572,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
572
572
|
packageSpec
|
|
573
573
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
574
574
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
575
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
575
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk4CTBC6Q7js.autoDetectBaseUrl.call(void 0, )
|
|
576
576
|
);
|
|
577
577
|
return {
|
|
578
578
|
kind: "npm-global",
|
|
@@ -821,7 +821,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
821
821
|
function runCommand(command, args, env = process.env) {
|
|
822
822
|
return new Promise((resolveResult) => {
|
|
823
823
|
let output = "";
|
|
824
|
-
const plan =
|
|
824
|
+
const plan = _chunkNAJAAIEEjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
825
825
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
826
826
|
windowsHide: true,
|
|
827
827
|
stdio: ["inherit", "pipe", "pipe"],
|
|
@@ -1169,7 +1169,7 @@ function normalizePinnedVersion(value) {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
async function readPinMetadata(registryUrl, version) {
|
|
1171
1171
|
const controller = new AbortController();
|
|
1172
|
-
const timeout = setTimeout(() => controller.abort(),
|
|
1172
|
+
const timeout = setTimeout(() => controller.abort(), _chunk4CTBC6Q7js.DEFAULT_TIMEOUT);
|
|
1173
1173
|
try {
|
|
1174
1174
|
const response = await fetch(
|
|
1175
1175
|
new URL(
|
|
@@ -1185,7 +1185,7 @@ async function readPinMetadata(registryUrl, version) {
|
|
|
1185
1185
|
if (!response.ok) {
|
|
1186
1186
|
return {
|
|
1187
1187
|
kind: "miss",
|
|
1188
|
-
transient:
|
|
1188
|
+
transient: _chunk4CTBC6Q7js.TRANSIENT_HTTP_STATUSES.has(response.status),
|
|
1189
1189
|
error: new Error(`${registryUrl} returned HTTP ${response.status}`)
|
|
1190
1190
|
};
|
|
1191
1191
|
}
|
|
@@ -1219,8 +1219,8 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl, retry =
|
|
|
1219
1219
|
"https://registry.npmjs.org/",
|
|
1220
1220
|
...fallbackRegistryUrl ? [fallbackRegistryUrl] : []
|
|
1221
1221
|
];
|
|
1222
|
-
const maxRetries = _nullishCoalesce(retry.maxRetries, () => (
|
|
1223
|
-
const backoffMs = _nullishCoalesce(retry.backoffMs, () => (
|
|
1222
|
+
const maxRetries = _nullishCoalesce(retry.maxRetries, () => ( _chunk4CTBC6Q7js.DEFAULT_MAX_RETRIES));
|
|
1223
|
+
const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunk4CTBC6Q7js.defaultRetryBackoffMs));
|
|
1224
1224
|
let lastError = null;
|
|
1225
1225
|
for (let round = 1; ; round += 1) {
|
|
1226
1226
|
let transientOnly = true;
|
|
@@ -1283,14 +1283,14 @@ async function resolveInstalledVersionIfLatest(plan) {
|
|
|
1283
1283
|
return null;
|
|
1284
1284
|
}
|
|
1285
1285
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1286
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1286
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk4CTBC6Q7js.autoDetectBaseUrl));
|
|
1287
1287
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1288
1288
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1289
1289
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1290
1290
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1291
1291
|
process.stdout.write = (() => true);
|
|
1292
1292
|
try {
|
|
1293
|
-
const exitCode = await
|
|
1293
|
+
const exitCode = await _chunkDDI4LNVCjs.runSkillsCommand.call(void 0, { json: true });
|
|
1294
1294
|
if (exitCode !== 0) {
|
|
1295
1295
|
throw new Error(
|
|
1296
1296
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1363,7 +1363,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1363
1363
|
};
|
|
1364
1364
|
if (options.json && !options.executeWithJson) {
|
|
1365
1365
|
const upToDateVersion2 = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
|
|
1366
|
-
|
|
1366
|
+
_chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
|
|
1367
1367
|
{
|
|
1368
1368
|
...plan,
|
|
1369
1369
|
updated: false,
|
|
@@ -1375,7 +1375,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1375
1375
|
return 0;
|
|
1376
1376
|
}
|
|
1377
1377
|
if (options.printCommand) {
|
|
1378
|
-
|
|
1378
|
+
_chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
|
|
1379
1379
|
{
|
|
1380
1380
|
...plan,
|
|
1381
1381
|
render: {
|
|
@@ -1388,7 +1388,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1388
1388
|
return 0;
|
|
1389
1389
|
}
|
|
1390
1390
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1391
|
-
|
|
1391
|
+
_chunkYVWINBZLjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1392
1392
|
return 0;
|
|
1393
1393
|
}
|
|
1394
1394
|
const upToDateVersion = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
|
|
@@ -1426,7 +1426,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1426
1426
|
);
|
|
1427
1427
|
}
|
|
1428
1428
|
if (options.executeWithJson && options.json) {
|
|
1429
|
-
|
|
1429
|
+
_chunkYVWINBZLjs.printCommandEnvelope.call(void 0,
|
|
1430
1430
|
{
|
|
1431
1431
|
ok: true,
|
|
1432
1432
|
pinnedVersion,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkYVWINBZLjs = require('./chunk-YVWINBZL.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -27,7 +27,7 @@ function addDescribeOptions(command, options = {}) {
|
|
|
27
27
|
"Show only the in-play example, and explain how it takes inputs and returns outputs"
|
|
28
28
|
).option("--no-example", "Hide the run examples").option(
|
|
29
29
|
"--full-schema",
|
|
30
|
-
`Print every field: a long schema unfolded (over ${
|
|
30
|
+
`Print every field: a long schema unfolded (over ${_chunkLHPYCJNLjs.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
|
|
31
31
|
).option(
|
|
32
32
|
"--fields <names>",
|
|
33
33
|
"Show only these fields, comma-separated, plus every required input"
|
|
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
|
|
|
250
250
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
251
251
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
252
252
|
if (typeof logicalValue === "object") {
|
|
253
|
-
return
|
|
253
|
+
return _chunkYVWINBZLjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
254
254
|
}
|
|
255
255
|
return logicalValue;
|
|
256
256
|
}
|
|
@@ -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 _chunkYVWINBZLjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
648
|
let temp;
|
|
@@ -770,7 +770,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
770
770
|
};
|
|
771
771
|
if (options.receiptOut && !skipReceiptFile) {
|
|
772
772
|
persist(options.receiptOut, jsonText(receipt));
|
|
773
|
-
|
|
773
|
+
_chunkYVWINBZLjs.markJsonOutputHandled.call(void 0, );
|
|
774
774
|
} else {
|
|
775
775
|
printReceipt(receipt, options, {
|
|
776
776
|
data: hasData ? result.data : void 0,
|
|
@@ -874,9 +874,9 @@ function annotated(schema, values) {
|
|
|
874
874
|
function shapeLines(title, data) {
|
|
875
875
|
const schema = annotated(observedSchema(data), [data]);
|
|
876
876
|
const block = (heading, fieldSchema) => {
|
|
877
|
-
const { lines, folded } =
|
|
877
|
+
const { lines, folded } = _chunkLHPYCJNLjs.fieldBlockLines.call(void 0,
|
|
878
878
|
heading,
|
|
879
|
-
|
|
879
|
+
_chunkLHPYCJNLjs.schemaFields.call(void 0, fieldSchema)
|
|
880
880
|
);
|
|
881
881
|
return [
|
|
882
882
|
...lines,
|
|
@@ -939,7 +939,7 @@ function receiptText(receipt, options, extra) {
|
|
|
939
939
|
problems.push(
|
|
940
940
|
`Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
|
|
941
941
|
);
|
|
942
|
-
const diagnostic =
|
|
942
|
+
const diagnostic = _chunkYVWINBZLjs.formatCliFailureDiagnostic.call(void 0, error);
|
|
943
943
|
if (diagnostic) problems.push(...diagnostic.split("\n"));
|
|
944
944
|
if (record(error) && typeof error.recoveryFile === "string") {
|
|
945
945
|
problems.push(
|
|
@@ -1032,8 +1032,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1032
1032
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1033
1033
|
` : receiptText(receipt, options, extra);
|
|
1034
1034
|
if (options.receiptOut !== void 0) {
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
_chunkYVWINBZLjs.writeRawStderr.call(void 0, text);
|
|
1036
|
+
_chunkYVWINBZLjs.markJsonOutputHandled.call(void 0, );
|
|
1037
1037
|
} else {
|
|
1038
1038
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1039
1039
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ENHQBPR5.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildPlayDashboardUrl,
|
|
9
9
|
byokLines,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
examples,
|
|
14
14
|
schemaLines,
|
|
15
15
|
topLevelField
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-BM4GE67C.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkNADXF2C5js = require('./chunk-NADXF2C5.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk4CTBC6Q7js = require('./chunk-4CTBC6Q7.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
|
|
|
24
24
|
return plans ? `${here} Plan limits: ${plans}.` : here;
|
|
25
25
|
}
|
|
26
26
|
async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
|
|
27
|
-
const baseUrl =
|
|
28
|
-
const apiKey =
|
|
27
|
+
const baseUrl = _chunk4CTBC6Q7js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
28
|
+
const apiKey = _chunk4CTBC6Q7js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
29
29
|
if (!apiKey) return "";
|
|
30
30
|
try {
|
|
31
|
-
const { status, data } = await
|
|
31
|
+
const { status, data } = await _chunkNADXF2C5js.httpJson.call(void 0,
|
|
32
32
|
"GET",
|
|
33
33
|
`${baseUrl}/api/v2/billing/entitlements`,
|
|
34
34
|
apiKey,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DJAP2M5M.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CB5DIX5K.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-CEEUL7ER.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-GAQ6VSRS.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-D4GCU735.mjs";
|
|
35
35
|
|
|
36
36
|
// src/compat.ts
|
|
37
37
|
import { randomUUID } from "crypto";
|