deepline 0.3.530 → 0.3.532
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/deployment/commands/roll-execution-relay.ts +139 -35
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +438 -38
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/runtime-topology.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machine-lifecycle.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-transient-retry.ts +279 -20
- 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 +16 -1
- 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-7YWTPQSQ.js +43 -0
- package/dist/cli/{auth-LRWNDQFT.mjs → auth-ZB3NN4E7.mjs} +5 -5
- package/dist/cli/{billing-5FDPWGCG.js → billing-32EF4HJM.js} +82 -82
- package/dist/cli/{billing-7T73MRYF.mjs → billing-5GGO7DQS.mjs} +7 -7
- package/dist/cli/{chunk-7WGMCOM6.js → chunk-2T7YE5UH.js} +2 -2
- package/dist/cli/{chunk-L4QR7CYL.js → chunk-2ZGZBN6D.js} +14 -14
- package/dist/cli/{chunk-J6XSBTEX.mjs → chunk-3NUYO5QO.mjs} +1 -1
- package/dist/cli/{chunk-MVF7ZBJX.mjs → chunk-47UF3DDN.mjs} +1 -1
- package/dist/cli/{chunk-2FLODRM2.js → chunk-4S3ONSLF.js} +13 -13
- package/dist/cli/{chunk-4WPIORJX.js → chunk-64CEFPF4.js} +1 -1
- package/dist/cli/{chunk-QI2LKPW5.mjs → chunk-6LBD6G6U.mjs} +2 -2
- package/dist/cli/{chunk-WWLIDAVT.js → chunk-7S3DJFW5.js} +11 -11
- package/dist/cli/{chunk-BVY4QRVT.mjs → chunk-AOAXIJL2.mjs} +82 -31
- package/dist/cli/{chunk-KUHH7RW4.js → chunk-AQHMHYXX.js} +44 -44
- package/dist/cli/{chunk-WAWOMHWO.mjs → chunk-B77ZRM6M.mjs} +2 -2
- package/dist/cli/{chunk-5B37ER3C.js → chunk-BQ2KAFVQ.js} +3 -3
- package/dist/cli/{chunk-VQMGCNX2.mjs → chunk-C6VCDDDD.mjs} +5 -5
- package/dist/cli/{chunk-3MAHDV5C.mjs → chunk-CRWX26LR.mjs} +1 -1
- package/dist/cli/{chunk-7E7CP5KA.js → chunk-CSMLW5VE.js} +4 -4
- package/dist/cli/{chunk-HCWPX2UP.mjs → chunk-DSNTHXR7.mjs} +2 -2
- package/dist/cli/{chunk-4VQ63Y6S.mjs → chunk-EJLCIQA4.mjs} +5 -5
- package/dist/cli/{chunk-7FCD34YS.mjs → chunk-EVXRQXNV.mjs} +3 -2
- package/dist/cli/{chunk-K4Y6CNFV.mjs → chunk-F2YLC4ZG.mjs} +1 -1
- package/dist/cli/{chunk-YI7QOP6L.js → chunk-FU4MMUGM.js} +16 -16
- package/dist/cli/{chunk-6NG3FRJB.mjs → chunk-GABQIZJR.mjs} +5 -5
- package/dist/cli/{chunk-V4EK7ZZX.js → chunk-GBVTSWL3.js} +98 -98
- package/dist/cli/{chunk-WYI3VMTO.js → chunk-H6OYTU2Y.js} +6 -6
- package/dist/cli/{chunk-C44RZGM5.js → chunk-HR2RDDAC.js} +26 -26
- package/dist/cli/{chunk-XNWS2WJG.mjs → chunk-HREGFD2I.mjs} +1 -1
- package/dist/cli/{chunk-GW76IDID.js → chunk-JJSJ47CA.js} +22 -22
- package/dist/cli/{chunk-32NTC5UD.js → chunk-KEE57BF2.js} +7 -7
- package/dist/cli/{chunk-SJQ7Z3NI.js → chunk-KQW27FSR.js} +132 -81
- package/dist/cli/{chunk-D7Y7I4EE.js → chunk-L5V5SLI7.js} +2 -2
- package/dist/cli/{chunk-VKVLJTW5.js → chunk-MHTKWZM3.js} +9 -9
- package/dist/cli/{chunk-EADHDZW2.js → chunk-NBIDYAN6.js} +6 -6
- package/dist/cli/{chunk-E6L3NEFV.js → chunk-NQDUXVBK.js} +41 -41
- package/dist/cli/{chunk-QWEPCX6L.mjs → chunk-O2A4C4WP.mjs} +2 -2
- package/dist/cli/{chunk-KEXGBXUG.js → chunk-O7JU5GUR.js} +5 -5
- package/dist/cli/{chunk-MVFKZQ7E.js → chunk-QZINISXP.js} +3 -3
- package/dist/cli/{chunk-YVLPGYRS.mjs → chunk-RRCSFOF3.mjs} +1 -1
- package/dist/cli/{chunk-A5MYJM4K.mjs → chunk-S2HHY26V.mjs} +2 -2
- package/dist/cli/{chunk-M4Q4LEMM.js → chunk-SMDX4BM5.js} +2 -2
- package/dist/cli/{chunk-5KX3TWBK.mjs → chunk-T2QY36E3.mjs} +1 -1
- package/dist/cli/{chunk-OUM2V7R6.mjs → chunk-TFWREZYG.mjs} +6 -6
- package/dist/cli/{chunk-QQ4LNSY5.mjs → chunk-THQPLSJD.mjs} +1 -1
- package/dist/cli/{chunk-MHR3XVJD.js → chunk-TS6XF2QP.js} +5 -5
- package/dist/cli/{chunk-WL6GAZBD.js → chunk-V6LUMGVI.js} +3 -2
- package/dist/cli/{chunk-5DJUNUHN.mjs → chunk-VCRCMK7M.mjs} +5 -5
- package/dist/cli/{chunk-VYSQ76RP.js → chunk-VHHD5D44.js} +7 -7
- package/dist/cli/{chunk-KI63L5H3.mjs → chunk-VIC2MI4W.mjs} +2 -2
- package/dist/cli/{chunk-ERMDXXP5.mjs → chunk-VN432I4S.mjs} +1 -1
- package/dist/cli/{chunk-LNZILMVK.mjs → chunk-VWEDIFHT.mjs} +4 -4
- package/dist/cli/{chunk-I2YXEHDO.mjs → chunk-VZKCZO4J.mjs} +3 -3
- package/dist/cli/{chunk-2LKVNWRA.mjs → chunk-W5KSUNTE.mjs} +10 -10
- package/dist/cli/{chunk-X547OW3I.js → chunk-WU33X2QL.js} +16 -16
- package/dist/cli/{chunk-2FLRKNME.mjs → chunk-YM6JAKYP.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-EFIEDJA2.js → csv-4JBCPMEH.js} +13 -13
- package/dist/cli/{csv-VY2S7KKV.mjs → csv-LM44ZFL3.mjs} +4 -4
- package/dist/cli/{db-D32CBDTN.mjs → db-IFJEGJ6M.mjs} +6 -6
- package/dist/cli/{db-3DLI5TYW.js → db-UVNXGK6L.js} +27 -27
- package/dist/cli/describe-AF73GGH6.js +50 -0
- package/dist/cli/{describe-6MYKK2P3.mjs → describe-TWTOPGII.mjs} +18 -18
- package/dist/cli/{executions-QG3DEEY3.js → executions-3I6RU7AO.js} +8 -8
- package/dist/cli/{executions-U6TPX4RX.mjs → executions-NEV2P5MX.mjs} +6 -6
- package/dist/cli/{feedback-YZ6H4VMQ.mjs → feedback-IO5ZAWKK.mjs} +6 -6
- package/dist/cli/{feedback-ZSPW6NXL.js → feedback-NHO56EWZ.js} +14 -14
- package/dist/cli/git-AOKC6WL3.js +25 -0
- package/dist/cli/{git-ENN72IK4.mjs → git-MQISNZ5F.mjs} +5 -5
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-MNA6LWJU.mjs → legacy-noops-DNRJHNQB.mjs} +6 -6
- package/dist/cli/{legacy-noops-Q6EVYIGN.js → legacy-noops-SLAQE7HN.js} +9 -9
- package/dist/cli/{monitors-BUH54HXJ.js → monitors-JRNATYS2.js} +100 -100
- package/dist/cli/{monitors-KENWEEWC.mjs → monitors-NAX7SUAR.mjs} +7 -7
- package/dist/cli/{org-HWOHKYP3.mjs → org-34VCNPUD.mjs} +6 -6
- package/dist/cli/{org-AHWQJMV7.js → org-BHOREX5D.js} +86 -86
- package/dist/cli/{pages-Z5R7NYEF.js → pages-GB337AQG.js} +18 -18
- package/dist/cli/{pages-I7DYTCW6.mjs → pages-ZWVHNJOE.mjs} +6 -6
- package/dist/cli/{play-3LXZB4ED.js → play-DAUQ7OAO.js} +317 -317
- package/dist/cli/{play-ET7CRVWJ.mjs → play-GJ7OEYSB.mjs} +18 -18
- package/dist/cli/{providers-GZSAZVHZ.mjs → providers-KA2RKD6E.mjs} +6 -6
- package/dist/cli/{providers-ZV2E7NGX.js → providers-W7QY5FUK.js} +9 -9
- package/dist/cli/{quickstart-5746NBS2.mjs → quickstart-7KOAL3BD.mjs} +4 -4
- package/dist/cli/{quickstart-VJZAT4RY.js → quickstart-D4DPUR7R.js} +6 -6
- package/dist/cli/{run-WOQ6XMTT.mjs → run-AYJSQED7.mjs} +23 -23
- package/dist/cli/{run-WGUAVYZC.js → run-QFVN2WUQ.js} +41 -41
- package/dist/cli/search-JVCK5AB4.js +33 -0
- package/dist/cli/{search-NNPFJYEW.mjs → search-MEE7OV2B.mjs} +8 -8
- package/dist/cli/{search-output-65HDEEFS.mjs → search-output-G36JH6D6.mjs} +4 -4
- package/dist/cli/{search-output-K4ISMPKD.js → search-output-OW6UPOI6.js} +6 -6
- package/dist/cli/{secrets-NBKGWMF4.js → secrets-CJJQJUJC.js} +15 -15
- package/dist/cli/{secrets-RK44OV3X.mjs → secrets-OFNYIJT6.mjs} +6 -6
- package/dist/cli/{sessions-ULQJJN3J.mjs → sessions-B6VCVU4Z.mjs} +6 -6
- package/dist/cli/sessions-DXN6BQ7Q.js +22 -0
- package/dist/cli/{settings-IHNA7X3Y.js → settings-H4Q524LF.js} +86 -86
- package/dist/cli/{settings-V5ZRL2EF.mjs → settings-PPFLSXDP.mjs} +13 -13
- package/dist/cli/{setup-HTEBFMOQ.js → setup-SJAM7XHR.js} +78 -63
- package/dist/cli/{setup-54VZPJGM.mjs → setup-WI3WDRRE.mjs} +28 -13
- package/dist/cli/skills-6MNJK2VQ.js +37 -0
- package/dist/cli/{skills-3FCPWMHX.mjs → skills-QSRYGMG2.mjs} +8 -8
- package/dist/cli/tools-OT43MSZE.js +57 -0
- package/dist/cli/{tools-2NTDNUQT.mjs → tools-RUC4ULAD.mjs} +17 -17
- package/dist/cli/{update-25MTBTGU.mjs → update-DPWNL2UB.mjs} +10 -10
- package/dist/cli/update-PHOSO3TL.js +35 -0
- package/dist/cli/{views-37K4JNNS.js → views-CVDVQALA.js} +18 -18
- package/dist/cli/{views-OBE5LUSW.mjs → views-JP66QRA3.mjs} +6 -6
- package/dist/cli/{workflow-6YTIHHJH.js → workflow-JM6JUI7I.js} +17 -17
- package/dist/cli/{workflow-HAPCL4K6.mjs → workflow-MVTX2PY3.mjs} +7 -7
- 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-QFIXECQV.js +0 -43
- package/dist/cli/describe-U6HM52X6.js +0 -50
- package/dist/cli/git-OBV73OVY.js +0 -25
- package/dist/cli/search-IGHNMXI4.js +0 -33
- package/dist/cli/sessions-ZJNV4SEL.js +0 -22
- package/dist/cli/skills-ZCJ6FOOK.js +0 -37
- package/dist/cli/tools-Q75XC2BS.js +0 -57
- package/dist/cli/update-3G3GO7IE.js +0 -35
|
@@ -7,25 +7,25 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKQW27FSRjs = require('./chunk-KQW27FSR.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk2T7YE5UHjs = require('./chunk-2T7YE5UH.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkNQDUXVBKjs = require('./chunk-NQDUXVBK.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
23
|
-
require('./chunk-
|
|
24
|
-
require('./chunk-
|
|
22
|
+
var _chunkAQHMHYXXjs = require('./chunk-AQHMHYXX.js');
|
|
23
|
+
require('./chunk-QZINISXP.js');
|
|
24
|
+
require('./chunk-2ZGZBN6D.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkKEE57BF2js = require('./chunk-KEE57BF2.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -34,14 +34,14 @@ var _chunk32NTC5UDjs = require('./chunk-32NTC5UD.js');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkBQ2KAFVQjs = require('./chunk-BQ2KAFVQ.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkCSMLW5VEjs = require('./chunk-CSMLW5VE.js');
|
|
41
41
|
require('./chunk-T2N3B7IQ.js');
|
|
42
42
|
require('./chunk-XNYIZMNQ.js');
|
|
43
43
|
require('./chunk-SQWET4SL.js');
|
|
44
|
-
require('./chunk-
|
|
44
|
+
require('./chunk-64CEFPF4.js');
|
|
45
45
|
require('./chunk-OG64RBAC.js');
|
|
46
46
|
|
|
47
47
|
|
|
@@ -296,7 +296,7 @@ function normalizeScope(value) {
|
|
|
296
296
|
}
|
|
297
297
|
function resolveScopeRoot(scope) {
|
|
298
298
|
if (scope === "global") return null;
|
|
299
|
-
const target =
|
|
299
|
+
const target = _chunkBQ2KAFVQjs.resolveProjectPinTarget.call(void 0, );
|
|
300
300
|
if (!target.ok) {
|
|
301
301
|
throw new Error(
|
|
302
302
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -313,7 +313,7 @@ function openSetupAuthorization(authorizationUrl, options = {}) {
|
|
|
313
313
|
const url = authorizationUrl.trim();
|
|
314
314
|
if (!url) return "failed";
|
|
315
315
|
if (options.open) return options.open(url);
|
|
316
|
-
const result =
|
|
316
|
+
const result = _chunkKEE57BF2js.openInBrowser.call(void 0, url, { deduplicate: false });
|
|
317
317
|
return result === "opened" ? "opened" : "failed";
|
|
318
318
|
}
|
|
319
319
|
function buildPendingAuthorizationOutput(input) {
|
|
@@ -355,7 +355,7 @@ function buildPendingAuthorizationOutput(input) {
|
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
function setupStatePath(baseUrl, scope, root) {
|
|
358
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0,
|
|
358
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0, _chunkBQ2KAFVQjs.sdkCliStateDirPath.call(void 0, baseUrl), "setup.json");
|
|
359
359
|
}
|
|
360
360
|
async function captureStdout(run) {
|
|
361
361
|
let stdout = "";
|
|
@@ -398,7 +398,7 @@ function isNpmManagedDeeplinePath(path) {
|
|
|
398
398
|
}
|
|
399
399
|
function removeKnownLegacyPaths(baseUrl) {
|
|
400
400
|
return CliInstallation.forUser({
|
|
401
|
-
baseUrlSlug:
|
|
401
|
+
baseUrlSlug: _chunkBQ2KAFVQjs.baseUrlSlug.call(void 0, baseUrl),
|
|
402
402
|
home: _os.homedir.call(void 0, )
|
|
403
403
|
}).removeRetiredArtifacts();
|
|
404
404
|
}
|
|
@@ -436,7 +436,7 @@ function resolvePersistentGlobalCommand(dependencies = {}) {
|
|
|
436
436
|
const homebrewCommand = pathClis.find(isHomebrewFormulaCommand);
|
|
437
437
|
if (homebrewCommand) return homebrewCommand;
|
|
438
438
|
for (const manager of ["npm", "pnpm"]) {
|
|
439
|
-
const plan =
|
|
439
|
+
const plan = _chunkAQHMHYXXjs.resolveShellSpawn.call(void 0,
|
|
440
440
|
manager,
|
|
441
441
|
manager === "npm" ? ["prefix", "-g"] : ["bin", "-g"],
|
|
442
442
|
platform
|
|
@@ -505,7 +505,7 @@ function writeSetupState(input) {
|
|
|
505
505
|
{
|
|
506
506
|
schemaVersion: 2,
|
|
507
507
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
508
|
-
cliVersion:
|
|
508
|
+
cliVersion: _chunkCSMLW5VEjs.SDK_VERSION,
|
|
509
509
|
host: input.baseUrl,
|
|
510
510
|
scope: input.scope,
|
|
511
511
|
root: input.root,
|
|
@@ -540,8 +540,8 @@ function failSetupPhase(phases, phase, code) {
|
|
|
540
540
|
}
|
|
541
541
|
function rollbackCommand(scope, root) {
|
|
542
542
|
const prefix = scope === "local" && root ? ` --prefix ${JSON.stringify(_path.join.call(void 0, root, ".deepline", "runtime"))}` : "";
|
|
543
|
-
const allowScriptsFlag =
|
|
544
|
-
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${
|
|
543
|
+
const allowScriptsFlag = _chunk2T7YE5UHjs.npmSupportsAllowScripts.call(void 0, _chunk2T7YE5UHjs.readNpmVersion.call(void 0, process.env)) ? " --allow-scripts=esbuild" : "";
|
|
544
|
+
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${_chunkCSMLW5VEjs.SDK_VERSION}`;
|
|
545
545
|
}
|
|
546
546
|
function setupResumeCommand(baseUrl, scope, orgName) {
|
|
547
547
|
const hostPrefix = baseUrl === "https://code.deepline.com" ? "" : `DEEPLINE_HOST_URL=${JSON.stringify(baseUrl)} `;
|
|
@@ -565,7 +565,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
565
565
|
status: "failed"
|
|
566
566
|
});
|
|
567
567
|
const retry = setupRetry(input);
|
|
568
|
-
|
|
568
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
569
569
|
{
|
|
570
570
|
ok: false,
|
|
571
571
|
status: "failed",
|
|
@@ -587,7 +587,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
587
587
|
async function readAuthStatus(authScope) {
|
|
588
588
|
try {
|
|
589
589
|
const captured = await captureStdout(
|
|
590
|
-
() =>
|
|
590
|
+
() => _chunkKQW27FSRjs.handleStatus.call(void 0, [
|
|
591
591
|
"--json",
|
|
592
592
|
...authScope ? ["--auth-scope", authScope] : []
|
|
593
593
|
])
|
|
@@ -618,14 +618,14 @@ function reportSetupAuthStatusFailure(input) {
|
|
|
618
618
|
});
|
|
619
619
|
}
|
|
620
620
|
function buildDoctorAssessment(input) {
|
|
621
|
-
const skillsStatePath =
|
|
621
|
+
const skillsStatePath = _chunkNQDUXVBKjs.skillsStatePathForScope.call(void 0,
|
|
622
622
|
input.baseUrl,
|
|
623
623
|
input.scope,
|
|
624
624
|
input.root
|
|
625
625
|
);
|
|
626
626
|
const skillsState = parseCapturedJson(safeRead(skillsStatePath));
|
|
627
|
-
const apiKey = input.scope === "local" ?
|
|
628
|
-
const projectAuth = input.scope === "local" && apiKey ?
|
|
627
|
+
const apiKey = input.scope === "local" ? _chunkBQ2KAFVQjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkBQ2KAFVQjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
628
|
+
const projectAuth = input.scope === "local" && apiKey ? _chunkBQ2KAFVQjs.getResolvedProjectAuthSource.call(void 0, input.baseUrl, apiKey) : null;
|
|
629
629
|
const connected = _optionalChain([input, 'access', _4 => _4.authStatus, 'access', _5 => _5.payload, 'optionalAccess', _6 => _6.connected]) === true;
|
|
630
630
|
const authScopeOk = input.scope === "local" ? Boolean(projectAuth) : Boolean(apiKey && !projectAuth);
|
|
631
631
|
const skillsOk = _optionalChain([skillsState, 'optionalAccess', _7 => _7.scope]) === input.scope && typeof skillsState.skillsVersion === "string" && Array.isArray(skillsState.agents) && skillsState.agents.length > 0;
|
|
@@ -639,7 +639,7 @@ function buildDoctorAssessment(input) {
|
|
|
639
639
|
const checks = {
|
|
640
640
|
cli: {
|
|
641
641
|
ok: Boolean(cliPath) && cliScopeOk,
|
|
642
|
-
version:
|
|
642
|
+
version: _chunkCSMLW5VEjs.SDK_VERSION,
|
|
643
643
|
path: cliPath,
|
|
644
644
|
scope: input.scope
|
|
645
645
|
},
|
|
@@ -673,7 +673,7 @@ async function runDoctorCommand(options) {
|
|
|
673
673
|
scope = normalizeScope(options.scope);
|
|
674
674
|
root = resolveScopeRoot(scope);
|
|
675
675
|
} catch (error) {
|
|
676
|
-
|
|
676
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
677
677
|
{
|
|
678
678
|
ok: false,
|
|
679
679
|
status: "failed",
|
|
@@ -685,7 +685,7 @@ async function runDoctorCommand(options) {
|
|
|
685
685
|
);
|
|
686
686
|
return 2;
|
|
687
687
|
}
|
|
688
|
-
const baseUrl =
|
|
688
|
+
const baseUrl = _chunkBQ2KAFVQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
689
689
|
const authScope = authScopeForSetup(scope);
|
|
690
690
|
const authStatus = await readAuthStatus(authScope);
|
|
691
691
|
const { ok, checks } = buildDoctorAssessment({
|
|
@@ -695,9 +695,9 @@ async function runDoctorCommand(options) {
|
|
|
695
695
|
authStatus
|
|
696
696
|
});
|
|
697
697
|
const gettingStarted = _chunkRLX5ZFNXjs.deeplineGtmGettingStartedPayload.call(void 0,
|
|
698
|
-
|
|
698
|
+
_chunkNQDUXVBKjs.deeplineGtmSkillRoots.call(void 0, root)
|
|
699
699
|
);
|
|
700
|
-
|
|
700
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
701
701
|
{
|
|
702
702
|
ok,
|
|
703
703
|
status: ok ? "complete" : "failed",
|
|
@@ -742,13 +742,14 @@ function pendingResult(input) {
|
|
|
742
742
|
input.orgName
|
|
743
743
|
)
|
|
744
744
|
});
|
|
745
|
-
|
|
745
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
746
746
|
{
|
|
747
747
|
ok: true,
|
|
748
748
|
status: "authorization_pending",
|
|
749
749
|
complete: false,
|
|
750
750
|
scope: input.scope,
|
|
751
751
|
authorizationUrl: pendingOutput.authorizationUrl,
|
|
752
|
+
...input.userCode && { userCode: input.userCode },
|
|
752
753
|
browserOpened: input.browserOpenStatus === "timed_out",
|
|
753
754
|
browserOpenStatus: input.browserOpenStatus,
|
|
754
755
|
authClaimSource: input.authClaimSource,
|
|
@@ -767,7 +768,10 @@ function pendingResult(input) {
|
|
|
767
768
|
sections: [
|
|
768
769
|
{
|
|
769
770
|
title: "setup",
|
|
770
|
-
lines:
|
|
771
|
+
lines: input.userCode ? [
|
|
772
|
+
...pendingOutput.lines,
|
|
773
|
+
`Click Approve if the page shows ${input.userCode}.`
|
|
774
|
+
] : pendingOutput.lines
|
|
771
775
|
}
|
|
772
776
|
]
|
|
773
777
|
}
|
|
@@ -779,7 +783,7 @@ function pendingResult(input) {
|
|
|
779
783
|
async function runSetupCommand(options) {
|
|
780
784
|
let orgName = _optionalChain([options, 'access', _19 => _19.orgName, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
|
|
781
785
|
if (options.orgName !== void 0 && !orgName) {
|
|
782
|
-
|
|
786
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
783
787
|
{
|
|
784
788
|
ok: false,
|
|
785
789
|
status: "failed",
|
|
@@ -797,7 +801,7 @@ async function runSetupCommand(options) {
|
|
|
797
801
|
scope = normalizeScope(options.scope);
|
|
798
802
|
root = resolveScopeRoot(scope);
|
|
799
803
|
} catch (error) {
|
|
800
|
-
|
|
804
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
801
805
|
{
|
|
802
806
|
ok: false,
|
|
803
807
|
status: "failed",
|
|
@@ -814,7 +818,7 @@ async function runSetupCommand(options) {
|
|
|
814
818
|
);
|
|
815
819
|
return 2;
|
|
816
820
|
}
|
|
817
|
-
const baseUrl =
|
|
821
|
+
const baseUrl = _chunkBQ2KAFVQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
818
822
|
const previousState = readSetupState({ baseUrl, scope, root });
|
|
819
823
|
const { resumed, phases } = selectSetupProgress(previousState);
|
|
820
824
|
if (phases.cli.status !== "complete") {
|
|
@@ -901,7 +905,7 @@ async function runSetupCommand(options) {
|
|
|
901
905
|
process.stderr.write(`Installing Deepline skills (${scope})...
|
|
902
906
|
`);
|
|
903
907
|
const skills = await captureStdout(
|
|
904
|
-
() =>
|
|
908
|
+
() => _chunkNQDUXVBKjs.runSkillsCommand.call(void 0, { scope, json: true })
|
|
905
909
|
);
|
|
906
910
|
skillsPayload = parseCapturedJson(skills.stdout);
|
|
907
911
|
if (skills.exitCode !== 0) {
|
|
@@ -942,11 +946,11 @@ async function runSetupCommand(options) {
|
|
|
942
946
|
});
|
|
943
947
|
} else {
|
|
944
948
|
skillsPayload = parseCapturedJson(
|
|
945
|
-
safeRead(
|
|
949
|
+
safeRead(_chunkNQDUXVBKjs.skillsStatePathForScope.call(void 0, baseUrl, scope, root))
|
|
946
950
|
);
|
|
947
951
|
}
|
|
948
952
|
const authScope = authScopeForSetup(scope);
|
|
949
|
-
const pendingAtStart =
|
|
953
|
+
const pendingAtStart = _chunkKQW27FSRjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
950
954
|
const replacingPendingClaim = Boolean(
|
|
951
955
|
pendingAtStart && orgName && _optionalChain([pendingAtStart, 'access', _24 => _24.orgName, 'optionalAccess', _25 => _25.toLowerCase, 'call', _26 => _26()]) !== orgName.toLowerCase()
|
|
952
956
|
);
|
|
@@ -973,9 +977,9 @@ async function runSetupCommand(options) {
|
|
|
973
977
|
const workspace = asRecord(auth.payload.workspace);
|
|
974
978
|
return typeof _optionalChain([workspace, 'optionalAccess', _29 => _29.name]) === "string" && workspace.name.trim().toLowerCase() === orgName.toLowerCase();
|
|
975
979
|
};
|
|
976
|
-
let pending = replacingPendingClaim ? null :
|
|
980
|
+
let pending = replacingPendingClaim ? null : _chunkKQW27FSRjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
977
981
|
if (replacingPendingClaim && connectedToRequestedWorkspace()) {
|
|
978
|
-
|
|
982
|
+
_chunkKQW27FSRjs.clearPendingClaim.call(void 0, baseUrl, authScope);
|
|
979
983
|
}
|
|
980
984
|
let authClaimSource = "none";
|
|
981
985
|
if (pending || !connectedToRequestedWorkspace()) {
|
|
@@ -984,7 +988,7 @@ async function runSetupCommand(options) {
|
|
|
984
988
|
if (!pending) {
|
|
985
989
|
process.stderr.write("Starting Deepline browser authorization...\n");
|
|
986
990
|
const registered = await captureStdout(
|
|
987
|
-
() =>
|
|
991
|
+
() => _chunkKQW27FSRjs.handleRegister.call(void 0,
|
|
988
992
|
[
|
|
989
993
|
"--wait",
|
|
990
994
|
"no",
|
|
@@ -992,7 +996,7 @@ async function runSetupCommand(options) {
|
|
|
992
996
|
authScope,
|
|
993
997
|
...orgName ? ["--org-name", orgName] : []
|
|
994
998
|
],
|
|
995
|
-
{
|
|
999
|
+
{ delegatedApproval: true }
|
|
996
1000
|
)
|
|
997
1001
|
);
|
|
998
1002
|
if (registered.exitCode !== 0) {
|
|
@@ -1010,7 +1014,7 @@ async function runSetupCommand(options) {
|
|
|
1010
1014
|
extra: { detail: parseCapturedJson(registered.stdout), authScope }
|
|
1011
1015
|
});
|
|
1012
1016
|
}
|
|
1013
|
-
pending =
|
|
1017
|
+
pending = _chunkKQW27FSRjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1014
1018
|
if (!_optionalChain([pending, 'optionalAccess', _30 => _30.claimUrl])) {
|
|
1015
1019
|
return reportSetupPhaseFailure({
|
|
1016
1020
|
baseUrl,
|
|
@@ -1033,6 +1037,7 @@ async function runSetupCommand(options) {
|
|
|
1033
1037
|
root,
|
|
1034
1038
|
phases,
|
|
1035
1039
|
authorizationUrl: pending.claimUrl,
|
|
1040
|
+
userCode: _optionalChain([pending, 'access', _31 => _31.device, 'optionalAccess', _32 => _32.userCode]),
|
|
1036
1041
|
browserOpenStatus: "failed",
|
|
1037
1042
|
authClaimSource,
|
|
1038
1043
|
orgName,
|
|
@@ -1040,20 +1045,29 @@ async function runSetupCommand(options) {
|
|
|
1040
1045
|
json: options.json
|
|
1041
1046
|
});
|
|
1042
1047
|
if (pending.approvalLinkReporting) {
|
|
1043
|
-
await
|
|
1048
|
+
await _chunkKQW27FSRjs.reportApprovalLinkShown.call(void 0, baseUrl, pending, "manual");
|
|
1044
1049
|
}
|
|
1045
1050
|
return exitCode;
|
|
1046
1051
|
}
|
|
1047
1052
|
process.stderr.write("Opened Deepline sign-in in the browser.\n");
|
|
1048
1053
|
if (pending.approvalLinkReporting) {
|
|
1049
|
-
await
|
|
1054
|
+
await _chunkKQW27FSRjs.reportApprovalLinkShown.call(void 0, baseUrl, pending, "auto");
|
|
1050
1055
|
}
|
|
1051
1056
|
}
|
|
1057
|
+
if (pending.device) {
|
|
1058
|
+
process.stderr.write(
|
|
1059
|
+
`Open ${pending.claimUrl} and click Approve.
|
|
1060
|
+
Check that the page shows ${pending.device.userCode}.
|
|
1061
|
+
`
|
|
1062
|
+
);
|
|
1063
|
+
}
|
|
1052
1064
|
process.stderr.write(
|
|
1053
1065
|
"Waiting up to five minutes for Deepline approval...\n"
|
|
1054
1066
|
);
|
|
1055
1067
|
const waited = await captureStdout(
|
|
1056
|
-
() =>
|
|
1068
|
+
() => _chunkKQW27FSRjs.handleWait.call(void 0, ["--timeout", "300", "--auth-scope", authScope], {
|
|
1069
|
+
quiet: true
|
|
1070
|
+
})
|
|
1057
1071
|
);
|
|
1058
1072
|
auth = await readAuthStatus(authScope);
|
|
1059
1073
|
const authFailure = reportSetupAuthStatusFailure({
|
|
@@ -1067,7 +1081,7 @@ async function runSetupCommand(options) {
|
|
|
1067
1081
|
json: options.json
|
|
1068
1082
|
});
|
|
1069
1083
|
if (authFailure !== null) return authFailure;
|
|
1070
|
-
if (waited.exitCode ===
|
|
1084
|
+
if (waited.exitCode === _chunkKQW27FSRjs.EXIT_WORKSPACE_MISMATCH) {
|
|
1071
1085
|
return reportSetupPhaseFailure({
|
|
1072
1086
|
baseUrl,
|
|
1073
1087
|
scope,
|
|
@@ -1075,7 +1089,7 @@ async function runSetupCommand(options) {
|
|
|
1075
1089
|
phases,
|
|
1076
1090
|
phase: "auth",
|
|
1077
1091
|
code: "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT",
|
|
1078
|
-
exitCode:
|
|
1092
|
+
exitCode: _chunkKQW27FSRjs.EXIT_WORKSPACE_MISMATCH,
|
|
1079
1093
|
message: `The requested workspace${orgName ? ` ${orgName}` : ""} does not exist in this account. Connect to an existing workspace first; then use deepline org create if you need a new one.`,
|
|
1080
1094
|
orgName,
|
|
1081
1095
|
retryAutomatic: false,
|
|
@@ -1084,14 +1098,15 @@ async function runSetupCommand(options) {
|
|
|
1084
1098
|
});
|
|
1085
1099
|
}
|
|
1086
1100
|
if (!connectedToRequestedWorkspace()) {
|
|
1087
|
-
const stillPending =
|
|
1088
|
-
if (_optionalChain([stillPending, 'optionalAccess',
|
|
1101
|
+
const stillPending = _chunkKQW27FSRjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1102
|
+
if (_optionalChain([stillPending, 'optionalAccess', _33 => _33.claimUrl])) {
|
|
1089
1103
|
const exitCode = pendingResult({
|
|
1090
1104
|
baseUrl,
|
|
1091
1105
|
scope,
|
|
1092
1106
|
root,
|
|
1093
1107
|
phases,
|
|
1094
1108
|
authorizationUrl: stillPending.claimUrl,
|
|
1109
|
+
userCode: _optionalChain([stillPending, 'access', _34 => _34.device, 'optionalAccess', _35 => _35.userCode]),
|
|
1095
1110
|
browserOpenStatus: reusedClaim ? "existing_claim" : "timed_out",
|
|
1096
1111
|
authClaimSource,
|
|
1097
1112
|
orgName,
|
|
@@ -1099,7 +1114,7 @@ async function runSetupCommand(options) {
|
|
|
1099
1114
|
json: options.json
|
|
1100
1115
|
});
|
|
1101
1116
|
if (stillPending.approvalLinkReporting) {
|
|
1102
|
-
await
|
|
1117
|
+
await _chunkKQW27FSRjs.reportApprovalLinkShown.call(void 0, baseUrl, stillPending, "manual");
|
|
1103
1118
|
}
|
|
1104
1119
|
return exitCode;
|
|
1105
1120
|
}
|
|
@@ -1109,11 +1124,11 @@ async function runSetupCommand(options) {
|
|
|
1109
1124
|
root,
|
|
1110
1125
|
phases,
|
|
1111
1126
|
phase: "auth",
|
|
1112
|
-
code: orgName && _optionalChain([auth, 'access',
|
|
1127
|
+
code: orgName && _optionalChain([auth, 'access', _36 => _36.payload, 'optionalAccess', _37 => _37.connected]) ? "AUTH_WORKSPACE_MISMATCH" : "AUTH_WAIT_FAILED",
|
|
1113
1128
|
exitCode: waited.exitCode || 4,
|
|
1114
|
-
message: orgName && _optionalChain([auth, 'access',
|
|
1129
|
+
message: orgName && _optionalChain([auth, 'access', _38 => _38.payload, 'optionalAccess', _39 => _39.connected]) ? `Deepline is connected to a different workspace than ${orgName}.` : "Deepline authorization did not complete.",
|
|
1115
1130
|
orgName,
|
|
1116
|
-
...orgName && _optionalChain([auth, 'access',
|
|
1131
|
+
...orgName && _optionalChain([auth, 'access', _40 => _40.payload, 'optionalAccess', _41 => _41.connected]) ? {
|
|
1117
1132
|
retryAutomatic: false,
|
|
1118
1133
|
next: "Ask the user which existing workspace or account to use. Rerun setup with --org-name set to the confirmed workspace."
|
|
1119
1134
|
} : {},
|
|
@@ -1131,7 +1146,7 @@ async function runSetupCommand(options) {
|
|
|
1131
1146
|
authStatus: auth
|
|
1132
1147
|
});
|
|
1133
1148
|
const gettingStarted = _chunkRLX5ZFNXjs.deeplineGtmGettingStartedPayload.call(void 0,
|
|
1134
|
-
|
|
1149
|
+
_chunkNQDUXVBKjs.deeplineGtmSkillRoots.call(void 0, root)
|
|
1135
1150
|
);
|
|
1136
1151
|
const doctorPayload = {
|
|
1137
1152
|
ok: assessment.ok,
|
|
@@ -1170,30 +1185,30 @@ async function runSetupCommand(options) {
|
|
|
1170
1185
|
status: "complete",
|
|
1171
1186
|
phases
|
|
1172
1187
|
});
|
|
1173
|
-
const installedAgents = Array.isArray(_optionalChain([skillsPayload, 'optionalAccess',
|
|
1188
|
+
const installedAgents = Array.isArray(_optionalChain([skillsPayload, 'optionalAccess', _42 => _42.agents])) ? skillsPayload.agents.filter(
|
|
1174
1189
|
(agent) => typeof agent === "string"
|
|
1175
1190
|
) : [];
|
|
1176
|
-
await
|
|
1191
|
+
await _chunkKQW27FSRjs.reportSetupCompleted.call(void 0, {
|
|
1177
1192
|
baseUrl,
|
|
1178
1193
|
authScope,
|
|
1179
1194
|
scope,
|
|
1180
1195
|
resumed,
|
|
1181
1196
|
installedAgentCount: installedAgents.length
|
|
1182
1197
|
});
|
|
1183
|
-
const doctorChecks = asRecord(_optionalChain([doctorPayload, 'optionalAccess',
|
|
1184
|
-
const apiCheck = asRecord(_optionalChain([doctorChecks, 'optionalAccess',
|
|
1185
|
-
const workspaceRecord = asRecord(_optionalChain([apiCheck, 'optionalAccess',
|
|
1186
|
-
const workspaceName = typeof _optionalChain([workspaceRecord, 'optionalAccess',
|
|
1187
|
-
|
|
1198
|
+
const doctorChecks = asRecord(_optionalChain([doctorPayload, 'optionalAccess', _43 => _43.checks]));
|
|
1199
|
+
const apiCheck = asRecord(_optionalChain([doctorChecks, 'optionalAccess', _44 => _44.api]));
|
|
1200
|
+
const workspaceRecord = asRecord(_optionalChain([apiCheck, 'optionalAccess', _45 => _45.workspace]));
|
|
1201
|
+
const workspaceName = typeof _optionalChain([workspaceRecord, 'optionalAccess', _46 => _46.name]) === "string" && workspaceRecord.name.trim() ? workspaceRecord.name.trim() : null;
|
|
1202
|
+
_chunkKEE57BF2js.printCommandEnvelope.call(void 0,
|
|
1188
1203
|
{
|
|
1189
1204
|
ok: true,
|
|
1190
1205
|
status: "complete",
|
|
1191
1206
|
complete: true,
|
|
1192
1207
|
scope,
|
|
1193
|
-
cliVersion:
|
|
1208
|
+
cliVersion: _chunkCSMLW5VEjs.SDK_VERSION,
|
|
1194
1209
|
agents: installedAgents,
|
|
1195
|
-
workspace: _nullishCoalesce(_optionalChain([apiCheck, 'optionalAccess',
|
|
1196
|
-
businessDomain: typeof _optionalChain([auth, 'access',
|
|
1210
|
+
workspace: _nullishCoalesce(_optionalChain([apiCheck, 'optionalAccess', _47 => _47.workspace]), () => ( null)),
|
|
1211
|
+
businessDomain: typeof _optionalChain([auth, 'access', _48 => _48.payload, 'optionalAccess', _49 => _49.businessDomain]) === "string" ? auth.payload.businessDomain : null,
|
|
1197
1212
|
authClaimSource,
|
|
1198
1213
|
browserOpened: authClaimSource === "new",
|
|
1199
1214
|
rollbackCommand: rollbackCommand(scope, root),
|
|
@@ -7,25 +7,25 @@ import {
|
|
|
7
7
|
readPendingAuthClaim,
|
|
8
8
|
reportApprovalLinkShown,
|
|
9
9
|
reportSetupCompleted
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AOAXIJL2.mjs";
|
|
11
11
|
import {
|
|
12
12
|
npmSupportsAllowScripts,
|
|
13
13
|
readNpmVersion
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CRWX26LR.mjs";
|
|
15
15
|
import {
|
|
16
16
|
deeplineGtmSkillRoots,
|
|
17
17
|
runSkillsCommand,
|
|
18
18
|
skillsStatePathForScope
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VWEDIFHT.mjs";
|
|
20
20
|
import {
|
|
21
21
|
resolveShellSpawn
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-VCRCMK7M.mjs";
|
|
23
|
+
import "./chunk-THQPLSJD.mjs";
|
|
24
|
+
import "./chunk-YM6JAKYP.mjs";
|
|
25
25
|
import {
|
|
26
26
|
openInBrowser,
|
|
27
27
|
printCommandEnvelope
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-S2HHY26V.mjs";
|
|
29
29
|
import {
|
|
30
30
|
autoDetectBaseUrl,
|
|
31
31
|
baseUrlSlug,
|
|
@@ -34,14 +34,14 @@ import {
|
|
|
34
34
|
resolveProjectApiKeyForBaseUrl,
|
|
35
35
|
resolveProjectPinTarget,
|
|
36
36
|
sdkCliStateDirPath
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-VN432I4S.mjs";
|
|
38
38
|
import {
|
|
39
39
|
SDK_VERSION
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-47UF3DDN.mjs";
|
|
41
41
|
import "./chunk-QNHHZ63P.mjs";
|
|
42
42
|
import "./chunk-DLIRSHV6.mjs";
|
|
43
43
|
import "./chunk-ZPGGW27Q.mjs";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-3NUYO5QO.mjs";
|
|
45
45
|
import "./chunk-WZYKRD7T.mjs";
|
|
46
46
|
import {
|
|
47
47
|
DEEPLINE_GTM_SKILL,
|
|
@@ -749,6 +749,7 @@ function pendingResult(input) {
|
|
|
749
749
|
complete: false,
|
|
750
750
|
scope: input.scope,
|
|
751
751
|
authorizationUrl: pendingOutput.authorizationUrl,
|
|
752
|
+
...input.userCode && { userCode: input.userCode },
|
|
752
753
|
browserOpened: input.browserOpenStatus === "timed_out",
|
|
753
754
|
browserOpenStatus: input.browserOpenStatus,
|
|
754
755
|
authClaimSource: input.authClaimSource,
|
|
@@ -767,7 +768,10 @@ function pendingResult(input) {
|
|
|
767
768
|
sections: [
|
|
768
769
|
{
|
|
769
770
|
title: "setup",
|
|
770
|
-
lines:
|
|
771
|
+
lines: input.userCode ? [
|
|
772
|
+
...pendingOutput.lines,
|
|
773
|
+
`Click Approve if the page shows ${input.userCode}.`
|
|
774
|
+
] : pendingOutput.lines
|
|
771
775
|
}
|
|
772
776
|
]
|
|
773
777
|
}
|
|
@@ -992,7 +996,7 @@ async function runSetupCommand(options) {
|
|
|
992
996
|
authScope,
|
|
993
997
|
...orgName ? ["--org-name", orgName] : []
|
|
994
998
|
],
|
|
995
|
-
{
|
|
999
|
+
{ delegatedApproval: true }
|
|
996
1000
|
)
|
|
997
1001
|
);
|
|
998
1002
|
if (registered.exitCode !== 0) {
|
|
@@ -1033,6 +1037,7 @@ async function runSetupCommand(options) {
|
|
|
1033
1037
|
root,
|
|
1034
1038
|
phases,
|
|
1035
1039
|
authorizationUrl: pending.claimUrl,
|
|
1040
|
+
userCode: pending.device?.userCode,
|
|
1036
1041
|
browserOpenStatus: "failed",
|
|
1037
1042
|
authClaimSource,
|
|
1038
1043
|
orgName,
|
|
@@ -1049,11 +1054,20 @@ async function runSetupCommand(options) {
|
|
|
1049
1054
|
await reportApprovalLinkShown(baseUrl, pending, "auto");
|
|
1050
1055
|
}
|
|
1051
1056
|
}
|
|
1057
|
+
if (pending.device) {
|
|
1058
|
+
process.stderr.write(
|
|
1059
|
+
`Open ${pending.claimUrl} and click Approve.
|
|
1060
|
+
Check that the page shows ${pending.device.userCode}.
|
|
1061
|
+
`
|
|
1062
|
+
);
|
|
1063
|
+
}
|
|
1052
1064
|
process.stderr.write(
|
|
1053
1065
|
"Waiting up to five minutes for Deepline approval...\n"
|
|
1054
1066
|
);
|
|
1055
1067
|
const waited = await captureStdout(
|
|
1056
|
-
() => handleWait(["--timeout", "300", "--auth-scope", authScope]
|
|
1068
|
+
() => handleWait(["--timeout", "300", "--auth-scope", authScope], {
|
|
1069
|
+
quiet: true
|
|
1070
|
+
})
|
|
1057
1071
|
);
|
|
1058
1072
|
auth = await readAuthStatus(authScope);
|
|
1059
1073
|
const authFailure = reportSetupAuthStatusFailure({
|
|
@@ -1092,6 +1106,7 @@ async function runSetupCommand(options) {
|
|
|
1092
1106
|
root,
|
|
1093
1107
|
phases,
|
|
1094
1108
|
authorizationUrl: stillPending.claimUrl,
|
|
1109
|
+
userCode: stillPending.device?.userCode,
|
|
1095
1110
|
browserOpenStatus: reusedClaim ? "existing_claim" : "timed_out",
|
|
1096
1111
|
authClaimSource,
|
|
1097
1112
|
orgName,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkNQDUXVBKjs = require('./chunk-NQDUXVBK.js');
|
|
13
|
+
require('./chunk-AQHMHYXX.js');
|
|
14
|
+
require('./chunk-QZINISXP.js');
|
|
15
|
+
require('./chunk-2ZGZBN6D.js');
|
|
16
|
+
require('./chunk-KEE57BF2.js');
|
|
17
|
+
require('./chunk-BQ2KAFVQ.js');
|
|
18
|
+
require('./chunk-CSMLW5VE.js');
|
|
19
|
+
require('./chunk-T2N3B7IQ.js');
|
|
20
|
+
require('./chunk-XNYIZMNQ.js');
|
|
21
|
+
require('./chunk-SQWET4SL.js');
|
|
22
|
+
require('./chunk-64CEFPF4.js');
|
|
23
|
+
require('./chunk-OG64RBAC.js');
|
|
24
|
+
require('./chunk-RLX5ZFNX.js');
|
|
25
|
+
require('./chunk-COGTRVWW.js');
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
exports.buildSkillsPlan = _chunkNQDUXVBKjs.buildSkillsPlan; exports.deeplineGtmSkillRoots = _chunkNQDUXVBKjs.deeplineGtmSkillRoots; exports.detectSkillsAgents = _chunkNQDUXVBKjs.detectSkillsAgents; exports.inferActiveSkillsScope = _chunkNQDUXVBKjs.inferActiveSkillsScope; exports.isSkillsPlanCurrent = _chunkNQDUXVBKjs.isSkillsPlanCurrent; exports.missingInstalledSkills = _chunkNQDUXVBKjs.missingInstalledSkills; exports.registerSkillsCommand = _chunkNQDUXVBKjs.registerSkillsCommand; exports.runSkillsCommand = _chunkNQDUXVBKjs.runSkillsCommand; exports.skillsStatePathForScope = _chunkNQDUXVBKjs.skillsStatePathForScope; exports.workspaceSkillRootsForAgents = _chunkNQDUXVBKjs.workspaceSkillRootsForAgents;
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
runSkillsCommand,
|
|
10
10
|
skillsStatePathForScope,
|
|
11
11
|
workspaceSkillRootsForAgents
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-VWEDIFHT.mjs";
|
|
13
|
+
import "./chunk-VCRCMK7M.mjs";
|
|
14
|
+
import "./chunk-THQPLSJD.mjs";
|
|
15
|
+
import "./chunk-YM6JAKYP.mjs";
|
|
16
|
+
import "./chunk-S2HHY26V.mjs";
|
|
17
|
+
import "./chunk-VN432I4S.mjs";
|
|
18
|
+
import "./chunk-47UF3DDN.mjs";
|
|
19
19
|
import "./chunk-QNHHZ63P.mjs";
|
|
20
20
|
import "./chunk-DLIRSHV6.mjs";
|
|
21
21
|
import "./chunk-ZPGGW27Q.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-3NUYO5QO.mjs";
|
|
23
23
|
import "./chunk-WZYKRD7T.mjs";
|
|
24
24
|
import "./chunk-5JPKRDFC.mjs";
|
|
25
25
|
import "./chunk-KRD6H754.mjs";
|