deepline 0.3.428 → 0.3.430
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/integration-contracts/billing-entitlements.ts +22 -0
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +11 -8
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +2 -2
- package/dist/cli/auth-OAK76MZS.js +40 -0
- package/dist/cli/{auth-ZABHDJT3.mjs → auth-TQ6HZBPI.mjs} +4 -4
- package/dist/cli/{billing-AKHWV3MV.mjs → billing-XJXA44X5.mjs} +10 -5
- package/dist/cli/{billing-FUG6Q7SL.js → billing-XTJCA6KF.js} +79 -74
- package/dist/cli/{chunk-ACGNIHLS.js → chunk-2TWBFXWH.js} +20 -20
- package/dist/cli/{chunk-ZRZC6WWR.mjs → chunk-2VOTRAHO.mjs} +1 -1
- package/dist/cli/{chunk-EPHQBWED.js → chunk-4NVJEG6K.js} +26 -26
- package/dist/cli/{chunk-PQY6VEEL.mjs → chunk-4R545AO3.mjs} +2 -2
- package/dist/cli/{chunk-2LLDHR5C.mjs → chunk-AHUSKKDG.mjs} +1 -1
- package/dist/cli/{chunk-TZZ73X6X.mjs → chunk-AUGEGDPO.mjs} +2 -2
- package/dist/cli/{chunk-YHRS6XTB.js → chunk-BBWDU3D5.js} +2 -2
- package/dist/cli/{chunk-MCGTLMDV.js → chunk-CSBYEPJI.js} +2 -2
- package/dist/cli/{chunk-D6UO4WN3.js → chunk-E546F74V.js} +79 -79
- package/dist/cli/{chunk-6E4IYB3I.js → chunk-EKT4FLA4.js} +6 -6
- package/dist/cli/{chunk-S5M6ZEKW.mjs → chunk-EM744RIR.mjs} +3 -3
- package/dist/cli/{chunk-6AX4NTKV.mjs → chunk-FE34BAP6.mjs} +2 -2
- package/dist/cli/{chunk-DLCQIK5H.js → chunk-FZ73XHSU.js} +10 -10
- package/dist/cli/{chunk-QATVL6X3.js → chunk-JKOUIBTD.js} +16 -16
- package/dist/cli/{chunk-JFXX4SQV.js → chunk-JMTJEPWU.js} +8 -8
- package/dist/cli/{chunk-D33GOTFE.mjs → chunk-KKXF6L3D.mjs} +4 -4
- package/dist/cli/{chunk-PA6TQR75.js → chunk-LNQEBCTW.js} +4 -4
- package/dist/cli/{chunk-Z7URKNIZ.mjs → chunk-OKCYUSQW.mjs} +1 -1
- package/dist/cli/{chunk-2BQUML3X.mjs → chunk-PH2FUNEJ.mjs} +2 -2
- package/dist/cli/{chunk-3YUXZMTE.js → chunk-PTGJD7EH.js} +8 -8
- package/dist/cli/{chunk-XM52HE7B.mjs → chunk-QJQDK4BQ.mjs} +3 -3
- package/dist/cli/{chunk-FHKQTCC4.mjs → chunk-RB3QFQMO.mjs} +1 -1
- package/dist/cli/{chunk-MBHTTATW.mjs → chunk-SV7N6OLB.mjs} +2 -2
- package/dist/cli/{chunk-6S6WXN63.js → chunk-T6S3GT5F.js} +1 -1
- package/dist/cli/{chunk-NNZFHUV3.mjs → chunk-TIUSTHSJ.mjs} +3 -3
- package/dist/cli/{chunk-4QNMO7DK.js → chunk-TTRFTUQ3.js} +2 -2
- package/dist/cli/{chunk-XQY5BDGY.js → chunk-UIDYVJYW.js} +6 -6
- package/dist/cli/{chunk-IQUHUR72.mjs → chunk-V35KYXHC.mjs} +1 -1
- package/dist/cli/{chunk-3J7FZHJA.mjs → chunk-WHEH2GEA.mjs} +1 -1
- package/dist/cli/{chunk-EU2VT52L.js → chunk-WPGJ3XNI.js} +52 -52
- package/dist/cli/{chunk-5FJG4APE.mjs → chunk-YAXZQFVM.mjs} +5 -5
- package/dist/cli/{chunk-SAY6IYJA.mjs → chunk-YOVCI5LP.mjs} +8 -8
- package/dist/cli/{chunk-F5HARRY4.js → chunk-ZLVQPXMG.js} +35 -35
- package/dist/cli/{chunk-UJ3HL3W2.js → chunk-ZNC65U6P.js} +50 -50
- package/dist/cli/{csv-A5GRNUFM.js → csv-FSO52YQ2.js} +12 -12
- package/dist/cli/{csv-IMRHD3VV.mjs → csv-QPV7472B.mjs} +3 -3
- package/dist/cli/{db-XKGAEZPP.mjs → db-U7BFCR7L.mjs} +4 -4
- package/dist/cli/{db-6W2XVIWB.js → db-W45QQTMX.js} +25 -25
- package/dist/cli/{describe-226ZOVOL.mjs → describe-Q27T6S5D.mjs} +12 -12
- package/dist/cli/{describe-QVHO24JP.js → describe-WA3X2FS4.js} +16 -16
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-35YPXQ3R.mjs → executions-KSUQC3PR.mjs} +4 -4
- package/dist/cli/{executions-6JTC3A4Z.js → executions-R4PNHW4I.js} +6 -6
- package/dist/cli/{feedback-UP2MK5EU.js → feedback-SEBEU3ON.js} +7 -7
- package/dist/cli/{feedback-M6WLA3CD.mjs → feedback-XV6CPH3L.mjs} +3 -3
- package/dist/cli/git-AHISFYL3.js +24 -0
- package/dist/cli/{git-7EPDO7IK.mjs → git-JA3Z3VSQ.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-CSHWJ5PI.js → legacy-noops-I5BSQYD5.js} +7 -7
- package/dist/cli/{legacy-noops-PUN3XKGB.mjs → legacy-noops-IFFVKM6D.mjs} +4 -4
- package/dist/cli/{monitors-OADIHUZT.mjs → monitors-2HUBFPZ4.mjs} +4 -4
- package/dist/cli/{monitors-I4LEOVPV.js → monitors-BED4ZHQX.js} +84 -84
- package/dist/cli/{org-XCQD6GYA.mjs → org-7KHAOMG3.mjs} +4 -4
- package/dist/cli/{org-EVRPU7YU.js → org-KBAWY5VZ.js} +64 -64
- package/dist/cli/{play-AOSMIPDJ.js → play-VVFKKNQP.js} +301 -301
- package/dist/cli/{play-FFGDT6V3.mjs → play-ZOVQLLBH.mjs} +11 -11
- package/dist/cli/{providers-LZ7HI3ZS.js → providers-J72IJJ2Q.js} +7 -7
- package/dist/cli/{providers-NMK7TKSJ.mjs → providers-UCKMIGIQ.mjs} +4 -4
- package/dist/cli/{quickstart-IKNDABRN.js → quickstart-3PUK5N7Z.js} +5 -5
- package/dist/cli/{quickstart-4DGYWMTT.mjs → quickstart-JV4ILEMI.mjs} +3 -3
- package/dist/cli/{search-4H4Y4HWQ.mjs → search-26VHUJNX.mjs} +5 -5
- package/dist/cli/search-ZG77YAQ6.js +30 -0
- package/dist/cli/{secrets-VUNWQ6EH.js → secrets-QDOQQ7UK.js} +13 -13
- package/dist/cli/{secrets-BFOXOQRA.mjs → secrets-XWSUTLI5.mjs} +4 -4
- package/dist/cli/{sessions-UOE3SVYP.mjs → sessions-2LNUKAAG.mjs} +4 -4
- package/dist/cli/{sessions-LEQFHXIK.js → sessions-XKBVY4GN.js} +5 -5
- package/dist/cli/{settings-OS24T5VT.js → settings-ST2VREJE.js} +75 -75
- package/dist/cli/{settings-QHEY5BCS.mjs → settings-YRI2IOGN.mjs} +8 -8
- package/dist/cli/{setup-R7LZOV43.mjs → setup-552JZJI3.mjs} +7 -7
- package/dist/cli/{setup-LC3QKIC7.js → setup-VPRXUVJL.js} +42 -42
- package/dist/cli/skills-UDMRMI6C.js +29 -0
- package/dist/cli/{skills-YRGVE2TH.mjs → skills-UFRAQLOT.mjs} +5 -5
- package/dist/cli/{tools-FJ4O7OFR.mjs → tools-27ZL5GVS.mjs} +12 -12
- package/dist/cli/tools-SR2CN3VP.js +44 -0
- package/dist/cli/update-HS45ZLBY.js +31 -0
- package/dist/cli/{update-ISWK43K2.mjs → update-T5PK5V3I.mjs} +7 -7
- package/dist/cli/{workflow-U2U5NA4B.js → workflow-GO2BBGKL.js} +15 -15
- package/dist/cli/{workflow-N4CTCDSS.mjs → workflow-ZJO2FFWQ.mjs} +5 -5
- package/dist/{client-ChLTwy9x.d.mts → client-BuCrTjW6.d.mts} +1 -1
- package/dist/{client---03YXeB.d.ts → client-C0VoQB5b.d.ts} +1 -1
- package/dist/{compiler-manifest-DaFuA1ki.d.mts → compiler-manifest-D0Gl9gLn.d.mts} +22 -0
- package/dist/{compiler-manifest-DaFuA1ki.d.ts → compiler-manifest-D0Gl9gLn.d.ts} +22 -0
- package/dist/{index-0yS9ihly.d.mts → index-Bub1jys9.d.mts} +1 -1
- package/dist/{index-CRAScKPg.d.ts → index-VyHDAshm.d.ts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +86 -86
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +1 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-JNCOOTY4.js +0 -40
- package/dist/cli/git-BZOIQ4FW.js +0 -24
- package/dist/cli/search-DFZO2D3W.js +0 -30
- package/dist/cli/skills-CX45Z2JV.js +0 -29
- package/dist/cli/tools-2X5ZZDT3.js +0 -44
- package/dist/cli/update-OSTL25HV.js +0 -31
|
@@ -6,22 +6,22 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkZNC65U6Pjs = require('./chunk-ZNC65U6P.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkTTRFTUQ3js = require('./chunk-TTRFTUQ3.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkZLVQPXMGjs = require('./chunk-ZLVQPXMG.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkWPGJ3XNIjs = require('./chunk-WPGJ3XNI.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkUIDYVJYWjs = require('./chunk-UIDYVJYW.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -31,11 +31,11 @@ var _chunkXQY5BDGYjs = require('./chunk-XQY5BDGY.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkLNQEBCTWjs = require('./chunk-LNQEBCTW.js');
|
|
35
35
|
require('./chunk-NPBJI7RE.js');
|
|
36
36
|
require('./chunk-XNYIZMNQ.js');
|
|
37
37
|
require('./chunk-PPDBRJRW.js');
|
|
38
|
-
require('./chunk-
|
|
38
|
+
require('./chunk-T6S3GT5F.js');
|
|
39
39
|
require('./chunk-OG64RBAC.js');
|
|
40
40
|
|
|
41
41
|
|
|
@@ -290,7 +290,7 @@ function normalizeScope(value) {
|
|
|
290
290
|
}
|
|
291
291
|
function resolveScopeRoot(scope) {
|
|
292
292
|
if (scope === "global") return null;
|
|
293
|
-
const target =
|
|
293
|
+
const target = _chunkLNQEBCTWjs.resolveProjectPinTarget.call(void 0, );
|
|
294
294
|
if (!target.ok) {
|
|
295
295
|
throw new Error(
|
|
296
296
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -307,7 +307,7 @@ function openSetupAuthorization(authorizationUrl, options = {}) {
|
|
|
307
307
|
const url = authorizationUrl.trim();
|
|
308
308
|
if (!url) return "failed";
|
|
309
309
|
if (options.open) return options.open(url);
|
|
310
|
-
const result =
|
|
310
|
+
const result = _chunkUIDYVJYWjs.openInBrowser.call(void 0, url, { deduplicate: false });
|
|
311
311
|
return result === "opened" ? "opened" : "failed";
|
|
312
312
|
}
|
|
313
313
|
function buildPendingAuthorizationOutput(input) {
|
|
@@ -349,7 +349,7 @@ function buildPendingAuthorizationOutput(input) {
|
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
351
|
function setupStatePath(baseUrl, scope, root) {
|
|
352
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0,
|
|
352
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0, _chunkLNQEBCTWjs.sdkCliStateDirPath.call(void 0, baseUrl), "setup.json");
|
|
353
353
|
}
|
|
354
354
|
async function captureStdout(run) {
|
|
355
355
|
let stdout = "";
|
|
@@ -392,7 +392,7 @@ function isNpmManagedDeeplinePath(path) {
|
|
|
392
392
|
}
|
|
393
393
|
function removeKnownLegacyPaths(baseUrl) {
|
|
394
394
|
return CliInstallation.forUser({
|
|
395
|
-
baseUrlSlug:
|
|
395
|
+
baseUrlSlug: _chunkLNQEBCTWjs.baseUrlSlug.call(void 0, baseUrl),
|
|
396
396
|
home: _os.homedir.call(void 0, )
|
|
397
397
|
}).removeRetiredArtifacts();
|
|
398
398
|
}
|
|
@@ -430,7 +430,7 @@ function resolvePersistentGlobalCommand(dependencies = {}) {
|
|
|
430
430
|
const homebrewCommand = pathClis.find(isHomebrewFormulaCommand);
|
|
431
431
|
if (homebrewCommand) return homebrewCommand;
|
|
432
432
|
for (const manager of ["npm", "pnpm"]) {
|
|
433
|
-
const plan =
|
|
433
|
+
const plan = _chunkWPGJ3XNIjs.resolveShellSpawn.call(void 0,
|
|
434
434
|
manager,
|
|
435
435
|
manager === "npm" ? ["prefix", "-g"] : ["bin", "-g"],
|
|
436
436
|
platform
|
|
@@ -499,7 +499,7 @@ function writeSetupState(input) {
|
|
|
499
499
|
{
|
|
500
500
|
schemaVersion: 2,
|
|
501
501
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
502
|
-
cliVersion:
|
|
502
|
+
cliVersion: _chunkLNQEBCTWjs.SDK_VERSION,
|
|
503
503
|
host: input.baseUrl,
|
|
504
504
|
scope: input.scope,
|
|
505
505
|
root: input.root,
|
|
@@ -534,8 +534,8 @@ function failSetupPhase(phases, phase, code) {
|
|
|
534
534
|
}
|
|
535
535
|
function rollbackCommand(scope, root) {
|
|
536
536
|
const prefix = scope === "local" && root ? ` --prefix ${JSON.stringify(_path.join.call(void 0, root, ".deepline", "runtime"))}` : "";
|
|
537
|
-
const allowScriptsFlag =
|
|
538
|
-
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${
|
|
537
|
+
const allowScriptsFlag = _chunkTTRFTUQ3js.npmSupportsAllowScripts.call(void 0, _chunkTTRFTUQ3js.readNpmVersion.call(void 0, process.env)) ? " --allow-scripts=esbuild" : "";
|
|
538
|
+
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${_chunkLNQEBCTWjs.SDK_VERSION}`;
|
|
539
539
|
}
|
|
540
540
|
function setupResumeCommand(baseUrl, scope, orgName) {
|
|
541
541
|
const hostPrefix = baseUrl === "https://code.deepline.com" ? "" : `DEEPLINE_HOST_URL=${JSON.stringify(baseUrl)} `;
|
|
@@ -559,7 +559,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
559
559
|
status: "failed"
|
|
560
560
|
});
|
|
561
561
|
const retry = setupRetry(input);
|
|
562
|
-
|
|
562
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0,
|
|
563
563
|
{
|
|
564
564
|
ok: false,
|
|
565
565
|
status: "failed",
|
|
@@ -581,7 +581,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
581
581
|
async function readAuthStatus(authScope) {
|
|
582
582
|
try {
|
|
583
583
|
const captured = await captureStdout(
|
|
584
|
-
() =>
|
|
584
|
+
() => _chunkZNC65U6Pjs.handleStatus.call(void 0, [
|
|
585
585
|
"--json",
|
|
586
586
|
...authScope ? ["--auth-scope", authScope] : []
|
|
587
587
|
])
|
|
@@ -612,14 +612,14 @@ function reportSetupAuthStatusFailure(input) {
|
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
614
|
function buildDoctorAssessment(input) {
|
|
615
|
-
const skillsStatePath =
|
|
615
|
+
const skillsStatePath = _chunkZLVQPXMGjs.skillsStatePathForScope.call(void 0,
|
|
616
616
|
input.baseUrl,
|
|
617
617
|
input.scope,
|
|
618
618
|
input.root
|
|
619
619
|
);
|
|
620
620
|
const skillsState = parseCapturedJson(safeRead(skillsStatePath));
|
|
621
|
-
const apiKey = input.scope === "local" ?
|
|
622
|
-
const projectAuth = input.scope === "local" && apiKey ?
|
|
621
|
+
const apiKey = input.scope === "local" ? _chunkLNQEBCTWjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkLNQEBCTWjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
622
|
+
const projectAuth = input.scope === "local" && apiKey ? _chunkLNQEBCTWjs.getResolvedProjectAuthSource.call(void 0, input.baseUrl, apiKey) : null;
|
|
623
623
|
const connected = _optionalChain([input, 'access', _4 => _4.authStatus, 'access', _5 => _5.payload, 'optionalAccess', _6 => _6.connected]) === true;
|
|
624
624
|
const authScopeOk = input.scope === "local" ? Boolean(projectAuth) : Boolean(apiKey && !projectAuth);
|
|
625
625
|
const skillsOk = _optionalChain([skillsState, 'optionalAccess', _7 => _7.scope]) === input.scope && typeof skillsState.skillsVersion === "string" && Array.isArray(skillsState.agents) && skillsState.agents.length > 0;
|
|
@@ -633,7 +633,7 @@ function buildDoctorAssessment(input) {
|
|
|
633
633
|
const checks = {
|
|
634
634
|
cli: {
|
|
635
635
|
ok: Boolean(cliPath) && cliScopeOk,
|
|
636
|
-
version:
|
|
636
|
+
version: _chunkLNQEBCTWjs.SDK_VERSION,
|
|
637
637
|
path: cliPath,
|
|
638
638
|
scope: input.scope
|
|
639
639
|
},
|
|
@@ -667,7 +667,7 @@ async function runDoctorCommand(options) {
|
|
|
667
667
|
scope = normalizeScope(options.scope);
|
|
668
668
|
root = resolveScopeRoot(scope);
|
|
669
669
|
} catch (error) {
|
|
670
|
-
|
|
670
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0,
|
|
671
671
|
{
|
|
672
672
|
ok: false,
|
|
673
673
|
status: "failed",
|
|
@@ -679,7 +679,7 @@ async function runDoctorCommand(options) {
|
|
|
679
679
|
);
|
|
680
680
|
return 2;
|
|
681
681
|
}
|
|
682
|
-
const baseUrl =
|
|
682
|
+
const baseUrl = _chunkLNQEBCTWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
683
683
|
const authScope = authScopeForSetup(scope);
|
|
684
684
|
const authStatus = await readAuthStatus(authScope);
|
|
685
685
|
const { ok, checks } = buildDoctorAssessment({
|
|
@@ -689,7 +689,7 @@ async function runDoctorCommand(options) {
|
|
|
689
689
|
authStatus
|
|
690
690
|
});
|
|
691
691
|
const gettingStarted = _chunkEBU7LQ64js.deeplineGtmGettingStartedPayload.call(void 0, );
|
|
692
|
-
|
|
692
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0,
|
|
693
693
|
{
|
|
694
694
|
ok,
|
|
695
695
|
status: ok ? "complete" : "failed",
|
|
@@ -734,7 +734,7 @@ function pendingResult(input) {
|
|
|
734
734
|
input.orgName
|
|
735
735
|
)
|
|
736
736
|
});
|
|
737
|
-
|
|
737
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0,
|
|
738
738
|
{
|
|
739
739
|
ok: true,
|
|
740
740
|
status: "authorization_pending",
|
|
@@ -771,7 +771,7 @@ function pendingResult(input) {
|
|
|
771
771
|
async function runSetupCommand(options) {
|
|
772
772
|
let orgName = _optionalChain([options, 'access', _19 => _19.orgName, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
|
|
773
773
|
if (options.orgName !== void 0 && !orgName) {
|
|
774
|
-
|
|
774
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0,
|
|
775
775
|
{
|
|
776
776
|
ok: false,
|
|
777
777
|
status: "failed",
|
|
@@ -789,7 +789,7 @@ async function runSetupCommand(options) {
|
|
|
789
789
|
scope = normalizeScope(options.scope);
|
|
790
790
|
root = resolveScopeRoot(scope);
|
|
791
791
|
} catch (error) {
|
|
792
|
-
|
|
792
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0,
|
|
793
793
|
{
|
|
794
794
|
ok: false,
|
|
795
795
|
status: "failed",
|
|
@@ -806,7 +806,7 @@ async function runSetupCommand(options) {
|
|
|
806
806
|
);
|
|
807
807
|
return 2;
|
|
808
808
|
}
|
|
809
|
-
const baseUrl =
|
|
809
|
+
const baseUrl = _chunkLNQEBCTWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
810
810
|
const previousState = readSetupState({ baseUrl, scope, root });
|
|
811
811
|
const { resumed, phases } = selectSetupProgress(previousState);
|
|
812
812
|
if (phases.cli.status !== "complete") {
|
|
@@ -893,7 +893,7 @@ async function runSetupCommand(options) {
|
|
|
893
893
|
process.stderr.write(`Installing Deepline skills (${scope})...
|
|
894
894
|
`);
|
|
895
895
|
const skills = await captureStdout(
|
|
896
|
-
() =>
|
|
896
|
+
() => _chunkZLVQPXMGjs.runSkillsCommand.call(void 0, { scope, json: true })
|
|
897
897
|
);
|
|
898
898
|
skillsPayload = parseCapturedJson(skills.stdout);
|
|
899
899
|
if (skills.exitCode !== 0) {
|
|
@@ -934,11 +934,11 @@ async function runSetupCommand(options) {
|
|
|
934
934
|
});
|
|
935
935
|
} else {
|
|
936
936
|
skillsPayload = parseCapturedJson(
|
|
937
|
-
safeRead(
|
|
937
|
+
safeRead(_chunkZLVQPXMGjs.skillsStatePathForScope.call(void 0, baseUrl, scope, root))
|
|
938
938
|
);
|
|
939
939
|
}
|
|
940
940
|
const authScope = authScopeForSetup(scope);
|
|
941
|
-
const pendingAtStart =
|
|
941
|
+
const pendingAtStart = _chunkZNC65U6Pjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
942
942
|
const replacingPendingClaim = Boolean(
|
|
943
943
|
pendingAtStart && orgName && _optionalChain([pendingAtStart, 'access', _24 => _24.orgName, 'optionalAccess', _25 => _25.toLowerCase, 'call', _26 => _26()]) !== orgName.toLowerCase()
|
|
944
944
|
);
|
|
@@ -965,9 +965,9 @@ async function runSetupCommand(options) {
|
|
|
965
965
|
const workspace = asRecord(auth.payload.workspace);
|
|
966
966
|
return typeof _optionalChain([workspace, 'optionalAccess', _29 => _29.name]) === "string" && workspace.name.trim().toLowerCase() === orgName.toLowerCase();
|
|
967
967
|
};
|
|
968
|
-
let pending = replacingPendingClaim ? null :
|
|
968
|
+
let pending = replacingPendingClaim ? null : _chunkZNC65U6Pjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
969
969
|
if (replacingPendingClaim && connectedToRequestedWorkspace()) {
|
|
970
|
-
|
|
970
|
+
_chunkZNC65U6Pjs.clearPendingClaim.call(void 0, baseUrl, authScope);
|
|
971
971
|
}
|
|
972
972
|
let authClaimSource = "none";
|
|
973
973
|
if (pending || !connectedToRequestedWorkspace()) {
|
|
@@ -976,7 +976,7 @@ async function runSetupCommand(options) {
|
|
|
976
976
|
if (!pending) {
|
|
977
977
|
process.stderr.write("Starting Deepline browser authorization...\n");
|
|
978
978
|
const registered = await captureStdout(
|
|
979
|
-
() =>
|
|
979
|
+
() => _chunkZNC65U6Pjs.handleRegister.call(void 0, [
|
|
980
980
|
"--wait",
|
|
981
981
|
"no",
|
|
982
982
|
"--auth-scope",
|
|
@@ -999,7 +999,7 @@ async function runSetupCommand(options) {
|
|
|
999
999
|
extra: { detail: parseCapturedJson(registered.stdout), authScope }
|
|
1000
1000
|
});
|
|
1001
1001
|
}
|
|
1002
|
-
pending =
|
|
1002
|
+
pending = _chunkZNC65U6Pjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1003
1003
|
if (!_optionalChain([pending, 'optionalAccess', _30 => _30.claimUrl])) {
|
|
1004
1004
|
return reportSetupPhaseFailure({
|
|
1005
1005
|
baseUrl,
|
|
@@ -1035,7 +1035,7 @@ async function runSetupCommand(options) {
|
|
|
1035
1035
|
"Waiting up to five minutes for Deepline approval...\n"
|
|
1036
1036
|
);
|
|
1037
1037
|
const waited = await captureStdout(
|
|
1038
|
-
() =>
|
|
1038
|
+
() => _chunkZNC65U6Pjs.handleWait.call(void 0, ["--timeout", "300", "--auth-scope", authScope])
|
|
1039
1039
|
);
|
|
1040
1040
|
auth = await readAuthStatus(authScope);
|
|
1041
1041
|
const authFailure = reportSetupAuthStatusFailure({
|
|
@@ -1049,7 +1049,7 @@ async function runSetupCommand(options) {
|
|
|
1049
1049
|
json: options.json
|
|
1050
1050
|
});
|
|
1051
1051
|
if (authFailure !== null) return authFailure;
|
|
1052
|
-
if (waited.exitCode ===
|
|
1052
|
+
if (waited.exitCode === _chunkZNC65U6Pjs.EXIT_WORKSPACE_MISMATCH) {
|
|
1053
1053
|
return reportSetupPhaseFailure({
|
|
1054
1054
|
baseUrl,
|
|
1055
1055
|
scope,
|
|
@@ -1057,7 +1057,7 @@ async function runSetupCommand(options) {
|
|
|
1057
1057
|
phases,
|
|
1058
1058
|
phase: "auth",
|
|
1059
1059
|
code: "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT",
|
|
1060
|
-
exitCode:
|
|
1060
|
+
exitCode: _chunkZNC65U6Pjs.EXIT_WORKSPACE_MISMATCH,
|
|
1061
1061
|
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.`,
|
|
1062
1062
|
orgName,
|
|
1063
1063
|
retryAutomatic: false,
|
|
@@ -1066,7 +1066,7 @@ async function runSetupCommand(options) {
|
|
|
1066
1066
|
});
|
|
1067
1067
|
}
|
|
1068
1068
|
if (!connectedToRequestedWorkspace()) {
|
|
1069
|
-
const stillPending =
|
|
1069
|
+
const stillPending = _chunkZNC65U6Pjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1070
1070
|
if (_optionalChain([stillPending, 'optionalAccess', _31 => _31.claimUrl])) {
|
|
1071
1071
|
return pendingResult({
|
|
1072
1072
|
baseUrl,
|
|
@@ -1149,7 +1149,7 @@ async function runSetupCommand(options) {
|
|
|
1149
1149
|
const installedAgents = Array.isArray(_optionalChain([skillsPayload, 'optionalAccess', _38 => _38.agents])) ? skillsPayload.agents.filter(
|
|
1150
1150
|
(agent) => typeof agent === "string"
|
|
1151
1151
|
) : [];
|
|
1152
|
-
await
|
|
1152
|
+
await _chunkZNC65U6Pjs.reportSetupCompleted.call(void 0, {
|
|
1153
1153
|
baseUrl,
|
|
1154
1154
|
authScope,
|
|
1155
1155
|
scope,
|
|
@@ -1160,13 +1160,13 @@ async function runSetupCommand(options) {
|
|
|
1160
1160
|
const apiCheck = asRecord(_optionalChain([doctorChecks, 'optionalAccess', _40 => _40.api]));
|
|
1161
1161
|
const workspaceRecord = asRecord(_optionalChain([apiCheck, 'optionalAccess', _41 => _41.workspace]));
|
|
1162
1162
|
const workspaceName = typeof _optionalChain([workspaceRecord, 'optionalAccess', _42 => _42.name]) === "string" && workspaceRecord.name.trim() ? workspaceRecord.name.trim() : null;
|
|
1163
|
-
|
|
1163
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0,
|
|
1164
1164
|
{
|
|
1165
1165
|
ok: true,
|
|
1166
1166
|
status: "complete",
|
|
1167
1167
|
complete: true,
|
|
1168
1168
|
scope,
|
|
1169
|
-
cliVersion:
|
|
1169
|
+
cliVersion: _chunkLNQEBCTWjs.SDK_VERSION,
|
|
1170
1170
|
agents: installedAgents,
|
|
1171
1171
|
workspace: _nullishCoalesce(_optionalChain([apiCheck, 'optionalAccess', _43 => _43.workspace]), () => ( null)),
|
|
1172
1172
|
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 _chunkZLVQPXMGjs = require('./chunk-ZLVQPXMG.js');
|
|
11
|
+
require('./chunk-WPGJ3XNI.js');
|
|
12
|
+
require('./chunk-UIDYVJYW.js');
|
|
13
|
+
require('./chunk-LNQEBCTW.js');
|
|
14
|
+
require('./chunk-NPBJI7RE.js');
|
|
15
|
+
require('./chunk-XNYIZMNQ.js');
|
|
16
|
+
require('./chunk-PPDBRJRW.js');
|
|
17
|
+
require('./chunk-T6S3GT5F.js');
|
|
18
|
+
require('./chunk-OG64RBAC.js');
|
|
19
|
+
require('./chunk-COGTRVWW.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
exports.buildSkillsPlan = _chunkZLVQPXMGjs.buildSkillsPlan; exports.detectSkillsAgents = _chunkZLVQPXMGjs.detectSkillsAgents; exports.inferActiveSkillsScope = _chunkZLVQPXMGjs.inferActiveSkillsScope; exports.isSkillsPlanCurrent = _chunkZLVQPXMGjs.isSkillsPlanCurrent; exports.registerSkillsCommand = _chunkZLVQPXMGjs.registerSkillsCommand; exports.runSkillsCommand = _chunkZLVQPXMGjs.runSkillsCommand; exports.skillsStatePathForScope = _chunkZLVQPXMGjs.skillsStatePathForScope; exports.workspaceSkillRootsForAgents = _chunkZLVQPXMGjs.workspaceSkillRootsForAgents;
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
runSkillsCommand,
|
|
8
8
|
skillsStatePathForScope,
|
|
9
9
|
workspaceSkillRootsForAgents
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-TIUSTHSJ.mjs";
|
|
11
|
+
import "./chunk-EM744RIR.mjs";
|
|
12
|
+
import "./chunk-OKCYUSQW.mjs";
|
|
13
|
+
import "./chunk-V35KYXHC.mjs";
|
|
14
14
|
import "./chunk-MAMVGOSC.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
16
|
import "./chunk-E4IXDAZI.mjs";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-WHEH2GEA.mjs";
|
|
18
18
|
import "./chunk-WZYKRD7T.mjs";
|
|
19
19
|
import "./chunk-KRD6H754.mjs";
|
|
20
20
|
export {
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
printMonitorTypeContract,
|
|
6
6
|
registerToolsCommands,
|
|
7
7
|
seedToolListScript
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YOVCI5LP.mjs";
|
|
9
9
|
import "./chunk-KPKU53YO.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-QJQDK4BQ.mjs";
|
|
11
11
|
import "./chunk-LXTSVUZN.mjs";
|
|
12
12
|
import "./chunk-MLJBCS3E.mjs";
|
|
13
13
|
import "./chunk-OVDNJAJN.mjs";
|
|
@@ -15,23 +15,23 @@ 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-RB3QFQMO.mjs";
|
|
19
19
|
import "./chunk-L2VKAASU.mjs";
|
|
20
20
|
import "./chunk-KCC3FKIW.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-
|
|
23
|
+
import "./chunk-KKXF6L3D.mjs";
|
|
24
|
+
import "./chunk-YAXZQFVM.mjs";
|
|
25
|
+
import "./chunk-2VOTRAHO.mjs";
|
|
26
|
+
import "./chunk-TIUSTHSJ.mjs";
|
|
27
|
+
import "./chunk-AHUSKKDG.mjs";
|
|
28
|
+
import "./chunk-EM744RIR.mjs";
|
|
29
|
+
import "./chunk-OKCYUSQW.mjs";
|
|
30
|
+
import "./chunk-V35KYXHC.mjs";
|
|
31
31
|
import "./chunk-MAMVGOSC.mjs";
|
|
32
32
|
import "./chunk-DLIRSHV6.mjs";
|
|
33
33
|
import "./chunk-E4IXDAZI.mjs";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-WHEH2GEA.mjs";
|
|
35
35
|
import "./chunk-WZYKRD7T.mjs";
|
|
36
36
|
import "./chunk-KRD6H754.mjs";
|
|
37
37
|
export {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkE546F74Vjs = require('./chunk-E546F74V.js');
|
|
9
|
+
require('./chunk-GXOQRZXG.js');
|
|
10
|
+
require('./chunk-JMTJEPWU.js');
|
|
11
|
+
require('./chunk-R2QWSSAG.js');
|
|
12
|
+
require('./chunk-VUYUI35Q.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-FZ73XHSU.js');
|
|
19
|
+
require('./chunk-E4CABWXL.js');
|
|
20
|
+
require('./chunk-2H4EY7KH.js');
|
|
21
|
+
require('./chunk-KXMNM4AQ.js');
|
|
22
|
+
require('./chunk-XDVT3GOM.js');
|
|
23
|
+
require('./chunk-2TWBFXWH.js');
|
|
24
|
+
require('./chunk-JKOUIBTD.js');
|
|
25
|
+
require('./chunk-TTRFTUQ3.js');
|
|
26
|
+
require('./chunk-ZLVQPXMG.js');
|
|
27
|
+
require('./chunk-CSBYEPJI.js');
|
|
28
|
+
require('./chunk-WPGJ3XNI.js');
|
|
29
|
+
require('./chunk-UIDYVJYW.js');
|
|
30
|
+
require('./chunk-LNQEBCTW.js');
|
|
31
|
+
require('./chunk-NPBJI7RE.js');
|
|
32
|
+
require('./chunk-XNYIZMNQ.js');
|
|
33
|
+
require('./chunk-PPDBRJRW.js');
|
|
34
|
+
require('./chunk-T6S3GT5F.js');
|
|
35
|
+
require('./chunk-OG64RBAC.js');
|
|
36
|
+
require('./chunk-COGTRVWW.js');
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
exports.buildToolExecuteBaseEnvelope = _chunkE546F74Vjs.buildToolExecuteBaseEnvelope; exports.extractToolExecutionWarningMessages = _chunkE546F74Vjs.extractToolExecutionWarningMessages; exports.printCompactToolContract = _chunkE546F74Vjs.printCompactToolContract; exports.printMonitorTypeContract = _chunkE546F74Vjs.printMonitorTypeContract; exports.registerToolsCommands = _chunkE546F74Vjs.registerToolsCommands; exports.seedToolListScript = _chunkE546F74Vjs.seedToolListScript;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkJKOUIBTDjs = require('./chunk-JKOUIBTD.js');
|
|
11
|
+
require('./chunk-TTRFTUQ3.js');
|
|
12
|
+
require('./chunk-ZLVQPXMG.js');
|
|
13
|
+
require('./chunk-WPGJ3XNI.js');
|
|
14
|
+
require('./chunk-UIDYVJYW.js');
|
|
15
|
+
require('./chunk-LNQEBCTW.js');
|
|
16
|
+
require('./chunk-NPBJI7RE.js');
|
|
17
|
+
require('./chunk-XNYIZMNQ.js');
|
|
18
|
+
require('./chunk-PPDBRJRW.js');
|
|
19
|
+
require('./chunk-T6S3GT5F.js');
|
|
20
|
+
require('./chunk-OG64RBAC.js');
|
|
21
|
+
require('./chunk-COGTRVWW.js');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
exports.canAutomaticallyApplyUpdatePlan = _chunkJKOUIBTDjs.canAutomaticallyApplyUpdatePlan; exports.compareUpdateVersions = _chunkJKOUIBTDjs.compareUpdateVersions; exports.publishedVersionSupportsPin = _chunkJKOUIBTDjs.publishedVersionSupportsPin; exports.registerUpdateCommand = _chunkJKOUIBTDjs.registerUpdateCommand; exports.resolveUpdatePlan = _chunkJKOUIBTDjs.resolveUpdatePlan; exports.runAutomaticUpdatePlan = _chunkJKOUIBTDjs.runAutomaticUpdatePlan; exports.runUpdateCommand = _chunkJKOUIBTDjs.runUpdateCommand; exports.runUpdatePlan = _chunkJKOUIBTDjs.runUpdatePlan;
|
|
@@ -7,16 +7,16 @@ 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-
|
|
10
|
+
} from "./chunk-YAXZQFVM.mjs";
|
|
11
|
+
import "./chunk-2VOTRAHO.mjs";
|
|
12
|
+
import "./chunk-TIUSTHSJ.mjs";
|
|
13
|
+
import "./chunk-EM744RIR.mjs";
|
|
14
|
+
import "./chunk-OKCYUSQW.mjs";
|
|
15
|
+
import "./chunk-V35KYXHC.mjs";
|
|
16
16
|
import "./chunk-MAMVGOSC.mjs";
|
|
17
17
|
import "./chunk-DLIRSHV6.mjs";
|
|
18
18
|
import "./chunk-E4IXDAZI.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-WHEH2GEA.mjs";
|
|
20
20
|
import "./chunk-WZYKRD7T.mjs";
|
|
21
21
|
import "./chunk-KRD6H754.mjs";
|
|
22
22
|
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 _chunkFZ73XHSUjs = require('./chunk-FZ73XHSU.js');
|
|
10
10
|
require('./chunk-E4CABWXL.js');
|
|
11
11
|
require('./chunk-2H4EY7KH.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 _chunkUIDYVJYWjs = require('./chunk-UIDYVJYW.js');
|
|
20
|
+
require('./chunk-LNQEBCTW.js');
|
|
21
21
|
require('./chunk-NPBJI7RE.js');
|
|
22
22
|
require('./chunk-XNYIZMNQ.js');
|
|
23
23
|
require('./chunk-PPDBRJRW.js');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-T6S3GT5F.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 = _chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.printJson.call(void 0, enriched);
|
|
1635
1635
|
return;
|
|
1636
1636
|
}
|
|
1637
|
-
|
|
1637
|
+
_chunkUIDYVJYWjs.printJson.call(void 0, payload);
|
|
1638
1638
|
noticeToStderr(command);
|
|
1639
1639
|
}
|
|
1640
1640
|
function client() {
|
|
1641
|
-
return new (0,
|
|
1641
|
+
return new (0, _chunkFZ73XHSUjs.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, _chunkFZ73XHSUjs.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-VVFKKNQP.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
|
+
_chunkUIDYVJYWjs.printCommandEnvelope.call(void 0,
|
|
1779
1779
|
{ outcomes, deprecation: null },
|
|
1780
1780
|
{
|
|
1781
|
-
json:
|
|
1781
|
+
json: _chunkUIDYVJYWjs.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
|
+
_chunkUIDYVJYWjs.printJson.call(void 0, result);
|
|
1803
1803
|
}
|
|
1804
1804
|
async function handleEnable(id, options) {
|
|
1805
1805
|
const result = await client().enableWorkflow(id);
|
|
1806
|
-
|
|
1806
|
+
_chunkUIDYVJYWjs.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 _chunkUIDYVJYWjs.sleep.call(void 0, intervalMs);
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
1874
|
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-RB3QFQMO.mjs";
|
|
10
10
|
import "./chunk-L2VKAASU.mjs";
|
|
11
11
|
import "./chunk-KCC3FKIW.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-OKCYUSQW.mjs";
|
|
20
|
+
import "./chunk-V35KYXHC.mjs";
|
|
21
21
|
import "./chunk-MAMVGOSC.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
23
|
import "./chunk-E4IXDAZI.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-WHEH2GEA.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-ZOVQLLBH.mjs");
|
|
1704
1704
|
const code = await handlePlayPublish([file]);
|
|
1705
1705
|
if (code !== 0) {
|
|
1706
1706
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { g as PlayCompilerManifest, aj as ToolResultBilling, V as DeeplineError, Y as BillingEntitlements, ao as BillingBenefitValues } from './compiler-manifest-
|
|
2
|
+
import { g as PlayCompilerManifest, aj as ToolResultBilling, V as DeeplineError, Y as BillingEntitlements, ao as BillingBenefitValues } from './compiler-manifest-D0Gl9gLn.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { MonitorFleetDefinition } from './monitor-fleet-contract.mjs';
|
|
5
5
|
|