deepline 0.3.427 → 0.3.429
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/sdk/src/types.ts +14 -1
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +11 -8
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/cli/auth-KNATWMNY.js +40 -0
- package/dist/cli/{auth-4X5ZKTJJ.mjs → auth-VVTFGWJO.mjs} +4 -4
- package/dist/cli/{billing-OXG3Q7AS.js → billing-LYFQRKIT.js} +73 -73
- package/dist/cli/{billing-V3OQHRKV.mjs → billing-UL7WSUTB.mjs} +4 -4
- package/dist/cli/{chunk-CH7B3T5E.mjs → chunk-42RBIHU5.mjs} +1 -1
- package/dist/cli/{chunk-ZNBMA4ZC.js → chunk-4BXZBDI3.js} +50 -50
- package/dist/cli/{chunk-3H4CUTG5.mjs → chunk-5B4E3WNZ.mjs} +2 -2
- package/dist/cli/{chunk-POIETGSV.mjs → chunk-73XPPBKX.mjs} +2 -2
- package/dist/cli/{chunk-WWOUGKO6.js → chunk-7H65SYK3.js} +6 -6
- package/dist/cli/{chunk-O3ZWP4KL.js → chunk-7VB4IDTE.js} +12 -9
- package/dist/cli/{chunk-U4MH5KFQ.js → chunk-ALS26N2J.js} +10 -10
- package/dist/cli/{chunk-3O5BPCWB.mjs → chunk-CAOJGQ7F.mjs} +5 -5
- package/dist/cli/{chunk-X4FVKKU2.mjs → chunk-CLYPCYS7.mjs} +8 -8
- package/dist/cli/{chunk-3UGHZGXU.mjs → chunk-FZ6BGVW6.mjs} +1 -1
- package/dist/cli/{chunk-YTWDMQLC.js → chunk-GJVN2OIX.js} +2 -2
- package/dist/cli/{chunk-6KFFNYO6.js → chunk-HESEQV33.js} +8 -8
- package/dist/cli/{chunk-GYZDLABX.js → chunk-IP4IW4M4.js} +26 -26
- package/dist/cli/{chunk-4GJT6BAH.js → chunk-IUYCK4MZ.js} +35 -35
- package/dist/cli/{chunk-INFLI36H.js → chunk-K4EHBVYV.js} +13 -6
- package/dist/cli/{chunk-OZ7M22PE.mjs → chunk-KXHXZ2R4.mjs} +3 -3
- package/dist/cli/{chunk-XAUHRRUG.js → chunk-LYNUCTLH.js} +1 -1
- package/dist/cli/{chunk-STV2UBYA.mjs → chunk-M4OIGYU6.mjs} +7 -4
- package/dist/cli/{chunk-JD5WFLF6.mjs → chunk-N2UQLMCH.mjs} +1 -1
- package/dist/cli/{chunk-MALRKVEP.js → chunk-N37OGHQR.js} +4 -4
- package/dist/cli/{chunk-5HFIHG2V.mjs → chunk-N5Q7GCTI.mjs} +3 -3
- package/dist/cli/{chunk-MWL44NXV.mjs → chunk-OHD4H4CU.mjs} +1 -1
- package/dist/cli/{chunk-TXCYMXG7.js → chunk-OPOS55BL.js} +6 -6
- package/dist/cli/{chunk-H64EDTZZ.mjs → chunk-QJG6VLPU.mjs} +2 -2
- package/dist/cli/{chunk-EER67G2B.mjs → chunk-R4MGS7YD.mjs} +13 -6
- package/dist/cli/{chunk-7SUNA75F.js → chunk-RGDZ6AAX.js} +52 -52
- package/dist/cli/{chunk-CYF7Y2K3.mjs → chunk-RMJ35WKB.mjs} +2 -2
- package/dist/cli/{chunk-XIZCVFTO.js → chunk-ULJLCHJ3.js} +2 -2
- package/dist/cli/{chunk-BVJFHPB5.js → chunk-UM4C6PSJ.js} +79 -79
- package/dist/cli/{chunk-MTI24NKI.mjs → chunk-V5JHBTQJ.mjs} +1 -1
- package/dist/cli/{chunk-JEFT6QTT.mjs → chunk-VDE2V6O6.mjs} +1 -1
- package/dist/cli/{chunk-MJ2WV3LS.mjs → chunk-VEHQBGWS.mjs} +4 -4
- package/dist/cli/{chunk-4NZAT6VQ.js → chunk-XYFONY3Y.js} +20 -20
- package/dist/cli/{chunk-PLN4F3DW.js → chunk-ZH3Q6AEB.js} +16 -16
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-UP7VZ5XY.js → csv-RMPUP5SR.js} +12 -12
- package/dist/cli/{csv-MTZFRU7E.mjs → csv-TVBFPGXO.mjs} +3 -3
- package/dist/cli/{db-N67ZA3XK.mjs → db-7XYZVCAL.mjs} +4 -4
- package/dist/cli/{db-UYDMCKKN.js → db-GWOQMQQT.js} +25 -25
- package/dist/cli/{describe-IHJTJI6Y.mjs → describe-5HDKGDQ2.mjs} +12 -12
- package/dist/cli/{describe-ANKULJMG.js → describe-AI566F46.js} +16 -16
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/{executions-LYI4OYNS.js → executions-EWIVWZQC.js} +6 -6
- package/dist/cli/{executions-5AV5LB25.mjs → executions-XNTOZHZY.mjs} +4 -4
- package/dist/cli/{feedback-WTBJTJNZ.mjs → feedback-AHF5WNVA.mjs} +3 -3
- package/dist/cli/{feedback-V6AEZY7B.js → feedback-IYZLJ7ZE.js} +7 -7
- package/dist/cli/git-EHWZSXTK.js +24 -0
- package/dist/cli/{git-TI5FHJAN.mjs → git-EMQ3MVLE.mjs} +4 -4
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-HZSXECAV.js → legacy-noops-7M63J4IC.js} +7 -7
- package/dist/cli/{legacy-noops-55WIJYDZ.mjs → legacy-noops-KZFAEOAR.mjs} +4 -4
- package/dist/cli/{monitors-O233NFG3.mjs → monitors-7XMIETU6.mjs} +4 -4
- package/dist/cli/{monitors-LCM5INTO.js → monitors-BNPHJJBH.js} +84 -84
- package/dist/cli/{org-YY33PBZT.js → org-WNV54C4G.js} +64 -64
- package/dist/cli/{org-RXBSIFKK.mjs → org-WO6VOSTL.mjs} +4 -4
- package/dist/cli/{play-RPVYEAPU.mjs → play-AD3JPG2F.mjs} +11 -11
- package/dist/cli/{play-SKXVHW3X.js → play-D6JUOTX6.js} +298 -298
- package/dist/cli/{providers-LD3KKFJ4.mjs → providers-DMZRJ5B5.mjs} +4 -4
- package/dist/cli/{providers-VEAXU2RJ.js → providers-DUKMQLGB.js} +7 -7
- package/dist/cli/{quickstart-RXWFQYS7.js → quickstart-6PHBKFD6.js} +5 -5
- package/dist/cli/{quickstart-R6AHSDG5.mjs → quickstart-7OJBU7D4.mjs} +3 -3
- package/dist/cli/{search-C5OKXPTC.mjs → search-GYGSJJQF.mjs} +5 -5
- package/dist/cli/search-JBA32QD2.js +30 -0
- package/dist/cli/{secrets-6RB3VV44.mjs → secrets-4YQFKDJS.mjs} +4 -4
- package/dist/cli/{secrets-4H6ZJX73.js → secrets-JMB5BCTQ.js} +13 -13
- package/dist/cli/{sessions-6L3QV7NH.js → sessions-IP7XE32G.js} +5 -5
- package/dist/cli/{sessions-3VBCFW2E.mjs → sessions-SET44DR4.mjs} +4 -4
- package/dist/cli/{settings-QFBAOXNP.js → settings-NT5RSSYG.js} +75 -75
- package/dist/cli/{settings-MSLQGTMD.mjs → settings-SYLLT2KO.mjs} +8 -8
- package/dist/cli/{setup-5STMP55W.js → setup-FIN6TXJF.js} +42 -42
- package/dist/cli/{setup-2DIZBEKV.mjs → setup-TXLBM7NG.mjs} +7 -7
- package/dist/cli/skills-6RTSMDQQ.js +29 -0
- package/dist/cli/{skills-OK6IZA5B.mjs → skills-HHAIAVO2.mjs} +5 -5
- package/dist/cli/tools-4DBJUJDV.js +44 -0
- package/dist/cli/{tools-KNTK3ORX.mjs → tools-DUSWZVFC.mjs} +12 -12
- package/dist/cli/{update-C36Q2GCK.mjs → update-SKJUQK3E.mjs} +7 -7
- package/dist/cli/update-SUJJG5YO.js +31 -0
- package/dist/cli/{workflow-5QUJOFPN.js → workflow-2KI2H3LJ.js} +15 -15
- package/dist/cli/{workflow-TF5JGNEE.mjs → workflow-EJM4EZYA.mjs} +5 -5
- package/dist/{client-DH-fmT69.d.ts → client---03YXeB.d.ts} +9 -0
- package/dist/{client-BcfFWD4Z.d.mts → client-ChLTwy9x.d.mts} +9 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +82 -82
- 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/package.json +1 -1
- package/dist/cli/auth-MK7F2EYA.js +0 -40
- package/dist/cli/git-JGXSEUCH.js +0 -24
- package/dist/cli/search-QETWAC7F.js +0 -30
- package/dist/cli/skills-LNQA7Y64.js +0 -29
- package/dist/cli/tools-ZSJRG6TM.js +0 -44
- package/dist/cli/update-JVAQVWYF.js +0 -31
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7H65SYK3js = require('./chunk-7H65SYK3.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkN37OGHQRjs = require('./chunk-N37OGHQR.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkN37OGHQRjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunk7H65SYK3js.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunk7H65SYK3js.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunk7H65SYK3js.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunk7H65SYK3js.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunk7H65SYK3js.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk7H65SYK3js = require('./chunk-7H65SYK3.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkN37OGHQRjs = require('./chunk-N37OGHQR.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 } = _chunk7H65SYK3js.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
|
+
_chunk7H65SYK3js.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 } = _chunk7H65SYK3js.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
|
+
_chunk7H65SYK3js.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 } = _chunk7H65SYK3js.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
|
+
_chunk7H65SYK3js.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 } = _chunk7H65SYK3js.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 } = _chunk7H65SYK3js.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
|
+
_chunk7H65SYK3js.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 } = _chunk7H65SYK3js.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunk7H65SYK3js.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 } = _chunk7H65SYK3js.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
|
+
_chunk7H65SYK3js.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 } = _chunk7H65SYK3js.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunk7H65SYK3js.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 = _chunkN37OGHQRjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunk7H65SYK3js.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunk7H65SYK3js.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 } = _chunk7H65SYK3js.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
|
+
_chunk7H65SYK3js.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 } = _chunk7H65SYK3js.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
|
+
_chunk7H65SYK3js.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 } = _chunk7H65SYK3js.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunk7H65SYK3js.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkRGDZ6AAXjs = require('./chunk-RGDZ6AAX.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk7H65SYK3js = require('./chunk-7H65SYK3.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ var _chunkWWOUGKO6js = require('./chunk-WWOUGKO6.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkN37OGHQRjs = require('./chunk-N37OGHQR.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 = _chunkN37OGHQRjs.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, () => ( _chunkN37OGHQRjs.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, _chunkN37OGHQRjs.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 = [..._chunkRGDZ6AAXjs.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=${_chunkRGDZ6AAXjs.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=${_chunkRGDZ6AAXjs.SKILLS_NPX_PACKAGE}`,
|
|
139
139
|
"--",
|
|
140
140
|
"skills",
|
|
141
141
|
"add",
|
|
142
|
-
|
|
142
|
+
_chunkRGDZ6AAXjs.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 = _chunkRGDZ6AAXjs.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
|
+
`${_chunkRGDZ6AAXjs.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(`${_chunkRGDZ6AAXjs.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
|
+
_chunk7H65SYK3js.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 = _chunkN37OGHQRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
239
239
|
const catalog = {
|
|
240
|
-
skillNames: [...
|
|
241
|
-
version:
|
|
240
|
+
skillNames: [..._chunkRGDZ6AAXjs.DEFAULT_SDK_SKILL_NAMES],
|
|
241
|
+
version: _chunkN37OGHQRjs.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
|
+
_chunk7H65SYK3js.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)) && !_chunkRGDZ6AAXjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
253
|
+
_chunk7H65SYK3js.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, ..._chunkRGDZ6AAXjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
286
286
|
];
|
|
287
287
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
288
|
-
|
|
288
|
+
_chunkN37OGHQRjs.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 _chunkRGDZ6AAXjs.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 _chunkRGDZ6AAXjs.SkillsStateUnavailableError)) throw error;
|
|
306
|
+
_chunk7H65SYK3js.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
|
+
_chunk7H65SYK3js.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 ${_chunkRGDZ6AAXjs.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
|
+
_chunk7H65SYK3js.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: _chunkN37OGHQRjs.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
|
+
_chunkRGDZ6AAXjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
421
421
|
}
|
|
422
|
-
|
|
422
|
+
_chunk7H65SYK3js.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 ${_chunkRGDZ6AAXjs.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(_chunkRGDZ6AAXjs.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
|
+
_chunk7H65SYK3js.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 _chunkRGDZ6AAXjs.syncSdkSkillsIfNeeded.call(void 0, _chunkN37OGHQRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
485
485
|
mode: "inline",
|
|
486
486
|
notices: "defer",
|
|
487
487
|
claim
|
|
@@ -784,7 +784,8 @@ Purpose:
|
|
|
784
784
|
When:
|
|
785
785
|
[[cli:
|
|
786
786
|
To price a play before running it: plays list --show-cost, then read the
|
|
787
|
-
cost estimate line for the play, or
|
|
787
|
+
cost estimate line for the play, or in JSON observedCost (prebuilts) or
|
|
788
|
+
costEstimate.
|
|
788
789
|
]]
|
|
789
790
|
[[mcp:
|
|
790
791
|
To find a saved or prebuilt play by name. It carries no cost estimate; price
|
|
@@ -798,9 +799,10 @@ Input:
|
|
|
798
799
|
[[cli:
|
|
799
800
|
Output (JSON):
|
|
800
801
|
plays[] with playKey, reference, displayName, description, origin,
|
|
801
|
-
runCount, lastRun, and with --show-cost costEstimate {status, unit
|
|
802
|
-
or "run"), lowCredits, highCredits, source, sampleRunCount} or
|
|
803
|
-
{status: "unavailable", reason, message}
|
|
802
|
+
runCount, lastRun, and with --show-cost: costEstimate {status, unit
|
|
803
|
+
("row" or "run"), lowCredits, highCredits, source, sampleRunCount} or
|
|
804
|
+
{status: "unavailable", reason, message}, and for prebuilts also
|
|
805
|
+
observedCost, the same object search returns; count, has_more, next_cursor,
|
|
804
806
|
next (the next-page command), render.sections with a "cost estimate:"
|
|
805
807
|
line per play.
|
|
806
808
|
]]
|
|
@@ -814,13 +816,15 @@ Cost:
|
|
|
814
816
|
Free.
|
|
815
817
|
[[cli:
|
|
816
818
|
Avoid:
|
|
817
|
-
|
|
819
|
+
For a prebuilt, search and describe show the same observedCost; for your
|
|
820
|
+
own plays only this command estimates cost.
|
|
818
821
|
]]
|
|
819
822
|
`,
|
|
820
823
|
verbose: `
|
|
821
824
|
[[cli:
|
|
822
825
|
Pricing a run:
|
|
823
|
-
Multiply lowCredits..highCredits
|
|
826
|
+
Multiply lowCredits..highCredits (observedCost: avgCredits, or the typical
|
|
827
|
+
range before runs are observed) by the row count when unit is "row", or
|
|
824
828
|
use it directly when unit is "run". Compare with the billing balance.
|
|
825
829
|
When the estimate is unavailable, run a two-row slice first and
|
|
826
830
|
read its actual spend with billing usage --run-id <run-id>.
|
|
@@ -830,6 +834,9 @@ Output fields:
|
|
|
830
834
|
costEstimate.source "observed" (from past runs; shown with ~) or
|
|
831
835
|
"static" (from the play's declared tools).
|
|
832
836
|
costEstimate.sampleRunCount how many runs the observation is based on.
|
|
837
|
+
observedCost avgCredits, medianCredits, maxCredits per unit across
|
|
838
|
+
all workspaces' runs, or status "unavailable" with
|
|
839
|
+
typical {lowCredits, highCredits, unit}.
|
|
833
840
|
has_more / next_cursor the page is bounded; pass --cursor to continue.
|
|
834
841
|
is_truncated true when the page was cut for size.
|
|
835
842
|
]]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isJsonOutputMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V5JHBTQJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
sdkCliStateDirPath,
|
|
18
18
|
skillsAgentPathSegment,
|
|
19
19
|
writeSdkSkillsLocalVersion
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OHD4H4CU.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DeeplineError
|
|
23
23
|
} from "./chunk-E4IXDAZI.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_RELEASE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-42RBIHU5.mjs";
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.429",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-LJ5747UC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FZ6BGVW6.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope,
|
|
9
9
|
renderCommandEnvelopeText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V5JHBTQJ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig,
|
|
13
13
|
sdkCliStateDirPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OHD4H4CU.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__toESM
|
|
@@ -5772,7 +5772,10 @@ function pricingDisplay(item, noteWidth) {
|
|
|
5772
5772
|
cost: `${observedCost.avgCredits}/${observedCost.unit} (observed)`,
|
|
5773
5773
|
// Unclipped: the sample size at the end is what qualifies the figure.
|
|
5774
5774
|
notes: [`Cost: ${observedCost.displayText}`]
|
|
5775
|
-
} : {
|
|
5775
|
+
} : {
|
|
5776
|
+
cost: observedCost.typical ? `${observedCost.typical.lowCredits}\u2013${observedCost.typical.highCredits}/${observedCost.typical.unit} (typical)` : "no data yet",
|
|
5777
|
+
notes: [`Cost: ${observedCost.displayText}`]
|
|
5778
|
+
};
|
|
5776
5779
|
}
|
|
5777
5780
|
if (!pricing)
|
|
5778
5781
|
return { cost: item.kind === "tool" ? "unknown" : "\u2014", notes: [] };
|
|
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkLYNUCTLHjs = require('./chunk-LYNUCTLH.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 = _chunkLYNUCTLHjs.SDK_RELEASE.version;
|
|
653
|
+
var SDK_API_MAJOR = _chunkLYNUCTLHjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
654
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkLYNUCTLHjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
655
655
|
|
|
656
656
|
// src/agent-runtime.ts
|
|
657
657
|
|