deepline 0.3.529 → 0.3.531
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +10 -8
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +95 -9
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +615 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +115 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +26 -8
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +27 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call-retry-facts.ts +317 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +129 -39
- package/dist/cli/{auth-V7A6TU4G.mjs → auth-33B3OEM4.mjs} +5 -5
- package/dist/cli/auth-3UDRBF5D.js +43 -0
- package/dist/cli/{billing-5VBUYPWW.mjs → billing-X4OQRH6D.mjs} +7 -7
- package/dist/cli/{billing-XF6SAA5Y.js → billing-Y2M2ABLW.js} +82 -82
- package/dist/cli/{chunk-C2WTS7WY.mjs → chunk-2CUPFDW5.mjs} +5 -5
- package/dist/cli/{chunk-TEFO5AS2.js → chunk-2WWTIR2G.js} +98 -98
- package/dist/cli/{chunk-UMCEXTRM.js → chunk-3PMVNMG4.js} +16 -16
- package/dist/cli/{chunk-KSUWW26I.js → chunk-4M4AASO3.js} +13 -13
- package/dist/cli/{chunk-2GV54JFN.js → chunk-4O7UET74.js} +44 -44
- package/dist/cli/{chunk-PNWBODCB.js → chunk-4WPHK2R3.js} +7 -7
- package/dist/cli/{chunk-Y4P6XJHU.mjs → chunk-567HD6G6.mjs} +1 -1
- package/dist/cli/{chunk-ZYMX7KZE.mjs → chunk-57PPAYDB.mjs} +2 -2
- package/dist/cli/{chunk-DPGPXARU.js → chunk-5M24K577.js} +132 -81
- package/dist/cli/{chunk-6XZIXDLC.mjs → chunk-623FFVZU.mjs} +5 -5
- package/dist/cli/{chunk-FWC47SCG.mjs → chunk-6W73VXMK.mjs} +2 -2
- package/dist/cli/{chunk-AP7DNG6D.js → chunk-BUK6WHY2.js} +4 -4
- package/dist/cli/{chunk-DKX5CGTG.mjs → chunk-CVOFP6BU.mjs} +1 -1
- package/dist/cli/{chunk-XZ6OY3BH.js → chunk-D5BLTX5L.js} +1 -1
- package/dist/cli/{chunk-RWY2QLJ4.js → chunk-DWYX5DFJ.js} +41 -41
- package/dist/cli/{chunk-4A4OQMJX.mjs → chunk-EURLINZT.mjs} +1 -1
- package/dist/cli/{chunk-7FCD34YS.mjs → chunk-EVXRQXNV.mjs} +3 -2
- package/dist/cli/{chunk-M47I47FK.js → chunk-H26ZSNLX.js} +14 -14
- package/dist/cli/{chunk-ZULLXAJJ.mjs → chunk-HYPLMUMA.mjs} +5 -5
- package/dist/cli/{chunk-7RTDSHMB.js → chunk-IOOWKPF7.js} +2 -2
- package/dist/cli/{chunk-7SRZTSHU.js → chunk-IXOEKHOY.js} +5 -5
- package/dist/cli/{chunk-KAI64HV7.js → chunk-JFTO33FK.js} +7 -7
- package/dist/cli/{chunk-L3J7IAYE.js → chunk-L4XVL4LW.js} +9 -9
- package/dist/cli/{chunk-BOWZ3OOU.mjs → chunk-MGWYYTZN.mjs} +1 -1
- package/dist/cli/{chunk-GPU4ULMY.mjs → chunk-MYTA37IL.mjs} +10 -10
- package/dist/cli/{chunk-ZEIN5YJS.js → chunk-NXEQMKSM.js} +2 -2
- package/dist/cli/{chunk-FCNSJHED.js → chunk-O267YGUV.js} +6 -6
- package/dist/cli/{chunk-4722FTYU.js → chunk-O4NTPEQV.js} +16 -16
- package/dist/cli/{chunk-HV4UKMBB.mjs → chunk-O7EFJR6Y.mjs} +4 -4
- package/dist/cli/{chunk-NVH6ULDP.js → chunk-PTKSHGUM.js} +22 -22
- package/dist/cli/{chunk-YVJJEMNQ.mjs → chunk-PTOPMO22.mjs} +1 -1
- package/dist/cli/{chunk-H2JAXOPP.js → chunk-RBPCXQBE.js} +11 -11
- package/dist/cli/{chunk-7Z3ZXSOX.js → chunk-RLRPEHQ3.js} +3 -3
- package/dist/cli/{chunk-4BKE63Q7.js → chunk-RZXSCWEB.js} +26 -26
- package/dist/cli/{chunk-PJDYY5JL.mjs → chunk-SPODXGBZ.mjs} +6 -6
- package/dist/cli/{chunk-XEZSORKG.js → chunk-TDJCNVDE.js} +5 -5
- package/dist/cli/{chunk-PAAREIKG.mjs → chunk-TU7HU5K2.mjs} +2 -2
- package/dist/cli/{chunk-NDVCVFZW.mjs → chunk-U5YBINPF.mjs} +2 -2
- package/dist/cli/{chunk-XE4PQE2O.mjs → chunk-UNTFERUX.mjs} +1 -1
- package/dist/cli/{chunk-WL6GAZBD.js → chunk-V6LUMGVI.js} +3 -2
- package/dist/cli/{chunk-ETCGTKLF.mjs → chunk-VGWUCBNA.mjs} +1 -1
- package/dist/cli/{chunk-FXHKNZM2.mjs → chunk-VHIHGMZD.mjs} +1 -1
- package/dist/cli/{chunk-E7CN5GEM.mjs → chunk-VWOOOU6G.mjs} +2 -2
- package/dist/cli/{chunk-BRQDN67G.js → chunk-WDLY4HST.js} +6 -6
- package/dist/cli/{chunk-OA4FI5ZM.js → chunk-WHAMLN6B.js} +2 -2
- package/dist/cli/{chunk-K55VBSCA.mjs → chunk-XOXKVLJZ.mjs} +82 -31
- package/dist/cli/{chunk-R62Z4INU.mjs → chunk-XQGLHKDI.mjs} +2 -2
- package/dist/cli/{chunk-5NZEA2YV.mjs → chunk-XWQI4TMS.mjs} +1 -1
- package/dist/cli/{chunk-G4SYSUDB.mjs → chunk-YMGQP7WI.mjs} +5 -5
- package/dist/cli/{chunk-NVSMSP2J.mjs → chunk-YVOFNLGN.mjs} +2 -2
- package/dist/cli/{chunk-QTQWPSAK.js → chunk-ZBL4CP75.js} +3 -3
- package/dist/cli/{chunk-EW33RCLA.mjs → chunk-ZJQITGPV.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-IHLVHG35.mjs → csv-CMUWCM46.mjs} +4 -4
- package/dist/cli/{csv-VEKMGGOE.js → csv-N4P2XOKP.js} +13 -13
- package/dist/cli/{db-NTFFISQG.js → db-GFI45WV5.js} +27 -27
- package/dist/cli/{db-RKLVYARP.mjs → db-J5HFGOUO.mjs} +6 -6
- package/dist/cli/describe-HFUWQN3A.js +50 -0
- package/dist/cli/{describe-62ELB5DZ.mjs → describe-NKHH3VVI.mjs} +18 -18
- package/dist/cli/{executions-5BMZW4C7.mjs → executions-54QEYYE6.mjs} +6 -6
- package/dist/cli/{executions-X7NMKMXW.js → executions-FMWHU72C.js} +8 -8
- package/dist/cli/{feedback-UHHWCIFD.mjs → feedback-HA4QUWMU.mjs} +6 -6
- package/dist/cli/{feedback-RDN5O4AT.js → feedback-R7C3AZKN.js} +14 -14
- package/dist/cli/git-ETBABM6D.js +25 -0
- package/dist/cli/{git-3M33GKOW.mjs → git-OVG63PJV.mjs} +5 -5
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-ENKN6JU4.js → legacy-noops-GM2F7GMV.js} +9 -9
- package/dist/cli/{legacy-noops-7RVRPF5B.mjs → legacy-noops-PLQWYZ7A.mjs} +6 -6
- package/dist/cli/{monitors-FJPDMUQ6.mjs → monitors-QXK7JTRG.mjs} +7 -7
- package/dist/cli/{monitors-YOWDFGIR.js → monitors-SJBIPV4K.js} +100 -100
- package/dist/cli/{org-H24LOZAC.mjs → org-OFMMMVYT.mjs} +6 -6
- package/dist/cli/{org-4GBLI75H.js → org-XKO7BBT4.js} +86 -86
- package/dist/cli/{pages-BKM2D6BV.mjs → pages-NDI2K34M.mjs} +6 -6
- package/dist/cli/{pages-WWVLYB5K.js → pages-ZGXRON5S.js} +18 -18
- package/dist/cli/{play-TXHKCG6B.js → play-2YD5NTH6.js} +317 -317
- package/dist/cli/{play-M3CSYH3A.mjs → play-SMKNTBRK.mjs} +18 -18
- package/dist/cli/{providers-XL4SNFHU.js → providers-52PIA36O.js} +9 -9
- package/dist/cli/{providers-EW5WTMTX.mjs → providers-6SKF5W4Y.mjs} +6 -6
- package/dist/cli/{quickstart-AFQ5MCDL.js → quickstart-4Z22WVLK.js} +6 -6
- package/dist/cli/{quickstart-SZSLS553.mjs → quickstart-RVA335ED.mjs} +4 -4
- package/dist/cli/{run-MOFHGYSN.js → run-FDTSTMDM.js} +41 -41
- package/dist/cli/{run-TWXFNH6U.mjs → run-GMN4TCVV.mjs} +23 -23
- package/dist/cli/{search-2SW4V4IR.mjs → search-2FG2USCF.mjs} +8 -8
- package/dist/cli/search-63X5FPDM.js +33 -0
- package/dist/cli/{search-output-CJGRPJYD.js → search-output-5FKQYLFW.js} +6 -6
- package/dist/cli/{search-output-I6DNYXNT.mjs → search-output-AC3AAV6E.mjs} +4 -4
- package/dist/cli/{secrets-SD43HSLX.js → secrets-5A7AY2YU.js} +15 -15
- package/dist/cli/{secrets-4XXLR6QO.mjs → secrets-MA4ZTNVG.mjs} +6 -6
- package/dist/cli/{sessions-7G32HW5R.mjs → sessions-LBYKV5O4.mjs} +6 -6
- package/dist/cli/sessions-SMWWKKD4.js +22 -0
- package/dist/cli/{settings-HSYRY2L5.mjs → settings-6MQVNROV.mjs} +13 -13
- package/dist/cli/{settings-SYEBDDDJ.js → settings-HA3D4GNZ.js} +86 -86
- package/dist/cli/{setup-VTWCVCTK.js → setup-3JWTNSOK.js} +78 -63
- package/dist/cli/{setup-XZVBPKZK.mjs → setup-BXCUZOZH.mjs} +28 -13
- package/dist/cli/{skills-OMPEUMRT.mjs → skills-7ASML2WZ.mjs} +8 -8
- package/dist/cli/skills-OJ7NZL6S.js +37 -0
- package/dist/cli/{tools-UEDNJI4G.mjs → tools-7IJWJXZ3.mjs} +17 -17
- package/dist/cli/tools-Y2VMPUSI.js +57 -0
- package/dist/cli/{update-4YVCUSSI.mjs → update-JFKH4SVK.mjs} +10 -10
- package/dist/cli/update-JURCS2FE.js +35 -0
- package/dist/cli/{views-4FP4AJQ2.mjs → views-2EURG3P5.mjs} +6 -6
- package/dist/cli/{views-ZCCSKWMP.js → views-XTAIIX2Y.js} +18 -18
- package/dist/cli/{workflow-A2D5FALP.mjs → workflow-7FCQ34QD.mjs} +7 -7
- package/dist/cli/{workflow-SM4OD4VJ.js → workflow-AXOF74HO.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +108 -106
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-P7M7SXM5.js +0 -43
- package/dist/cli/describe-JXOGKT6C.js +0 -50
- package/dist/cli/git-7VZGGIGZ.js +0 -25
- package/dist/cli/search-V2AGWRLO.js +0 -33
- package/dist/cli/sessions-FIRDFPIZ.js +0 -22
- package/dist/cli/skills-RUY7CION.js +0 -37
- package/dist/cli/tools-KLIW7G6T.js +0 -57
- package/dist/cli/update-FDUZRKKU.js +0 -35
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkJFTO33FKjs = require('./chunk-JFTO33FK.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkRLRPEHQ3js = require('./chunk-RLRPEHQ3.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 } = _chunkJFTO33FKjs.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
|
+
_chunkJFTO33FKjs.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 } = _chunkJFTO33FKjs.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
|
+
_chunkJFTO33FKjs.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 } = _chunkJFTO33FKjs.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
|
+
_chunkJFTO33FKjs.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 } = _chunkJFTO33FKjs.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 } = _chunkJFTO33FKjs.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
|
+
_chunkJFTO33FKjs.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 } = _chunkJFTO33FKjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkJFTO33FKjs.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 } = _chunkJFTO33FKjs.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
|
+
_chunkJFTO33FKjs.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 } = _chunkJFTO33FKjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkJFTO33FKjs.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 = _chunkRLRPEHQ3js.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkJFTO33FKjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkJFTO33FKjs.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 } = _chunkJFTO33FKjs.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
|
+
_chunkJFTO33FKjs.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 } = _chunkJFTO33FKjs.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
|
+
_chunkJFTO33FKjs.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 } = _chunkJFTO33FKjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkJFTO33FKjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MYTA37IL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VHIHGMZD.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,18 +14,18 @@ import {
|
|
|
14
14
|
} from "./chunk-7AOFSZJM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-57PPAYDB.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XQGLHKDI.mjs";
|
|
22
22
|
import {
|
|
23
23
|
printCommandEnvelope
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VWOOOU6G.mjs";
|
|
25
25
|
import {
|
|
26
26
|
autoDetectBaseUrl,
|
|
27
27
|
resolveApiKeyForBaseUrl
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UNTFERUX.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
import { writeFileSync } from "fs";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunk4WPHK2R3js = require('./chunk-4WPHK2R3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRLRPEHQ3js = require('./chunk-RLRPEHQ3.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunk4WPHK2R3js.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkRLRPEHQ3js.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkRLRPEHQ3js.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VWOOOU6G.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UNTFERUX.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-567HD6G6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UNTFERUX.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -300,8 +300,9 @@ Avoid:
|
|
|
300
300
|
"auth register": {
|
|
301
301
|
core: `
|
|
302
302
|
Purpose:
|
|
303
|
-
Start
|
|
304
|
-
|
|
303
|
+
Start device authorization. Open the URL in any browser and click Approve
|
|
304
|
+
if the displayed code matches your terminal. Approval gives the CLI a
|
|
305
|
+
workspace API key.
|
|
305
306
|
When:
|
|
306
307
|
Only in an interactive session where a person can open the URL. Never in an
|
|
307
308
|
unattended agent shell: the command has nothing to do until a human acts.
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UNTFERUX.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MGWYYTZN.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
readToolUpstreamResponse,
|
|
@@ -8,7 +8,7 @@ var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkJFTO33FKjs = require('./chunk-JFTO33FK.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/describe-options.ts
|
|
14
14
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -249,7 +249,7 @@ function projectRunDatasetCell(value) {
|
|
|
249
249
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
250
250
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
251
251
|
if (typeof logicalValue === "object") {
|
|
252
|
-
return
|
|
252
|
+
return _chunkJFTO33FKjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
253
253
|
}
|
|
254
254
|
return logicalValue;
|
|
255
255
|
}
|
|
@@ -641,7 +641,7 @@ function csvText(rows, columns = []) {
|
|
|
641
641
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
642
642
|
columns
|
|
643
643
|
});
|
|
644
|
-
return
|
|
644
|
+
return _chunkJFTO33FKjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
645
645
|
}
|
|
646
646
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
647
647
|
let temp;
|
|
@@ -768,7 +768,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
768
768
|
};
|
|
769
769
|
if (options.receiptOut && !skipReceiptFile) {
|
|
770
770
|
persist(options.receiptOut, jsonText(receipt));
|
|
771
|
-
|
|
771
|
+
_chunkJFTO33FKjs.markJsonOutputHandled.call(void 0, );
|
|
772
772
|
} else {
|
|
773
773
|
printReceipt(receipt, options, {
|
|
774
774
|
data: hasData ? result.data : void 0,
|
|
@@ -1027,8 +1027,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1027
1027
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1028
1028
|
` : receiptText(receipt, options, extra);
|
|
1029
1029
|
if (options.receiptOut !== void 0) {
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
_chunkJFTO33FKjs.writeRawStderr.call(void 0, text);
|
|
1031
|
+
_chunkJFTO33FKjs.markJsonOutputHandled.call(void 0, );
|
|
1032
1032
|
} else {
|
|
1033
1033
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1034
1034
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
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 _chunk4O7UET74js = require('./chunk-4O7UET74.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunk4O7UET74js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VWOOOU6G.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-UNTFERUX.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MGWYYTZN.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -143,6 +143,7 @@ function readPendingAuthClaim(baseUrl, scope) {
|
|
|
143
143
|
orgName: typeof parsed.orgName === "string" ? parsed.orgName.trim() : void 0,
|
|
144
144
|
...parsed.approvalLinkReporting === true ? { approvalLinkReporting: true } : {},
|
|
145
145
|
...typeof parsed.signupWorkspaceId === "string" ? { signupWorkspaceId: parsed.signupWorkspaceId } : {},
|
|
146
|
+
...parsed.device && { device: parsed.device },
|
|
146
147
|
// The record's own scope, when it has one. `register` writes this field
|
|
147
148
|
// precisely so a resume can learn where the credential belongs; reading
|
|
148
149
|
// back the caller's argument instead made it decorative, and a record
|
|
@@ -352,7 +353,7 @@ function printDeeplineLogo() {
|
|
|
352
353
|
}
|
|
353
354
|
console.log("DEEPLINE");
|
|
354
355
|
}
|
|
355
|
-
async function claimInstallBonus(baseUrl, apiKey) {
|
|
356
|
+
async function claimInstallBonus(baseUrl, apiKey, quiet = false) {
|
|
356
357
|
try {
|
|
357
358
|
const { status, data } = await httpJson(
|
|
358
359
|
"POST",
|
|
@@ -360,7 +361,7 @@ async function claimInstallBonus(baseUrl, apiKey) {
|
|
|
360
361
|
apiKey,
|
|
361
362
|
{}
|
|
362
363
|
);
|
|
363
|
-
if (status !== 200) return;
|
|
364
|
+
if (status !== 200 || quiet) return;
|
|
364
365
|
const granted = typeof data.credits_granted === "number" ? data.credits_granted : 0;
|
|
365
366
|
const alreadyGranted = data.already_granted === true;
|
|
366
367
|
if (granted > 0) {
|
|
@@ -446,6 +447,7 @@ async function handleRegister(args, options) {
|
|
|
446
447
|
if (orgName) payload.org_name = orgName;
|
|
447
448
|
if (orgId) payload.org_id = orgId;
|
|
448
449
|
if (agentName) payload.agent_name = agentName;
|
|
450
|
+
payload.authorization = "device";
|
|
449
451
|
const { status, data } = await httpJson(
|
|
450
452
|
"POST",
|
|
451
453
|
`${baseUrl}/api/v2/auth/cli/register`,
|
|
@@ -469,6 +471,17 @@ async function handleRegister(args, options) {
|
|
|
469
471
|
...data.approval_link_reporting === true ? { approvalLinkReporting: true } : {},
|
|
470
472
|
...signupWorkspaceId ? { signupWorkspaceId } : {}
|
|
471
473
|
};
|
|
474
|
+
if (typeof data.device_code === "string" && typeof data.user_code === "string" && typeof data.interval === "number" && data.interval > 0 && typeof data.claim_expires_at === "string") {
|
|
475
|
+
const expiresAt = Date.parse(data.claim_expires_at);
|
|
476
|
+
if (!Number.isFinite(expiresAt))
|
|
477
|
+
throw new Error("Invalid device authorization expiry.");
|
|
478
|
+
pendingClaim.device = {
|
|
479
|
+
code: data.device_code,
|
|
480
|
+
userCode: data.user_code,
|
|
481
|
+
intervalMs: data.interval * 1e3,
|
|
482
|
+
expiresAt
|
|
483
|
+
};
|
|
484
|
+
}
|
|
472
485
|
if (claimToken) {
|
|
473
486
|
savePendingClaim(baseUrl, pendingClaim);
|
|
474
487
|
saveEnvValues(
|
|
@@ -479,22 +492,25 @@ async function handleRegister(args, options) {
|
|
|
479
492
|
authScope
|
|
480
493
|
);
|
|
481
494
|
}
|
|
482
|
-
if (claimUrl) {
|
|
495
|
+
if (claimUrl && !options?.delegatedApproval) {
|
|
483
496
|
const shouldOpen = waitMode !== "no" && detectAgentRuntime() !== "claude_cowork";
|
|
484
|
-
console.log(
|
|
485
|
-
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
486
|
-
);
|
|
497
|
+
console.log(" Open this approval page in your browser:");
|
|
487
498
|
console.log(` ${claimUrl}`);
|
|
488
|
-
if (
|
|
489
|
-
|
|
499
|
+
if (pendingClaim.device) {
|
|
500
|
+
console.log(
|
|
501
|
+
` Click Approve if the page shows ${pendingClaim.device.userCode}.`
|
|
502
|
+
);
|
|
503
|
+
}
|
|
504
|
+
const opened = shouldOpen && openInBrowser(claimUrl) === "opened";
|
|
505
|
+
if (claimToken && pendingClaim.approvalLinkReporting) {
|
|
490
506
|
await reportApprovalLinkShown(
|
|
491
507
|
baseUrl,
|
|
492
508
|
pendingClaim,
|
|
493
|
-
|
|
509
|
+
opened ? "auto" : "manual"
|
|
494
510
|
);
|
|
495
511
|
}
|
|
496
512
|
}
|
|
497
|
-
if (data.cli_message) {
|
|
513
|
+
if (data.cli_message && !options?.delegatedApproval) {
|
|
498
514
|
console.log(String(data.cli_message));
|
|
499
515
|
}
|
|
500
516
|
if (!shouldWaitForRegisterClaim(waitMode)) return EXIT_OK;
|
|
@@ -502,6 +518,10 @@ async function handleRegister(args, options) {
|
|
|
502
518
|
console.error("Missing claim token from register response.");
|
|
503
519
|
return EXIT_SERVER;
|
|
504
520
|
}
|
|
521
|
+
if (pendingClaim.device) {
|
|
522
|
+
console.error("Waiting for browser approval\u2026");
|
|
523
|
+
return handleWait(["--timeout", "900", "--auth-scope", authScope]);
|
|
524
|
+
}
|
|
505
525
|
while (true) {
|
|
506
526
|
const { status: s, data: statusData } = await httpJson(
|
|
507
527
|
"POST",
|
|
@@ -556,7 +576,7 @@ async function handleRegister(args, options) {
|
|
|
556
576
|
await sleep(2e3);
|
|
557
577
|
}
|
|
558
578
|
}
|
|
559
|
-
async function handleWait(args) {
|
|
579
|
+
async function handleWait(args, options) {
|
|
560
580
|
const baseUrl = autoDetectBaseUrl().replace(/\/$/, "");
|
|
561
581
|
let timeoutSeconds = 300;
|
|
562
582
|
let requestedScope;
|
|
@@ -583,19 +603,28 @@ async function handleWait(args) {
|
|
|
583
603
|
if (!pendingClaim) {
|
|
584
604
|
const scopedApiKey = authScope === "folder" ? resolveProjectApiKeyForBaseUrl(baseUrl) : resolveGlobalApiKeyForBaseUrl(baseUrl);
|
|
585
605
|
if (scopedApiKey) {
|
|
586
|
-
console.log("Already connected.");
|
|
606
|
+
if (!options?.quiet) console.log("Already connected.");
|
|
587
607
|
return EXIT_OK;
|
|
588
608
|
}
|
|
589
609
|
console.error("No pending approval. Run: deepline auth register");
|
|
590
610
|
return EXIT_AUTH;
|
|
591
611
|
}
|
|
592
|
-
const
|
|
612
|
+
const device = pendingClaim.device;
|
|
613
|
+
const deadline = Math.min(
|
|
614
|
+
Date.now() + timeoutSeconds * 1e3,
|
|
615
|
+
device?.expiresAt ?? Infinity
|
|
616
|
+
);
|
|
617
|
+
const interval = device?.intervalMs ?? 2e3;
|
|
593
618
|
while (Date.now() < deadline) {
|
|
594
619
|
const { status, data } = await httpJson(
|
|
595
620
|
"POST",
|
|
596
621
|
`${baseUrl}/api/v2/auth/cli/status`,
|
|
597
622
|
null,
|
|
598
|
-
{
|
|
623
|
+
{
|
|
624
|
+
claim_token: claimToken,
|
|
625
|
+
reveal: true,
|
|
626
|
+
...device && { device_code: device.code }
|
|
627
|
+
},
|
|
599
628
|
Math.min(AUTH_HTTP_TIMEOUT_MS, Math.max(1, deadline - Date.now()))
|
|
600
629
|
);
|
|
601
630
|
if (status === 401 || status === 403) {
|
|
@@ -603,14 +632,26 @@ async function handleWait(args) {
|
|
|
603
632
|
console.error("Claim is invalid. Run: deepline auth register");
|
|
604
633
|
return EXIT_AUTH;
|
|
605
634
|
}
|
|
635
|
+
if (device && status === 404) {
|
|
636
|
+
clearPendingClaim(baseUrl, authScope);
|
|
637
|
+
console.error(
|
|
638
|
+
"This device code is unavailable. Run: deepline auth register"
|
|
639
|
+
);
|
|
640
|
+
return EXIT_AUTH;
|
|
641
|
+
}
|
|
606
642
|
if (status >= 500 || status === 0) {
|
|
607
|
-
await sleep(Math.min(
|
|
643
|
+
await sleep(Math.min(interval, Math.max(0, deadline - Date.now())));
|
|
608
644
|
continue;
|
|
609
645
|
}
|
|
610
646
|
if (status >= 400) {
|
|
611
647
|
return endClaimPollOnRefusal(status, data, baseUrl, authScope);
|
|
612
648
|
}
|
|
613
649
|
const state = String(data.status || "").toLowerCase();
|
|
650
|
+
if (data.code === "DEVICE_AUTHORIZATION_DENIED") {
|
|
651
|
+
clearPendingClaim(baseUrl, authScope);
|
|
652
|
+
console.error("Device access was denied. Run: deepline auth register");
|
|
653
|
+
return EXIT_AUTH;
|
|
654
|
+
}
|
|
614
655
|
if (data.code === "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT") {
|
|
615
656
|
clearPendingClaim(baseUrl, authScope);
|
|
616
657
|
console.error(
|
|
@@ -631,7 +672,8 @@ async function handleWait(args) {
|
|
|
631
672
|
authScope
|
|
632
673
|
);
|
|
633
674
|
clearPendingClaim(baseUrl, authScope);
|
|
634
|
-
await
|
|
675
|
+
if (options?.quiet) await claimInstallBonus(baseUrl, apiKey, true);
|
|
676
|
+
else await printClaimSuccessBanner(baseUrl, apiKey, data);
|
|
635
677
|
return EXIT_OK;
|
|
636
678
|
}
|
|
637
679
|
}
|
|
@@ -640,7 +682,12 @@ async function handleWait(args) {
|
|
|
640
682
|
console.error("That approval link expired. Run: deepline auth register");
|
|
641
683
|
return EXIT_AUTH;
|
|
642
684
|
}
|
|
643
|
-
await sleep(Math.min(
|
|
685
|
+
await sleep(Math.min(interval, Math.max(0, deadline - Date.now())));
|
|
686
|
+
}
|
|
687
|
+
if (device && Date.now() >= device.expiresAt) {
|
|
688
|
+
clearPendingClaim(baseUrl, authScope);
|
|
689
|
+
console.error("That device code expired. Run: deepline auth register");
|
|
690
|
+
return EXIT_AUTH;
|
|
644
691
|
}
|
|
645
692
|
console.error(
|
|
646
693
|
"Still pending. Approve the browser link, then run: deepline auth wait"
|
|
@@ -728,12 +775,21 @@ async function handleStatus(args) {
|
|
|
728
775
|
status: "pending",
|
|
729
776
|
connected: false,
|
|
730
777
|
authorization_url: pendingClaim.claimUrl || null,
|
|
778
|
+
...pendingClaim.device && {
|
|
779
|
+
user_code: pendingClaim.device.userCode
|
|
780
|
+
},
|
|
731
781
|
next: "deepline auth wait",
|
|
732
782
|
render: {
|
|
733
783
|
sections: [
|
|
734
784
|
{
|
|
735
785
|
title: "auth status",
|
|
736
|
-
lines: [
|
|
786
|
+
lines: [
|
|
787
|
+
...hostLines,
|
|
788
|
+
"Status: pending",
|
|
789
|
+
...pendingClaim.device ? [
|
|
790
|
+
`Confirm this code in your browser: ${pendingClaim.device.userCode}`
|
|
791
|
+
] : []
|
|
792
|
+
]
|
|
737
793
|
}
|
|
738
794
|
],
|
|
739
795
|
actions: [{ label: "Run", command: "deepline auth wait" }]
|
|
@@ -918,9 +974,9 @@ Notes:
|
|
|
918
974
|
"after",
|
|
919
975
|
`
|
|
920
976
|
Notes:
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
977
|
+
Prints an approval URL and a code. You can open the URL on another device.
|
|
978
|
+
Confirm that the browser shows the same code before approving. In Cowork or
|
|
979
|
+
with --no-wait, finish with deepline auth wait after approval.
|
|
924
980
|
The saved API key is scoped to the selected workspace and host.
|
|
925
981
|
|
|
926
982
|
Examples:
|
|
@@ -960,15 +1016,10 @@ Examples:
|
|
|
960
1016
|
deepline auth wait --timeout 120
|
|
961
1017
|
deepline auth wait --auth-scope folder --timeout 120
|
|
962
1018
|
`
|
|
963
|
-
).option("--timeout <seconds>", "Maximum seconds to wait", "300").option(
|
|
964
|
-
"--auth-scope <scope>",
|
|
965
|
-
"Credential scope: global or folder",
|
|
966
|
-
"global"
|
|
967
|
-
).action(async (options) => {
|
|
1019
|
+
).option("--timeout <seconds>", "Maximum seconds to wait", "300").option("--auth-scope <scope>", "Read only folder or global pending auth").action(async (options) => {
|
|
968
1020
|
process.exitCode = await handleWait([
|
|
969
1021
|
...options.timeout ? ["--timeout", options.timeout] : [],
|
|
970
|
-
"--auth-scope",
|
|
971
|
-
String(options.authScope ?? "global")
|
|
1022
|
+
...options.authScope ? ["--auth-scope", String(options.authScope)] : []
|
|
972
1023
|
]);
|
|
973
1024
|
});
|
|
974
1025
|
auth.command("status").description("Show the current CLI auth and workspace status.").addHelpText(
|