deepline 0.3.543 → 0.3.545
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 +11 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +3 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +5 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +142 -3
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +13 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +1 -1
- package/dist/cli/auth-455MB4K6.js +43 -0
- package/dist/cli/{auth-ITAELTOA.mjs → auth-VZAMAMFW.mjs} +5 -5
- package/dist/cli/{billing-33XVFDUJ.js → billing-ASZJDFH2.js} +92 -92
- package/dist/cli/{billing-WZ7RVZW4.mjs → billing-DADQUQEZ.mjs} +8 -8
- package/dist/cli/{chunk-NR3O56FT.mjs → chunk-2CBX43LP.mjs} +5 -5
- package/dist/cli/{chunk-F6VSQ5LN.js → chunk-2FF3O2Y2.js} +12 -12
- package/dist/cli/{chunk-52YK3EII.mjs → chunk-2HFSYH7V.mjs} +2 -2
- package/dist/cli/{chunk-EHUG6EUT.js → chunk-34UKDHRL.js} +26 -26
- package/dist/cli/{chunk-JXG7HWBA.mjs → chunk-3M2QH3KA.mjs} +1 -1
- package/dist/cli/{chunk-2NCJQEZH.js → chunk-3NG43NXB.js} +53 -53
- package/dist/cli/{chunk-4SKDSSPU.mjs → chunk-3TCHX7YK.mjs} +2 -2
- package/dist/cli/{chunk-5VIPTLRX.mjs → chunk-4NZ3OZNO.mjs} +1 -1
- package/dist/cli/{chunk-ZRT2PNYY.mjs → chunk-52C6W7FG.mjs} +1 -1
- package/dist/cli/{chunk-STXG2LFC.js → chunk-5YYWZ43J.js} +2 -2
- package/dist/cli/{chunk-274WKLSY.mjs → chunk-7JZ27AFH.mjs} +2 -2
- package/dist/cli/{chunk-R57UCXQG.mjs → chunk-7MFATEUC.mjs} +1 -1
- package/dist/cli/{chunk-MCBUWK5K.js → chunk-7MHBJU73.js} +22 -22
- package/dist/cli/{chunk-XFPVFWZR.mjs → chunk-7P72EGLK.mjs} +1 -1
- package/dist/cli/{chunk-TBCNL2T5.js → chunk-C6XYSTBW.js} +1 -1
- package/dist/cli/{chunk-QFRMVI4S.js → chunk-CJ7DBYEQ.js} +3 -3
- package/dist/cli/{chunk-YE3T73BV.js → chunk-CXETRZ3G.js} +10 -10
- package/dist/cli/{chunk-BGAUADV4.js → chunk-D3SXB2NX.js} +41 -41
- package/dist/cli/{chunk-UJ6GOV7K.js → chunk-DGKDCZGC.js} +13 -13
- package/dist/cli/{chunk-46BEBZ3M.js → chunk-DZTVDL2X.js} +29 -28
- package/dist/cli/{chunk-2KTGZKRE.js → chunk-EK5C2R7S.js} +15 -15
- package/dist/cli/{chunk-YJYKZ2U3.js → chunk-ERLW6RPA.js} +2 -2
- package/dist/cli/{chunk-VSJEOSYL.mjs → chunk-EWA3M54M.mjs} +1 -1
- package/dist/cli/{chunk-2LNTKICO.js → chunk-FB7UPZ6M.js} +3 -3
- package/dist/cli/{chunk-PX7XAVUC.js → chunk-G5TV6WLV.js} +19 -19
- package/dist/cli/{chunk-NHKP2NSU.js → chunk-GFRJU2KB.js} +2 -2
- package/dist/cli/{chunk-D6YAU3CF.mjs → chunk-GWDPNOA7.mjs} +2 -1
- package/dist/cli/{chunk-ZSPBJB7I.mjs → chunk-HLUNTJBO.mjs} +4 -4
- package/dist/cli/{chunk-OELJKQOL.mjs → chunk-HPX7LLAM.mjs} +2 -2
- package/dist/cli/{chunk-DI3GL3T6.js → chunk-HR5BT42R.js} +99 -99
- package/dist/cli/{chunk-3JZXU5OB.js → chunk-IYJO3RWR.js} +5 -5
- package/dist/cli/{chunk-DH43ECTN.mjs → chunk-JL5JU3LD.mjs} +2 -2
- package/dist/cli/{chunk-OAFKUHN5.mjs → chunk-KRW727W6.mjs} +4 -4
- package/dist/cli/{chunk-SYOPHFKB.mjs → chunk-KYO2FICL.mjs} +5 -5
- package/dist/cli/{chunk-FNW2SGPD.mjs → chunk-LTCEZWPZ.mjs} +2 -2
- package/dist/cli/{chunk-XBM3KABD.mjs → chunk-LWPFMYSO.mjs} +2 -2
- package/dist/cli/{chunk-NLENABRU.js → chunk-N4LADLCO.js} +6 -6
- package/dist/cli/{chunk-XSN6BAZT.mjs → chunk-NAN3A4IF.mjs} +5 -5
- package/dist/cli/{chunk-23D224GI.js → chunk-NCX2JH2F.js} +9 -9
- package/dist/cli/{chunk-DUGTPVT7.js → chunk-NZDZGK35.js} +7 -7
- package/dist/cli/{chunk-C35NLLSA.js → chunk-OGQYAJSO.js} +5 -5
- package/dist/cli/{chunk-J2F6F5GL.js → chunk-QI57XUGA.js} +5 -5
- package/dist/cli/{chunk-O2KLWUNI.js → chunk-QM7PHHYZ.js} +44 -44
- package/dist/cli/{chunk-5MN3BKNB.js → chunk-TQKHXMV3.js} +16 -16
- package/dist/cli/{chunk-SU4K4SUU.mjs → chunk-WP36UBRY.mjs} +1 -1
- package/dist/cli/{chunk-AACKPOGA.mjs → chunk-XBYQZEUE.mjs} +1 -1
- package/dist/cli/{chunk-7AUQTNLB.mjs → chunk-XGEUPU3L.mjs} +2 -2
- package/dist/cli/{chunk-HKJ26NRN.mjs → chunk-XMUPZINS.mjs} +5 -5
- package/dist/cli/{chunk-GRCFX2EG.js → chunk-YRQKRQDU.js} +4 -4
- package/dist/cli/{chunk-6SJZMMD5.mjs → chunk-YWTRCKGD.mjs} +11 -11
- package/dist/cli/{chunk-SZNJENGT.mjs → chunk-Z4Y4BLW7.mjs} +3 -3
- package/dist/cli/{chunk-W2OPPSAZ.mjs → chunk-Z7QM244Q.mjs} +3 -3
- package/dist/cli/concurrent-runs-help-GFWXOKF5.js +21 -0
- package/dist/cli/{concurrent-runs-help-Z6ODNL4E.mjs → concurrent-runs-help-YP7ALTDB.mjs} +6 -6
- package/dist/cli/{csv-SSOFTXHU.js → csv-67WT5EGR.js} +13 -13
- package/dist/cli/{csv-5QW2HPHT.mjs → csv-D5ITFSYI.mjs} +4 -4
- package/dist/cli/{db-4LK5AJNO.js → db-GZS76X7R.js} +27 -27
- package/dist/cli/{db-K2JMR6EM.mjs → db-SZYBRFYG.mjs} +6 -6
- package/dist/cli/{describe-AXHQZHTT.mjs → describe-YJ7ZLLLI.mjs} +18 -18
- package/dist/cli/describe-ZRGYAEBT.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-FY2XTX2W.mjs → executions-HMYGR32E.mjs} +6 -6
- package/dist/cli/{executions-AATJQQAQ.js → executions-O5USTYGL.js} +8 -8
- package/dist/cli/{feedback-QPVJER75.js → feedback-RHLFDCRS.js} +14 -14
- package/dist/cli/{feedback-MKBPRGS6.mjs → feedback-Z3NXWYUO.mjs} +6 -6
- package/dist/cli/{git-AGRFZR3K.mjs → git-CLFKXELB.mjs} +5 -5
- package/dist/cli/git-RC4XDATD.js +25 -0
- package/dist/cli/index.js +142 -142
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{integrations-OUQ6U33M.mjs → integrations-FOACOBQB.mjs} +7 -7
- package/dist/cli/{integrations-R6OUFZXI.js → integrations-TZ4QEQGV.js} +15 -15
- package/dist/cli/{legacy-noops-DVL2RRKL.mjs → legacy-noops-6F6Y3BV7.mjs} +6 -6
- package/dist/cli/{legacy-noops-H7INM2QN.js → legacy-noops-QRDOS33V.js} +9 -9
- package/dist/cli/{mcp-33F7D7WI.js → mcp-ETMMDDGB.js} +24 -24
- package/dist/cli/{mcp-2Z2YVOLK.mjs → mcp-UXRCWOZU.mjs} +4 -4
- package/dist/cli/{monitors-NZD2WIKK.mjs → monitors-6XEWR46R.mjs} +86 -13
- package/dist/cli/{monitors-KDUJHAKJ.js → monitors-DITT7QTV.js} +179 -106
- package/dist/cli/{org-4PQGHLEB.js → org-4DE37X3L.js} +88 -88
- package/dist/cli/{org-EJW45RUA.mjs → org-CVSSH73G.mjs} +6 -6
- package/dist/cli/{play-MLHMQL4G.js → play-RH6P45CI.js} +317 -317
- package/dist/cli/{play-3CM5RT5J.mjs → play-Y5NCHOKK.mjs} +17 -17
- package/dist/cli/{providers-YBJG7277.js → providers-DU42DLOL.js} +9 -9
- package/dist/cli/{providers-BHYBJI4R.mjs → providers-VHUHC4IZ.mjs} +6 -6
- package/dist/cli/{quickstart-LL3MR562.mjs → quickstart-HJY5YYE5.mjs} +4 -4
- package/dist/cli/{quickstart-O7L2NNGJ.js → quickstart-XJ43JLEC.js} +6 -6
- package/dist/cli/{run-OK545H5Q.mjs → run-JAIXHVH7.mjs} +23 -23
- package/dist/cli/{run-HJ2AR6CM.js → run-JXUS7QFI.js} +43 -43
- package/dist/cli/search-O5VVMXII.js +32 -0
- package/dist/cli/{search-Z5ZKMRTX.mjs → search-RDMNM2AX.mjs} +7 -7
- package/dist/cli/{search-output-SVW4DETG.js → search-output-RKAM2HBH.js} +6 -6
- package/dist/cli/{search-output-Q5VHNUWG.mjs → search-output-ZKTR3WTJ.mjs} +4 -4
- package/dist/cli/{secrets-ENQWMCB5.js → secrets-TKFVMAYX.js} +15 -15
- package/dist/cli/{secrets-QIKIEFWB.mjs → secrets-WSW3FTF6.mjs} +6 -6
- package/dist/cli/sessions-3PWFWCHO.js +22 -0
- package/dist/cli/{sessions-AETO22RF.mjs → sessions-724BK6VP.mjs} +6 -6
- package/dist/cli/{settings-OFLIFTMZ.js → settings-5LJZDAZU.js} +85 -85
- package/dist/cli/{settings-G5RGRPFV.mjs → settings-YRC7J75G.mjs} +12 -12
- package/dist/cli/{setup-QW7Y62XD.js → setup-2F3DBSOS.js} +49 -49
- package/dist/cli/{setup-G4N3X6KG.mjs → setup-STNPX5MK.mjs} +9 -9
- package/dist/cli/{skills-QRFQGHNA.mjs → skills-D5PK56FO.mjs} +7 -7
- package/dist/cli/skills-RFOMVXIT.js +36 -0
- package/dist/cli/tools-CAO6EVUW.js +57 -0
- package/dist/cli/{tools-52BH7UTF.mjs → tools-WOGWMBA3.mjs} +17 -17
- package/dist/cli/update-L4DQZY3G.js +34 -0
- package/dist/cli/{update-SDGZLAGL.mjs → update-PC6XSWMI.mjs} +9 -9
- package/dist/cli/{views-5QKAWYPI.js → views-HLCLAPWN.js} +21 -21
- package/dist/cli/{views-3BIJFJMQ.mjs → views-IIHT4RYQ.mjs} +6 -6
- package/dist/cli/{workflow-G67RPWVY.js → workflow-CCZ2A7DI.js} +17 -17
- package/dist/cli/{workflow-QAK773FR.mjs → workflow-HK4MZ7LK.mjs} +7 -7
- package/dist/{client-D1ga52xq.d.ts → client-BQ6yuSjM.d.ts} +1 -1
- package/dist/{client-bd4QQIXo.d.mts → client-DfdUc_MY.d.mts} +1 -1
- package/dist/{client-core-B6eMVx8h.d.ts → client-core-3GQ8WMuk.d.ts} +14 -0
- package/dist/{client-core-CqfWNf2Q.d.mts → client-core-ClsNRytk.d.mts} +14 -0
- 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 +114 -114
- 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-S6B5WUU5.js +0 -43
- package/dist/cli/concurrent-runs-help-E4OYD3DS.js +0 -21
- package/dist/cli/describe-AC6PLEFP.js +0 -50
- package/dist/cli/git-RUYFQEJX.js +0 -25
- package/dist/cli/search-UUNS6BCC.js +0 -32
- package/dist/cli/sessions-FNSUDERA.js +0 -22
- package/dist/cli/skills-3IXIY2IV.js +0 -36
- package/dist/cli/tools-MYBUMPKH.js +0 -57
- package/dist/cli/update-GT7574UU.js +0 -34
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkQM7PHHYZjs = require('./chunk-QM7PHHYZ.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkCJ7DBYEQjs = require('./chunk-CJ7DBYEQ.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkYRQKRQDUjs = require('./chunk-YRQKRQDU.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 = _chunkCJ7DBYEQjs.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, () => ( _chunkYRQKRQDUjs.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, _chunkCJ7DBYEQjs.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 = [..._chunkQM7PHHYZjs.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=${_chunkQM7PHHYZjs.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=${_chunkQM7PHHYZjs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkQM7PHHYZjs.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 = _chunkQM7PHHYZjs.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
|
+
`${_chunkQM7PHHYZjs.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(`${_chunkQM7PHHYZjs.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 = _chunkCJ7DBYEQjs.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
|
+
_chunkG5TV6WLVjs.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
|
+
_chunkG5TV6WLVjs.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
|
+
_chunkG5TV6WLVjs.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
|
+
_chunkG5TV6WLVjs.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 = _chunkCJ7DBYEQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
366
366
|
const catalog = {
|
|
367
|
-
skillNames: [...
|
|
368
|
-
version:
|
|
367
|
+
skillNames: [..._chunkQM7PHHYZjs.DEFAULT_SDK_SKILL_NAMES],
|
|
368
|
+
version: _chunkYRQKRQDUjs.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
|
+
_chunkG5TV6WLVjs.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)) && !_chunkQM7PHHYZjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
380
|
+
_chunkG5TV6WLVjs.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, ..._chunkQM7PHHYZjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
413
413
|
];
|
|
414
414
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
415
|
-
|
|
415
|
+
_chunkCJ7DBYEQjs.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 _chunkQM7PHHYZjs.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 _chunkQM7PHHYZjs.SkillsStateUnavailableError)) throw error;
|
|
433
|
+
_chunkG5TV6WLVjs.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
|
+
_chunkG5TV6WLVjs.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 ${_chunkQM7PHHYZjs.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
|
+
_chunkG5TV6WLVjs.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
|
+
_chunkG5TV6WLVjs.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: _chunkYRQKRQDUjs.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
|
+
_chunkQM7PHHYZjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
577
577
|
}
|
|
578
|
-
|
|
578
|
+
_chunkG5TV6WLVjs.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 ${_chunkQM7PHHYZjs.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(_chunkQM7PHHYZjs.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
|
+
_chunkG5TV6WLVjs.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 _chunkQM7PHHYZjs.syncSdkSkillsIfNeeded.call(void 0, _chunkCJ7DBYEQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
659
659
|
mode: "inline",
|
|
660
660
|
notices: "defer",
|
|
661
661
|
claim
|
|
@@ -1,15 +1,15 @@
|
|
|
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 _chunkERLW6RPAjs = require('./chunk-ERLW6RPA.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkYRQKRQDUjs = require('./chunk-YRQKRQDU.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
|
|
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
|
|
|
55
55
|
}
|
|
56
56
|
function listClaudeSessionFiles() {
|
|
57
57
|
const files = [];
|
|
58
|
-
for (const root of
|
|
58
|
+
for (const root of _chunkYRQKRQDUjs.claudeProjectsRoots.call(void 0, )) {
|
|
59
59
|
files.push(...listClaudeSessionFilesIn(root));
|
|
60
60
|
}
|
|
61
61
|
return files;
|
|
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
|
|
|
147
147
|
const newestFirst = listSessionFiles(agent).sort(
|
|
148
148
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
149
149
|
);
|
|
150
|
-
const sessionId =
|
|
150
|
+
const sessionId = _chunkYRQKRQDUjs.agentSessionIdFromEnvironment.call(void 0,
|
|
151
151
|
process.env,
|
|
152
152
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
153
153
|
);
|
|
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
|
|
|
156
156
|
(candidate) => candidate.sessionId === sessionId
|
|
157
157
|
);
|
|
158
158
|
if (named) return named;
|
|
159
|
-
const cowork = agent === "codex" ? null :
|
|
159
|
+
const cowork = agent === "codex" ? null : _chunkYRQKRQDUjs.coworkTranscriptFromEnvironment.call(void 0, );
|
|
160
160
|
const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
|
|
161
161
|
if (cowork && coworkStat) {
|
|
162
162
|
return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
|
|
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
|
|
|
166
166
|
), () => ( newestFirst[0])), () => ( null));
|
|
167
167
|
}
|
|
168
168
|
function feedbackAgentSessionId(agentRuntime) {
|
|
169
|
-
return _nullishCoalesce(
|
|
169
|
+
return _nullishCoalesce(_chunkYRQKRQDUjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkYRQKRQDUjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
|
|
170
170
|
}
|
|
171
171
|
function sessionStartedInDirectory(candidate, cwd) {
|
|
172
172
|
if (candidate.agent === "claude") {
|
|
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
|
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
217
217
|
function sessionSearchDescription(agent) {
|
|
218
|
-
const claude =
|
|
218
|
+
const claude = _chunkYRQKRQDUjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
|
|
219
219
|
if (agent === "claude") return claude;
|
|
220
220
|
if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
|
|
221
221
|
return `${claude} or ~/.codex/sessions/**/*.jsonl`;
|
|
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
|
|
|
472
472
|
return { encodedContent: encoded, needsChunking: true };
|
|
473
473
|
}
|
|
474
474
|
async function uploadPayload(path, payload) {
|
|
475
|
-
const { http } =
|
|
475
|
+
const { http } = _chunkG5TV6WLVjs.getAuthedHttpClient.call(void 0, );
|
|
476
476
|
return await http.post(path, payload);
|
|
477
477
|
}
|
|
478
478
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
|
|
|
550
550
|
return target.sessionId;
|
|
551
551
|
}
|
|
552
552
|
async function handleSessionsSend(options) {
|
|
553
|
-
if (
|
|
553
|
+
if (_chunkERLW6RPAjs.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
554
554
|
const rating = parseSessionRating(options.rating);
|
|
555
555
|
if (options.file) {
|
|
556
556
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
|
|
|
562
562
|
filename: _path.basename.call(void 0, filePath),
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
|
-
|
|
565
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
|
|
566
566
|
{
|
|
567
567
|
...response2,
|
|
568
568
|
ok: true,
|
|
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
|
|
|
594
594
|
labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
|
|
595
595
|
});
|
|
596
596
|
const sessionIds = built.map((session) => session.sessionId);
|
|
597
|
-
|
|
597
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
|
|
598
598
|
{
|
|
599
599
|
...response,
|
|
600
600
|
ok: true,
|
|
@@ -702,7 +702,7 @@ ${refreshMeta}
|
|
|
702
702
|
</body>
|
|
703
703
|
</html>`;
|
|
704
704
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
705
|
-
|
|
705
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
|
|
706
706
|
{
|
|
707
707
|
ok: true,
|
|
708
708
|
file: outputPath,
|
|
@@ -36,7 +36,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkYRQKRQDUjs = require('./chunk-YRQKRQDU.js');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
|
|
@@ -688,7 +688,7 @@ var ToolCalls = class {
|
|
|
688
688
|
idempotencyKey,
|
|
689
689
|
onResponse: (response2) => {
|
|
690
690
|
lastResponse = null;
|
|
691
|
-
atomicToolsSupported = response2.headers.get(
|
|
691
|
+
atomicToolsSupported = response2.headers.get(_chunkYRQKRQDUjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
692
692
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
693
693
|
if (_optionalChain([options, 'optionalAccess', _33 => _33.onServerTiming])) {
|
|
694
694
|
try {
|
|
@@ -1075,15 +1075,15 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
const receivers = _optionalChain([env, 'access', _58 => _58.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
|
|
1077
1077
|
return {
|
|
1078
|
-
[
|
|
1079
|
-
...receivers ? { [
|
|
1078
|
+
[_chunkYRQKRQDUjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1079
|
+
...receivers ? { [_chunkYRQKRQDUjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1080
1080
|
};
|
|
1081
1081
|
}
|
|
1082
1082
|
function playRunStartHeaders(runtime, env) {
|
|
1083
1083
|
const headers = runtimeSelectionHeaders(runtime, env);
|
|
1084
1084
|
const experimentSwitches = _optionalChain([env, 'access', _61 => _61.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
|
|
1085
1085
|
if (!experimentSwitches) return headers;
|
|
1086
|
-
return { ...headers, [
|
|
1086
|
+
return { ...headers, [_chunkYRQKRQDUjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
|
|
1087
1087
|
}
|
|
1088
1088
|
function normalizeTestPolicyOverrides(value, source) {
|
|
1089
1089
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -1153,7 +1153,7 @@ var PlayClient = class {
|
|
|
1153
1153
|
return _chunkSL6MYJYMjs.startPlayRun.call(void 0,
|
|
1154
1154
|
this.http,
|
|
1155
1155
|
resolved.request,
|
|
1156
|
-
_optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1156
|
+
_optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkYRQKRQDUjs.SDK_API_MAJOR) } : headers,
|
|
1157
1157
|
options
|
|
1158
1158
|
);
|
|
1159
1159
|
}
|
|
@@ -3369,7 +3369,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3369
3369
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3370
3370
|
);
|
|
3371
3371
|
}
|
|
3372
|
-
return { [
|
|
3372
|
+
return { [_chunkYRQKRQDUjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3373
3373
|
}
|
|
3374
3374
|
function sleep(ms) {
|
|
3375
3375
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4284,7 +4284,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4284
4284
|
);
|
|
4285
4285
|
const headers = _optionalChain([options, 'optionalAccess', _202 => _202.cliAdmission]) ? {
|
|
4286
4286
|
...runtimeHeaders,
|
|
4287
|
-
"X-Deepline-API-Major": String(
|
|
4287
|
+
"X-Deepline-API-Major": String(_chunkYRQKRQDUjs.SDK_API_MAJOR)
|
|
4288
4288
|
} : runtimeHeaders;
|
|
4289
4289
|
const http = this.http;
|
|
4290
4290
|
let submitted = false;
|
|
@@ -7333,7 +7333,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7333
7333
|
const body = {
|
|
7334
7334
|
...typeof definitionOrId === "string" ? {} : { definition: definitionOrId },
|
|
7335
7335
|
..._optionalChain([options, 'optionalAccess', _427 => _427.dryRun]) ? { dry_run: true } : {},
|
|
7336
|
-
..._optionalChain([options, 'optionalAccess', _428 => _428.
|
|
7336
|
+
..._optionalChain([options, 'optionalAccess', _428 => _428.adoptExisting]) ? { adopt_existing: true } : {},
|
|
7337
|
+
..._optionalChain([options, 'optionalAccess', _429 => _429.expectedGeneration]) !== void 0 ? { expected_generation: options.expectedGeneration } : {}
|
|
7337
7338
|
};
|
|
7338
7339
|
return this.http.request(
|
|
7339
7340
|
this.monitorFleetPath(fleetId),
|
|
@@ -7341,7 +7342,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7341
7342
|
method: "PUT",
|
|
7342
7343
|
body,
|
|
7343
7344
|
timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
|
|
7344
|
-
headers: this.monitorFleetHeaders("sync", _optionalChain([options, 'optionalAccess',
|
|
7345
|
+
headers: this.monitorFleetHeaders("sync", _optionalChain([options, 'optionalAccess', _430 => _430.idempotencyKey])),
|
|
7345
7346
|
maxRetries: 0,
|
|
7346
7347
|
exactUrlOnly: true
|
|
7347
7348
|
}
|
|
@@ -7355,10 +7356,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7355
7356
|
/** The Fleets list. Prefer `client.monitors.fleets.overview()`. */
|
|
7356
7357
|
async listMonitorFleetOverviews(options) {
|
|
7357
7358
|
const params = new URLSearchParams({ view: "overview" });
|
|
7358
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7359
|
-
for (const state of _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
7360
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7361
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7359
|
+
if (_optionalChain([options, 'optionalAccess', _431 => _431.q])) params.set("q", options.q);
|
|
7360
|
+
for (const state of _nullishCoalesce(_optionalChain([options, 'optionalAccess', _432 => _432.states]), () => ( []))) params.append("state", state);
|
|
7361
|
+
if (_optionalChain([options, 'optionalAccess', _433 => _433.sort])) params.set("sort", options.sort);
|
|
7362
|
+
if (_optionalChain([options, 'optionalAccess', _434 => _434.window])) params.set("window", options.window);
|
|
7362
7363
|
return this.http.request(
|
|
7363
7364
|
`/api/v2/monitors/fleets?${params.toString()}`,
|
|
7364
7365
|
{ method: "GET" }
|
|
@@ -7367,7 +7368,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7367
7368
|
/** One fleet's overview. Prefer `client.monitors.fleets.overview(fleetId)`. */
|
|
7368
7369
|
async getMonitorFleetOverview(fleetId, options) {
|
|
7369
7370
|
const params = new URLSearchParams({ view: "overview" });
|
|
7370
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7371
|
+
if (_optionalChain([options, 'optionalAccess', _435 => _435.window])) params.set("window", options.window);
|
|
7371
7372
|
return this.http.request(
|
|
7372
7373
|
`${this.monitorFleetPath(fleetId)}?${params.toString()}`,
|
|
7373
7374
|
{ method: "GET" }
|
|
@@ -7376,10 +7377,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7376
7377
|
/** A fleet's problem members. Prefer `client.monitors.fleets.issues(...)`. */
|
|
7377
7378
|
async listMonitorFleetIssues(fleetId, options) {
|
|
7378
7379
|
const params = new URLSearchParams();
|
|
7379
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7380
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7381
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7382
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7380
|
+
if (_optionalChain([options, 'optionalAccess', _436 => _436.group])) params.set("group", options.group);
|
|
7381
|
+
if (_optionalChain([options, 'optionalAccess', _437 => _437.cause])) params.set("cause", options.cause);
|
|
7382
|
+
if (_optionalChain([options, 'optionalAccess', _438 => _438.cursor])) params.set("cursor", options.cursor);
|
|
7383
|
+
if (_optionalChain([options, 'optionalAccess', _439 => _439.limit]) !== void 0)
|
|
7383
7384
|
params.set("limit", String(options.limit));
|
|
7384
7385
|
const query = params.toString();
|
|
7385
7386
|
return this.http.request(
|
|
@@ -7389,8 +7390,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7389
7390
|
}
|
|
7390
7391
|
async getMonitorFleet(fleetId, options) {
|
|
7391
7392
|
const params = new URLSearchParams();
|
|
7392
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7393
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7393
|
+
if (_optionalChain([options, 'optionalAccess', _440 => _440.drift])) params.set("drift", "1");
|
|
7394
|
+
if (_optionalChain([options, 'optionalAccess', _441 => _441.limit]) !== void 0)
|
|
7394
7395
|
params.set("limit", String(options.limit));
|
|
7395
7396
|
const query = params.toString();
|
|
7396
7397
|
return this.http.request(
|
|
@@ -7403,11 +7404,11 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7403
7404
|
this.monitorFleetPath(fleetId),
|
|
7404
7405
|
{
|
|
7405
7406
|
method: "DELETE",
|
|
7406
|
-
body: _optionalChain([options, 'optionalAccess',
|
|
7407
|
+
body: _optionalChain([options, 'optionalAccess', _442 => _442.dryRun]) ? { dry_run: true } : {},
|
|
7407
7408
|
timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
|
|
7408
7409
|
headers: this.monitorFleetHeaders(
|
|
7409
7410
|
"deactivate",
|
|
7410
|
-
_optionalChain([options, 'optionalAccess',
|
|
7411
|
+
_optionalChain([options, 'optionalAccess', _443 => _443.idempotencyKey])
|
|
7411
7412
|
),
|
|
7412
7413
|
maxRetries: 0,
|
|
7413
7414
|
exactUrlOnly: true
|
|
@@ -7423,7 +7424,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7423
7424
|
timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
|
|
7424
7425
|
headers: this.monitorFleetHeaders(
|
|
7425
7426
|
"reactivate",
|
|
7426
|
-
_optionalChain([options, 'optionalAccess',
|
|
7427
|
+
_optionalChain([options, 'optionalAccess', _444 => _444.idempotencyKey])
|
|
7427
7428
|
),
|
|
7428
7429
|
maxRetries: 0,
|
|
7429
7430
|
exactUrlOnly: true
|
|
@@ -7440,9 +7441,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7440
7441
|
* identical to "the request failed".
|
|
7441
7442
|
*/
|
|
7442
7443
|
async waitForMonitorFleetConvergence(fleetId, options) {
|
|
7443
|
-
const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
7444
|
-
const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
7445
|
-
const terminal = _optionalChain([options, 'optionalAccess',
|
|
7444
|
+
const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _445 => _445.timeoutMs]), () => ( 10 * 6e4)));
|
|
7445
|
+
const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _446 => _446.pollIntervalMs]), () => ( 2e3)));
|
|
7446
|
+
const terminal = _optionalChain([options, 'optionalAccess', _447 => _447.until]) === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded", "billing_suspended"]) : /* @__PURE__ */ new Set([
|
|
7446
7447
|
"converged",
|
|
7447
7448
|
"degraded",
|
|
7448
7449
|
"deactivated",
|
|
@@ -7451,7 +7452,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7451
7452
|
const startedAt = Date.now();
|
|
7452
7453
|
let latest = await this.getMonitorFleet(fleetId);
|
|
7453
7454
|
while (true) {
|
|
7454
|
-
_optionalChain([options, 'optionalAccess',
|
|
7455
|
+
_optionalChain([options, 'optionalAccess', _448 => _448.onProgress, 'optionalCall', _449 => _449(latest)]);
|
|
7455
7456
|
const status = typeof latest.status === "string" ? latest.status : void 0;
|
|
7456
7457
|
if (status && terminal.has(status)) return latest;
|
|
7457
7458
|
if (Date.now() - startedAt >= timeoutMs) return latest;
|