deepline 0.3.548 → 0.3.549
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 +93 -11
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/plays/check-local-play-graph.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +11 -0
- package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +203 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +20 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +33 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +19 -3
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-failure-codes.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +36 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +93 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +9 -1
- package/dist/bundling-sources/shared_libs/plays/play-check-compact.ts +636 -0
- package/dist/cli/auth-UVEZIP3H.js +43 -0
- package/dist/cli/{auth-YOOVLLUL.mjs → auth-YENF525S.mjs} +5 -5
- package/dist/cli/{billing-HETIOUD6.js → billing-52GAHIDZ.js} +95 -95
- package/dist/cli/{billing-2NCNX6L2.mjs → billing-XPXB27G7.mjs} +9 -9
- package/dist/cli/{chunk-IIWXBRDK.js → chunk-3IUQNHIG.js} +3 -3
- package/dist/cli/{chunk-HIMZ57QD.mjs → chunk-4AUV5QJF.mjs} +5 -5
- package/dist/cli/{chunk-PVE3A2BO.js → chunk-4DJNXAPH.js} +75 -37
- package/dist/cli/{chunk-WIHQAZPV.js → chunk-4HSSPT73.js} +6 -6
- package/dist/cli/{chunk-OGDQFVCP.mjs → chunk-4QUWXUUJ.mjs} +35 -6
- package/dist/cli/{chunk-CXZLHBNK.js → chunk-5622PYAP.js} +4 -4
- package/dist/cli/{chunk-F4ON5COB.mjs → chunk-5CXE22BI.mjs} +2 -2
- package/dist/cli/{chunk-HU3DDLGD.mjs → chunk-5T37KQNG.mjs} +5 -5
- package/dist/cli/{chunk-T3RDWG5J.js → chunk-7FY7AHR6.js} +2 -2
- package/dist/cli/{chunk-PVQCX6KQ.js → chunk-ADWMIZCB.js} +67 -9
- package/dist/cli/{chunk-OQCYSLML.mjs → chunk-ANOTB6V3.mjs} +4 -4
- package/dist/cli/{chunk-XKEBQVCP.mjs → chunk-AZSVDAXT.mjs} +5 -5
- package/dist/cli/{chunk-NFMX7BRF.mjs → chunk-BDOLPGHD.mjs} +2 -2
- package/dist/cli/{chunk-VK2GSTRN.js → chunk-BDUZJX4V.js} +26 -26
- package/dist/cli/{chunk-7H6TQ6W2.js → chunk-BPBPY42E.js} +5 -5
- package/dist/cli/{chunk-3QRU6RY7.mjs → chunk-CX4KGWCH.mjs} +3 -3
- package/dist/cli/{chunk-HTZIJORU.js → chunk-CXFOYRI4.js} +99 -99
- package/dist/cli/{chunk-U35ZLVBA.mjs → chunk-DCTEH6N5.mjs} +2 -2
- package/dist/cli/{chunk-LAVPP6WD.js → chunk-DIRLEJJX.js} +41 -41
- package/dist/cli/{chunk-7JIOJLTS.js → chunk-ETLEPHLT.js} +7 -7
- package/dist/cli/{chunk-6GIZNOXQ.js → chunk-HPSCRVTM.js} +12 -12
- package/dist/cli/{chunk-BDBEEV6X.js → chunk-HWCIU3KY.js} +22 -22
- package/dist/cli/{chunk-TKGFHRHE.mjs → chunk-J6FINSAK.mjs} +49 -11
- package/dist/cli/{chunk-JQWX377P.js → chunk-KBMBNUUW.js} +5 -5
- package/dist/cli/{chunk-WI4MCR7M.js → chunk-KTZ3VU6S.js} +5 -5
- package/dist/cli/{chunk-7AJ5V3BK.mjs → chunk-L6UMWAAY.mjs} +1 -1
- package/dist/cli/{chunk-FUUYWEF4.mjs → chunk-LMFTDDAM.mjs} +2 -2
- package/dist/cli/{chunk-MWQ4WWZF.mjs → chunk-LP2VNGG3.mjs} +2 -2
- package/dist/cli/{chunk-RMCCB3XY.mjs → chunk-MAE3AKDR.mjs} +67 -9
- package/dist/cli/{chunk-BWJZ4NQJ.js → chunk-NVALIJQS.js} +15 -15
- package/dist/cli/{chunk-5XFJBIQT.js → chunk-OWX4AAJ4.js} +13 -13
- package/dist/cli/{chunk-FMQA7UZZ.mjs → chunk-PLAJ6HPD.mjs} +2 -2
- package/dist/cli/{chunk-GCEGQ7TQ.mjs → chunk-PLJCY35C.mjs} +1 -1
- package/dist/cli/{chunk-ATTURFOV.mjs → chunk-PQX4WTBY.mjs} +1 -1
- package/dist/cli/{chunk-I2JIWKCQ.js → chunk-QGKX2WBZ.js} +52 -23
- package/dist/cli/{chunk-UBQQR56I.mjs → chunk-QIZBUY2N.mjs} +4 -4
- package/dist/cli/{chunk-5XXPP3PR.js → chunk-QUELC3B2.js} +10 -10
- package/dist/cli/{chunk-HDLMX7SG.js → chunk-RMKRZJOS.js} +16 -16
- package/dist/cli/{chunk-7UJZWI5Z.js → chunk-SVNAP2QI.js} +9 -9
- package/dist/cli/{chunk-GUIYFOG2.js → chunk-TYOAOSDL.js} +3 -3
- package/dist/cli/{chunk-QZ74ZC55.mjs → chunk-U6KHWIAO.mjs} +1 -1
- package/dist/cli/{chunk-MQSKSISW.mjs → chunk-UGVXHT62.mjs} +1 -1
- package/dist/cli/{chunk-VSACOMIA.mjs → chunk-V5WPYOAE.mjs} +5 -5
- package/dist/cli/{chunk-2OG2KBYJ.js → chunk-V7WMNX4R.js} +1 -1
- package/dist/cli/{chunk-M2OZORIH.js → chunk-VLAJGF27.js} +2 -2
- package/dist/cli/{chunk-QQBRXMZM.mjs → chunk-W77LBYF3.mjs} +11 -11
- package/dist/cli/{chunk-53QLWPZK.mjs → chunk-X4RGDE4J.mjs} +1 -1
- package/dist/cli/{chunk-5OJOFUMO.js → chunk-XPYCNA43.js} +44 -44
- package/dist/cli/{chunk-XU3D2KFR.mjs → chunk-XS72HELO.mjs} +1 -1
- package/dist/cli/{chunk-AUYBBFPT.js → chunk-Y5MDCPWA.js} +53 -53
- package/dist/cli/{chunk-IQBXX54G.mjs → chunk-Y5SKYU5X.mjs} +3 -3
- package/dist/cli/{chunk-64BFUBXX.mjs → chunk-YX7BX2FA.mjs} +2 -2
- package/dist/cli/{chunk-U7HJXE6Y.js → chunk-YZTS3XA7.js} +2 -2
- package/dist/cli/{chunk-WVZF4DU7.mjs → chunk-Z3DKJOUL.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-74AFW3BD.js +21 -0
- package/dist/cli/{concurrent-runs-help-FDCCZ45D.mjs → concurrent-runs-help-OYSLW55L.mjs} +6 -6
- package/dist/cli/{csv-OCEQWZO3.js → csv-FRO3UFMQ.js} +13 -13
- package/dist/cli/{csv-GJYLQ52D.mjs → csv-TFCTUYF2.mjs} +4 -4
- package/dist/cli/{db-5MA2UUHQ.mjs → db-NHVZBT2H.mjs} +6 -6
- package/dist/cli/{db-G5QGXFAX.js → db-SNFNRVZJ.js} +27 -27
- package/dist/cli/describe-2JCOC4AK.js +50 -0
- package/dist/cli/{describe-4DOJ4DHA.mjs → describe-OVFPRJJL.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-C7SMBHHB.mjs → executions-HWMH2LTC.mjs} +6 -6
- package/dist/cli/{executions-IYEVUPJI.js → executions-RZLKKPZV.js} +8 -8
- package/dist/cli/{feedback-GYAF46GA.js → feedback-3D5OROCI.js} +14 -14
- package/dist/cli/{feedback-XUU2UKM6.mjs → feedback-WD4JVF77.mjs} +6 -6
- package/dist/cli/git-GCCPCUWJ.js +25 -0
- package/dist/cli/{git-WVCMK5AH.mjs → git-RYUKBCUZ.mjs} +5 -5
- package/dist/cli/index.js +146 -146
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-FXADGAX2.mjs → integrations-KJPFCEXL.mjs} +7 -7
- package/dist/cli/{integrations-YYBJJFVX.js → integrations-Y7OK23DW.js} +15 -15
- package/dist/cli/{legacy-noops-LJY7LDUE.mjs → legacy-noops-2PU2ZVEP.mjs} +6 -6
- package/dist/cli/{legacy-noops-REZCYES2.js → legacy-noops-G7ZY7K3K.js} +9 -9
- package/dist/cli/{mcp-XSB3ZJFR.mjs → mcp-D7F2RSOI.mjs} +4 -4
- package/dist/cli/{mcp-L5PURE5S.js → mcp-GILBYX72.js} +24 -24
- package/dist/cli/{monitors-UBPF2OLO.mjs → monitors-IK5KXY2H.mjs} +32 -8
- package/dist/cli/{monitors-I5EIHSGV.js → monitors-OXNHOT3C.js} +125 -101
- package/dist/cli/{org-PHHIN2ER.mjs → org-L5D7EISU.mjs} +6 -6
- package/dist/cli/{org-SGSTGGUD.js → org-OYM3UNTP.js} +88 -88
- package/dist/cli/{play-LEJNJLWY.mjs → play-PK6QO3WX.mjs} +837 -290
- package/dist/cli/{play-WQEKMANL.js → play-YK22QPYO.js} +1423 -876
- package/dist/cli/{providers-RSDXBXIS.js → providers-5CYP7P4N.js} +9 -9
- package/dist/cli/{providers-3W26ZDAV.mjs → providers-Z6MNJDCG.mjs} +6 -6
- package/dist/cli/{quickstart-LGJD2M36.mjs → quickstart-2I73XQXB.mjs} +4 -4
- package/dist/cli/{quickstart-U3QX4EMI.js → quickstart-2YKETYJY.js} +6 -6
- package/dist/cli/{run-YWZ3W5HK.mjs → run-KGQ6TUBB.mjs} +23 -23
- package/dist/cli/{run-F2UPZUJS.js → run-YVSEAVE5.js} +43 -43
- package/dist/cli/{search-O2OJH3PY.mjs → search-V2HPN6FU.mjs} +7 -7
- package/dist/cli/search-YG3UIZ6A.js +32 -0
- package/dist/cli/{search-output-W7OCBYBU.js → search-output-BUSANFRN.js} +6 -6
- package/dist/cli/{search-output-H5BF6SJ3.mjs → search-output-OCTOSDEO.mjs} +4 -4
- package/dist/cli/{secrets-BN4GYVRI.js → secrets-VDKTHCVB.js} +15 -15
- package/dist/cli/{secrets-65XCAA7U.mjs → secrets-WZGRBWI5.mjs} +6 -6
- package/dist/cli/{sessions-SVEVESCQ.mjs → sessions-5DTN55DZ.mjs} +6 -6
- package/dist/cli/sessions-NSPT6LHT.js +22 -0
- package/dist/cli/{settings-7YMDAFCN.js → settings-A7VSNOLI.js} +85 -85
- package/dist/cli/{settings-HAU2NP2H.mjs → settings-BK5FPQ3X.mjs} +12 -12
- package/dist/cli/{setup-5RXHZ6YI.mjs → setup-LLQVPZTP.mjs} +9 -9
- package/dist/cli/{setup-G37QXQGM.js → setup-NV27CYQ5.js} +49 -49
- package/dist/cli/{skills-Q7A3XFAU.mjs → skills-IV6HK4XA.mjs} +7 -7
- package/dist/cli/skills-UA5E4DA3.js +36 -0
- package/dist/cli/{tools-ZG4NYRGB.mjs → tools-4FKPCRD7.mjs} +17 -17
- package/dist/cli/tools-NJVPAG37.js +57 -0
- package/dist/cli/update-DKX27XZB.js +34 -0
- package/dist/cli/{update-2CMZTZCL.mjs → update-MH5M746E.mjs} +9 -9
- package/dist/cli/{views-XUMDMDIE.js → views-JW44TCGL.js} +21 -21
- package/dist/cli/{views-A6IIY4OQ.mjs → views-KXC4JDT7.mjs} +6 -6
- package/dist/cli/{workflow-4EEW6MCD.js → workflow-F5AHL2ET.js} +17 -17
- package/dist/cli/{workflow-74MYISHU.mjs → workflow-FI4DL7ZI.mjs} +7 -7
- package/dist/{client-D1uWA2Vc.d.mts → client-BEJqhQAj.d.mts} +1 -1
- package/dist/{client-Hz7SsBXs.d.ts → client-Ceo295L2.d.ts} +1 -1
- package/dist/{client-core-D3Ad7Flt.d.ts → client-core-BPYuWfBC.d.ts} +49 -1
- package/dist/{client-core-Db_e63Hb.d.mts → client-core-BqetRxx-.d.mts} +49 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -116
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-7UJFY5BY.js +0 -43
- package/dist/cli/concurrent-runs-help-A2IQVZRJ.js +0 -21
- package/dist/cli/describe-SD7DRTBW.js +0 -50
- package/dist/cli/git-7YYVMY6L.js +0 -25
- package/dist/cli/search-K6ANAXLF.js +0 -32
- package/dist/cli/sessions-M52QWLA6.js +0 -22
- package/dist/cli/skills-ZK4D5BJW.js +0 -36
- package/dist/cli/tools-DBZTLYFM.js +0 -57
- package/dist/cli/update-LC5HGEEH.js +0 -34
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J6FINSAK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U6KHWIAO.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkXPYCNA43js = require('./chunk-XPYCNA43.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkQGKX2WBZjs = require('./chunk-QGKX2WBZ.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk3IUQNHIGjs = require('./chunk-3IUQNHIG.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk5622PYAPjs = require('./chunk-5622PYAP.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
|
|
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
145
145
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
146
146
|
}
|
|
147
147
|
function resolveLocalRoot() {
|
|
148
|
-
const target =
|
|
148
|
+
const target = _chunk3IUQNHIGjs.resolveProjectPinTarget.call(void 0, );
|
|
149
149
|
if (!target.ok) {
|
|
150
150
|
throw new Error(
|
|
151
151
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
|
|
|
156
156
|
return target.dir;
|
|
157
157
|
}
|
|
158
158
|
function detectSkillsAgents(input) {
|
|
159
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
159
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunk5622PYAPjs.detectAgentRuntime.call(void 0, )));
|
|
160
160
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
161
161
|
if (knownAgent) return [knownAgent];
|
|
162
162
|
const roots = [
|
|
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
|
|
|
171
171
|
return detected.length > 0 ? detected : ["*"];
|
|
172
172
|
}
|
|
173
173
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
174
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
174
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk3IUQNHIGjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
175
175
|
}
|
|
176
176
|
function buildSkillsPlan(input) {
|
|
177
177
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
178
|
-
const legacyNames = [...
|
|
178
|
+
const legacyNames = [..._chunkXPYCNA43js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
179
179
|
(a, b) => a.localeCompare(b)
|
|
180
180
|
);
|
|
181
181
|
return {
|
|
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
|
|
|
189
189
|
args: [
|
|
190
190
|
"exec",
|
|
191
191
|
"--yes",
|
|
192
|
-
`--package=${
|
|
192
|
+
`--package=${_chunkXPYCNA43js.SKILLS_NPX_PACKAGE}`,
|
|
193
193
|
"--",
|
|
194
194
|
"skills",
|
|
195
195
|
"remove",
|
|
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
|
|
|
205
205
|
args: [
|
|
206
206
|
"exec",
|
|
207
207
|
"--yes",
|
|
208
|
-
`--package=${
|
|
208
|
+
`--package=${_chunkXPYCNA43js.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkXPYCNA43js.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
213
213
|
"--agent",
|
|
214
214
|
...input.agents,
|
|
215
215
|
...scopeArgs,
|
|
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
|
|
|
246
246
|
}
|
|
247
247
|
function runProcess(command, args, cwd) {
|
|
248
248
|
return new Promise((resolve, reject) => {
|
|
249
|
-
const plan =
|
|
249
|
+
const plan = _chunkXPYCNA43js.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -268,7 +268,7 @@ function runProcess(command, args, cwd) {
|
|
|
268
268
|
child.kill("SIGTERM");
|
|
269
269
|
reject(
|
|
270
270
|
new Error(
|
|
271
|
-
`${
|
|
271
|
+
`${_chunkXPYCNA43js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
272
272
|
)
|
|
273
273
|
);
|
|
274
274
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -279,7 +279,7 @@ function runProcess(command, args, cwd) {
|
|
|
279
279
|
child.once("close", (code) => {
|
|
280
280
|
clearTimeout(timeout);
|
|
281
281
|
if (code && stderr.trim()) {
|
|
282
|
-
process.stderr.write(`${
|
|
282
|
+
process.stderr.write(`${_chunkXPYCNA43js.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
283
283
|
`);
|
|
284
284
|
}
|
|
285
285
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -287,7 +287,7 @@ function runProcess(command, args, cwd) {
|
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
289
|
async function showSkills(options, name) {
|
|
290
|
-
const baseUrl =
|
|
290
|
+
const baseUrl = _chunk3IUQNHIGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
291
291
|
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
292
292
|
try {
|
|
293
293
|
const response = await fetch(url, {
|
|
@@ -300,7 +300,7 @@ async function showSkills(options, name) {
|
|
|
300
300
|
}
|
|
301
301
|
if (name) {
|
|
302
302
|
const markdown = await response.text();
|
|
303
|
-
|
|
303
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
304
304
|
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
305
305
|
{ json: options.json, text: markdown }
|
|
306
306
|
);
|
|
@@ -310,7 +310,7 @@ async function showSkills(options, name) {
|
|
|
310
310
|
const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
|
|
311
311
|
(skill) => skill.install_surface === "v1" && skill.name
|
|
312
312
|
);
|
|
313
|
-
|
|
313
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
314
314
|
{
|
|
315
315
|
ok: true,
|
|
316
316
|
status: "completed",
|
|
@@ -327,7 +327,7 @@ Read one with: deepline skills show <name>
|
|
|
327
327
|
);
|
|
328
328
|
return 0;
|
|
329
329
|
} catch (error) {
|
|
330
|
-
|
|
330
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
331
331
|
{
|
|
332
332
|
ok: false,
|
|
333
333
|
status: "failed",
|
|
@@ -350,7 +350,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
350
350
|
scope = normalizeScope(options.scope);
|
|
351
351
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
352
352
|
} catch (error) {
|
|
353
|
-
|
|
353
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
354
354
|
{
|
|
355
355
|
ok: false,
|
|
356
356
|
status: "failed",
|
|
@@ -362,22 +362,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
362
362
|
);
|
|
363
363
|
return 2;
|
|
364
364
|
}
|
|
365
|
-
const baseUrl =
|
|
365
|
+
const baseUrl = _chunk3IUQNHIGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
366
366
|
const catalog = {
|
|
367
|
-
skillNames: [...
|
|
368
|
-
version:
|
|
367
|
+
skillNames: [..._chunkXPYCNA43js.DEFAULT_SDK_SKILL_NAMES],
|
|
368
|
+
version: _chunk5622PYAPjs.SDK_VERSION
|
|
369
369
|
};
|
|
370
370
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
371
371
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
372
372
|
if (options.dryRun) {
|
|
373
|
-
|
|
373
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
374
374
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
375
375
|
{ json: options.json }
|
|
376
376
|
);
|
|
377
377
|
return 0;
|
|
378
378
|
}
|
|
379
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
380
|
-
|
|
379
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkXPYCNA43js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
380
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
381
381
|
{
|
|
382
382
|
ok: true,
|
|
383
383
|
status: "current",
|
|
@@ -409,10 +409,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
409
409
|
}
|
|
410
410
|
if (scope === "local" && root) {
|
|
411
411
|
const managedNames = [
|
|
412
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
412
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkXPYCNA43js.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
413
413
|
];
|
|
414
414
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
415
|
-
|
|
415
|
+
_chunk3IUQNHIGjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
416
416
|
".deepline/",
|
|
417
417
|
...agentRoots.flatMap(
|
|
418
418
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -421,7 +421,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
421
421
|
}
|
|
422
422
|
let lease;
|
|
423
423
|
try {
|
|
424
|
-
lease = scope === "global" ? await
|
|
424
|
+
lease = scope === "global" ? await _chunkXPYCNA43js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
425
425
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
426
426
|
onWait: () => process.stderr.write(
|
|
427
427
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -429,8 +429,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
429
429
|
}) : { release: () => {
|
|
430
430
|
} };
|
|
431
431
|
} catch (error) {
|
|
432
|
-
if (!(error instanceof
|
|
433
|
-
|
|
432
|
+
if (!(error instanceof _chunkXPYCNA43js.SkillsStateUnavailableError)) throw error;
|
|
433
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
434
434
|
{
|
|
435
435
|
ok: false,
|
|
436
436
|
status: "failed",
|
|
@@ -446,7 +446,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
446
446
|
return 5;
|
|
447
447
|
}
|
|
448
448
|
if (!lease) {
|
|
449
|
-
|
|
449
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
450
450
|
{
|
|
451
451
|
ok: false,
|
|
452
452
|
status: "failed",
|
|
@@ -455,7 +455,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
455
455
|
scope,
|
|
456
456
|
agents,
|
|
457
457
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
458
|
-
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${
|
|
458
|
+
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkXPYCNA43js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
459
459
|
},
|
|
460
460
|
{ json: options.json }
|
|
461
461
|
);
|
|
@@ -504,7 +504,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
} catch (error) {
|
|
507
|
-
|
|
507
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
508
508
|
{
|
|
509
509
|
ok: false,
|
|
510
510
|
status: "failed",
|
|
@@ -520,7 +520,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
520
520
|
return 5;
|
|
521
521
|
}
|
|
522
522
|
if (missing.length > 0) {
|
|
523
|
-
|
|
523
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
524
524
|
{
|
|
525
525
|
ok: false,
|
|
526
526
|
status: "failed",
|
|
@@ -560,7 +560,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
560
560
|
{
|
|
561
561
|
schemaVersion: 1,
|
|
562
562
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
563
|
-
cliVersion:
|
|
563
|
+
cliVersion: _chunk5622PYAPjs.SDK_VERSION,
|
|
564
564
|
scope,
|
|
565
565
|
agents,
|
|
566
566
|
skillsVersion: plan.version,
|
|
@@ -573,9 +573,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
573
573
|
"utf8"
|
|
574
574
|
);
|
|
575
575
|
if (scope === "global") {
|
|
576
|
-
|
|
576
|
+
_chunkXPYCNA43js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
577
577
|
}
|
|
578
|
-
|
|
578
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
579
579
|
{
|
|
580
580
|
ok: true,
|
|
581
581
|
status: "complete",
|
|
@@ -624,7 +624,7 @@ Examples:
|
|
|
624
624
|
"after",
|
|
625
625
|
`
|
|
626
626
|
Notes:
|
|
627
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
627
|
+
This command reinstalls current Deepline-managed skills using ${_chunkXPYCNA43js.SKILLS_NPX_PACKAGE},
|
|
628
628
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
629
629
|
persistent project.
|
|
630
630
|
|
|
@@ -636,13 +636,13 @@ Examples:
|
|
|
636
636
|
).action(async (options) => {
|
|
637
637
|
process.exitCode = await runSkillsCommand(options);
|
|
638
638
|
});
|
|
639
|
-
program.command(
|
|
639
|
+
program.command(_chunkXPYCNA43js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
640
640
|
"--claim <token>",
|
|
641
641
|
"Owner token of the leases this child was started for."
|
|
642
642
|
).action(async (options) => {
|
|
643
643
|
const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
|
|
644
644
|
if (!claim) {
|
|
645
|
-
|
|
645
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
646
646
|
{
|
|
647
647
|
ok: false,
|
|
648
648
|
status: "failed",
|
|
@@ -655,7 +655,7 @@ Examples:
|
|
|
655
655
|
process.exitCode = 2;
|
|
656
656
|
return;
|
|
657
657
|
}
|
|
658
|
-
await
|
|
658
|
+
await _chunkXPYCNA43js.syncSdkSkillsIfNeeded.call(void 0, _chunk3IUQNHIGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
659
659
|
mode: "inline",
|
|
660
660
|
notices: "defer",
|
|
661
661
|
claim
|
|
@@ -9,7 +9,7 @@ var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkQGKX2WBZjs = require('./chunk-QGKX2WBZ.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/describe-options.ts
|
|
15
15
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
|
|
|
250
250
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
251
251
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
252
252
|
if (typeof logicalValue === "object") {
|
|
253
|
-
return
|
|
253
|
+
return _chunkQGKX2WBZjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
254
254
|
}
|
|
255
255
|
return logicalValue;
|
|
256
256
|
}
|
|
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
|
|
|
642
642
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
643
|
columns
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return _chunkQGKX2WBZjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
648
648
|
let temp;
|
|
@@ -769,7 +769,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
769
769
|
};
|
|
770
770
|
if (options.receiptOut && !skipReceiptFile) {
|
|
771
771
|
persist(options.receiptOut, jsonText(receipt));
|
|
772
|
-
|
|
772
|
+
_chunkQGKX2WBZjs.markJsonOutputHandled.call(void 0, );
|
|
773
773
|
} else {
|
|
774
774
|
printReceipt(receipt, options, {
|
|
775
775
|
data: hasData ? result.data : void 0,
|
|
@@ -937,7 +937,7 @@ function receiptText(receipt, options, extra) {
|
|
|
937
937
|
problems.push(
|
|
938
938
|
`Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
|
|
939
939
|
);
|
|
940
|
-
const diagnostic =
|
|
940
|
+
const diagnostic = _chunkQGKX2WBZjs.formatCliFailureDiagnostic.call(void 0, error);
|
|
941
941
|
if (diagnostic) problems.push(...diagnostic.split("\n"));
|
|
942
942
|
if (record(error) && typeof error.recoveryFile === "string") {
|
|
943
943
|
problems.push(
|
|
@@ -1030,8 +1030,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1030
1030
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1031
1031
|
` : receiptText(receipt, options, extra);
|
|
1032
1032
|
if (options.receiptOut !== void 0) {
|
|
1033
|
-
|
|
1034
|
-
|
|
1033
|
+
_chunkQGKX2WBZjs.writeRawStderr.call(void 0, text);
|
|
1034
|
+
_chunkQGKX2WBZjs.markJsonOutputHandled.call(void 0, );
|
|
1035
1035
|
} else {
|
|
1036
1036
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1037
1037
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunkKBMBNUUWjs = require('./chunk-KBMBNUUW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQGKX2WBZjs = require('./chunk-QGKX2WBZ.js');
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
var _commander = require('commander');
|
|
10
10
|
var _fs = require('fs');
|
|
11
11
|
var _path = require('path');
|
|
12
12
|
function printIntegrationResult(value, json, lines, nextCursor) {
|
|
13
|
-
|
|
13
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
14
14
|
{},
|
|
15
15
|
{
|
|
16
16
|
json: json || void 0,
|
|
@@ -26,7 +26,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
|
|
|
26
26
|
return parent.command("balance <provider>", { hidden }).description(
|
|
27
27
|
"Read a fresh balance using this workspace\u2019s own provider connection (LeadMagic)."
|
|
28
28
|
).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
|
|
29
|
-
const balance = await new (0,
|
|
29
|
+
const balance = await new (0, _chunkKBMBNUUWjs.DeeplineClient)().getIntegrationBalance(
|
|
30
30
|
provider
|
|
31
31
|
);
|
|
32
32
|
printIntegrationResult(balance, options.json, [
|
|
@@ -42,7 +42,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
42
42
|
"List teammates\u2019 personal connections for this provider"
|
|
43
43
|
).option("--cursor <cursor>", "Read the next page of members").action(
|
|
44
44
|
async (options) => {
|
|
45
|
-
const client = new (0,
|
|
45
|
+
const client = new (0, _chunkKBMBNUUWjs.DeeplineClient)();
|
|
46
46
|
if (name === "list" && options.cursor && !options.members)
|
|
47
47
|
throw new Error(
|
|
48
48
|
"Use --cursor with --members to continue a member page."
|
|
@@ -86,7 +86,7 @@ function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
|
|
|
86
86
|
return parent.command("hubspot-members", { hidden }).description(
|
|
87
87
|
"List personal HubSpot connection status for workspace members."
|
|
88
88
|
).option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
|
|
89
|
-
const page = await new (0,
|
|
89
|
+
const page = await new (0, _chunkKBMBNUUWjs.DeeplineClient)().listPersonalHubSpotMembers(
|
|
90
90
|
options.cursor
|
|
91
91
|
);
|
|
92
92
|
const rows = page.members.map((member) => {
|
|
@@ -112,7 +112,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
|
|
|
112
112
|
);
|
|
113
113
|
if (options.autoName && (action !== "connect" || options.name !== void 0))
|
|
114
114
|
throw new Error("Use --auto-name with connect and omit --name.");
|
|
115
|
-
const client = new (0,
|
|
115
|
+
const client = new (0, _chunkKBMBNUUWjs.DeeplineClient)();
|
|
116
116
|
const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
|
|
117
117
|
const row = connections.find(
|
|
118
118
|
(connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
|
|
@@ -145,7 +145,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
145
145
|
"Print the proposed change without contacting Google or saving it"
|
|
146
146
|
).option("--json", "Print the result as JSON").action(
|
|
147
147
|
async (action, options) => {
|
|
148
|
-
const client = new (0,
|
|
148
|
+
const client = new (0, _chunkKBMBNUUWjs.DeeplineClient)();
|
|
149
149
|
if (action === "list") {
|
|
150
150
|
const inventory = await client.listCalendarAvailabilityConnections();
|
|
151
151
|
const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
|
|
@@ -295,7 +295,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
295
295
|
}
|
|
296
296
|
function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
|
|
297
297
|
return parent.command("availability-calendars", { hidden }).description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
|
|
298
|
-
const page = await new (0,
|
|
298
|
+
const page = await new (0, _chunkKBMBNUUWjs.DeeplineClient)().listAvailabilityCalendars(
|
|
299
299
|
options.cursor
|
|
300
300
|
);
|
|
301
301
|
printIntegrationResult(page, options.json, [
|
|
@@ -339,7 +339,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
339
339
|
printSetupPlan({ provider, action: "connect_link" }, options.json);
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
|
-
const link = await new (0,
|
|
342
|
+
const link = await new (0, _chunkKBMBNUUWjs.DeeplineClient)().getIntegrationConnectLink(
|
|
343
343
|
provider
|
|
344
344
|
);
|
|
345
345
|
printIntegrationResult(link, options.json, [link.connect_url]);
|
|
@@ -366,7 +366,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
366
366
|
);
|
|
367
367
|
return;
|
|
368
368
|
}
|
|
369
|
-
const result2 = await new (0,
|
|
369
|
+
const result2 = await new (0, _chunkKBMBNUUWjs.DeeplineClient)().startIntegrationOAuth(
|
|
370
370
|
provider,
|
|
371
371
|
{
|
|
372
372
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
@@ -416,7 +416,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
416
416
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
417
417
|
);
|
|
418
418
|
}
|
|
419
|
-
const result = await new (0,
|
|
419
|
+
const result = await new (0, _chunkKBMBNUUWjs.DeeplineClient)().setIntegrationCredentials(
|
|
420
420
|
provider,
|
|
421
421
|
credentials,
|
|
422
422
|
{ expectedConnectionId: options.expectedConnectionId }
|
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRMKRZJOSjs = require('./chunk-RMKRZJOS.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkXPYCNA43js = require('./chunk-XPYCNA43.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkQGKX2WBZjs = require('./chunk-QGKX2WBZ.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunk3IUQNHIGjs = require('./chunk-3IUQNHIG.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk5622PYAPjs = require('./chunk-5622PYAP.js');
|
|
22
22
|
|
|
23
23
|
// src/cli/compatibility-catalog.ts
|
|
24
24
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
45
45
|
async function reportAutoUpdateEvent(input) {
|
|
46
46
|
let apiKey = "";
|
|
47
47
|
try {
|
|
48
|
-
apiKey =
|
|
48
|
+
apiKey = _chunk3IUQNHIGjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
49
49
|
} catch (e2) {
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
61
61
|
headers: {
|
|
62
62
|
Authorization: `Bearer ${apiKey}`,
|
|
63
63
|
"Content-Type": "application/json",
|
|
64
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
64
|
+
"User-Agent": `deepline-ts-sdk/${_chunk5622PYAPjs.SDK_VERSION}`,
|
|
65
65
|
"X-Deepline-Client-Family": "sdk",
|
|
66
66
|
"X-Deepline-CLI-Family": "sdk",
|
|
67
|
-
"X-Deepline-CLI-Version":
|
|
68
|
-
"X-Deepline-SDK-Version":
|
|
67
|
+
"X-Deepline-CLI-Version": _chunk5622PYAPjs.SDK_VERSION,
|
|
68
|
+
"X-Deepline-SDK-Version": _chunk5622PYAPjs.SDK_VERSION
|
|
69
69
|
},
|
|
70
70
|
body: JSON.stringify({
|
|
71
71
|
event: input.event,
|
|
72
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
72
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk5622PYAPjs.SDK_VERSION,
|
|
73
73
|
target_version: input.response.latest,
|
|
74
74
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
75
75
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -88,13 +88,13 @@ function envTruthy(name) {
|
|
|
88
88
|
return value === "1" || value === "true" || value === "yes";
|
|
89
89
|
}
|
|
90
90
|
function shouldSkipSelfUpdate(policy) {
|
|
91
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
91
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkRMKRZJOSjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkXPYCNA43js.isCiEnvironment.call(void 0, );
|
|
92
92
|
}
|
|
93
93
|
function isDowngradeAutoUpdateResponse(response) {
|
|
94
94
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
95
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
95
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk5622PYAPjs.SDK_VERSION;
|
|
96
96
|
if (!target) return false;
|
|
97
|
-
return
|
|
97
|
+
return _chunkRMKRZJOSjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
98
98
|
}
|
|
99
99
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
100
100
|
return new Promise((resolve) => {
|
|
@@ -147,7 +147,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
147
147
|
}
|
|
148
148
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
149
149
|
const target = response.latest;
|
|
150
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
150
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk5622PYAPjs.SDK_VERSION;
|
|
151
151
|
process.stderr.write(
|
|
152
152
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
153
153
|
`
|
|
@@ -155,21 +155,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
155
155
|
return false;
|
|
156
156
|
}
|
|
157
157
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
158
|
-
const plan =
|
|
158
|
+
const plan = _chunkRMKRZJOSjs.resolveUpdatePlan.call(void 0, {
|
|
159
159
|
packageSpec,
|
|
160
160
|
requireVerifiedNpmOwnership: true,
|
|
161
161
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
162
162
|
});
|
|
163
|
-
if (!
|
|
163
|
+
if (!_chunkRMKRZJOSjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
164
164
|
return false;
|
|
165
165
|
}
|
|
166
166
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
167
167
|
deferredAutoUpdate = async () => {
|
|
168
168
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
169
169
|
};
|
|
170
|
-
if (
|
|
170
|
+
if (_chunkQGKX2WBZjs.isJsonOutputMode.call(void 0, )) {
|
|
171
171
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
172
|
-
|
|
172
|
+
_chunkQGKX2WBZjs.addJsonNotice.call(void 0, {
|
|
173
173
|
code: "sdk_update_queued",
|
|
174
174
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
175
175
|
});
|
|
@@ -182,7 +182,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
182
182
|
return true;
|
|
183
183
|
}
|
|
184
184
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
185
|
-
if (!
|
|
185
|
+
if (!_chunkRMKRZJOSjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
186
186
|
const autoUpdate = response.auto_update;
|
|
187
187
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
188
188
|
process.stderr.write(
|
|
@@ -195,7 +195,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
195
195
|
event: "started",
|
|
196
196
|
installKind: plan.kind
|
|
197
197
|
});
|
|
198
|
-
const updateResult = await
|
|
198
|
+
const updateResult = await _chunkRMKRZJOSjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
199
199
|
if (updateResult.status === "skipped_previous_failure") {
|
|
200
200
|
void reportAutoUpdateEvent({
|
|
201
201
|
baseUrl,
|
|
@@ -233,7 +233,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
233
233
|
exitCode: 0
|
|
234
234
|
});
|
|
235
235
|
try {
|
|
236
|
-
await
|
|
236
|
+
await _chunkXPYCNA43js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
237
237
|
mode: "detached",
|
|
238
238
|
update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
|
|
239
239
|
afterCliUpdate: {
|
|
@@ -260,7 +260,7 @@ var _crypto = require('crypto');
|
|
|
260
260
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
261
261
|
var activeToolExecuteCommand = null;
|
|
262
262
|
function progressLine(line) {
|
|
263
|
-
if (!
|
|
263
|
+
if (!_chunkQGKX2WBZjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
264
264
|
}
|
|
265
265
|
function beginToolExecuteCommand() {
|
|
266
266
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|