deepline 0.3.464 → 0.3.466
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 +2 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +130 -57
- package/dist/cli/{auth-GMSI6QWR.mjs → auth-HYIPYSKK.mjs} +5 -5
- package/dist/cli/auth-Y3UTWD3W.js +41 -0
- package/dist/cli/{billing-6G2RFLM7.mjs → billing-5S6SGBUP.mjs} +6 -6
- package/dist/cli/{billing-MGH36CNP.js → billing-NG62QGPT.js} +77 -77
- package/dist/cli/{chunk-ZQERHPZA.js → chunk-22BKA2QL.js} +26 -26
- package/dist/cli/{chunk-BMUDQMYE.js → chunk-3DVJ2IPG.js} +7 -7
- package/dist/cli/{chunk-MQNBOSQP.mjs → chunk-46YQQOTC.mjs} +5 -5
- package/dist/cli/{chunk-WLIFUH6W.js → chunk-4QJ63YHC.js} +8 -8
- package/dist/cli/{chunk-K3BARC72.js → chunk-5BEKJUOK.js} +2 -2
- package/dist/cli/{chunk-HGUHBLX5.mjs → chunk-5EUJKY3G.mjs} +3 -3
- package/dist/cli/{chunk-6A7OH2PV.mjs → chunk-6CYRIFZ3.mjs} +2 -2
- package/dist/cli/{chunk-6KDOO7IM.mjs → chunk-6R36QIG4.mjs} +4 -4
- package/dist/cli/{chunk-FEWZT4RV.js → chunk-7IWYO475.js} +21 -21
- package/dist/cli/{chunk-OA7IIOLW.mjs → chunk-7QITO7XO.mjs} +4 -4
- package/dist/cli/{chunk-4XNXFHG6.js → chunk-A7MWUG5H.js} +1 -1
- package/dist/cli/{chunk-ACZLDP7L.js → chunk-B7BNWOG6.js} +3 -3
- package/dist/cli/{chunk-VZX4P5FT.js → chunk-CMXFOZVG.js} +93 -93
- package/dist/cli/{chunk-ZIMCLWEW.js → chunk-EOKUL6XS.js} +5 -5
- package/dist/cli/{chunk-44BEFU62.mjs → chunk-F6H74EFB.mjs} +2 -2
- package/dist/cli/{chunk-RFOQRCMW.mjs → chunk-FWHRCZET.mjs} +4 -4
- package/dist/cli/{chunk-VYDOPASG.mjs → chunk-H5MYPDO2.mjs} +1 -1
- package/dist/cli/{chunk-O4ZMADW4.js → chunk-HOFXQYRF.js} +7 -7
- package/dist/cli/{chunk-MP3O4ISC.mjs → chunk-IEQPOBTK.mjs} +1 -1
- package/dist/cli/{chunk-O4AOYLZE.mjs → chunk-JLE5UYZV.mjs} +2 -2
- package/dist/cli/{chunk-TU3M7UXJ.js → chunk-LDEJ4NUP.js} +10 -10
- package/dist/cli/{chunk-EQNJUG3N.js → chunk-MTH7WIE3.js} +53 -53
- package/dist/cli/{chunk-XMDBN2K7.mjs → chunk-NJ6KQLMO.mjs} +10 -10
- package/dist/cli/{chunk-GVJVBBGV.js → chunk-NQH7E3F2.js} +3 -3
- package/dist/cli/{chunk-E4QJKJH6.js → chunk-NYNNNOJW.js} +51 -51
- package/dist/cli/{chunk-FVAB2JRO.js → chunk-OB5NON4G.js} +8 -8
- package/dist/cli/{chunk-NI3QFUK7.js → chunk-PEUWKPY4.js} +4 -4
- package/dist/cli/{chunk-TMVBBGSK.mjs → chunk-QMHBWFU5.mjs} +1 -1
- package/dist/cli/{chunk-DO3FSI4C.mjs → chunk-QTTYIPFY.mjs} +1 -1
- package/dist/cli/{chunk-UM363DQF.mjs → chunk-QWMXP2IP.mjs} +2 -2
- package/dist/cli/{chunk-3AIMFE3Z.js → chunk-QZKSG7XZ.js} +36 -36
- package/dist/cli/{chunk-5XIGEYYK.js → chunk-R2SQN2CD.js} +6 -6
- package/dist/cli/{chunk-PPQL5F4P.mjs → chunk-RCMT6AZ5.mjs} +1 -1
- package/dist/cli/{chunk-2RFTOESC.js → chunk-RGRSUMN6.js} +5 -5
- package/dist/cli/{chunk-X3XJ6ZSJ.js → chunk-RRCVAVM7.js} +2 -2
- package/dist/cli/{chunk-5CKIO7KA.mjs → chunk-RSXOGXGX.mjs} +1 -1
- package/dist/cli/{chunk-6E2KNNTD.mjs → chunk-SQFBLBYC.mjs} +2 -2
- package/dist/cli/{chunk-UOAHDEAI.js → chunk-SWUSDFG2.js} +9 -9
- package/dist/cli/{chunk-VQHEMZ33.mjs → chunk-UHAKSLL2.mjs} +2 -2
- package/dist/cli/{chunk-J327QVQV.mjs → chunk-V27TVT7P.mjs} +1 -1
- package/dist/cli/{chunk-6COF5LIE.mjs → chunk-VSEKVRAP.mjs} +2 -2
- package/dist/cli/{chunk-ZAB6KCZW.js → chunk-VVCMP45C.js} +3 -3
- package/dist/cli/{chunk-CUZVOPPY.mjs → chunk-W4XWGNW4.mjs} +3 -3
- package/dist/cli/{chunk-M4QVY6RW.mjs → chunk-WKOWXTDR.mjs} +2 -2
- package/dist/cli/{chunk-3MKRAI6R.mjs → chunk-YHPUJI7G.mjs} +5 -5
- package/dist/cli/{chunk-K4DVRQTY.js → chunk-ZBWKWMSH.js} +16 -16
- package/dist/cli/{csv-W2JPV57R.js → csv-AD2DLLLL.js} +13 -13
- package/dist/cli/{csv-4ZVMBOCK.mjs → csv-ZGZX2IIP.mjs} +4 -4
- package/dist/cli/{db-TVK6BLRB.mjs → db-LUFEKPEK.mjs} +6 -6
- package/dist/cli/{db-6YNFDHEW.js → db-NBY4LHAY.js} +27 -27
- package/dist/cli/{describe-JFN4ECPO.mjs → describe-MLXMC47U.mjs} +17 -17
- package/dist/cli/describe-Z66CQESH.js +48 -0
- package/dist/cli/{executions-J4CAN7RB.js → executions-HDJMKNBR.js} +8 -8
- package/dist/cli/{executions-2FK4FFKE.mjs → executions-JKVWM3P4.mjs} +6 -6
- package/dist/cli/{feedback-EYRRLA2P.mjs → feedback-7E5Z4ZO5.mjs} +4 -4
- package/dist/cli/{feedback-NOO4OM4U.js → feedback-VXMP7HDF.js} +8 -8
- package/dist/cli/git-NNSJKW3V.js +25 -0
- package/dist/cli/{git-D3Q4JKBC.mjs → git-UFMRAGMY.mjs} +5 -5
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-5ZGRKSN3.js → legacy-noops-4QKREY4K.js} +8 -8
- package/dist/cli/{legacy-noops-SUFJWBLZ.mjs → legacy-noops-BDULCVGD.mjs} +5 -5
- package/dist/cli/{monitors-3QFJZA6Z.js → monitors-LNNSTELC.js} +91 -91
- package/dist/cli/{monitors-IRDIIR6J.mjs → monitors-S6TDJYCK.mjs} +7 -7
- package/dist/cli/{org-2VA2FSMG.mjs → org-EEEMWKQ2.mjs} +6 -6
- package/dist/cli/{org-275OJJ7W.js → org-OWM3IGOK.js} +68 -68
- package/dist/cli/{pages-SPRBOZRA.js → pages-7JF6AKDI.js} +17 -17
- package/dist/cli/{pages-WCUEBFYU.mjs → pages-ZYYMQUDX.mjs} +6 -6
- package/dist/cli/{play-7UL5H6QU.mjs → play-5Z3E7KL6.mjs} +17 -17
- package/dist/cli/{play-NMHUWBET.js → play-WLAFXAHR.js} +304 -304
- package/dist/cli/{providers-WSCKV557.mjs → providers-JUT7IYD3.mjs} +6 -6
- package/dist/cli/{providers-72LUJEAT.js → providers-TTDFQQU2.js} +9 -9
- package/dist/cli/{quickstart-XSUUAE2Y.js → quickstart-OZYEGICI.js} +6 -6
- package/dist/cli/{quickstart-K4LAKJKJ.mjs → quickstart-P4TL4NWJ.mjs} +4 -4
- package/dist/cli/{run-MLV2CLW7.js → run-BYGE4LUB.js} +36 -36
- package/dist/cli/{run-R2MOXXHH.mjs → run-CM6OZUBR.mjs} +22 -22
- package/dist/cli/search-RIG4LTCS.js +32 -0
- package/dist/cli/{search-WHJZNWKE.mjs → search-RZRJ73YL.mjs} +7 -7
- package/dist/cli/{secrets-YGVOFLI5.mjs → secrets-DHI6ZMKE.mjs} +6 -6
- package/dist/cli/{secrets-7PXFBOFY.js → secrets-XLTN3SCL.js} +15 -15
- package/dist/cli/{sessions-ASXXZI42.js → sessions-6NCQQXVK.js} +6 -6
- package/dist/cli/{sessions-G7I54W4L.mjs → sessions-MZD5WZBT.mjs} +5 -5
- package/dist/cli/{settings-RTEBMDPC.js → settings-JJH72W5V.js} +78 -78
- package/dist/cli/{settings-4GFO6JYO.mjs → settings-S6GQ4XFZ.mjs} +11 -11
- package/dist/cli/{setup-A6V2MJK7.js → setup-3BIOG6N2.js} +44 -44
- package/dist/cli/{setup-4RJGKSDC.mjs → setup-ZJ4G54XN.mjs} +9 -9
- package/dist/cli/{skills-432W6EGS.mjs → skills-FBH4REPB.mjs} +7 -7
- package/dist/cli/skills-ODISCL7S.js +31 -0
- package/dist/cli/tools-IHBHDI4P.js +55 -0
- package/dist/cli/{tools-SABREK3C.mjs → tools-J6YGZTD5.mjs} +16 -16
- package/dist/cli/update-5O3HDR5O.js +33 -0
- package/dist/cli/{update-F7NO5RDW.mjs → update-6CSRALIQ.mjs} +9 -9
- package/dist/cli/{workflow-TF6YDWTM.js → workflow-2ETKYSJV.js} +17 -17
- package/dist/cli/{workflow-F4N7CFUX.mjs → workflow-3ATSB7HQ.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +96 -96
- 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-P4E7M3AV.js +0 -41
- package/dist/cli/describe-APW5TWBT.js +0 -48
- package/dist/cli/git-FPF6DT43.js +0 -25
- package/dist/cli/search-AYFUV6YV.js +0 -32
- package/dist/cli/skills-GOQECD7H.js +0 -31
- package/dist/cli/tools-JXYN7WOE.js +0 -55
- package/dist/cli/update-BSB4TJER.js +0 -33
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkMTH7WIE3js = require('./chunk-MTH7WIE3.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkHOFXQYRFjs = require('./chunk-HOFXQYRF.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkNQH7E3F2js = require('./chunk-NQH7E3F2.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkPEUWKPY4js = require('./chunk-PEUWKPY4.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
var _child_process = require('child_process');
|
|
@@ -77,7 +77,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
77
77
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
78
78
|
}
|
|
79
79
|
function resolveLocalRoot() {
|
|
80
|
-
const target =
|
|
80
|
+
const target = _chunkNQH7E3F2js.resolveProjectPinTarget.call(void 0, );
|
|
81
81
|
if (!target.ok) {
|
|
82
82
|
throw new Error(
|
|
83
83
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -88,7 +88,7 @@ function resolveLocalRoot() {
|
|
|
88
88
|
return target.dir;
|
|
89
89
|
}
|
|
90
90
|
function detectSkillsAgents(input) {
|
|
91
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
91
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkPEUWKPY4js.detectAgentRuntime.call(void 0, )));
|
|
92
92
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
93
93
|
if (knownAgent) return [knownAgent];
|
|
94
94
|
const roots = [
|
|
@@ -103,11 +103,11 @@ function detectSkillsAgents(input) {
|
|
|
103
103
|
return detected.length > 0 ? detected : ["*"];
|
|
104
104
|
}
|
|
105
105
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
106
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
106
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkNQH7E3F2js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
107
107
|
}
|
|
108
108
|
function buildSkillsPlan(input) {
|
|
109
109
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
110
|
-
const legacyNames = [...
|
|
110
|
+
const legacyNames = [..._chunkMTH7WIE3js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
111
111
|
(a, b) => a.localeCompare(b)
|
|
112
112
|
);
|
|
113
113
|
return {
|
|
@@ -121,7 +121,7 @@ function buildSkillsPlan(input) {
|
|
|
121
121
|
args: [
|
|
122
122
|
"exec",
|
|
123
123
|
"--yes",
|
|
124
|
-
`--package=${
|
|
124
|
+
`--package=${_chunkMTH7WIE3js.SKILLS_NPX_PACKAGE}`,
|
|
125
125
|
"--",
|
|
126
126
|
"skills",
|
|
127
127
|
"remove",
|
|
@@ -137,11 +137,11 @@ function buildSkillsPlan(input) {
|
|
|
137
137
|
args: [
|
|
138
138
|
"exec",
|
|
139
139
|
"--yes",
|
|
140
|
-
`--package=${
|
|
140
|
+
`--package=${_chunkMTH7WIE3js.SKILLS_NPX_PACKAGE}`,
|
|
141
141
|
"--",
|
|
142
142
|
"skills",
|
|
143
143
|
"add",
|
|
144
|
-
|
|
144
|
+
_chunkMTH7WIE3js.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
145
145
|
"--agent",
|
|
146
146
|
...input.agents,
|
|
147
147
|
...scopeArgs,
|
|
@@ -178,7 +178,7 @@ function readSkillsInstallState(path) {
|
|
|
178
178
|
}
|
|
179
179
|
function runProcess(command, args, cwd) {
|
|
180
180
|
return new Promise((resolve, reject) => {
|
|
181
|
-
const plan =
|
|
181
|
+
const plan = _chunkMTH7WIE3js.resolveShellSpawn.call(void 0,
|
|
182
182
|
command,
|
|
183
183
|
args,
|
|
184
184
|
process.platform,
|
|
@@ -200,7 +200,7 @@ function runProcess(command, args, cwd) {
|
|
|
200
200
|
child.kill("SIGTERM");
|
|
201
201
|
reject(
|
|
202
202
|
new Error(
|
|
203
|
-
`${
|
|
203
|
+
`${_chunkMTH7WIE3js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
204
204
|
)
|
|
205
205
|
);
|
|
206
206
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -211,7 +211,7 @@ function runProcess(command, args, cwd) {
|
|
|
211
211
|
child.once("close", (code) => {
|
|
212
212
|
clearTimeout(timeout);
|
|
213
213
|
if (code && stderr.trim()) {
|
|
214
|
-
process.stderr.write(`${
|
|
214
|
+
process.stderr.write(`${_chunkMTH7WIE3js.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
215
215
|
`);
|
|
216
216
|
}
|
|
217
217
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -225,7 +225,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
225
225
|
scope = normalizeScope(options.scope);
|
|
226
226
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
227
227
|
} catch (error) {
|
|
228
|
-
|
|
228
|
+
_chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
|
|
229
229
|
{
|
|
230
230
|
ok: false,
|
|
231
231
|
status: "failed",
|
|
@@ -237,22 +237,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
237
237
|
);
|
|
238
238
|
return 2;
|
|
239
239
|
}
|
|
240
|
-
const baseUrl =
|
|
240
|
+
const baseUrl = _chunkNQH7E3F2js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
241
241
|
const catalog = {
|
|
242
|
-
skillNames: [...
|
|
243
|
-
version:
|
|
242
|
+
skillNames: [..._chunkMTH7WIE3js.DEFAULT_SDK_SKILL_NAMES],
|
|
243
|
+
version: _chunkPEUWKPY4js.SDK_VERSION
|
|
244
244
|
};
|
|
245
245
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
246
246
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
247
247
|
if (options.dryRun) {
|
|
248
|
-
|
|
248
|
+
_chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
|
|
249
249
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
250
250
|
{ json: options.json }
|
|
251
251
|
);
|
|
252
252
|
return 0;
|
|
253
253
|
}
|
|
254
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
255
|
-
|
|
254
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkMTH7WIE3js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
255
|
+
_chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
|
|
256
256
|
{
|
|
257
257
|
ok: true,
|
|
258
258
|
status: "current",
|
|
@@ -284,10 +284,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
284
284
|
}
|
|
285
285
|
if (scope === "local" && root) {
|
|
286
286
|
const managedNames = [
|
|
287
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
287
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkMTH7WIE3js.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
288
288
|
];
|
|
289
289
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
290
|
-
|
|
290
|
+
_chunkNQH7E3F2js.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
291
291
|
".deepline/",
|
|
292
292
|
...agentRoots.flatMap(
|
|
293
293
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -296,7 +296,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
296
296
|
}
|
|
297
297
|
let lease;
|
|
298
298
|
try {
|
|
299
|
-
lease = scope === "global" ? await
|
|
299
|
+
lease = scope === "global" ? await _chunkMTH7WIE3js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
300
300
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
301
301
|
onWait: () => process.stderr.write(
|
|
302
302
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -304,8 +304,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
304
304
|
}) : { release: () => {
|
|
305
305
|
} };
|
|
306
306
|
} catch (error) {
|
|
307
|
-
if (!(error instanceof
|
|
308
|
-
|
|
307
|
+
if (!(error instanceof _chunkMTH7WIE3js.SkillsStateUnavailableError)) throw error;
|
|
308
|
+
_chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
|
|
309
309
|
{
|
|
310
310
|
ok: false,
|
|
311
311
|
status: "failed",
|
|
@@ -321,7 +321,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
321
321
|
return 5;
|
|
322
322
|
}
|
|
323
323
|
if (!lease) {
|
|
324
|
-
|
|
324
|
+
_chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
|
|
325
325
|
{
|
|
326
326
|
ok: false,
|
|
327
327
|
status: "failed",
|
|
@@ -330,7 +330,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
330
330
|
scope,
|
|
331
331
|
agents,
|
|
332
332
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
333
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
333
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkMTH7WIE3js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
334
334
|
},
|
|
335
335
|
{ json: options.json }
|
|
336
336
|
);
|
|
@@ -367,7 +367,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
367
367
|
throw new Error("Could not install the current Deepline skills.");
|
|
368
368
|
}
|
|
369
369
|
} catch (error) {
|
|
370
|
-
|
|
370
|
+
_chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
|
|
371
371
|
{
|
|
372
372
|
ok: false,
|
|
373
373
|
status: "failed",
|
|
@@ -406,7 +406,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
406
406
|
{
|
|
407
407
|
schemaVersion: 1,
|
|
408
408
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
409
|
-
cliVersion:
|
|
409
|
+
cliVersion: _chunkPEUWKPY4js.SDK_VERSION,
|
|
410
410
|
scope,
|
|
411
411
|
agents,
|
|
412
412
|
skillsVersion: plan.version,
|
|
@@ -419,9 +419,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
419
419
|
"utf8"
|
|
420
420
|
);
|
|
421
421
|
if (scope === "global") {
|
|
422
|
-
|
|
422
|
+
_chunkMTH7WIE3js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
423
423
|
}
|
|
424
|
-
|
|
424
|
+
_chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
|
|
425
425
|
{
|
|
426
426
|
ok: true,
|
|
427
427
|
status: "complete",
|
|
@@ -452,7 +452,7 @@ function registerSkillsCommand(program) {
|
|
|
452
452
|
"after",
|
|
453
453
|
`
|
|
454
454
|
Notes:
|
|
455
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
455
|
+
This command reinstalls current Deepline-managed skills using ${_chunkMTH7WIE3js.SKILLS_NPX_PACKAGE},
|
|
456
456
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
457
457
|
persistent project.
|
|
458
458
|
|
|
@@ -464,13 +464,13 @@ Examples:
|
|
|
464
464
|
).action(async (options) => {
|
|
465
465
|
process.exitCode = await runSkillsCommand(options);
|
|
466
466
|
});
|
|
467
|
-
program.command(
|
|
467
|
+
program.command(_chunkMTH7WIE3js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
468
468
|
"--claim <token>",
|
|
469
469
|
"Owner token of the leases this child was started for."
|
|
470
470
|
).action(async (options) => {
|
|
471
471
|
const claim = _optionalChain([options, 'access', _ => _.claim, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]);
|
|
472
472
|
if (!claim) {
|
|
473
|
-
|
|
473
|
+
_chunkHOFXQYRFjs.printCommandEnvelope.call(void 0,
|
|
474
474
|
{
|
|
475
475
|
ok: false,
|
|
476
476
|
status: "failed",
|
|
@@ -483,7 +483,7 @@ Examples:
|
|
|
483
483
|
process.exitCode = 2;
|
|
484
484
|
return;
|
|
485
485
|
}
|
|
486
|
-
await
|
|
486
|
+
await _chunkMTH7WIE3js.syncSdkSkillsIfNeeded.call(void 0, _chunkNQH7E3F2js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
487
487
|
mode: "inline",
|
|
488
488
|
notices: "defer",
|
|
489
489
|
claim
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5BEKJUOKjs = require('./chunk-5BEKJUOK.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkMTH7WIE3js = require('./chunk-MTH7WIE3.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -14,17 +14,17 @@ function usesInlinePlayAdmission(command, args) {
|
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured") {
|
|
17
|
-
if (maintenancePolicy !== "off")
|
|
18
|
-
const compatibility = await
|
|
17
|
+
if (maintenancePolicy !== "off") _chunkMTH7WIE3js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
18
|
+
const compatibility = await _chunk5BEKJUOKjs.traceCliSpan.call(void 0,
|
|
19
19
|
"cli.sdk_compatibility",
|
|
20
20
|
{ baseUrl, command: "plays run" },
|
|
21
|
-
() =>
|
|
21
|
+
() => _chunkMTH7WIE3js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
22
22
|
command: "plays run",
|
|
23
23
|
persistCache: maintenancePolicy !== "off"
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
26
|
if (compatibility.error) throw compatibility.error;
|
|
27
|
-
|
|
27
|
+
_chunkMTH7WIE3js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
28
28
|
quietAdvisory: true
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunk3DVJ2IPGjs = require('./chunk-3DVJ2IPG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNQH7E3F2js = require('./chunk-NQH7E3F2.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkNQH7E3F2js.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunk3DVJ2IPGjs.PlayClient)(
|
|
142
|
+
new (0, _chunkNQH7E3F2js.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -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 _chunkMTH7WIE3js = require('./chunk-MTH7WIE3.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 = _chunkMTH7WIE3js.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,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6CYRIFZ3.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RSXOGXGX.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk3DVJ2IPGjs = require('./chunk-3DVJ2IPG.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkJKVRBCZLjs = require('./chunk-JKVRBCZL.js');
|
|
@@ -11,7 +11,7 @@ var _chunkJKVRBCZLjs = require('./chunk-JKVRBCZL.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkHOFXQYRFjs = require('./chunk-HOFXQYRF.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
|
|
|
579
579
|
return raw;
|
|
580
580
|
}
|
|
581
581
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
582
|
-
const selection =
|
|
582
|
+
const selection = _chunkHOFXQYRFjs.parseJsonFields.call(void 0, args, "run");
|
|
583
583
|
args = selection.args;
|
|
584
584
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
585
585
|
let filePath = null;
|
|
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
591
591
|
let revisionSelector = null;
|
|
592
592
|
const watch = !args.includes("--no-wait");
|
|
593
593
|
const dryRun = args.includes("--dry-run");
|
|
594
|
-
let jsonOutput = dryRun ?
|
|
594
|
+
let jsonOutput = dryRun ? _chunkHOFXQYRFjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkHOFXQYRFjs.argsWantJson.call(void 0, args);
|
|
595
595
|
const fullJson = args.includes("--full");
|
|
596
596
|
const force = args.includes("--force");
|
|
597
597
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
654
654
|
"--log-level requires one of: debug, info, warn, error."
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
|
-
const parsed =
|
|
657
|
+
const parsed = _chunk3DVJ2IPGjs.parseLogLevel.call(void 0, value);
|
|
658
658
|
if (!parsed) {
|
|
659
659
|
throw new Error(
|
|
660
660
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
972
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
973
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
974
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
975
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk3DVJ2IPGjs.parseLogLevel.call(void 0, options.logLevel);
|
|
976
976
|
if (!logLevel)
|
|
977
977
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
978
978
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
986
986
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
987
987
|
logLevel = "debug";
|
|
988
988
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
989
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
990
|
-
[...fullJson ? ["--full"] : [], ...
|
|
989
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkHOFXQYRFjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkHOFXQYRFjs.jsonFieldArgs.call(void 0, options.json)],
|
|
991
991
|
"run"
|
|
992
992
|
).fields;
|
|
993
993
|
const watch = options.wait === false ? false : base.watch;
|
|
994
994
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
995
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
995
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkHOFXQYRFjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
27
27
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
28
28
|
SDK_API_MAJOR
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-IEQPOBTK.mjs";
|
|
30
30
|
import {
|
|
31
31
|
CustomerDbQueryOutcomeUnknownError
|
|
32
32
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -4853,7 +4853,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
4853
4853
|
const probe = await fetchPage(0, 1);
|
|
4854
4854
|
const lastStoredSeq = probe.lastStoredSeq;
|
|
4855
4855
|
const oldestStoredSeq = probe.entries[0]?.seq ?? null;
|
|
4856
|
-
const upperSeq = beforeSequence === null ?
|
|
4856
|
+
const upperSeq = beforeSequence === null ? lastStoredSeq : Math.min(beforeSequence - 1, lastStoredSeq);
|
|
4857
4857
|
const windowEndSeq = Math.min(upperSeq, lastStoredSeq);
|
|
4858
4858
|
let afterSeq = options?.all ? 0 : Math.max(0, windowEndSeq - limit);
|
|
4859
4859
|
const entries = [];
|
|
@@ -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.466",
|
|
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."
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UHAKSLL2.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-FAG4DFUC.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6CYRIFZ3.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -6,7 +6,7 @@ var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkHOFXQYRFjs = require('./chunk-HOFXQYRF.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 _chunkHOFXQYRFjs.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 _chunkHOFXQYRFjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options) {
|
|
648
648
|
let temp;
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6CYRIFZ3.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RSXOGXGX.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
detectAgentRuntime
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IEQPOBTK.mjs";
|
|
31
31
|
|
|
32
32
|
// src/cli/commands/auth.ts
|
|
33
33
|
import {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RCMT6AZ5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6R36QIG4.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-46YQQOTC.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6R36QIG4.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6CYRIFZ3.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RSXOGXGX.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IEQPOBTK.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|