deepline 0.3.476 → 0.3.478
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-core.ts +5 -4
- package/dist/bundling-sources/sdk/src/http-core.ts +84 -3
- package/dist/bundling-sources/sdk/src/http.ts +2 -0
- package/dist/bundling-sources/sdk/src/play.ts +8 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +33 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +10 -2
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +77 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +11 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +77 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +83 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +215 -22
- package/dist/bundling-sources/shared_libs/play-runtime/worker-api-types.ts +42 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +13 -12
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +5 -2
- package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +37 -12
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +1 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +29 -0
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +15 -0
- package/dist/cli/{auth-A22724UX.mjs → auth-SA4DJCSO.mjs} +5 -5
- package/dist/cli/auth-U5SNVC5F.js +41 -0
- package/dist/cli/{billing-T5Q6OO6M.js → billing-462SAHWX.js} +107 -87
- package/dist/cli/{billing-IIBEZ6J7.mjs → billing-Z4D35MV5.mjs} +34 -14
- package/dist/cli/{chunk-NPNQCPFP.mjs → chunk-2FTUPGTN.mjs} +2 -2
- package/dist/cli/{chunk-2WEPQSA2.mjs → chunk-2JS5DNVX.mjs} +5 -5
- package/dist/cli/{chunk-L45IECBZ.js → chunk-2MSKG4ER.js} +7 -6
- package/dist/cli/{chunk-JU2KBLOR.mjs → chunk-3LTLQAU4.mjs} +4 -4
- package/dist/cli/{chunk-ZV4OWYLZ.mjs → chunk-3V7INABZ.mjs} +2 -2
- package/dist/cli/{chunk-VPAVNEDQ.mjs → chunk-4C3TMIF3.mjs} +4 -4
- package/dist/cli/{chunk-H3GOAZHV.mjs → chunk-4RJRGQ5Y.mjs} +2 -2
- package/dist/cli/{chunk-AS3VECCY.js → chunk-4RV7U3RP.js} +7 -7
- package/dist/cli/{chunk-UHTJWDYB.mjs → chunk-645RNF2Y.mjs} +1 -1
- package/dist/cli/{chunk-TEJSRJNH.js → chunk-6EEMW7YP.js} +8 -8
- package/dist/cli/{chunk-ZOXV6WFI.mjs → chunk-75DAGCEX.mjs} +1 -1
- package/dist/cli/{chunk-NTJDZURV.mjs → chunk-7HTWT3Z4.mjs} +2 -2
- package/dist/cli/chunk-7I4B6V2S.mjs +127 -0
- package/dist/cli/{chunk-MZSLFWOT.js → chunk-7UFFWPQ2.js} +13 -9
- package/dist/cli/{chunk-5FBCMLJW.js → chunk-A5LPDB6N.js} +6 -6
- package/dist/cli/{chunk-4YWYLHED.mjs → chunk-ABBP5ZCI.mjs} +3 -3
- package/dist/cli/{chunk-IC3BZJR7.js → chunk-AQYSZYNE.js} +8 -8
- package/dist/cli/{chunk-WTPRRKZA.js → chunk-AYW242XF.js} +37 -37
- package/dist/cli/{chunk-CFSCHLNQ.mjs → chunk-BLAZVZVD.mjs} +23 -5
- package/dist/cli/{chunk-KGLIDLJ2.js → chunk-D2LKEQKI.js} +5 -5
- package/dist/cli/{chunk-4WMIMSSI.mjs → chunk-F2SJYUBW.mjs} +5 -5
- package/dist/cli/{chunk-KCP6XNRR.mjs → chunk-F44O4PEP.mjs} +1 -1
- package/dist/cli/{chunk-EBWYNNTJ.js → chunk-HMUBLAT4.js} +5 -5
- package/dist/cli/{chunk-UYA7LJGC.mjs → chunk-IL5AF6AR.mjs} +4 -2
- package/dist/cli/{chunk-B7PEXXRW.js → chunk-IWYWZXCA.js} +53 -53
- package/dist/cli/{chunk-PGNLD6L6.js → chunk-J3ZYRN5L.js} +10 -10
- package/dist/cli/{chunk-VKBZLV2K.mjs → chunk-JH775FF6.mjs} +1 -1
- package/dist/cli/{chunk-5AEEINTU.js → chunk-KBBZXWXF.js} +63 -11
- package/dist/cli/{chunk-FVPT44IJ.mjs → chunk-M5USVQ33.mjs} +55 -3
- package/dist/cli/{chunk-2YHDNHRR.mjs → chunk-N573OK4W.mjs} +4 -4
- package/dist/cli/{chunk-WFVEMDQL.js → chunk-OKAZHDYN.js} +4 -2
- package/dist/cli/{chunk-J4FCTFQS.mjs → chunk-PHBOI24Y.mjs} +10 -10
- package/dist/cli/{chunk-D7EQ4PI5.mjs → chunk-PLJV6SX4.mjs} +1 -1
- package/dist/cli/{chunk-YQOWMQEW.mjs → chunk-PPHHPAQV.mjs} +1 -1
- package/dist/cli/{chunk-CBVCCXIY.js → chunk-PZHRNSMU.js} +21 -21
- package/dist/cli/{chunk-LJFIUT5R.mjs → chunk-QB3Q73LP.mjs} +2 -2
- package/dist/cli/{chunk-ULKGYVYP.js → chunk-QVZNUQAP.js} +2 -2
- package/dist/cli/{chunk-A6BETJ2A.js → chunk-S3BKOCVB.js} +1 -1
- package/dist/cli/{chunk-F5PYBZ2H.mjs → chunk-S7UEKKOX.mjs} +2 -1
- package/dist/cli/{chunk-W3BHZUPL.js → chunk-SCHE5QRN.js} +3 -3
- package/dist/cli/{chunk-YEJDFZJP.js → chunk-SXY4DOVA.js} +16 -16
- package/dist/cli/{chunk-LZCYDU6Q.mjs → chunk-TLF3KGWG.mjs} +2 -2
- package/dist/cli/{chunk-5PYSYW63.js → chunk-TQWI7LJX.js} +26 -26
- package/dist/cli/{chunk-7HAUVMRF.js → chunk-TW3TTKW5.js} +3 -3
- package/dist/cli/{chunk-FK7SBMSZ.js → chunk-UXQVSDFP.js} +3 -3
- package/dist/cli/{chunk-HSANVBVL.js → chunk-V7I65ME7.js} +2 -2
- package/dist/cli/{chunk-6YZYCKWD.js → chunk-VE25VUTE.js} +70 -52
- package/dist/cli/{chunk-VLYUFZUT.js → chunk-XFY3JOP2.js} +9 -9
- package/dist/cli/{chunk-MYYOCJZ2.js → chunk-XOORR6P3.js} +93 -93
- package/dist/cli/chunk-YGCKMI5P.js +127 -0
- package/dist/cli/{chunk-3A7TDUZV.mjs → chunk-ZBSUXXZS.mjs} +13 -9
- package/dist/cli/{chunk-NREO7TT4.mjs → chunk-ZSU3C4ST.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-GPVCETS2.mjs → csv-3SNWBO5F.mjs} +4 -4
- package/dist/cli/{csv-FXOQ2PBE.js → csv-LAYTDYIF.js} +13 -13
- package/dist/cli/{db-F5UJTBGP.mjs → db-72JKGQSK.mjs} +6 -6
- package/dist/cli/{db-LXYV4GPZ.js → db-OOUOSURL.js} +27 -27
- package/dist/cli/describe-7HYV44MO.js +48 -0
- package/dist/cli/{describe-GYWCI7I6.mjs → describe-KDPNOEUJ.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-6NL2YW76.mjs → executions-O6JS3UKX.mjs} +6 -6
- package/dist/cli/{executions-6SJKTY2L.js → executions-RJNMGJEE.js} +8 -8
- package/dist/cli/{feedback-E3HULSQD.js → feedback-FXB6NV3Y.js} +8 -8
- package/dist/cli/{feedback-7AMQCNTB.mjs → feedback-T3JH3CWC.mjs} +4 -4
- package/dist/cli/git-5LTKPXGN.js +25 -0
- package/dist/cli/{git-74IS2EFH.mjs → git-6KAQSH5J.mjs} +5 -5
- package/dist/cli/index.js +161 -142
- package/dist/cli/index.mjs +65 -46
- package/dist/cli/{legacy-noops-52FFRTRZ.mjs → legacy-noops-7HDGEGTK.mjs} +5 -5
- package/dist/cli/{legacy-noops-ALWUQPKS.js → legacy-noops-PAOGRKUK.js} +8 -8
- package/dist/cli/{monitors-Z4ADOGTY.js → monitors-KQFI7TVJ.js} +91 -91
- package/dist/cli/{monitors-VTJIWWW2.mjs → monitors-LE2AYK3Z.mjs} +7 -7
- package/dist/cli/{org-2BTEKDF5.js → org-J6XFHDJE.js} +72 -72
- package/dist/cli/{org-7GU6H7JL.mjs → org-Z4DMJ72I.mjs} +6 -6
- package/dist/cli/{pages-I6PFQGEU.mjs → pages-5LYS6Y4I.mjs} +6 -6
- package/dist/cli/{pages-MG36E7RY.js → pages-FIXBZQJG.js} +17 -17
- package/dist/cli/{play-VN52S3RV.js → play-D7WPXADH.js} +604 -680
- package/dist/cli/{play-7KFSLJX2.mjs → play-GILXXIN7.mjs} +45 -121
- package/dist/cli/{providers-W5XLII66.js → providers-KN7YACT6.js} +9 -9
- package/dist/cli/{providers-D46JDEL2.mjs → providers-OQWL4Q4W.mjs} +6 -6
- package/dist/cli/{quickstart-4GTXBZHY.mjs → quickstart-2LRIORFM.mjs} +4 -4
- package/dist/cli/{quickstart-TIZAC63S.js → quickstart-M2OBP3W3.js} +6 -6
- package/dist/cli/{run-FOVEMYYX.js → run-6YZZO7VM.js} +36 -36
- package/dist/cli/{run-LE3D4LVU.mjs → run-GYRBKQZT.mjs} +22 -22
- package/dist/cli/search-OVKWA4AV.js +32 -0
- package/dist/cli/{search-6YL6WJMQ.mjs → search-VUPK6BNU.mjs} +7 -7
- package/dist/cli/{secrets-CSTTTMZH.js → secrets-RE3UMZB7.js} +15 -15
- package/dist/cli/{secrets-D66U6RTT.mjs → secrets-ULRGU7NM.mjs} +6 -6
- package/dist/cli/{sessions-XIO3OUER.mjs → sessions-2ZZVJ3P2.mjs} +5 -5
- package/dist/cli/{sessions-45M2NRAA.js → sessions-T4UMHNDW.js} +6 -6
- package/dist/cli/{settings-N42CVKSK.js → settings-BRV6AYFM.js} +78 -78
- package/dist/cli/{settings-R33X2D5T.mjs → settings-PDY4TJU6.mjs} +11 -11
- package/dist/cli/{setup-CBBC4FQP.mjs → setup-CXL6C5Z5.mjs} +9 -9
- package/dist/cli/{setup-HREDVNF2.js → setup-JONYJYBK.js} +44 -44
- package/dist/cli/{skills-4X6WS2PT.mjs → skills-TOMVQD5O.mjs} +7 -7
- package/dist/cli/skills-UK5AK35I.js +33 -0
- package/dist/cli/{tools-YR46YFR2.mjs → tools-B2LJK4MM.mjs} +16 -16
- package/dist/cli/tools-HH6E5G7J.js +55 -0
- package/dist/cli/{update-5CYAZX5X.mjs → update-CD6T2REC.mjs} +9 -9
- package/dist/cli/update-EGXT3EIJ.js +33 -0
- package/dist/cli/{workflow-M7AA722W.js → workflow-PZML43E2.js} +17 -17
- package/dist/cli/{workflow-NKQ3CWPK.mjs → workflow-ZAOBP6I7.mjs} +7 -7
- package/dist/{client-AjmfA5nR.d.mts → client-B1s1yJdT.d.mts} +1 -1
- package/dist/{client-DMyY-QL8.d.ts → client-DqUseRzd.d.ts} +1 -1
- package/dist/{client-core-C705vFyV.d.ts → client-core-Bd7tP9Uz.d.ts} +45 -6
- package/dist/{client-core-CpBbvLEX.d.mts → client-core-BijQEQ70.d.mts} +45 -6
- package/dist/{compiler-manifest-hqIAukR0.d.mts → compiler-manifest-B1m5tRzz.d.mts} +23 -17
- package/dist/{compiler-manifest-hqIAukR0.d.ts → compiler-manifest-B1m5tRzz.d.ts} +23 -17
- package/dist/{errors-CRO2qQ6k.d.ts → errors-3g71OMXy.d.ts} +1 -1
- package/dist/{errors-DIHVetNY.d.mts → errors-QiC6am-q.d.mts} +1 -1
- package/dist/{index-DVZ_X4Gb.d.mts → index-Biz5toO4.d.mts} +1 -1
- package/dist/{index-B8DVoeYt.d.ts → index-CIBiwzhK.d.ts} +1 -1
- package/dist/index.d.mts +15 -9
- package/dist/index.d.ts +15 -9
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -110
- 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 -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/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-2ZY57Q7W.js +0 -41
- package/dist/cli/describe-IB7SUIUT.js +0 -48
- package/dist/cli/git-A2QIIMW5.js +0 -25
- package/dist/cli/search-HN6SVDQU.js +0 -32
- package/dist/cli/skills-QZ6HZX2T.js +0 -33
- package/dist/cli/tools-KFIH7UWB.js +0 -55
- package/dist/cli/update-VZLEJLWJ.js +0 -33
|
@@ -6,23 +6,23 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkVE25VUTEjs = require('./chunk-VE25VUTE.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkQVZNUQAPjs = require('./chunk-QVZNUQAP.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkAYW242XFjs = require('./chunk-AYW242XF.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
20
|
+
var _chunkIWYWZXCAjs = require('./chunk-IWYWZXCA.js');
|
|
21
|
+
require('./chunk-SCHE5QRN.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk4RV7U3RPjs = require('./chunk-4RV7U3RP.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -31,14 +31,14 @@ var _chunkAS3VECCYjs = require('./chunk-AS3VECCY.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkTW3TTKW5js = require('./chunk-TW3TTKW5.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkKBBZXWXFjs = require('./chunk-KBBZXWXF.js');
|
|
38
38
|
require('./chunk-ALJJRZNJ.js');
|
|
39
39
|
require('./chunk-XNYIZMNQ.js');
|
|
40
40
|
require('./chunk-DIAWYWT5.js');
|
|
41
|
-
require('./chunk-
|
|
41
|
+
require('./chunk-S3BKOCVB.js');
|
|
42
42
|
require('./chunk-OG64RBAC.js');
|
|
43
43
|
|
|
44
44
|
|
|
@@ -293,7 +293,7 @@ function normalizeScope(value) {
|
|
|
293
293
|
}
|
|
294
294
|
function resolveScopeRoot(scope) {
|
|
295
295
|
if (scope === "global") return null;
|
|
296
|
-
const target =
|
|
296
|
+
const target = _chunkTW3TTKW5js.resolveProjectPinTarget.call(void 0, );
|
|
297
297
|
if (!target.ok) {
|
|
298
298
|
throw new Error(
|
|
299
299
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -310,7 +310,7 @@ function openSetupAuthorization(authorizationUrl, options = {}) {
|
|
|
310
310
|
const url = authorizationUrl.trim();
|
|
311
311
|
if (!url) return "failed";
|
|
312
312
|
if (options.open) return options.open(url);
|
|
313
|
-
const result =
|
|
313
|
+
const result = _chunk4RV7U3RPjs.openInBrowser.call(void 0, url, { deduplicate: false });
|
|
314
314
|
return result === "opened" ? "opened" : "failed";
|
|
315
315
|
}
|
|
316
316
|
function buildPendingAuthorizationOutput(input) {
|
|
@@ -352,7 +352,7 @@ function buildPendingAuthorizationOutput(input) {
|
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
354
|
function setupStatePath(baseUrl, scope, root) {
|
|
355
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0,
|
|
355
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "state.json") : _path.join.call(void 0, _chunkTW3TTKW5js.sdkCliStateDirPath.call(void 0, baseUrl), "setup.json");
|
|
356
356
|
}
|
|
357
357
|
async function captureStdout(run) {
|
|
358
358
|
let stdout = "";
|
|
@@ -395,7 +395,7 @@ function isNpmManagedDeeplinePath(path) {
|
|
|
395
395
|
}
|
|
396
396
|
function removeKnownLegacyPaths(baseUrl) {
|
|
397
397
|
return CliInstallation.forUser({
|
|
398
|
-
baseUrlSlug:
|
|
398
|
+
baseUrlSlug: _chunkTW3TTKW5js.baseUrlSlug.call(void 0, baseUrl),
|
|
399
399
|
home: _os.homedir.call(void 0, )
|
|
400
400
|
}).removeRetiredArtifacts();
|
|
401
401
|
}
|
|
@@ -433,7 +433,7 @@ function resolvePersistentGlobalCommand(dependencies = {}) {
|
|
|
433
433
|
const homebrewCommand = pathClis.find(isHomebrewFormulaCommand);
|
|
434
434
|
if (homebrewCommand) return homebrewCommand;
|
|
435
435
|
for (const manager of ["npm", "pnpm"]) {
|
|
436
|
-
const plan =
|
|
436
|
+
const plan = _chunkIWYWZXCAjs.resolveShellSpawn.call(void 0,
|
|
437
437
|
manager,
|
|
438
438
|
manager === "npm" ? ["prefix", "-g"] : ["bin", "-g"],
|
|
439
439
|
platform
|
|
@@ -502,7 +502,7 @@ function writeSetupState(input) {
|
|
|
502
502
|
{
|
|
503
503
|
schemaVersion: 2,
|
|
504
504
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
505
|
-
cliVersion:
|
|
505
|
+
cliVersion: _chunkKBBZXWXFjs.SDK_VERSION,
|
|
506
506
|
host: input.baseUrl,
|
|
507
507
|
scope: input.scope,
|
|
508
508
|
root: input.root,
|
|
@@ -537,8 +537,8 @@ function failSetupPhase(phases, phase, code) {
|
|
|
537
537
|
}
|
|
538
538
|
function rollbackCommand(scope, root) {
|
|
539
539
|
const prefix = scope === "local" && root ? ` --prefix ${JSON.stringify(_path.join.call(void 0, root, ".deepline", "runtime"))}` : "";
|
|
540
|
-
const allowScriptsFlag =
|
|
541
|
-
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${
|
|
540
|
+
const allowScriptsFlag = _chunkQVZNUQAPjs.npmSupportsAllowScripts.call(void 0, _chunkQVZNUQAPjs.readNpmVersion.call(void 0, process.env)) ? " --allow-scripts=esbuild" : "";
|
|
541
|
+
return `npm install -g${prefix} --no-audit --no-fund --include=optional${allowScriptsFlag} deepline@${_chunkKBBZXWXFjs.SDK_VERSION}`;
|
|
542
542
|
}
|
|
543
543
|
function setupResumeCommand(baseUrl, scope, orgName) {
|
|
544
544
|
const hostPrefix = baseUrl === "https://code.deepline.com" ? "" : `DEEPLINE_HOST_URL=${JSON.stringify(baseUrl)} `;
|
|
@@ -562,7 +562,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
562
562
|
status: "failed"
|
|
563
563
|
});
|
|
564
564
|
const retry = setupRetry(input);
|
|
565
|
-
|
|
565
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
566
566
|
{
|
|
567
567
|
ok: false,
|
|
568
568
|
status: "failed",
|
|
@@ -584,7 +584,7 @@ function reportSetupPhaseFailure(input) {
|
|
|
584
584
|
async function readAuthStatus(authScope) {
|
|
585
585
|
try {
|
|
586
586
|
const captured = await captureStdout(
|
|
587
|
-
() =>
|
|
587
|
+
() => _chunkVE25VUTEjs.handleStatus.call(void 0, [
|
|
588
588
|
"--json",
|
|
589
589
|
...authScope ? ["--auth-scope", authScope] : []
|
|
590
590
|
])
|
|
@@ -615,14 +615,14 @@ function reportSetupAuthStatusFailure(input) {
|
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
617
|
function buildDoctorAssessment(input) {
|
|
618
|
-
const skillsStatePath =
|
|
618
|
+
const skillsStatePath = _chunkAYW242XFjs.skillsStatePathForScope.call(void 0,
|
|
619
619
|
input.baseUrl,
|
|
620
620
|
input.scope,
|
|
621
621
|
input.root
|
|
622
622
|
);
|
|
623
623
|
const skillsState = parseCapturedJson(safeRead(skillsStatePath));
|
|
624
|
-
const apiKey = input.scope === "local" ?
|
|
625
|
-
const projectAuth = input.scope === "local" && apiKey ?
|
|
624
|
+
const apiKey = input.scope === "local" ? _chunkTW3TTKW5js.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkTW3TTKW5js.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
625
|
+
const projectAuth = input.scope === "local" && apiKey ? _chunkTW3TTKW5js.getResolvedProjectAuthSource.call(void 0, input.baseUrl, apiKey) : null;
|
|
626
626
|
const connected = _optionalChain([input, 'access', _4 => _4.authStatus, 'access', _5 => _5.payload, 'optionalAccess', _6 => _6.connected]) === true;
|
|
627
627
|
const authScopeOk = input.scope === "local" ? Boolean(projectAuth) : Boolean(apiKey && !projectAuth);
|
|
628
628
|
const skillsOk = _optionalChain([skillsState, 'optionalAccess', _7 => _7.scope]) === input.scope && typeof skillsState.skillsVersion === "string" && Array.isArray(skillsState.agents) && skillsState.agents.length > 0;
|
|
@@ -636,7 +636,7 @@ function buildDoctorAssessment(input) {
|
|
|
636
636
|
const checks = {
|
|
637
637
|
cli: {
|
|
638
638
|
ok: Boolean(cliPath) && cliScopeOk,
|
|
639
|
-
version:
|
|
639
|
+
version: _chunkKBBZXWXFjs.SDK_VERSION,
|
|
640
640
|
path: cliPath,
|
|
641
641
|
scope: input.scope
|
|
642
642
|
},
|
|
@@ -670,7 +670,7 @@ async function runDoctorCommand(options) {
|
|
|
670
670
|
scope = normalizeScope(options.scope);
|
|
671
671
|
root = resolveScopeRoot(scope);
|
|
672
672
|
} catch (error) {
|
|
673
|
-
|
|
673
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
674
674
|
{
|
|
675
675
|
ok: false,
|
|
676
676
|
status: "failed",
|
|
@@ -682,7 +682,7 @@ async function runDoctorCommand(options) {
|
|
|
682
682
|
);
|
|
683
683
|
return 2;
|
|
684
684
|
}
|
|
685
|
-
const baseUrl =
|
|
685
|
+
const baseUrl = _chunkTW3TTKW5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
686
686
|
const authScope = authScopeForSetup(scope);
|
|
687
687
|
const authStatus = await readAuthStatus(authScope);
|
|
688
688
|
const { ok, checks } = buildDoctorAssessment({
|
|
@@ -692,7 +692,7 @@ async function runDoctorCommand(options) {
|
|
|
692
692
|
authStatus
|
|
693
693
|
});
|
|
694
694
|
const gettingStarted = _chunk6V7KVRR5js.deeplineGtmGettingStartedPayload.call(void 0, );
|
|
695
|
-
|
|
695
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
696
696
|
{
|
|
697
697
|
ok,
|
|
698
698
|
status: ok ? "complete" : "failed",
|
|
@@ -737,7 +737,7 @@ function pendingResult(input) {
|
|
|
737
737
|
input.orgName
|
|
738
738
|
)
|
|
739
739
|
});
|
|
740
|
-
|
|
740
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
741
741
|
{
|
|
742
742
|
ok: true,
|
|
743
743
|
status: "authorization_pending",
|
|
@@ -774,7 +774,7 @@ function pendingResult(input) {
|
|
|
774
774
|
async function runSetupCommand(options) {
|
|
775
775
|
let orgName = _optionalChain([options, 'access', _19 => _19.orgName, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
|
|
776
776
|
if (options.orgName !== void 0 && !orgName) {
|
|
777
|
-
|
|
777
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
778
778
|
{
|
|
779
779
|
ok: false,
|
|
780
780
|
status: "failed",
|
|
@@ -792,7 +792,7 @@ async function runSetupCommand(options) {
|
|
|
792
792
|
scope = normalizeScope(options.scope);
|
|
793
793
|
root = resolveScopeRoot(scope);
|
|
794
794
|
} catch (error) {
|
|
795
|
-
|
|
795
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
796
796
|
{
|
|
797
797
|
ok: false,
|
|
798
798
|
status: "failed",
|
|
@@ -809,7 +809,7 @@ async function runSetupCommand(options) {
|
|
|
809
809
|
);
|
|
810
810
|
return 2;
|
|
811
811
|
}
|
|
812
|
-
const baseUrl =
|
|
812
|
+
const baseUrl = _chunkTW3TTKW5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
813
813
|
const previousState = readSetupState({ baseUrl, scope, root });
|
|
814
814
|
const { resumed, phases } = selectSetupProgress(previousState);
|
|
815
815
|
if (phases.cli.status !== "complete") {
|
|
@@ -896,7 +896,7 @@ async function runSetupCommand(options) {
|
|
|
896
896
|
process.stderr.write(`Installing Deepline skills (${scope})...
|
|
897
897
|
`);
|
|
898
898
|
const skills = await captureStdout(
|
|
899
|
-
() =>
|
|
899
|
+
() => _chunkAYW242XFjs.runSkillsCommand.call(void 0, { scope, json: true })
|
|
900
900
|
);
|
|
901
901
|
skillsPayload = parseCapturedJson(skills.stdout);
|
|
902
902
|
if (skills.exitCode !== 0) {
|
|
@@ -937,11 +937,11 @@ async function runSetupCommand(options) {
|
|
|
937
937
|
});
|
|
938
938
|
} else {
|
|
939
939
|
skillsPayload = parseCapturedJson(
|
|
940
|
-
safeRead(
|
|
940
|
+
safeRead(_chunkAYW242XFjs.skillsStatePathForScope.call(void 0, baseUrl, scope, root))
|
|
941
941
|
);
|
|
942
942
|
}
|
|
943
943
|
const authScope = authScopeForSetup(scope);
|
|
944
|
-
const pendingAtStart =
|
|
944
|
+
const pendingAtStart = _chunkVE25VUTEjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
945
945
|
const replacingPendingClaim = Boolean(
|
|
946
946
|
pendingAtStart && orgName && _optionalChain([pendingAtStart, 'access', _24 => _24.orgName, 'optionalAccess', _25 => _25.toLowerCase, 'call', _26 => _26()]) !== orgName.toLowerCase()
|
|
947
947
|
);
|
|
@@ -968,9 +968,9 @@ async function runSetupCommand(options) {
|
|
|
968
968
|
const workspace = asRecord(auth.payload.workspace);
|
|
969
969
|
return typeof _optionalChain([workspace, 'optionalAccess', _29 => _29.name]) === "string" && workspace.name.trim().toLowerCase() === orgName.toLowerCase();
|
|
970
970
|
};
|
|
971
|
-
let pending = replacingPendingClaim ? null :
|
|
971
|
+
let pending = replacingPendingClaim ? null : _chunkVE25VUTEjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
972
972
|
if (replacingPendingClaim && connectedToRequestedWorkspace()) {
|
|
973
|
-
|
|
973
|
+
_chunkVE25VUTEjs.clearPendingClaim.call(void 0, baseUrl, authScope);
|
|
974
974
|
}
|
|
975
975
|
let authClaimSource = "none";
|
|
976
976
|
if (pending || !connectedToRequestedWorkspace()) {
|
|
@@ -979,7 +979,7 @@ async function runSetupCommand(options) {
|
|
|
979
979
|
if (!pending) {
|
|
980
980
|
process.stderr.write("Starting Deepline browser authorization...\n");
|
|
981
981
|
const registered = await captureStdout(
|
|
982
|
-
() =>
|
|
982
|
+
() => _chunkVE25VUTEjs.handleRegister.call(void 0, [
|
|
983
983
|
"--wait",
|
|
984
984
|
"no",
|
|
985
985
|
"--auth-scope",
|
|
@@ -1002,7 +1002,7 @@ async function runSetupCommand(options) {
|
|
|
1002
1002
|
extra: { detail: parseCapturedJson(registered.stdout), authScope }
|
|
1003
1003
|
});
|
|
1004
1004
|
}
|
|
1005
|
-
pending =
|
|
1005
|
+
pending = _chunkVE25VUTEjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1006
1006
|
if (!_optionalChain([pending, 'optionalAccess', _30 => _30.claimUrl])) {
|
|
1007
1007
|
return reportSetupPhaseFailure({
|
|
1008
1008
|
baseUrl,
|
|
@@ -1038,7 +1038,7 @@ async function runSetupCommand(options) {
|
|
|
1038
1038
|
"Waiting up to five minutes for Deepline approval...\n"
|
|
1039
1039
|
);
|
|
1040
1040
|
const waited = await captureStdout(
|
|
1041
|
-
() =>
|
|
1041
|
+
() => _chunkVE25VUTEjs.handleWait.call(void 0, ["--timeout", "300", "--auth-scope", authScope])
|
|
1042
1042
|
);
|
|
1043
1043
|
auth = await readAuthStatus(authScope);
|
|
1044
1044
|
const authFailure = reportSetupAuthStatusFailure({
|
|
@@ -1052,7 +1052,7 @@ async function runSetupCommand(options) {
|
|
|
1052
1052
|
json: options.json
|
|
1053
1053
|
});
|
|
1054
1054
|
if (authFailure !== null) return authFailure;
|
|
1055
|
-
if (waited.exitCode ===
|
|
1055
|
+
if (waited.exitCode === _chunkVE25VUTEjs.EXIT_WORKSPACE_MISMATCH) {
|
|
1056
1056
|
return reportSetupPhaseFailure({
|
|
1057
1057
|
baseUrl,
|
|
1058
1058
|
scope,
|
|
@@ -1060,7 +1060,7 @@ async function runSetupCommand(options) {
|
|
|
1060
1060
|
phases,
|
|
1061
1061
|
phase: "auth",
|
|
1062
1062
|
code: "REQUESTED_WORKSPACE_NOT_IN_ACCOUNT",
|
|
1063
|
-
exitCode:
|
|
1063
|
+
exitCode: _chunkVE25VUTEjs.EXIT_WORKSPACE_MISMATCH,
|
|
1064
1064
|
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.`,
|
|
1065
1065
|
orgName,
|
|
1066
1066
|
retryAutomatic: false,
|
|
@@ -1069,7 +1069,7 @@ async function runSetupCommand(options) {
|
|
|
1069
1069
|
});
|
|
1070
1070
|
}
|
|
1071
1071
|
if (!connectedToRequestedWorkspace()) {
|
|
1072
|
-
const stillPending =
|
|
1072
|
+
const stillPending = _chunkVE25VUTEjs.readPendingAuthClaim.call(void 0, baseUrl, authScope);
|
|
1073
1073
|
if (_optionalChain([stillPending, 'optionalAccess', _31 => _31.claimUrl])) {
|
|
1074
1074
|
return pendingResult({
|
|
1075
1075
|
baseUrl,
|
|
@@ -1152,7 +1152,7 @@ async function runSetupCommand(options) {
|
|
|
1152
1152
|
const installedAgents = Array.isArray(_optionalChain([skillsPayload, 'optionalAccess', _38 => _38.agents])) ? skillsPayload.agents.filter(
|
|
1153
1153
|
(agent) => typeof agent === "string"
|
|
1154
1154
|
) : [];
|
|
1155
|
-
await
|
|
1155
|
+
await _chunkVE25VUTEjs.reportSetupCompleted.call(void 0, {
|
|
1156
1156
|
baseUrl,
|
|
1157
1157
|
authScope,
|
|
1158
1158
|
scope,
|
|
@@ -1163,13 +1163,13 @@ async function runSetupCommand(options) {
|
|
|
1163
1163
|
const apiCheck = asRecord(_optionalChain([doctorChecks, 'optionalAccess', _40 => _40.api]));
|
|
1164
1164
|
const workspaceRecord = asRecord(_optionalChain([apiCheck, 'optionalAccess', _41 => _41.workspace]));
|
|
1165
1165
|
const workspaceName = typeof _optionalChain([workspaceRecord, 'optionalAccess', _42 => _42.name]) === "string" && workspaceRecord.name.trim() ? workspaceRecord.name.trim() : null;
|
|
1166
|
-
|
|
1166
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
1167
1167
|
{
|
|
1168
1168
|
ok: true,
|
|
1169
1169
|
status: "complete",
|
|
1170
1170
|
complete: true,
|
|
1171
1171
|
scope,
|
|
1172
|
-
cliVersion:
|
|
1172
|
+
cliVersion: _chunkKBBZXWXFjs.SDK_VERSION,
|
|
1173
1173
|
agents: installedAgents,
|
|
1174
1174
|
workspace: _nullishCoalesce(_optionalChain([apiCheck, 'optionalAccess', _43 => _43.workspace]), () => ( null)),
|
|
1175
1175
|
businessDomain: typeof _optionalChain([auth, 'access', _44 => _44.payload, 'optionalAccess', _45 => _45.businessDomain]) === "string" ? auth.payload.businessDomain : null,
|
|
@@ -8,16 +8,16 @@ import {
|
|
|
8
8
|
runSkillsCommand,
|
|
9
9
|
skillsStatePathForScope,
|
|
10
10
|
workspaceSkillRootsForAgents
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-3LTLQAU4.mjs";
|
|
12
|
+
import "./chunk-4C3TMIF3.mjs";
|
|
13
|
+
import "./chunk-PLJV6SX4.mjs";
|
|
14
|
+
import "./chunk-7HTWT3Z4.mjs";
|
|
15
|
+
import "./chunk-75DAGCEX.mjs";
|
|
16
|
+
import "./chunk-M5USVQ33.mjs";
|
|
17
17
|
import "./chunk-4QF2K7TM.mjs";
|
|
18
18
|
import "./chunk-DLIRSHV6.mjs";
|
|
19
19
|
import "./chunk-HBL4PM5Q.mjs";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-645RNF2Y.mjs";
|
|
21
21
|
import "./chunk-WZYKRD7T.mjs";
|
|
22
22
|
import "./chunk-KRD6H754.mjs";
|
|
23
23
|
export {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkAYW242XFjs = require('./chunk-AYW242XF.js');
|
|
12
|
+
require('./chunk-IWYWZXCA.js');
|
|
13
|
+
require('./chunk-SCHE5QRN.js');
|
|
14
|
+
require('./chunk-4RV7U3RP.js');
|
|
15
|
+
require('./chunk-TW3TTKW5.js');
|
|
16
|
+
require('./chunk-KBBZXWXF.js');
|
|
17
|
+
require('./chunk-ALJJRZNJ.js');
|
|
18
|
+
require('./chunk-XNYIZMNQ.js');
|
|
19
|
+
require('./chunk-DIAWYWT5.js');
|
|
20
|
+
require('./chunk-S3BKOCVB.js');
|
|
21
|
+
require('./chunk-OG64RBAC.js');
|
|
22
|
+
require('./chunk-COGTRVWW.js');
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
exports.buildSkillsPlan = _chunkAYW242XFjs.buildSkillsPlan; exports.detectSkillsAgents = _chunkAYW242XFjs.detectSkillsAgents; exports.inferActiveSkillsScope = _chunkAYW242XFjs.inferActiveSkillsScope; exports.isSkillsPlanCurrent = _chunkAYW242XFjs.isSkillsPlanCurrent; exports.missingInstalledSkills = _chunkAYW242XFjs.missingInstalledSkills; exports.registerSkillsCommand = _chunkAYW242XFjs.registerSkillsCommand; exports.runSkillsCommand = _chunkAYW242XFjs.runSkillsCommand; exports.skillsStatePathForScope = _chunkAYW242XFjs.skillsStatePathForScope; exports.workspaceSkillRootsForAgents = _chunkAYW242XFjs.workspaceSkillRootsForAgents;
|
|
@@ -9,36 +9,36 @@ import {
|
|
|
9
9
|
registerToolsCommands,
|
|
10
10
|
seedToolListScript,
|
|
11
11
|
writeToolReceipt
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-PHBOI24Y.mjs";
|
|
13
|
+
import "./chunk-PPHHPAQV.mjs";
|
|
14
|
+
import "./chunk-ABBP5ZCI.mjs";
|
|
15
15
|
import "./chunk-SD7QWZTV.mjs";
|
|
16
16
|
import "./chunk-JVHOS3K3.mjs";
|
|
17
17
|
import "./chunk-OVDNJAJN.mjs";
|
|
18
18
|
import "./chunk-LJ5747UC.mjs";
|
|
19
19
|
import "./chunk-FR2ILQ4G.mjs";
|
|
20
20
|
import "./chunk-FIVKWNMT.mjs";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-2FTUPGTN.mjs";
|
|
22
22
|
import "./chunk-3RGWTKK3.mjs";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-S7UEKKOX.mjs";
|
|
24
24
|
import "./chunk-L2VKAASU.mjs";
|
|
25
25
|
import "./chunk-NELMCOWK.mjs";
|
|
26
26
|
import "./chunk-S3A4IXBQ.mjs";
|
|
27
27
|
import "./chunk-UBKA33KY.mjs";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-F2SJYUBW.mjs";
|
|
29
|
+
import "./chunk-2JS5DNVX.mjs";
|
|
30
|
+
import "./chunk-JH775FF6.mjs";
|
|
31
|
+
import "./chunk-3LTLQAU4.mjs";
|
|
32
|
+
import "./chunk-F44O4PEP.mjs";
|
|
33
|
+
import "./chunk-4C3TMIF3.mjs";
|
|
34
|
+
import "./chunk-PLJV6SX4.mjs";
|
|
35
|
+
import "./chunk-7HTWT3Z4.mjs";
|
|
36
|
+
import "./chunk-75DAGCEX.mjs";
|
|
37
|
+
import "./chunk-M5USVQ33.mjs";
|
|
38
38
|
import "./chunk-4QF2K7TM.mjs";
|
|
39
39
|
import "./chunk-DLIRSHV6.mjs";
|
|
40
40
|
import "./chunk-HBL4PM5Q.mjs";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-645RNF2Y.mjs";
|
|
42
42
|
import "./chunk-WZYKRD7T.mjs";
|
|
43
43
|
import "./chunk-KRD6H754.mjs";
|
|
44
44
|
export {
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var _chunkXOORR6P3js = require('./chunk-XOORR6P3.js');
|
|
13
|
+
require('./chunk-UXQVSDFP.js');
|
|
14
|
+
require('./chunk-6EEMW7YP.js');
|
|
15
|
+
require('./chunk-4IOY2SCQ.js');
|
|
16
|
+
require('./chunk-IAYSWZDJ.js');
|
|
17
|
+
require('./chunk-AID3OYVJ.js');
|
|
18
|
+
require('./chunk-ZM2YPJQJ.js');
|
|
19
|
+
require('./chunk-J33TSWO5.js');
|
|
20
|
+
require('./chunk-HGFFYVXN.js');
|
|
21
|
+
require('./chunk-HMUBLAT4.js');
|
|
22
|
+
require('./chunk-NPZBE64X.js');
|
|
23
|
+
require('./chunk-2MSKG4ER.js');
|
|
24
|
+
require('./chunk-E4CABWXL.js');
|
|
25
|
+
require('./chunk-JDMR33HS.js');
|
|
26
|
+
require('./chunk-NMU3VR5U.js');
|
|
27
|
+
require('./chunk-XDVT3GOM.js');
|
|
28
|
+
require('./chunk-PZHRNSMU.js');
|
|
29
|
+
require('./chunk-SXY4DOVA.js');
|
|
30
|
+
require('./chunk-QVZNUQAP.js');
|
|
31
|
+
require('./chunk-AYW242XF.js');
|
|
32
|
+
require('./chunk-V7I65ME7.js');
|
|
33
|
+
require('./chunk-IWYWZXCA.js');
|
|
34
|
+
require('./chunk-SCHE5QRN.js');
|
|
35
|
+
require('./chunk-4RV7U3RP.js');
|
|
36
|
+
require('./chunk-TW3TTKW5.js');
|
|
37
|
+
require('./chunk-KBBZXWXF.js');
|
|
38
|
+
require('./chunk-ALJJRZNJ.js');
|
|
39
|
+
require('./chunk-XNYIZMNQ.js');
|
|
40
|
+
require('./chunk-DIAWYWT5.js');
|
|
41
|
+
require('./chunk-S3BKOCVB.js');
|
|
42
|
+
require('./chunk-OG64RBAC.js');
|
|
43
|
+
require('./chunk-COGTRVWW.js');
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
exports.buildToolExecuteBaseEnvelope = _chunkXOORR6P3js.buildToolExecuteBaseEnvelope; exports.executeToolForReceipt = _chunkXOORR6P3js.executeToolForReceipt; exports.extractToolExecutionWarningMessages = _chunkXOORR6P3js.extractToolExecutionWarningMessages; exports.getToolExecutionReceipt = _chunkXOORR6P3js.getToolExecutionReceipt; exports.parseToolExecuteTimeout = _chunkXOORR6P3js.parseToolExecuteTimeout; exports.printCompactToolContract = _chunkXOORR6P3js.printCompactToolContract; exports.printMonitorTypeContract = _chunkXOORR6P3js.printMonitorTypeContract; exports.registerToolsCommands = _chunkXOORR6P3js.registerToolsCommands; exports.seedToolListScript = _chunkXOORR6P3js.seedToolListScript; exports.writeToolReceipt = _chunkXOORR6P3js.writeToolReceipt;
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
runAutomaticUpdatePlan,
|
|
8
8
|
runUpdateCommand,
|
|
9
9
|
runUpdatePlan
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-2JS5DNVX.mjs";
|
|
11
|
+
import "./chunk-JH775FF6.mjs";
|
|
12
|
+
import "./chunk-3LTLQAU4.mjs";
|
|
13
|
+
import "./chunk-4C3TMIF3.mjs";
|
|
14
|
+
import "./chunk-PLJV6SX4.mjs";
|
|
15
|
+
import "./chunk-7HTWT3Z4.mjs";
|
|
16
|
+
import "./chunk-75DAGCEX.mjs";
|
|
17
|
+
import "./chunk-M5USVQ33.mjs";
|
|
18
18
|
import "./chunk-4QF2K7TM.mjs";
|
|
19
19
|
import "./chunk-DLIRSHV6.mjs";
|
|
20
20
|
import "./chunk-HBL4PM5Q.mjs";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-645RNF2Y.mjs";
|
|
22
22
|
import "./chunk-WZYKRD7T.mjs";
|
|
23
23
|
import "./chunk-KRD6H754.mjs";
|
|
24
24
|
export {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
var _chunkSXY4DOVAjs = require('./chunk-SXY4DOVA.js');
|
|
11
|
+
require('./chunk-QVZNUQAP.js');
|
|
12
|
+
require('./chunk-AYW242XF.js');
|
|
13
|
+
require('./chunk-IWYWZXCA.js');
|
|
14
|
+
require('./chunk-SCHE5QRN.js');
|
|
15
|
+
require('./chunk-4RV7U3RP.js');
|
|
16
|
+
require('./chunk-TW3TTKW5.js');
|
|
17
|
+
require('./chunk-KBBZXWXF.js');
|
|
18
|
+
require('./chunk-ALJJRZNJ.js');
|
|
19
|
+
require('./chunk-XNYIZMNQ.js');
|
|
20
|
+
require('./chunk-DIAWYWT5.js');
|
|
21
|
+
require('./chunk-S3BKOCVB.js');
|
|
22
|
+
require('./chunk-OG64RBAC.js');
|
|
23
|
+
require('./chunk-COGTRVWW.js');
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
exports.canAutomaticallyApplyUpdatePlan = _chunkSXY4DOVAjs.canAutomaticallyApplyUpdatePlan; exports.compareUpdateVersions = _chunkSXY4DOVAjs.compareUpdateVersions; exports.publishedVersionSupportsPin = _chunkSXY4DOVAjs.publishedVersionSupportsPin; exports.registerUpdateCommand = _chunkSXY4DOVAjs.registerUpdateCommand; exports.resolveUpdatePlan = _chunkSXY4DOVAjs.resolveUpdatePlan; exports.runAutomaticUpdatePlan = _chunkSXY4DOVAjs.runAutomaticUpdatePlan; exports.runUpdateCommand = _chunkSXY4DOVAjs.runUpdateCommand; exports.runUpdatePlan = _chunkSXY4DOVAjs.runUpdatePlan;
|
|
@@ -6,8 +6,8 @@ var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
|
|
|
6
6
|
var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
9
|
+
var _chunkHMUBLAT4js = require('./chunk-HMUBLAT4.js');
|
|
10
|
+
require('./chunk-2MSKG4ER.js');
|
|
11
11
|
require('./chunk-E4CABWXL.js');
|
|
12
12
|
require('./chunk-JDMR33HS.js');
|
|
13
13
|
require('./chunk-NMU3VR5U.js');
|
|
@@ -17,13 +17,13 @@ require('./chunk-XDVT3GOM.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
20
|
+
var _chunk4RV7U3RPjs = require('./chunk-4RV7U3RP.js');
|
|
21
|
+
require('./chunk-TW3TTKW5.js');
|
|
22
|
+
require('./chunk-KBBZXWXF.js');
|
|
23
23
|
require('./chunk-ALJJRZNJ.js');
|
|
24
24
|
require('./chunk-XNYIZMNQ.js');
|
|
25
25
|
require('./chunk-DIAWYWT5.js');
|
|
26
|
-
require('./chunk-
|
|
26
|
+
require('./chunk-S3BKOCVB.js');
|
|
27
27
|
require('./chunk-OG64RBAC.js');
|
|
28
28
|
require('./chunk-COGTRVWW.js');
|
|
29
29
|
|
|
@@ -1629,18 +1629,18 @@ function noticeToStderr(command) {
|
|
|
1629
1629
|
);
|
|
1630
1630
|
}
|
|
1631
1631
|
function emitPassThrough(command, payload, options) {
|
|
1632
|
-
const json =
|
|
1632
|
+
const json = _chunk4RV7U3RPjs.shouldEmitJson.call(void 0, options.json);
|
|
1633
1633
|
const deprecation = migrationDeprecation(command);
|
|
1634
1634
|
if (json) {
|
|
1635
1635
|
const enriched = payload && typeof payload === "object" && !Array.isArray(payload) ? { ...payload, deprecation } : { result: payload, deprecation };
|
|
1636
|
-
|
|
1636
|
+
_chunk4RV7U3RPjs.printJson.call(void 0, enriched);
|
|
1637
1637
|
return;
|
|
1638
1638
|
}
|
|
1639
|
-
|
|
1639
|
+
_chunk4RV7U3RPjs.printJson.call(void 0, payload);
|
|
1640
1640
|
noticeToStderr(command);
|
|
1641
1641
|
}
|
|
1642
1642
|
function client() {
|
|
1643
|
-
return new (0,
|
|
1643
|
+
return new (0, _chunkHMUBLAT4js.DeeplineClient)();
|
|
1644
1644
|
}
|
|
1645
1645
|
function clientWithTimeout(timeoutSeconds) {
|
|
1646
1646
|
if (!timeoutSeconds) return client();
|
|
@@ -1648,7 +1648,7 @@ function clientWithTimeout(timeoutSeconds) {
|
|
|
1648
1648
|
if (!Number.isFinite(seconds) || seconds <= 0) {
|
|
1649
1649
|
throw new Error("--timeout must be a positive number of seconds.");
|
|
1650
1650
|
}
|
|
1651
|
-
return new (0,
|
|
1651
|
+
return new (0, _chunkHMUBLAT4js.DeeplineClient)({ timeout: seconds * 1e3 });
|
|
1652
1652
|
}
|
|
1653
1653
|
function readStatus(payload) {
|
|
1654
1654
|
if (!payload || typeof payload !== "object") return null;
|
|
@@ -1702,7 +1702,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1702
1702
|
await _promises.writeFile.call(void 0, file, compiled.sourceCode, "utf8");
|
|
1703
1703
|
let published = false;
|
|
1704
1704
|
if (publish) {
|
|
1705
|
-
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
1705
|
+
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-D7WPXADH.js")));
|
|
1706
1706
|
const code = await handlePlayPublish([file]);
|
|
1707
1707
|
if (code !== 0) {
|
|
1708
1708
|
return {
|
|
@@ -1777,10 +1777,10 @@ async function handleTransform(id, options) {
|
|
|
1777
1777
|
for (const workflowId of ids) {
|
|
1778
1778
|
outcomes.push(await transformOne(api, workflowId, outDir, publish));
|
|
1779
1779
|
}
|
|
1780
|
-
|
|
1780
|
+
_chunk4RV7U3RPjs.printCommandEnvelope.call(void 0,
|
|
1781
1781
|
{ outcomes, deprecation: null },
|
|
1782
1782
|
{
|
|
1783
|
-
json:
|
|
1783
|
+
json: _chunk4RV7U3RPjs.shouldEmitJson.call(void 0, options.json),
|
|
1784
1784
|
text: renderTransformReport(outcomes)
|
|
1785
1785
|
}
|
|
1786
1786
|
);
|
|
@@ -1801,11 +1801,11 @@ async function handleDelete(id, options) {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
async function handleDisable(id, options) {
|
|
1803
1803
|
const result = await client().disableWorkflow(id);
|
|
1804
|
-
|
|
1804
|
+
_chunk4RV7U3RPjs.printJson.call(void 0, result);
|
|
1805
1805
|
}
|
|
1806
1806
|
async function handleEnable(id, options) {
|
|
1807
1807
|
const result = await client().enableWorkflow(id);
|
|
1808
|
-
|
|
1808
|
+
_chunk4RV7U3RPjs.printJson.call(void 0, result);
|
|
1809
1809
|
}
|
|
1810
1810
|
async function handleApply(options) {
|
|
1811
1811
|
const body = await readJsonOption(options.payload, options.file);
|
|
@@ -1870,7 +1870,7 @@ async function handleTail(id, runId, options) {
|
|
|
1870
1870
|
if (status && TERMINAL_RUN_STATUSES.has(status) || Date.now() > deadline) {
|
|
1871
1871
|
return;
|
|
1872
1872
|
}
|
|
1873
|
-
await
|
|
1873
|
+
await _chunk4RV7U3RPjs.sleep.call(void 0, intervalMs);
|
|
1874
1874
|
}
|
|
1875
1875
|
}
|
|
1876
1876
|
function registerWorkflowCommands(program) {
|