deepline 0.3.396 → 0.3.397
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/play-runtime/fixture-behavior.ts +2 -2
- package/dist/cli/{auth-3LTD62VL.mjs → auth-AZJFXGKP.mjs} +5 -4
- package/dist/cli/auth-CZJQU7B5.js +40 -0
- package/dist/cli/{billing-PA5OXEM5.js → billing-MQV5AGDJ.js} +76 -75
- package/dist/cli/{billing-DP7ZAJBO.mjs → billing-MZAAUHGH.mjs} +5 -4
- package/dist/cli/{chunk-VE3U3SQC.mjs → chunk-2LDADJNO.mjs} +7 -107
- package/dist/cli/{chunk-772W2SAU.js → chunk-3VP34TAU.js} +8 -8
- package/dist/cli/{chunk-QHGPA362.mjs → chunk-4D745XZO.mjs} +6 -108
- package/dist/cli/chunk-7DRPTGCK.js +930 -0
- package/dist/cli/{chunk-NSOTASOP.js → chunk-BQR6UN3C.js} +1 -83
- package/dist/cli/{chunk-RTO5QZWT.js → chunk-DQ65ZVHN.js} +6 -6
- package/dist/cli/{chunk-3T4MCB5R.mjs → chunk-F3BUFYKE.mjs} +89 -969
- package/dist/cli/chunk-FIVKWNMT.mjs +210 -0
- package/dist/cli/{describe-6O2ENKTP.mjs → chunk-HFYQBC2D.mjs} +22 -160
- package/dist/cli/chunk-HGFFYVXN.js +210 -0
- package/dist/cli/{chunk-5WNJF2T3.mjs → chunk-IHG7UAHD.mjs} +1 -83
- package/dist/cli/{chunk-GNN4MY5X.js → chunk-IZ74ABSX.js} +1 -1
- package/dist/cli/{chunk-MR6XCBQJ.mjs → chunk-J7ABTQQ7.mjs} +4 -2
- package/dist/cli/{chunk-2VOLOWYZ.js → chunk-K33MXVXQ.js} +293 -1173
- package/dist/cli/chunk-LJ5747UC.mjs +107 -0
- package/dist/cli/{chunk-NHB5YUCS.mjs → chunk-MRXMMERY.mjs} +1 -1
- package/dist/cli/{chunk-TLQ3FZOC.mjs → chunk-MV7QRALK.mjs} +3 -3
- package/dist/cli/{chunk-AUYXWELC.mjs → chunk-MYPH2LUU.mjs} +2 -2
- package/dist/cli/{chunk-LWERJUKN.js → chunk-NA4T3B62.js} +7 -215
- package/dist/cli/{chunk-23GAA3YO.mjs → chunk-NOX2TCBP.mjs} +1 -1
- package/dist/cli/chunk-OSDXE27V.mjs +88 -0
- package/dist/cli/{chunk-KAEZNPUM.js → chunk-PSGEDGLT.js} +13 -115
- package/dist/cli/chunk-Q2E4E4FJ.js +112 -0
- package/dist/cli/{describe-EFWNECHI.js → chunk-RFG3MRAC.js} +37 -175
- package/dist/cli/{chunk-XKZXO7D3.mjs → chunk-RNSWDKBM.mjs} +1 -1
- package/dist/cli/{chunk-V7UP2F4U.js → chunk-RYW4HPSM.js} +21 -121
- package/dist/cli/{chunk-7Z66NHUC.js → chunk-SO7RUVTY.js} +26 -26
- package/dist/cli/{chunk-H5KLUGY7.mjs → chunk-TXZVVBQZ.mjs} +1 -209
- package/dist/cli/{chunk-WQJJNIMQ.js → chunk-UVXBVUZQ.js} +11 -9
- package/dist/cli/{chunk-AVHLATII.js → chunk-VTF4RRWJ.js} +50 -50
- package/dist/cli/{chunk-LOGGNW4H.mjs → chunk-W3HMGKMI.mjs} +2 -2
- package/dist/cli/{chunk-JCN4DHF7.mjs → chunk-WM2QEHZL.mjs} +2 -2
- package/dist/cli/chunk-YHPYUZZX.mjs +112 -0
- package/dist/cli/chunk-YHZUZO3U.mjs +930 -0
- package/dist/cli/{chunk-ME6XRFLY.js → chunk-YLRME7MK.js} +15 -15
- package/dist/cli/{chunk-DC6LTULT.js → chunk-YSVORIEW.js} +2 -2
- package/dist/cli/{chunk-I4T4XAA2.mjs → chunk-YUDKBQUD.mjs} +4 -4
- package/dist/cli/chunk-ZAAKSJAS.js +88 -0
- package/dist/cli/{chunk-RMTASUAK.js → chunk-ZHUMDMOS.js} +65 -65
- package/dist/cli/chunk-ZM2YPJQJ.js +107 -0
- package/dist/cli/{csv-TF576S77.js → csv-AQBQ5O3I.js} +13 -12
- package/dist/cli/{csv-RLRR74RQ.mjs → csv-MB7PJMYQ.mjs} +4 -3
- package/dist/cli/{db-FDBJUTFO.js → db-JPUYC5RB.js} +30 -29
- package/dist/cli/{db-XORGNBIC.mjs → db-L5IEI2AU.mjs} +5 -4
- package/dist/cli/describe-6WT74AOR.js +164 -0
- package/dist/cli/describe-S6BFANVI.mjs +164 -0
- package/dist/cli/describe-core.d.mts +100 -0
- package/dist/cli/describe-core.d.ts +100 -0
- package/dist/cli/describe-core.js +18 -0
- package/dist/cli/describe-core.mjs +18 -0
- package/dist/cli/{executions-SFYAXPF4.js → executions-6TMQTFP4.js} +7 -6
- package/dist/cli/{executions-YPP7WR77.mjs → executions-L7I2ZW4Z.mjs} +5 -4
- package/dist/cli/{feedback-RBGA5ARU.mjs → feedback-DSJ63HK6.mjs} +4 -3
- package/dist/cli/{feedback-5UZFYMGB.js → feedback-XF7CQGMD.js} +8 -7
- package/dist/cli/{git-IRSAJEK2.mjs → git-C3ENM67D.mjs} +5 -4
- package/dist/cli/git-HYDZK2QR.js +24 -0
- package/dist/cli/index.js +93 -91
- package/dist/cli/index.mjs +35 -33
- package/dist/cli/{legacy-noops-CVAOQY2F.js → legacy-noops-B2NHWIVD.js} +8 -7
- package/dist/cli/{legacy-noops-NA7N6ZOU.mjs → legacy-noops-VFG2K6HK.mjs} +5 -4
- package/dist/cli/{monitors-4OMRXCXP.js → monitors-ORFWOVZB.js} +86 -85
- package/dist/cli/{monitors-ILZ2XHYG.mjs → monitors-TCEDBDGY.mjs} +5 -4
- package/dist/cli/{org-QDDXAE3J.mjs → org-45KREIKZ.mjs} +5 -4
- package/dist/cli/{org-YGNJDD2X.js → org-T74CJESN.js} +65 -64
- package/dist/cli/{play-VT6OHB2D.mjs → play-MU7MYBIM.mjs} +19 -15
- package/dist/cli/{play-L535H26U.js → play-XHK2LPON.js} +251 -247
- package/dist/cli/{providers-GPZ6PQAL.js → providers-4MGQKYFD.js} +8 -7
- package/dist/cli/{providers-KG4W5MPK.mjs → providers-VYCXIJT5.mjs} +5 -4
- package/dist/cli/{quickstart-UI27S5LO.js → quickstart-47G3VEOT.js} +6 -5
- package/dist/cli/{quickstart-2JDGTXIG.mjs → quickstart-H724EFM2.mjs} +4 -3
- package/dist/cli/search-3356ENLD.js +30 -0
- package/dist/cli/{search-PW3RAUX7.mjs → search-VQHXEFQ4.mjs} +7 -5
- package/dist/cli/{secrets-WFAXOUZE.js → secrets-ALLKCU35.js} +14 -13
- package/dist/cli/{secrets-HNOMK5A2.mjs → secrets-CPBNGA44.mjs} +5 -4
- package/dist/cli/{sessions-XLX3E5UO.mjs → sessions-7RSQB7IX.mjs} +5 -4
- package/dist/cli/sessions-FKGAY7WQ.js +16 -0
- package/dist/cli/{settings-YNZ4YKCH.mjs → settings-UYSGV4IC.mjs} +8 -7
- package/dist/cli/{settings-GADAG2UK.js → settings-Y5BI42P7.js} +75 -74
- package/dist/cli/{setup-PSEHIUXO.mjs → setup-L3ZBBTS4.mjs} +7 -6
- package/dist/cli/{setup-R5YO7GT6.js → setup-VXQPEU3E.js} +42 -41
- package/dist/cli/skills-DUZQTDTE.js +29 -0
- package/dist/cli/{skills-LTQBP6CZ.mjs → skills-QHVDLSFE.mjs} +5 -4
- package/dist/cli/{tools-UAXDWU63.mjs → tools-LSCEK4K2.mjs} +13 -8
- package/dist/cli/tools-YWU5QOQ5.js +39 -0
- package/dist/cli/update-5LYQAI55.js +29 -0
- package/dist/cli/{update-SMNIBIMS.mjs → update-CU22OTBM.mjs} +7 -6
- package/dist/cli/{workflow-AOQVZHMD.js → workflow-ERFLTRNX.js} +16 -15
- package/dist/cli/{workflow-IKGMBGF6.mjs → workflow-KQARK5BZ.mjs} +6 -5
- package/dist/{client-DiGl8ska.d.mts → client-D0j-_aaa.d.mts} +1 -1
- package/dist/{client-Bgis7F6-.d.ts → client-DflfVyj6.d.ts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -10
- package/dist/index.mjs +19 -15
- package/dist/install-integrity.json +92 -76
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +6 -1
- package/dist/cli/auth-562JPKOM.js +0 -39
- package/dist/cli/git-5LDY5ZID.js +0 -23
- package/dist/cli/search-MGWROZ33.js +0 -28
- package/dist/cli/sessions-366KROUA.js +0 -15
- package/dist/cli/skills-JF2LPEGM.js +0 -28
- package/dist/cli/tools-CP2PEFRN.js +0 -34
- package/dist/cli/update-HZHZOU6C.js +0 -28
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkVTF4RRWJjs = require('./chunk-VTF4RRWJ.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkYSVORIEWjs = require('./chunk-YSVORIEW.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkZHUMDMOSjs = require('./chunk-ZHUMDMOS.js');
|
|
19
19
|
require('./chunk-WJYPBHTE.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkDQ65ZVHNjs = require('./chunk-DQ65ZVHN.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -30,10 +30,11 @@ var _chunkRTO5QZWTjs = require('./chunk-RTO5QZWT.js');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkRYW4HPSMjs = require('./chunk-RYW4HPSM.js');
|
|
34
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
34
35
|
require('./chunk-XNYIZMNQ.js');
|
|
35
36
|
require('./chunk-7P5AA3SN.js');
|
|
36
|
-
require('./chunk-
|
|
37
|
+
require('./chunk-IZ74ABSX.js');
|
|
37
38
|
require('./chunk-OG64RBAC.js');
|
|
38
39
|
|
|
39
40
|
|
|
@@ -288,7 +289,7 @@ function normalizeScope(value) {
|
|
|
288
289
|
}
|
|
289
290
|
function resolveScopeRoot(scope) {
|
|
290
291
|
if (scope === "global") return null;
|
|
291
|
-
const target =
|
|
292
|
+
const target = _chunkRYW4HPSMjs.resolveProjectPinTarget.call(void 0, );
|
|
292
293
|
if (!target.ok) {
|
|
293
294
|
throw new Error(
|
|
294
295
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -305,7 +306,7 @@ function openSetupAuthorization(authorizationUrl, options = {}) {
|
|
|
305
306
|
const url = authorizationUrl.trim();
|
|
306
307
|
if (!url) return "failed";
|
|
307
308
|
if (options.open) return options.open(url);
|
|
308
|
-
const result =
|
|
309
|
+
const result = _chunkDQ65ZVHNjs.openInBrowser.call(void 0, url, { deduplicate: false });
|
|
309
310
|
return result === "opened" ? "opened" : "failed";
|
|
310
311
|
}
|
|
311
312
|
function buildPendingAuthorizationOutput(input) {
|
|
@@ -347,7 +348,7 @@ function buildPendingAuthorizationOutput(input) {
|
|
|
347
348
|
};
|
|
348
349
|
}
|
|
349
350
|
function setupStatePath(baseUrl, scope, root) {
|
|
350
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0,
|
|
351
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0, _chunkRYW4HPSMjs.sdkCliStateDirPath.call(void 0, baseUrl), "setup.json");
|
|
351
352
|
}
|
|
352
353
|
async function captureStdout(run) {
|
|
353
354
|
let stdout = "";
|
|
@@ -390,7 +391,7 @@ function isNpmManagedDeeplinePath(path) {
|
|
|
390
391
|
}
|
|
391
392
|
function removeKnownLegacyPaths(baseUrl) {
|
|
392
393
|
return CliInstallation.forUser({
|
|
393
|
-
baseUrlSlug:
|
|
394
|
+
baseUrlSlug: _chunkRYW4HPSMjs.baseUrlSlug.call(void 0, baseUrl),
|
|
394
395
|
home: _os.homedir.call(void 0, )
|
|
395
396
|
}).removeRetiredArtifacts();
|
|
396
397
|
}
|
|
@@ -428,7 +429,7 @@ function resolvePersistentGlobalCommand(dependencies = {}) {
|
|
|
428
429
|
const homebrewCommand = pathClis.find(isHomebrewFormulaCommand);
|
|
429
430
|
if (homebrewCommand) return homebrewCommand;
|
|
430
431
|
for (const manager of ["npm", "pnpm"]) {
|
|
431
|
-
const plan =
|
|
432
|
+
const plan = _chunkZHUMDMOSjs.resolveShellSpawn.call(void 0,
|
|
432
433
|
manager,
|
|
433
434
|
manager === "npm" ? ["prefix", "-g"] : ["bin", "-g"],
|
|
434
435
|
platform
|
|
@@ -497,7 +498,7 @@ function writeSetupState(input) {
|
|
|
497
498
|
{
|
|
498
499
|
schemaVersion: 2,
|
|
499
500
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
500
|
-
cliVersion:
|
|
501
|
+
cliVersion: _chunkRYW4HPSMjs.SDK_VERSION,
|
|
501
502
|
host: input.baseUrl,
|
|
502
503
|
scope: input.scope,
|
|
503
504
|
root: input.root,
|
|
@@ -532,8 +533,8 @@ function failSetupPhase(phases, phase, code) {
|
|
|
532
533
|
}
|
|
533
534
|
function rollbackCommand(scope, root) {
|
|
534
535
|
const prefix = scope === "local" && root ? ` --prefix ${JSON.stringify(_path.join.call(void 0, root, ".deepline", "runtime"))}` : "";
|
|
535
|
-
const allowScriptsFlag =
|
|
536
|
-
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${
|
|
536
|
+
const allowScriptsFlag = _chunkYSVORIEWjs.npmSupportsAllowScripts.call(void 0, _chunkYSVORIEWjs.readNpmVersion.call(void 0, process.env)) ? " --allow-scripts=esbuild" : "";
|
|
537
|
+
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${_chunkRYW4HPSMjs.SDK_VERSION}`;
|
|
537
538
|
}
|
|
538
539
|
function setupResumeCommand(baseUrl, scope, orgName) {
|
|
539
540
|
const hostPrefix = baseUrl === "https://code.deepline.com" ? "" : `DEEPLINE_HOST_URL=${JSON.stringify(baseUrl)} `;
|
|
@@ -557,7 +558,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
557
558
|
status: "failed"
|
|
558
559
|
});
|
|
559
560
|
const retry = setupRetry(input);
|
|
560
|
-
|
|
561
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
561
562
|
{
|
|
562
563
|
ok: false,
|
|
563
564
|
status: "failed",
|
|
@@ -579,7 +580,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
579
580
|
async function readAuthStatus(authScope) {
|
|
580
581
|
try {
|
|
581
582
|
const captured = await captureStdout(
|
|
582
|
-
() =>
|
|
583
|
+
() => _chunkVTF4RRWJjs.handleStatus.call(void 0, [
|
|
583
584
|
"--json",
|
|
584
585
|
...authScope ? ["--auth-scope", authScope] : []
|
|
585
586
|
])
|
|
@@ -610,14 +611,14 @@ function reportSetupAuthStatusFailure(input) {
|
|
|
610
611
|
});
|
|
611
612
|
}
|
|
612
613
|
function buildDoctorAssessment(input) {
|
|
613
|
-
const skillsStatePath =
|
|
614
|
+
const skillsStatePath = _chunkZHUMDMOSjs.skillsStatePathForScope.call(void 0,
|
|
614
615
|
input.baseUrl,
|
|
615
616
|
input.scope,
|
|
616
617
|
input.root
|
|
617
618
|
);
|
|
618
619
|
const skillsState = parseCapturedJson(safeRead(skillsStatePath));
|
|
619
|
-
const apiKey = input.scope === "local" ?
|
|
620
|
-
const projectAuth = input.scope === "local" && apiKey ?
|
|
620
|
+
const apiKey = input.scope === "local" ? _chunkRYW4HPSMjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkRYW4HPSMjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
621
|
+
const projectAuth = input.scope === "local" && apiKey ? _chunkRYW4HPSMjs.getResolvedProjectAuthSource.call(void 0, input.baseUrl, apiKey) : null;
|
|
621
622
|
const connected = _optionalChain([input, 'access', _4 => _4.authStatus, 'access', _5 => _5.payload, 'optionalAccess', _6 => _6.connected]) === true;
|
|
622
623
|
const authScopeOk = input.scope === "local" ? Boolean(projectAuth) : Boolean(apiKey && !projectAuth);
|
|
623
624
|
const skillsOk = _optionalChain([skillsState, 'optionalAccess', _7 => _7.scope]) === input.scope && typeof skillsState.skillsVersion === "string" && Array.isArray(skillsState.agents) && skillsState.agents.length > 0;
|
|
@@ -631,7 +632,7 @@ function buildDoctorAssessment(input) {
|
|
|
631
632
|
const checks = {
|
|
632
633
|
cli: {
|
|
633
634
|
ok: Boolean(cliPath) && cliScopeOk,
|
|
634
|
-
version:
|
|
635
|
+
version: _chunkRYW4HPSMjs.SDK_VERSION,
|
|
635
636
|
path: cliPath,
|
|
636
637
|
scope: input.scope
|
|
637
638
|
},
|
|
@@ -665,7 +666,7 @@ async function runDoctorCommand(options) {
|
|
|
665
666
|
scope = normalizeScope(options.scope);
|
|
666
667
|
root = resolveScopeRoot(scope);
|
|
667
668
|
} catch (error) {
|
|
668
|
-
|
|
669
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
669
670
|
{
|
|
670
671
|
ok: false,
|
|
671
672
|
status: "failed",
|
|
@@ -677,7 +678,7 @@ async function runDoctorCommand(options) {
|
|
|
677
678
|
);
|
|
678
679
|
return 2;
|
|
679
680
|
}
|
|
680
|
-
const baseUrl =
|
|
681
|
+
const baseUrl = _chunkRYW4HPSMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
681
682
|
const authScope = authScopeForSetup(scope);
|
|
682
683
|
const authStatus = await readAuthStatus(authScope);
|
|
683
684
|
const { ok, checks } = buildDoctorAssessment({
|
|
@@ -687,7 +688,7 @@ async function runDoctorCommand(options) {
|
|
|
687
688
|
authStatus
|
|
688
689
|
});
|
|
689
690
|
const gettingStarted = _chunkEBU7LQ64js.deeplineGtmGettingStartedPayload.call(void 0, );
|
|
690
|
-
|
|
691
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
691
692
|
{
|
|
692
693
|
ok,
|
|
693
694
|
status: ok ? "complete" : "failed",
|
|
@@ -732,7 +733,7 @@ function pendingResult(input) {
|
|
|
732
733
|
input.orgName
|
|
733
734
|
)
|
|
734
735
|
});
|
|
735
|
-
|
|
736
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
736
737
|
{
|
|
737
738
|
ok: true,
|
|
738
739
|
status: "authorization_pending",
|
|
@@ -769,7 +770,7 @@ function pendingResult(input) {
|
|
|
769
770
|
async function runSetupCommand(options) {
|
|
770
771
|
let orgName = _optionalChain([options, 'access', _19 => _19.orgName, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
|
|
771
772
|
if (options.orgName !== void 0 && !orgName) {
|
|
772
|
-
|
|
773
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
773
774
|
{
|
|
774
775
|
ok: false,
|
|
775
776
|
status: "failed",
|
|
@@ -787,7 +788,7 @@ async function runSetupCommand(options) {
|
|
|
787
788
|
scope = normalizeScope(options.scope);
|
|
788
789
|
root = resolveScopeRoot(scope);
|
|
789
790
|
} catch (error) {
|
|
790
|
-
|
|
791
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
791
792
|
{
|
|
792
793
|
ok: false,
|
|
793
794
|
status: "failed",
|
|
@@ -804,7 +805,7 @@ async function runSetupCommand(options) {
|
|
|
804
805
|
);
|
|
805
806
|
return 2;
|
|
806
807
|
}
|
|
807
|
-
const baseUrl =
|
|
808
|
+
const baseUrl = _chunkRYW4HPSMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
808
809
|
const previousState = readSetupState({ baseUrl, scope, root });
|
|
809
810
|
const { resumed, phases } = selectSetupProgress(previousState);
|
|
810
811
|
if (phases.cli.status !== "complete") {
|
|
@@ -891,7 +892,7 @@ async function runSetupCommand(options) {
|
|
|
891
892
|
process.stderr.write(`Installing Deepline skills (${scope})...
|
|
892
893
|
`);
|
|
893
894
|
const skills = await captureStdout(
|
|
894
|
-
() =>
|
|
895
|
+
() => _chunkZHUMDMOSjs.runSkillsCommand.call(void 0, { scope, json: true })
|
|
895
896
|
);
|
|
896
897
|
skillsPayload = parseCapturedJson(skills.stdout);
|
|
897
898
|
if (skills.exitCode !== 0) {
|
|
@@ -932,11 +933,11 @@ async function runSetupCommand(options) {
|
|
|
932
933
|
});
|
|
933
934
|
} else {
|
|
934
935
|
skillsPayload = parseCapturedJson(
|
|
935
|
-
safeRead(
|
|
936
|
+
safeRead(_chunkZHUMDMOSjs.skillsStatePathForScope.call(void 0, baseUrl, scope, root))
|
|
936
937
|
);
|
|
937
938
|
}
|
|
938
939
|
const authScope = authScopeForSetup(scope);
|
|
939
|
-
const pendingAtStart =
|
|
940
|
+
const pendingAtStart = _chunkVTF4RRWJjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
940
941
|
const replacingPendingClaim = Boolean(
|
|
941
942
|
pendingAtStart && orgName && _optionalChain([pendingAtStart, 'access', _24 => _24.orgName, 'optionalAccess', _25 => _25.toLowerCase, 'call', _26 => _26()]) !== orgName.toLowerCase()
|
|
942
943
|
);
|
|
@@ -963,9 +964,9 @@ async function runSetupCommand(options) {
|
|
|
963
964
|
const workspace = asRecord(auth.payload.workspace);
|
|
964
965
|
return typeof _optionalChain([workspace, 'optionalAccess', _29 => _29.name]) === "string" && workspace.name.trim().toLowerCase() === orgName.toLowerCase();
|
|
965
966
|
};
|
|
966
|
-
let pending = replacingPendingClaim ? null :
|
|
967
|
+
let pending = replacingPendingClaim ? null : _chunkVTF4RRWJjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
967
968
|
if (replacingPendingClaim && connectedToRequestedWorkspace()) {
|
|
968
|
-
|
|
969
|
+
_chunkVTF4RRWJjs.clearPendingClaim.call(void 0, baseUrl, authScope);
|
|
969
970
|
}
|
|
970
971
|
let authClaimSource = "none";
|
|
971
972
|
if (pending || !connectedToRequestedWorkspace()) {
|
|
@@ -974,7 +975,7 @@ async function runSetupCommand(options) {
|
|
|
974
975
|
if (!pending) {
|
|
975
976
|
process.stderr.write("Starting Deepline browser authorization...\n");
|
|
976
977
|
const registered = await captureStdout(
|
|
977
|
-
() =>
|
|
978
|
+
() => _chunkVTF4RRWJjs.handleRegister.call(void 0, [
|
|
978
979
|
"--wait",
|
|
979
980
|
"no",
|
|
980
981
|
"--auth-scope",
|
|
@@ -997,7 +998,7 @@ async function runSetupCommand(options) {
|
|
|
997
998
|
extra: { detail: parseCapturedJson(registered.stdout), authScope }
|
|
998
999
|
});
|
|
999
1000
|
}
|
|
1000
|
-
pending =
|
|
1001
|
+
pending = _chunkVTF4RRWJjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1001
1002
|
if (!_optionalChain([pending, 'optionalAccess', _30 => _30.claimUrl])) {
|
|
1002
1003
|
return reportSetupPhaseFailure({
|
|
1003
1004
|
baseUrl,
|
|
@@ -1033,7 +1034,7 @@ async function runSetupCommand(options) {
|
|
|
1033
1034
|
"Waiting up to five minutes for Deepline approval...\n"
|
|
1034
1035
|
);
|
|
1035
1036
|
const waited = await captureStdout(
|
|
1036
|
-
() =>
|
|
1037
|
+
() => _chunkVTF4RRWJjs.handleWait.call(void 0, ["--timeout", "300", "--auth-scope", authScope])
|
|
1037
1038
|
);
|
|
1038
1039
|
auth = await readAuthStatus(authScope);
|
|
1039
1040
|
const authFailure = reportSetupAuthStatusFailure({
|
|
@@ -1047,7 +1048,7 @@ async function runSetupCommand(options) {
|
|
|
1047
1048
|
json: options.json
|
|
1048
1049
|
});
|
|
1049
1050
|
if (authFailure !== null) return authFailure;
|
|
1050
|
-
if (waited.exitCode ===
|
|
1051
|
+
if (waited.exitCode === _chunkVTF4RRWJjs.EXIT_WORKSPACE_MISMATCH) {
|
|
1051
1052
|
return reportSetupPhaseFailure({
|
|
1052
1053
|
baseUrl,
|
|
1053
1054
|
scope,
|
|
@@ -1055,7 +1056,7 @@ async function runSetupCommand(options) {
|
|
|
1055
1056
|
phases,
|
|
1056
1057
|
phase: "auth",
|
|
1057
1058
|
code: "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT",
|
|
1058
|
-
exitCode:
|
|
1059
|
+
exitCode: _chunkVTF4RRWJjs.EXIT_WORKSPACE_MISMATCH,
|
|
1059
1060
|
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.`,
|
|
1060
1061
|
orgName,
|
|
1061
1062
|
retryAutomatic: false,
|
|
@@ -1064,7 +1065,7 @@ async function runSetupCommand(options) {
|
|
|
1064
1065
|
});
|
|
1065
1066
|
}
|
|
1066
1067
|
if (!connectedToRequestedWorkspace()) {
|
|
1067
|
-
const stillPending =
|
|
1068
|
+
const stillPending = _chunkVTF4RRWJjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1068
1069
|
if (_optionalChain([stillPending, 'optionalAccess', _31 => _31.claimUrl])) {
|
|
1069
1070
|
return pendingResult({
|
|
1070
1071
|
baseUrl,
|
|
@@ -1147,7 +1148,7 @@ async function runSetupCommand(options) {
|
|
|
1147
1148
|
const installedAgents = Array.isArray(_optionalChain([skillsPayload, 'optionalAccess', _38 => _38.agents])) ? skillsPayload.agents.filter(
|
|
1148
1149
|
(agent) => typeof agent === "string"
|
|
1149
1150
|
) : [];
|
|
1150
|
-
await
|
|
1151
|
+
await _chunkVTF4RRWJjs.reportSetupCompleted.call(void 0, {
|
|
1151
1152
|
baseUrl,
|
|
1152
1153
|
authScope,
|
|
1153
1154
|
scope,
|
|
@@ -1158,13 +1159,13 @@ async function runSetupCommand(options) {
|
|
|
1158
1159
|
const apiCheck = asRecord(_optionalChain([doctorChecks, 'optionalAccess', _40 => _40.api]));
|
|
1159
1160
|
const workspaceRecord = asRecord(_optionalChain([apiCheck, 'optionalAccess', _41 => _41.workspace]));
|
|
1160
1161
|
const workspaceName = typeof _optionalChain([workspaceRecord, 'optionalAccess', _42 => _42.name]) === "string" && workspaceRecord.name.trim() ? workspaceRecord.name.trim() : null;
|
|
1161
|
-
|
|
1162
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
1162
1163
|
{
|
|
1163
1164
|
ok: true,
|
|
1164
1165
|
status: "complete",
|
|
1165
1166
|
complete: true,
|
|
1166
1167
|
scope,
|
|
1167
|
-
cliVersion:
|
|
1168
|
+
cliVersion: _chunkRYW4HPSMjs.SDK_VERSION,
|
|
1168
1169
|
agents: installedAgents,
|
|
1169
1170
|
workspace: _nullishCoalesce(_optionalChain([apiCheck, 'optionalAccess', _43 => _43.workspace]), () => ( null)),
|
|
1170
1171
|
businessDomain: typeof _optionalChain([auth, 'access', _44 => _44.payload, 'optionalAccess', _45 => _45.businessDomain]) === "string" ? auth.payload.businessDomain : null,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkZHUMDMOSjs = require('./chunk-ZHUMDMOS.js');
|
|
11
|
+
require('./chunk-WJYPBHTE.js');
|
|
12
|
+
require('./chunk-DQ65ZVHN.js');
|
|
13
|
+
require('./chunk-RYW4HPSM.js');
|
|
14
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
15
|
+
require('./chunk-XNYIZMNQ.js');
|
|
16
|
+
require('./chunk-7P5AA3SN.js');
|
|
17
|
+
require('./chunk-IZ74ABSX.js');
|
|
18
|
+
require('./chunk-OG64RBAC.js');
|
|
19
|
+
require('./chunk-COGTRVWW.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
exports.buildSkillsPlan = _chunkZHUMDMOSjs.buildSkillsPlan; exports.detectSkillsAgents = _chunkZHUMDMOSjs.detectSkillsAgents; exports.inferActiveSkillsScope = _chunkZHUMDMOSjs.inferActiveSkillsScope; exports.isSkillsPlanCurrent = _chunkZHUMDMOSjs.isSkillsPlanCurrent; exports.registerSkillsCommand = _chunkZHUMDMOSjs.registerSkillsCommand; exports.runSkillsCommand = _chunkZHUMDMOSjs.runSkillsCommand; exports.skillsStatePathForScope = _chunkZHUMDMOSjs.skillsStatePathForScope; exports.workspaceSkillRootsForAgents = _chunkZHUMDMOSjs.workspaceSkillRootsForAgents;
|
|
@@ -7,13 +7,14 @@ import {
|
|
|
7
7
|
runSkillsCommand,
|
|
8
8
|
skillsStatePathForScope,
|
|
9
9
|
workspaceSkillRootsForAgents
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MV7QRALK.mjs";
|
|
11
11
|
import "./chunk-GAMFK2ZP.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-RNSWDKBM.mjs";
|
|
13
|
+
import "./chunk-2LDADJNO.mjs";
|
|
14
|
+
import "./chunk-YHPYUZZX.mjs";
|
|
14
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
15
16
|
import "./chunk-NXGCO4JB.mjs";
|
|
16
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-MRXMMERY.mjs";
|
|
17
18
|
import "./chunk-WZYKRD7T.mjs";
|
|
18
19
|
import "./chunk-KRD6H754.mjs";
|
|
19
20
|
export {
|
|
@@ -5,23 +5,28 @@ import {
|
|
|
5
5
|
printMonitorTypeContract,
|
|
6
6
|
registerToolsCommands,
|
|
7
7
|
seedToolListScript
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-F3BUFYKE.mjs";
|
|
9
|
+
import "./chunk-OSDXE27V.mjs";
|
|
10
|
+
import "./chunk-4D745XZO.mjs";
|
|
11
|
+
import "./chunk-YHZUZO3U.mjs";
|
|
12
|
+
import "./chunk-IHG7UAHD.mjs";
|
|
10
13
|
import "./chunk-OVDNJAJN.mjs";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-LJ5747UC.mjs";
|
|
15
|
+
import "./chunk-FIVKWNMT.mjs";
|
|
16
|
+
import "./chunk-TXZVVBQZ.mjs";
|
|
13
17
|
import "./chunk-3HU47EGZ.mjs";
|
|
14
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-J7ABTQQ7.mjs";
|
|
15
19
|
import "./chunk-6IKARAYD.mjs";
|
|
16
20
|
import "./chunk-JI2B4RZP.mjs";
|
|
17
21
|
import "./chunk-EIMG75BT.mjs";
|
|
18
22
|
import "./chunk-UBKA33KY.mjs";
|
|
19
23
|
import "./chunk-WXLOW623.mjs";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-RNSWDKBM.mjs";
|
|
25
|
+
import "./chunk-2LDADJNO.mjs";
|
|
26
|
+
import "./chunk-YHPYUZZX.mjs";
|
|
22
27
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
28
|
import "./chunk-NXGCO4JB.mjs";
|
|
24
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-MRXMMERY.mjs";
|
|
25
30
|
import "./chunk-WZYKRD7T.mjs";
|
|
26
31
|
import "./chunk-KRD6H754.mjs";
|
|
27
32
|
export {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkK33MXVXQjs = require('./chunk-K33MXVXQ.js');
|
|
9
|
+
require('./chunk-ZAAKSJAS.js');
|
|
10
|
+
require('./chunk-PSGEDGLT.js');
|
|
11
|
+
require('./chunk-7DRPTGCK.js');
|
|
12
|
+
require('./chunk-BQR6UN3C.js');
|
|
13
|
+
require('./chunk-AID3OYVJ.js');
|
|
14
|
+
require('./chunk-ZM2YPJQJ.js');
|
|
15
|
+
require('./chunk-HGFFYVXN.js');
|
|
16
|
+
require('./chunk-NA4T3B62.js');
|
|
17
|
+
require('./chunk-KB4SDX5S.js');
|
|
18
|
+
require('./chunk-UVXBVUZQ.js');
|
|
19
|
+
require('./chunk-S6R3OX7B.js');
|
|
20
|
+
require('./chunk-UHNDVD3P.js');
|
|
21
|
+
require('./chunk-KXMNM4AQ.js');
|
|
22
|
+
require('./chunk-XDVT3GOM.js');
|
|
23
|
+
require('./chunk-QJBJZVG6.js');
|
|
24
|
+
require('./chunk-DQ65ZVHN.js');
|
|
25
|
+
require('./chunk-RYW4HPSM.js');
|
|
26
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
27
|
+
require('./chunk-XNYIZMNQ.js');
|
|
28
|
+
require('./chunk-7P5AA3SN.js');
|
|
29
|
+
require('./chunk-IZ74ABSX.js');
|
|
30
|
+
require('./chunk-OG64RBAC.js');
|
|
31
|
+
require('./chunk-COGTRVWW.js');
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
exports.buildToolExecuteBaseEnvelope = _chunkK33MXVXQjs.buildToolExecuteBaseEnvelope; exports.extractToolExecutionWarningMessages = _chunkK33MXVXQjs.extractToolExecutionWarningMessages; exports.printCompactToolContract = _chunkK33MXVXQjs.printCompactToolContract; exports.printMonitorTypeContract = _chunkK33MXVXQjs.printMonitorTypeContract; exports.registerToolsCommands = _chunkK33MXVXQjs.registerToolsCommands; exports.seedToolListScript = _chunkK33MXVXQjs.seedToolListScript;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkYLRME7MKjs = require('./chunk-YLRME7MK.js');
|
|
10
|
+
require('./chunk-YSVORIEW.js');
|
|
11
|
+
require('./chunk-ZHUMDMOS.js');
|
|
12
|
+
require('./chunk-WJYPBHTE.js');
|
|
13
|
+
require('./chunk-DQ65ZVHN.js');
|
|
14
|
+
require('./chunk-RYW4HPSM.js');
|
|
15
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
16
|
+
require('./chunk-XNYIZMNQ.js');
|
|
17
|
+
require('./chunk-7P5AA3SN.js');
|
|
18
|
+
require('./chunk-IZ74ABSX.js');
|
|
19
|
+
require('./chunk-OG64RBAC.js');
|
|
20
|
+
require('./chunk-COGTRVWW.js');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
exports.canAutomaticallyApplyUpdatePlan = _chunkYLRME7MKjs.canAutomaticallyApplyUpdatePlan; exports.publishedVersionSupportsPin = _chunkYLRME7MKjs.publishedVersionSupportsPin; exports.registerUpdateCommand = _chunkYLRME7MKjs.registerUpdateCommand; exports.resolveUpdatePlan = _chunkYLRME7MKjs.resolveUpdatePlan; exports.runAutomaticUpdatePlan = _chunkYLRME7MKjs.runAutomaticUpdatePlan; exports.runUpdateCommand = _chunkYLRME7MKjs.runUpdateCommand; exports.runUpdatePlan = _chunkYLRME7MKjs.runUpdatePlan;
|
|
@@ -6,15 +6,16 @@ import {
|
|
|
6
6
|
runAutomaticUpdatePlan,
|
|
7
7
|
runUpdateCommand,
|
|
8
8
|
runUpdatePlan
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-YUDKBQUD.mjs";
|
|
10
|
+
import "./chunk-NOX2TCBP.mjs";
|
|
11
|
+
import "./chunk-MV7QRALK.mjs";
|
|
12
12
|
import "./chunk-GAMFK2ZP.mjs";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-RNSWDKBM.mjs";
|
|
14
|
+
import "./chunk-2LDADJNO.mjs";
|
|
15
|
+
import "./chunk-YHPYUZZX.mjs";
|
|
15
16
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
17
|
import "./chunk-NXGCO4JB.mjs";
|
|
17
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-MRXMMERY.mjs";
|
|
18
19
|
import "./chunk-WZYKRD7T.mjs";
|
|
19
20
|
import "./chunk-KRD6H754.mjs";
|
|
20
21
|
export {
|
|
@@ -6,7 +6,7 @@ var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
|
|
|
6
6
|
var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkUVXBVUZQjs = require('./chunk-UVXBVUZQ.js');
|
|
10
10
|
require('./chunk-S6R3OX7B.js');
|
|
11
11
|
require('./chunk-UHNDVD3P.js');
|
|
12
12
|
require('./chunk-KXMNM4AQ.js');
|
|
@@ -16,11 +16,12 @@ require('./chunk-XDVT3GOM.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
19
|
+
var _chunkDQ65ZVHNjs = require('./chunk-DQ65ZVHN.js');
|
|
20
|
+
require('./chunk-RYW4HPSM.js');
|
|
21
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
21
22
|
require('./chunk-XNYIZMNQ.js');
|
|
22
23
|
require('./chunk-7P5AA3SN.js');
|
|
23
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-IZ74ABSX.js');
|
|
24
25
|
require('./chunk-OG64RBAC.js');
|
|
25
26
|
require('./chunk-COGTRVWW.js');
|
|
26
27
|
|
|
@@ -1602,18 +1603,18 @@ function noticeToStderr(command) {
|
|
|
1602
1603
|
);
|
|
1603
1604
|
}
|
|
1604
1605
|
function emitPassThrough(command, payload, options) {
|
|
1605
|
-
const json =
|
|
1606
|
+
const json = _chunkDQ65ZVHNjs.shouldEmitJson.call(void 0, options.json);
|
|
1606
1607
|
const deprecation = migrationDeprecation(command);
|
|
1607
1608
|
if (json) {
|
|
1608
1609
|
const enriched = payload && typeof payload === "object" && !Array.isArray(payload) ? { ...payload, deprecation } : { result: payload, deprecation };
|
|
1609
|
-
|
|
1610
|
+
_chunkDQ65ZVHNjs.printJson.call(void 0, enriched);
|
|
1610
1611
|
return;
|
|
1611
1612
|
}
|
|
1612
|
-
|
|
1613
|
+
_chunkDQ65ZVHNjs.printJson.call(void 0, payload);
|
|
1613
1614
|
noticeToStderr(command);
|
|
1614
1615
|
}
|
|
1615
1616
|
function client() {
|
|
1616
|
-
return new (0,
|
|
1617
|
+
return new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
1617
1618
|
}
|
|
1618
1619
|
function clientWithTimeout(timeoutSeconds) {
|
|
1619
1620
|
if (!timeoutSeconds) return client();
|
|
@@ -1621,7 +1622,7 @@ function clientWithTimeout(timeoutSeconds) {
|
|
|
1621
1622
|
if (!Number.isFinite(seconds) || seconds <= 0) {
|
|
1622
1623
|
throw new Error("--timeout must be a positive number of seconds.");
|
|
1623
1624
|
}
|
|
1624
|
-
return new (0,
|
|
1625
|
+
return new (0, _chunkUVXBVUZQjs.DeeplineClient)({ timeout: seconds * 1e3 });
|
|
1625
1626
|
}
|
|
1626
1627
|
function readStatus(payload) {
|
|
1627
1628
|
if (!payload || typeof payload !== "object") return null;
|
|
@@ -1675,7 +1676,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1675
1676
|
await _promises.writeFile.call(void 0, file, compiled.sourceCode, "utf8");
|
|
1676
1677
|
let published = false;
|
|
1677
1678
|
if (publish) {
|
|
1678
|
-
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
1679
|
+
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-XHK2LPON.js")));
|
|
1679
1680
|
const code = await handlePlayPublish([file]);
|
|
1680
1681
|
if (code !== 0) {
|
|
1681
1682
|
return {
|
|
@@ -1750,10 +1751,10 @@ async function handleTransform(id, options) {
|
|
|
1750
1751
|
for (const workflowId of ids) {
|
|
1751
1752
|
outcomes.push(await transformOne(api, workflowId, outDir, publish));
|
|
1752
1753
|
}
|
|
1753
|
-
|
|
1754
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
1754
1755
|
{ outcomes, deprecation: null },
|
|
1755
1756
|
{
|
|
1756
|
-
json:
|
|
1757
|
+
json: _chunkDQ65ZVHNjs.shouldEmitJson.call(void 0, options.json),
|
|
1757
1758
|
text: renderTransformReport(outcomes)
|
|
1758
1759
|
}
|
|
1759
1760
|
);
|
|
@@ -1774,11 +1775,11 @@ async function handleDelete(id, options) {
|
|
|
1774
1775
|
}
|
|
1775
1776
|
async function handleDisable(id, options) {
|
|
1776
1777
|
const result = await client().disableWorkflow(id);
|
|
1777
|
-
|
|
1778
|
+
_chunkDQ65ZVHNjs.printJson.call(void 0, result);
|
|
1778
1779
|
}
|
|
1779
1780
|
async function handleEnable(id, options) {
|
|
1780
1781
|
const result = await client().enableWorkflow(id);
|
|
1781
|
-
|
|
1782
|
+
_chunkDQ65ZVHNjs.printJson.call(void 0, result);
|
|
1782
1783
|
}
|
|
1783
1784
|
async function handleApply(options) {
|
|
1784
1785
|
const body = await readJsonOption(options.payload, options.file);
|
|
@@ -1843,7 +1844,7 @@ async function handleTail(id, runId, options) {
|
|
|
1843
1844
|
if (status && TERMINAL_RUN_STATUSES.has(status) || Date.now() > deadline) {
|
|
1844
1845
|
return;
|
|
1845
1846
|
}
|
|
1846
|
-
await
|
|
1847
|
+
await _chunkDQ65ZVHNjs.sleep.call(void 0, intervalMs);
|
|
1847
1848
|
}
|
|
1848
1849
|
}
|
|
1849
1850
|
function registerWorkflowCommands(program) {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-H7HIDGZ7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DeeplineClient
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-J7ABTQQ7.mjs";
|
|
10
10
|
import "./chunk-6IKARAYD.mjs";
|
|
11
11
|
import "./chunk-JI2B4RZP.mjs";
|
|
12
12
|
import "./chunk-EIMG75BT.mjs";
|
|
@@ -16,11 +16,12 @@ import {
|
|
|
16
16
|
printJson,
|
|
17
17
|
shouldEmitJson,
|
|
18
18
|
sleep
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-RNSWDKBM.mjs";
|
|
20
|
+
import "./chunk-2LDADJNO.mjs";
|
|
21
|
+
import "./chunk-YHPYUZZX.mjs";
|
|
21
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
22
23
|
import "./chunk-NXGCO4JB.mjs";
|
|
23
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-MRXMMERY.mjs";
|
|
24
25
|
import "./chunk-WZYKRD7T.mjs";
|
|
25
26
|
import "./chunk-KRD6H754.mjs";
|
|
26
27
|
|
|
@@ -1675,7 +1676,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1675
1676
|
await writeFile(file, compiled.sourceCode, "utf8");
|
|
1676
1677
|
let published = false;
|
|
1677
1678
|
if (publish) {
|
|
1678
|
-
const { handlePlayPublish } = await import("./play-
|
|
1679
|
+
const { handlePlayPublish } = await import("./play-MU7MYBIM.mjs");
|
|
1679
1680
|
const code = await handlePlayPublish([file]);
|
|
1680
1681
|
if (code !== 0) {
|
|
1681
1682
|
return {
|