deepline 0.3.345 → 0.3.347
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/http.ts +14 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/tool-calls.ts +78 -17
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +40 -18
- package/dist/cli/auth-PSMCNXBC.js +31 -0
- package/dist/cli/{auth-YQSQYS2V.mjs → auth-RWP45MJX.mjs} +4 -4
- package/dist/cli/{billing-JRP2ZFMV.js → billing-F6RNSQWW.js} +71 -71
- package/dist/cli/{billing-HA75G3SK.mjs → billing-XPKHI4LF.mjs} +4 -4
- package/dist/cli/{chunk-5QPHJFNN.mjs → chunk-3JJLQQLW.mjs} +2 -2
- package/dist/cli/{chunk-4INBT3OR.js → chunk-3PRBUTJK.js} +240 -231
- package/dist/cli/{chunk-MO6QJPEB.js → chunk-5UJOJKPW.js} +33 -27
- package/dist/cli/{chunk-EEPFLZ7V.js → chunk-723POEH5.js} +279 -244
- package/dist/cli/{chunk-FDH572QX.js → chunk-AGV2VS4U.js} +55 -53
- package/dist/cli/{chunk-EWYAS4WD.mjs → chunk-AOKWJJLP.mjs} +1 -1
- package/dist/cli/{chunk-TAX3OOC6.mjs → chunk-AYR45POY.mjs} +51 -16
- package/dist/cli/{chunk-KXFPDFUO.js → chunk-BUXJSW26.js} +26 -26
- package/dist/cli/{chunk-IT6MAYZ3.js → chunk-EOS73ZCP.js} +8 -8
- package/dist/cli/{chunk-2OTDDG2J.js → chunk-GS2ZSOAQ.js} +2 -2
- package/dist/cli/{chunk-FBUWH67Y.js → chunk-GT7OCAWV.js} +48 -48
- package/dist/cli/{chunk-ITOJRSOU.js → chunk-JB4UKD3B.js} +6 -6
- package/dist/cli/{chunk-UJCHR3J3.js → chunk-L4TXOCCC.js} +1 -1
- package/dist/cli/{chunk-S3JKJL44.mjs → chunk-LH4VHCN5.mjs} +9 -7
- package/dist/cli/{chunk-WRTLSH6R.js → chunk-LPKV6IBM.js} +8 -8
- package/dist/cli/{chunk-DOPNLW2H.mjs → chunk-LTJOC47W.mjs} +16 -7
- package/dist/cli/{chunk-AFNEQ43J.js → chunk-MX53GIOB.js} +40 -1
- package/dist/cli/{chunk-AW2G44QA.mjs → chunk-NU5EU2SH.mjs} +4 -4
- package/dist/cli/{chunk-YGQ4AIK7.mjs → chunk-OS6CZRJE.mjs} +3 -3
- package/dist/cli/{chunk-JDSRPSES.mjs → chunk-PQGDU7B5.mjs} +7 -1
- package/dist/cli/{chunk-URPZWUVN.js → chunk-ROEN4NXY.js} +60 -60
- package/dist/cli/{chunk-NTIWTBEH.mjs → chunk-SFJEAK54.mjs} +1 -1
- package/dist/cli/{chunk-3XKBPPP7.mjs → chunk-U2GPF4SB.mjs} +2 -2
- package/dist/cli/{chunk-N3GUUSDO.mjs → chunk-VRYRVD3F.mjs} +1 -1
- package/dist/cli/{chunk-TDW3RU7S.js → chunk-WX7W76U7.js} +15 -15
- package/dist/cli/{chunk-GGRQBO3S.mjs → chunk-X32ZLEUU.mjs} +2 -2
- package/dist/cli/{chunk-MLO7ZGSH.mjs → chunk-Y6D2JYBR.mjs} +2 -2
- package/dist/cli/{chunk-JOA6IKDE.mjs → chunk-Z6B4UPM4.mjs} +39 -0
- package/dist/cli/{client-VKQGBPZ5.mjs → client-FZJ3RSO3.mjs} +3 -3
- package/dist/cli/client-J4QGSQ6Y.js +20 -0
- package/dist/cli/{csv-ZFMAI2HY.mjs → csv-HPBPBU3I.mjs} +3 -3
- package/dist/cli/{csv-UNP7KAXF.js → csv-QSMT5HZS.js} +12 -12
- package/dist/cli/{db-C5YWXRLY.mjs → db-2KAUAVVC.mjs} +4 -4
- package/dist/cli/{db-LDLXC2JQ.js → db-IKZKICP3.js} +29 -29
- package/dist/cli/{describe-UYNKJV6T.mjs → describe-EW4GZMUK.mjs} +9 -9
- package/dist/cli/{describe-FO62H2CB.js → describe-QM7Q5Y2H.js} +25 -25
- package/dist/cli/{executions-DIADSK2E.js → executions-5ICONLFX.js} +6 -6
- package/dist/cli/{executions-JYKV3GQJ.mjs → executions-U5WWUFEZ.mjs} +4 -4
- package/dist/cli/{feedback-YBO47O7G.js → feedback-N2KGAK4V.js} +7 -7
- package/dist/cli/{feedback-4UEJJFRL.mjs → feedback-ZBQPQPFG.mjs} +3 -3
- package/dist/cli/git-2N5LS25H.js +23 -0
- package/dist/cli/{git-A6DPLCMU.mjs → git-M5YEP57H.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-HCAOJI7X.mjs → legacy-noops-GJUYBH2F.mjs} +4 -4
- package/dist/cli/{legacy-noops-F6TJLZV2.js → legacy-noops-IQIPPJF7.js} +7 -7
- package/dist/cli/{monitors-B5QFSFK7.js → monitors-DQUCHISX.js} +85 -85
- package/dist/cli/{monitors-XYP7XNCT.mjs → monitors-XJAJNMG4.mjs} +4 -4
- package/dist/cli/{org-O5VBVLSP.mjs → org-DFWDN4EJ.mjs} +4 -4
- package/dist/cli/{org-NMWNBQZI.js → org-G45CXUJV.js} +60 -60
- package/dist/cli/{play-Z2STHYQB.mjs → play-URTZW2Q4.mjs} +8 -8
- package/dist/cli/play-WWMUYKWS.js +153 -0
- package/dist/cli/{providers-WGIJLFBZ.mjs → providers-CCKMRCXU.mjs} +4 -4
- package/dist/cli/{providers-BAPO54GE.js → providers-IVUWWGFP.js} +7 -7
- package/dist/cli/{quickstart-LL6KUMJ5.mjs → quickstart-CRHIA3PZ.mjs} +3 -3
- package/dist/cli/{quickstart-JGRMJ6M4.js → quickstart-MMIVNRV4.js} +5 -5
- package/dist/cli/{search-P7BVN4OI.mjs → search-NDRDOINX.mjs} +5 -5
- package/dist/cli/search-YZL2QRIF.js +26 -0
- package/dist/cli/{secrets-QUBFPBE5.js → secrets-GQUBMJGM.js} +13 -13
- package/dist/cli/{secrets-5JHLILQD.mjs → secrets-SUC3KLLH.mjs} +4 -4
- package/dist/cli/{sessions-3BYS3WQZ.mjs → sessions-7CAU6JL5.mjs} +4 -4
- package/dist/cli/{sessions-TATDTEY6.js → sessions-AQCRVLHW.js} +5 -5
- package/dist/cli/{settings-SLFYXPRP.js → settings-4SDI73XW.js} +74 -74
- package/dist/cli/{settings-TXWQLO34.mjs → settings-LFFOFAU6.mjs} +7 -7
- package/dist/cli/{setup-XTAW2JS2.mjs → setup-BKCQOJBD.mjs} +6 -6
- package/dist/cli/{setup-A3CXCYRI.js → setup-FQ3E7U7G.js} +41 -41
- package/dist/cli/skills-7BPEGDIA.js +28 -0
- package/dist/cli/{skills-P323CMPH.mjs → skills-USGJ5MF7.mjs} +4 -4
- package/dist/cli/{tools-FMSH7Z7I.mjs → tools-5HTXLDZ4.mjs} +7 -7
- package/dist/cli/tools-5VEZ4QR4.js +40 -0
- package/dist/cli/{update-CGKRTVOD.mjs → update-F7TIJEIV.mjs} +6 -6
- package/dist/cli/update-YFPMWKI4.js +28 -0
- package/dist/cli/{workflow-2DVIYBLG.mjs → workflow-FXJ2D2MG.mjs} +5 -5
- package/dist/cli/{workflow-EFOSJKW7.js → workflow-J5JVOUIL.js} +15 -15
- package/dist/{client-BHReRdWK.d.mts → client-D20uyRYB.d.mts} +6 -0
- package/dist/{client-DW3zASj8.d.ts → client-rHyf5s_Y.d.ts} +6 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +78 -78
- 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 +1 -1
- package/dist/cli/auth-4HCZZPZH.js +0 -31
- package/dist/cli/client-VOXK5Z4D.js +0 -20
- package/dist/cli/git-FPC5VIIK.js +0 -23
- package/dist/cli/play-D2SCAJXG.js +0 -153
- package/dist/cli/search-UNJN5P72.js +0 -26
- package/dist/cli/skills-ZOUUC72T.js +0 -28
- package/dist/cli/tools-O7TLYHFT.js +0 -40
- package/dist/cli/update-3LT6YSIP.js +0 -28
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
handleWait,
|
|
7
7
|
readPendingAuthClaim,
|
|
8
8
|
reportSetupCompleted
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Y6D2JYBR.mjs";
|
|
10
10
|
import {
|
|
11
11
|
npmSupportsAllowScripts,
|
|
12
12
|
readNpmVersion
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VRYRVD3F.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveShellSpawn,
|
|
16
16
|
runSkillsCommand,
|
|
17
17
|
skillsStatePathForScope
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-U2GPF4SB.mjs";
|
|
19
19
|
import "./chunk-GAMFK2ZP.mjs";
|
|
20
20
|
import {
|
|
21
21
|
openInBrowser,
|
|
22
22
|
printCommandEnvelope
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SFJEAK54.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
autoDetectBaseUrl,
|
|
@@ -30,9 +30,9 @@ import {
|
|
|
30
30
|
resolveProjectApiKeyForBaseUrl,
|
|
31
31
|
resolveProjectPinTarget,
|
|
32
32
|
sdkCliStateDirPath
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-PQGDU7B5.mjs";
|
|
34
34
|
import "./chunk-DLIRSHV6.mjs";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-AOKWJJLP.mjs";
|
|
36
36
|
import {
|
|
37
37
|
DEEPLINE_GTM_SKILL,
|
|
38
38
|
DEEPLINE_GTM_STARTER_PROMPTS,
|
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkGT7OCAWVjs = require('./chunk-GT7OCAWV.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkGS2ZSOAQjs = require('./chunk-GS2ZSOAQ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkROEN4NXYjs = require('./chunk-ROEN4NXY.js');
|
|
19
19
|
require('./chunk-WJYPBHTE.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkJB4UKD3Bjs = require('./chunk-JB4UKD3B.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -30,9 +30,9 @@ var _chunkITOJRSOUjs = require('./chunk-ITOJRSOU.js');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunk5UJOJKPWjs = require('./chunk-5UJOJKPW.js');
|
|
34
34
|
require('./chunk-XNYIZMNQ.js');
|
|
35
|
-
require('./chunk-
|
|
35
|
+
require('./chunk-L4TXOCCC.js');
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
@@ -288,7 +288,7 @@ function normalizeScope(value) {
|
|
|
288
288
|
}
|
|
289
289
|
function resolveScopeRoot(scope) {
|
|
290
290
|
if (scope === "global") return null;
|
|
291
|
-
const target =
|
|
291
|
+
const target = _chunk5UJOJKPWjs.resolveProjectPinTarget.call(void 0, );
|
|
292
292
|
if (!target.ok) {
|
|
293
293
|
throw new Error(
|
|
294
294
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -305,7 +305,7 @@ function openSetupAuthorization(authorizationUrl, options = {}) {
|
|
|
305
305
|
const url = authorizationUrl.trim();
|
|
306
306
|
if (!url) return "failed";
|
|
307
307
|
if (options.open) return options.open(url);
|
|
308
|
-
const result =
|
|
308
|
+
const result = _chunkJB4UKD3Bjs.openInBrowser.call(void 0, url, { deduplicate: false });
|
|
309
309
|
return result === "opened" ? "opened" : "failed";
|
|
310
310
|
}
|
|
311
311
|
function buildPendingAuthorizationOutput(input) {
|
|
@@ -347,7 +347,7 @@ function buildPendingAuthorizationOutput(input) {
|
|
|
347
347
|
};
|
|
348
348
|
}
|
|
349
349
|
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,
|
|
350
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0, _chunk5UJOJKPWjs.sdkCliStateDirPath.call(void 0, baseUrl), "setup.json");
|
|
351
351
|
}
|
|
352
352
|
async function captureStdout(run) {
|
|
353
353
|
let stdout = "";
|
|
@@ -390,7 +390,7 @@ function isNpmManagedDeeplinePath(path) {
|
|
|
390
390
|
}
|
|
391
391
|
function removeKnownLegacyPaths(baseUrl) {
|
|
392
392
|
return CliInstallation.forUser({
|
|
393
|
-
baseUrlSlug:
|
|
393
|
+
baseUrlSlug: _chunk5UJOJKPWjs.baseUrlSlug.call(void 0, baseUrl),
|
|
394
394
|
home: _os.homedir.call(void 0, )
|
|
395
395
|
}).removeRetiredArtifacts();
|
|
396
396
|
}
|
|
@@ -428,7 +428,7 @@ function resolvePersistentGlobalCommand(dependencies = {}) {
|
|
|
428
428
|
const homebrewCommand = pathClis.find(isHomebrewFormulaCommand);
|
|
429
429
|
if (homebrewCommand) return homebrewCommand;
|
|
430
430
|
for (const manager of ["npm", "pnpm"]) {
|
|
431
|
-
const plan =
|
|
431
|
+
const plan = _chunkROEN4NXYjs.resolveShellSpawn.call(void 0,
|
|
432
432
|
manager,
|
|
433
433
|
manager === "npm" ? ["prefix", "-g"] : ["bin", "-g"],
|
|
434
434
|
platform
|
|
@@ -497,7 +497,7 @@ function writeSetupState(input) {
|
|
|
497
497
|
{
|
|
498
498
|
schemaVersion: 2,
|
|
499
499
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
500
|
-
cliVersion:
|
|
500
|
+
cliVersion: _chunk5UJOJKPWjs.SDK_VERSION,
|
|
501
501
|
host: input.baseUrl,
|
|
502
502
|
scope: input.scope,
|
|
503
503
|
root: input.root,
|
|
@@ -532,8 +532,8 @@ function failSetupPhase(phases, phase, code) {
|
|
|
532
532
|
}
|
|
533
533
|
function rollbackCommand(scope, root) {
|
|
534
534
|
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@${
|
|
535
|
+
const allowScriptsFlag = _chunkGS2ZSOAQjs.npmSupportsAllowScripts.call(void 0, _chunkGS2ZSOAQjs.readNpmVersion.call(void 0, process.env)) ? " --allow-scripts=esbuild" : "";
|
|
536
|
+
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${_chunk5UJOJKPWjs.SDK_VERSION}`;
|
|
537
537
|
}
|
|
538
538
|
function setupResumeCommand(baseUrl, scope, orgName) {
|
|
539
539
|
const hostPrefix = baseUrl === "https://code.deepline.com" ? "" : `DEEPLINE_HOST_URL=${JSON.stringify(baseUrl)} `;
|
|
@@ -557,7 +557,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
557
557
|
status: "failed"
|
|
558
558
|
});
|
|
559
559
|
const retry = setupRetry(input);
|
|
560
|
-
|
|
560
|
+
_chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
|
|
561
561
|
{
|
|
562
562
|
ok: false,
|
|
563
563
|
status: "failed",
|
|
@@ -579,7 +579,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
579
579
|
async function readAuthStatus(authScope) {
|
|
580
580
|
try {
|
|
581
581
|
const captured = await captureStdout(
|
|
582
|
-
() =>
|
|
582
|
+
() => _chunkGT7OCAWVjs.handleStatus.call(void 0, [
|
|
583
583
|
"--json",
|
|
584
584
|
...authScope ? ["--auth-scope", authScope] : []
|
|
585
585
|
])
|
|
@@ -610,14 +610,14 @@ function reportSetupAuthStatusFailure(input) {
|
|
|
610
610
|
});
|
|
611
611
|
}
|
|
612
612
|
function buildDoctorAssessment(input) {
|
|
613
|
-
const skillsStatePath =
|
|
613
|
+
const skillsStatePath = _chunkROEN4NXYjs.skillsStatePathForScope.call(void 0,
|
|
614
614
|
input.baseUrl,
|
|
615
615
|
input.scope,
|
|
616
616
|
input.root
|
|
617
617
|
);
|
|
618
618
|
const skillsState = parseCapturedJson(safeRead(skillsStatePath));
|
|
619
|
-
const apiKey = input.scope === "local" ?
|
|
620
|
-
const projectAuth = input.scope === "local" && apiKey ?
|
|
619
|
+
const apiKey = input.scope === "local" ? _chunk5UJOJKPWjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk5UJOJKPWjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
620
|
+
const projectAuth = input.scope === "local" && apiKey ? _chunk5UJOJKPWjs.getResolvedProjectAuthSource.call(void 0, input.baseUrl, apiKey) : null;
|
|
621
621
|
const connected = _optionalChain([input, 'access', _4 => _4.authStatus, 'access', _5 => _5.payload, 'optionalAccess', _6 => _6.connected]) === true;
|
|
622
622
|
const authScopeOk = input.scope === "local" ? Boolean(projectAuth) : Boolean(apiKey && !projectAuth);
|
|
623
623
|
const skillsOk = _optionalChain([skillsState, 'optionalAccess', _7 => _7.scope]) === input.scope && typeof skillsState.skillsVersion === "string" && Array.isArray(skillsState.agents) && skillsState.agents.length > 0;
|
|
@@ -631,7 +631,7 @@ function buildDoctorAssessment(input) {
|
|
|
631
631
|
const checks = {
|
|
632
632
|
cli: {
|
|
633
633
|
ok: Boolean(cliPath) && cliScopeOk,
|
|
634
|
-
version:
|
|
634
|
+
version: _chunk5UJOJKPWjs.SDK_VERSION,
|
|
635
635
|
path: cliPath,
|
|
636
636
|
scope: input.scope
|
|
637
637
|
},
|
|
@@ -665,7 +665,7 @@ async function runDoctorCommand(options) {
|
|
|
665
665
|
scope = normalizeScope(options.scope);
|
|
666
666
|
root = resolveScopeRoot(scope);
|
|
667
667
|
} catch (error) {
|
|
668
|
-
|
|
668
|
+
_chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
|
|
669
669
|
{
|
|
670
670
|
ok: false,
|
|
671
671
|
status: "failed",
|
|
@@ -677,7 +677,7 @@ async function runDoctorCommand(options) {
|
|
|
677
677
|
);
|
|
678
678
|
return 2;
|
|
679
679
|
}
|
|
680
|
-
const baseUrl =
|
|
680
|
+
const baseUrl = _chunk5UJOJKPWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
681
681
|
const authScope = authScopeForSetup(scope);
|
|
682
682
|
const authStatus = await readAuthStatus(authScope);
|
|
683
683
|
const { ok, checks } = buildDoctorAssessment({
|
|
@@ -687,7 +687,7 @@ async function runDoctorCommand(options) {
|
|
|
687
687
|
authStatus
|
|
688
688
|
});
|
|
689
689
|
const gettingStarted = _chunkEBU7LQ64js.deeplineGtmGettingStartedPayload.call(void 0, );
|
|
690
|
-
|
|
690
|
+
_chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
|
|
691
691
|
{
|
|
692
692
|
ok,
|
|
693
693
|
status: ok ? "complete" : "failed",
|
|
@@ -732,7 +732,7 @@ function pendingResult(input) {
|
|
|
732
732
|
input.orgName
|
|
733
733
|
)
|
|
734
734
|
});
|
|
735
|
-
|
|
735
|
+
_chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
|
|
736
736
|
{
|
|
737
737
|
ok: true,
|
|
738
738
|
status: "authorization_pending",
|
|
@@ -769,7 +769,7 @@ function pendingResult(input) {
|
|
|
769
769
|
async function runSetupCommand(options) {
|
|
770
770
|
let orgName = _optionalChain([options, 'access', _19 => _19.orgName, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
|
|
771
771
|
if (options.orgName !== void 0 && !orgName) {
|
|
772
|
-
|
|
772
|
+
_chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
|
|
773
773
|
{
|
|
774
774
|
ok: false,
|
|
775
775
|
status: "failed",
|
|
@@ -787,7 +787,7 @@ async function runSetupCommand(options) {
|
|
|
787
787
|
scope = normalizeScope(options.scope);
|
|
788
788
|
root = resolveScopeRoot(scope);
|
|
789
789
|
} catch (error) {
|
|
790
|
-
|
|
790
|
+
_chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
|
|
791
791
|
{
|
|
792
792
|
ok: false,
|
|
793
793
|
status: "failed",
|
|
@@ -804,7 +804,7 @@ async function runSetupCommand(options) {
|
|
|
804
804
|
);
|
|
805
805
|
return 2;
|
|
806
806
|
}
|
|
807
|
-
const baseUrl =
|
|
807
|
+
const baseUrl = _chunk5UJOJKPWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
808
808
|
const previousState = readSetupState({ baseUrl, scope, root });
|
|
809
809
|
const { resumed, phases } = selectSetupProgress(previousState);
|
|
810
810
|
if (phases.cli.status !== "complete") {
|
|
@@ -891,7 +891,7 @@ async function runSetupCommand(options) {
|
|
|
891
891
|
process.stderr.write(`Installing Deepline skills (${scope})...
|
|
892
892
|
`);
|
|
893
893
|
const skills = await captureStdout(
|
|
894
|
-
() =>
|
|
894
|
+
() => _chunkROEN4NXYjs.runSkillsCommand.call(void 0, { scope, json: true })
|
|
895
895
|
);
|
|
896
896
|
skillsPayload = parseCapturedJson(skills.stdout);
|
|
897
897
|
if (skills.exitCode !== 0) {
|
|
@@ -932,11 +932,11 @@ async function runSetupCommand(options) {
|
|
|
932
932
|
});
|
|
933
933
|
} else {
|
|
934
934
|
skillsPayload = parseCapturedJson(
|
|
935
|
-
safeRead(
|
|
935
|
+
safeRead(_chunkROEN4NXYjs.skillsStatePathForScope.call(void 0, baseUrl, scope, root))
|
|
936
936
|
);
|
|
937
937
|
}
|
|
938
938
|
const authScope = authScopeForSetup(scope);
|
|
939
|
-
const pendingAtStart =
|
|
939
|
+
const pendingAtStart = _chunkGT7OCAWVjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
940
940
|
const replacingPendingClaim = Boolean(
|
|
941
941
|
pendingAtStart && orgName && _optionalChain([pendingAtStart, 'access', _24 => _24.orgName, 'optionalAccess', _25 => _25.toLowerCase, 'call', _26 => _26()]) !== orgName.toLowerCase()
|
|
942
942
|
);
|
|
@@ -963,9 +963,9 @@ async function runSetupCommand(options) {
|
|
|
963
963
|
const workspace = asRecord(auth.payload.workspace);
|
|
964
964
|
return typeof _optionalChain([workspace, 'optionalAccess', _29 => _29.name]) === "string" && workspace.name.trim().toLowerCase() === orgName.toLowerCase();
|
|
965
965
|
};
|
|
966
|
-
let pending = replacingPendingClaim ? null :
|
|
966
|
+
let pending = replacingPendingClaim ? null : _chunkGT7OCAWVjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
967
967
|
if (replacingPendingClaim && connectedToRequestedWorkspace()) {
|
|
968
|
-
|
|
968
|
+
_chunkGT7OCAWVjs.clearPendingClaim.call(void 0, baseUrl, authScope);
|
|
969
969
|
}
|
|
970
970
|
let authClaimSource = "none";
|
|
971
971
|
if (pending || !connectedToRequestedWorkspace()) {
|
|
@@ -974,7 +974,7 @@ async function runSetupCommand(options) {
|
|
|
974
974
|
if (!pending) {
|
|
975
975
|
process.stderr.write("Starting Deepline browser authorization...\n");
|
|
976
976
|
const registered = await captureStdout(
|
|
977
|
-
() =>
|
|
977
|
+
() => _chunkGT7OCAWVjs.handleRegister.call(void 0, [
|
|
978
978
|
"--wait",
|
|
979
979
|
"no",
|
|
980
980
|
"--auth-scope",
|
|
@@ -997,7 +997,7 @@ async function runSetupCommand(options) {
|
|
|
997
997
|
extra: { detail: parseCapturedJson(registered.stdout), authScope }
|
|
998
998
|
});
|
|
999
999
|
}
|
|
1000
|
-
pending =
|
|
1000
|
+
pending = _chunkGT7OCAWVjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1001
1001
|
if (!_optionalChain([pending, 'optionalAccess', _30 => _30.claimUrl])) {
|
|
1002
1002
|
return reportSetupPhaseFailure({
|
|
1003
1003
|
baseUrl,
|
|
@@ -1033,7 +1033,7 @@ async function runSetupCommand(options) {
|
|
|
1033
1033
|
"Waiting up to five minutes for Deepline approval...\n"
|
|
1034
1034
|
);
|
|
1035
1035
|
const waited = await captureStdout(
|
|
1036
|
-
() =>
|
|
1036
|
+
() => _chunkGT7OCAWVjs.handleWait.call(void 0, ["--timeout", "300", "--auth-scope", authScope])
|
|
1037
1037
|
);
|
|
1038
1038
|
auth = await readAuthStatus(authScope);
|
|
1039
1039
|
const authFailure = reportSetupAuthStatusFailure({
|
|
@@ -1047,7 +1047,7 @@ async function runSetupCommand(options) {
|
|
|
1047
1047
|
json: options.json
|
|
1048
1048
|
});
|
|
1049
1049
|
if (authFailure !== null) return authFailure;
|
|
1050
|
-
if (waited.exitCode ===
|
|
1050
|
+
if (waited.exitCode === _chunkGT7OCAWVjs.EXIT_WORKSPACE_MISMATCH) {
|
|
1051
1051
|
return reportSetupPhaseFailure({
|
|
1052
1052
|
baseUrl,
|
|
1053
1053
|
scope,
|
|
@@ -1055,7 +1055,7 @@ async function runSetupCommand(options) {
|
|
|
1055
1055
|
phases,
|
|
1056
1056
|
phase: "auth",
|
|
1057
1057
|
code: "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT",
|
|
1058
|
-
exitCode:
|
|
1058
|
+
exitCode: _chunkGT7OCAWVjs.EXIT_WORKSPACE_MISMATCH,
|
|
1059
1059
|
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
1060
|
orgName,
|
|
1061
1061
|
retryAutomatic: false,
|
|
@@ -1064,7 +1064,7 @@ async function runSetupCommand(options) {
|
|
|
1064
1064
|
});
|
|
1065
1065
|
}
|
|
1066
1066
|
if (!connectedToRequestedWorkspace()) {
|
|
1067
|
-
const stillPending =
|
|
1067
|
+
const stillPending = _chunkGT7OCAWVjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1068
1068
|
if (_optionalChain([stillPending, 'optionalAccess', _31 => _31.claimUrl])) {
|
|
1069
1069
|
return pendingResult({
|
|
1070
1070
|
baseUrl,
|
|
@@ -1147,7 +1147,7 @@ async function runSetupCommand(options) {
|
|
|
1147
1147
|
const installedAgents = Array.isArray(_optionalChain([skillsPayload, 'optionalAccess', _38 => _38.agents])) ? skillsPayload.agents.filter(
|
|
1148
1148
|
(agent) => typeof agent === "string"
|
|
1149
1149
|
) : [];
|
|
1150
|
-
await
|
|
1150
|
+
await _chunkGT7OCAWVjs.reportSetupCompleted.call(void 0, {
|
|
1151
1151
|
baseUrl,
|
|
1152
1152
|
authScope,
|
|
1153
1153
|
scope,
|
|
@@ -1158,13 +1158,13 @@ async function runSetupCommand(options) {
|
|
|
1158
1158
|
const apiCheck = asRecord(_optionalChain([doctorChecks, 'optionalAccess', _40 => _40.api]));
|
|
1159
1159
|
const workspaceRecord = asRecord(_optionalChain([apiCheck, 'optionalAccess', _41 => _41.workspace]));
|
|
1160
1160
|
const workspaceName = typeof _optionalChain([workspaceRecord, 'optionalAccess', _42 => _42.name]) === "string" && workspaceRecord.name.trim() ? workspaceRecord.name.trim() : null;
|
|
1161
|
-
|
|
1161
|
+
_chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
|
|
1162
1162
|
{
|
|
1163
1163
|
ok: true,
|
|
1164
1164
|
status: "complete",
|
|
1165
1165
|
complete: true,
|
|
1166
1166
|
scope,
|
|
1167
|
-
cliVersion:
|
|
1167
|
+
cliVersion: _chunk5UJOJKPWjs.SDK_VERSION,
|
|
1168
1168
|
agents: installedAgents,
|
|
1169
1169
|
workspace: _nullishCoalesce(_optionalChain([apiCheck, 'optionalAccess', _43 => _43.workspace]), () => ( null)),
|
|
1170
1170
|
businessDomain: typeof _optionalChain([auth, 'access', _44 => _44.payload, 'optionalAccess', _45 => _45.businessDomain]) === "string" ? auth.payload.businessDomain : null,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkROEN4NXYjs = require('./chunk-ROEN4NXY.js');
|
|
11
|
+
require('./chunk-WJYPBHTE.js');
|
|
12
|
+
require('./chunk-JB4UKD3B.js');
|
|
13
|
+
require('./chunk-5UJOJKPW.js');
|
|
14
|
+
require('./chunk-XNYIZMNQ.js');
|
|
15
|
+
require('./chunk-L4TXOCCC.js');
|
|
16
|
+
require('./chunk-7P5AA3SN.js');
|
|
17
|
+
require('./chunk-OG64RBAC.js');
|
|
18
|
+
require('./chunk-COGTRVWW.js');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.buildSkillsPlan = _chunkROEN4NXYjs.buildSkillsPlan; exports.detectSkillsAgents = _chunkROEN4NXYjs.detectSkillsAgents; exports.inferActiveSkillsScope = _chunkROEN4NXYjs.inferActiveSkillsScope; exports.isSkillsPlanCurrent = _chunkROEN4NXYjs.isSkillsPlanCurrent; exports.registerSkillsCommand = _chunkROEN4NXYjs.registerSkillsCommand; exports.runSkillsCommand = _chunkROEN4NXYjs.runSkillsCommand; exports.skillsStatePathForScope = _chunkROEN4NXYjs.skillsStatePathForScope; exports.workspaceSkillRootsForAgents = _chunkROEN4NXYjs.workspaceSkillRootsForAgents;
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
runSkillsCommand,
|
|
8
8
|
skillsStatePathForScope,
|
|
9
9
|
workspaceSkillRootsForAgents
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-U2GPF4SB.mjs";
|
|
11
11
|
import "./chunk-GAMFK2ZP.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-SFJEAK54.mjs";
|
|
13
|
+
import "./chunk-PQGDU7B5.mjs";
|
|
14
14
|
import "./chunk-DLIRSHV6.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-AOKWJJLP.mjs";
|
|
16
16
|
import "./chunk-NXGCO4JB.mjs";
|
|
17
17
|
import "./chunk-WZYKRD7T.mjs";
|
|
18
18
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -9,18 +9,18 @@ import {
|
|
|
9
9
|
registerToolsCommands,
|
|
10
10
|
toolContractJsonForDescribe,
|
|
11
11
|
toolMetadataJsonForDescribe
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-LH4VHCN5.mjs";
|
|
13
|
+
import "./chunk-Z6B4UPM4.mjs";
|
|
14
14
|
import "./chunk-OVDNJAJN.mjs";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-OS6CZRJE.mjs";
|
|
16
16
|
import "./chunk-MIMASXO4.mjs";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-AYR45POY.mjs";
|
|
18
18
|
import "./chunk-CBVIJSHF.mjs";
|
|
19
19
|
import "./chunk-WXLOW623.mjs";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-SFJEAK54.mjs";
|
|
21
|
+
import "./chunk-PQGDU7B5.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-AOKWJJLP.mjs";
|
|
24
24
|
import "./chunk-NTVTZAVZ.mjs";
|
|
25
25
|
import "./chunk-6IKARAYD.mjs";
|
|
26
26
|
import "./chunk-NXGCO4JB.mjs";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkAGV2VS4Ujs = require('./chunk-AGV2VS4U.js');
|
|
13
|
+
require('./chunk-MX53GIOB.js');
|
|
14
|
+
require('./chunk-AID3OYVJ.js');
|
|
15
|
+
require('./chunk-LPKV6IBM.js');
|
|
16
|
+
require('./chunk-NXDRDJ4K.js');
|
|
17
|
+
require('./chunk-723POEH5.js');
|
|
18
|
+
require('./chunk-LA46MMTL.js');
|
|
19
|
+
require('./chunk-QJBJZVG6.js');
|
|
20
|
+
require('./chunk-JB4UKD3B.js');
|
|
21
|
+
require('./chunk-5UJOJKPW.js');
|
|
22
|
+
require('./chunk-XNYIZMNQ.js');
|
|
23
|
+
require('./chunk-L4TXOCCC.js');
|
|
24
|
+
require('./chunk-FKKNYKDY.js');
|
|
25
|
+
require('./chunk-S6R3OX7B.js');
|
|
26
|
+
require('./chunk-7P5AA3SN.js');
|
|
27
|
+
require('./chunk-OG64RBAC.js');
|
|
28
|
+
require('./chunk-COGTRVWW.js');
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
exports.buildToolExecuteBaseEnvelope = _chunkAGV2VS4Ujs.buildToolExecuteBaseEnvelope; exports.describedTool = _chunkAGV2VS4Ujs.describedTool; exports.extractToolExecutionWarningMessages = _chunkAGV2VS4Ujs.extractToolExecutionWarningMessages; exports.isMonitorTypeTool = _chunkAGV2VS4Ujs.isMonitorTypeTool; exports.printCompactToolContract = _chunkAGV2VS4Ujs.printCompactToolContract; exports.printMonitorTypeContract = _chunkAGV2VS4Ujs.printMonitorTypeContract; exports.publicToolSchemas = _chunkAGV2VS4Ujs.publicToolSchemas; exports.registerToolsCommands = _chunkAGV2VS4Ujs.registerToolsCommands; exports.toolContractJsonForDescribe = _chunkAGV2VS4Ujs.toolContractJsonForDescribe; exports.toolMetadataJsonForDescribe = _chunkAGV2VS4Ujs.toolMetadataJsonForDescribe;
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
runAutomaticUpdatePlan,
|
|
7
7
|
runUpdateCommand,
|
|
8
8
|
runUpdatePlan
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-NU5EU2SH.mjs";
|
|
10
|
+
import "./chunk-VRYRVD3F.mjs";
|
|
11
|
+
import "./chunk-U2GPF4SB.mjs";
|
|
12
12
|
import "./chunk-GAMFK2ZP.mjs";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-SFJEAK54.mjs";
|
|
14
|
+
import "./chunk-PQGDU7B5.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-AOKWJJLP.mjs";
|
|
17
17
|
import "./chunk-NXGCO4JB.mjs";
|
|
18
18
|
import "./chunk-WZYKRD7T.mjs";
|
|
19
19
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkWX7W76U7js = require('./chunk-WX7W76U7.js');
|
|
10
|
+
require('./chunk-GS2ZSOAQ.js');
|
|
11
|
+
require('./chunk-ROEN4NXY.js');
|
|
12
|
+
require('./chunk-WJYPBHTE.js');
|
|
13
|
+
require('./chunk-JB4UKD3B.js');
|
|
14
|
+
require('./chunk-5UJOJKPW.js');
|
|
15
|
+
require('./chunk-XNYIZMNQ.js');
|
|
16
|
+
require('./chunk-L4TXOCCC.js');
|
|
17
|
+
require('./chunk-7P5AA3SN.js');
|
|
18
|
+
require('./chunk-OG64RBAC.js');
|
|
19
|
+
require('./chunk-COGTRVWW.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
exports.canAutomaticallyApplyUpdatePlan = _chunkWX7W76U7js.canAutomaticallyApplyUpdatePlan; exports.publishedVersionSupportsPin = _chunkWX7W76U7js.publishedVersionSupportsPin; exports.registerUpdateCommand = _chunkWX7W76U7js.registerUpdateCommand; exports.resolveUpdatePlan = _chunkWX7W76U7js.resolveUpdatePlan; exports.runAutomaticUpdatePlan = _chunkWX7W76U7js.runAutomaticUpdatePlan; exports.runUpdateCommand = _chunkWX7W76U7js.runUpdateCommand; exports.runUpdatePlan = _chunkWX7W76U7js.runUpdatePlan;
|
|
@@ -3,17 +3,17 @@ import {
|
|
|
3
3
|
} from "./chunk-ITOFSXIU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AYR45POY.mjs";
|
|
7
7
|
import "./chunk-CBVIJSHF.mjs";
|
|
8
8
|
import {
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
printJson,
|
|
11
11
|
shouldEmitJson,
|
|
12
12
|
sleep
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-SFJEAK54.mjs";
|
|
14
|
+
import "./chunk-PQGDU7B5.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-AOKWJJLP.mjs";
|
|
17
17
|
import {
|
|
18
18
|
collectInlineSecretFindings
|
|
19
19
|
} from "./chunk-H7HIDGZ7.mjs";
|
|
@@ -1673,7 +1673,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1673
1673
|
await writeFile(file, compiled.sourceCode, "utf8");
|
|
1674
1674
|
let published = false;
|
|
1675
1675
|
if (publish) {
|
|
1676
|
-
const { handlePlayPublish } = await import("./play-
|
|
1676
|
+
const { handlePlayPublish } = await import("./play-URTZW2Q4.mjs");
|
|
1677
1677
|
const code = await handlePlayPublish([file]);
|
|
1678
1678
|
if (code !== 0) {
|
|
1679
1679
|
return {
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk723POEH5js = require('./chunk-723POEH5.js');
|
|
7
7
|
require('./chunk-LA46MMTL.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
require('./chunk-
|
|
13
|
+
var _chunkJB4UKD3Bjs = require('./chunk-JB4UKD3B.js');
|
|
14
|
+
require('./chunk-5UJOJKPW.js');
|
|
15
15
|
require('./chunk-XNYIZMNQ.js');
|
|
16
|
-
require('./chunk-
|
|
16
|
+
require('./chunk-L4TXOCCC.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
|
|
@@ -1600,18 +1600,18 @@ function noticeToStderr(command) {
|
|
|
1600
1600
|
);
|
|
1601
1601
|
}
|
|
1602
1602
|
function emitPassThrough(command, payload, options) {
|
|
1603
|
-
const json =
|
|
1603
|
+
const json = _chunkJB4UKD3Bjs.shouldEmitJson.call(void 0, options.json);
|
|
1604
1604
|
const deprecation = migrationDeprecation(command);
|
|
1605
1605
|
if (json) {
|
|
1606
1606
|
const enriched = payload && typeof payload === "object" && !Array.isArray(payload) ? { ...payload, deprecation } : { result: payload, deprecation };
|
|
1607
|
-
|
|
1607
|
+
_chunkJB4UKD3Bjs.printJson.call(void 0, enriched);
|
|
1608
1608
|
return;
|
|
1609
1609
|
}
|
|
1610
|
-
|
|
1610
|
+
_chunkJB4UKD3Bjs.printJson.call(void 0, payload);
|
|
1611
1611
|
noticeToStderr(command);
|
|
1612
1612
|
}
|
|
1613
1613
|
function client() {
|
|
1614
|
-
return new (0,
|
|
1614
|
+
return new (0, _chunk723POEH5js.DeeplineClient)();
|
|
1615
1615
|
}
|
|
1616
1616
|
function clientWithTimeout(timeoutSeconds) {
|
|
1617
1617
|
if (!timeoutSeconds) return client();
|
|
@@ -1619,7 +1619,7 @@ function clientWithTimeout(timeoutSeconds) {
|
|
|
1619
1619
|
if (!Number.isFinite(seconds) || seconds <= 0) {
|
|
1620
1620
|
throw new Error("--timeout must be a positive number of seconds.");
|
|
1621
1621
|
}
|
|
1622
|
-
return new (0,
|
|
1622
|
+
return new (0, _chunk723POEH5js.DeeplineClient)({ timeout: seconds * 1e3 });
|
|
1623
1623
|
}
|
|
1624
1624
|
function readStatus(payload) {
|
|
1625
1625
|
if (!payload || typeof payload !== "object") return null;
|
|
@@ -1673,7 +1673,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1673
1673
|
await _promises.writeFile.call(void 0, file, compiled.sourceCode, "utf8");
|
|
1674
1674
|
let published = false;
|
|
1675
1675
|
if (publish) {
|
|
1676
|
-
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
1676
|
+
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-WWMUYKWS.js")));
|
|
1677
1677
|
const code = await handlePlayPublish([file]);
|
|
1678
1678
|
if (code !== 0) {
|
|
1679
1679
|
return {
|
|
@@ -1748,10 +1748,10 @@ async function handleTransform(id, options) {
|
|
|
1748
1748
|
for (const workflowId of ids) {
|
|
1749
1749
|
outcomes.push(await transformOne(api, workflowId, outDir, publish));
|
|
1750
1750
|
}
|
|
1751
|
-
|
|
1751
|
+
_chunkJB4UKD3Bjs.printCommandEnvelope.call(void 0,
|
|
1752
1752
|
{ outcomes, deprecation: null },
|
|
1753
1753
|
{
|
|
1754
|
-
json:
|
|
1754
|
+
json: _chunkJB4UKD3Bjs.shouldEmitJson.call(void 0, options.json),
|
|
1755
1755
|
text: renderTransformReport(outcomes)
|
|
1756
1756
|
}
|
|
1757
1757
|
);
|
|
@@ -1772,11 +1772,11 @@ async function handleDelete(id, options) {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
async function handleDisable(id, options) {
|
|
1774
1774
|
const result = await client().disableWorkflow(id);
|
|
1775
|
-
|
|
1775
|
+
_chunkJB4UKD3Bjs.printJson.call(void 0, result);
|
|
1776
1776
|
}
|
|
1777
1777
|
async function handleEnable(id, options) {
|
|
1778
1778
|
const result = await client().enableWorkflow(id);
|
|
1779
|
-
|
|
1779
|
+
_chunkJB4UKD3Bjs.printJson.call(void 0, result);
|
|
1780
1780
|
}
|
|
1781
1781
|
async function handleApply(options) {
|
|
1782
1782
|
const body = await readJsonOption(options.payload, options.file);
|
|
@@ -1841,7 +1841,7 @@ async function handleTail(id, runId, options) {
|
|
|
1841
1841
|
if (status && TERMINAL_RUN_STATUSES.has(status) || Date.now() > deadline) {
|
|
1842
1842
|
return;
|
|
1843
1843
|
}
|
|
1844
|
-
await
|
|
1844
|
+
await _chunkJB4UKD3Bjs.sleep.call(void 0, intervalMs);
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
1847
|
function registerWorkflowCommands(program) {
|
|
@@ -3527,6 +3527,12 @@ type ExecuteToolRawOptions = {
|
|
|
3527
3527
|
searchRef?: string;
|
|
3528
3528
|
/** Correlates one CLI command with its execute request and server telemetry. */
|
|
3529
3529
|
cliInvocationId?: string;
|
|
3530
|
+
/** Optional terminal API body-receipt observation; never a CLI exit clock. */
|
|
3531
|
+
onResponseReceived?: (observation: {
|
|
3532
|
+
receivedAtMs: number;
|
|
3533
|
+
httpStatus: number;
|
|
3534
|
+
state: 'completed' | 'failed' | 'cancelled';
|
|
3535
|
+
}) => void;
|
|
3530
3536
|
};
|
|
3531
3537
|
/** Durable state returned for a keyed tool execution. */
|
|
3532
3538
|
type ExecutionRecovery = {
|