deepline 0.3.402 → 0.3.403
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/client.ts +14 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +7 -2
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +2 -1
- package/dist/cli/{auth-GJGFHAUP.mjs → auth-AHF355KV.mjs} +4 -4
- package/dist/cli/auth-O7A7JS2M.js +40 -0
- package/dist/cli/{billing-UBBNYU74.js → billing-5L5X2OAC.js} +73 -73
- package/dist/cli/{billing-7YYI5OFD.mjs → billing-LSZECOCV.mjs} +4 -4
- package/dist/cli/{chunk-CIOMFOJJ.js → chunk-4BWZA57I.js} +6 -6
- package/dist/cli/{chunk-MSS6UHGK.js → chunk-57GMG2DV.js} +26 -26
- package/dist/cli/{chunk-65YHUBYZ.js → chunk-5SGQF4QF.js} +8 -8
- package/dist/cli/{chunk-3HWALOL2.mjs → chunk-6BJK4EJ3.mjs} +1 -1
- package/dist/cli/{chunk-IK7J2DE5.js → chunk-77FZLY5L.js} +1 -1
- package/dist/cli/{chunk-OPS5KQVF.mjs → chunk-B4Y2CZKS.mjs} +2 -2
- package/dist/cli/{chunk-Q77JWGMZ.mjs → chunk-BYBRENKM.mjs} +1 -1
- package/dist/cli/{chunk-YHZUZO3U.mjs → chunk-BZAMOCPA.mjs} +1 -1
- package/dist/cli/{chunk-4EWCKDFC.mjs → chunk-C27DGNII.mjs} +1 -1
- package/dist/cli/{chunk-RLL23M7M.mjs → chunk-CC3QT7Q5.mjs} +2 -2
- package/dist/cli/{chunk-3HU47EGZ.mjs → chunk-CLJGSOVM.mjs} +2 -1
- package/dist/cli/{chunk-LQS5XUFL.js → chunk-DJSPH5T2.js} +6 -6
- package/dist/cli/{chunk-7DRPTGCK.js → chunk-FERRDNMO.js} +4 -4
- package/dist/cli/{chunk-ZOKF4F65.js → chunk-FQL75GML.js} +8 -8
- package/dist/cli/{chunk-Z7MNFHHE.mjs → chunk-GJECLPJP.mjs} +4 -4
- package/dist/cli/{chunk-TPPHH3FS.mjs → chunk-HPEIY4UR.mjs} +3 -3
- package/dist/cli/{chunk-RFG3MRAC.js → chunk-ILHRA7AD.js} +5 -5
- package/dist/cli/{chunk-VHZOTHAD.js → chunk-J3OZIYU4.js} +15 -15
- package/dist/cli/{chunk-NMPFKSZN.mjs → chunk-JHNYOTWR.mjs} +1 -1
- package/dist/cli/{chunk-L5UOVDJV.js → chunk-JZ7TJL7G.js} +2 -2
- package/dist/cli/{chunk-OIUXHL7G.mjs → chunk-KTBMDDEQ.mjs} +3 -3
- package/dist/cli/{chunk-5Z7SAD3Q.js → chunk-MJ4OWXFM.js} +207 -207
- package/dist/cli/{chunk-QPIAVCCS.mjs → chunk-MQWZYCQJ.mjs} +2 -2
- package/dist/cli/{chunk-HFYQBC2D.mjs → chunk-PMVFAYL7.mjs} +1 -1
- package/dist/cli/{chunk-TWZEHT5L.mjs → chunk-QN55SQYI.mjs} +7 -7
- package/dist/cli/{chunk-V4TFEZ47.mjs → chunk-RXVJYS76.mjs} +1 -1
- package/dist/cli/{chunk-MH73HMPV.js → chunk-SEFMGO3Z.js} +3 -3
- package/dist/cli/{chunk-B2FAQ3AX.js → chunk-SGPGIC3M.js} +50 -50
- package/dist/cli/{chunk-JHFX74T6.js → chunk-V4PLPRWQ.js} +4 -4
- package/dist/cli/{chunk-JT7XZP4U.mjs → chunk-VNO3VAJT.mjs} +1 -1
- package/dist/cli/{chunk-CBPK2TLC.js → chunk-VYDYDELF.js} +65 -65
- package/dist/cli/{chunk-KB4SDX5S.js → chunk-Z4VNJOF7.js} +2 -1
- package/dist/cli/{csv-V6JDZEWY.js → csv-IO2BKRNX.js} +12 -12
- package/dist/cli/{csv-USUSIYER.mjs → csv-J6ZPUWE4.mjs} +3 -3
- package/dist/cli/{db-F5GMBQ65.mjs → db-QICV6JWY.mjs} +4 -4
- package/dist/cli/{db-HRWKCFXF.js → db-ZVRBVSPU.js} +25 -25
- package/dist/cli/{describe-R6KMEHL5.js → describe-WX6VWGH6.js} +15 -15
- package/dist/cli/{describe-S5O6FVT3.mjs → describe-YA35XS55.mjs} +9 -9
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-YPZREEMY.mjs → executions-X3PDLFKO.mjs} +4 -4
- package/dist/cli/{executions-PZIPKQBP.js → executions-YQAUBJLS.js} +6 -6
- package/dist/cli/{feedback-BTETOM6H.mjs → feedback-HSERSHDV.mjs} +3 -3
- package/dist/cli/{feedback-VDJR5X3J.js → feedback-M2WMOY5B.js} +7 -7
- package/dist/cli/{git-INUECEXT.mjs → git-3JMX455D.mjs} +4 -4
- package/dist/cli/git-IUDHAE5O.js +24 -0
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-45WQXPUD.js → legacy-noops-EMUCJ5KW.js} +7 -7
- package/dist/cli/{legacy-noops-MDN77QAS.mjs → legacy-noops-OKC6VDD3.mjs} +4 -4
- package/dist/cli/{monitors-BMQEIYV6.js → monitors-M6DU2JXC.js} +84 -84
- package/dist/cli/{monitors-4BTZGTJW.mjs → monitors-RH3FIA63.mjs} +4 -4
- package/dist/cli/{org-GTZDYRD3.js → org-BZDZO32O.js} +64 -64
- package/dist/cli/{org-6YNJ7VNJ.mjs → org-KK3C5J6E.mjs} +4 -4
- package/dist/cli/{play-GGQBJQG4.mjs → play-QXBNDI6C.mjs} +9 -9
- package/dist/cli/{play-BDIBVDSU.js → play-ZKYHO2KC.js} +249 -249
- package/dist/cli/{providers-6EYFXCHM.mjs → providers-JRN5FNXI.mjs} +4 -4
- package/dist/cli/{providers-AFQ6FQWQ.js → providers-VCT7HFYW.js} +7 -7
- package/dist/cli/{quickstart-PUXYA3QD.js → quickstart-X2IC2U6U.js} +5 -5
- package/dist/cli/{quickstart-FIK5TO73.mjs → quickstart-Y33XAQDY.mjs} +3 -3
- package/dist/cli/search-7257KVSQ.js +30 -0
- package/dist/cli/{search-UTPRENV4.mjs → search-R443WBN7.mjs} +5 -5
- package/dist/cli/{secrets-R2RJ2J7Z.mjs → secrets-EUKR5NG2.mjs} +4 -4
- package/dist/cli/{secrets-FMM4RFK2.js → secrets-U6V4M7R3.js} +13 -13
- package/dist/cli/{sessions-ZRXUQIVV.js → sessions-IPKYJT4M.js} +5 -5
- package/dist/cli/{sessions-HA2B7AYB.mjs → sessions-RZVHJSVB.mjs} +4 -4
- package/dist/cli/{settings-HPGNP7UU.mjs → settings-FKU7KJ24.mjs} +7 -7
- package/dist/cli/{settings-KKHOBBKF.js → settings-W4YFY5JJ.js} +74 -74
- package/dist/cli/{setup-WERVZIIX.mjs → setup-6WIECL4V.mjs} +6 -6
- package/dist/cli/{setup-FTSDFQOK.js → setup-BEIN6536.js} +41 -41
- package/dist/cli/skills-A7ATFQEL.js +29 -0
- package/dist/cli/{skills-D4BGGD5D.mjs → skills-CV72BOP7.mjs} +4 -4
- package/dist/cli/tools-2ADAYBNB.js +39 -0
- package/dist/cli/{tools-TKQW72OL.mjs → tools-2SH4RIFD.mjs} +8 -8
- package/dist/cli/update-AUYYCJUT.js +29 -0
- package/dist/cli/{update-O77BPQAE.mjs → update-YTR4JUPG.mjs} +6 -6
- package/dist/cli/{workflow-GIDAYVSL.js → workflow-446CNNRV.js} +15 -15
- package/dist/cli/{workflow-IJCMSPGJ.mjs → workflow-BBSL2QKK.mjs} +5 -5
- package/dist/{client-D0j-_aaa.d.mts → client-Buv1_ktG.d.mts} +4 -2
- package/dist/{client-DflfVyj6.d.ts → client-Db1jFLpF.d.ts} +4 -2
- package/dist/{compiler-manifest-DLxUY5kI.d.ts → compiler-manifest-N77W75Py.d.mts} +10 -6
- package/dist/{compiler-manifest-DLxUY5kI.d.mts → compiler-manifest-N77W75Py.d.ts} +10 -6
- package/dist/{index-SCb0NvDb.d.mts → index-3WOfyVhW.d.mts} +1 -1
- package/dist/{index-B_GM9E3q.d.ts → index-CtIJFTCl.d.ts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +84 -84
- 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 +2 -2
- 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-CF34E66T.js +0 -40
- package/dist/cli/git-B5DP75FD.js +0 -24
- package/dist/cli/search-64GE26YS.js +0 -30
- package/dist/cli/skills-O7HGWWGF.js +0 -29
- package/dist/cli/tools-EKVHV35B.js +0 -39
- package/dist/cli/update-5CP72TRU.js +0 -29
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkSGPGIC3Mjs = require('./chunk-SGPGIC3M.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkJZ7TJL7Gjs = require('./chunk-JZ7TJL7G.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkVYDYDELFjs = require('./chunk-VYDYDELF.js');
|
|
19
19
|
require('./chunk-WJYPBHTE.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk4BWZA57Ijs = require('./chunk-4BWZA57I.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -30,11 +30,11 @@ var _chunkCIOMFOJJjs = require('./chunk-CIOMFOJJ.js');
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkV4PLPRWQjs = require('./chunk-V4PLPRWQ.js');
|
|
34
34
|
require('./chunk-Q2E4E4FJ.js');
|
|
35
35
|
require('./chunk-XNYIZMNQ.js');
|
|
36
36
|
require('./chunk-7P5AA3SN.js');
|
|
37
|
-
require('./chunk-
|
|
37
|
+
require('./chunk-77FZLY5L.js');
|
|
38
38
|
require('./chunk-OG64RBAC.js');
|
|
39
39
|
|
|
40
40
|
|
|
@@ -289,7 +289,7 @@ function normalizeScope(value) {
|
|
|
289
289
|
}
|
|
290
290
|
function resolveScopeRoot(scope) {
|
|
291
291
|
if (scope === "global") return null;
|
|
292
|
-
const target =
|
|
292
|
+
const target = _chunkV4PLPRWQjs.resolveProjectPinTarget.call(void 0, );
|
|
293
293
|
if (!target.ok) {
|
|
294
294
|
throw new Error(
|
|
295
295
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -306,7 +306,7 @@ function openSetupAuthorization(authorizationUrl, options = {}) {
|
|
|
306
306
|
const url = authorizationUrl.trim();
|
|
307
307
|
if (!url) return "failed";
|
|
308
308
|
if (options.open) return options.open(url);
|
|
309
|
-
const result =
|
|
309
|
+
const result = _chunk4BWZA57Ijs.openInBrowser.call(void 0, url, { deduplicate: false });
|
|
310
310
|
return result === "opened" ? "opened" : "failed";
|
|
311
311
|
}
|
|
312
312
|
function buildPendingAuthorizationOutput(input) {
|
|
@@ -348,7 +348,7 @@ function buildPendingAuthorizationOutput(input) {
|
|
|
348
348
|
};
|
|
349
349
|
}
|
|
350
350
|
function setupStatePath(baseUrl, scope, root) {
|
|
351
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0,
|
|
351
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0, _chunkV4PLPRWQjs.sdkCliStateDirPath.call(void 0, baseUrl), "setup.json");
|
|
352
352
|
}
|
|
353
353
|
async function captureStdout(run) {
|
|
354
354
|
let stdout = "";
|
|
@@ -391,7 +391,7 @@ function isNpmManagedDeeplinePath(path) {
|
|
|
391
391
|
}
|
|
392
392
|
function removeKnownLegacyPaths(baseUrl) {
|
|
393
393
|
return CliInstallation.forUser({
|
|
394
|
-
baseUrlSlug:
|
|
394
|
+
baseUrlSlug: _chunkV4PLPRWQjs.baseUrlSlug.call(void 0, baseUrl),
|
|
395
395
|
home: _os.homedir.call(void 0, )
|
|
396
396
|
}).removeRetiredArtifacts();
|
|
397
397
|
}
|
|
@@ -429,7 +429,7 @@ function resolvePersistentGlobalCommand(dependencies = {}) {
|
|
|
429
429
|
const homebrewCommand = pathClis.find(isHomebrewFormulaCommand);
|
|
430
430
|
if (homebrewCommand) return homebrewCommand;
|
|
431
431
|
for (const manager of ["npm", "pnpm"]) {
|
|
432
|
-
const plan =
|
|
432
|
+
const plan = _chunkVYDYDELFjs.resolveShellSpawn.call(void 0,
|
|
433
433
|
manager,
|
|
434
434
|
manager === "npm" ? ["prefix", "-g"] : ["bin", "-g"],
|
|
435
435
|
platform
|
|
@@ -498,7 +498,7 @@ function writeSetupState(input) {
|
|
|
498
498
|
{
|
|
499
499
|
schemaVersion: 2,
|
|
500
500
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
501
|
-
cliVersion:
|
|
501
|
+
cliVersion: _chunkV4PLPRWQjs.SDK_VERSION,
|
|
502
502
|
host: input.baseUrl,
|
|
503
503
|
scope: input.scope,
|
|
504
504
|
root: input.root,
|
|
@@ -533,8 +533,8 @@ function failSetupPhase(phases, phase, code) {
|
|
|
533
533
|
}
|
|
534
534
|
function rollbackCommand(scope, root) {
|
|
535
535
|
const prefix = scope === "local" && root ? ` --prefix ${JSON.stringify(_path.join.call(void 0, root, ".deepline", "runtime"))}` : "";
|
|
536
|
-
const allowScriptsFlag =
|
|
537
|
-
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${
|
|
536
|
+
const allowScriptsFlag = _chunkJZ7TJL7Gjs.npmSupportsAllowScripts.call(void 0, _chunkJZ7TJL7Gjs.readNpmVersion.call(void 0, process.env)) ? " --allow-scripts=esbuild" : "";
|
|
537
|
+
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${_chunkV4PLPRWQjs.SDK_VERSION}`;
|
|
538
538
|
}
|
|
539
539
|
function setupResumeCommand(baseUrl, scope, orgName) {
|
|
540
540
|
const hostPrefix = baseUrl === "https://code.deepline.com" ? "" : `DEEPLINE_HOST_URL=${JSON.stringify(baseUrl)} `;
|
|
@@ -558,7 +558,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
558
558
|
status: "failed"
|
|
559
559
|
});
|
|
560
560
|
const retry = setupRetry(input);
|
|
561
|
-
|
|
561
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
562
562
|
{
|
|
563
563
|
ok: false,
|
|
564
564
|
status: "failed",
|
|
@@ -580,7 +580,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
580
580
|
async function readAuthStatus(authScope) {
|
|
581
581
|
try {
|
|
582
582
|
const captured = await captureStdout(
|
|
583
|
-
() =>
|
|
583
|
+
() => _chunkSGPGIC3Mjs.handleStatus.call(void 0, [
|
|
584
584
|
"--json",
|
|
585
585
|
...authScope ? ["--auth-scope", authScope] : []
|
|
586
586
|
])
|
|
@@ -611,14 +611,14 @@ function reportSetupAuthStatusFailure(input) {
|
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
613
|
function buildDoctorAssessment(input) {
|
|
614
|
-
const skillsStatePath =
|
|
614
|
+
const skillsStatePath = _chunkVYDYDELFjs.skillsStatePathForScope.call(void 0,
|
|
615
615
|
input.baseUrl,
|
|
616
616
|
input.scope,
|
|
617
617
|
input.root
|
|
618
618
|
);
|
|
619
619
|
const skillsState = parseCapturedJson(safeRead(skillsStatePath));
|
|
620
|
-
const apiKey = input.scope === "local" ?
|
|
621
|
-
const projectAuth = input.scope === "local" && apiKey ?
|
|
620
|
+
const apiKey = input.scope === "local" ? _chunkV4PLPRWQjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkV4PLPRWQjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
621
|
+
const projectAuth = input.scope === "local" && apiKey ? _chunkV4PLPRWQjs.getResolvedProjectAuthSource.call(void 0, input.baseUrl, apiKey) : null;
|
|
622
622
|
const connected = _optionalChain([input, 'access', _4 => _4.authStatus, 'access', _5 => _5.payload, 'optionalAccess', _6 => _6.connected]) === true;
|
|
623
623
|
const authScopeOk = input.scope === "local" ? Boolean(projectAuth) : Boolean(apiKey && !projectAuth);
|
|
624
624
|
const skillsOk = _optionalChain([skillsState, 'optionalAccess', _7 => _7.scope]) === input.scope && typeof skillsState.skillsVersion === "string" && Array.isArray(skillsState.agents) && skillsState.agents.length > 0;
|
|
@@ -632,7 +632,7 @@ function buildDoctorAssessment(input) {
|
|
|
632
632
|
const checks = {
|
|
633
633
|
cli: {
|
|
634
634
|
ok: Boolean(cliPath) && cliScopeOk,
|
|
635
|
-
version:
|
|
635
|
+
version: _chunkV4PLPRWQjs.SDK_VERSION,
|
|
636
636
|
path: cliPath,
|
|
637
637
|
scope: input.scope
|
|
638
638
|
},
|
|
@@ -666,7 +666,7 @@ async function runDoctorCommand(options) {
|
|
|
666
666
|
scope = normalizeScope(options.scope);
|
|
667
667
|
root = resolveScopeRoot(scope);
|
|
668
668
|
} catch (error) {
|
|
669
|
-
|
|
669
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
670
670
|
{
|
|
671
671
|
ok: false,
|
|
672
672
|
status: "failed",
|
|
@@ -678,7 +678,7 @@ async function runDoctorCommand(options) {
|
|
|
678
678
|
);
|
|
679
679
|
return 2;
|
|
680
680
|
}
|
|
681
|
-
const baseUrl =
|
|
681
|
+
const baseUrl = _chunkV4PLPRWQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
682
682
|
const authScope = authScopeForSetup(scope);
|
|
683
683
|
const authStatus = await readAuthStatus(authScope);
|
|
684
684
|
const { ok, checks } = buildDoctorAssessment({
|
|
@@ -688,7 +688,7 @@ async function runDoctorCommand(options) {
|
|
|
688
688
|
authStatus
|
|
689
689
|
});
|
|
690
690
|
const gettingStarted = _chunkEBU7LQ64js.deeplineGtmGettingStartedPayload.call(void 0, );
|
|
691
|
-
|
|
691
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
692
692
|
{
|
|
693
693
|
ok,
|
|
694
694
|
status: ok ? "complete" : "failed",
|
|
@@ -733,7 +733,7 @@ function pendingResult(input) {
|
|
|
733
733
|
input.orgName
|
|
734
734
|
)
|
|
735
735
|
});
|
|
736
|
-
|
|
736
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
737
737
|
{
|
|
738
738
|
ok: true,
|
|
739
739
|
status: "authorization_pending",
|
|
@@ -770,7 +770,7 @@ function pendingResult(input) {
|
|
|
770
770
|
async function runSetupCommand(options) {
|
|
771
771
|
let orgName = _optionalChain([options, 'access', _19 => _19.orgName, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
|
|
772
772
|
if (options.orgName !== void 0 && !orgName) {
|
|
773
|
-
|
|
773
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
774
774
|
{
|
|
775
775
|
ok: false,
|
|
776
776
|
status: "failed",
|
|
@@ -788,7 +788,7 @@ async function runSetupCommand(options) {
|
|
|
788
788
|
scope = normalizeScope(options.scope);
|
|
789
789
|
root = resolveScopeRoot(scope);
|
|
790
790
|
} catch (error) {
|
|
791
|
-
|
|
791
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
792
792
|
{
|
|
793
793
|
ok: false,
|
|
794
794
|
status: "failed",
|
|
@@ -805,7 +805,7 @@ async function runSetupCommand(options) {
|
|
|
805
805
|
);
|
|
806
806
|
return 2;
|
|
807
807
|
}
|
|
808
|
-
const baseUrl =
|
|
808
|
+
const baseUrl = _chunkV4PLPRWQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
809
809
|
const previousState = readSetupState({ baseUrl, scope, root });
|
|
810
810
|
const { resumed, phases } = selectSetupProgress(previousState);
|
|
811
811
|
if (phases.cli.status !== "complete") {
|
|
@@ -892,7 +892,7 @@ async function runSetupCommand(options) {
|
|
|
892
892
|
process.stderr.write(`Installing Deepline skills (${scope})...
|
|
893
893
|
`);
|
|
894
894
|
const skills = await captureStdout(
|
|
895
|
-
() =>
|
|
895
|
+
() => _chunkVYDYDELFjs.runSkillsCommand.call(void 0, { scope, json: true })
|
|
896
896
|
);
|
|
897
897
|
skillsPayload = parseCapturedJson(skills.stdout);
|
|
898
898
|
if (skills.exitCode !== 0) {
|
|
@@ -933,11 +933,11 @@ async function runSetupCommand(options) {
|
|
|
933
933
|
});
|
|
934
934
|
} else {
|
|
935
935
|
skillsPayload = parseCapturedJson(
|
|
936
|
-
safeRead(
|
|
936
|
+
safeRead(_chunkVYDYDELFjs.skillsStatePathForScope.call(void 0, baseUrl, scope, root))
|
|
937
937
|
);
|
|
938
938
|
}
|
|
939
939
|
const authScope = authScopeForSetup(scope);
|
|
940
|
-
const pendingAtStart =
|
|
940
|
+
const pendingAtStart = _chunkSGPGIC3Mjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
941
941
|
const replacingPendingClaim = Boolean(
|
|
942
942
|
pendingAtStart && orgName && _optionalChain([pendingAtStart, 'access', _24 => _24.orgName, 'optionalAccess', _25 => _25.toLowerCase, 'call', _26 => _26()]) !== orgName.toLowerCase()
|
|
943
943
|
);
|
|
@@ -964,9 +964,9 @@ async function runSetupCommand(options) {
|
|
|
964
964
|
const workspace = asRecord(auth.payload.workspace);
|
|
965
965
|
return typeof _optionalChain([workspace, 'optionalAccess', _29 => _29.name]) === "string" && workspace.name.trim().toLowerCase() === orgName.toLowerCase();
|
|
966
966
|
};
|
|
967
|
-
let pending = replacingPendingClaim ? null :
|
|
967
|
+
let pending = replacingPendingClaim ? null : _chunkSGPGIC3Mjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
968
968
|
if (replacingPendingClaim && connectedToRequestedWorkspace()) {
|
|
969
|
-
|
|
969
|
+
_chunkSGPGIC3Mjs.clearPendingClaim.call(void 0, baseUrl, authScope);
|
|
970
970
|
}
|
|
971
971
|
let authClaimSource = "none";
|
|
972
972
|
if (pending || !connectedToRequestedWorkspace()) {
|
|
@@ -975,7 +975,7 @@ async function runSetupCommand(options) {
|
|
|
975
975
|
if (!pending) {
|
|
976
976
|
process.stderr.write("Starting Deepline browser authorization...\n");
|
|
977
977
|
const registered = await captureStdout(
|
|
978
|
-
() =>
|
|
978
|
+
() => _chunkSGPGIC3Mjs.handleRegister.call(void 0, [
|
|
979
979
|
"--wait",
|
|
980
980
|
"no",
|
|
981
981
|
"--auth-scope",
|
|
@@ -998,7 +998,7 @@ async function runSetupCommand(options) {
|
|
|
998
998
|
extra: { detail: parseCapturedJson(registered.stdout), authScope }
|
|
999
999
|
});
|
|
1000
1000
|
}
|
|
1001
|
-
pending =
|
|
1001
|
+
pending = _chunkSGPGIC3Mjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1002
1002
|
if (!_optionalChain([pending, 'optionalAccess', _30 => _30.claimUrl])) {
|
|
1003
1003
|
return reportSetupPhaseFailure({
|
|
1004
1004
|
baseUrl,
|
|
@@ -1034,7 +1034,7 @@ async function runSetupCommand(options) {
|
|
|
1034
1034
|
"Waiting up to five minutes for Deepline approval...\n"
|
|
1035
1035
|
);
|
|
1036
1036
|
const waited = await captureStdout(
|
|
1037
|
-
() =>
|
|
1037
|
+
() => _chunkSGPGIC3Mjs.handleWait.call(void 0, ["--timeout", "300", "--auth-scope", authScope])
|
|
1038
1038
|
);
|
|
1039
1039
|
auth = await readAuthStatus(authScope);
|
|
1040
1040
|
const authFailure = reportSetupAuthStatusFailure({
|
|
@@ -1048,7 +1048,7 @@ async function runSetupCommand(options) {
|
|
|
1048
1048
|
json: options.json
|
|
1049
1049
|
});
|
|
1050
1050
|
if (authFailure !== null) return authFailure;
|
|
1051
|
-
if (waited.exitCode ===
|
|
1051
|
+
if (waited.exitCode === _chunkSGPGIC3Mjs.EXIT_WORKSPACE_MISMATCH) {
|
|
1052
1052
|
return reportSetupPhaseFailure({
|
|
1053
1053
|
baseUrl,
|
|
1054
1054
|
scope,
|
|
@@ -1056,7 +1056,7 @@ async function runSetupCommand(options) {
|
|
|
1056
1056
|
phases,
|
|
1057
1057
|
phase: "auth",
|
|
1058
1058
|
code: "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT",
|
|
1059
|
-
exitCode:
|
|
1059
|
+
exitCode: _chunkSGPGIC3Mjs.EXIT_WORKSPACE_MISMATCH,
|
|
1060
1060
|
message: `The requested workspace${orgName ? ` ${orgName}` : ""} does not exist in this account. Connect to an existing workspace first; then use deepline org create if you need a new one.`,
|
|
1061
1061
|
orgName,
|
|
1062
1062
|
retryAutomatic: false,
|
|
@@ -1065,7 +1065,7 @@ async function runSetupCommand(options) {
|
|
|
1065
1065
|
});
|
|
1066
1066
|
}
|
|
1067
1067
|
if (!connectedToRequestedWorkspace()) {
|
|
1068
|
-
const stillPending =
|
|
1068
|
+
const stillPending = _chunkSGPGIC3Mjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1069
1069
|
if (_optionalChain([stillPending, 'optionalAccess', _31 => _31.claimUrl])) {
|
|
1070
1070
|
return pendingResult({
|
|
1071
1071
|
baseUrl,
|
|
@@ -1148,7 +1148,7 @@ async function runSetupCommand(options) {
|
|
|
1148
1148
|
const installedAgents = Array.isArray(_optionalChain([skillsPayload, 'optionalAccess', _38 => _38.agents])) ? skillsPayload.agents.filter(
|
|
1149
1149
|
(agent) => typeof agent === "string"
|
|
1150
1150
|
) : [];
|
|
1151
|
-
await
|
|
1151
|
+
await _chunkSGPGIC3Mjs.reportSetupCompleted.call(void 0, {
|
|
1152
1152
|
baseUrl,
|
|
1153
1153
|
authScope,
|
|
1154
1154
|
scope,
|
|
@@ -1159,13 +1159,13 @@ async function runSetupCommand(options) {
|
|
|
1159
1159
|
const apiCheck = asRecord(_optionalChain([doctorChecks, 'optionalAccess', _40 => _40.api]));
|
|
1160
1160
|
const workspaceRecord = asRecord(_optionalChain([apiCheck, 'optionalAccess', _41 => _41.workspace]));
|
|
1161
1161
|
const workspaceName = typeof _optionalChain([workspaceRecord, 'optionalAccess', _42 => _42.name]) === "string" && workspaceRecord.name.trim() ? workspaceRecord.name.trim() : null;
|
|
1162
|
-
|
|
1162
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
1163
1163
|
{
|
|
1164
1164
|
ok: true,
|
|
1165
1165
|
status: "complete",
|
|
1166
1166
|
complete: true,
|
|
1167
1167
|
scope,
|
|
1168
|
-
cliVersion:
|
|
1168
|
+
cliVersion: _chunkV4PLPRWQjs.SDK_VERSION,
|
|
1169
1169
|
agents: installedAgents,
|
|
1170
1170
|
workspace: _nullishCoalesce(_optionalChain([apiCheck, 'optionalAccess', _43 => _43.workspace]), () => ( null)),
|
|
1171
1171
|
businessDomain: typeof _optionalChain([auth, 'access', _44 => _44.payload, 'optionalAccess', _45 => _45.businessDomain]) === "string" ? auth.payload.businessDomain : null,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkVYDYDELFjs = require('./chunk-VYDYDELF.js');
|
|
11
|
+
require('./chunk-WJYPBHTE.js');
|
|
12
|
+
require('./chunk-4BWZA57I.js');
|
|
13
|
+
require('./chunk-V4PLPRWQ.js');
|
|
14
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
15
|
+
require('./chunk-XNYIZMNQ.js');
|
|
16
|
+
require('./chunk-7P5AA3SN.js');
|
|
17
|
+
require('./chunk-77FZLY5L.js');
|
|
18
|
+
require('./chunk-OG64RBAC.js');
|
|
19
|
+
require('./chunk-COGTRVWW.js');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
exports.buildSkillsPlan = _chunkVYDYDELFjs.buildSkillsPlan; exports.detectSkillsAgents = _chunkVYDYDELFjs.detectSkillsAgents; exports.inferActiveSkillsScope = _chunkVYDYDELFjs.inferActiveSkillsScope; exports.isSkillsPlanCurrent = _chunkVYDYDELFjs.isSkillsPlanCurrent; exports.registerSkillsCommand = _chunkVYDYDELFjs.registerSkillsCommand; exports.runSkillsCommand = _chunkVYDYDELFjs.runSkillsCommand; exports.skillsStatePathForScope = _chunkVYDYDELFjs.skillsStatePathForScope; exports.workspaceSkillRootsForAgents = _chunkVYDYDELFjs.workspaceSkillRootsForAgents;
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
runSkillsCommand,
|
|
8
8
|
skillsStatePathForScope,
|
|
9
9
|
workspaceSkillRootsForAgents
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HPEIY4UR.mjs";
|
|
11
11
|
import "./chunk-GAMFK2ZP.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-VNO3VAJT.mjs";
|
|
13
|
+
import "./chunk-BYBRENKM.mjs";
|
|
14
14
|
import "./chunk-YHPYUZZX.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
16
|
import "./chunk-NXGCO4JB.mjs";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-JHNYOTWR.mjs";
|
|
18
18
|
import "./chunk-WZYKRD7T.mjs";
|
|
19
19
|
import "./chunk-KRD6H754.mjs";
|
|
20
20
|
export {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkMJ4OWXFMjs = require('./chunk-MJ4OWXFM.js');
|
|
9
|
+
require('./chunk-ZAAKSJAS.js');
|
|
10
|
+
require('./chunk-FQL75GML.js');
|
|
11
|
+
require('./chunk-FERRDNMO.js');
|
|
12
|
+
require('./chunk-BQR6UN3C.js');
|
|
13
|
+
require('./chunk-AID3OYVJ.js');
|
|
14
|
+
require('./chunk-ZM2YPJQJ.js');
|
|
15
|
+
require('./chunk-HGFFYVXN.js');
|
|
16
|
+
require('./chunk-NA4T3B62.js');
|
|
17
|
+
require('./chunk-Z4VNJOF7.js');
|
|
18
|
+
require('./chunk-DJSPH5T2.js');
|
|
19
|
+
require('./chunk-S6R3OX7B.js');
|
|
20
|
+
require('./chunk-UHNDVD3P.js');
|
|
21
|
+
require('./chunk-KXMNM4AQ.js');
|
|
22
|
+
require('./chunk-XDVT3GOM.js');
|
|
23
|
+
require('./chunk-QJBJZVG6.js');
|
|
24
|
+
require('./chunk-4BWZA57I.js');
|
|
25
|
+
require('./chunk-V4PLPRWQ.js');
|
|
26
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
27
|
+
require('./chunk-XNYIZMNQ.js');
|
|
28
|
+
require('./chunk-7P5AA3SN.js');
|
|
29
|
+
require('./chunk-77FZLY5L.js');
|
|
30
|
+
require('./chunk-OG64RBAC.js');
|
|
31
|
+
require('./chunk-COGTRVWW.js');
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
exports.buildToolExecuteBaseEnvelope = _chunkMJ4OWXFMjs.buildToolExecuteBaseEnvelope; exports.extractToolExecutionWarningMessages = _chunkMJ4OWXFMjs.extractToolExecutionWarningMessages; exports.printCompactToolContract = _chunkMJ4OWXFMjs.printCompactToolContract; exports.printMonitorTypeContract = _chunkMJ4OWXFMjs.printMonitorTypeContract; exports.registerToolsCommands = _chunkMJ4OWXFMjs.registerToolsCommands; exports.seedToolListScript = _chunkMJ4OWXFMjs.seedToolListScript;
|
|
@@ -5,28 +5,28 @@ import {
|
|
|
5
5
|
printMonitorTypeContract,
|
|
6
6
|
registerToolsCommands,
|
|
7
7
|
seedToolListScript
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QN55SQYI.mjs";
|
|
9
9
|
import "./chunk-OSDXE27V.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-KTBMDDEQ.mjs";
|
|
11
|
+
import "./chunk-BZAMOCPA.mjs";
|
|
12
12
|
import "./chunk-IHG7UAHD.mjs";
|
|
13
13
|
import "./chunk-OVDNJAJN.mjs";
|
|
14
14
|
import "./chunk-LJ5747UC.mjs";
|
|
15
15
|
import "./chunk-FIVKWNMT.mjs";
|
|
16
16
|
import "./chunk-TXZVVBQZ.mjs";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-CLJGSOVM.mjs";
|
|
18
|
+
import "./chunk-C27DGNII.mjs";
|
|
19
19
|
import "./chunk-6IKARAYD.mjs";
|
|
20
20
|
import "./chunk-JI2B4RZP.mjs";
|
|
21
21
|
import "./chunk-EIMG75BT.mjs";
|
|
22
22
|
import "./chunk-UBKA33KY.mjs";
|
|
23
23
|
import "./chunk-WXLOW623.mjs";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-VNO3VAJT.mjs";
|
|
25
|
+
import "./chunk-BYBRENKM.mjs";
|
|
26
26
|
import "./chunk-YHPYUZZX.mjs";
|
|
27
27
|
import "./chunk-DLIRSHV6.mjs";
|
|
28
28
|
import "./chunk-NXGCO4JB.mjs";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-JHNYOTWR.mjs";
|
|
30
30
|
import "./chunk-WZYKRD7T.mjs";
|
|
31
31
|
import "./chunk-KRD6H754.mjs";
|
|
32
32
|
export {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
var _chunkJ3OZIYU4js = require('./chunk-J3OZIYU4.js');
|
|
10
|
+
require('./chunk-JZ7TJL7G.js');
|
|
11
|
+
require('./chunk-VYDYDELF.js');
|
|
12
|
+
require('./chunk-WJYPBHTE.js');
|
|
13
|
+
require('./chunk-4BWZA57I.js');
|
|
14
|
+
require('./chunk-V4PLPRWQ.js');
|
|
15
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
16
|
+
require('./chunk-XNYIZMNQ.js');
|
|
17
|
+
require('./chunk-7P5AA3SN.js');
|
|
18
|
+
require('./chunk-77FZLY5L.js');
|
|
19
|
+
require('./chunk-OG64RBAC.js');
|
|
20
|
+
require('./chunk-COGTRVWW.js');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
exports.canAutomaticallyApplyUpdatePlan = _chunkJ3OZIYU4js.canAutomaticallyApplyUpdatePlan; exports.publishedVersionSupportsPin = _chunkJ3OZIYU4js.publishedVersionSupportsPin; exports.registerUpdateCommand = _chunkJ3OZIYU4js.registerUpdateCommand; exports.resolveUpdatePlan = _chunkJ3OZIYU4js.resolveUpdatePlan; exports.runAutomaticUpdatePlan = _chunkJ3OZIYU4js.runAutomaticUpdatePlan; exports.runUpdateCommand = _chunkJ3OZIYU4js.runUpdateCommand; exports.runUpdatePlan = _chunkJ3OZIYU4js.runUpdatePlan;
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
runAutomaticUpdatePlan,
|
|
7
7
|
runUpdateCommand,
|
|
8
8
|
runUpdatePlan
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-GJECLPJP.mjs";
|
|
10
|
+
import "./chunk-RXVJYS76.mjs";
|
|
11
|
+
import "./chunk-HPEIY4UR.mjs";
|
|
12
12
|
import "./chunk-GAMFK2ZP.mjs";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-VNO3VAJT.mjs";
|
|
14
|
+
import "./chunk-BYBRENKM.mjs";
|
|
15
15
|
import "./chunk-YHPYUZZX.mjs";
|
|
16
16
|
import "./chunk-DLIRSHV6.mjs";
|
|
17
17
|
import "./chunk-NXGCO4JB.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-JHNYOTWR.mjs";
|
|
19
19
|
import "./chunk-WZYKRD7T.mjs";
|
|
20
20
|
import "./chunk-KRD6H754.mjs";
|
|
21
21
|
export {
|
|
@@ -6,7 +6,7 @@ var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
|
|
|
6
6
|
var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkDJSPH5T2js = require('./chunk-DJSPH5T2.js');
|
|
10
10
|
require('./chunk-S6R3OX7B.js');
|
|
11
11
|
require('./chunk-UHNDVD3P.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 _chunk4BWZA57Ijs = require('./chunk-4BWZA57I.js');
|
|
20
|
+
require('./chunk-V4PLPRWQ.js');
|
|
21
21
|
require('./chunk-Q2E4E4FJ.js');
|
|
22
22
|
require('./chunk-XNYIZMNQ.js');
|
|
23
23
|
require('./chunk-7P5AA3SN.js');
|
|
24
|
-
require('./chunk-
|
|
24
|
+
require('./chunk-77FZLY5L.js');
|
|
25
25
|
require('./chunk-OG64RBAC.js');
|
|
26
26
|
require('./chunk-COGTRVWW.js');
|
|
27
27
|
|
|
@@ -1603,18 +1603,18 @@ function noticeToStderr(command) {
|
|
|
1603
1603
|
);
|
|
1604
1604
|
}
|
|
1605
1605
|
function emitPassThrough(command, payload, options) {
|
|
1606
|
-
const json =
|
|
1606
|
+
const json = _chunk4BWZA57Ijs.shouldEmitJson.call(void 0, options.json);
|
|
1607
1607
|
const deprecation = migrationDeprecation(command);
|
|
1608
1608
|
if (json) {
|
|
1609
1609
|
const enriched = payload && typeof payload === "object" && !Array.isArray(payload) ? { ...payload, deprecation } : { result: payload, deprecation };
|
|
1610
|
-
|
|
1610
|
+
_chunk4BWZA57Ijs.printJson.call(void 0, enriched);
|
|
1611
1611
|
return;
|
|
1612
1612
|
}
|
|
1613
|
-
|
|
1613
|
+
_chunk4BWZA57Ijs.printJson.call(void 0, payload);
|
|
1614
1614
|
noticeToStderr(command);
|
|
1615
1615
|
}
|
|
1616
1616
|
function client() {
|
|
1617
|
-
return new (0,
|
|
1617
|
+
return new (0, _chunkDJSPH5T2js.DeeplineClient)();
|
|
1618
1618
|
}
|
|
1619
1619
|
function clientWithTimeout(timeoutSeconds) {
|
|
1620
1620
|
if (!timeoutSeconds) return client();
|
|
@@ -1622,7 +1622,7 @@ function clientWithTimeout(timeoutSeconds) {
|
|
|
1622
1622
|
if (!Number.isFinite(seconds) || seconds <= 0) {
|
|
1623
1623
|
throw new Error("--timeout must be a positive number of seconds.");
|
|
1624
1624
|
}
|
|
1625
|
-
return new (0,
|
|
1625
|
+
return new (0, _chunkDJSPH5T2js.DeeplineClient)({ timeout: seconds * 1e3 });
|
|
1626
1626
|
}
|
|
1627
1627
|
function readStatus(payload) {
|
|
1628
1628
|
if (!payload || typeof payload !== "object") return null;
|
|
@@ -1676,7 +1676,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1676
1676
|
await _promises.writeFile.call(void 0, file, compiled.sourceCode, "utf8");
|
|
1677
1677
|
let published = false;
|
|
1678
1678
|
if (publish) {
|
|
1679
|
-
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
1679
|
+
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-ZKYHO2KC.js")));
|
|
1680
1680
|
const code = await handlePlayPublish([file]);
|
|
1681
1681
|
if (code !== 0) {
|
|
1682
1682
|
return {
|
|
@@ -1751,10 +1751,10 @@ async function handleTransform(id, options) {
|
|
|
1751
1751
|
for (const workflowId of ids) {
|
|
1752
1752
|
outcomes.push(await transformOne(api, workflowId, outDir, publish));
|
|
1753
1753
|
}
|
|
1754
|
-
|
|
1754
|
+
_chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
|
|
1755
1755
|
{ outcomes, deprecation: null },
|
|
1756
1756
|
{
|
|
1757
|
-
json:
|
|
1757
|
+
json: _chunk4BWZA57Ijs.shouldEmitJson.call(void 0, options.json),
|
|
1758
1758
|
text: renderTransformReport(outcomes)
|
|
1759
1759
|
}
|
|
1760
1760
|
);
|
|
@@ -1775,11 +1775,11 @@ async function handleDelete(id, options) {
|
|
|
1775
1775
|
}
|
|
1776
1776
|
async function handleDisable(id, options) {
|
|
1777
1777
|
const result = await client().disableWorkflow(id);
|
|
1778
|
-
|
|
1778
|
+
_chunk4BWZA57Ijs.printJson.call(void 0, result);
|
|
1779
1779
|
}
|
|
1780
1780
|
async function handleEnable(id, options) {
|
|
1781
1781
|
const result = await client().enableWorkflow(id);
|
|
1782
|
-
|
|
1782
|
+
_chunk4BWZA57Ijs.printJson.call(void 0, result);
|
|
1783
1783
|
}
|
|
1784
1784
|
async function handleApply(options) {
|
|
1785
1785
|
const body = await readJsonOption(options.payload, options.file);
|
|
@@ -1844,7 +1844,7 @@ async function handleTail(id, runId, options) {
|
|
|
1844
1844
|
if (status && TERMINAL_RUN_STATUSES.has(status) || Date.now() > deadline) {
|
|
1845
1845
|
return;
|
|
1846
1846
|
}
|
|
1847
|
-
await
|
|
1847
|
+
await _chunk4BWZA57Ijs.sleep.call(void 0, intervalMs);
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
1850
|
function registerWorkflowCommands(program) {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-H7HIDGZ7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DeeplineClient
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-C27DGNII.mjs";
|
|
10
10
|
import "./chunk-6IKARAYD.mjs";
|
|
11
11
|
import "./chunk-JI2B4RZP.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-VNO3VAJT.mjs";
|
|
20
|
+
import "./chunk-BYBRENKM.mjs";
|
|
21
21
|
import "./chunk-YHPYUZZX.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
23
|
import "./chunk-NXGCO4JB.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-JHNYOTWR.mjs";
|
|
25
25
|
import "./chunk-WZYKRD7T.mjs";
|
|
26
26
|
import "./chunk-KRD6H754.mjs";
|
|
27
27
|
|
|
@@ -1676,7 +1676,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1676
1676
|
await writeFile(file, compiled.sourceCode, "utf8");
|
|
1677
1677
|
let published = false;
|
|
1678
1678
|
if (publish) {
|
|
1679
|
-
const { handlePlayPublish } = await import("./play-
|
|
1679
|
+
const { handlePlayPublish } = await import("./play-QXBNDI6C.mjs");
|
|
1680
1680
|
const code = await handlePlayPublish([file]);
|
|
1681
1681
|
if (code !== 0) {
|
|
1682
1682
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { g as PlayCompilerManifest, ak as ToolResultBilling, Y as BillingEntitlements } from './compiler-manifest-
|
|
2
|
+
import { g as PlayCompilerManifest, ak as ToolResultBilling, Y as BillingEntitlements, ap as BillingBenefitValues } from './compiler-manifest-N77W75Py.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { MonitorFleetDefinition } from './monitor-fleet-contract.mjs';
|
|
5
5
|
|
|
@@ -5706,11 +5706,13 @@ type TargetBillingOperation = {
|
|
|
5706
5706
|
next_action?: string | null;
|
|
5707
5707
|
};
|
|
5708
5708
|
type TargetBillingPlan = {
|
|
5709
|
-
sku: 'payg-v1' | 'builder-v1' | 'growth-v1' | 'growth-canary-v1' | 'team-v1';
|
|
5709
|
+
sku: 'payg-v1' | 'builder-v1' | 'growth-v1' | 'growth-canary-v1' | 'team-v1' | 'team-v2' | 'legacy-growth-v1';
|
|
5710
5710
|
name: string;
|
|
5711
5711
|
recurring_price_usd: number;
|
|
5712
5712
|
interval: 'month' | 'year';
|
|
5713
5713
|
included_credits: number;
|
|
5714
|
+
/** Offered benefit terms; omitted by older API deployments. */
|
|
5715
|
+
benefits?: Partial<BillingBenefitValues>;
|
|
5714
5716
|
purchased_credit_price_usd: number;
|
|
5715
5717
|
acquisition_enabled: boolean;
|
|
5716
5718
|
};
|