deepline 0.3.458 → 0.3.459
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +0 -18
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +2 -0
- package/dist/cli/{auth-APD43NYT.mjs → auth-2RM2ZC6E.mjs} +4 -4
- package/dist/cli/auth-EAFWPDJG.js +40 -0
- package/dist/cli/{billing-TI4YOWAJ.js → billing-4BZABEOA.js} +73 -73
- package/dist/cli/{billing-QW4K272E.mjs → billing-FYF2GJ25.mjs} +4 -4
- package/dist/cli/{chunk-XI6AZJPO.js → chunk-2JSVKNLG.js} +3 -3
- package/dist/cli/{chunk-V6BEYE35.mjs → chunk-4EBJNT5C.mjs} +2 -2
- package/dist/cli/{chunk-W3OAT72T.js → chunk-5KC7RLJO.js} +6 -6
- package/dist/cli/{chunk-VYLWKTDQ.mjs → chunk-5WGW57KC.mjs} +3 -3
- package/dist/cli/{chunk-U5O5TZC2.mjs → chunk-7AGGDRNR.mjs} +1 -1
- package/dist/cli/{chunk-5KO62ZXQ.mjs → chunk-7DFM5YLL.mjs} +4 -4
- package/dist/cli/{chunk-7M6C4STX.js → chunk-ACCQ5OM7.js} +16 -16
- package/dist/cli/{chunk-4TWDW7PI.mjs → chunk-BIPMJKLI.mjs} +5 -5
- package/dist/cli/{chunk-K6IHE6R5.js → chunk-FBMVFOD7.js} +8 -8
- package/dist/cli/{chunk-JIDT3SCM.js → chunk-FFUQFRKZ.js} +20 -20
- package/dist/cli/{chunk-CF2GXP2O.js → chunk-FPPCTKV6.js} +2 -2
- package/dist/cli/{chunk-X3ZRKA3V.mjs → chunk-HU7JG4RL.mjs} +1 -1
- package/dist/cli/{chunk-AJQUFGTJ.js → chunk-HUVI6EBF.js} +1 -1
- package/dist/cli/{chunk-LJDJ5GPR.js → chunk-JOSOQJ5P.js} +51 -51
- package/dist/cli/{chunk-6FLTFNAY.js → chunk-KB4XJRQW.js} +8 -8
- package/dist/cli/{chunk-6UJJZWT2.mjs → chunk-KDDB5S6E.mjs} +3 -3
- package/dist/cli/{chunk-L27PA5GT.js → chunk-LGOI2BRX.js} +10 -10
- package/dist/cli/{chunk-OTN6GV74.mjs → chunk-LSJYTDEK.mjs} +1 -1
- package/dist/cli/{chunk-LZUXLXL3.mjs → chunk-MHMRLS7W.mjs} +3 -3
- package/dist/cli/{chunk-EMIR3EXE.mjs → chunk-MNNMPS6J.mjs} +1 -1
- package/dist/cli/{chunk-MNEN3RYE.mjs → chunk-NLRKZJZF.mjs} +2 -2
- package/dist/cli/{chunk-ZLL345RP.mjs → chunk-OD236M42.mjs} +2 -2
- package/dist/cli/{chunk-ECS3KXM7.mjs → chunk-OQW2YP3P.mjs} +1 -1
- package/dist/cli/{chunk-ECVZUWRR.js → chunk-OY4JQBJG.js} +2 -2
- package/dist/cli/{chunk-XBVZ35XJ.js → chunk-PI65FBEA.js} +81 -81
- package/dist/cli/{chunk-HJ5WE6S5.mjs → chunk-RLQDDJZZ.mjs} +1 -1
- package/dist/cli/{chunk-NDODDIEC.js → chunk-S5TTNBEZ.js} +35 -35
- package/dist/cli/{chunk-EO7WQN5X.mjs → chunk-SOUQUQQE.mjs} +8 -8
- package/dist/cli/{chunk-2A63IJ2J.js → chunk-U3VAYRUL.js} +6 -6
- package/dist/cli/{chunk-NXVHTBBS.js → chunk-UIKSAVAE.js} +26 -26
- package/dist/cli/{chunk-DHERSOIG.js → chunk-VLJXYDGZ.js} +4 -4
- package/dist/cli/{chunk-7MZQ64FI.mjs → chunk-Y35FCRLQ.mjs} +1 -1
- package/dist/cli/{chunk-AA2DMXBN.js → chunk-Z4YO4J4J.js} +50 -50
- package/dist/cli/{chunk-GFGBHE43.mjs → chunk-ZAJAGMXA.mjs} +2 -2
- package/dist/cli/{csv-NIKB3RQX.js → csv-LRIV3RXE.js} +12 -12
- package/dist/cli/{csv-VOX5XXBB.mjs → csv-SDVEU3O5.mjs} +3 -3
- package/dist/cli/{db-ZH2NUZ3F.js → db-JS4OEDNY.js} +25 -25
- package/dist/cli/{db-GETE5AIV.mjs → db-NHYULZTM.mjs} +4 -4
- package/dist/cli/{describe-LWGEU6IE.mjs → describe-H5F72Q3S.mjs} +13 -13
- package/dist/cli/{describe-JZ6QOTPY.js → describe-ZFKCZHOJ.js} +17 -17
- package/dist/cli/{executions-DUMCTK4E.mjs → executions-25YKX4K3.mjs} +4 -4
- package/dist/cli/{executions-CEVMJ4QY.js → executions-QPAKZTNQ.js} +6 -6
- package/dist/cli/{feedback-VI4N44TJ.js → feedback-O63Z5O2R.js} +7 -7
- package/dist/cli/{feedback-UEYC3V3O.mjs → feedback-Z3BES6L6.mjs} +3 -3
- package/dist/cli/git-KSRP3PNB.js +24 -0
- package/dist/cli/{git-BOMW65V5.mjs → git-V7S3IBLO.mjs} +4 -4
- package/dist/cli/index.js +132 -132
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-33X26VLN.mjs → legacy-noops-VRT5WZ5I.mjs} +4 -4
- package/dist/cli/{legacy-noops-SWPSUKTD.js → legacy-noops-ZLLYEGQ6.js} +7 -7
- package/dist/cli/{monitors-465GCZ73.mjs → monitors-44KSWY3M.mjs} +5 -5
- package/dist/cli/{monitors-6HMDLDKU.js → monitors-T7FKIDDY.js} +89 -89
- package/dist/cli/{org-CAAOHGTM.mjs → org-BZE4CGIT.mjs} +4 -4
- package/dist/cli/{org-JFQ4QBHQ.js → org-KPPG2KY4.js} +66 -66
- package/dist/cli/{play-NJP6HIQD.mjs → play-CHTP4NKR.mjs} +11 -11
- package/dist/cli/{play-UKD4KR4K.js → play-M5P74N3E.js} +284 -284
- package/dist/cli/{providers-UVHTTSKV.mjs → providers-CGLPOOXA.mjs} +4 -4
- package/dist/cli/{providers-YTRBZARB.js → providers-L3PK7NHU.js} +7 -7
- package/dist/cli/{quickstart-3GXVHJRL.js → quickstart-LJ7HELWE.js} +5 -5
- package/dist/cli/{quickstart-CB3TQ5L2.mjs → quickstart-NWG35AKK.mjs} +3 -3
- package/dist/cli/{search-NXA6526R.mjs → search-723TVSNC.mjs} +5 -5
- package/dist/cli/search-PESQULBG.js +30 -0
- package/dist/cli/{secrets-JFJK2X2N.mjs → secrets-ONN3Z5Y6.mjs} +4 -4
- package/dist/cli/{secrets-E3Y6YDKR.js → secrets-SVSSLPWB.js} +13 -13
- package/dist/cli/{sessions-HAZJLQQL.mjs → sessions-3KAEYQ3U.mjs} +4 -4
- package/dist/cli/{sessions-NKLP6TVY.js → sessions-7LYPPYUY.js} +5 -5
- package/dist/cli/{settings-BSD4DW4O.mjs → settings-2CBJI7FY.mjs} +9 -9
- package/dist/cli/{settings-D4LEZOEW.js → settings-JGJZO7EX.js} +76 -76
- package/dist/cli/{setup-KMZ4EFDK.js → setup-AIAOO7R4.js} +43 -43
- package/dist/cli/{setup-QO64H6YO.mjs → setup-BJCBDH34.mjs} +8 -8
- package/dist/cli/{skills-YLAH2YNN.mjs → skills-7QSQPQXX.mjs} +6 -6
- package/dist/cli/skills-WECIGARR.js +30 -0
- package/dist/cli/tools-HTEMYXT2.js +45 -0
- package/dist/cli/{tools-KGQ76YQE.mjs → tools-I7LYXHDR.mjs} +13 -13
- package/dist/cli/update-J4LSPXHD.js +32 -0
- package/dist/cli/{update-JXUSVBH7.mjs → update-LKY5OJ56.mjs} +8 -8
- package/dist/cli/{workflow-NYWZWN5Z.mjs → workflow-DD32BU7Y.mjs} +5 -5
- package/dist/cli/{workflow-YTXY76FN.js → workflow-Y4HGE7MB.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- 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-4CBIXFOR.js +0 -40
- package/dist/cli/git-QISWQQM3.js +0 -24
- package/dist/cli/search-YM4ATHTV.js +0 -30
- package/dist/cli/skills-T5VTI2LZ.js +0 -30
- package/dist/cli/tools-M574OF4H.js +0 -45
- package/dist/cli/update-WNG5DNNO.js +0 -32
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkJOSOQJ5Pjs = require('./chunk-JOSOQJ5P.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkU3VAYRULjs = require('./chunk-U3VAYRUL.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ var _chunk2A63IJ2Jjs = require('./chunk-2A63IJ2J.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkVLJXYDGZjs = require('./chunk-VLJXYDGZ.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 = _chunkVLJXYDGZjs.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, () => ( _chunkVLJXYDGZjs.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, _chunkVLJXYDGZjs.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 = [..._chunkJOSOQJ5Pjs.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=${_chunkJOSOQJ5Pjs.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=${_chunkJOSOQJ5Pjs.SKILLS_NPX_PACKAGE}`,
|
|
139
139
|
"--",
|
|
140
140
|
"skills",
|
|
141
141
|
"add",
|
|
142
|
-
|
|
142
|
+
_chunkJOSOQJ5Pjs.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 = _chunkJOSOQJ5Pjs.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
|
+
`${_chunkJOSOQJ5Pjs.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(`${_chunkJOSOQJ5Pjs.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
|
+
_chunkU3VAYRULjs.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 = _chunkVLJXYDGZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
239
239
|
const catalog = {
|
|
240
|
-
skillNames: [...
|
|
241
|
-
version:
|
|
240
|
+
skillNames: [..._chunkJOSOQJ5Pjs.DEFAULT_SDK_SKILL_NAMES],
|
|
241
|
+
version: _chunkVLJXYDGZjs.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
|
+
_chunkU3VAYRULjs.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)) && !_chunkJOSOQJ5Pjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
253
|
+
_chunkU3VAYRULjs.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, ..._chunkJOSOQJ5Pjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
286
286
|
];
|
|
287
287
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
288
|
-
|
|
288
|
+
_chunkVLJXYDGZjs.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 _chunkJOSOQJ5Pjs.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 _chunkJOSOQJ5Pjs.SkillsStateUnavailableError)) throw error;
|
|
306
|
+
_chunkU3VAYRULjs.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
|
+
_chunkU3VAYRULjs.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 ${_chunkJOSOQJ5Pjs.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
|
+
_chunkU3VAYRULjs.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: _chunkVLJXYDGZjs.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
|
+
_chunkJOSOQJ5Pjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
421
421
|
}
|
|
422
|
-
|
|
422
|
+
_chunkU3VAYRULjs.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 ${_chunkJOSOQJ5Pjs.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(_chunkJOSOQJ5Pjs.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
|
+
_chunkU3VAYRULjs.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 _chunkJOSOQJ5Pjs.syncSdkSkillsIfNeeded.call(void 0, _chunkVLJXYDGZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
485
485
|
mode: "inline",
|
|
486
486
|
notices: "defer",
|
|
487
487
|
claim
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
recentSearchRef,
|
|
7
7
|
registerDeprecatedSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MHMRLS7W.mjs";
|
|
9
9
|
import {
|
|
10
10
|
arrayField,
|
|
11
11
|
formatModelDescription,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import {
|
|
49
49
|
DeeplineClient,
|
|
50
50
|
validateExecutionIdempotencyKey
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-MNNMPS6J.mjs";
|
|
52
52
|
import {
|
|
53
53
|
stableStringify
|
|
54
54
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -58,18 +58,18 @@ import {
|
|
|
58
58
|
maybeAutoUpdateAndRelaunch,
|
|
59
59
|
registerCompatibilityCatalog,
|
|
60
60
|
runToolExecuteStage
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-7DFM5YLL.mjs";
|
|
62
62
|
import {
|
|
63
63
|
isCliTraceEnabled,
|
|
64
64
|
recordCliTrace,
|
|
65
65
|
resolveCliMaintenancePolicy
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-RLQDDJZZ.mjs";
|
|
67
67
|
import {
|
|
68
68
|
checkSdkCompatibility,
|
|
69
69
|
enforceSdkCompatibilityResponse,
|
|
70
70
|
flushDeferredSkillsSyncNotices,
|
|
71
71
|
syncSdkSkillsIfNeeded
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-5WGW57KC.mjs";
|
|
73
73
|
import {
|
|
74
74
|
printCommandEnvelope,
|
|
75
75
|
printCompactJson,
|
|
@@ -77,12 +77,12 @@ import {
|
|
|
77
77
|
printJsonError,
|
|
78
78
|
renderCommandEnvelopeText,
|
|
79
79
|
shouldEmitJson
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-Y35FCRLQ.mjs";
|
|
81
81
|
import {
|
|
82
82
|
readSdkSkillsLocalVersion,
|
|
83
83
|
resolveConfig,
|
|
84
84
|
sdkCliStateDirPath
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-7AGGDRNR.mjs";
|
|
86
86
|
import {
|
|
87
87
|
DeeplineError
|
|
88
88
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -971,7 +971,7 @@ Examples:
|
|
|
971
971
|
process.exitCode = await narrowView();
|
|
972
972
|
return;
|
|
973
973
|
}
|
|
974
|
-
const { describeAnything } = await import("./describe-
|
|
974
|
+
const { describeAnything } = await import("./describe-H5F72Q3S.mjs");
|
|
975
975
|
process.exitCode = await describeAnything(
|
|
976
976
|
toolId,
|
|
977
977
|
{
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkVLJXYDGZjs = require('./chunk-VLJXYDGZ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -288,8 +288,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
288
288
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
289
289
|
var defaultBrowserCommandRunner = childProcess;
|
|
290
290
|
function getAuthedHttpClient() {
|
|
291
|
-
const config =
|
|
292
|
-
return { config, http: new (0,
|
|
291
|
+
const config = _chunkVLJXYDGZjs.resolveConfig.call(void 0, );
|
|
292
|
+
return { config, http: new (0, _chunkVLJXYDGZjs.HttpClient)(config) };
|
|
293
293
|
}
|
|
294
294
|
function stableOsUserId() {
|
|
295
295
|
try {
|
|
@@ -629,7 +629,7 @@ function collectLocalEnvInfo() {
|
|
|
629
629
|
os: `${process.platform} ${process.arch}`,
|
|
630
630
|
node_version: process.version,
|
|
631
631
|
home_dir: homeDir,
|
|
632
|
-
agent_runtime:
|
|
632
|
+
agent_runtime: _chunkVLJXYDGZjs.detectAgentRuntime.call(void 0, )
|
|
633
633
|
};
|
|
634
634
|
const env = process.env;
|
|
635
635
|
const optional = {
|
|
@@ -876,9 +876,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
876
876
|
}
|
|
877
877
|
function withAgentCommandContext(value) {
|
|
878
878
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
879
|
-
return
|
|
879
|
+
return _chunkVLJXYDGZjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
880
880
|
...valueRecord,
|
|
881
|
-
command_context:
|
|
881
|
+
command_context: _chunkVLJXYDGZjs.resolveCliCommandContext.call(void 0, )
|
|
882
882
|
} : value;
|
|
883
883
|
}
|
|
884
884
|
function printJson(value, fields) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkU3VAYRULjs = require('./chunk-U3VAYRUL.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkVLJXYDGZjs = require('./chunk-VLJXYDGZ.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkU3VAYRULjs.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkU3VAYRULjs.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkU3VAYRULjs.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkU3VAYRULjs.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkU3VAYRULjs.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkU3VAYRULjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkU3VAYRULjs.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkU3VAYRULjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkVLJXYDGZjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkU3VAYRULjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkU3VAYRULjs.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkU3VAYRULjs.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkU3VAYRULjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkU3VAYRULjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkHUVI6EBFjs = require('./chunk-HUVI6EBF.js');
|
|
21
21
|
|
|
22
22
|
// src/config.ts
|
|
23
23
|
|
|
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
// src/version.ts
|
|
652
|
-
var SDK_VERSION =
|
|
653
|
-
var SDK_API_MAJOR =
|
|
654
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
652
|
+
var SDK_VERSION = _chunkHUVI6EBFjs.SDK_RELEASE.version;
|
|
653
|
+
var SDK_API_MAJOR = _chunkHUVI6EBFjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
654
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkHUVI6EBFjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
655
655
|
|
|
656
656
|
// src/agent-runtime.ts
|
|
657
657
|
|