deepline 0.3.459 → 0.3.461
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/billing/state.ts +28 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +24 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +11 -20
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +51 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -1
- package/dist/cli/{auth-2RM2ZC6E.mjs → auth-6HJXNWUG.mjs} +4 -4
- package/dist/cli/auth-IACERYQH.js +40 -0
- package/dist/cli/{billing-4BZABEOA.js → billing-6P5HO6QG.js} +73 -73
- package/dist/cli/{billing-FYF2GJ25.mjs → billing-MJ42N7YF.mjs} +4 -4
- package/dist/cli/{chunk-5WGW57KC.mjs → chunk-3BMLICF7.mjs} +3 -3
- package/dist/cli/{chunk-HUVI6EBF.js → chunk-5FDKJQZE.js} +1 -1
- package/dist/cli/{chunk-FBMVFOD7.js → chunk-5FY72YOV.js} +8 -8
- package/dist/cli/{chunk-KB4XJRQW.js → chunk-5IYOUBFZ.js} +8 -8
- package/dist/cli/{chunk-U3VAYRUL.js → chunk-5MDIZX7M.js} +6 -6
- package/dist/cli/{chunk-UIKSAVAE.js → chunk-ACCR7POB.js} +26 -26
- package/dist/cli/{chunk-MHMRLS7W.mjs → chunk-BGY2PLP7.mjs} +3 -3
- package/dist/cli/{chunk-ACCQ5OM7.js → chunk-CRYOUPEB.js} +16 -16
- package/dist/cli/{chunk-Z4YO4J4J.js → chunk-FCAZQ7WV.js} +50 -50
- package/dist/cli/{chunk-LSJYTDEK.mjs → chunk-FGLKOWSC.mjs} +1 -1
- package/dist/cli/{chunk-FFUQFRKZ.js → chunk-FGMX4HUZ.js} +20 -20
- package/dist/cli/{chunk-BIPMJKLI.mjs → chunk-FJZILBL7.mjs} +5 -5
- package/dist/cli/{chunk-SOUQUQQE.mjs → chunk-IHHLTHE7.mjs} +8 -8
- package/dist/cli/{chunk-PI65FBEA.js → chunk-KCCOQ5G5.js} +81 -81
- package/dist/cli/{chunk-OD236M42.mjs → chunk-KVJ5VHW5.mjs} +2 -2
- package/dist/cli/{chunk-LGOI2BRX.js → chunk-MDJPEGVN.js} +10 -10
- package/dist/cli/{chunk-ZAJAGMXA.mjs → chunk-MEAIOXJL.mjs} +2 -2
- package/dist/cli/{chunk-KDDB5S6E.mjs → chunk-MGXEUZHL.mjs} +3 -3
- package/dist/cli/{chunk-S5TTNBEZ.js → chunk-O6QOMHCH.js} +35 -35
- package/dist/cli/{chunk-FPPCTKV6.js → chunk-OZBWRICM.js} +2 -2
- package/dist/cli/{chunk-5KC7RLJO.js → chunk-PNATXKLP.js} +6 -6
- package/dist/cli/{chunk-Y35FCRLQ.mjs → chunk-QAJAJPKK.mjs} +1 -1
- package/dist/cli/{chunk-HU7JG4RL.mjs → chunk-QEYHTIV4.mjs} +1 -1
- package/dist/cli/{chunk-7DFM5YLL.mjs → chunk-QIW7TVV6.mjs} +4 -4
- package/dist/cli/{chunk-NLRKZJZF.mjs → chunk-R64BGGRQ.mjs} +2 -2
- package/dist/cli/{chunk-4EBJNT5C.mjs → chunk-RFONC4WJ.mjs} +2 -2
- package/dist/cli/{chunk-7AGGDRNR.mjs → chunk-RY4IVOU3.mjs} +1 -1
- package/dist/cli/{chunk-OY4JQBJG.js → chunk-SAZFZQRI.js} +2 -2
- package/dist/cli/{chunk-JOSOQJ5P.js → chunk-SCIR5JXW.js} +51 -51
- package/dist/cli/{chunk-OQW2YP3P.mjs → chunk-T3MVIPHG.mjs} +1 -1
- package/dist/cli/{chunk-2JSVKNLG.js → chunk-TNMBPMMC.js} +3 -3
- package/dist/cli/{chunk-RLQDDJZZ.mjs → chunk-V7REJRDZ.mjs} +1 -1
- package/dist/cli/{chunk-MNNMPS6J.mjs → chunk-VZBCEA5S.mjs} +1 -1
- package/dist/cli/{chunk-VLJXYDGZ.js → chunk-YQDUODZW.js} +4 -4
- package/dist/cli/{csv-SDVEU3O5.mjs → csv-DQ6GW5B5.mjs} +3 -3
- package/dist/cli/{csv-LRIV3RXE.js → csv-NX7NO3O6.js} +12 -12
- package/dist/cli/{db-NHYULZTM.mjs → db-2YP33M4K.mjs} +4 -4
- package/dist/cli/{db-JS4OEDNY.js → db-R72DFMP6.js} +25 -25
- package/dist/cli/{describe-ZFKCZHOJ.js → describe-2WQY7ZCY.js} +17 -17
- package/dist/cli/{describe-H5F72Q3S.mjs → describe-FRAVCY5F.mjs} +13 -13
- package/dist/cli/{executions-25YKX4K3.mjs → executions-WFBU7L2Q.mjs} +4 -4
- package/dist/cli/{executions-QPAKZTNQ.js → executions-ZLHD4QIT.js} +6 -6
- package/dist/cli/{feedback-Z3BES6L6.mjs → feedback-CN3HJFVF.mjs} +3 -3
- package/dist/cli/{feedback-O63Z5O2R.js → feedback-NDV6TPHG.js} +7 -7
- package/dist/cli/git-JVI36ZFV.js +24 -0
- package/dist/cli/{git-V7S3IBLO.mjs → git-QAD6E3HW.mjs} +4 -4
- package/dist/cli/index.js +132 -132
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-ZLLYEGQ6.js → legacy-noops-KVC5QJ74.js} +7 -7
- package/dist/cli/{legacy-noops-VRT5WZ5I.mjs → legacy-noops-TPTKNBI2.mjs} +4 -4
- package/dist/cli/{monitors-T7FKIDDY.js → monitors-KCROV6PJ.js} +89 -89
- package/dist/cli/{monitors-44KSWY3M.mjs → monitors-SV57JFLO.mjs} +5 -5
- package/dist/cli/{org-BZE4CGIT.mjs → org-KX6QIR7A.mjs} +4 -4
- package/dist/cli/{org-KPPG2KY4.js → org-NJYX5743.js} +66 -66
- package/dist/cli/{play-M5P74N3E.js → play-32L7EQN4.js} +284 -284
- package/dist/cli/{play-CHTP4NKR.mjs → play-IQQ57L7Z.mjs} +11 -11
- package/dist/cli/{providers-CGLPOOXA.mjs → providers-4WEC2EQN.mjs} +4 -4
- package/dist/cli/{providers-L3PK7NHU.js → providers-ZQV6QLVQ.js} +7 -7
- package/dist/cli/{quickstart-LJ7HELWE.js → quickstart-HKUSFADF.js} +5 -5
- package/dist/cli/{quickstart-NWG35AKK.mjs → quickstart-RQ76RIUE.mjs} +3 -3
- package/dist/cli/search-75X5LTDE.js +30 -0
- package/dist/cli/{search-723TVSNC.mjs → search-ZRAVFBZC.mjs} +5 -5
- package/dist/cli/{secrets-ONN3Z5Y6.mjs → secrets-CMJOVNVH.mjs} +4 -4
- package/dist/cli/{secrets-SVSSLPWB.js → secrets-J3G5Y43U.js} +13 -13
- package/dist/cli/{sessions-3KAEYQ3U.mjs → sessions-MDQYY5CB.mjs} +4 -4
- package/dist/cli/{sessions-7LYPPYUY.js → sessions-WY7VN4AE.js} +5 -5
- package/dist/cli/{settings-2CBJI7FY.mjs → settings-4RWZPCT5.mjs} +9 -9
- package/dist/cli/{settings-JGJZO7EX.js → settings-HTNTFKCE.js} +76 -76
- package/dist/cli/{setup-BJCBDH34.mjs → setup-P3GYYZWG.mjs} +8 -8
- package/dist/cli/{setup-AIAOO7R4.js → setup-QGCAP62X.js} +43 -43
- package/dist/cli/{skills-7QSQPQXX.mjs → skills-7NAE4ICL.mjs} +6 -6
- package/dist/cli/skills-BKJ53JOQ.js +30 -0
- package/dist/cli/{tools-I7LYXHDR.mjs → tools-COWMIEJ6.mjs} +13 -13
- package/dist/cli/tools-TASOCE7I.js +45 -0
- package/dist/cli/{update-LKY5OJ56.mjs → update-GODLRKNB.mjs} +8 -8
- package/dist/cli/update-SJIKVME6.js +32 -0
- package/dist/cli/{workflow-DD32BU7Y.mjs → workflow-4BXOUVEO.mjs} +5 -5
- package/dist/cli/{workflow-Y4HGE7MB.js → workflow-AO3A6LXN.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-EAFWPDJG.js +0 -40
- package/dist/cli/git-KSRP3PNB.js +0 -24
- package/dist/cli/search-PESQULBG.js +0 -30
- package/dist/cli/skills-WECIGARR.js +0 -30
- package/dist/cli/tools-HTEMYXT2.js +0 -45
- package/dist/cli/update-J4LSPXHD.js +0 -32
|
@@ -6,23 +6,23 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkFCAZQ7WVjs = require('./chunk-FCAZQ7WV.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkSAZFZQRIjs = require('./chunk-SAZFZQRI.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkO6QOMHCHjs = require('./chunk-O6QOMHCH.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
20
|
+
var _chunkSCIR5JXWjs = require('./chunk-SCIR5JXW.js');
|
|
21
|
+
require('./chunk-TNMBPMMC.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk5MDIZX7Mjs = require('./chunk-5MDIZX7M.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -32,11 +32,11 @@ var _chunkU3VAYRULjs = require('./chunk-U3VAYRUL.js');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkYQDUODZWjs = require('./chunk-YQDUODZW.js');
|
|
36
36
|
require('./chunk-ALJJRZNJ.js');
|
|
37
37
|
require('./chunk-XNYIZMNQ.js');
|
|
38
38
|
require('./chunk-DIAWYWT5.js');
|
|
39
|
-
require('./chunk-
|
|
39
|
+
require('./chunk-5FDKJQZE.js');
|
|
40
40
|
require('./chunk-OG64RBAC.js');
|
|
41
41
|
|
|
42
42
|
|
|
@@ -291,7 +291,7 @@ function normalizeScope(value) {
|
|
|
291
291
|
}
|
|
292
292
|
function resolveScopeRoot(scope) {
|
|
293
293
|
if (scope === "global") return null;
|
|
294
|
-
const target =
|
|
294
|
+
const target = _chunkYQDUODZWjs.resolveProjectPinTarget.call(void 0, );
|
|
295
295
|
if (!target.ok) {
|
|
296
296
|
throw new Error(
|
|
297
297
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -308,7 +308,7 @@ function openSetupAuthorization(authorizationUrl, options = {}) {
|
|
|
308
308
|
const url = authorizationUrl.trim();
|
|
309
309
|
if (!url) return "failed";
|
|
310
310
|
if (options.open) return options.open(url);
|
|
311
|
-
const result =
|
|
311
|
+
const result = _chunk5MDIZX7Mjs.openInBrowser.call(void 0, url, { deduplicate: false });
|
|
312
312
|
return result === "opened" ? "opened" : "failed";
|
|
313
313
|
}
|
|
314
314
|
function buildPendingAuthorizationOutput(input) {
|
|
@@ -350,7 +350,7 @@ function buildPendingAuthorizationOutput(input) {
|
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
352
|
function setupStatePath(baseUrl, scope, root) {
|
|
353
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0,
|
|
353
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0, _chunkYQDUODZWjs.sdkCliStateDirPath.call(void 0, baseUrl), "setup.json");
|
|
354
354
|
}
|
|
355
355
|
async function captureStdout(run) {
|
|
356
356
|
let stdout = "";
|
|
@@ -393,7 +393,7 @@ function isNpmManagedDeeplinePath(path) {
|
|
|
393
393
|
}
|
|
394
394
|
function removeKnownLegacyPaths(baseUrl) {
|
|
395
395
|
return CliInstallation.forUser({
|
|
396
|
-
baseUrlSlug:
|
|
396
|
+
baseUrlSlug: _chunkYQDUODZWjs.baseUrlSlug.call(void 0, baseUrl),
|
|
397
397
|
home: _os.homedir.call(void 0, )
|
|
398
398
|
}).removeRetiredArtifacts();
|
|
399
399
|
}
|
|
@@ -431,7 +431,7 @@ function resolvePersistentGlobalCommand(dependencies = {}) {
|
|
|
431
431
|
const homebrewCommand = pathClis.find(isHomebrewFormulaCommand);
|
|
432
432
|
if (homebrewCommand) return homebrewCommand;
|
|
433
433
|
for (const manager of ["npm", "pnpm"]) {
|
|
434
|
-
const plan =
|
|
434
|
+
const plan = _chunkSCIR5JXWjs.resolveShellSpawn.call(void 0,
|
|
435
435
|
manager,
|
|
436
436
|
manager === "npm" ? ["prefix", "-g"] : ["bin", "-g"],
|
|
437
437
|
platform
|
|
@@ -500,7 +500,7 @@ function writeSetupState(input) {
|
|
|
500
500
|
{
|
|
501
501
|
schemaVersion: 2,
|
|
502
502
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
503
|
-
cliVersion:
|
|
503
|
+
cliVersion: _chunkYQDUODZWjs.SDK_VERSION,
|
|
504
504
|
host: input.baseUrl,
|
|
505
505
|
scope: input.scope,
|
|
506
506
|
root: input.root,
|
|
@@ -535,8 +535,8 @@ function failSetupPhase(phases, phase, code) {
|
|
|
535
535
|
}
|
|
536
536
|
function rollbackCommand(scope, root) {
|
|
537
537
|
const prefix = scope === "local" && root ? ` --prefix ${JSON.stringify(_path.join.call(void 0, root, ".deepline", "runtime"))}` : "";
|
|
538
|
-
const allowScriptsFlag =
|
|
539
|
-
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${
|
|
538
|
+
const allowScriptsFlag = _chunkSAZFZQRIjs.npmSupportsAllowScripts.call(void 0, _chunkSAZFZQRIjs.readNpmVersion.call(void 0, process.env)) ? " --allow-scripts=esbuild" : "";
|
|
539
|
+
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${_chunkYQDUODZWjs.SDK_VERSION}`;
|
|
540
540
|
}
|
|
541
541
|
function setupResumeCommand(baseUrl, scope, orgName) {
|
|
542
542
|
const hostPrefix = baseUrl === "https://code.deepline.com" ? "" : `DEEPLINE_HOST_URL=${JSON.stringify(baseUrl)} `;
|
|
@@ -560,7 +560,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
560
560
|
status: "failed"
|
|
561
561
|
});
|
|
562
562
|
const retry = setupRetry(input);
|
|
563
|
-
|
|
563
|
+
_chunk5MDIZX7Mjs.printCommandEnvelope.call(void 0,
|
|
564
564
|
{
|
|
565
565
|
ok: false,
|
|
566
566
|
status: "failed",
|
|
@@ -582,7 +582,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
582
582
|
async function readAuthStatus(authScope) {
|
|
583
583
|
try {
|
|
584
584
|
const captured = await captureStdout(
|
|
585
|
-
() =>
|
|
585
|
+
() => _chunkFCAZQ7WVjs.handleStatus.call(void 0, [
|
|
586
586
|
"--json",
|
|
587
587
|
...authScope ? ["--auth-scope", authScope] : []
|
|
588
588
|
])
|
|
@@ -613,14 +613,14 @@ function reportSetupAuthStatusFailure(input) {
|
|
|
613
613
|
});
|
|
614
614
|
}
|
|
615
615
|
function buildDoctorAssessment(input) {
|
|
616
|
-
const skillsStatePath =
|
|
616
|
+
const skillsStatePath = _chunkO6QOMHCHjs.skillsStatePathForScope.call(void 0,
|
|
617
617
|
input.baseUrl,
|
|
618
618
|
input.scope,
|
|
619
619
|
input.root
|
|
620
620
|
);
|
|
621
621
|
const skillsState = parseCapturedJson(safeRead(skillsStatePath));
|
|
622
|
-
const apiKey = input.scope === "local" ?
|
|
623
|
-
const projectAuth = input.scope === "local" && apiKey ?
|
|
622
|
+
const apiKey = input.scope === "local" ? _chunkYQDUODZWjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkYQDUODZWjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
623
|
+
const projectAuth = input.scope === "local" && apiKey ? _chunkYQDUODZWjs.getResolvedProjectAuthSource.call(void 0, input.baseUrl, apiKey) : null;
|
|
624
624
|
const connected = _optionalChain([input, 'access', _4 => _4.authStatus, 'access', _5 => _5.payload, 'optionalAccess', _6 => _6.connected]) === true;
|
|
625
625
|
const authScopeOk = input.scope === "local" ? Boolean(projectAuth) : Boolean(apiKey && !projectAuth);
|
|
626
626
|
const skillsOk = _optionalChain([skillsState, 'optionalAccess', _7 => _7.scope]) === input.scope && typeof skillsState.skillsVersion === "string" && Array.isArray(skillsState.agents) && skillsState.agents.length > 0;
|
|
@@ -634,7 +634,7 @@ function buildDoctorAssessment(input) {
|
|
|
634
634
|
const checks = {
|
|
635
635
|
cli: {
|
|
636
636
|
ok: Boolean(cliPath) && cliScopeOk,
|
|
637
|
-
version:
|
|
637
|
+
version: _chunkYQDUODZWjs.SDK_VERSION,
|
|
638
638
|
path: cliPath,
|
|
639
639
|
scope: input.scope
|
|
640
640
|
},
|
|
@@ -668,7 +668,7 @@ async function runDoctorCommand(options) {
|
|
|
668
668
|
scope = normalizeScope(options.scope);
|
|
669
669
|
root = resolveScopeRoot(scope);
|
|
670
670
|
} catch (error) {
|
|
671
|
-
|
|
671
|
+
_chunk5MDIZX7Mjs.printCommandEnvelope.call(void 0,
|
|
672
672
|
{
|
|
673
673
|
ok: false,
|
|
674
674
|
status: "failed",
|
|
@@ -680,7 +680,7 @@ async function runDoctorCommand(options) {
|
|
|
680
680
|
);
|
|
681
681
|
return 2;
|
|
682
682
|
}
|
|
683
|
-
const baseUrl =
|
|
683
|
+
const baseUrl = _chunkYQDUODZWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
684
684
|
const authScope = authScopeForSetup(scope);
|
|
685
685
|
const authStatus = await readAuthStatus(authScope);
|
|
686
686
|
const { ok, checks } = buildDoctorAssessment({
|
|
@@ -690,7 +690,7 @@ async function runDoctorCommand(options) {
|
|
|
690
690
|
authStatus
|
|
691
691
|
});
|
|
692
692
|
const gettingStarted = _chunkEBU7LQ64js.deeplineGtmGettingStartedPayload.call(void 0, );
|
|
693
|
-
|
|
693
|
+
_chunk5MDIZX7Mjs.printCommandEnvelope.call(void 0,
|
|
694
694
|
{
|
|
695
695
|
ok,
|
|
696
696
|
status: ok ? "complete" : "failed",
|
|
@@ -735,7 +735,7 @@ function pendingResult(input) {
|
|
|
735
735
|
input.orgName
|
|
736
736
|
)
|
|
737
737
|
});
|
|
738
|
-
|
|
738
|
+
_chunk5MDIZX7Mjs.printCommandEnvelope.call(void 0,
|
|
739
739
|
{
|
|
740
740
|
ok: true,
|
|
741
741
|
status: "authorization_pending",
|
|
@@ -772,7 +772,7 @@ function pendingResult(input) {
|
|
|
772
772
|
async function runSetupCommand(options) {
|
|
773
773
|
let orgName = _optionalChain([options, 'access', _19 => _19.orgName, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
|
|
774
774
|
if (options.orgName !== void 0 && !orgName) {
|
|
775
|
-
|
|
775
|
+
_chunk5MDIZX7Mjs.printCommandEnvelope.call(void 0,
|
|
776
776
|
{
|
|
777
777
|
ok: false,
|
|
778
778
|
status: "failed",
|
|
@@ -790,7 +790,7 @@ async function runSetupCommand(options) {
|
|
|
790
790
|
scope = normalizeScope(options.scope);
|
|
791
791
|
root = resolveScopeRoot(scope);
|
|
792
792
|
} catch (error) {
|
|
793
|
-
|
|
793
|
+
_chunk5MDIZX7Mjs.printCommandEnvelope.call(void 0,
|
|
794
794
|
{
|
|
795
795
|
ok: false,
|
|
796
796
|
status: "failed",
|
|
@@ -807,7 +807,7 @@ async function runSetupCommand(options) {
|
|
|
807
807
|
);
|
|
808
808
|
return 2;
|
|
809
809
|
}
|
|
810
|
-
const baseUrl =
|
|
810
|
+
const baseUrl = _chunkYQDUODZWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
811
811
|
const previousState = readSetupState({ baseUrl, scope, root });
|
|
812
812
|
const { resumed, phases } = selectSetupProgress(previousState);
|
|
813
813
|
if (phases.cli.status !== "complete") {
|
|
@@ -894,7 +894,7 @@ async function runSetupCommand(options) {
|
|
|
894
894
|
process.stderr.write(`Installing Deepline skills (${scope})...
|
|
895
895
|
`);
|
|
896
896
|
const skills = await captureStdout(
|
|
897
|
-
() =>
|
|
897
|
+
() => _chunkO6QOMHCHjs.runSkillsCommand.call(void 0, { scope, json: true })
|
|
898
898
|
);
|
|
899
899
|
skillsPayload = parseCapturedJson(skills.stdout);
|
|
900
900
|
if (skills.exitCode !== 0) {
|
|
@@ -935,11 +935,11 @@ async function runSetupCommand(options) {
|
|
|
935
935
|
});
|
|
936
936
|
} else {
|
|
937
937
|
skillsPayload = parseCapturedJson(
|
|
938
|
-
safeRead(
|
|
938
|
+
safeRead(_chunkO6QOMHCHjs.skillsStatePathForScope.call(void 0, baseUrl, scope, root))
|
|
939
939
|
);
|
|
940
940
|
}
|
|
941
941
|
const authScope = authScopeForSetup(scope);
|
|
942
|
-
const pendingAtStart =
|
|
942
|
+
const pendingAtStart = _chunkFCAZQ7WVjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
943
943
|
const replacingPendingClaim = Boolean(
|
|
944
944
|
pendingAtStart && orgName && _optionalChain([pendingAtStart, 'access', _24 => _24.orgName, 'optionalAccess', _25 => _25.toLowerCase, 'call', _26 => _26()]) !== orgName.toLowerCase()
|
|
945
945
|
);
|
|
@@ -966,9 +966,9 @@ async function runSetupCommand(options) {
|
|
|
966
966
|
const workspace = asRecord(auth.payload.workspace);
|
|
967
967
|
return typeof _optionalChain([workspace, 'optionalAccess', _29 => _29.name]) === "string" && workspace.name.trim().toLowerCase() === orgName.toLowerCase();
|
|
968
968
|
};
|
|
969
|
-
let pending = replacingPendingClaim ? null :
|
|
969
|
+
let pending = replacingPendingClaim ? null : _chunkFCAZQ7WVjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
970
970
|
if (replacingPendingClaim && connectedToRequestedWorkspace()) {
|
|
971
|
-
|
|
971
|
+
_chunkFCAZQ7WVjs.clearPendingClaim.call(void 0, baseUrl, authScope);
|
|
972
972
|
}
|
|
973
973
|
let authClaimSource = "none";
|
|
974
974
|
if (pending || !connectedToRequestedWorkspace()) {
|
|
@@ -977,7 +977,7 @@ async function runSetupCommand(options) {
|
|
|
977
977
|
if (!pending) {
|
|
978
978
|
process.stderr.write("Starting Deepline browser authorization...\n");
|
|
979
979
|
const registered = await captureStdout(
|
|
980
|
-
() =>
|
|
980
|
+
() => _chunkFCAZQ7WVjs.handleRegister.call(void 0, [
|
|
981
981
|
"--wait",
|
|
982
982
|
"no",
|
|
983
983
|
"--auth-scope",
|
|
@@ -1000,7 +1000,7 @@ async function runSetupCommand(options) {
|
|
|
1000
1000
|
extra: { detail: parseCapturedJson(registered.stdout), authScope }
|
|
1001
1001
|
});
|
|
1002
1002
|
}
|
|
1003
|
-
pending =
|
|
1003
|
+
pending = _chunkFCAZQ7WVjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1004
1004
|
if (!_optionalChain([pending, 'optionalAccess', _30 => _30.claimUrl])) {
|
|
1005
1005
|
return reportSetupPhaseFailure({
|
|
1006
1006
|
baseUrl,
|
|
@@ -1036,7 +1036,7 @@ async function runSetupCommand(options) {
|
|
|
1036
1036
|
"Waiting up to five minutes for Deepline approval...\n"
|
|
1037
1037
|
);
|
|
1038
1038
|
const waited = await captureStdout(
|
|
1039
|
-
() =>
|
|
1039
|
+
() => _chunkFCAZQ7WVjs.handleWait.call(void 0, ["--timeout", "300", "--auth-scope", authScope])
|
|
1040
1040
|
);
|
|
1041
1041
|
auth = await readAuthStatus(authScope);
|
|
1042
1042
|
const authFailure = reportSetupAuthStatusFailure({
|
|
@@ -1050,7 +1050,7 @@ async function runSetupCommand(options) {
|
|
|
1050
1050
|
json: options.json
|
|
1051
1051
|
});
|
|
1052
1052
|
if (authFailure !== null) return authFailure;
|
|
1053
|
-
if (waited.exitCode ===
|
|
1053
|
+
if (waited.exitCode === _chunkFCAZQ7WVjs.EXIT_WORKSPACE_MISMATCH) {
|
|
1054
1054
|
return reportSetupPhaseFailure({
|
|
1055
1055
|
baseUrl,
|
|
1056
1056
|
scope,
|
|
@@ -1058,7 +1058,7 @@ async function runSetupCommand(options) {
|
|
|
1058
1058
|
phases,
|
|
1059
1059
|
phase: "auth",
|
|
1060
1060
|
code: "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT",
|
|
1061
|
-
exitCode:
|
|
1061
|
+
exitCode: _chunkFCAZQ7WVjs.EXIT_WORKSPACE_MISMATCH,
|
|
1062
1062
|
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.`,
|
|
1063
1063
|
orgName,
|
|
1064
1064
|
retryAutomatic: false,
|
|
@@ -1067,7 +1067,7 @@ async function runSetupCommand(options) {
|
|
|
1067
1067
|
});
|
|
1068
1068
|
}
|
|
1069
1069
|
if (!connectedToRequestedWorkspace()) {
|
|
1070
|
-
const stillPending =
|
|
1070
|
+
const stillPending = _chunkFCAZQ7WVjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1071
1071
|
if (_optionalChain([stillPending, 'optionalAccess', _31 => _31.claimUrl])) {
|
|
1072
1072
|
return pendingResult({
|
|
1073
1073
|
baseUrl,
|
|
@@ -1150,7 +1150,7 @@ async function runSetupCommand(options) {
|
|
|
1150
1150
|
const installedAgents = Array.isArray(_optionalChain([skillsPayload, 'optionalAccess', _38 => _38.agents])) ? skillsPayload.agents.filter(
|
|
1151
1151
|
(agent) => typeof agent === "string"
|
|
1152
1152
|
) : [];
|
|
1153
|
-
await
|
|
1153
|
+
await _chunkFCAZQ7WVjs.reportSetupCompleted.call(void 0, {
|
|
1154
1154
|
baseUrl,
|
|
1155
1155
|
authScope,
|
|
1156
1156
|
scope,
|
|
@@ -1161,13 +1161,13 @@ async function runSetupCommand(options) {
|
|
|
1161
1161
|
const apiCheck = asRecord(_optionalChain([doctorChecks, 'optionalAccess', _40 => _40.api]));
|
|
1162
1162
|
const workspaceRecord = asRecord(_optionalChain([apiCheck, 'optionalAccess', _41 => _41.workspace]));
|
|
1163
1163
|
const workspaceName = typeof _optionalChain([workspaceRecord, 'optionalAccess', _42 => _42.name]) === "string" && workspaceRecord.name.trim() ? workspaceRecord.name.trim() : null;
|
|
1164
|
-
|
|
1164
|
+
_chunk5MDIZX7Mjs.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
ok: true,
|
|
1167
1167
|
status: "complete",
|
|
1168
1168
|
complete: true,
|
|
1169
1169
|
scope,
|
|
1170
|
-
cliVersion:
|
|
1170
|
+
cliVersion: _chunkYQDUODZWjs.SDK_VERSION,
|
|
1171
1171
|
agents: installedAgents,
|
|
1172
1172
|
workspace: _nullishCoalesce(_optionalChain([apiCheck, 'optionalAccess', _43 => _43.workspace]), () => ( null)),
|
|
1173
1173
|
businessDomain: typeof _optionalChain([auth, 'access', _44 => _44.payload, 'optionalAccess', _45 => _45.businessDomain]) === "string" ? auth.payload.businessDomain : null,
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
runSkillsCommand,
|
|
8
8
|
skillsStatePathForScope,
|
|
9
9
|
workspaceSkillRootsForAgents
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-MGXEUZHL.mjs";
|
|
11
|
+
import "./chunk-3BMLICF7.mjs";
|
|
12
|
+
import "./chunk-QEYHTIV4.mjs";
|
|
13
|
+
import "./chunk-QAJAJPKK.mjs";
|
|
14
|
+
import "./chunk-RY4IVOU3.mjs";
|
|
15
15
|
import "./chunk-4QF2K7TM.mjs";
|
|
16
16
|
import "./chunk-DLIRSHV6.mjs";
|
|
17
17
|
import "./chunk-HBL4PM5Q.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-T3MVIPHG.mjs";
|
|
19
19
|
import "./chunk-WZYKRD7T.mjs";
|
|
20
20
|
import "./chunk-KRD6H754.mjs";
|
|
21
21
|
export {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkO6QOMHCHjs = require('./chunk-O6QOMHCH.js');
|
|
11
|
+
require('./chunk-SCIR5JXW.js');
|
|
12
|
+
require('./chunk-TNMBPMMC.js');
|
|
13
|
+
require('./chunk-5MDIZX7M.js');
|
|
14
|
+
require('./chunk-YQDUODZW.js');
|
|
15
|
+
require('./chunk-ALJJRZNJ.js');
|
|
16
|
+
require('./chunk-XNYIZMNQ.js');
|
|
17
|
+
require('./chunk-DIAWYWT5.js');
|
|
18
|
+
require('./chunk-5FDKJQZE.js');
|
|
19
|
+
require('./chunk-OG64RBAC.js');
|
|
20
|
+
require('./chunk-COGTRVWW.js');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
exports.buildSkillsPlan = _chunkO6QOMHCHjs.buildSkillsPlan; exports.detectSkillsAgents = _chunkO6QOMHCHjs.detectSkillsAgents; exports.inferActiveSkillsScope = _chunkO6QOMHCHjs.inferActiveSkillsScope; exports.isSkillsPlanCurrent = _chunkO6QOMHCHjs.isSkillsPlanCurrent; exports.registerSkillsCommand = _chunkO6QOMHCHjs.registerSkillsCommand; exports.runSkillsCommand = _chunkO6QOMHCHjs.runSkillsCommand; exports.skillsStatePathForScope = _chunkO6QOMHCHjs.skillsStatePathForScope; exports.workspaceSkillRootsForAgents = _chunkO6QOMHCHjs.workspaceSkillRootsForAgents;
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
printMonitorTypeContract,
|
|
6
6
|
registerToolsCommands,
|
|
7
7
|
seedToolListScript
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IHHLTHE7.mjs";
|
|
9
9
|
import "./chunk-YBWAG72P.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-BGY2PLP7.mjs";
|
|
11
11
|
import "./chunk-SLEUWLJE.mjs";
|
|
12
12
|
import "./chunk-HDFRJ4IT.mjs";
|
|
13
13
|
import "./chunk-OVDNJAJN.mjs";
|
|
@@ -15,24 +15,24 @@ import "./chunk-LJ5747UC.mjs";
|
|
|
15
15
|
import "./chunk-FR2ILQ4G.mjs";
|
|
16
16
|
import "./chunk-FIVKWNMT.mjs";
|
|
17
17
|
import "./chunk-TXZVVBQZ.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-VZBCEA5S.mjs";
|
|
19
19
|
import "./chunk-L2VKAASU.mjs";
|
|
20
20
|
import "./chunk-FAG4DFUC.mjs";
|
|
21
21
|
import "./chunk-EIMG75BT.mjs";
|
|
22
22
|
import "./chunk-UBKA33KY.mjs";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-QIW7TVV6.mjs";
|
|
24
|
+
import "./chunk-FJZILBL7.mjs";
|
|
25
|
+
import "./chunk-FGLKOWSC.mjs";
|
|
26
|
+
import "./chunk-MGXEUZHL.mjs";
|
|
27
|
+
import "./chunk-V7REJRDZ.mjs";
|
|
28
|
+
import "./chunk-3BMLICF7.mjs";
|
|
29
|
+
import "./chunk-QEYHTIV4.mjs";
|
|
30
|
+
import "./chunk-QAJAJPKK.mjs";
|
|
31
|
+
import "./chunk-RY4IVOU3.mjs";
|
|
32
32
|
import "./chunk-4QF2K7TM.mjs";
|
|
33
33
|
import "./chunk-DLIRSHV6.mjs";
|
|
34
34
|
import "./chunk-HBL4PM5Q.mjs";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-T3MVIPHG.mjs";
|
|
36
36
|
import "./chunk-WZYKRD7T.mjs";
|
|
37
37
|
import "./chunk-KRD6H754.mjs";
|
|
38
38
|
export {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkKCCOQ5G5js = require('./chunk-KCCOQ5G5.js');
|
|
9
|
+
require('./chunk-PQUUWFXY.js');
|
|
10
|
+
require('./chunk-5IYOUBFZ.js');
|
|
11
|
+
require('./chunk-Z2GUFYT6.js');
|
|
12
|
+
require('./chunk-Z2XUZC34.js');
|
|
13
|
+
require('./chunk-AID3OYVJ.js');
|
|
14
|
+
require('./chunk-ZM2YPJQJ.js');
|
|
15
|
+
require('./chunk-J33TSWO5.js');
|
|
16
|
+
require('./chunk-HGFFYVXN.js');
|
|
17
|
+
require('./chunk-NA4T3B62.js');
|
|
18
|
+
require('./chunk-MDJPEGVN.js');
|
|
19
|
+
require('./chunk-E4CABWXL.js');
|
|
20
|
+
require('./chunk-JKVRBCZL.js');
|
|
21
|
+
require('./chunk-KXMNM4AQ.js');
|
|
22
|
+
require('./chunk-XDVT3GOM.js');
|
|
23
|
+
require('./chunk-FGMX4HUZ.js');
|
|
24
|
+
require('./chunk-CRYOUPEB.js');
|
|
25
|
+
require('./chunk-SAZFZQRI.js');
|
|
26
|
+
require('./chunk-O6QOMHCH.js');
|
|
27
|
+
require('./chunk-OZBWRICM.js');
|
|
28
|
+
require('./chunk-SCIR5JXW.js');
|
|
29
|
+
require('./chunk-TNMBPMMC.js');
|
|
30
|
+
require('./chunk-5MDIZX7M.js');
|
|
31
|
+
require('./chunk-YQDUODZW.js');
|
|
32
|
+
require('./chunk-ALJJRZNJ.js');
|
|
33
|
+
require('./chunk-XNYIZMNQ.js');
|
|
34
|
+
require('./chunk-DIAWYWT5.js');
|
|
35
|
+
require('./chunk-5FDKJQZE.js');
|
|
36
|
+
require('./chunk-OG64RBAC.js');
|
|
37
|
+
require('./chunk-COGTRVWW.js');
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
exports.buildToolExecuteBaseEnvelope = _chunkKCCOQ5G5js.buildToolExecuteBaseEnvelope; exports.extractToolExecutionWarningMessages = _chunkKCCOQ5G5js.extractToolExecutionWarningMessages; exports.printCompactToolContract = _chunkKCCOQ5G5js.printCompactToolContract; exports.printMonitorTypeContract = _chunkKCCOQ5G5js.printMonitorTypeContract; exports.registerToolsCommands = _chunkKCCOQ5G5js.registerToolsCommands; exports.seedToolListScript = _chunkKCCOQ5G5js.seedToolListScript;
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
runAutomaticUpdatePlan,
|
|
8
8
|
runUpdateCommand,
|
|
9
9
|
runUpdatePlan
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-FJZILBL7.mjs";
|
|
11
|
+
import "./chunk-FGLKOWSC.mjs";
|
|
12
|
+
import "./chunk-MGXEUZHL.mjs";
|
|
13
|
+
import "./chunk-3BMLICF7.mjs";
|
|
14
|
+
import "./chunk-QEYHTIV4.mjs";
|
|
15
|
+
import "./chunk-QAJAJPKK.mjs";
|
|
16
|
+
import "./chunk-RY4IVOU3.mjs";
|
|
17
17
|
import "./chunk-4QF2K7TM.mjs";
|
|
18
18
|
import "./chunk-DLIRSHV6.mjs";
|
|
19
19
|
import "./chunk-HBL4PM5Q.mjs";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-T3MVIPHG.mjs";
|
|
21
21
|
import "./chunk-WZYKRD7T.mjs";
|
|
22
22
|
import "./chunk-KRD6H754.mjs";
|
|
23
23
|
export {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkCRYOUPEBjs = require('./chunk-CRYOUPEB.js');
|
|
11
|
+
require('./chunk-SAZFZQRI.js');
|
|
12
|
+
require('./chunk-O6QOMHCH.js');
|
|
13
|
+
require('./chunk-SCIR5JXW.js');
|
|
14
|
+
require('./chunk-TNMBPMMC.js');
|
|
15
|
+
require('./chunk-5MDIZX7M.js');
|
|
16
|
+
require('./chunk-YQDUODZW.js');
|
|
17
|
+
require('./chunk-ALJJRZNJ.js');
|
|
18
|
+
require('./chunk-XNYIZMNQ.js');
|
|
19
|
+
require('./chunk-DIAWYWT5.js');
|
|
20
|
+
require('./chunk-5FDKJQZE.js');
|
|
21
|
+
require('./chunk-OG64RBAC.js');
|
|
22
|
+
require('./chunk-COGTRVWW.js');
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.canAutomaticallyApplyUpdatePlan = _chunkCRYOUPEBjs.canAutomaticallyApplyUpdatePlan; exports.compareUpdateVersions = _chunkCRYOUPEBjs.compareUpdateVersions; exports.publishedVersionSupportsPin = _chunkCRYOUPEBjs.publishedVersionSupportsPin; exports.registerUpdateCommand = _chunkCRYOUPEBjs.registerUpdateCommand; exports.resolveUpdatePlan = _chunkCRYOUPEBjs.resolveUpdatePlan; exports.runAutomaticUpdatePlan = _chunkCRYOUPEBjs.runAutomaticUpdatePlan; exports.runUpdateCommand = _chunkCRYOUPEBjs.runUpdateCommand; exports.runUpdatePlan = _chunkCRYOUPEBjs.runUpdatePlan;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-H7HIDGZ7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DeeplineClient
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VZBCEA5S.mjs";
|
|
10
10
|
import "./chunk-L2VKAASU.mjs";
|
|
11
11
|
import "./chunk-FAG4DFUC.mjs";
|
|
12
12
|
import "./chunk-EIMG75BT.mjs";
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
printJson,
|
|
17
17
|
shouldEmitJson,
|
|
18
18
|
sleep
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-QAJAJPKK.mjs";
|
|
20
|
+
import "./chunk-RY4IVOU3.mjs";
|
|
21
21
|
import "./chunk-4QF2K7TM.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
23
|
import "./chunk-HBL4PM5Q.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-T3MVIPHG.mjs";
|
|
25
25
|
import "./chunk-WZYKRD7T.mjs";
|
|
26
26
|
import "./chunk-KRD6H754.mjs";
|
|
27
27
|
|
|
@@ -1700,7 +1700,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1700
1700
|
await writeFile(file, compiled.sourceCode, "utf8");
|
|
1701
1701
|
let published = false;
|
|
1702
1702
|
if (publish) {
|
|
1703
|
-
const { handlePlayPublish } = await import("./play-
|
|
1703
|
+
const { handlePlayPublish } = await import("./play-IQQ57L7Z.mjs");
|
|
1704
1704
|
const code = await handlePlayPublish([file]);
|
|
1705
1705
|
if (code !== 0) {
|
|
1706
1706
|
return {
|
|
@@ -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 _chunkMDJPEGVNjs = require('./chunk-MDJPEGVN.js');
|
|
10
10
|
require('./chunk-E4CABWXL.js');
|
|
11
11
|
require('./chunk-JKVRBCZL.js');
|
|
12
12
|
require('./chunk-KXMNM4AQ.js');
|
|
@@ -16,12 +16,12 @@ require('./chunk-XDVT3GOM.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
19
|
+
var _chunk5MDIZX7Mjs = require('./chunk-5MDIZX7M.js');
|
|
20
|
+
require('./chunk-YQDUODZW.js');
|
|
21
21
|
require('./chunk-ALJJRZNJ.js');
|
|
22
22
|
require('./chunk-XNYIZMNQ.js');
|
|
23
23
|
require('./chunk-DIAWYWT5.js');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-5FDKJQZE.js');
|
|
25
25
|
require('./chunk-OG64RBAC.js');
|
|
26
26
|
require('./chunk-COGTRVWW.js');
|
|
27
27
|
|
|
@@ -1627,18 +1627,18 @@ function noticeToStderr(command) {
|
|
|
1627
1627
|
);
|
|
1628
1628
|
}
|
|
1629
1629
|
function emitPassThrough(command, payload, options) {
|
|
1630
|
-
const json =
|
|
1630
|
+
const json = _chunk5MDIZX7Mjs.shouldEmitJson.call(void 0, options.json);
|
|
1631
1631
|
const deprecation = migrationDeprecation(command);
|
|
1632
1632
|
if (json) {
|
|
1633
1633
|
const enriched = payload && typeof payload === "object" && !Array.isArray(payload) ? { ...payload, deprecation } : { result: payload, deprecation };
|
|
1634
|
-
|
|
1634
|
+
_chunk5MDIZX7Mjs.printJson.call(void 0, enriched);
|
|
1635
1635
|
return;
|
|
1636
1636
|
}
|
|
1637
|
-
|
|
1637
|
+
_chunk5MDIZX7Mjs.printJson.call(void 0, payload);
|
|
1638
1638
|
noticeToStderr(command);
|
|
1639
1639
|
}
|
|
1640
1640
|
function client() {
|
|
1641
|
-
return new (0,
|
|
1641
|
+
return new (0, _chunkMDJPEGVNjs.DeeplineClient)();
|
|
1642
1642
|
}
|
|
1643
1643
|
function clientWithTimeout(timeoutSeconds) {
|
|
1644
1644
|
if (!timeoutSeconds) return client();
|
|
@@ -1646,7 +1646,7 @@ function clientWithTimeout(timeoutSeconds) {
|
|
|
1646
1646
|
if (!Number.isFinite(seconds) || seconds <= 0) {
|
|
1647
1647
|
throw new Error("--timeout must be a positive number of seconds.");
|
|
1648
1648
|
}
|
|
1649
|
-
return new (0,
|
|
1649
|
+
return new (0, _chunkMDJPEGVNjs.DeeplineClient)({ timeout: seconds * 1e3 });
|
|
1650
1650
|
}
|
|
1651
1651
|
function readStatus(payload) {
|
|
1652
1652
|
if (!payload || typeof payload !== "object") return null;
|
|
@@ -1700,7 +1700,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1700
1700
|
await _promises.writeFile.call(void 0, file, compiled.sourceCode, "utf8");
|
|
1701
1701
|
let published = false;
|
|
1702
1702
|
if (publish) {
|
|
1703
|
-
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
1703
|
+
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-32L7EQN4.js")));
|
|
1704
1704
|
const code = await handlePlayPublish([file]);
|
|
1705
1705
|
if (code !== 0) {
|
|
1706
1706
|
return {
|
|
@@ -1775,10 +1775,10 @@ async function handleTransform(id, options) {
|
|
|
1775
1775
|
for (const workflowId of ids) {
|
|
1776
1776
|
outcomes.push(await transformOne(api, workflowId, outDir, publish));
|
|
1777
1777
|
}
|
|
1778
|
-
|
|
1778
|
+
_chunk5MDIZX7Mjs.printCommandEnvelope.call(void 0,
|
|
1779
1779
|
{ outcomes, deprecation: null },
|
|
1780
1780
|
{
|
|
1781
|
-
json:
|
|
1781
|
+
json: _chunk5MDIZX7Mjs.shouldEmitJson.call(void 0, options.json),
|
|
1782
1782
|
text: renderTransformReport(outcomes)
|
|
1783
1783
|
}
|
|
1784
1784
|
);
|
|
@@ -1799,11 +1799,11 @@ async function handleDelete(id, options) {
|
|
|
1799
1799
|
}
|
|
1800
1800
|
async function handleDisable(id, options) {
|
|
1801
1801
|
const result = await client().disableWorkflow(id);
|
|
1802
|
-
|
|
1802
|
+
_chunk5MDIZX7Mjs.printJson.call(void 0, result);
|
|
1803
1803
|
}
|
|
1804
1804
|
async function handleEnable(id, options) {
|
|
1805
1805
|
const result = await client().enableWorkflow(id);
|
|
1806
|
-
|
|
1806
|
+
_chunk5MDIZX7Mjs.printJson.call(void 0, result);
|
|
1807
1807
|
}
|
|
1808
1808
|
async function handleApply(options) {
|
|
1809
1809
|
const body = await readJsonOption(options.payload, options.file);
|
|
@@ -1868,7 +1868,7 @@ async function handleTail(id, runId, options) {
|
|
|
1868
1868
|
if (status && TERMINAL_RUN_STATUSES.has(status) || Date.now() > deadline) {
|
|
1869
1869
|
return;
|
|
1870
1870
|
}
|
|
1871
|
-
await
|
|
1871
|
+
await _chunk5MDIZX7Mjs.sleep.call(void 0, intervalMs);
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
1874
|
function registerWorkflowCommands(program) {
|