deepline 0.3.401 → 0.3.403
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.ts +14 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +7 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +3 -1
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +2 -1
- package/dist/cli/{auth-4AWRW6ED.mjs → auth-AHF355KV.mjs} +4 -4
- package/dist/cli/auth-O7A7JS2M.js +40 -0
- package/dist/cli/{billing-FPHECIIS.js → billing-5L5X2OAC.js} +73 -73
- package/dist/cli/{billing-AMQDNFSL.mjs → billing-LSZECOCV.mjs} +4 -4
- package/dist/cli/{chunk-WSKN3U4U.js → chunk-4BWZA57I.js} +6 -6
- package/dist/cli/{chunk-LD7WUOAZ.js → chunk-57GMG2DV.js} +26 -26
- package/dist/cli/{chunk-M3R2BG3A.js → chunk-5SGQF4QF.js} +8 -8
- package/dist/cli/{chunk-3HWALOL2.mjs → chunk-6BJK4EJ3.mjs} +1 -1
- package/dist/cli/{chunk-5QD6F5TW.js → chunk-77FZLY5L.js} +1 -1
- package/dist/cli/{chunk-TPA6R5EF.mjs → chunk-B4Y2CZKS.mjs} +2 -2
- package/dist/cli/{chunk-X6WLVELL.mjs → chunk-BYBRENKM.mjs} +1 -1
- package/dist/cli/{chunk-YHZUZO3U.mjs → chunk-BZAMOCPA.mjs} +1 -1
- package/dist/cli/{chunk-C7JATIE5.mjs → chunk-C27DGNII.mjs} +1 -1
- package/dist/cli/{chunk-YJZM6SMA.mjs → chunk-CC3QT7Q5.mjs} +2 -2
- package/dist/cli/{chunk-3HU47EGZ.mjs → chunk-CLJGSOVM.mjs} +2 -1
- package/dist/cli/{chunk-OIODIUIC.js → chunk-DJSPH5T2.js} +6 -6
- package/dist/cli/{chunk-7DRPTGCK.js → chunk-FERRDNMO.js} +4 -4
- package/dist/cli/{chunk-D5KFELCC.js → chunk-FQL75GML.js} +8 -8
- package/dist/cli/{chunk-ZKV52IDD.mjs → chunk-GJECLPJP.mjs} +4 -4
- package/dist/cli/{chunk-RMW6SXGP.mjs → chunk-HPEIY4UR.mjs} +3 -3
- package/dist/cli/{chunk-RFG3MRAC.js → chunk-ILHRA7AD.js} +5 -5
- package/dist/cli/{chunk-SXGVRWAW.js → chunk-J3OZIYU4.js} +15 -15
- package/dist/cli/{chunk-R2S7OCRB.mjs → chunk-JHNYOTWR.mjs} +1 -1
- package/dist/cli/{chunk-72ESQ66A.js → chunk-JZ7TJL7G.js} +2 -2
- package/dist/cli/{chunk-MSOOPRSP.mjs → chunk-KTBMDDEQ.mjs} +3 -3
- package/dist/cli/{chunk-RWVQQ7O4.js → chunk-MJ4OWXFM.js} +207 -207
- package/dist/cli/{chunk-BXRIA6OQ.mjs → chunk-MQWZYCQJ.mjs} +2 -2
- package/dist/cli/{chunk-HFYQBC2D.mjs → chunk-PMVFAYL7.mjs} +1 -1
- package/dist/cli/{chunk-H4QOCJNY.mjs → chunk-QN55SQYI.mjs} +7 -7
- package/dist/cli/{chunk-YGHWGZMF.mjs → chunk-RXVJYS76.mjs} +1 -1
- package/dist/cli/{chunk-MH73HMPV.js → chunk-SEFMGO3Z.js} +3 -3
- package/dist/cli/{chunk-GDKUYYCJ.js → chunk-SGPGIC3M.js} +50 -50
- package/dist/cli/{chunk-BHEJDACQ.js → chunk-V4PLPRWQ.js} +4 -4
- package/dist/cli/{chunk-JDA2E5MQ.mjs → chunk-VNO3VAJT.mjs} +1 -1
- package/dist/cli/{chunk-S56LMBGA.js → chunk-VYDYDELF.js} +65 -65
- package/dist/cli/{chunk-KB4SDX5S.js → chunk-Z4VNJOF7.js} +2 -1
- package/dist/cli/{csv-ARB6UC2S.js → csv-IO2BKRNX.js} +12 -12
- package/dist/cli/{csv-FICXQQRA.mjs → csv-J6ZPUWE4.mjs} +3 -3
- package/dist/cli/{db-OG5PJUEH.mjs → db-QICV6JWY.mjs} +4 -4
- package/dist/cli/{db-HFQAZHLR.js → db-ZVRBVSPU.js} +25 -25
- package/dist/cli/{describe-HSHMULQM.js → describe-WX6VWGH6.js} +15 -15
- package/dist/cli/{describe-OU3J552L.mjs → describe-YA35XS55.mjs} +9 -9
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-6JBC2LEV.mjs → executions-X3PDLFKO.mjs} +4 -4
- package/dist/cli/{executions-74BX6WTW.js → executions-YQAUBJLS.js} +6 -6
- package/dist/cli/{feedback-DQMLYSYA.mjs → feedback-HSERSHDV.mjs} +3 -3
- package/dist/cli/{feedback-QVDE26VJ.js → feedback-M2WMOY5B.js} +7 -7
- package/dist/cli/{git-CLGBVWOE.mjs → git-3JMX455D.mjs} +4 -4
- package/dist/cli/git-IUDHAE5O.js +24 -0
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-3WGVVY3K.js → legacy-noops-EMUCJ5KW.js} +7 -7
- package/dist/cli/{legacy-noops-WRSE7SQJ.mjs → legacy-noops-OKC6VDD3.mjs} +4 -4
- package/dist/cli/{monitors-GY4VQLAC.js → monitors-M6DU2JXC.js} +84 -84
- package/dist/cli/{monitors-ZKFTF7YR.mjs → monitors-RH3FIA63.mjs} +4 -4
- package/dist/cli/{org-TYO2HXYG.js → org-BZDZO32O.js} +64 -64
- package/dist/cli/{org-D3PC2XSX.mjs → org-KK3C5J6E.mjs} +4 -4
- package/dist/cli/{play-3OQWZXXS.mjs → play-QXBNDI6C.mjs} +9 -9
- package/dist/cli/{play-ZVHBPWSF.js → play-ZKYHO2KC.js} +249 -249
- package/dist/cli/{providers-FFGKI5TY.mjs → providers-JRN5FNXI.mjs} +4 -4
- package/dist/cli/{providers-PGMUOSED.js → providers-VCT7HFYW.js} +7 -7
- package/dist/cli/{quickstart-PSA6H2J4.js → quickstart-X2IC2U6U.js} +5 -5
- package/dist/cli/{quickstart-JCOPUMOG.mjs → quickstart-Y33XAQDY.mjs} +3 -3
- package/dist/cli/search-7257KVSQ.js +30 -0
- package/dist/cli/{search-UBDRYRKV.mjs → search-R443WBN7.mjs} +5 -5
- package/dist/cli/{secrets-KERFAL3Q.mjs → secrets-EUKR5NG2.mjs} +4 -4
- package/dist/cli/{secrets-35D7PHB6.js → secrets-U6V4M7R3.js} +13 -13
- package/dist/cli/{sessions-FDQFQHRN.js → sessions-IPKYJT4M.js} +5 -5
- package/dist/cli/{sessions-O2Z2KW6M.mjs → sessions-RZVHJSVB.mjs} +4 -4
- package/dist/cli/{settings-4ZS7FR2D.mjs → settings-FKU7KJ24.mjs} +7 -7
- package/dist/cli/{settings-4FANCMJK.js → settings-W4YFY5JJ.js} +74 -74
- package/dist/cli/{setup-M2PE4H6S.mjs → setup-6WIECL4V.mjs} +6 -6
- package/dist/cli/{setup-DO7JN6D5.js → setup-BEIN6536.js} +41 -41
- package/dist/cli/skills-A7ATFQEL.js +29 -0
- package/dist/cli/{skills-TQBVDZRT.mjs → skills-CV72BOP7.mjs} +4 -4
- package/dist/cli/tools-2ADAYBNB.js +39 -0
- package/dist/cli/{tools-WNRMVURQ.mjs → tools-2SH4RIFD.mjs} +8 -8
- package/dist/cli/update-AUYYCJUT.js +29 -0
- package/dist/cli/{update-3MF6MZJC.mjs → update-YTR4JUPG.mjs} +6 -6
- package/dist/cli/{workflow-EK3HMPGH.js → workflow-446CNNRV.js} +15 -15
- package/dist/cli/{workflow-UJB633SZ.mjs → workflow-BBSL2QKK.mjs} +5 -5
- package/dist/{client-D0j-_aaa.d.mts → client-Buv1_ktG.d.mts} +4 -2
- package/dist/{client-DflfVyj6.d.ts → client-Db1jFLpF.d.ts} +4 -2
- package/dist/{compiler-manifest-DLxUY5kI.d.ts → compiler-manifest-N77W75Py.d.mts} +10 -6
- package/dist/{compiler-manifest-DLxUY5kI.d.mts → compiler-manifest-N77W75Py.d.ts} +10 -6
- package/dist/{index-SCb0NvDb.d.mts → index-3WOfyVhW.d.mts} +1 -1
- package/dist/{index-B_GM9E3q.d.ts → index-CtIJFTCl.d.ts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +84 -84
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -2
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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-K6U65ROB.js +0 -40
- package/dist/cli/git-62XASBWF.js +0 -24
- package/dist/cli/search-OLW7VOVW.js +0 -30
- package/dist/cli/skills-OLGAL6KZ.js +0 -29
- package/dist/cli/tools-3NNIOEWK.js +0 -39
- package/dist/cli/update-6CWJ56OJ.js +0 -29
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk4BWZA57Ijs = require('./chunk-4BWZA57I.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkV4PLPRWQjs = require('./chunk-V4PLPRWQ.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 } = _chunk4BWZA57Ijs.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
|
+
_chunk4BWZA57Ijs.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 } = _chunk4BWZA57Ijs.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
|
+
_chunk4BWZA57Ijs.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 } = _chunk4BWZA57Ijs.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
|
+
_chunk4BWZA57Ijs.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 } = _chunk4BWZA57Ijs.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 } = _chunk4BWZA57Ijs.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
|
+
_chunk4BWZA57Ijs.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 } = _chunk4BWZA57Ijs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunk4BWZA57Ijs.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 } = _chunk4BWZA57Ijs.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
|
+
_chunk4BWZA57Ijs.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 } = _chunk4BWZA57Ijs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunk4BWZA57Ijs.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 = _chunkV4PLPRWQjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunk4BWZA57Ijs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunk4BWZA57Ijs.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 } = _chunk4BWZA57Ijs.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
|
+
_chunk4BWZA57Ijs.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 } = _chunk4BWZA57Ijs.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
|
+
_chunk4BWZA57Ijs.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 } = _chunk4BWZA57Ijs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -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 _chunk4BWZA57Ijs = require('./chunk-4BWZA57I.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkV4PLPRWQjs = require('./chunk-V4PLPRWQ.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 = _chunkV4PLPRWQjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
143
143
|
const cwd = process.cwd();
|
|
144
144
|
return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
|
|
145
145
|
(candidate) => sessionStartedInDirectory(candidate, cwd)
|
|
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
|
|
|
448
448
|
return { encodedContent: encoded, needsChunking: true };
|
|
449
449
|
}
|
|
450
450
|
async function uploadPayload(path, payload) {
|
|
451
|
-
const { http } =
|
|
451
|
+
const { http } = _chunk4BWZA57Ijs.getAuthedHttpClient.call(void 0, );
|
|
452
452
|
return await http.post(path, payload);
|
|
453
453
|
}
|
|
454
454
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
481
481
|
...options.rating ? { rating: options.rating } : {}
|
|
482
482
|
});
|
|
483
483
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
484
|
-
|
|
484
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
485
485
|
{
|
|
486
486
|
...response,
|
|
487
487
|
ok: true,
|
|
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
|
|
|
513
513
|
filename: _path.basename.call(void 0, filePath),
|
|
514
514
|
...rating ? { rating } : {}
|
|
515
515
|
});
|
|
516
|
-
|
|
516
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
517
517
|
{
|
|
518
518
|
...response2,
|
|
519
519
|
ok: true,
|
|
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
|
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
565
|
const sessionIds = built.map((session) => session.sessionId);
|
|
566
|
-
|
|
566
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
567
567
|
{
|
|
568
568
|
...response,
|
|
569
569
|
ok: true,
|
|
@@ -671,7 +671,7 @@ ${refreshMeta}
|
|
|
671
671
|
</body>
|
|
672
672
|
</html>`;
|
|
673
673
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
674
|
-
|
|
674
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
675
675
|
{
|
|
676
676
|
ok: true,
|
|
677
677
|
file: outputPath,
|
|
@@ -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.403",
|
|
53
53
|
updateSummary: "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.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VNO3VAJT.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BYBRENKM.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VNO3VAJT.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-BYBRENKM.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -1682,7 +1682,8 @@ var PLAY_AUTHORING_CLOUD_TYPE_DECLARATIONS = [
|
|
|
1682
1682
|
" run(options?: DatasetRunOptions<InputRow>): Promise<PlayDataset<OutputRow>>;",
|
|
1683
1683
|
"};",
|
|
1684
1684
|
"export type PlayReferenceLike<TInput extends Record<string, unknown> = Record<string, unknown>> = ({ readonly playName: string; readonly name?: string } | { readonly name: string; readonly playName?: string }) & { readonly __inputType?: TInput };",
|
|
1685
|
-
"export type
|
|
1685
|
+
"export type BillingBenefitValues = { quickenrichUnlimited: { enabled: boolean; requestsPerMinute: number } };",
|
|
1686
|
+
"export type BillingEntitlements = { org_id: string; as_of: number; plan: { sku: string; name: string; catalog_revision: string | null; included_credits: number; interval: 'month' | 'year' | null } | null; benefits: { quickenrichUnlimited?: { status: 'active' | 'past_due'; value: BillingBenefitValues['quickenrichUnlimited']; expiresAt?: number } }; effective_limits: { quickenrichUnlimited?: { baseline: number; effective: number; source: 'plan' | 'override'; override_expires_at?: number } } };",
|
|
1686
1687
|
"export interface DeeplinePlayRuntimeContext {",
|
|
1687
1688
|
" billing: { entitlements(): Promise<BillingEntitlements> };",
|
|
1688
1689
|
" csv<T = Record<string, unknown>>(path: string | CsvInput<T & object>, options?: CsvOptions): Promise<PlayDataset<T>>;",
|
|
@@ -24,7 +24,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkV4PLPRWQjs = require('./chunk-V4PLPRWQ.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkQ2E4E4FJjs = require('./chunk-Q2E4E4FJ.js');
|
|
@@ -2889,8 +2889,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
const receivers = _optionalChain([env, 'access', _97 => _97.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _98 => _98.trim, 'call', _99 => _99()]);
|
|
2891
2891
|
return {
|
|
2892
|
-
[
|
|
2893
|
-
...receivers ? { [
|
|
2892
|
+
[_chunkV4PLPRWQjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2893
|
+
...receivers ? { [_chunkV4PLPRWQjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2894
2894
|
};
|
|
2895
2895
|
}
|
|
2896
2896
|
function isolatedCiRuntimeEventReadHeaders(env) {
|
|
@@ -2906,7 +2906,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
2906
2906
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2907
2907
|
);
|
|
2908
2908
|
}
|
|
2909
|
-
return { [
|
|
2909
|
+
return { [_chunkV4PLPRWQjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2910
2910
|
}
|
|
2911
2911
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2912
2912
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3197,9 +3197,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3197
3197
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3198
3198
|
*/
|
|
3199
3199
|
constructor(options) {
|
|
3200
|
-
this.config =
|
|
3200
|
+
this.config = _chunkV4PLPRWQjs.resolveConfig.call(void 0, options);
|
|
3201
3201
|
this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
|
|
3202
|
-
this.http = new (0,
|
|
3202
|
+
this.http = new (0, _chunkV4PLPRWQjs.HttpClient)(this.config);
|
|
3203
3203
|
this.toolCalls = new ToolCalls(
|
|
3204
3204
|
this.http,
|
|
3205
3205
|
this.config.timeout,
|
|
@@ -15,7 +15,7 @@ var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
|
15
15
|
var _chunkNA4T3B62js = require('./chunk-NA4T3B62.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkZ4VNJOF7js = require('./chunk-Z4VNJOF7.js');
|
|
19
19
|
|
|
20
20
|
// ../plays/field-catalog.ts
|
|
21
21
|
var value = (description) => ({ type: "string", description });
|
|
@@ -240,8 +240,8 @@ function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdi
|
|
|
240
240
|
arrayField(toolExecutionResult, "extractedLists", "extracted_lists")
|
|
241
241
|
).map((entry) => ({
|
|
242
242
|
...entry,
|
|
243
|
-
returnType:
|
|
244
|
-
rowsExpression:
|
|
243
|
+
returnType: _chunkZ4VNJOF7js.playToolListGetterMode.call(void 0, authoringContractEdition) === "array" ? "Array" : "PlayDataset",
|
|
244
|
+
rowsExpression: _chunkZ4VNJOF7js.playToolListGetterMode.call(void 0, authoringContractEdition) === "array" ? entry.expression : `await ${entry.expression}.materialize()`
|
|
245
245
|
}));
|
|
246
246
|
const extractedValues = extractionContractEntries(
|
|
247
247
|
arrayField(toolExecutionResult, "extractedValues", "extracted_values")
|
|
@@ -618,7 +618,7 @@ function usageGuidanceWithAccessDefaults(usageGuidance) {
|
|
|
618
618
|
extractedLists: {
|
|
619
619
|
...recordField(existingAccess, "extractedLists"),
|
|
620
620
|
expression: "toolExecutionResult.extractedLists.<name>.get()",
|
|
621
|
-
meaning:
|
|
621
|
+
meaning: _chunkZ4VNJOF7js.playToolListGetterMode.call(void 0, ) === "array" ? "Returns an ordinary array from this response. Use array methods directly or pass it to ctx.dataset to persist row work. Lazy or incomplete lists throw; use readList for an explicit dataset read. It does not fetch provider pages." : "Returns a PlayDataset, not a JavaScript array. Pass the handle to ctx.dataset, use first(), async iteration, or await handle.materialize() for the complete current list within the memory cap. materialize(n) and peek(n) return a prefix; none fetch additional provider pages. A missing getter is not an empty list."
|
|
622
622
|
},
|
|
623
623
|
rawToolResponse: {
|
|
624
624
|
expression: "toolExecutionResult.toolResponse.rawV2",
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDJSPH5T2js = require('./chunk-DJSPH5T2.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk4BWZA57Ijs = require('./chunk-4BWZA57I.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkV4PLPRWQjs = require('./chunk-V4PLPRWQ.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/search.ts
|
|
17
17
|
var _commander = require('commander');
|
|
@@ -21,7 +21,7 @@ var _fs = require('fs');
|
|
|
21
21
|
var _path = require('path');
|
|
22
22
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
23
23
|
function lastSearchPath() {
|
|
24
|
-
return _path.join.call(void 0,
|
|
24
|
+
return _path.join.call(void 0, _chunkV4PLPRWQjs.sdkCliStateDirPath.call(void 0, _chunkV4PLPRWQjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
25
25
|
}
|
|
26
26
|
function rememberSearchRef(searchRef) {
|
|
27
27
|
try {
|
|
@@ -167,7 +167,7 @@ function searchRow(item) {
|
|
|
167
167
|
}
|
|
168
168
|
function renderSearchResults(result) {
|
|
169
169
|
if (result.results.length === 0)
|
|
170
|
-
return
|
|
170
|
+
return _chunk4BWZA57Ijs.renderCommandEnvelopeText.call(void 0, result);
|
|
171
171
|
const rows = result.results.map(searchRow);
|
|
172
172
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
173
173
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -198,7 +198,7 @@ function renderSearchResults(result) {
|
|
|
198
198
|
actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
|
|
199
199
|
};
|
|
200
200
|
const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
|
|
201
|
-
${
|
|
201
|
+
${_chunk4BWZA57Ijs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
202
202
|
const notes = rows.flatMap(
|
|
203
203
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
204
204
|
);
|
|
@@ -275,7 +275,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
275
275
|
console.error(USAGE);
|
|
276
276
|
return 1;
|
|
277
277
|
}
|
|
278
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
278
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkDJSPH5T2js.DeeplineClient)().search({
|
|
279
279
|
query,
|
|
280
280
|
types,
|
|
281
281
|
exclude,
|
|
@@ -289,7 +289,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
289
289
|
});
|
|
290
290
|
if (searchRef) rememberSearchRef(searchRef);
|
|
291
291
|
pointAtDescribe(result);
|
|
292
|
-
|
|
292
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0, result, {
|
|
293
293
|
json: options.json === true,
|
|
294
294
|
text: renderSearchResults(result)
|
|
295
295
|
});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RXVJYS76.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HPEIY4UR.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VNO3VAJT.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BYBRENKM.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-GAMFK2ZP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VNO3VAJT.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -22,13 +22,13 @@ import {
|
|
|
22
22
|
sdkCliStateDirPath,
|
|
23
23
|
skillsAgentPathSegment,
|
|
24
24
|
writeSdkSkillsLocalVersion
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-BYBRENKM.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|
|
28
28
|
} from "./chunk-NXGCO4JB.mjs";
|
|
29
29
|
import {
|
|
30
30
|
SDK_RELEASE
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-JHNYOTWR.mjs";
|
|
32
32
|
|
|
33
33
|
// src/cli/commands/skills.ts
|
|
34
34
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFERRDNMOjs = require('./chunk-FERRDNMO.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -31,7 +31,7 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkFERRDNMOjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
@@ -128,18 +128,18 @@ async function describeName(name, options, lookups) {
|
|
|
128
128
|
const features = toolFeatures(record2);
|
|
129
129
|
return {
|
|
130
130
|
described: {
|
|
131
|
-
...
|
|
131
|
+
..._chunkFERRDNMOjs.describedTool.call(void 0, record2, name),
|
|
132
132
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
133
133
|
// it is a feature, described with --feature byok.
|
|
134
134
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
135
135
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
136
136
|
},
|
|
137
|
-
record:
|
|
137
|
+
record: _chunkFERRDNMOjs.toolMetadataJsonForDescribe.call(void 0,
|
|
138
138
|
record2,
|
|
139
139
|
name,
|
|
140
140
|
lookups.seedStarterScript
|
|
141
141
|
),
|
|
142
|
-
schemas:
|
|
142
|
+
schemas: _chunkFERRDNMOjs.publicToolSchemas.call(void 0, record2),
|
|
143
143
|
feature: (featureName, value) => {
|
|
144
144
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
145
145
|
return feature ? describeFeature(record2, feature, value, {
|