deepline 0.3.575 → 0.3.576
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 +13 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +145 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +153 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +41 -5
- package/dist/cli/{agents-ULGDKUTM.mjs → agents-BLJR2Y3X.mjs} +35 -4
- package/dist/cli/{agents-BCLO3KQJ.js → agents-CJQ7KBFT.js} +61 -30
- package/dist/cli/auth-GSDYP4ZN.js +44 -0
- package/dist/cli/{auth-4WCL7A6W.mjs → auth-SLZIRCPE.mjs} +5 -5
- package/dist/cli/{billing-7JQ6EUQU.mjs → billing-6Q4SK5KF.mjs} +9 -9
- package/dist/cli/{billing-BF5LVXOM.js → billing-IECMVARO.js} +102 -102
- package/dist/cli/{chunk-2T7XOKVL.mjs → chunk-2UHEJPSS.mjs} +5 -5
- package/dist/cli/{chunk-AO56MZ7D.js → chunk-36254433.js} +3 -3
- package/dist/cli/{chunk-EZIXKNKM.js → chunk-45POZK3F.js} +3 -3
- package/dist/cli/{chunk-5H6254MJ.js → chunk-4KIIXV5Z.js} +16 -16
- package/dist/cli/{chunk-GQZFZG6R.mjs → chunk-5VABOJ4M.mjs} +2 -2
- package/dist/cli/{chunk-TTBZ7QXX.mjs → chunk-66K7F7LR.mjs} +1 -1
- package/dist/cli/{chunk-HEOM3FAC.js → chunk-6JQZC6HX.js} +20 -20
- package/dist/cli/{chunk-XFV353R2.js → chunk-6RY5COUY.js} +23 -23
- package/dist/cli/{chunk-RHRRY2BX.mjs → chunk-7DI34I73.mjs} +3 -3
- package/dist/cli/{chunk-ZYSJND73.js → chunk-ANPHEXTT.js} +9 -9
- package/dist/cli/{chunk-JGLCK2XF.mjs → chunk-AUR24RQB.mjs} +2 -2
- package/dist/cli/{chunk-FDCU3VAJ.mjs → chunk-AZFSCPYK.mjs} +18 -1
- package/dist/cli/{chunk-YNAXKA23.js → chunk-BRPUB6UA.js} +5 -5
- package/dist/cli/{chunk-BM536WWR.mjs → chunk-CUIFDMNP.mjs} +11 -1
- package/dist/cli/{chunk-SYQTBHRX.mjs → chunk-D5LWYP2H.mjs} +3 -3
- package/dist/cli/{chunk-ZQXJYO5P.js → chunk-DGY4EYIX.js} +5 -5
- package/dist/cli/{chunk-2UM3I2MY.js → chunk-E4M4QZBP.js} +11 -1
- package/dist/cli/{chunk-V5XLENWK.js → chunk-EQO77FQZ.js} +5 -5
- package/dist/cli/{chunk-H6JMRLAZ.js → chunk-F4H26PP6.js} +100 -100
- package/dist/cli/{chunk-MN7JLH2T.mjs → chunk-GI57Q7JU.mjs} +2 -2
- package/dist/cli/{chunk-ZS6DT4LD.js → chunk-GZ7KYGYE.js} +15 -15
- package/dist/cli/{chunk-TMFR2B45.mjs → chunk-HE53AI2E.mjs} +3 -3
- package/dist/cli/{chunk-6IKLITVH.js → chunk-HHMO3CON.js} +6 -6
- package/dist/cli/{chunk-X47J55ZJ.mjs → chunk-JPFAD6G6.mjs} +2 -2
- package/dist/cli/{chunk-EV3OPDHF.js → chunk-JSIOLCTK.js} +20 -20
- package/dist/cli/{chunk-QKP3WYSZ.mjs → chunk-KQTZO6NT.mjs} +2 -2
- package/dist/cli/{chunk-636GD4IR.js → chunk-L6H72AIX.js} +2 -2
- package/dist/cli/{chunk-IAJ65IDZ.mjs → chunk-LKC7PHDX.mjs} +4 -4
- package/dist/cli/{chunk-HO76C7AE.js → chunk-M23G33MH.js} +2 -2
- package/dist/cli/{chunk-KNCNFL76.js → chunk-MDJ4LPQ5.js} +4 -4
- package/dist/cli/{chunk-DMPGJCNZ.js → chunk-MXPCTF57.js} +18 -1
- package/dist/cli/{chunk-FXXERR52.js → chunk-NQFZ7FYN.js} +10 -10
- package/dist/cli/{chunk-MWLOBURN.mjs → chunk-OMVBBAQP.mjs} +2 -2
- package/dist/cli/{chunk-737Y7QGT.js → chunk-OXRG325T.js} +41 -41
- package/dist/cli/{chunk-CVY4MBXH.mjs → chunk-PU5VCDCJ.mjs} +5 -5
- package/dist/cli/{chunk-5VSHQG5E.js → chunk-PYFMNPTA.js} +8 -8
- package/dist/cli/{chunk-IOWLFWWG.mjs → chunk-QCD7BQ5Z.mjs} +2 -2
- package/dist/cli/{chunk-QEDRUURT.mjs → chunk-R5NKLZL2.mjs} +1 -1
- package/dist/cli/{chunk-E4RYSSXX.mjs → chunk-S4IW4NAI.mjs} +1 -1
- package/dist/cli/{chunk-7DLAJ6JJ.js → chunk-SBZSJQEI.js} +53 -53
- package/dist/cli/{chunk-BQUAE6LQ.mjs → chunk-SY3OKOI5.mjs} +1 -1
- package/dist/cli/{chunk-NF722E6C.mjs → chunk-TZHS2W5Z.mjs} +1 -1
- package/dist/cli/{chunk-AS5XGOZY.js → chunk-UD6M2ZTY.js} +2 -2
- package/dist/cli/{chunk-56N3XAT6.mjs → chunk-UGIH4462.mjs} +5 -5
- package/dist/cli/{chunk-PQYDO72W.js → chunk-V25CXBR2.js} +26 -26
- package/dist/cli/{chunk-GB4IZ5TV.js → chunk-WDWV77SJ.js} +13 -13
- package/dist/cli/{chunk-G4WPDCXA.js → chunk-WPGZ6V36.js} +48 -48
- package/dist/cli/{chunk-UQZP7XBQ.mjs → chunk-X5V6S5KI.mjs} +5 -5
- package/dist/cli/{chunk-IBYMGR5Y.mjs → chunk-XJNJ3BWU.mjs} +1 -1
- package/dist/cli/{chunk-G2H6SQQY.js → chunk-Y4A6Y5EY.js} +7 -7
- package/dist/cli/{chunk-5D7OJY4W.mjs → chunk-YHM64N5C.mjs} +1 -1
- package/dist/cli/{chunk-H3CG72RZ.mjs → chunk-ZIGMC2X4.mjs} +11 -11
- package/dist/cli/{chunk-3PVKXUSJ.mjs → chunk-ZRC52APB.mjs} +1 -1
- package/dist/cli/{chunk-BONMEBWZ.mjs → chunk-ZYN6S6G2.mjs} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-HITK6EOO.mjs → concurrent-runs-help-H3SA7J6H.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-PB7GT6F2.js +22 -0
- package/dist/cli/{csv-RS7XHQ4P.js → csv-6DEKR3QQ.js} +13 -13
- package/dist/cli/{csv-V2T23MXT.mjs → csv-ICXI7JAS.mjs} +4 -4
- package/dist/cli/{db-WFIVRPKY.js → db-AG7INMLP.js} +27 -27
- package/dist/cli/{db-OQ4RNTGE.mjs → db-VI7T5E6O.mjs} +6 -6
- package/dist/cli/describe-LMHIG3DP.js +50 -0
- package/dist/cli/{describe-AXV2EEX3.mjs → describe-S6NFWWGK.mjs} +18 -18
- package/dist/cli/{executions-5H2RIWZ3.js → executions-M5R5QHIA.js} +8 -8
- package/dist/cli/{executions-THP5ZDBQ.mjs → executions-MK7H4Q2H.mjs} +6 -6
- package/dist/cli/{feedback-UOI6UEGA.js → feedback-L3L4FEQL.js} +14 -14
- package/dist/cli/{feedback-2EJPILGE.mjs → feedback-ZHATL2XF.mjs} +6 -6
- package/dist/cli/{git-DI3LJIAT.mjs → git-W5DHNH2Q.mjs} +5 -5
- package/dist/cli/git-WYNCLDHD.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-DJYS5VRK.mjs → integrations-73YSN2LI.mjs} +7 -7
- package/dist/cli/{integrations-TYN2BSQ6.js → integrations-IBWNO3YP.js} +29 -29
- package/dist/cli/{legacy-noops-Z457BB6O.mjs → legacy-noops-4LFZJTDX.mjs} +6 -6
- package/dist/cli/{legacy-noops-GXQHNLGJ.js → legacy-noops-AE6DBYJM.js} +9 -9
- package/dist/cli/{mcp-WMBOOTQL.js → mcp-BKL6M6OI.js} +24 -24
- package/dist/cli/{mcp-NAW3GFNN.mjs → mcp-E6PTSNDE.mjs} +4 -4
- package/dist/cli/{monitors-A7NYAXSJ.mjs → monitors-MXJ27KQK.mjs} +7 -7
- package/dist/cli/{monitors-OOQVE7XR.js → monitors-SW7ZCPPT.js} +100 -100
- package/dist/cli/{org-7YCDUSZE.mjs → org-HYAJ2MIK.mjs} +6 -6
- package/dist/cli/{org-D2AMIVBS.js → org-XJ44KZ5I.js} +121 -121
- package/dist/cli/{outcomes-2FKZDJSQ.js → outcomes-PTXGG4BZ.js} +14 -14
- package/dist/cli/{outcomes-TNTKCUEO.mjs → outcomes-PUMAXRGD.mjs} +6 -6
- package/dist/cli/{play-NWKHCHVZ.js → play-EPDZ3GDV.js} +336 -336
- package/dist/cli/{play-L6CVHSN4.mjs → play-QN3X6IAE.mjs} +19 -19
- package/dist/cli/{providers-PZGOI5CN.js → providers-GNJFGNDH.js} +9 -9
- package/dist/cli/{providers-22LO747B.mjs → providers-JIN5UQ7Z.mjs} +6 -6
- package/dist/cli/{quickstart-3ZRVKGMH.mjs → quickstart-4EBFHGB7.mjs} +4 -4
- package/dist/cli/{quickstart-LLWOC2GR.js → quickstart-YH6NNC5I.js} +6 -6
- package/dist/cli/{run-SNF23STR.js → run-4DRF7KQJ.js} +44 -44
- package/dist/cli/{run-D46W2GUA.mjs → run-5467KBCP.mjs} +23 -23
- package/dist/cli/search-B2KCWPUV.js +32 -0
- package/dist/cli/{search-XWVCICIX.mjs → search-ZERTOGH6.mjs} +7 -7
- package/dist/cli/{search-output-YM5QXFQQ.mjs → search-output-OAVJXRFO.mjs} +4 -4
- package/dist/cli/{search-output-36GHD67U.js → search-output-OMNZN2LP.js} +6 -6
- package/dist/cli/{secrets-UXCIHG5I.js → secrets-7XK2BGYX.js} +15 -15
- package/dist/cli/{secrets-7PTZEFRC.mjs → secrets-KAVDYB4P.mjs} +6 -6
- package/dist/cli/sessions-PUQURPPC.js +23 -0
- package/dist/cli/{sessions-DTXJKRP4.mjs → sessions-TNPI6XWB.mjs} +6 -6
- package/dist/cli/{settings-74B6UOS4.mjs → settings-KUABXRAJ.mjs} +12 -12
- package/dist/cli/{settings-EYSDZE37.js → settings-RQ3Z3JCM.js} +85 -85
- package/dist/cli/{setup-2QRZ36CH.mjs → setup-6IX6BSS7.mjs} +9 -9
- package/dist/cli/{setup-E7PVXBPL.js → setup-TDOWNKYN.js} +49 -49
- package/dist/cli/skills-AACRY2TV.js +37 -0
- package/dist/cli/{skills-2WZ7N3UW.mjs → skills-Z6NBJ4KP.mjs} +7 -7
- package/dist/cli/{tools-YK5SCUZD.mjs → tools-LQKFWK7J.mjs} +17 -17
- package/dist/cli/tools-OTYA4722.js +57 -0
- package/dist/cli/update-JTGMI6OJ.js +37 -0
- package/dist/cli/{update-563YQK53.mjs → update-RUB4EIKW.mjs} +9 -9
- package/dist/cli/{views-ISNCRZUP.mjs → views-D7WY5QPR.mjs} +6 -6
- package/dist/cli/{views-OLPS6TPG.js → views-FFLXLAGC.js} +21 -21
- package/dist/cli/{workflow-B3ZKU3OR.mjs → workflow-BV2OTEQD.mjs} +7 -7
- package/dist/cli/{workflow-CUSCTYMW.js → workflow-QW7QVODA.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +116 -116
- package/dist/release.d.mts +9 -1
- package/dist/release.d.ts +9 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-DXUHEL5I.js +0 -44
- package/dist/cli/concurrent-runs-help-JLWY54WL.js +0 -22
- package/dist/cli/describe-33PBWO5O.js +0 -50
- package/dist/cli/git-2OPYEPYW.js +0 -26
- package/dist/cli/search-H57MZPLF.js +0 -32
- package/dist/cli/sessions-JJZMQSH4.js +0 -23
- package/dist/cli/skills-RIF2DCZI.js +0 -37
- package/dist/cli/tools-7VRQ4GSI.js +0 -57
- package/dist/cli/update-CMZAIAES.js +0 -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
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkBRPUB6UAjs = require('./chunk-BRPUB6UA.js');
|
|
4
|
+
require('./chunk-PYFMNPTA.js');
|
|
5
5
|
require('./chunk-4WAM6TLD.js');
|
|
6
6
|
require('./chunk-MJTVX4QK.js');
|
|
7
7
|
require('./chunk-PMH4GLMD.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkJSIOLCTKjs = require('./chunk-JSIOLCTK.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -29,17 +29,17 @@ var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk36254433js = require('./chunk-36254433.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkMDJ4LPQ5js = require('./chunk-MDJ4LPQ5.js');
|
|
36
36
|
require('./chunk-6VLFQZK6.js');
|
|
37
37
|
require('./chunk-XNYIZMNQ.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
41
41
|
require('./chunk-CFJFUVX2.js');
|
|
42
|
-
require('./chunk-
|
|
42
|
+
require('./chunk-E4M4QZBP.js');
|
|
43
43
|
require('./chunk-OG64RBAC.js');
|
|
44
44
|
require('./chunk-COGTRVWW.js');
|
|
45
45
|
|
|
@@ -76,7 +76,7 @@ function describeMember(member) {
|
|
|
76
76
|
return `${_nullishCoalesce(member.email, () => ( member.user_id))} ${member.user_id} ${state}`;
|
|
77
77
|
}
|
|
78
78
|
function printMapping(title, payload, json) {
|
|
79
|
-
|
|
79
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
80
80
|
{
|
|
81
81
|
...payload,
|
|
82
82
|
render: {
|
|
@@ -97,13 +97,13 @@ function printMapping(title, payload, json) {
|
|
|
97
97
|
{ json }
|
|
98
98
|
);
|
|
99
99
|
}
|
|
100
|
-
function registerScimGroupCommands(scim, http2 = () => new (0,
|
|
100
|
+
function registerScimGroupCommands(scim, http2 = () => new (0, _chunk36254433js.HttpClient)(_chunk36254433js.resolveConfig.call(void 0, ))) {
|
|
101
101
|
const groups = scim.command("groups").description(
|
|
102
102
|
"Map SCIM groups from your identity provider to workspaces (Enterprise; owners and admins)."
|
|
103
103
|
);
|
|
104
104
|
groups.command("list").description("List the org's SCIM groups and the workspace each maps to.").option("--json", "Emit JSON output").action(async (options) => {
|
|
105
105
|
const payload = await http2().get(GROUPS_PATH);
|
|
106
|
-
|
|
106
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
107
107
|
{
|
|
108
108
|
...payload,
|
|
109
109
|
render: {
|
|
@@ -136,7 +136,7 @@ function registerScimGroupCommands(scim, http2 = () => new (0, _chunkAO56MZ7Djs.
|
|
|
136
136
|
members.push(...page.members);
|
|
137
137
|
cursor = page.next_cursor;
|
|
138
138
|
} while (cursor);
|
|
139
|
-
|
|
139
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
group,
|
|
142
142
|
members,
|
|
@@ -213,7 +213,7 @@ function printMove(payload, json) {
|
|
|
213
213
|
...counts.length > 0 ? [`Moved so far: ${counts.join(", ")}`] : [],
|
|
214
214
|
`Move id: ${payload.move_id}`
|
|
215
215
|
];
|
|
216
|
-
|
|
216
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
217
217
|
{
|
|
218
218
|
...payload,
|
|
219
219
|
render: {
|
|
@@ -278,8 +278,8 @@ Examples:
|
|
|
278
278
|
`Unknown kind "${kind}". Use one of: ${MOVE_KINDS.join(", ")}.`
|
|
279
279
|
);
|
|
280
280
|
}
|
|
281
|
-
const payload = await new (0,
|
|
282
|
-
|
|
281
|
+
const payload = await new (0, _chunk36254433js.HttpClient)(
|
|
282
|
+
_chunk36254433js.resolveConfig.call(void 0, )
|
|
283
283
|
).post("/api/v2/teams/move", {
|
|
284
284
|
kind,
|
|
285
285
|
id,
|
|
@@ -298,7 +298,7 @@ Examples:
|
|
|
298
298
|
`
|
|
299
299
|
).action(async (moveId, options) => {
|
|
300
300
|
printMove(
|
|
301
|
-
await new (0,
|
|
301
|
+
await new (0, _chunk36254433js.HttpClient)(_chunk36254433js.resolveConfig.call(void 0, )).get(
|
|
302
302
|
`/api/v2/teams/move/${encodeURIComponent(moveId)}`
|
|
303
303
|
),
|
|
304
304
|
options.json
|
|
@@ -308,7 +308,7 @@ Examples:
|
|
|
308
308
|
|
|
309
309
|
// src/cli/commands/workspace-integrations.ts
|
|
310
310
|
|
|
311
|
-
var http = () => new (0,
|
|
311
|
+
var http = () => new (0, _chunk36254433js.HttpClient)(_chunk36254433js.resolveConfig.call(void 0, ));
|
|
312
312
|
function requireArgument(value, label) {
|
|
313
313
|
const trimmed = value.trim();
|
|
314
314
|
if (!trimmed) throw new Error(`Pass a ${label}.`);
|
|
@@ -346,7 +346,7 @@ function registerWorkspaceIntegrationCommands(workspaces) {
|
|
|
346
346
|
const payload = await http().get(
|
|
347
347
|
`/api/v2/integrations/overrides?team_id=${encodeURIComponent(id)}`
|
|
348
348
|
);
|
|
349
|
-
|
|
349
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
350
350
|
{
|
|
351
351
|
...payload,
|
|
352
352
|
render: {
|
|
@@ -383,7 +383,7 @@ function registerWorkspaceIntegrationCommands(workspaces) {
|
|
|
383
383
|
...apiKey === void 0 ? {} : { api_key: apiKey }
|
|
384
384
|
}
|
|
385
385
|
);
|
|
386
|
-
|
|
386
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
387
387
|
{
|
|
388
388
|
provider: name,
|
|
389
389
|
team_id: id,
|
|
@@ -414,7 +414,7 @@ function registerWorkspaceIntegrationCommands(workspaces) {
|
|
|
414
414
|
"/api/v2/integrations/test",
|
|
415
415
|
{ provider: name, team_id: id }
|
|
416
416
|
);
|
|
417
|
-
|
|
417
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
418
418
|
{
|
|
419
419
|
provider: name,
|
|
420
420
|
team_id: id,
|
|
@@ -443,7 +443,7 @@ function registerWorkspaceIntegrationCommands(workspaces) {
|
|
|
443
443
|
{ method: "DELETE", body: { provider: name, team_id: id } }
|
|
444
444
|
);
|
|
445
445
|
const cleared = payload.cleared.credentials + payload.cleared.configurations + payload.cleared.oauthConnections;
|
|
446
|
-
|
|
446
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
447
447
|
{
|
|
448
448
|
...payload,
|
|
449
449
|
render: {
|
|
@@ -466,7 +466,7 @@ function registerWorkspaceIntegrationCommands(workspaces) {
|
|
|
466
466
|
// src/cli/commands/org.ts
|
|
467
467
|
function pendingOrgCreatePath(baseUrl, accountId, sourceOrgId, name) {
|
|
468
468
|
const intent = _crypto.createHash.call(void 0, "sha256").update(accountId).update("\0").update(sourceOrgId).update("\0").update(name).digest("hex");
|
|
469
|
-
return _path.join.call(void 0,
|
|
469
|
+
return _path.join.call(void 0, _chunk36254433js.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
|
|
470
470
|
}
|
|
471
471
|
function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
|
|
472
472
|
let value;
|
|
@@ -485,7 +485,7 @@ function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
|
|
|
485
485
|
return value;
|
|
486
486
|
}
|
|
487
487
|
function loadOrCreatePendingOrgCreate(input) {
|
|
488
|
-
const stateDir =
|
|
488
|
+
const stateDir = _chunk36254433js.sdkCliStateDirPath.call(void 0, input.baseUrl);
|
|
489
489
|
const path = pendingOrgCreatePath(
|
|
490
490
|
input.baseUrl,
|
|
491
491
|
input.accountId,
|
|
@@ -575,11 +575,11 @@ function processEnvValue(name) {
|
|
|
575
575
|
}
|
|
576
576
|
function organizationAuthValues(input) {
|
|
577
577
|
return {
|
|
578
|
-
[
|
|
579
|
-
[
|
|
580
|
-
[
|
|
581
|
-
[
|
|
582
|
-
...
|
|
578
|
+
[_chunk36254433js.HOST_URL_ENV]: input.baseUrl,
|
|
579
|
+
[_chunk36254433js.API_KEY_ENV]: input.apiKey,
|
|
580
|
+
[_chunk36254433js.ACTIVE_ORG_ID_ENV]: input.orgId,
|
|
581
|
+
[_chunk36254433js.ACTIVE_ORG_NAME_ENV]: input.orgName,
|
|
582
|
+
..._chunk36254433js.featureEnvValues.call(void 0, input)
|
|
583
583
|
};
|
|
584
584
|
}
|
|
585
585
|
function organizationCommandContext(input) {
|
|
@@ -593,14 +593,14 @@ function organizationCommandContext(input) {
|
|
|
593
593
|
};
|
|
594
594
|
}
|
|
595
595
|
function agentCommandContext(commandContext) {
|
|
596
|
-
return
|
|
596
|
+
return _chunkMDJ4LPQ5js.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
|
|
597
597
|
}
|
|
598
598
|
function resolveOrgSwitchAuthTarget(scope, config) {
|
|
599
|
-
const activeProject =
|
|
599
|
+
const activeProject = _chunk36254433js.getResolvedProjectAuthSource.call(void 0,
|
|
600
600
|
config.baseUrl,
|
|
601
601
|
config.apiKey
|
|
602
602
|
);
|
|
603
|
-
const folderTarget =
|
|
603
|
+
const folderTarget = _chunk36254433js.resolveProjectPinTarget.call(void 0, );
|
|
604
604
|
const globalOverrideWarning = activeProject && scope === "global" ? [
|
|
605
605
|
`Folder auth in ${activeProject.filePath} overrides global auth for commands run here.`
|
|
606
606
|
] : [];
|
|
@@ -672,8 +672,8 @@ function resolveOrgSwitchAuthTarget(scope, config) {
|
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
674
|
async function handleOrgList(options) {
|
|
675
|
-
const config =
|
|
676
|
-
const http2 = new (0,
|
|
675
|
+
const config = _chunk36254433js.resolveConfig.call(void 0, );
|
|
676
|
+
const http2 = new (0, _chunk36254433js.HttpClient)(config);
|
|
677
677
|
const payload = await fetchOrganizations(http2, config.apiKey);
|
|
678
678
|
let organizations = payload.organizations;
|
|
679
679
|
if (options.workspaces) {
|
|
@@ -688,7 +688,7 @@ async function handleOrgList(options) {
|
|
|
688
688
|
workspaces: _nullishCoalesce(byOrg.get(org.org_id), () => ( []))
|
|
689
689
|
}));
|
|
690
690
|
}
|
|
691
|
-
|
|
691
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
692
692
|
{
|
|
693
693
|
...payload,
|
|
694
694
|
organizations,
|
|
@@ -705,22 +705,22 @@ async function handleOrgList(options) {
|
|
|
705
705
|
);
|
|
706
706
|
}
|
|
707
707
|
async function handleOrgStatus(options) {
|
|
708
|
-
const config =
|
|
709
|
-
const http2 = new (0,
|
|
708
|
+
const config = _chunk36254433js.resolveConfig.call(void 0, );
|
|
709
|
+
const http2 = new (0, _chunk36254433js.HttpClient)(config);
|
|
710
710
|
const payload = await fetchOrganizations(http2, config.apiKey);
|
|
711
711
|
const current = _nullishCoalesce(_nullishCoalesce(payload.organizations.find((org) => org.is_current), () => ( payload.organizations.find(
|
|
712
712
|
(org) => org.org_id === payload.current_org_id
|
|
713
713
|
))), () => ( null));
|
|
714
|
-
const projectCandidate =
|
|
715
|
-
const activeProject =
|
|
714
|
+
const projectCandidate = _chunk36254433js.getActiveProjectAuthSource.call(void 0, );
|
|
715
|
+
const activeProject = _chunk36254433js.getResolvedProjectAuthSource.call(void 0,
|
|
716
716
|
config.baseUrl,
|
|
717
717
|
config.apiKey
|
|
718
718
|
);
|
|
719
|
-
const folderTarget =
|
|
720
|
-
const provenance =
|
|
721
|
-
const hostPath =
|
|
722
|
-
const envApiKey = processEnvValue(
|
|
723
|
-
const envHostUrl = processEnvValue(
|
|
719
|
+
const folderTarget = _chunk36254433js.resolveProjectPinTarget.call(void 0, );
|
|
720
|
+
const provenance = _chunk36254433js.resolveCliAuthProvenance.call(void 0, config);
|
|
721
|
+
const hostPath = _chunk36254433js.hostEnvFilePath.call(void 0, config.baseUrl);
|
|
722
|
+
const envApiKey = processEnvValue(_chunk36254433js.API_KEY_ENV);
|
|
723
|
+
const envHostUrl = processEnvValue(_chunk36254433js.HOST_URL_ENV);
|
|
724
724
|
const authSource = envApiKey ? {
|
|
725
725
|
scope: "env",
|
|
726
726
|
source: "process",
|
|
@@ -761,17 +761,17 @@ async function handleOrgStatus(options) {
|
|
|
761
761
|
if (authSource.path) {
|
|
762
762
|
lines.push(`Auth file: ${authSource.path}`);
|
|
763
763
|
} else {
|
|
764
|
-
lines.push(`Auth source: ${
|
|
764
|
+
lines.push(`Auth source: ${_chunk36254433js.API_KEY_ENV} process environment`);
|
|
765
765
|
}
|
|
766
766
|
if (envApiKey) {
|
|
767
|
-
lines.push(`${
|
|
767
|
+
lines.push(`${_chunk36254433js.API_KEY_ENV} overrides saved auth for this process.`);
|
|
768
768
|
} else if (activeProject) {
|
|
769
769
|
lines.push("Global auth is overridden in this folder.");
|
|
770
770
|
} else if (provenance.scope === "global" && provenance.project.state === "project") {
|
|
771
771
|
lines.push("Cloud mutations are blocked until this project is pinned.");
|
|
772
772
|
lines.push("Pin it: deepline org set --auth-scope folder");
|
|
773
773
|
}
|
|
774
|
-
|
|
774
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
775
775
|
{
|
|
776
776
|
ok: true,
|
|
777
777
|
host: config.baseUrl,
|
|
@@ -805,25 +805,25 @@ async function handleOrgStatus(options) {
|
|
|
805
805
|
}
|
|
806
806
|
async function handleOrgSwitch(selection, options) {
|
|
807
807
|
const authScope = normalizeAuthScope(options.authScope);
|
|
808
|
-
const config =
|
|
809
|
-
const provenance =
|
|
808
|
+
const config = _chunk36254433js.resolveConfig.call(void 0, );
|
|
809
|
+
const provenance = _chunk36254433js.resolveCliAuthProvenance.call(void 0, config);
|
|
810
810
|
if (!selection && !options.orgId && authScope === "folder" && provenance.scope === "global" && provenance.project.state === "project") {
|
|
811
|
-
const commandContext =
|
|
811
|
+
const commandContext = _chunk36254433js.resolveCliCommandContext.call(void 0, config);
|
|
812
812
|
const activeOrganization = commandContext.active_organization;
|
|
813
|
-
const pinnedFeatures =
|
|
814
|
-
const project_env_paths2 =
|
|
813
|
+
const pinnedFeatures = _chunk36254433js.storedHostFeatures.call(void 0, config.baseUrl);
|
|
814
|
+
const project_env_paths2 = _chunk36254433js.saveProjectDeeplineEnvValues.call(void 0,
|
|
815
815
|
{
|
|
816
|
-
[
|
|
817
|
-
[
|
|
816
|
+
[_chunk36254433js.HOST_URL_ENV]: config.baseUrl,
|
|
817
|
+
[_chunk36254433js.API_KEY_ENV]: config.apiKey,
|
|
818
818
|
...activeOrganization ? {
|
|
819
|
-
[
|
|
820
|
-
[
|
|
819
|
+
[_chunk36254433js.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
|
|
820
|
+
[_chunk36254433js.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
|
|
821
821
|
} : {},
|
|
822
|
-
...pinnedFeatures !== void 0 ? { [
|
|
822
|
+
...pinnedFeatures !== void 0 ? { [_chunk36254433js.FEATURES_ENV]: pinnedFeatures } : {}
|
|
823
823
|
},
|
|
824
824
|
provenance.project.dir
|
|
825
825
|
);
|
|
826
|
-
|
|
826
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
827
827
|
{
|
|
828
828
|
ok: true,
|
|
829
829
|
unchanged: true,
|
|
@@ -835,7 +835,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
835
835
|
orgId: activeOrganization.org_id,
|
|
836
836
|
orgName: activeOrganization.org_name,
|
|
837
837
|
authScope: "folder"
|
|
838
|
-
}) :
|
|
838
|
+
}) : _chunk36254433js.resolveCliCommandContext.call(void 0, config, "folder")
|
|
839
839
|
),
|
|
840
840
|
project_env_paths: project_env_paths2,
|
|
841
841
|
next: { status: "deepline org status" },
|
|
@@ -856,10 +856,10 @@ async function handleOrgSwitch(selection, options) {
|
|
|
856
856
|
);
|
|
857
857
|
return;
|
|
858
858
|
}
|
|
859
|
-
const http2 = new (0,
|
|
859
|
+
const http2 = new (0, _chunk36254433js.HttpClient)(config);
|
|
860
860
|
const payload = await fetchOrganizations(http2, config.apiKey);
|
|
861
861
|
if (!selection && !options.orgId) {
|
|
862
|
-
|
|
862
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
863
863
|
{
|
|
864
864
|
...payload,
|
|
865
865
|
next: { set: "deepline org set <number>" },
|
|
@@ -910,9 +910,9 @@ async function handleOrgSwitch(selection, options) {
|
|
|
910
910
|
features
|
|
911
911
|
});
|
|
912
912
|
if (authTarget.kind === "folder") {
|
|
913
|
-
project_env_paths2 =
|
|
913
|
+
project_env_paths2 = _chunk36254433js.saveProjectDeeplineEnvValues.call(void 0, authValues2);
|
|
914
914
|
} else {
|
|
915
|
-
|
|
915
|
+
_chunk36254433js.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
|
|
916
916
|
}
|
|
917
917
|
const renderLines2 = [`Already on ${target.name}.`];
|
|
918
918
|
for (const projectPath of project_env_paths2) {
|
|
@@ -920,7 +920,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
920
920
|
}
|
|
921
921
|
if (authTarget.kind === "global") {
|
|
922
922
|
renderLines2.push(
|
|
923
|
-
`Saved global auth in ${
|
|
923
|
+
`Saved global auth in ${_chunk36254433js.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
924
924
|
);
|
|
925
925
|
}
|
|
926
926
|
renderLines2.push(
|
|
@@ -936,7 +936,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
936
936
|
...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
|
|
937
937
|
...authTarget.warnings
|
|
938
938
|
];
|
|
939
|
-
|
|
939
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
940
940
|
{
|
|
941
941
|
ok: true,
|
|
942
942
|
unchanged: true,
|
|
@@ -952,7 +952,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
952
952
|
authScope: authTarget.effective_scope
|
|
953
953
|
})
|
|
954
954
|
),
|
|
955
|
-
host_env_path: authTarget.kind === "global" ?
|
|
955
|
+
host_env_path: authTarget.kind === "global" ? _chunk36254433js.hostEnvFilePath.call(void 0, config.baseUrl) : null,
|
|
956
956
|
project_env_paths: project_env_paths2,
|
|
957
957
|
deprecated_command: options.deprecatedSwitch ? "org switch" : null,
|
|
958
958
|
replacement_command: options.deprecatedSwitch ? "deepline org set" : null,
|
|
@@ -978,9 +978,9 @@ async function handleOrgSwitch(selection, options) {
|
|
|
978
978
|
features: switched.features
|
|
979
979
|
});
|
|
980
980
|
if (authTarget.kind === "folder") {
|
|
981
|
-
project_env_paths =
|
|
981
|
+
project_env_paths = _chunk36254433js.saveProjectDeeplineEnvValues.call(void 0, authValues);
|
|
982
982
|
} else {
|
|
983
|
-
|
|
983
|
+
_chunk36254433js.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
984
984
|
}
|
|
985
985
|
const { api_key: _apiKey, ...publicSwitched } = switched;
|
|
986
986
|
const renderLines = [`Switched to ${switched.org_name}.`];
|
|
@@ -989,7 +989,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
989
989
|
renderLines.push(`Saved folder auth in ${projectPath}`);
|
|
990
990
|
}
|
|
991
991
|
} else {
|
|
992
|
-
renderLines.push(`Saved global auth in ${
|
|
992
|
+
renderLines.push(`Saved global auth in ${_chunk36254433js.hostEnvFilePath.call(void 0, config.baseUrl)}`);
|
|
993
993
|
}
|
|
994
994
|
renderLines.push(
|
|
995
995
|
`Scope: ${authTarget.requested_scope} -> ${authTarget.effective_scope} (${authTarget.reason})`
|
|
@@ -1004,10 +1004,10 @@ async function handleOrgSwitch(selection, options) {
|
|
|
1004
1004
|
...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
|
|
1005
1005
|
...authTarget.warnings
|
|
1006
1006
|
];
|
|
1007
|
-
|
|
1007
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1008
1008
|
{
|
|
1009
1009
|
ok: true,
|
|
1010
|
-
host_env_path: authTarget.kind === "global" ?
|
|
1010
|
+
host_env_path: authTarget.kind === "global" ? _chunk36254433js.hostEnvFilePath.call(void 0, config.baseUrl) : null,
|
|
1011
1011
|
project_env_paths,
|
|
1012
1012
|
...publicSwitched,
|
|
1013
1013
|
api_key_saved: true,
|
|
@@ -1038,12 +1038,12 @@ async function handleOrgSwitch(selection, options) {
|
|
|
1038
1038
|
);
|
|
1039
1039
|
}
|
|
1040
1040
|
async function handleOrgCreate(name, options) {
|
|
1041
|
-
const config =
|
|
1041
|
+
const config = _chunk36254433js.resolveConfig.call(void 0, );
|
|
1042
1042
|
const normalizedName = name.trim();
|
|
1043
1043
|
if (!normalizedName) {
|
|
1044
1044
|
throw new Error("Org name is required.");
|
|
1045
1045
|
}
|
|
1046
|
-
const http2 = new (0,
|
|
1046
|
+
const http2 = new (0, _chunk36254433js.HttpClient)(config);
|
|
1047
1047
|
const identity = await fetchWorkspaceCreationIdentity(http2, config.apiKey);
|
|
1048
1048
|
let created;
|
|
1049
1049
|
let workspaceApiKey;
|
|
@@ -1069,7 +1069,7 @@ async function handleOrgCreate(name, options) {
|
|
|
1069
1069
|
sourceOrgId: identity.orgId,
|
|
1070
1070
|
name: normalizedName
|
|
1071
1071
|
});
|
|
1072
|
-
const workspace = await new (0,
|
|
1072
|
+
const workspace = await new (0, _chunkBRPUB6UAjs.DeeplineClient)({
|
|
1073
1073
|
apiKey: config.apiKey,
|
|
1074
1074
|
baseUrl: config.baseUrl
|
|
1075
1075
|
}).workspaces.create({
|
|
@@ -1092,16 +1092,16 @@ async function handleOrgCreate(name, options) {
|
|
|
1092
1092
|
orgName: created.org_name,
|
|
1093
1093
|
features: workspaceFeatures
|
|
1094
1094
|
});
|
|
1095
|
-
|
|
1095
|
+
_chunk36254433js.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
1096
1096
|
if (pendingIntentPath) _fs.unlinkSync.call(void 0, pendingIntentPath);
|
|
1097
|
-
|
|
1097
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1098
1098
|
{
|
|
1099
1099
|
ok: true,
|
|
1100
1100
|
...created,
|
|
1101
1101
|
initial_credits: typeof created.initial_credits === "number" ? created.initial_credits : 0,
|
|
1102
1102
|
api_key_saved: true,
|
|
1103
1103
|
switched: true,
|
|
1104
|
-
host_env_path:
|
|
1104
|
+
host_env_path: _chunk36254433js.hostEnvFilePath.call(void 0, config.baseUrl),
|
|
1105
1105
|
...agentCommandContext(
|
|
1106
1106
|
organizationCommandContext({
|
|
1107
1107
|
orgId: created.org_id,
|
|
@@ -1116,7 +1116,7 @@ async function handleOrgCreate(name, options) {
|
|
|
1116
1116
|
lines: [
|
|
1117
1117
|
`Created organization: ${created.org_name}.`,
|
|
1118
1118
|
`Switched to ${created.org_name}.`,
|
|
1119
|
-
`Saved host auth in ${
|
|
1119
|
+
`Saved host auth in ${_chunk36254433js.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
1120
1120
|
]
|
|
1121
1121
|
}
|
|
1122
1122
|
]
|
|
@@ -1317,8 +1317,8 @@ Examples:
|
|
|
1317
1317
|
);
|
|
1318
1318
|
const members = org.command("members").description("List org members and manage their grants.");
|
|
1319
1319
|
members.command("list").description("List one page of memberships and effective grants.").option("--cursor <cursor>", "Continue from the previous page").option("--json", "Output JSON").action(async (options) => {
|
|
1320
|
-
const result = await new (0,
|
|
1321
|
-
|
|
1320
|
+
const result = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().workspaces.members(options);
|
|
1321
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1322
1322
|
{
|
|
1323
1323
|
...result,
|
|
1324
1324
|
render: {
|
|
@@ -1339,11 +1339,11 @@ Examples:
|
|
|
1339
1339
|
"Replace a member\u2019s grants (read, run, admin). Requires admin."
|
|
1340
1340
|
).option("--json", "Output JSON").action(
|
|
1341
1341
|
async (memberId, grants, options) => {
|
|
1342
|
-
const result = await new (0,
|
|
1342
|
+
const result = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().workspaces.setMemberGrants(
|
|
1343
1343
|
memberId,
|
|
1344
1344
|
grants
|
|
1345
1345
|
);
|
|
1346
|
-
|
|
1346
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1347
1347
|
{
|
|
1348
1348
|
...result,
|
|
1349
1349
|
render: {
|
|
@@ -1364,8 +1364,8 @@ Examples:
|
|
|
1364
1364
|
);
|
|
1365
1365
|
const renderServiceAccount = (account) => `${account.id} ${account.name} role=${_nullishCoalesce(account.role, () => ( "none"))} keys=${account.activeKeyCount}`;
|
|
1366
1366
|
serviceAccounts.command("list").description("List service accounts and, for admins, their keys.").option("--json", "Output JSON").action(async (options) => {
|
|
1367
|
-
const result = await new (0,
|
|
1368
|
-
|
|
1367
|
+
const result = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().workspaces.serviceAccounts.list();
|
|
1368
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1369
1369
|
{
|
|
1370
1370
|
...result,
|
|
1371
1371
|
render: {
|
|
@@ -1386,11 +1386,11 @@ Examples:
|
|
|
1386
1386
|
);
|
|
1387
1387
|
});
|
|
1388
1388
|
serviceAccounts.command("create <name>").description("Create a service account. Requires admin.").requiredOption("--role <role>", "read, run, or member").option("--json", "Output JSON").action(async (name, options) => {
|
|
1389
|
-
const result = await new (0,
|
|
1389
|
+
const result = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().workspaces.serviceAccounts.create({
|
|
1390
1390
|
name,
|
|
1391
1391
|
role: options.role
|
|
1392
1392
|
});
|
|
1393
|
-
|
|
1393
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1394
1394
|
{
|
|
1395
1395
|
...result,
|
|
1396
1396
|
render: {
|
|
@@ -1410,11 +1410,11 @@ Examples:
|
|
|
1410
1410
|
});
|
|
1411
1411
|
serviceAccounts.command("set-role <service-account-id> <role>").description("Change a service account\u2019s role. Requires admin.").option("--json", "Output JSON").action(
|
|
1412
1412
|
async (serviceAccountId, role, options) => {
|
|
1413
|
-
const result = await new (0,
|
|
1413
|
+
const result = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().workspaces.serviceAccounts.setRole(
|
|
1414
1414
|
serviceAccountId,
|
|
1415
1415
|
role
|
|
1416
1416
|
);
|
|
1417
|
-
|
|
1417
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1418
1418
|
{
|
|
1419
1419
|
...result,
|
|
1420
1420
|
render: {
|
|
@@ -1433,10 +1433,10 @@ Examples:
|
|
|
1433
1433
|
serviceAccounts.command("delete <service-account-id>").description(
|
|
1434
1434
|
"Delete a service account and revoke its keys. Requires admin."
|
|
1435
1435
|
).option("--json", "Output JSON").action(async (serviceAccountId, options) => {
|
|
1436
|
-
const result = await new (0,
|
|
1436
|
+
const result = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().workspaces.serviceAccounts.delete(
|
|
1437
1437
|
serviceAccountId
|
|
1438
1438
|
);
|
|
1439
|
-
|
|
1439
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1440
1440
|
{
|
|
1441
1441
|
...result,
|
|
1442
1442
|
render: {
|
|
@@ -1457,10 +1457,10 @@ Examples:
|
|
|
1457
1457
|
serviceAccountKeys.command("create <service-account-id>").description(
|
|
1458
1458
|
"Create the API key for a service account that has none. Requires admin."
|
|
1459
1459
|
).option("--json", "Output JSON").action(async (serviceAccountId, options) => {
|
|
1460
|
-
const result = await new (0,
|
|
1460
|
+
const result = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().workspaces.serviceAccounts.createKey(
|
|
1461
1461
|
serviceAccountId
|
|
1462
1462
|
);
|
|
1463
|
-
|
|
1463
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1464
1464
|
{
|
|
1465
1465
|
...result,
|
|
1466
1466
|
render: {
|
|
@@ -1478,10 +1478,10 @@ Examples:
|
|
|
1478
1478
|
serviceAccountKeys.command("rotate <service-account-id>").description(
|
|
1479
1479
|
"Replace a service account\u2019s API key: the old key stops working and the new one is shown once. Requires admin."
|
|
1480
1480
|
).option("--json", "Output JSON").action(async (serviceAccountId, options) => {
|
|
1481
|
-
const result = await new (0,
|
|
1481
|
+
const result = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().workspaces.serviceAccounts.rotateKey(
|
|
1482
1482
|
serviceAccountId
|
|
1483
1483
|
);
|
|
1484
|
-
|
|
1484
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1485
1485
|
{
|
|
1486
1486
|
...result,
|
|
1487
1487
|
render: {
|
|
@@ -1502,11 +1502,11 @@ Examples:
|
|
|
1502
1502
|
});
|
|
1503
1503
|
serviceAccountKeys.command("revoke <service-account-id> <key-id>").description("Revoke a service account API key. Requires admin.").option("--json", "Output JSON").action(
|
|
1504
1504
|
async (serviceAccountId, keyId, options) => {
|
|
1505
|
-
const result = await new (0,
|
|
1505
|
+
const result = await new (0, _chunkBRPUB6UAjs.DeeplineClient)().workspaces.serviceAccounts.revokeKey(
|
|
1506
1506
|
serviceAccountId,
|
|
1507
1507
|
keyId
|
|
1508
1508
|
);
|
|
1509
|
-
|
|
1509
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1510
1510
|
{
|
|
1511
1511
|
...result,
|
|
1512
1512
|
render: {
|
|
@@ -1524,7 +1524,7 @@ Examples:
|
|
|
1524
1524
|
);
|
|
1525
1525
|
const sso = org.command("sso").description("Manage Enterprise org SSO.");
|
|
1526
1526
|
const ssoPath = "/api/v2/auth/workspace/sso";
|
|
1527
|
-
const printSso = (payload, json) =>
|
|
1527
|
+
const printSso = (payload, json) => _chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1528
1528
|
{
|
|
1529
1529
|
...payload,
|
|
1530
1530
|
render: {
|
|
@@ -1548,7 +1548,7 @@ Examples:
|
|
|
1548
1548
|
},
|
|
1549
1549
|
{ json }
|
|
1550
1550
|
);
|
|
1551
|
-
const ssoHttp = () => new (0,
|
|
1551
|
+
const ssoHttp = () => new (0, _chunk36254433js.HttpClient)(_chunk36254433js.resolveConfig.call(void 0, ));
|
|
1552
1552
|
sso.command("status").description("Show this org's SSO connection and plan eligibility.").option("--json", "Emit JSON output").action(async (options) => {
|
|
1553
1553
|
printSso(await ssoHttp().get(ssoPath), options.json);
|
|
1554
1554
|
});
|
|
@@ -1579,8 +1579,8 @@ Examples:
|
|
|
1579
1579
|
"Identity provider metadata XML file"
|
|
1580
1580
|
).option("--json", "Emit JSON output").action(
|
|
1581
1581
|
async (options) => {
|
|
1582
|
-
const config =
|
|
1583
|
-
const http2 = new (0,
|
|
1582
|
+
const config = _chunk36254433js.resolveConfig.call(void 0, );
|
|
1583
|
+
const http2 = new (0, _chunk36254433js.HttpClient)(config);
|
|
1584
1584
|
const identity = await fetchWorkspaceCreationIdentity(
|
|
1585
1585
|
http2,
|
|
1586
1586
|
config.apiKey
|
|
@@ -1647,7 +1647,7 @@ Examples:
|
|
|
1647
1647
|
`
|
|
1648
1648
|
);
|
|
1649
1649
|
const scimPath = "/api/v2/auth/workspace/scim";
|
|
1650
|
-
const printScim = (payload, json) =>
|
|
1650
|
+
const printScim = (payload, json) => _chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1651
1651
|
{
|
|
1652
1652
|
...payload,
|
|
1653
1653
|
render: {
|
|
@@ -1671,7 +1671,7 @@ Examples:
|
|
|
1671
1671
|
},
|
|
1672
1672
|
{ json }
|
|
1673
1673
|
);
|
|
1674
|
-
const scimHttp = () => new (0,
|
|
1674
|
+
const scimHttp = () => new (0, _chunk36254433js.HttpClient)(_chunk36254433js.resolveConfig.call(void 0, ));
|
|
1675
1675
|
scim.command("status").description("Show this org's SCIM connection and plan eligibility.").option("--json", "Emit JSON output").action(async (options) => {
|
|
1676
1676
|
printScim(await scimHttp().get(scimPath), options.json);
|
|
1677
1677
|
});
|
|
@@ -1715,10 +1715,10 @@ Examples:
|
|
|
1715
1715
|
deepline --workspace <workspace-id> org workspace --json
|
|
1716
1716
|
`
|
|
1717
1717
|
).action(async (options) => {
|
|
1718
|
-
const config =
|
|
1719
|
-
const { source } =
|
|
1720
|
-
const payload = await new (0,
|
|
1721
|
-
|
|
1718
|
+
const config = _chunk36254433js.resolveConfig.call(void 0, );
|
|
1719
|
+
const { source } = _chunk36254433js.resolveCliWorkspace.call(void 0, config, config.workspace);
|
|
1720
|
+
const payload = await new (0, _chunk36254433js.HttpClient)(config).get("/api/v2/auth/workspace/active-team");
|
|
1721
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1722
1722
|
{
|
|
1723
1723
|
...payload,
|
|
1724
1724
|
source: payload.team_id === null ? "default" : source,
|
|
@@ -1758,13 +1758,13 @@ Examples:
|
|
|
1758
1758
|
`
|
|
1759
1759
|
).action(
|
|
1760
1760
|
async (selection, options) => {
|
|
1761
|
-
const config = { ...
|
|
1762
|
-
const http2 = new (0,
|
|
1761
|
+
const config = { ..._chunk36254433js.resolveConfig.call(void 0, ), workspace: void 0 };
|
|
1762
|
+
const http2 = new (0, _chunk36254433js.HttpClient)(config);
|
|
1763
1763
|
const { teams: entries } = await http2.get(
|
|
1764
1764
|
"/api/v2/auth/workspace/teams"
|
|
1765
1765
|
);
|
|
1766
1766
|
if (!selection) {
|
|
1767
|
-
|
|
1767
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1768
1768
|
{
|
|
1769
1769
|
teams: entries,
|
|
1770
1770
|
next: { set: "deepline org workspace set <number>" },
|
|
@@ -1791,12 +1791,12 @@ Examples:
|
|
|
1791
1791
|
}
|
|
1792
1792
|
const target = resolveTeamSelection(entries, selection);
|
|
1793
1793
|
if (target.team_id !== null) {
|
|
1794
|
-
await new (0,
|
|
1794
|
+
await new (0, _chunk36254433js.HttpClient)({ ...config, workspace: target.team_id }).get(
|
|
1795
1795
|
"/api/v2/auth/workspace/active-team"
|
|
1796
1796
|
);
|
|
1797
1797
|
}
|
|
1798
|
-
const saved =
|
|
1799
|
-
|
|
1798
|
+
const saved = _chunk36254433js.saveCliWorkspace.call(void 0, config, target.team_id);
|
|
1799
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1800
1800
|
{
|
|
1801
1801
|
ok: true,
|
|
1802
1802
|
team_id: target.team_id,
|
|
@@ -1834,7 +1834,7 @@ Examples:
|
|
|
1834
1834
|
`
|
|
1835
1835
|
);
|
|
1836
1836
|
const defaultTeamPath = "/api/v2/auth/workspace/default-team";
|
|
1837
|
-
const printDefaultTeam = (payload, json) =>
|
|
1837
|
+
const printDefaultTeam = (payload, json) => _chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1838
1838
|
{
|
|
1839
1839
|
...payload,
|
|
1840
1840
|
render: {
|
|
@@ -1851,7 +1851,7 @@ Examples:
|
|
|
1851
1851
|
},
|
|
1852
1852
|
{ json }
|
|
1853
1853
|
);
|
|
1854
|
-
const defaultTeamHttp = () => new (0,
|
|
1854
|
+
const defaultTeamHttp = () => new (0, _chunk36254433js.HttpClient)(_chunk36254433js.resolveConfig.call(void 0, ));
|
|
1855
1855
|
defaultTeam.option("--json", "Emit JSON output").action(async (options) => {
|
|
1856
1856
|
printDefaultTeam(
|
|
1857
1857
|
await defaultTeamHttp().get(defaultTeamPath),
|
|
@@ -1883,8 +1883,8 @@ Examples:
|
|
|
1883
1883
|
registerWorkspaceIntegrationCommands(teams);
|
|
1884
1884
|
const teamsPath = "/api/v2/auth/workspace/teams";
|
|
1885
1885
|
const teamPath = (teamId) => `${teamsPath}/${encodeURIComponent(requireTeamIdArgument(teamId))}`;
|
|
1886
|
-
const teamsHttp = () => new (0,
|
|
1887
|
-
const printTeam = (title, payload, json) =>
|
|
1886
|
+
const teamsHttp = () => new (0, _chunk36254433js.HttpClient)(_chunk36254433js.resolveConfig.call(void 0, ));
|
|
1887
|
+
const printTeam = (title, payload, json) => _chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1888
1888
|
{
|
|
1889
1889
|
...payload,
|
|
1890
1890
|
render: {
|
|
@@ -1897,7 +1897,7 @@ Examples:
|
|
|
1897
1897
|
const payload = await teamsHttp().get(
|
|
1898
1898
|
options.archived ? `${teamsPath}?include_archived=true` : teamsPath
|
|
1899
1899
|
);
|
|
1900
|
-
|
|
1900
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1901
1901
|
{
|
|
1902
1902
|
...payload,
|
|
1903
1903
|
render: {
|
|
@@ -1972,7 +1972,7 @@ Examples:
|
|
|
1972
1972
|
members2.push(...page.members);
|
|
1973
1973
|
cursor = page.next_cursor;
|
|
1974
1974
|
} while (cursor);
|
|
1975
|
-
|
|
1975
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
1976
1976
|
{
|
|
1977
1977
|
team: team2,
|
|
1978
1978
|
members: members2,
|
|
@@ -2000,7 +2000,7 @@ Examples:
|
|
|
2000
2000
|
`${teamPath(teamId)}/members`,
|
|
2001
2001
|
{ user }
|
|
2002
2002
|
);
|
|
2003
|
-
|
|
2003
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
2004
2004
|
{
|
|
2005
2005
|
...payload,
|
|
2006
2006
|
render: {
|
|
@@ -2027,7 +2027,7 @@ Examples:
|
|
|
2027
2027
|
const payload = await teamsHttp().delete(
|
|
2028
2028
|
`${teamPath(teamId)}/members/${encodeURIComponent(value)}`
|
|
2029
2029
|
);
|
|
2030
|
-
|
|
2030
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
2031
2031
|
{
|
|
2032
2032
|
...payload,
|
|
2033
2033
|
render: {
|
|
@@ -2048,7 +2048,7 @@ Examples:
|
|
|
2048
2048
|
const caps = teams.command("cap").description(
|
|
2049
2049
|
"Read and manage workspaces' rolling 30-day spending caps (owners and admins change them)."
|
|
2050
2050
|
);
|
|
2051
|
-
const printCap = (title, payload, json) =>
|
|
2051
|
+
const printCap = (title, payload, json) => _chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
2052
2052
|
{
|
|
2053
2053
|
...payload,
|
|
2054
2054
|
render: {
|
|
@@ -2069,7 +2069,7 @@ Examples:
|
|
|
2069
2069
|
"List workspace caps with spend in the last 30 days, and the organization cap."
|
|
2070
2070
|
).option("--json", "Emit JSON output").action(async (options) => {
|
|
2071
2071
|
const payload = await teamsHttp().get(`${teamsPath}/caps`);
|
|
2072
|
-
|
|
2072
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
2073
2073
|
{
|
|
2074
2074
|
...payload,
|
|
2075
2075
|
render: {
|
|
@@ -2141,13 +2141,13 @@ Examples:
|
|
|
2141
2141
|
if (chosen.length > 1) {
|
|
2142
2142
|
throw new Error("Pass one of a logo URL, --domain, or --remove.");
|
|
2143
2143
|
}
|
|
2144
|
-
const http2 = new (0,
|
|
2144
|
+
const http2 = new (0, _chunk36254433js.HttpClient)(_chunk36254433js.resolveConfig.call(void 0, ));
|
|
2145
2145
|
const path = "/api/v2/auth/workspace/logo";
|
|
2146
2146
|
const payload = chosen.length === 0 ? await http2.get(path) : await http2.patch(
|
|
2147
2147
|
path,
|
|
2148
2148
|
options.domain ? { domain: options.domain } : { logo: _nullishCoalesce(url, () => ( null)) }
|
|
2149
2149
|
);
|
|
2150
|
-
|
|
2150
|
+
_chunkJSIOLCTKjs.printCommandEnvelope.call(void 0,
|
|
2151
2151
|
{
|
|
2152
2152
|
...payload,
|
|
2153
2153
|
render: {
|