deepline 0.3.445 → 0.3.446
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-LQFM7AUA.js +40 -0
- package/dist/cli/{auth-QNWYRLML.mjs → auth-QS4HFSPI.mjs} +4 -4
- package/dist/cli/{billing-3HFPC32I.js → billing-72BVAZ6M.js} +73 -73
- package/dist/cli/{billing-ULHQPQ2L.mjs → billing-X7ZJUBJE.mjs} +4 -4
- package/dist/cli/{chunk-THZL4XHV.js → chunk-4UD3HIUY.js} +8 -8
- package/dist/cli/{chunk-732QWWPG.js → chunk-6PTUA4M7.js} +10 -10
- package/dist/cli/{chunk-T7SLOS2J.mjs → chunk-6XL3IIFD.mjs} +4 -4
- package/dist/cli/{chunk-YXY6FCRU.mjs → chunk-7HUXIWE2.mjs} +3 -3
- package/dist/cli/{chunk-5JJ6JYTL.js → chunk-7X7GEXHC.js} +6 -6
- package/dist/cli/{chunk-FC7LS3Y5.js → chunk-BIQCGMZC.js} +50 -50
- package/dist/cli/{chunk-6DQTJ3DY.js → chunk-CNIFSBGW.js} +35 -35
- package/dist/cli/{chunk-IXJN2NLA.mjs → chunk-D7ES6PAW.mjs} +1 -1
- package/dist/cli/{chunk-E5JZH6CI.mjs → chunk-DPVDPJLA.mjs} +1 -1
- package/dist/cli/{chunk-TX6F2BB6.js → chunk-EATTWMIB.js} +2 -2
- package/dist/cli/{chunk-SSRKG7I5.mjs → chunk-FMUADJJ6.mjs} +3 -3
- package/dist/cli/{chunk-HU6PIQDF.mjs → chunk-G7L27KZB.mjs} +2 -2
- package/dist/cli/{chunk-6LVOC2HD.mjs → chunk-HBC7PNWS.mjs} +1 -1
- package/dist/cli/{chunk-W25OALCJ.mjs → chunk-HDFRJ4IT.mjs} +32 -5
- package/dist/cli/{chunk-2L2D2SXH.mjs → chunk-IQREZ6NU.mjs} +2 -2
- package/dist/cli/{chunk-BEI6ZL6E.mjs → chunk-ISQLFI2O.mjs} +1 -1
- package/dist/cli/{chunk-C54S4QPU.mjs → chunk-JZK7OEG7.mjs} +2 -2
- package/dist/cli/{chunk-KNAKCMGJ.js → chunk-KGQNIA37.js} +17 -17
- package/dist/cli/{chunk-LBZUIZKQ.mjs → chunk-KUWUIXC7.mjs} +2 -2
- package/dist/cli/{chunk-OAVHRVPA.js → chunk-LBZGICM5.js} +2 -2
- package/dist/cli/{chunk-CQ3ZZ3RL.js → chunk-MERFSCZL.js} +16 -16
- package/dist/cli/{chunk-3OBHZADJ.mjs → chunk-MTRBEEIJ.mjs} +1 -1
- package/dist/cli/{chunk-V247SCRQ.js → chunk-MU76KMIL.js} +20 -20
- package/dist/cli/{chunk-GGMJ2VTZ.js → chunk-N5CNBKPY.js} +246 -246
- package/dist/cli/{chunk-NHWNFLFK.mjs → chunk-PE4GNPHD.mjs} +2 -2
- package/dist/cli/{chunk-PP66EATA.js → chunk-PQUUWFXY.js} +2 -2
- package/dist/cli/{chunk-FB7VBDA3.mjs → chunk-R4AKASN2.mjs} +3 -3
- package/dist/cli/{chunk-3SELRVWB.mjs → chunk-R53NKATP.mjs} +5 -5
- package/dist/cli/{chunk-COCZROBN.js → chunk-RZ25NO6A.js} +26 -26
- package/dist/cli/{chunk-WQPJQEDE.mjs → chunk-SLEUWLJE.mjs} +4 -3
- package/dist/cli/{chunk-H6HZMADG.js → chunk-SSPHVLOF.js} +52 -52
- package/dist/cli/{chunk-ZRWX23RQ.mjs → chunk-T56WZU3Q.mjs} +1 -1
- package/dist/cli/{chunk-MMMA4OLB.js → chunk-TY6KOFLR.js} +8 -8
- package/dist/cli/{chunk-SAN2HUYZ.mjs → chunk-ULGMJRSU.mjs} +11 -11
- package/dist/cli/{chunk-TABMEHIP.js → chunk-WX4K4TNG.js} +4 -4
- package/dist/cli/{chunk-HFXG7GGH.js → chunk-XK7USWW3.js} +6 -6
- package/dist/cli/{chunk-EI2NN6HP.js → chunk-XQSQNS73.js} +1 -1
- package/dist/cli/{chunk-FKAHVFPJ.mjs → chunk-YBWAG72P.mjs} +1 -1
- package/dist/cli/{chunk-QFXPA2E4.js → chunk-Z2GUFYT6.js} +9 -8
- package/dist/cli/{chunk-LRNYRGCN.js → chunk-Z2XUZC34.js} +32 -5
- package/dist/cli/{csv-NAATVV3O.js → csv-I2U2XHF2.js} +12 -12
- package/dist/cli/{csv-QXMJNWPE.mjs → csv-J2CGPTVS.mjs} +3 -3
- package/dist/cli/{db-2ADNWVDN.mjs → db-7ZYN4RSF.mjs} +4 -4
- package/dist/cli/{db-IB426AKH.js → db-ID7WE25S.js} +25 -25
- package/dist/cli/{describe-6T2HEQ2V.js → describe-6MWB45ZF.js} +24 -24
- package/dist/cli/{describe-UM4PAI2I.mjs → describe-KIE5HRU6.mjs} +16 -16
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-3WVCUBHH.js → executions-NPH4K6V4.js} +6 -6
- package/dist/cli/{executions-4NCMXHDI.mjs → executions-UAKS7E5U.mjs} +4 -4
- package/dist/cli/{feedback-C4IBRZKH.js → feedback-T65QHRNJ.js} +7 -7
- package/dist/cli/{feedback-OKLN3VLD.mjs → feedback-VGRGR5TG.mjs} +3 -3
- package/dist/cli/{git-A6XP6LIW.mjs → git-MHBPDHFC.mjs} +4 -4
- package/dist/cli/git-YKUQZPWL.js +24 -0
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-LCQXCYQY.mjs → legacy-noops-O27BEOS7.mjs} +4 -4
- package/dist/cli/{legacy-noops-ALY2PBIT.js → legacy-noops-UWDPM46V.js} +7 -7
- package/dist/cli/{monitors-T3YN2RYD.mjs → monitors-OEQ7GQ7Z.mjs} +4 -4
- package/dist/cli/{monitors-5C6PSVAT.js → monitors-U4O52KL7.js} +84 -84
- package/dist/cli/{org-4V76A3LD.js → org-FKNL42W7.js} +66 -66
- package/dist/cli/{org-7WLA42NC.mjs → org-TCP4TADK.mjs} +4 -4
- package/dist/cli/{play-WRHGX3WB.mjs → play-3UFJK5TR.mjs} +12 -12
- package/dist/cli/{play-UT3TLBM6.js → play-H2XWJ2GR.js} +296 -296
- package/dist/cli/{providers-UA2DJLBP.mjs → providers-SYZJQNNL.mjs} +4 -4
- package/dist/cli/{providers-ZR4SRGJF.js → providers-ZDLZX6AB.js} +7 -7
- package/dist/cli/{quickstart-QN5FXZWS.js → quickstart-GPFZQF5I.js} +5 -5
- package/dist/cli/{quickstart-IT46STSN.mjs → quickstart-LLZAA3YH.mjs} +3 -3
- package/dist/cli/search-WQ77HY2K.js +30 -0
- package/dist/cli/{search-QKK5SGMV.mjs → search-XEZ6YINQ.mjs} +5 -5
- package/dist/cli/{secrets-FX3IVBUP.js → secrets-6LG6WSV4.js} +13 -13
- package/dist/cli/{secrets-GWXM2FH4.mjs → secrets-GTUPRTIQ.mjs} +4 -4
- package/dist/cli/{sessions-G6LCRYTC.js → sessions-6T7GLRAE.js} +5 -5
- package/dist/cli/{sessions-FDZ24XY4.mjs → sessions-FCD3L6BO.mjs} +4 -4
- package/dist/cli/{settings-6W42BCZE.js → settings-BLS3NVLD.js} +75 -75
- package/dist/cli/{settings-77ODFZUE.mjs → settings-TMJK4XRG.mjs} +8 -8
- package/dist/cli/{setup-T3FF5IRN.js → setup-CLGJAUHO.js} +42 -42
- package/dist/cli/{setup-5OBB5UGB.mjs → setup-XIWCJNVC.mjs} +7 -7
- package/dist/cli/{skills-ADG7CBUP.mjs → skills-CAZWF6XW.mjs} +5 -5
- package/dist/cli/skills-VRIWFWDM.js +29 -0
- package/dist/cli/tools-E4JIROSM.js +44 -0
- package/dist/cli/{tools-OBZRYZ7K.mjs → tools-ZW5RKTQD.mjs} +15 -15
- package/dist/cli/update-DFQ3SX6R.js +31 -0
- package/dist/cli/{update-ODKOYFCA.mjs → update-EEAZY5SI.mjs} +7 -7
- package/dist/cli/{workflow-TBLNAOXJ.js → workflow-6WUBJEPO.js} +15 -15
- package/dist/cli/{workflow-RGKEVZSP.mjs → workflow-QQW22LYJ.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +86 -86
- 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-ZA4FRBSX.js +0 -40
- package/dist/cli/git-RRZOWDCN.js +0 -24
- package/dist/cli/search-INZD56I2.js +0 -30
- package/dist/cli/skills-ALCERVAB.js +0 -29
- package/dist/cli/tools-FNWIMNNK.js +0 -44
- package/dist/cli/update-N7I4MXRK.js +0 -31
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkSSPHVLOFjs = require('./chunk-SSPHVLOF.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk7X7GEXHCjs = require('./chunk-7X7GEXHC.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ var _chunk5JJ6JYTLjs = require('./chunk-5JJ6JYTL.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkWX4K4TNGjs = require('./chunk-WX4K4TNG.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 = _chunkWX4K4TNGjs.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, () => ( _chunkWX4K4TNGjs.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, _chunkWX4K4TNGjs.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 = [..._chunkSSPHVLOFjs.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=${_chunkSSPHVLOFjs.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=${_chunkSSPHVLOFjs.SKILLS_NPX_PACKAGE}`,
|
|
139
139
|
"--",
|
|
140
140
|
"skills",
|
|
141
141
|
"add",
|
|
142
|
-
|
|
142
|
+
_chunkSSPHVLOFjs.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 = _chunkSSPHVLOFjs.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
|
+
`${_chunkSSPHVLOFjs.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(`${_chunkSSPHVLOFjs.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
|
+
_chunk7X7GEXHCjs.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 = _chunkWX4K4TNGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
239
239
|
const catalog = {
|
|
240
|
-
skillNames: [...
|
|
241
|
-
version:
|
|
240
|
+
skillNames: [..._chunkSSPHVLOFjs.DEFAULT_SDK_SKILL_NAMES],
|
|
241
|
+
version: _chunkWX4K4TNGjs.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
|
+
_chunk7X7GEXHCjs.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)) && !_chunkSSPHVLOFjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
253
|
+
_chunk7X7GEXHCjs.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, ..._chunkSSPHVLOFjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
286
286
|
];
|
|
287
287
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
288
|
-
|
|
288
|
+
_chunkWX4K4TNGjs.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 _chunkSSPHVLOFjs.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 _chunkSSPHVLOFjs.SkillsStateUnavailableError)) throw error;
|
|
306
|
+
_chunk7X7GEXHCjs.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
|
+
_chunk7X7GEXHCjs.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 ${_chunkSSPHVLOFjs.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
|
+
_chunk7X7GEXHCjs.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: _chunkWX4K4TNGjs.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
|
+
_chunkSSPHVLOFjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
421
421
|
}
|
|
422
|
-
|
|
422
|
+
_chunk7X7GEXHCjs.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 ${_chunkSSPHVLOFjs.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(_chunkSSPHVLOFjs.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
|
+
_chunk7X7GEXHCjs.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 _chunkSSPHVLOFjs.syncSdkSkillsIfNeeded.call(void 0, _chunkWX4K4TNGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
485
485
|
mode: "inline",
|
|
486
486
|
notices: "defer",
|
|
487
487
|
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 _chunkSSPHVLOFjs = require('./chunk-SSPHVLOF.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkSSPHVLOFjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7HUXIWE2.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-MTRBEEIJ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION,
|
|
20
20
|
autoDetectBaseUrl,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ensureProjectPrivatePathsIgnored,
|
|
23
23
|
resolveProjectPinTarget,
|
|
24
24
|
sdkCliStateDirPath
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-T56WZU3Q.mjs";
|
|
26
26
|
|
|
27
27
|
// src/cli/commands/skills.ts
|
|
28
28
|
import { spawn } from "child_process";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SLEUWLJE.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-HDFRJ4IT.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -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.446",
|
|
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."
|
|
@@ -178,11 +178,16 @@ function rateLimitQualifier(limit) {
|
|
|
178
178
|
].filter(Boolean);
|
|
179
179
|
return notes.length ? ` ${notes.join(", ")}` : "";
|
|
180
180
|
}
|
|
181
|
-
function exampleValue(field) {
|
|
181
|
+
function exampleValue(field, schema) {
|
|
182
182
|
if (field.example !== void 0) return field.example;
|
|
183
183
|
if (field.type.startsWith(RECORD)) {
|
|
184
184
|
const value = field.type.slice(RECORD.length).replace(/>( \| null)?$/, "");
|
|
185
|
-
return {
|
|
185
|
+
return {
|
|
186
|
+
key: exampleValue(
|
|
187
|
+
{ ...field, type: value },
|
|
188
|
+
isRecord(schema) ? schema.additionalProperties : void 0
|
|
189
|
+
)
|
|
190
|
+
};
|
|
186
191
|
}
|
|
187
192
|
const literal = /^"(?:[^"\\]|\\.)*"/.exec(field.type);
|
|
188
193
|
if (literal) return JSON.parse(literal[0]);
|
|
@@ -190,14 +195,30 @@ function exampleValue(field) {
|
|
|
190
195
|
if (type.includes("[]")) return [];
|
|
191
196
|
if (type.startsWith(SHAPE)) {
|
|
192
197
|
return Object.fromEntries(
|
|
193
|
-
(field.fields ?? []).filter((child) => child.required).map((child) => [
|
|
198
|
+
(field.fields ?? []).filter((child) => child.required).map((child) => [
|
|
199
|
+
child.name,
|
|
200
|
+
exampleValue(child, propertySchema(schema, child.name))
|
|
201
|
+
])
|
|
194
202
|
);
|
|
195
203
|
}
|
|
196
204
|
if (type.startsWith("object")) return {};
|
|
197
|
-
if (type.startsWith("integer") || type.startsWith("number"))
|
|
205
|
+
if (type.startsWith("integer") || type.startsWith("number")) {
|
|
206
|
+
return lowestNumber(schema);
|
|
207
|
+
}
|
|
198
208
|
if (type.startsWith("boolean")) return true;
|
|
199
209
|
return "...";
|
|
200
210
|
}
|
|
211
|
+
function propertySchema(schema, name) {
|
|
212
|
+
return isRecord(schema) && isRecord(schema.properties) ? schema.properties[name] : void 0;
|
|
213
|
+
}
|
|
214
|
+
function lowestNumber(schema) {
|
|
215
|
+
const bounds = isRecord(schema) ? schema : {};
|
|
216
|
+
const lowest = Math.max(
|
|
217
|
+
typeof bounds.minimum === "number" ? bounds.minimum : -Infinity,
|
|
218
|
+
typeof bounds.exclusiveMinimum === "number" ? bounds.exclusiveMinimum + 1 : -Infinity
|
|
219
|
+
);
|
|
220
|
+
return lowest >= 0 ? lowest : 1;
|
|
221
|
+
}
|
|
201
222
|
function shapeKey(fields) {
|
|
202
223
|
return JSON.stringify(
|
|
203
224
|
fields.map((field) => [
|
|
@@ -454,8 +475,14 @@ function examples(described, options) {
|
|
|
454
475
|
const { runner } = described;
|
|
455
476
|
const required = described.inputs.filter((field) => field.required);
|
|
456
477
|
const shown = options.verbose ? described.inputs : required.length ? required : described.inputs.slice(0, 1);
|
|
478
|
+
const inputSchema = runner.via === "tool" && runner.inputSchema !== void 0 ? withoutRefs(runner.inputSchema, runner.inputSchema) : void 0;
|
|
457
479
|
const input = JSON.stringify(
|
|
458
|
-
Object.fromEntries(
|
|
480
|
+
Object.fromEntries(
|
|
481
|
+
shown.map((field) => [
|
|
482
|
+
field.name,
|
|
483
|
+
exampleValue(field, propertySchema(inputSchema, field.name))
|
|
484
|
+
])
|
|
485
|
+
)
|
|
459
486
|
);
|
|
460
487
|
const read = options.verbose ? described.outputs : described.outputs.filter((field) => !field.secondary).slice(0, 1);
|
|
461
488
|
const reads = (expression) => read.flatMap((field) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D7ES6PAW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7HUXIWE2.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MTRBEEIJ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-T56WZU3Q.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZ2GUFYT6js = require('./chunk-Z2GUFYT6.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _chunkQFXPA2E4js = require('./chunk-QFXPA2E4.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkZ2XUZC34js = require('./chunk-Z2XUZC34.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -31,13 +31,13 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkZ2GUFYT6js.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
38
38
|
byok: async (_value, tool) => ({
|
|
39
39
|
details: _nullishCoalesce(tool.byok, () => ( {})),
|
|
40
|
-
lines:
|
|
40
|
+
lines: _chunkZ2XUZC34js.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
|
|
41
41
|
})
|
|
42
42
|
};
|
|
43
43
|
var isFeatureView = (value) => typeof value === "string" && Object.hasOwn(VIEWS, value);
|
|
@@ -113,7 +113,7 @@ async function describeName(name, options, lookups) {
|
|
|
113
113
|
const record2 = await lookups.play(reference);
|
|
114
114
|
if (!record2) return null;
|
|
115
115
|
return {
|
|
116
|
-
described:
|
|
116
|
+
described: _chunkZ2XUZC34js.describedPlay.call(void 0, record2),
|
|
117
117
|
record: { ...record2 },
|
|
118
118
|
schemas: {
|
|
119
119
|
inputSchema: _nullishCoalesce(record2.inputSchema, () => ( null)),
|
|
@@ -128,18 +128,18 @@ async function describeName(name, options, lookups) {
|
|
|
128
128
|
const features = toolFeatures(record2);
|
|
129
129
|
return {
|
|
130
130
|
described: {
|
|
131
|
-
...
|
|
131
|
+
..._chunkZ2GUFYT6js.describedTool.call(void 0, record2, name),
|
|
132
132
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
133
133
|
// it is a feature, described with --feature byok.
|
|
134
134
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
135
135
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
136
136
|
},
|
|
137
|
-
record:
|
|
137
|
+
record: _chunkZ2GUFYT6js.toolMetadataJsonForDescribe.call(void 0,
|
|
138
138
|
record2,
|
|
139
139
|
name,
|
|
140
140
|
lookups.seedStarterScript
|
|
141
141
|
),
|
|
142
|
-
schemas:
|
|
142
|
+
schemas: _chunkZ2GUFYT6js.publicToolSchemas.call(void 0, record2),
|
|
143
143
|
feature: (featureName, value) => {
|
|
144
144
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
145
145
|
return feature ? describeFeature(record2, feature, value, {
|
|
@@ -170,7 +170,7 @@ async function describeName(name, options, lookups) {
|
|
|
170
170
|
const note = shadows ? `Showing your workspace play "${name}". It has the same name as a Deepline ${shadows.kind.replace("_", " ")}; see that one with: ${shadows.describeCommand}` : null;
|
|
171
171
|
const verbose = options.verbose === true;
|
|
172
172
|
const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
|
|
173
|
-
const dashboardUrl = isPlay ?
|
|
173
|
+
const dashboardUrl = isPlay ? _chunkZ2XUZC34js.buildPlayDashboardUrl.call(void 0, lookups.baseUrl, described.id) : null;
|
|
174
174
|
if (options.webUrl) {
|
|
175
175
|
if (!dashboardUrl) {
|
|
176
176
|
return {
|
|
@@ -234,7 +234,7 @@ async function describeName(name, options, lookups) {
|
|
|
234
234
|
},
|
|
235
235
|
lines: [
|
|
236
236
|
`${described.id} [${described.kind.replace("_", " ")}]`,
|
|
237
|
-
...
|
|
237
|
+
..._chunkZ2XUZC34js.schemaLines.call(void 0, described, {
|
|
238
238
|
full: true,
|
|
239
239
|
secondary: true,
|
|
240
240
|
...fields.length ? { fields } : {}
|
|
@@ -243,17 +243,17 @@ async function describeName(name, options, lookups) {
|
|
|
243
243
|
} : {
|
|
244
244
|
envelope: {
|
|
245
245
|
...summary,
|
|
246
|
-
inputs: inputs.map(
|
|
247
|
-
outputs: outputs.map(
|
|
248
|
-
...described.rowInputs ? { rowInputs: described.rowInputs.map(
|
|
249
|
-
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(
|
|
250
|
-
runExamples:
|
|
246
|
+
inputs: inputs.map(_chunkZ2XUZC34js.topLevelField),
|
|
247
|
+
outputs: outputs.map(_chunkZ2XUZC34js.topLevelField),
|
|
248
|
+
...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunkZ2XUZC34js.topLevelField) } : {},
|
|
249
|
+
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunkZ2XUZC34js.topLevelField) } : {},
|
|
250
|
+
runExamples: _chunkZ2XUZC34js.examples.call(void 0, described, { verbose }),
|
|
251
251
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
252
252
|
...shadows ? { shadows, note } : {}
|
|
253
253
|
},
|
|
254
254
|
lines: [
|
|
255
255
|
...note ? [`Note: ${note}`, ""] : [],
|
|
256
|
-
...
|
|
256
|
+
..._chunkZ2XUZC34js.describedLines.call(void 0, described, {
|
|
257
257
|
cli: shown && (!named || options.cliExample === true),
|
|
258
258
|
play: shown && (!named || options.playExample === true),
|
|
259
259
|
explain: named,
|
|
@@ -270,7 +270,7 @@ async function describeName(name, options, lookups) {
|
|
|
270
270
|
// its value stands, so callers of the older commands read what they did.
|
|
271
271
|
{ ...view.envelope, ...record }
|
|
272
272
|
) : {
|
|
273
|
-
...
|
|
273
|
+
..._chunkZ2XUZC34js.describedJson.call(void 0, described, {
|
|
274
274
|
secondary: verbose || fields.length > 0,
|
|
275
275
|
verbose
|
|
276
276
|
}),
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MTRBEEIJ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-T56WZU3Q.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk7X7GEXHCjs = require('./chunk-7X7GEXHC.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunk7X7GEXHCjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|