deepline 0.3.394 → 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/client.ts +30 -162
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/plays/play-description.ts +167 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/cli/{auth-OSXDAVCF.mjs → auth-3LTD62VL.mjs} +4 -4
- package/dist/cli/auth-562JPKOM.js +39 -0
- package/dist/cli/{billing-ZNNKX3UR.mjs → billing-DP7ZAJBO.mjs} +5 -4
- package/dist/cli/{billing-EKLYOXUY.js → billing-PA5OXEM5.js} +76 -75
- package/dist/cli/{chunk-BP33SIZF.mjs → chunk-23GAA3YO.mjs} +1 -1
- package/dist/cli/{chunk-KI635JN4.js → chunk-2VOLOWYZ.js} +1087 -1056
- package/dist/cli/{chunk-XXUDVEXK.mjs → chunk-3T4MCB5R.mjs} +1026 -995
- package/dist/cli/{chunk-VB6KECLU.mjs → chunk-5WNJF2T3.mjs} +102 -36
- package/dist/cli/{chunk-KIUMEOM5.js → chunk-772W2SAU.js} +8 -8
- package/dist/cli/{chunk-2MDDA7A4.js → chunk-7Z66NHUC.js} +26 -26
- package/dist/cli/{chunk-M57J2SK4.mjs → chunk-AUYXWELC.mjs} +2 -2
- package/dist/cli/{chunk-354JCXA2.js → chunk-AVHLATII.js} +50 -50
- package/dist/cli/{chunk-MLPU5SMZ.js → chunk-DC6LTULT.js} +2 -2
- package/dist/cli/chunk-EIMG75BT.mjs +130 -0
- package/dist/cli/{chunk-6YAUMG27.js → chunk-GNN4MY5X.js} +1 -1
- package/dist/cli/{chunk-UXFSWG3Q.mjs → chunk-I4T4XAA2.mjs} +4 -4
- package/dist/cli/{chunk-MFB2VKBO.mjs → chunk-JCN4DHF7.mjs} +2 -2
- package/dist/cli/{chunk-VK6FYZLP.js → chunk-KAEZNPUM.js} +23 -8
- package/dist/cli/chunk-KXMNM4AQ.js +130 -0
- package/dist/cli/{chunk-XRQ2AQL7.mjs → chunk-LOGGNW4H.mjs} +2 -2
- package/dist/cli/{chunk-RDXFGPJU.js → chunk-LWERJUKN.js} +218 -218
- package/dist/cli/{chunk-QIQBYKLB.js → chunk-ME6XRFLY.js} +15 -15
- package/dist/cli/{chunk-JHIJIHFB.mjs → chunk-MR6XCBQJ.mjs} +23 -131
- package/dist/cli/{chunk-TJI2EN6K.mjs → chunk-NHB5YUCS.mjs} +1 -1
- package/dist/cli/{chunk-ZMVJSS6N.js → chunk-NSOTASOP.js} +101 -35
- package/dist/cli/{chunk-ZYBGA4AR.mjs → chunk-QHGPA362.mjs} +18 -3
- package/dist/cli/{chunk-4P27AXEA.js → chunk-RMTASUAK.js} +65 -65
- package/dist/cli/{chunk-KGNTKMRG.js → chunk-RTO5QZWT.js} +6 -6
- package/dist/cli/{chunk-X63FDZJZ.mjs → chunk-TLQ3FZOC.mjs} +3 -3
- package/dist/cli/{chunk-CS6RAIVY.js → chunk-V7UP2F4U.js} +4 -4
- package/dist/cli/{chunk-FJGW5GXU.mjs → chunk-VE3U3SQC.mjs} +1 -1
- package/dist/cli/{chunk-E23BQ5SC.js → chunk-WQJJNIMQ.js} +241 -349
- package/dist/cli/{chunk-NR3DFKNF.mjs → chunk-XKZXO7D3.mjs} +1 -1
- package/dist/cli/{csv-5AXRB35H.mjs → csv-RLRR74RQ.mjs} +3 -3
- package/dist/cli/{csv-LU7O75WE.js → csv-TF576S77.js} +12 -12
- package/dist/cli/{db-F7YTFKVM.js → db-FDBJUTFO.js} +30 -29
- package/dist/cli/{db-7XP5UWEW.mjs → db-XORGNBIC.mjs} +5 -4
- package/dist/cli/{describe-K4ES5LIL.mjs → describe-6O2ENKTP.mjs} +86 -67
- package/dist/cli/{describe-FRH32RDV.js → describe-EFWNECHI.js} +100 -81
- package/dist/cli/{executions-RZV5XPT2.js → executions-SFYAXPF4.js} +7 -6
- package/dist/cli/{executions-IEHEHJUO.mjs → executions-YPP7WR77.mjs} +5 -4
- package/dist/cli/{feedback-3P65QTX3.js → feedback-5UZFYMGB.js} +7 -7
- package/dist/cli/{feedback-FPUVZBAN.mjs → feedback-RBGA5ARU.mjs} +3 -3
- package/dist/cli/git-5LDY5ZID.js +23 -0
- package/dist/cli/{git-GLVVP7TY.mjs → git-IRSAJEK2.mjs} +4 -4
- package/dist/cli/index.js +93 -93
- package/dist/cli/index.mjs +42 -42
- package/dist/cli/{legacy-noops-XKSGZR7Q.js → legacy-noops-CVAOQY2F.js} +7 -7
- package/dist/cli/{legacy-noops-3MOI6NBM.mjs → legacy-noops-NA7N6ZOU.mjs} +4 -4
- package/dist/cli/{monitors-NZ2DYNST.js → monitors-4OMRXCXP.js} +86 -85
- package/dist/cli/{monitors-FTBGNEFG.mjs → monitors-ILZ2XHYG.mjs} +5 -4
- package/dist/cli/{org-V2J5RBCN.mjs → org-QDDXAE3J.mjs} +5 -4
- package/dist/cli/{org-MCKDQXIV.js → org-YGNJDD2X.js} +65 -64
- package/dist/cli/{chunk-RBJYWRCF.js → play-L535H26U.js} +270 -325
- package/dist/cli/{chunk-5BB2RGAX.mjs → play-VT6OHB2D.mjs} +77 -132
- package/dist/cli/{providers-2JEZ2264.js → providers-GPZ6PQAL.js} +8 -7
- package/dist/cli/{providers-I6RQJZFZ.mjs → providers-KG4W5MPK.mjs} +5 -4
- package/dist/cli/{quickstart-BIDQDMO4.mjs → quickstart-2JDGTXIG.mjs} +3 -3
- package/dist/cli/{quickstart-GJ2RPDU3.js → quickstart-UI27S5LO.js} +5 -5
- package/dist/cli/search-MGWROZ33.js +28 -0
- package/dist/cli/{search-ELRXFWG5.mjs → search-PW3RAUX7.mjs} +6 -5
- package/dist/cli/{secrets-SQXGZXIC.mjs → secrets-HNOMK5A2.mjs} +5 -4
- package/dist/cli/{secrets-53IT6VXD.js → secrets-WFAXOUZE.js} +14 -13
- package/dist/cli/{sessions-CAV5M77Y.js → sessions-366KROUA.js} +5 -5
- package/dist/cli/{sessions-2X5QF7SL.mjs → sessions-XLX3E5UO.mjs} +4 -4
- package/dist/cli/{settings-532WNAZO.js → settings-GADAG2UK.js} +75 -74
- package/dist/cli/{settings-7P67VGCJ.mjs → settings-YNZ4YKCH.mjs} +8 -7
- package/dist/cli/{setup-QGGBV2LE.mjs → setup-PSEHIUXO.mjs} +6 -6
- package/dist/cli/{setup-6L2VSUWJ.js → setup-R5YO7GT6.js} +41 -41
- package/dist/cli/skills-JF2LPEGM.js +28 -0
- package/dist/cli/{skills-3FE62WBG.mjs → skills-LTQBP6CZ.mjs} +4 -4
- package/dist/cli/tools-CP2PEFRN.js +34 -0
- package/dist/cli/{tools-DMR25DEF.mjs → tools-UAXDWU63.mjs} +11 -18
- package/dist/cli/update-HZHZOU6C.js +28 -0
- package/dist/cli/{update-6RZMHJZP.mjs → update-SMNIBIMS.mjs} +6 -6
- package/dist/cli/{workflow-TX4F2PIX.js → workflow-AOQVZHMD.js} +16 -15
- package/dist/cli/{workflow-L2DQRE6R.mjs → workflow-IKGMBGF6.mjs} +6 -5
- package/dist/{client-C3O1Ipf3.d.ts → client-Bgis7F6-.d.ts} +22 -12
- package/dist/{client-BktIPdIj.d.mts → client-DiGl8ska.d.mts} +22 -12
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -10
- package/dist/index.mjs +9 -8
- package/dist/install-integrity.json +83 -78
- package/dist/plays/play-description.d.mts +6 -0
- package/dist/plays/play-description.d.ts +6 -0
- package/dist/plays/play-description.js +11 -0
- package/dist/plays/play-description.mjs +11 -0
- 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 +6 -1
- package/dist/cli/auth-IHKISLJQ.js +0 -39
- package/dist/cli/git-MFFAWVVX.js +0 -23
- package/dist/cli/play-AJFGME3B.mjs +0 -158
- package/dist/cli/play-WLSN2EO2.js +0 -158
- package/dist/cli/search-5VN4YD4I.js +0 -27
- package/dist/cli/skills-S6NPZAN7.js +0 -28
- package/dist/cli/tools-647RLXQS.js +0 -41
- package/dist/cli/update-WVTSC3EM.js +0 -28
- package/dist/cli/{chunk-KZZC33PY.mjs → chunk-H5KLUGY7.mjs} +214 -214
|
@@ -1,12 +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-EIMG75BT.mjs";
|
|
6
7
|
import "./chunk-UBKA33KY.mjs";
|
|
7
8
|
import {
|
|
8
9
|
printCommandEnvelope
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XKZXO7D3.mjs";
|
|
10
11
|
import {
|
|
11
12
|
ACTIVE_ORG_ID_ENV,
|
|
12
13
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -27,10 +28,10 @@ import {
|
|
|
27
28
|
saveProjectDeeplineEnvValues,
|
|
28
29
|
sdkCliStateDirPath,
|
|
29
30
|
storedHostFeatures
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VE3U3SQC.mjs";
|
|
31
32
|
import "./chunk-DLIRSHV6.mjs";
|
|
32
33
|
import "./chunk-NXGCO4JB.mjs";
|
|
33
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-NHB5YUCS.mjs";
|
|
34
35
|
import "./chunk-WZYKRD7T.mjs";
|
|
35
36
|
import "./chunk-KRD6H754.mjs";
|
|
36
37
|
|
|
@@ -1,12 +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-KXMNM4AQ.js');
|
|
6
7
|
require('./chunk-XDVT3GOM.js');
|
|
7
8
|
|
|
8
9
|
|
|
9
|
-
var
|
|
10
|
+
var _chunkRTO5QZWTjs = require('./chunk-RTO5QZWT.js');
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
|
|
@@ -27,10 +28,10 @@ var _chunkKGNTKMRGjs = require('./chunk-KGNTKMRG.js');
|
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
|
|
30
|
-
var
|
|
31
|
+
var _chunkV7UP2F4Ujs = require('./chunk-V7UP2F4U.js');
|
|
31
32
|
require('./chunk-XNYIZMNQ.js');
|
|
32
33
|
require('./chunk-7P5AA3SN.js');
|
|
33
|
-
require('./chunk-
|
|
34
|
+
require('./chunk-GNN4MY5X.js');
|
|
34
35
|
require('./chunk-OG64RBAC.js');
|
|
35
36
|
require('./chunk-COGTRVWW.js');
|
|
36
37
|
|
|
@@ -46,7 +47,7 @@ var _fs = require('fs');
|
|
|
46
47
|
var _path = require('path');
|
|
47
48
|
function pendingOrgCreatePath(baseUrl, accountId, sourceOrgId, name) {
|
|
48
49
|
const intent = _crypto.createHash.call(void 0, "sha256").update(accountId).update("\0").update(sourceOrgId).update("\0").update(name).digest("hex");
|
|
49
|
-
return _path.join.call(void 0,
|
|
50
|
+
return _path.join.call(void 0, _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
|
|
50
51
|
}
|
|
51
52
|
function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
|
|
52
53
|
let value;
|
|
@@ -65,7 +66,7 @@ function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
|
|
|
65
66
|
return value;
|
|
66
67
|
}
|
|
67
68
|
function loadOrCreatePendingOrgCreate(input) {
|
|
68
|
-
const stateDir =
|
|
69
|
+
const stateDir = _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, input.baseUrl);
|
|
69
70
|
const path = pendingOrgCreatePath(
|
|
70
71
|
input.baseUrl,
|
|
71
72
|
input.accountId,
|
|
@@ -150,11 +151,11 @@ function processEnvValue(name) {
|
|
|
150
151
|
}
|
|
151
152
|
function organizationAuthValues(input) {
|
|
152
153
|
return {
|
|
153
|
-
[
|
|
154
|
-
[
|
|
155
|
-
[
|
|
156
|
-
[
|
|
157
|
-
...
|
|
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)
|
|
158
159
|
};
|
|
159
160
|
}
|
|
160
161
|
function organizationCommandContext(input) {
|
|
@@ -168,14 +169,14 @@ function organizationCommandContext(input) {
|
|
|
168
169
|
};
|
|
169
170
|
}
|
|
170
171
|
function agentCommandContext(commandContext) {
|
|
171
|
-
return
|
|
172
|
+
return _chunkV7UP2F4Ujs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
|
|
172
173
|
}
|
|
173
174
|
function resolveOrgSwitchAuthTarget(scope, config) {
|
|
174
|
-
const activeProject =
|
|
175
|
+
const activeProject = _chunkV7UP2F4Ujs.getResolvedProjectAuthSource.call(void 0,
|
|
175
176
|
config.baseUrl,
|
|
176
177
|
config.apiKey
|
|
177
178
|
);
|
|
178
|
-
const folderTarget =
|
|
179
|
+
const folderTarget = _chunkV7UP2F4Ujs.resolveProjectPinTarget.call(void 0, );
|
|
179
180
|
const globalOverrideWarning = activeProject && scope === "global" ? [
|
|
180
181
|
`Folder auth in ${activeProject.filePath} overrides global auth for commands run here.`
|
|
181
182
|
] : [];
|
|
@@ -247,10 +248,10 @@ function resolveOrgSwitchAuthTarget(scope, config) {
|
|
|
247
248
|
};
|
|
248
249
|
}
|
|
249
250
|
async function handleOrgList(options) {
|
|
250
|
-
const config =
|
|
251
|
-
const http = new (0,
|
|
251
|
+
const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
|
|
252
|
+
const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
|
|
252
253
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
253
|
-
|
|
254
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
254
255
|
{
|
|
255
256
|
...payload,
|
|
256
257
|
render: {
|
|
@@ -266,22 +267,22 @@ async function handleOrgList(options) {
|
|
|
266
267
|
);
|
|
267
268
|
}
|
|
268
269
|
async function handleOrgStatus(options) {
|
|
269
|
-
const config =
|
|
270
|
-
const http = new (0,
|
|
270
|
+
const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
|
|
271
|
+
const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
|
|
271
272
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
272
273
|
const current = _nullishCoalesce(_nullishCoalesce(payload.organizations.find((org) => org.is_current), () => ( payload.organizations.find(
|
|
273
274
|
(org) => org.org_id === payload.current_org_id
|
|
274
275
|
))), () => ( null));
|
|
275
|
-
const projectCandidate =
|
|
276
|
-
const activeProject =
|
|
276
|
+
const projectCandidate = _chunkV7UP2F4Ujs.getActiveProjectAuthSource.call(void 0, );
|
|
277
|
+
const activeProject = _chunkV7UP2F4Ujs.getResolvedProjectAuthSource.call(void 0,
|
|
277
278
|
config.baseUrl,
|
|
278
279
|
config.apiKey
|
|
279
280
|
);
|
|
280
|
-
const folderTarget =
|
|
281
|
-
const provenance =
|
|
282
|
-
const hostPath =
|
|
283
|
-
const envApiKey = processEnvValue(
|
|
284
|
-
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);
|
|
285
286
|
const authSource = envApiKey ? {
|
|
286
287
|
scope: "env",
|
|
287
288
|
source: "process",
|
|
@@ -322,17 +323,17 @@ async function handleOrgStatus(options) {
|
|
|
322
323
|
if (authSource.path) {
|
|
323
324
|
lines.push(`Auth file: ${authSource.path}`);
|
|
324
325
|
} else {
|
|
325
|
-
lines.push(`Auth source: ${
|
|
326
|
+
lines.push(`Auth source: ${_chunkV7UP2F4Ujs.API_KEY_ENV} process environment`);
|
|
326
327
|
}
|
|
327
328
|
if (envApiKey) {
|
|
328
|
-
lines.push(`${
|
|
329
|
+
lines.push(`${_chunkV7UP2F4Ujs.API_KEY_ENV} overrides saved auth for this process.`);
|
|
329
330
|
} else if (activeProject) {
|
|
330
331
|
lines.push("Global auth is overridden in this folder.");
|
|
331
332
|
} else if (provenance.scope === "global" && provenance.project.state === "project") {
|
|
332
333
|
lines.push("Cloud mutations are blocked until this project is pinned.");
|
|
333
334
|
lines.push("Pin it: deepline org set --auth-scope folder");
|
|
334
335
|
}
|
|
335
|
-
|
|
336
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
336
337
|
{
|
|
337
338
|
ok: true,
|
|
338
339
|
host: config.baseUrl,
|
|
@@ -366,25 +367,25 @@ async function handleOrgStatus(options) {
|
|
|
366
367
|
}
|
|
367
368
|
async function handleOrgSwitch(selection, options) {
|
|
368
369
|
const authScope = normalizeAuthScope(options.authScope);
|
|
369
|
-
const config =
|
|
370
|
-
const provenance =
|
|
370
|
+
const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
|
|
371
|
+
const provenance = _chunkV7UP2F4Ujs.resolveCliAuthProvenance.call(void 0, config);
|
|
371
372
|
if (!selection && !options.orgId && authScope === "folder" && provenance.scope === "global" && provenance.project.state === "project") {
|
|
372
|
-
const commandContext =
|
|
373
|
+
const commandContext = _chunkV7UP2F4Ujs.resolveCliCommandContext.call(void 0, config);
|
|
373
374
|
const activeOrganization = commandContext.active_organization;
|
|
374
|
-
const pinnedFeatures =
|
|
375
|
-
const project_env_paths2 =
|
|
375
|
+
const pinnedFeatures = _chunkV7UP2F4Ujs.storedHostFeatures.call(void 0, config.baseUrl);
|
|
376
|
+
const project_env_paths2 = _chunkV7UP2F4Ujs.saveProjectDeeplineEnvValues.call(void 0,
|
|
376
377
|
{
|
|
377
|
-
[
|
|
378
|
-
[
|
|
378
|
+
[_chunkV7UP2F4Ujs.HOST_URL_ENV]: config.baseUrl,
|
|
379
|
+
[_chunkV7UP2F4Ujs.API_KEY_ENV]: config.apiKey,
|
|
379
380
|
...activeOrganization ? {
|
|
380
|
-
[
|
|
381
|
-
[
|
|
381
|
+
[_chunkV7UP2F4Ujs.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
|
|
382
|
+
[_chunkV7UP2F4Ujs.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
|
|
382
383
|
} : {},
|
|
383
|
-
...pinnedFeatures !== void 0 ? { [
|
|
384
|
+
...pinnedFeatures !== void 0 ? { [_chunkV7UP2F4Ujs.FEATURES_ENV]: pinnedFeatures } : {}
|
|
384
385
|
},
|
|
385
386
|
provenance.project.dir
|
|
386
387
|
);
|
|
387
|
-
|
|
388
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
388
389
|
{
|
|
389
390
|
ok: true,
|
|
390
391
|
unchanged: true,
|
|
@@ -396,7 +397,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
396
397
|
orgId: activeOrganization.org_id,
|
|
397
398
|
orgName: activeOrganization.org_name,
|
|
398
399
|
authScope: "folder"
|
|
399
|
-
}) :
|
|
400
|
+
}) : _chunkV7UP2F4Ujs.resolveCliCommandContext.call(void 0, config, "folder")
|
|
400
401
|
),
|
|
401
402
|
project_env_paths: project_env_paths2,
|
|
402
403
|
next: { status: "deepline org status" },
|
|
@@ -417,10 +418,10 @@ async function handleOrgSwitch(selection, options) {
|
|
|
417
418
|
);
|
|
418
419
|
return;
|
|
419
420
|
}
|
|
420
|
-
const http = new (0,
|
|
421
|
+
const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
|
|
421
422
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
422
423
|
if (!selection && !options.orgId) {
|
|
423
|
-
|
|
424
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
424
425
|
{
|
|
425
426
|
...payload,
|
|
426
427
|
next: { set: "deepline org set <number>" },
|
|
@@ -471,9 +472,9 @@ async function handleOrgSwitch(selection, options) {
|
|
|
471
472
|
features
|
|
472
473
|
});
|
|
473
474
|
if (authTarget.kind === "folder") {
|
|
474
|
-
project_env_paths2 =
|
|
475
|
+
project_env_paths2 = _chunkV7UP2F4Ujs.saveProjectDeeplineEnvValues.call(void 0, authValues2);
|
|
475
476
|
} else {
|
|
476
|
-
|
|
477
|
+
_chunkV7UP2F4Ujs.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
|
|
477
478
|
}
|
|
478
479
|
const renderLines2 = [`Already on ${target.name}.`];
|
|
479
480
|
for (const projectPath of project_env_paths2) {
|
|
@@ -481,7 +482,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
481
482
|
}
|
|
482
483
|
if (authTarget.kind === "global") {
|
|
483
484
|
renderLines2.push(
|
|
484
|
-
`Saved global auth in ${
|
|
485
|
+
`Saved global auth in ${_chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
485
486
|
);
|
|
486
487
|
}
|
|
487
488
|
renderLines2.push(
|
|
@@ -497,7 +498,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
497
498
|
...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
|
|
498
499
|
...authTarget.warnings
|
|
499
500
|
];
|
|
500
|
-
|
|
501
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
501
502
|
{
|
|
502
503
|
ok: true,
|
|
503
504
|
unchanged: true,
|
|
@@ -513,7 +514,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
513
514
|
authScope: authTarget.effective_scope
|
|
514
515
|
})
|
|
515
516
|
),
|
|
516
|
-
host_env_path: authTarget.kind === "global" ?
|
|
517
|
+
host_env_path: authTarget.kind === "global" ? _chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
|
|
517
518
|
project_env_paths: project_env_paths2,
|
|
518
519
|
deprecated_command: options.deprecatedSwitch ? "org switch" : null,
|
|
519
520
|
replacement_command: options.deprecatedSwitch ? "deepline org set" : null,
|
|
@@ -539,9 +540,9 @@ async function handleOrgSwitch(selection, options) {
|
|
|
539
540
|
features: switched.features
|
|
540
541
|
});
|
|
541
542
|
if (authTarget.kind === "folder") {
|
|
542
|
-
project_env_paths =
|
|
543
|
+
project_env_paths = _chunkV7UP2F4Ujs.saveProjectDeeplineEnvValues.call(void 0, authValues);
|
|
543
544
|
} else {
|
|
544
|
-
|
|
545
|
+
_chunkV7UP2F4Ujs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
545
546
|
}
|
|
546
547
|
const { api_key: _apiKey, ...publicSwitched } = switched;
|
|
547
548
|
const renderLines = [`Switched to ${switched.org_name}.`];
|
|
@@ -550,7 +551,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
550
551
|
renderLines.push(`Saved folder auth in ${projectPath}`);
|
|
551
552
|
}
|
|
552
553
|
} else {
|
|
553
|
-
renderLines.push(`Saved global auth in ${
|
|
554
|
+
renderLines.push(`Saved global auth in ${_chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl)}`);
|
|
554
555
|
}
|
|
555
556
|
renderLines.push(
|
|
556
557
|
`Scope: ${authTarget.requested_scope} -> ${authTarget.effective_scope} (${authTarget.reason})`
|
|
@@ -565,10 +566,10 @@ async function handleOrgSwitch(selection, options) {
|
|
|
565
566
|
...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
|
|
566
567
|
...authTarget.warnings
|
|
567
568
|
];
|
|
568
|
-
|
|
569
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
569
570
|
{
|
|
570
571
|
ok: true,
|
|
571
|
-
host_env_path: authTarget.kind === "global" ?
|
|
572
|
+
host_env_path: authTarget.kind === "global" ? _chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
|
|
572
573
|
project_env_paths,
|
|
573
574
|
...publicSwitched,
|
|
574
575
|
api_key_saved: true,
|
|
@@ -599,12 +600,12 @@ async function handleOrgSwitch(selection, options) {
|
|
|
599
600
|
);
|
|
600
601
|
}
|
|
601
602
|
async function handleOrgCreate(name, options) {
|
|
602
|
-
const config =
|
|
603
|
+
const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
|
|
603
604
|
const normalizedName = name.trim();
|
|
604
605
|
if (!normalizedName) {
|
|
605
606
|
throw new Error("Workspace name is required.");
|
|
606
607
|
}
|
|
607
|
-
const http = new (0,
|
|
608
|
+
const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
|
|
608
609
|
const identity = await fetchWorkspaceCreationIdentity(http, config.apiKey);
|
|
609
610
|
let created;
|
|
610
611
|
let workspaceApiKey;
|
|
@@ -630,7 +631,7 @@ async function handleOrgCreate(name, options) {
|
|
|
630
631
|
sourceOrgId: identity.orgId,
|
|
631
632
|
name: normalizedName
|
|
632
633
|
});
|
|
633
|
-
const workspace = await new (0,
|
|
634
|
+
const workspace = await new (0, _chunkWQJJNIMQjs.DeeplineClient)({
|
|
634
635
|
apiKey: config.apiKey,
|
|
635
636
|
baseUrl: config.baseUrl
|
|
636
637
|
}).workspaces.create({
|
|
@@ -653,16 +654,16 @@ async function handleOrgCreate(name, options) {
|
|
|
653
654
|
orgName: created.org_name,
|
|
654
655
|
features: workspaceFeatures
|
|
655
656
|
});
|
|
656
|
-
|
|
657
|
+
_chunkV7UP2F4Ujs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
657
658
|
if (pendingIntentPath) _fs.unlinkSync.call(void 0, pendingIntentPath);
|
|
658
|
-
|
|
659
|
+
_chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
659
660
|
{
|
|
660
661
|
ok: true,
|
|
661
662
|
...created,
|
|
662
663
|
initial_credits: typeof created.initial_credits === "number" ? created.initial_credits : 0,
|
|
663
664
|
api_key_saved: true,
|
|
664
665
|
switched: true,
|
|
665
|
-
host_env_path:
|
|
666
|
+
host_env_path: _chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl),
|
|
666
667
|
...agentCommandContext(
|
|
667
668
|
organizationCommandContext({
|
|
668
669
|
orgId: created.org_id,
|
|
@@ -677,7 +678,7 @@ async function handleOrgCreate(name, options) {
|
|
|
677
678
|
lines: [
|
|
678
679
|
`Created organization: ${created.org_name}.`,
|
|
679
680
|
`Switched to ${created.org_name}.`,
|
|
680
|
-
`Saved host auth in ${
|
|
681
|
+
`Saved host auth in ${_chunkV7UP2F4Ujs.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
681
682
|
]
|
|
682
683
|
}
|
|
683
684
|
]
|
|
@@ -729,7 +730,7 @@ Examples:
|
|
|
729
730
|
);
|
|
730
731
|
const sso = org.command("sso").description("Manage Enterprise workspace SSO.");
|
|
731
732
|
const ssoPath = "/api/v2/auth/workspace/sso";
|
|
732
|
-
const printSso = (payload, json) =>
|
|
733
|
+
const printSso = (payload, json) => _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
|
|
733
734
|
{
|
|
734
735
|
...payload,
|
|
735
736
|
render: {
|
|
@@ -753,7 +754,7 @@ Examples:
|
|
|
753
754
|
},
|
|
754
755
|
{ json }
|
|
755
756
|
);
|
|
756
|
-
const ssoHttp = () => new (0,
|
|
757
|
+
const ssoHttp = () => new (0, _chunkV7UP2F4Ujs.HttpClient)(_chunkV7UP2F4Ujs.resolveConfig.call(void 0, ));
|
|
757
758
|
sso.command("status").description("Show this workspace's SSO connection and plan eligibility.").option("--json", "Emit JSON output").action(async (options) => {
|
|
758
759
|
printSso(await ssoHttp().get(ssoPath), options.json);
|
|
759
760
|
});
|
|
@@ -784,8 +785,8 @@ Examples:
|
|
|
784
785
|
"Identity provider metadata XML file"
|
|
785
786
|
).option("--json", "Emit JSON output").action(
|
|
786
787
|
async (options) => {
|
|
787
|
-
const config =
|
|
788
|
-
const http = new (0,
|
|
788
|
+
const config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, );
|
|
789
|
+
const http = new (0, _chunkV7UP2F4Ujs.HttpClient)(config);
|
|
789
790
|
const identity = await fetchWorkspaceCreationIdentity(
|
|
790
791
|
http,
|
|
791
792
|
config.apiKey
|