deepline 0.3.459 → 0.3.460
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +11 -20
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +72 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +51 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -1
- package/dist/cli/{auth-2RM2ZC6E.mjs → auth-HKA6ZVHQ.mjs} +4 -4
- package/dist/cli/auth-VDOCNR7H.js +40 -0
- package/dist/cli/{billing-FYF2GJ25.mjs → billing-26G44S5N.mjs} +4 -4
- package/dist/cli/{billing-4BZABEOA.js → billing-MTO2ZZ3G.js} +73 -73
- package/dist/cli/{chunk-ACCQ5OM7.js → chunk-2PBN4SZE.js} +16 -16
- package/dist/cli/{chunk-JOSOQJ5P.js → chunk-2WRO2UJ5.js} +51 -51
- package/dist/cli/{chunk-Z4YO4J4J.js → chunk-2XHWOQF4.js} +50 -50
- package/dist/cli/{chunk-Y35FCRLQ.mjs → chunk-526R2HON.mjs} +1 -1
- package/dist/cli/{chunk-U3VAYRUL.js → chunk-BHGII2D6.js} +6 -6
- package/dist/cli/{chunk-SOUQUQQE.mjs → chunk-CTRPCARW.mjs} +8 -8
- package/dist/cli/{chunk-OQW2YP3P.mjs → chunk-EJGBLXDZ.mjs} +1 -1
- package/dist/cli/{chunk-OD236M42.mjs → chunk-KADIT5NV.mjs} +2 -2
- package/dist/cli/{chunk-RLQDDJZZ.mjs → chunk-LAWEURCT.mjs} +1 -1
- package/dist/cli/{chunk-KB4XJRQW.js → chunk-LJTFZOHU.js} +8 -8
- package/dist/cli/{chunk-FFUQFRKZ.js → chunk-LMAULZLF.js} +20 -20
- package/dist/cli/{chunk-MHMRLS7W.mjs → chunk-LVJOFUU7.mjs} +3 -3
- package/dist/cli/{chunk-2JSVKNLG.js → chunk-M52JQSLK.js} +3 -3
- package/dist/cli/{chunk-BIPMJKLI.mjs → chunk-MLFR6DVF.mjs} +5 -5
- package/dist/cli/{chunk-KDDB5S6E.mjs → chunk-NH6JSJW6.mjs} +3 -3
- package/dist/cli/{chunk-S5TTNBEZ.js → chunk-NRGGFVVB.js} +35 -35
- package/dist/cli/{chunk-HU7JG4RL.mjs → chunk-OJ6RUKVT.mjs} +1 -1
- package/dist/cli/{chunk-7AGGDRNR.mjs → chunk-OMM54B3X.mjs} +1 -1
- package/dist/cli/{chunk-PI65FBEA.js → chunk-QGAWTBIR.js} +81 -81
- package/dist/cli/{chunk-VLJXYDGZ.js → chunk-QJLKYYPX.js} +4 -4
- package/dist/cli/{chunk-HUVI6EBF.js → chunk-RBTTUYZZ.js} +1 -1
- package/dist/cli/{chunk-FPPCTKV6.js → chunk-RDPTDDKX.js} +2 -2
- package/dist/cli/{chunk-5WGW57KC.mjs → chunk-RZSTT45F.mjs} +3 -3
- package/dist/cli/{chunk-LSJYTDEK.mjs → chunk-S4Q2XCGM.mjs} +1 -1
- package/dist/cli/{chunk-OY4JQBJG.js → chunk-UKFZT7RF.js} +2 -2
- package/dist/cli/{chunk-FBMVFOD7.js → chunk-VJAEA4CS.js} +8 -8
- package/dist/cli/{chunk-LGOI2BRX.js → chunk-VTODQWQA.js} +10 -10
- package/dist/cli/{chunk-7DFM5YLL.mjs → chunk-W3BE3CHK.mjs} +4 -4
- package/dist/cli/{chunk-ZAJAGMXA.mjs → chunk-XAYO3Q2X.mjs} +2 -2
- package/dist/cli/{chunk-UIKSAVAE.js → chunk-YHTQM5XI.js} +26 -26
- package/dist/cli/{chunk-5KC7RLJO.js → chunk-YS2YBSJB.js} +6 -6
- package/dist/cli/{chunk-4EBJNT5C.mjs → chunk-YULBYKAK.mjs} +2 -2
- package/dist/cli/{chunk-NLRKZJZF.mjs → chunk-YVBWO647.mjs} +2 -2
- package/dist/cli/{chunk-MNNMPS6J.mjs → chunk-ZR2RLI4O.mjs} +1 -1
- package/dist/cli/{csv-LRIV3RXE.js → csv-6FNFYJUC.js} +12 -12
- package/dist/cli/{csv-SDVEU3O5.mjs → csv-MDHT4BKK.mjs} +3 -3
- package/dist/cli/{db-NHYULZTM.mjs → db-74O3RFWY.mjs} +4 -4
- package/dist/cli/{db-JS4OEDNY.js → db-D6AMVOEW.js} +25 -25
- package/dist/cli/{describe-ZFKCZHOJ.js → describe-QW54QQNB.js} +17 -17
- package/dist/cli/{describe-H5F72Q3S.mjs → describe-TOMIAT37.mjs} +13 -13
- package/dist/cli/{executions-QPAKZTNQ.js → executions-N4FMGVSC.js} +6 -6
- package/dist/cli/{executions-25YKX4K3.mjs → executions-PVSF4HUF.mjs} +4 -4
- package/dist/cli/{feedback-Z3BES6L6.mjs → feedback-OB7NANZW.mjs} +3 -3
- package/dist/cli/{feedback-O63Z5O2R.js → feedback-WFSPCAI2.js} +7 -7
- package/dist/cli/git-4PMBJSH5.js +24 -0
- package/dist/cli/{git-V7S3IBLO.mjs → git-FHUSPAEU.mjs} +4 -4
- package/dist/cli/index.js +132 -132
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-ZLLYEGQ6.js → legacy-noops-ECHNA5HN.js} +7 -7
- package/dist/cli/{legacy-noops-VRT5WZ5I.mjs → legacy-noops-HMK4BSCI.mjs} +4 -4
- package/dist/cli/{monitors-44KSWY3M.mjs → monitors-U7VQ3EZM.mjs} +5 -5
- package/dist/cli/{monitors-T7FKIDDY.js → monitors-XLLFNENH.js} +89 -89
- package/dist/cli/{org-BZE4CGIT.mjs → org-6H3USO5M.mjs} +4 -4
- package/dist/cli/{org-KPPG2KY4.js → org-QX6ER2HN.js} +66 -66
- package/dist/cli/{play-CHTP4NKR.mjs → play-MOB2WYOR.mjs} +11 -11
- package/dist/cli/{play-M5P74N3E.js → play-WNB7HBZK.js} +284 -284
- package/dist/cli/{providers-L3PK7NHU.js → providers-7M3DISKX.js} +7 -7
- package/dist/cli/{providers-CGLPOOXA.mjs → providers-CXEZ23E2.mjs} +4 -4
- package/dist/cli/{quickstart-LJ7HELWE.js → quickstart-CLJT4AZL.js} +5 -5
- package/dist/cli/{quickstart-NWG35AKK.mjs → quickstart-ZFCHKHF6.mjs} +3 -3
- package/dist/cli/search-4CCQCTVD.js +30 -0
- package/dist/cli/{search-723TVSNC.mjs → search-FVYWYIC3.mjs} +5 -5
- package/dist/cli/{secrets-ONN3Z5Y6.mjs → secrets-WAMPTQFC.mjs} +4 -4
- package/dist/cli/{secrets-SVSSLPWB.js → secrets-YRLKZQS5.js} +13 -13
- package/dist/cli/{sessions-7LYPPYUY.js → sessions-44J6WIVU.js} +5 -5
- package/dist/cli/{sessions-3KAEYQ3U.mjs → sessions-IQ332BJH.mjs} +4 -4
- package/dist/cli/{settings-2CBJI7FY.mjs → settings-22S6NIFQ.mjs} +9 -9
- package/dist/cli/{settings-JGJZO7EX.js → settings-4IJR2I2T.js} +76 -76
- package/dist/cli/{setup-AIAOO7R4.js → setup-3FWSRNOX.js} +43 -43
- package/dist/cli/{setup-BJCBDH34.mjs → setup-OZUPKKPW.mjs} +8 -8
- package/dist/cli/{skills-7QSQPQXX.mjs → skills-5CW3NFP3.mjs} +6 -6
- package/dist/cli/skills-LMNM6B5F.js +30 -0
- package/dist/cli/tools-AGBBDJ7P.js +45 -0
- package/dist/cli/{tools-I7LYXHDR.mjs → tools-NOPBDRGW.mjs} +13 -13
- package/dist/cli/{update-LKY5OJ56.mjs → update-IBULOV7P.mjs} +8 -8
- package/dist/cli/update-U3W6USVD.js +32 -0
- package/dist/cli/{workflow-DD32BU7Y.mjs → workflow-MVZT7MWT.mjs} +5 -5
- package/dist/cli/{workflow-Y4HGE7MB.js → workflow-Z7FW6GT2.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-EAFWPDJG.js +0 -40
- package/dist/cli/git-KSRP3PNB.js +0 -24
- package/dist/cli/search-PESQULBG.js +0 -30
- package/dist/cli/skills-WECIGARR.js +0 -30
- package/dist/cli/tools-HTEMYXT2.js +0 -45
- package/dist/cli/update-J4LSPXHD.js +0 -32
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZR2RLI4O.mjs";
|
|
4
4
|
import "./chunk-L2VKAASU.mjs";
|
|
5
5
|
import "./chunk-FAG4DFUC.mjs";
|
|
6
6
|
import "./chunk-EIMG75BT.mjs";
|
|
7
7
|
import "./chunk-UBKA33KY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
printCommandEnvelope
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-526R2HON.mjs";
|
|
11
11
|
import {
|
|
12
12
|
ACTIVE_ORG_ID_ENV,
|
|
13
13
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
saveProjectDeeplineEnvValues,
|
|
29
29
|
sdkCliStateDirPath,
|
|
30
30
|
storedHostFeatures
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OMM54B3X.mjs";
|
|
32
32
|
import "./chunk-4QF2K7TM.mjs";
|
|
33
33
|
import "./chunk-DLIRSHV6.mjs";
|
|
34
34
|
import "./chunk-HBL4PM5Q.mjs";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-EJGBLXDZ.mjs";
|
|
36
36
|
import "./chunk-WZYKRD7T.mjs";
|
|
37
37
|
import "./chunk-KRD6H754.mjs";
|
|
38
38
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVTODQWQAjs = require('./chunk-VTODQWQA.js');
|
|
4
4
|
require('./chunk-E4CABWXL.js');
|
|
5
5
|
require('./chunk-JKVRBCZL.js');
|
|
6
6
|
require('./chunk-KXMNM4AQ.js');
|
|
7
7
|
require('./chunk-XDVT3GOM.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkBHGII2D6js = require('./chunk-BHGII2D6.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -28,11 +28,11 @@ var _chunkU3VAYRULjs = require('./chunk-U3VAYRUL.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkQJLKYYPXjs = require('./chunk-QJLKYYPX.js');
|
|
32
32
|
require('./chunk-ALJJRZNJ.js');
|
|
33
33
|
require('./chunk-XNYIZMNQ.js');
|
|
34
34
|
require('./chunk-DIAWYWT5.js');
|
|
35
|
-
require('./chunk-
|
|
35
|
+
require('./chunk-RBTTUYZZ.js');
|
|
36
36
|
require('./chunk-OG64RBAC.js');
|
|
37
37
|
require('./chunk-COGTRVWW.js');
|
|
38
38
|
|
|
@@ -48,7 +48,7 @@ var _fs = require('fs');
|
|
|
48
48
|
var _path = require('path');
|
|
49
49
|
function pendingOrgCreatePath(baseUrl, accountId, sourceOrgId, name) {
|
|
50
50
|
const intent = _crypto.createHash.call(void 0, "sha256").update(accountId).update("\0").update(sourceOrgId).update("\0").update(name).digest("hex");
|
|
51
|
-
return _path.join.call(void 0,
|
|
51
|
+
return _path.join.call(void 0, _chunkQJLKYYPXjs.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
|
|
52
52
|
}
|
|
53
53
|
function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
|
|
54
54
|
let value;
|
|
@@ -67,7 +67,7 @@ function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
|
|
|
67
67
|
return value;
|
|
68
68
|
}
|
|
69
69
|
function loadOrCreatePendingOrgCreate(input) {
|
|
70
|
-
const stateDir =
|
|
70
|
+
const stateDir = _chunkQJLKYYPXjs.sdkCliStateDirPath.call(void 0, input.baseUrl);
|
|
71
71
|
const path = pendingOrgCreatePath(
|
|
72
72
|
input.baseUrl,
|
|
73
73
|
input.accountId,
|
|
@@ -152,11 +152,11 @@ function processEnvValue(name) {
|
|
|
152
152
|
}
|
|
153
153
|
function organizationAuthValues(input) {
|
|
154
154
|
return {
|
|
155
|
-
[
|
|
156
|
-
[
|
|
157
|
-
[
|
|
158
|
-
[
|
|
159
|
-
...
|
|
155
|
+
[_chunkQJLKYYPXjs.HOST_URL_ENV]: input.baseUrl,
|
|
156
|
+
[_chunkQJLKYYPXjs.API_KEY_ENV]: input.apiKey,
|
|
157
|
+
[_chunkQJLKYYPXjs.ACTIVE_ORG_ID_ENV]: input.orgId,
|
|
158
|
+
[_chunkQJLKYYPXjs.ACTIVE_ORG_NAME_ENV]: input.orgName,
|
|
159
|
+
..._chunkQJLKYYPXjs.featureEnvValues.call(void 0, input)
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
162
|
function organizationCommandContext(input) {
|
|
@@ -170,14 +170,14 @@ function organizationCommandContext(input) {
|
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
172
|
function agentCommandContext(commandContext) {
|
|
173
|
-
return
|
|
173
|
+
return _chunkQJLKYYPXjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
|
|
174
174
|
}
|
|
175
175
|
function resolveOrgSwitchAuthTarget(scope, config) {
|
|
176
|
-
const activeProject =
|
|
176
|
+
const activeProject = _chunkQJLKYYPXjs.getResolvedProjectAuthSource.call(void 0,
|
|
177
177
|
config.baseUrl,
|
|
178
178
|
config.apiKey
|
|
179
179
|
);
|
|
180
|
-
const folderTarget =
|
|
180
|
+
const folderTarget = _chunkQJLKYYPXjs.resolveProjectPinTarget.call(void 0, );
|
|
181
181
|
const globalOverrideWarning = activeProject && scope === "global" ? [
|
|
182
182
|
`Folder auth in ${activeProject.filePath} overrides global auth for commands run here.`
|
|
183
183
|
] : [];
|
|
@@ -249,10 +249,10 @@ function resolveOrgSwitchAuthTarget(scope, config) {
|
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
251
|
async function handleOrgList(options) {
|
|
252
|
-
const config =
|
|
253
|
-
const http = new (0,
|
|
252
|
+
const config = _chunkQJLKYYPXjs.resolveConfig.call(void 0, );
|
|
253
|
+
const http = new (0, _chunkQJLKYYPXjs.HttpClient)(config);
|
|
254
254
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
255
|
-
|
|
255
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
256
256
|
{
|
|
257
257
|
...payload,
|
|
258
258
|
render: {
|
|
@@ -268,22 +268,22 @@ async function handleOrgList(options) {
|
|
|
268
268
|
);
|
|
269
269
|
}
|
|
270
270
|
async function handleOrgStatus(options) {
|
|
271
|
-
const config =
|
|
272
|
-
const http = new (0,
|
|
271
|
+
const config = _chunkQJLKYYPXjs.resolveConfig.call(void 0, );
|
|
272
|
+
const http = new (0, _chunkQJLKYYPXjs.HttpClient)(config);
|
|
273
273
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
274
274
|
const current = _nullishCoalesce(_nullishCoalesce(payload.organizations.find((org) => org.is_current), () => ( payload.organizations.find(
|
|
275
275
|
(org) => org.org_id === payload.current_org_id
|
|
276
276
|
))), () => ( null));
|
|
277
|
-
const projectCandidate =
|
|
278
|
-
const activeProject =
|
|
277
|
+
const projectCandidate = _chunkQJLKYYPXjs.getActiveProjectAuthSource.call(void 0, );
|
|
278
|
+
const activeProject = _chunkQJLKYYPXjs.getResolvedProjectAuthSource.call(void 0,
|
|
279
279
|
config.baseUrl,
|
|
280
280
|
config.apiKey
|
|
281
281
|
);
|
|
282
|
-
const folderTarget =
|
|
283
|
-
const provenance =
|
|
284
|
-
const hostPath =
|
|
285
|
-
const envApiKey = processEnvValue(
|
|
286
|
-
const envHostUrl = processEnvValue(
|
|
282
|
+
const folderTarget = _chunkQJLKYYPXjs.resolveProjectPinTarget.call(void 0, );
|
|
283
|
+
const provenance = _chunkQJLKYYPXjs.resolveCliAuthProvenance.call(void 0, config);
|
|
284
|
+
const hostPath = _chunkQJLKYYPXjs.hostEnvFilePath.call(void 0, config.baseUrl);
|
|
285
|
+
const envApiKey = processEnvValue(_chunkQJLKYYPXjs.API_KEY_ENV);
|
|
286
|
+
const envHostUrl = processEnvValue(_chunkQJLKYYPXjs.HOST_URL_ENV);
|
|
287
287
|
const authSource = envApiKey ? {
|
|
288
288
|
scope: "env",
|
|
289
289
|
source: "process",
|
|
@@ -324,17 +324,17 @@ async function handleOrgStatus(options) {
|
|
|
324
324
|
if (authSource.path) {
|
|
325
325
|
lines.push(`Auth file: ${authSource.path}`);
|
|
326
326
|
} else {
|
|
327
|
-
lines.push(`Auth source: ${
|
|
327
|
+
lines.push(`Auth source: ${_chunkQJLKYYPXjs.API_KEY_ENV} process environment`);
|
|
328
328
|
}
|
|
329
329
|
if (envApiKey) {
|
|
330
|
-
lines.push(`${
|
|
330
|
+
lines.push(`${_chunkQJLKYYPXjs.API_KEY_ENV} overrides saved auth for this process.`);
|
|
331
331
|
} else if (activeProject) {
|
|
332
332
|
lines.push("Global auth is overridden in this folder.");
|
|
333
333
|
} else if (provenance.scope === "global" && provenance.project.state === "project") {
|
|
334
334
|
lines.push("Cloud mutations are blocked until this project is pinned.");
|
|
335
335
|
lines.push("Pin it: deepline org set --auth-scope folder");
|
|
336
336
|
}
|
|
337
|
-
|
|
337
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
338
338
|
{
|
|
339
339
|
ok: true,
|
|
340
340
|
host: config.baseUrl,
|
|
@@ -368,25 +368,25 @@ async function handleOrgStatus(options) {
|
|
|
368
368
|
}
|
|
369
369
|
async function handleOrgSwitch(selection, options) {
|
|
370
370
|
const authScope = normalizeAuthScope(options.authScope);
|
|
371
|
-
const config =
|
|
372
|
-
const provenance =
|
|
371
|
+
const config = _chunkQJLKYYPXjs.resolveConfig.call(void 0, );
|
|
372
|
+
const provenance = _chunkQJLKYYPXjs.resolveCliAuthProvenance.call(void 0, config);
|
|
373
373
|
if (!selection && !options.orgId && authScope === "folder" && provenance.scope === "global" && provenance.project.state === "project") {
|
|
374
|
-
const commandContext =
|
|
374
|
+
const commandContext = _chunkQJLKYYPXjs.resolveCliCommandContext.call(void 0, config);
|
|
375
375
|
const activeOrganization = commandContext.active_organization;
|
|
376
|
-
const pinnedFeatures =
|
|
377
|
-
const project_env_paths2 =
|
|
376
|
+
const pinnedFeatures = _chunkQJLKYYPXjs.storedHostFeatures.call(void 0, config.baseUrl);
|
|
377
|
+
const project_env_paths2 = _chunkQJLKYYPXjs.saveProjectDeeplineEnvValues.call(void 0,
|
|
378
378
|
{
|
|
379
|
-
[
|
|
380
|
-
[
|
|
379
|
+
[_chunkQJLKYYPXjs.HOST_URL_ENV]: config.baseUrl,
|
|
380
|
+
[_chunkQJLKYYPXjs.API_KEY_ENV]: config.apiKey,
|
|
381
381
|
...activeOrganization ? {
|
|
382
|
-
[
|
|
383
|
-
[
|
|
382
|
+
[_chunkQJLKYYPXjs.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
|
|
383
|
+
[_chunkQJLKYYPXjs.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
|
|
384
384
|
} : {},
|
|
385
|
-
...pinnedFeatures !== void 0 ? { [
|
|
385
|
+
...pinnedFeatures !== void 0 ? { [_chunkQJLKYYPXjs.FEATURES_ENV]: pinnedFeatures } : {}
|
|
386
386
|
},
|
|
387
387
|
provenance.project.dir
|
|
388
388
|
);
|
|
389
|
-
|
|
389
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
390
390
|
{
|
|
391
391
|
ok: true,
|
|
392
392
|
unchanged: true,
|
|
@@ -398,7 +398,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
398
398
|
orgId: activeOrganization.org_id,
|
|
399
399
|
orgName: activeOrganization.org_name,
|
|
400
400
|
authScope: "folder"
|
|
401
|
-
}) :
|
|
401
|
+
}) : _chunkQJLKYYPXjs.resolveCliCommandContext.call(void 0, config, "folder")
|
|
402
402
|
),
|
|
403
403
|
project_env_paths: project_env_paths2,
|
|
404
404
|
next: { status: "deepline org status" },
|
|
@@ -419,10 +419,10 @@ async function handleOrgSwitch(selection, options) {
|
|
|
419
419
|
);
|
|
420
420
|
return;
|
|
421
421
|
}
|
|
422
|
-
const http = new (0,
|
|
422
|
+
const http = new (0, _chunkQJLKYYPXjs.HttpClient)(config);
|
|
423
423
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
424
424
|
if (!selection && !options.orgId) {
|
|
425
|
-
|
|
425
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
426
426
|
{
|
|
427
427
|
...payload,
|
|
428
428
|
next: { set: "deepline org set <number>" },
|
|
@@ -473,9 +473,9 @@ async function handleOrgSwitch(selection, options) {
|
|
|
473
473
|
features
|
|
474
474
|
});
|
|
475
475
|
if (authTarget.kind === "folder") {
|
|
476
|
-
project_env_paths2 =
|
|
476
|
+
project_env_paths2 = _chunkQJLKYYPXjs.saveProjectDeeplineEnvValues.call(void 0, authValues2);
|
|
477
477
|
} else {
|
|
478
|
-
|
|
478
|
+
_chunkQJLKYYPXjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
|
|
479
479
|
}
|
|
480
480
|
const renderLines2 = [`Already on ${target.name}.`];
|
|
481
481
|
for (const projectPath of project_env_paths2) {
|
|
@@ -483,7 +483,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
483
483
|
}
|
|
484
484
|
if (authTarget.kind === "global") {
|
|
485
485
|
renderLines2.push(
|
|
486
|
-
`Saved global auth in ${
|
|
486
|
+
`Saved global auth in ${_chunkQJLKYYPXjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
487
487
|
);
|
|
488
488
|
}
|
|
489
489
|
renderLines2.push(
|
|
@@ -499,7 +499,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
499
499
|
...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
|
|
500
500
|
...authTarget.warnings
|
|
501
501
|
];
|
|
502
|
-
|
|
502
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
503
503
|
{
|
|
504
504
|
ok: true,
|
|
505
505
|
unchanged: true,
|
|
@@ -515,7 +515,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
515
515
|
authScope: authTarget.effective_scope
|
|
516
516
|
})
|
|
517
517
|
),
|
|
518
|
-
host_env_path: authTarget.kind === "global" ?
|
|
518
|
+
host_env_path: authTarget.kind === "global" ? _chunkQJLKYYPXjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
|
|
519
519
|
project_env_paths: project_env_paths2,
|
|
520
520
|
deprecated_command: options.deprecatedSwitch ? "org switch" : null,
|
|
521
521
|
replacement_command: options.deprecatedSwitch ? "deepline org set" : null,
|
|
@@ -541,9 +541,9 @@ async function handleOrgSwitch(selection, options) {
|
|
|
541
541
|
features: switched.features
|
|
542
542
|
});
|
|
543
543
|
if (authTarget.kind === "folder") {
|
|
544
|
-
project_env_paths =
|
|
544
|
+
project_env_paths = _chunkQJLKYYPXjs.saveProjectDeeplineEnvValues.call(void 0, authValues);
|
|
545
545
|
} else {
|
|
546
|
-
|
|
546
|
+
_chunkQJLKYYPXjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
547
547
|
}
|
|
548
548
|
const { api_key: _apiKey, ...publicSwitched } = switched;
|
|
549
549
|
const renderLines = [`Switched to ${switched.org_name}.`];
|
|
@@ -552,7 +552,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
552
552
|
renderLines.push(`Saved folder auth in ${projectPath}`);
|
|
553
553
|
}
|
|
554
554
|
} else {
|
|
555
|
-
renderLines.push(`Saved global auth in ${
|
|
555
|
+
renderLines.push(`Saved global auth in ${_chunkQJLKYYPXjs.hostEnvFilePath.call(void 0, config.baseUrl)}`);
|
|
556
556
|
}
|
|
557
557
|
renderLines.push(
|
|
558
558
|
`Scope: ${authTarget.requested_scope} -> ${authTarget.effective_scope} (${authTarget.reason})`
|
|
@@ -567,10 +567,10 @@ async function handleOrgSwitch(selection, options) {
|
|
|
567
567
|
...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
|
|
568
568
|
...authTarget.warnings
|
|
569
569
|
];
|
|
570
|
-
|
|
570
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
571
571
|
{
|
|
572
572
|
ok: true,
|
|
573
|
-
host_env_path: authTarget.kind === "global" ?
|
|
573
|
+
host_env_path: authTarget.kind === "global" ? _chunkQJLKYYPXjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
|
|
574
574
|
project_env_paths,
|
|
575
575
|
...publicSwitched,
|
|
576
576
|
api_key_saved: true,
|
|
@@ -601,12 +601,12 @@ async function handleOrgSwitch(selection, options) {
|
|
|
601
601
|
);
|
|
602
602
|
}
|
|
603
603
|
async function handleOrgCreate(name, options) {
|
|
604
|
-
const config =
|
|
604
|
+
const config = _chunkQJLKYYPXjs.resolveConfig.call(void 0, );
|
|
605
605
|
const normalizedName = name.trim();
|
|
606
606
|
if (!normalizedName) {
|
|
607
607
|
throw new Error("Workspace name is required.");
|
|
608
608
|
}
|
|
609
|
-
const http = new (0,
|
|
609
|
+
const http = new (0, _chunkQJLKYYPXjs.HttpClient)(config);
|
|
610
610
|
const identity = await fetchWorkspaceCreationIdentity(http, config.apiKey);
|
|
611
611
|
let created;
|
|
612
612
|
let workspaceApiKey;
|
|
@@ -632,7 +632,7 @@ async function handleOrgCreate(name, options) {
|
|
|
632
632
|
sourceOrgId: identity.orgId,
|
|
633
633
|
name: normalizedName
|
|
634
634
|
});
|
|
635
|
-
const workspace = await new (0,
|
|
635
|
+
const workspace = await new (0, _chunkVTODQWQAjs.DeeplineClient)({
|
|
636
636
|
apiKey: config.apiKey,
|
|
637
637
|
baseUrl: config.baseUrl
|
|
638
638
|
}).workspaces.create({
|
|
@@ -655,16 +655,16 @@ async function handleOrgCreate(name, options) {
|
|
|
655
655
|
orgName: created.org_name,
|
|
656
656
|
features: workspaceFeatures
|
|
657
657
|
});
|
|
658
|
-
|
|
658
|
+
_chunkQJLKYYPXjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
659
659
|
if (pendingIntentPath) _fs.unlinkSync.call(void 0, pendingIntentPath);
|
|
660
|
-
|
|
660
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
661
661
|
{
|
|
662
662
|
ok: true,
|
|
663
663
|
...created,
|
|
664
664
|
initial_credits: typeof created.initial_credits === "number" ? created.initial_credits : 0,
|
|
665
665
|
api_key_saved: true,
|
|
666
666
|
switched: true,
|
|
667
|
-
host_env_path:
|
|
667
|
+
host_env_path: _chunkQJLKYYPXjs.hostEnvFilePath.call(void 0, config.baseUrl),
|
|
668
668
|
...agentCommandContext(
|
|
669
669
|
organizationCommandContext({
|
|
670
670
|
orgId: created.org_id,
|
|
@@ -679,7 +679,7 @@ async function handleOrgCreate(name, options) {
|
|
|
679
679
|
lines: [
|
|
680
680
|
`Created organization: ${created.org_name}.`,
|
|
681
681
|
`Switched to ${created.org_name}.`,
|
|
682
|
-
`Saved host auth in ${
|
|
682
|
+
`Saved host auth in ${_chunkQJLKYYPXjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
683
683
|
]
|
|
684
684
|
}
|
|
685
685
|
]
|
|
@@ -731,7 +731,7 @@ Examples:
|
|
|
731
731
|
);
|
|
732
732
|
const sso = org.command("sso").description("Manage Enterprise workspace SSO.");
|
|
733
733
|
const ssoPath = "/api/v2/auth/workspace/sso";
|
|
734
|
-
const printSso = (payload, json) =>
|
|
734
|
+
const printSso = (payload, json) => _chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
735
735
|
{
|
|
736
736
|
...payload,
|
|
737
737
|
render: {
|
|
@@ -755,7 +755,7 @@ Examples:
|
|
|
755
755
|
},
|
|
756
756
|
{ json }
|
|
757
757
|
);
|
|
758
|
-
const ssoHttp = () => new (0,
|
|
758
|
+
const ssoHttp = () => new (0, _chunkQJLKYYPXjs.HttpClient)(_chunkQJLKYYPXjs.resolveConfig.call(void 0, ));
|
|
759
759
|
sso.command("status").description("Show this workspace's SSO connection and plan eligibility.").option("--json", "Emit JSON output").action(async (options) => {
|
|
760
760
|
printSso(await ssoHttp().get(ssoPath), options.json);
|
|
761
761
|
});
|
|
@@ -786,8 +786,8 @@ Examples:
|
|
|
786
786
|
"Identity provider metadata XML file"
|
|
787
787
|
).option("--json", "Emit JSON output").action(
|
|
788
788
|
async (options) => {
|
|
789
|
-
const config =
|
|
790
|
-
const http = new (0,
|
|
789
|
+
const config = _chunkQJLKYYPXjs.resolveConfig.call(void 0, );
|
|
790
|
+
const http = new (0, _chunkQJLKYYPXjs.HttpClient)(config);
|
|
791
791
|
const identity = await fetchWorkspaceCreationIdentity(
|
|
792
792
|
http,
|
|
793
793
|
config.apiKey
|
|
@@ -851,13 +851,13 @@ Examples:
|
|
|
851
851
|
if (chosen.length > 1) {
|
|
852
852
|
throw new Error("Pass one of a logo URL, --domain, or --remove.");
|
|
853
853
|
}
|
|
854
|
-
const http = new (0,
|
|
854
|
+
const http = new (0, _chunkQJLKYYPXjs.HttpClient)(_chunkQJLKYYPXjs.resolveConfig.call(void 0, ));
|
|
855
855
|
const path = "/api/v2/auth/workspace/logo";
|
|
856
856
|
const payload = chosen.length === 0 ? await http.get(path) : await http.patch(
|
|
857
857
|
path,
|
|
858
858
|
options.domain ? { domain: options.domain } : { logo: _nullishCoalesce(url, () => ( null)) }
|
|
859
859
|
);
|
|
860
|
-
|
|
860
|
+
_chunkBHGII2D6js.printCommandEnvelope.call(void 0,
|
|
861
861
|
{
|
|
862
862
|
...payload,
|
|
863
863
|
render: {
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "./chunk-YBWAG72P.mjs";
|
|
5
5
|
import {
|
|
6
6
|
registerDeprecatedSearchCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LVJOFUU7.mjs";
|
|
8
8
|
import {
|
|
9
9
|
handleDeploymentGet,
|
|
10
10
|
handleDeploymentsList
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YULBYKAK.mjs";
|
|
12
12
|
import {
|
|
13
13
|
buildPlayDashboardUrl
|
|
14
14
|
} from "./chunk-HDFRJ4IT.mjs";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
normalizePlayStatus,
|
|
50
50
|
normalizeRunEventOperationRequest,
|
|
51
51
|
parseLogLevel
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-ZR2RLI4O.mjs";
|
|
53
53
|
import "./chunk-L2VKAASU.mjs";
|
|
54
54
|
import {
|
|
55
55
|
CSV_DATA_INPUT_KEY,
|
|
@@ -70,18 +70,18 @@ import "./chunk-UBKA33KY.mjs";
|
|
|
70
70
|
import {
|
|
71
71
|
checkPlayRunCompatibility,
|
|
72
72
|
usesInlinePlayAdmission
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-KADIT5NV.mjs";
|
|
74
74
|
import {
|
|
75
75
|
isCliTraceEnabled,
|
|
76
76
|
recordCliTrace,
|
|
77
77
|
resolveCliMaintenancePolicy,
|
|
78
78
|
traceCliSpan
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import "./chunk-
|
|
79
|
+
} from "./chunk-LAWEURCT.mjs";
|
|
80
|
+
import "./chunk-RZSTT45F.mjs";
|
|
81
81
|
import {
|
|
82
82
|
createCliProgress,
|
|
83
83
|
getActiveCliProgress
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-OJ6RUKVT.mjs";
|
|
85
85
|
import {
|
|
86
86
|
argsWantJson,
|
|
87
87
|
csvSafeJsonString,
|
|
@@ -96,16 +96,16 @@ import {
|
|
|
96
96
|
printJsonError,
|
|
97
97
|
renderCommandEnvelopeText,
|
|
98
98
|
shouldEmitJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-526R2HON.mjs";
|
|
100
100
|
import {
|
|
101
101
|
fetchWithDeploymentProtection
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-OMM54B3X.mjs";
|
|
103
103
|
import "./chunk-4QF2K7TM.mjs";
|
|
104
104
|
import "./chunk-DLIRSHV6.mjs";
|
|
105
105
|
import {
|
|
106
106
|
DeeplineError
|
|
107
107
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
108
|
-
import "./chunk-
|
|
108
|
+
import "./chunk-EJGBLXDZ.mjs";
|
|
109
109
|
import "./chunk-WZYKRD7T.mjs";
|
|
110
110
|
import {
|
|
111
111
|
__commonJS,
|
|
@@ -17237,7 +17237,7 @@ Examples:
|
|
|
17237
17237
|
process.exitCode = await ownView();
|
|
17238
17238
|
return;
|
|
17239
17239
|
}
|
|
17240
|
-
const { describeAnything } = await import("./describe-
|
|
17240
|
+
const { describeAnything } = await import("./describe-TOMIAT37.mjs");
|
|
17241
17241
|
process.exitCode = await describeAnything(
|
|
17242
17242
|
name,
|
|
17243
17243
|
{
|