deepline 0.3.395 → 0.3.396
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/plays/play-description.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/cli/{auth-NMQXZRS7.mjs → auth-3LTD62VL.mjs} +4 -4
- package/dist/cli/auth-562JPKOM.js +39 -0
- package/dist/cli/{billing-5MVXZRS6.mjs → billing-DP7ZAJBO.mjs} +5 -5
- package/dist/cli/{billing-Z4JTGUU3.js → billing-PA5OXEM5.js} +76 -76
- package/dist/cli/{chunk-BLYL3KOC.mjs → chunk-23GAA3YO.mjs} +1 -1
- package/dist/cli/{chunk-LZLBR2SF.js → chunk-2VOLOWYZ.js} +1087 -1056
- package/dist/cli/{chunk-EFLQHJZ6.mjs → chunk-3T4MCB5R.mjs} +1026 -995
- package/dist/cli/{chunk-VB6KECLU.mjs → chunk-5WNJF2T3.mjs} +102 -36
- package/dist/cli/{chunk-UKU6JM3S.js → chunk-772W2SAU.js} +8 -8
- package/dist/cli/{chunk-K5T3EN6D.js → chunk-7Z66NHUC.js} +26 -26
- package/dist/cli/{chunk-WCCKMLHL.mjs → chunk-AUYXWELC.mjs} +2 -2
- package/dist/cli/{chunk-PZ5BZ76S.js → chunk-AVHLATII.js} +50 -50
- package/dist/cli/{chunk-MYIBHORT.js → chunk-DC6LTULT.js} +2 -2
- package/dist/cli/{chunk-5VCZ3WRH.mjs → chunk-EIMG75BT.mjs} +1 -0
- package/dist/cli/{chunk-TO2MWPGR.js → chunk-GNN4MY5X.js} +1 -1
- package/dist/cli/{chunk-OCSG6X67.mjs → chunk-I4T4XAA2.mjs} +4 -4
- package/dist/cli/{chunk-ZWH2TFA7.mjs → chunk-JCN4DHF7.mjs} +2 -2
- package/dist/cli/{chunk-R4XZO6Z5.js → chunk-KAEZNPUM.js} +23 -8
- package/dist/cli/{chunk-DRM3CMHL.js → chunk-KXMNM4AQ.js} +2 -1
- package/dist/cli/{chunk-3TRY7KAC.mjs → chunk-LOGGNW4H.mjs} +2 -2
- package/dist/cli/{chunk-RDXFGPJU.js → chunk-LWERJUKN.js} +218 -218
- package/dist/cli/{chunk-UCXK2DS4.js → chunk-ME6XRFLY.js} +15 -15
- package/dist/cli/{chunk-G4IWGRMK.mjs → chunk-MR6XCBQJ.mjs} +2 -2
- package/dist/cli/{chunk-BON3DRC6.mjs → chunk-NHB5YUCS.mjs} +1 -1
- package/dist/cli/{chunk-ZMVJSS6N.js → chunk-NSOTASOP.js} +101 -35
- package/dist/cli/{chunk-7XAM7KDW.mjs → chunk-QHGPA362.mjs} +18 -3
- package/dist/cli/{chunk-VYLJJQ7Y.js → chunk-RMTASUAK.js} +65 -65
- package/dist/cli/{chunk-HRWUQJ4K.js → chunk-RTO5QZWT.js} +6 -6
- package/dist/cli/{chunk-7MVWUXOD.mjs → chunk-TLQ3FZOC.mjs} +3 -3
- package/dist/cli/{chunk-56IFFVIB.js → chunk-V7UP2F4U.js} +4 -4
- package/dist/cli/{chunk-6D7A2FSL.mjs → chunk-VE3U3SQC.mjs} +1 -1
- package/dist/cli/{chunk-36ML3YKA.js → chunk-WQJJNIMQ.js} +13 -13
- package/dist/cli/{chunk-47M6HPGP.mjs → chunk-XKZXO7D3.mjs} +1 -1
- package/dist/cli/{csv-SVOD5UBH.mjs → csv-RLRR74RQ.mjs} +3 -3
- package/dist/cli/{csv-HTS5ZYQ4.js → csv-TF576S77.js} +12 -12
- package/dist/cli/{db-7AP4P52N.js → db-FDBJUTFO.js} +30 -30
- package/dist/cli/{db-7QLNI3Q4.mjs → db-XORGNBIC.mjs} +5 -5
- package/dist/cli/{describe-DBRY5BNK.mjs → describe-6O2ENKTP.mjs} +86 -68
- package/dist/cli/{describe-YKOE54ZO.js → describe-EFWNECHI.js} +100 -82
- package/dist/cli/{executions-GRQXTB2P.js → executions-SFYAXPF4.js} +7 -7
- package/dist/cli/{executions-QNZTPNG4.mjs → executions-YPP7WR77.mjs} +5 -5
- package/dist/cli/{feedback-ZOLA2KY7.js → feedback-5UZFYMGB.js} +7 -7
- package/dist/cli/{feedback-JMCSR624.mjs → feedback-RBGA5ARU.mjs} +3 -3
- package/dist/cli/git-5LDY5ZID.js +23 -0
- package/dist/cli/{git-LJGL2IHS.mjs → git-IRSAJEK2.mjs} +4 -4
- package/dist/cli/index.js +94 -94
- package/dist/cli/index.mjs +38 -38
- package/dist/cli/{legacy-noops-YSCIR2SD.js → legacy-noops-CVAOQY2F.js} +7 -7
- package/dist/cli/{legacy-noops-F23PKVBN.mjs → legacy-noops-NA7N6ZOU.mjs} +4 -4
- package/dist/cli/{monitors-WMZ6HJZX.js → monitors-4OMRXCXP.js} +86 -86
- package/dist/cli/{monitors-S4LOEL7W.mjs → monitors-ILZ2XHYG.mjs} +5 -5
- package/dist/cli/{org-U3WA2NQM.mjs → org-QDDXAE3J.mjs} +5 -5
- package/dist/cli/{org-PFHM5ZLY.js → org-YGNJDD2X.js} +65 -65
- package/dist/cli/{chunk-4KLCLLTO.js → play-L535H26U.js} +266 -323
- package/dist/cli/{chunk-XMAPE2KH.mjs → play-VT6OHB2D.mjs} +72 -129
- package/dist/cli/{providers-XYMHLKCA.js → providers-GPZ6PQAL.js} +8 -8
- package/dist/cli/{providers-QBBRFBOH.mjs → providers-KG4W5MPK.mjs} +5 -5
- package/dist/cli/{quickstart-5JTDGISY.mjs → quickstart-2JDGTXIG.mjs} +3 -3
- package/dist/cli/{quickstart-IYGD6ZY3.js → quickstart-UI27S5LO.js} +5 -5
- package/dist/cli/search-MGWROZ33.js +28 -0
- package/dist/cli/{search-X6W6GRHS.mjs → search-PW3RAUX7.mjs} +6 -6
- package/dist/cli/{secrets-N55B67H6.mjs → secrets-HNOMK5A2.mjs} +5 -5
- package/dist/cli/{secrets-UHG6OQFD.js → secrets-WFAXOUZE.js} +14 -14
- package/dist/cli/{sessions-57L5MGHN.js → sessions-366KROUA.js} +5 -5
- package/dist/cli/{sessions-JTRSTDSS.mjs → sessions-XLX3E5UO.mjs} +4 -4
- package/dist/cli/{settings-ATX4U5AS.js → settings-GADAG2UK.js} +75 -75
- package/dist/cli/{settings-Q24HRAQI.mjs → settings-YNZ4YKCH.mjs} +8 -8
- package/dist/cli/{setup-77ZWLVHT.mjs → setup-PSEHIUXO.mjs} +6 -6
- package/dist/cli/{setup-EJCNOUCE.js → setup-R5YO7GT6.js} +41 -41
- package/dist/cli/skills-JF2LPEGM.js +28 -0
- package/dist/cli/{skills-XIS5AWQI.mjs → skills-LTQBP6CZ.mjs} +4 -4
- package/dist/cli/tools-CP2PEFRN.js +34 -0
- package/dist/cli/{tools-WCKLYEGQ.mjs → tools-UAXDWU63.mjs} +11 -19
- package/dist/cli/update-HZHZOU6C.js +28 -0
- package/dist/cli/{update-UT5WANMV.mjs → update-SMNIBIMS.mjs} +6 -6
- package/dist/cli/{workflow-226QYUN2.js → workflow-AOQVZHMD.js} +16 -16
- package/dist/cli/{workflow-ZMX3L4ML.mjs → workflow-IKGMBGF6.mjs} +6 -6
- package/dist/{client-CivP-PAI.d.ts → client-Bgis7F6-.d.ts} +2 -1
- package/dist/{client-hdFtwhTm.d.mts → client-DiGl8ska.d.mts} +2 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -11
- package/dist/index.mjs +9 -9
- package/dist/install-integrity.json +78 -80
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/play-description.js +4 -2
- package/dist/plays/play-description.mjs +3 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-UYCOBAL5.js +0 -39
- package/dist/cli/git-EJQLRK27.js +0 -23
- package/dist/cli/play-AGSECQFN.mjs +0 -159
- package/dist/cli/play-BR2LWGXK.js +0 -159
- package/dist/cli/search-ZVSYH5GY.js +0 -28
- package/dist/cli/skills-SPXUBLII.js +0 -28
- package/dist/cli/tools-DBHUUZJX.js +0 -42
- package/dist/cli/update-VSNFXRHJ.js +0 -28
- package/dist/cli/{chunk-KZZC33PY.mjs → chunk-H5KLUGY7.mjs} +214 -214
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MR6XCBQJ.mjs";
|
|
4
4
|
import "./chunk-6IKARAYD.mjs";
|
|
5
5
|
import "./chunk-JI2B4RZP.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-EIMG75BT.mjs";
|
|
7
7
|
import "./chunk-UBKA33KY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
printCommandEnvelope
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XKZXO7D3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
ACTIVE_ORG_ID_ENV,
|
|
13
13
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
saveProjectDeeplineEnvValues,
|
|
29
29
|
sdkCliStateDirPath,
|
|
30
30
|
storedHostFeatures
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VE3U3SQC.mjs";
|
|
32
32
|
import "./chunk-DLIRSHV6.mjs";
|
|
33
33
|
import "./chunk-NXGCO4JB.mjs";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-NHB5YUCS.mjs";
|
|
35
35
|
import "./chunk-WZYKRD7T.mjs";
|
|
36
36
|
import "./chunk-KRD6H754.mjs";
|
|
37
37
|
|
|
@@ -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 _chunkWQJJNIMQjs = require('./chunk-WQJJNIMQ.js');
|
|
4
4
|
require('./chunk-S6R3OX7B.js');
|
|
5
5
|
require('./chunk-UHNDVD3P.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-KXMNM4AQ.js');
|
|
7
7
|
require('./chunk-XDVT3GOM.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkRTO5QZWTjs = require('./chunk-RTO5QZWT.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -28,10 +28,10 @@ var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkV7UP2F4Ujs = require('./chunk-V7UP2F4U.js');
|
|
32
32
|
require('./chunk-XNYIZMNQ.js');
|
|
33
33
|
require('./chunk-7P5AA3SN.js');
|
|
34
|
-
require('./chunk-
|
|
34
|
+
require('./chunk-GNN4MY5X.js');
|
|
35
35
|
require('./chunk-OG64RBAC.js');
|
|
36
36
|
require('./chunk-COGTRVWW.js');
|
|
37
37
|
|
|
@@ -47,7 +47,7 @@ var _fs = require('fs');
|
|
|
47
47
|
var _path = require('path');
|
|
48
48
|
function pendingOrgCreatePath(baseUrl, accountId, sourceOrgId, name) {
|
|
49
49
|
const intent = _crypto.createHash.call(void 0, "sha256").update(accountId).update("\0").update(sourceOrgId).update("\0").update(name).digest("hex");
|
|
50
|
-
return _path.join.call(void 0,
|
|
50
|
+
return _path.join.call(void 0, _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
|
|
51
51
|
}
|
|
52
52
|
function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
|
|
53
53
|
let value;
|
|
@@ -66,7 +66,7 @@ function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
|
|
|
66
66
|
return value;
|
|
67
67
|
}
|
|
68
68
|
function loadOrCreatePendingOrgCreate(input) {
|
|
69
|
-
const stateDir =
|
|
69
|
+
const stateDir = _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, input.baseUrl);
|
|
70
70
|
const path = pendingOrgCreatePath(
|
|
71
71
|
input.baseUrl,
|
|
72
72
|
input.accountId,
|
|
@@ -151,11 +151,11 @@ function processEnvValue(name) {
|
|
|
151
151
|
}
|
|
152
152
|
function organizationAuthValues(input) {
|
|
153
153
|
return {
|
|
154
|
-
[
|
|
155
|
-
[
|
|
156
|
-
[
|
|
157
|
-
[
|
|
158
|
-
...
|
|
154
|
+
[_chunkV7UP2F4Ujs.HOST_URL_ENV]: input.baseUrl,
|
|
155
|
+
[_chunkV7UP2F4Ujs.API_KEY_ENV]: input.apiKey,
|
|
156
|
+
[_chunkV7UP2F4Ujs.ACTIVE_ORG_ID_ENV]: input.orgId,
|
|
157
|
+
[_chunkV7UP2F4Ujs.ACTIVE_ORG_NAME_ENV]: input.orgName,
|
|
158
|
+
..._chunkV7UP2F4Ujs.featureEnvValues.call(void 0, input)
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
161
|
function organizationCommandContext(input) {
|
|
@@ -169,14 +169,14 @@ function organizationCommandContext(input) {
|
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
171
|
function agentCommandContext(commandContext) {
|
|
172
|
-
return
|
|
172
|
+
return _chunkV7UP2F4Ujs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
|
|
173
173
|
}
|
|
174
174
|
function resolveOrgSwitchAuthTarget(scope, config) {
|
|
175
|
-
const activeProject =
|
|
175
|
+
const activeProject = _chunkV7UP2F4Ujs.getResolvedProjectAuthSource.call(void 0,
|
|
176
176
|
config.baseUrl,
|
|
177
177
|
config.apiKey
|
|
178
178
|
);
|
|
179
|
-
const folderTarget =
|
|
179
|
+
const folderTarget = _chunkV7UP2F4Ujs.resolveProjectPinTarget.call(void 0, );
|
|
180
180
|
const globalOverrideWarning = activeProject && scope === "global" ? [
|
|
181
181
|
`Folder auth in ${activeProject.filePath} overrides global auth for commands run here.`
|
|
182
182
|
] : [];
|
|
@@ -248,10 +248,10 @@ function resolveOrgSwitchAuthTarget(scope, config) {
|
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
250
|
async function handleOrgList(options) {
|
|
251
|
-
const config =
|
|
252
|
-
const http = new (0,
|
|
251
|
+
const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
|
|
252
|
+
const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
|
|
253
253
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
254
|
-
|
|
254
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
...payload,
|
|
257
257
|
render: {
|
|
@@ -267,22 +267,22 @@ async function handleOrgList(options) {
|
|
|
267
267
|
);
|
|
268
268
|
}
|
|
269
269
|
async function handleOrgStatus(options) {
|
|
270
|
-
const config =
|
|
271
|
-
const http = new (0,
|
|
270
|
+
const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
|
|
271
|
+
const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
|
|
272
272
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
273
273
|
const current = _nullishCoalesce(_nullishCoalesce(payload.organizations.find((org) => org.is_current), () => ( payload.organizations.find(
|
|
274
274
|
(org) => org.org_id === payload.current_org_id
|
|
275
275
|
))), () => ( null));
|
|
276
|
-
const projectCandidate =
|
|
277
|
-
const activeProject =
|
|
276
|
+
const projectCandidate = _chunkV7UP2F4Ujs.getActiveProjectAuthSource.call(void 0, );
|
|
277
|
+
const activeProject = _chunkV7UP2F4Ujs.getResolvedProjectAuthSource.call(void 0,
|
|
278
278
|
config.baseUrl,
|
|
279
279
|
config.apiKey
|
|
280
280
|
);
|
|
281
|
-
const folderTarget =
|
|
282
|
-
const provenance =
|
|
283
|
-
const hostPath =
|
|
284
|
-
const envApiKey = processEnvValue(
|
|
285
|
-
const envHostUrl = processEnvValue(
|
|
281
|
+
const folderTarget = _chunkV7UP2F4Ujs.resolveProjectPinTarget.call(void 0, );
|
|
282
|
+
const provenance = _chunkV7UP2F4Ujs.resolveCliAuthProvenance.call(void 0, config);
|
|
283
|
+
const hostPath = _chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl);
|
|
284
|
+
const envApiKey = processEnvValue(_chunkV7UP2F4Ujs.API_KEY_ENV);
|
|
285
|
+
const envHostUrl = processEnvValue(_chunkV7UP2F4Ujs.HOST_URL_ENV);
|
|
286
286
|
const authSource = envApiKey ? {
|
|
287
287
|
scope: "env",
|
|
288
288
|
source: "process",
|
|
@@ -323,17 +323,17 @@ async function handleOrgStatus(options) {
|
|
|
323
323
|
if (authSource.path) {
|
|
324
324
|
lines.push(`Auth file: ${authSource.path}`);
|
|
325
325
|
} else {
|
|
326
|
-
lines.push(`Auth source: ${
|
|
326
|
+
lines.push(`Auth source: ${_chunkV7UP2F4Ujs.API_KEY_ENV} process environment`);
|
|
327
327
|
}
|
|
328
328
|
if (envApiKey) {
|
|
329
|
-
lines.push(`${
|
|
329
|
+
lines.push(`${_chunkV7UP2F4Ujs.API_KEY_ENV} overrides saved auth for this process.`);
|
|
330
330
|
} else if (activeProject) {
|
|
331
331
|
lines.push("Global auth is overridden in this folder.");
|
|
332
332
|
} else if (provenance.scope === "global" && provenance.project.state === "project") {
|
|
333
333
|
lines.push("Cloud mutations are blocked until this project is pinned.");
|
|
334
334
|
lines.push("Pin it: deepline org set --auth-scope folder");
|
|
335
335
|
}
|
|
336
|
-
|
|
336
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
337
337
|
{
|
|
338
338
|
ok: true,
|
|
339
339
|
host: config.baseUrl,
|
|
@@ -367,25 +367,25 @@ async function handleOrgStatus(options) {
|
|
|
367
367
|
}
|
|
368
368
|
async function handleOrgSwitch(selection, options) {
|
|
369
369
|
const authScope = normalizeAuthScope(options.authScope);
|
|
370
|
-
const config =
|
|
371
|
-
const provenance =
|
|
370
|
+
const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
|
|
371
|
+
const provenance = _chunkV7UP2F4Ujs.resolveCliAuthProvenance.call(void 0, config);
|
|
372
372
|
if (!selection && !options.orgId && authScope === "folder" && provenance.scope === "global" && provenance.project.state === "project") {
|
|
373
|
-
const commandContext =
|
|
373
|
+
const commandContext = _chunkV7UP2F4Ujs.resolveCliCommandContext.call(void 0, config);
|
|
374
374
|
const activeOrganization = commandContext.active_organization;
|
|
375
|
-
const pinnedFeatures =
|
|
376
|
-
const project_env_paths2 =
|
|
375
|
+
const pinnedFeatures = _chunkV7UP2F4Ujs.storedHostFeatures.call(void 0, config.baseUrl);
|
|
376
|
+
const project_env_paths2 = _chunkV7UP2F4Ujs.saveProjectDeeplineEnvValues.call(void 0,
|
|
377
377
|
{
|
|
378
|
-
[
|
|
379
|
-
[
|
|
378
|
+
[_chunkV7UP2F4Ujs.HOST_URL_ENV]: config.baseUrl,
|
|
379
|
+
[_chunkV7UP2F4Ujs.API_KEY_ENV]: config.apiKey,
|
|
380
380
|
...activeOrganization ? {
|
|
381
|
-
[
|
|
382
|
-
[
|
|
381
|
+
[_chunkV7UP2F4Ujs.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
|
|
382
|
+
[_chunkV7UP2F4Ujs.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
|
|
383
383
|
} : {},
|
|
384
|
-
...pinnedFeatures !== void 0 ? { [
|
|
384
|
+
...pinnedFeatures !== void 0 ? { [_chunkV7UP2F4Ujs.FEATURES_ENV]: pinnedFeatures } : {}
|
|
385
385
|
},
|
|
386
386
|
provenance.project.dir
|
|
387
387
|
);
|
|
388
|
-
|
|
388
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
389
389
|
{
|
|
390
390
|
ok: true,
|
|
391
391
|
unchanged: true,
|
|
@@ -397,7 +397,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
397
397
|
orgId: activeOrganization.org_id,
|
|
398
398
|
orgName: activeOrganization.org_name,
|
|
399
399
|
authScope: "folder"
|
|
400
|
-
}) :
|
|
400
|
+
}) : _chunkV7UP2F4Ujs.resolveCliCommandContext.call(void 0, config, "folder")
|
|
401
401
|
),
|
|
402
402
|
project_env_paths: project_env_paths2,
|
|
403
403
|
next: { status: "deepline org status" },
|
|
@@ -418,10 +418,10 @@ async function handleOrgSwitch(selection, options) {
|
|
|
418
418
|
);
|
|
419
419
|
return;
|
|
420
420
|
}
|
|
421
|
-
const http = new (0,
|
|
421
|
+
const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
|
|
422
422
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
423
423
|
if (!selection && !options.orgId) {
|
|
424
|
-
|
|
424
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
425
425
|
{
|
|
426
426
|
...payload,
|
|
427
427
|
next: { set: "deepline org set <number>" },
|
|
@@ -472,9 +472,9 @@ async function handleOrgSwitch(selection, options) {
|
|
|
472
472
|
features
|
|
473
473
|
});
|
|
474
474
|
if (authTarget.kind === "folder") {
|
|
475
|
-
project_env_paths2 =
|
|
475
|
+
project_env_paths2 = _chunkV7UP2F4Ujs.saveProjectDeeplineEnvValues.call(void 0, authValues2);
|
|
476
476
|
} else {
|
|
477
|
-
|
|
477
|
+
_chunkV7UP2F4Ujs.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
|
|
478
478
|
}
|
|
479
479
|
const renderLines2 = [`Already on ${target.name}.`];
|
|
480
480
|
for (const projectPath of project_env_paths2) {
|
|
@@ -482,7 +482,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
482
482
|
}
|
|
483
483
|
if (authTarget.kind === "global") {
|
|
484
484
|
renderLines2.push(
|
|
485
|
-
`Saved global auth in ${
|
|
485
|
+
`Saved global auth in ${_chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
486
486
|
);
|
|
487
487
|
}
|
|
488
488
|
renderLines2.push(
|
|
@@ -498,7 +498,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
498
498
|
...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
|
|
499
499
|
...authTarget.warnings
|
|
500
500
|
];
|
|
501
|
-
|
|
501
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
502
502
|
{
|
|
503
503
|
ok: true,
|
|
504
504
|
unchanged: true,
|
|
@@ -514,7 +514,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
514
514
|
authScope: authTarget.effective_scope
|
|
515
515
|
})
|
|
516
516
|
),
|
|
517
|
-
host_env_path: authTarget.kind === "global" ?
|
|
517
|
+
host_env_path: authTarget.kind === "global" ? _chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
|
|
518
518
|
project_env_paths: project_env_paths2,
|
|
519
519
|
deprecated_command: options.deprecatedSwitch ? "org switch" : null,
|
|
520
520
|
replacement_command: options.deprecatedSwitch ? "deepline org set" : null,
|
|
@@ -540,9 +540,9 @@ async function handleOrgSwitch(selection, options) {
|
|
|
540
540
|
features: switched.features
|
|
541
541
|
});
|
|
542
542
|
if (authTarget.kind === "folder") {
|
|
543
|
-
project_env_paths =
|
|
543
|
+
project_env_paths = _chunkV7UP2F4Ujs.saveProjectDeeplineEnvValues.call(void 0, authValues);
|
|
544
544
|
} else {
|
|
545
|
-
|
|
545
|
+
_chunkV7UP2F4Ujs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
546
546
|
}
|
|
547
547
|
const { api_key: _apiKey, ...publicSwitched } = switched;
|
|
548
548
|
const renderLines = [`Switched to ${switched.org_name}.`];
|
|
@@ -551,7 +551,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
551
551
|
renderLines.push(`Saved folder auth in ${projectPath}`);
|
|
552
552
|
}
|
|
553
553
|
} else {
|
|
554
|
-
renderLines.push(`Saved global auth in ${
|
|
554
|
+
renderLines.push(`Saved global auth in ${_chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl)}`);
|
|
555
555
|
}
|
|
556
556
|
renderLines.push(
|
|
557
557
|
`Scope: ${authTarget.requested_scope} -> ${authTarget.effective_scope} (${authTarget.reason})`
|
|
@@ -566,10 +566,10 @@ async function handleOrgSwitch(selection, options) {
|
|
|
566
566
|
...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
|
|
567
567
|
...authTarget.warnings
|
|
568
568
|
];
|
|
569
|
-
|
|
569
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
ok: true,
|
|
572
|
-
host_env_path: authTarget.kind === "global" ?
|
|
572
|
+
host_env_path: authTarget.kind === "global" ? _chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
|
|
573
573
|
project_env_paths,
|
|
574
574
|
...publicSwitched,
|
|
575
575
|
api_key_saved: true,
|
|
@@ -600,12 +600,12 @@ async function handleOrgSwitch(selection, options) {
|
|
|
600
600
|
);
|
|
601
601
|
}
|
|
602
602
|
async function handleOrgCreate(name, options) {
|
|
603
|
-
const config =
|
|
603
|
+
const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
|
|
604
604
|
const normalizedName = name.trim();
|
|
605
605
|
if (!normalizedName) {
|
|
606
606
|
throw new Error("Workspace name is required.");
|
|
607
607
|
}
|
|
608
|
-
const http = new (0,
|
|
608
|
+
const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
|
|
609
609
|
const identity = await fetchWorkspaceCreationIdentity(http, config.apiKey);
|
|
610
610
|
let created;
|
|
611
611
|
let workspaceApiKey;
|
|
@@ -631,7 +631,7 @@ async function handleOrgCreate(name, options) {
|
|
|
631
631
|
sourceOrgId: identity.orgId,
|
|
632
632
|
name: normalizedName
|
|
633
633
|
});
|
|
634
|
-
const workspace = await new (0,
|
|
634
|
+
const workspace = await new (0, _chunkWQJJNIMQjs.DeeplineClient)({
|
|
635
635
|
apiKey: config.apiKey,
|
|
636
636
|
baseUrl: config.baseUrl
|
|
637
637
|
}).workspaces.create({
|
|
@@ -654,16 +654,16 @@ async function handleOrgCreate(name, options) {
|
|
|
654
654
|
orgName: created.org_name,
|
|
655
655
|
features: workspaceFeatures
|
|
656
656
|
});
|
|
657
|
-
|
|
657
|
+
_chunkV7UP2F4Ujs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
658
658
|
if (pendingIntentPath) _fs.unlinkSync.call(void 0, pendingIntentPath);
|
|
659
|
-
|
|
659
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
660
660
|
{
|
|
661
661
|
ok: true,
|
|
662
662
|
...created,
|
|
663
663
|
initial_credits: typeof created.initial_credits === "number" ? created.initial_credits : 0,
|
|
664
664
|
api_key_saved: true,
|
|
665
665
|
switched: true,
|
|
666
|
-
host_env_path:
|
|
666
|
+
host_env_path: _chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl),
|
|
667
667
|
...agentCommandContext(
|
|
668
668
|
organizationCommandContext({
|
|
669
669
|
orgId: created.org_id,
|
|
@@ -678,7 +678,7 @@ async function handleOrgCreate(name, options) {
|
|
|
678
678
|
lines: [
|
|
679
679
|
`Created organization: ${created.org_name}.`,
|
|
680
680
|
`Switched to ${created.org_name}.`,
|
|
681
|
-
`Saved host auth in ${
|
|
681
|
+
`Saved host auth in ${_chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
682
682
|
]
|
|
683
683
|
}
|
|
684
684
|
]
|
|
@@ -730,7 +730,7 @@ Examples:
|
|
|
730
730
|
);
|
|
731
731
|
const sso = org.command("sso").description("Manage Enterprise workspace SSO.");
|
|
732
732
|
const ssoPath = "/api/v2/auth/workspace/sso";
|
|
733
|
-
const printSso = (payload, json) =>
|
|
733
|
+
const printSso = (payload, json) => _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
734
734
|
{
|
|
735
735
|
...payload,
|
|
736
736
|
render: {
|
|
@@ -754,7 +754,7 @@ Examples:
|
|
|
754
754
|
},
|
|
755
755
|
{ json }
|
|
756
756
|
);
|
|
757
|
-
const ssoHttp = () => new (0,
|
|
757
|
+
const ssoHttp = () => new (0, _chunkV7UP2F4Ujs.HttpClient)(_chunkV7UP2F4Ujs.resolveConfig.call(void 0, ));
|
|
758
758
|
sso.command("status").description("Show this workspace's SSO connection and plan eligibility.").option("--json", "Emit JSON output").action(async (options) => {
|
|
759
759
|
printSso(await ssoHttp().get(ssoPath), options.json);
|
|
760
760
|
});
|
|
@@ -785,8 +785,8 @@ Examples:
|
|
|
785
785
|
"Identity provider metadata XML file"
|
|
786
786
|
).option("--json", "Emit JSON output").action(
|
|
787
787
|
async (options) => {
|
|
788
|
-
const config =
|
|
789
|
-
const http = new (0,
|
|
788
|
+
const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
|
|
789
|
+
const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
|
|
790
790
|
const identity = await fetchWorkspaceCreationIdentity(
|
|
791
791
|
http,
|
|
792
792
|
config.apiKey
|