deepline 0.3.479 → 0.3.480
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/cli/auth-7FOB243B.js +43 -0
- package/dist/cli/{auth-D7DYB57R.mjs → auth-KMKFQX7X.mjs} +7 -5
- package/dist/cli/{billing-DT4JT4QN.mjs → billing-G3Y5FTQM.mjs} +6 -6
- package/dist/cli/{billing-DHGSNM6E.js → billing-R5RCTEW6.js} +79 -79
- package/dist/cli/{chunk-RJVUILW4.mjs → chunk-2AYWC63S.mjs} +2 -2
- package/dist/cli/{chunk-D6MLXRMQ.mjs → chunk-44TVNYYV.mjs} +10 -10
- package/dist/cli/{chunk-GQCH6Y7W.js → chunk-4V6KEXCM.js} +1 -1
- package/dist/cli/{chunk-YC2QBF2W.mjs → chunk-53LLOGNV.mjs} +2 -2
- package/dist/cli/{chunk-K5RRY7DJ.mjs → chunk-57MJL2HU.mjs} +4 -4
- package/dist/cli/{chunk-FV7WGK5X.js → chunk-5IVGZCKY.js} +5 -5
- package/dist/cli/{chunk-ZJRVHQSZ.mjs → chunk-63QH6FL3.mjs} +4 -4
- package/dist/cli/{chunk-GSULE54L.js → chunk-6AYQK7Z6.js} +6 -6
- package/dist/cli/{chunk-PUOKABQF.mjs → chunk-7LMLHUCP.mjs} +5 -5
- package/dist/cli/{chunk-VRZXGJXH.js → chunk-A3PZKD47.js} +21 -21
- package/dist/cli/{chunk-JKUFOP7M.mjs → chunk-AKCYZDBO.mjs} +1 -1
- package/dist/cli/{chunk-VKBLXJCK.js → chunk-APFFHSPL.js} +8 -8
- package/dist/cli/{chunk-TZCHXF4R.mjs → chunk-ASARTL6E.mjs} +2 -2
- package/dist/cli/{chunk-FKEZ5DIJ.mjs → chunk-DIDWIPMA.mjs} +1 -1
- package/dist/cli/{chunk-33O2JGHE.js → chunk-DQYJXVAF.js} +4 -4
- package/dist/cli/{chunk-W6N2S5N7.js → chunk-FFSOXQEM.js} +8 -8
- package/dist/cli/{chunk-27PXHD2P.mjs → chunk-FZ42SO3Q.mjs} +1 -1
- package/dist/cli/{chunk-AFHFZU5V.js → chunk-FZX2DGQZ.js} +37 -37
- package/dist/cli/{chunk-6C3QY5JS.mjs → chunk-IQ6WL36K.mjs} +1 -1
- package/dist/cli/{chunk-N7E25EU2.mjs → chunk-JBQKBDDN.mjs} +5 -5
- package/dist/cli/{chunk-W4HIOBQQ.js → chunk-JH77OHD5.js} +2 -2
- package/dist/cli/{chunk-27GSBTWD.js → chunk-K7E2DO5P.js} +96 -65
- package/dist/cli/{chunk-GONL4EFT.mjs → chunk-KQNQCZLB.mjs} +2 -2
- package/dist/cli/{chunk-N4M6CO5H.js → chunk-LBZLV6QF.js} +9 -9
- package/dist/cli/{chunk-AKVNUNL7.js → chunk-LHU6BMDV.js} +3 -3
- package/dist/cli/{chunk-JNFNNJ75.mjs → chunk-LLEBPM3N.mjs} +4 -4
- package/dist/cli/{chunk-3GIM7XRH.js → chunk-MEJJD7PA.js} +2 -2
- package/dist/cli/{chunk-UOYA35OT.mjs → chunk-MTMOYZMK.mjs} +1 -1
- package/dist/cli/{chunk-OVFCPV24.js → chunk-NBXG4S2X.js} +53 -53
- package/dist/cli/{chunk-JMCTNS6S.js → chunk-NVTVS4AV.js} +6 -6
- package/dist/cli/{chunk-FBEXJVQL.js → chunk-OGXG46LY.js} +93 -93
- package/dist/cli/{chunk-CK2Q6AWR.js → chunk-OQOXR6JL.js} +26 -26
- package/dist/cli/{chunk-6QIXWFPO.mjs → chunk-PC42DFZC.mjs} +3 -3
- package/dist/cli/{chunk-EMVWC5LP.js → chunk-PDDUX5UY.js} +5 -5
- package/dist/cli/{chunk-3PHOAUU4.mjs → chunk-PM2CT7HZ.mjs} +41 -10
- package/dist/cli/{chunk-GZ43YXHT.mjs → chunk-PYIWO4GS.mjs} +2 -2
- package/dist/cli/{chunk-J5VDE42G.js → chunk-QEV3GFDS.js} +3 -3
- package/dist/cli/{chunk-G6V34EQ5.js → chunk-RPJSVGSC.js} +16 -16
- package/dist/cli/{chunk-GICSDK72.mjs → chunk-SUTQCM7U.mjs} +2 -2
- package/dist/cli/{chunk-XDFARN7U.mjs → chunk-T7EWDIVM.mjs} +1 -1
- package/dist/cli/{chunk-3SGA53DX.js → chunk-TBJ23WKT.js} +3 -3
- package/dist/cli/{chunk-O5BUFQ2P.mjs → chunk-TXFURKHD.mjs} +1 -1
- package/dist/cli/{chunk-Y2MVDYV6.js → chunk-VPO2D7WV.js} +10 -10
- package/dist/cli/{chunk-LXYDN5FE.js → chunk-WQBJHB63.js} +7 -7
- package/dist/cli/{chunk-JFGOMQW6.mjs → chunk-XNXE7YWI.mjs} +2 -2
- package/dist/cli/{chunk-XBYW5EHY.mjs → chunk-ZSWY5E3W.mjs} +1 -1
- package/dist/cli/{csv-DQWOZ2BL.js → csv-57D62T7L.js} +13 -13
- package/dist/cli/{csv-JXFOD7DJ.mjs → csv-P3AEI4G4.mjs} +4 -4
- package/dist/cli/{db-Q2OAAXRX.js → db-FWFYU34R.js} +27 -27
- package/dist/cli/{db-NOGMZAQE.mjs → db-PJQMPZJP.mjs} +6 -6
- package/dist/cli/{describe-VKZTZLX6.mjs → describe-F57VZZML.mjs} +17 -17
- package/dist/cli/describe-ZAYUBNUQ.js +48 -0
- package/dist/cli/{executions-B3GDZ4GQ.js → executions-YBT7NTY5.js} +8 -8
- package/dist/cli/{executions-XU3JMNI3.mjs → executions-ZAJGMAAT.mjs} +6 -6
- package/dist/cli/{feedback-R5UQXINE.mjs → feedback-L3ZQCSY6.mjs} +4 -4
- package/dist/cli/{feedback-5IW3ZKRP.js → feedback-YLYY2EG4.js} +8 -8
- package/dist/cli/git-A3433UTN.js +25 -0
- package/dist/cli/{git-7B4H7VEL.mjs → git-M7735NWJ.mjs} +5 -5
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-KY7JAALE.mjs → legacy-noops-PKNMQMGY.mjs} +5 -5
- package/dist/cli/{legacy-noops-AVT6T5QI.js → legacy-noops-TX37UP3U.js} +8 -8
- package/dist/cli/{monitors-GZB6CWK2.js → monitors-5YTGQSGD.js} +91 -91
- package/dist/cli/{monitors-G7L7AFXR.mjs → monitors-U7AUIOFZ.mjs} +7 -7
- package/dist/cli/{org-ZHHKAPCE.js → org-N6DSSLLD.js} +72 -72
- package/dist/cli/{org-QDUBOQTH.mjs → org-SRKZRVVH.mjs} +6 -6
- package/dist/cli/{pages-Q4WGQCST.mjs → pages-UOPJUFCF.mjs} +6 -6
- package/dist/cli/{pages-5P3SPMN5.js → pages-YPN54RCC.js} +17 -17
- package/dist/cli/{play-WRSHD4RE.mjs → play-4IK4WXWU.mjs} +17 -17
- package/dist/cli/{play-IRLKESZB.js → play-MEYZEYOV.js} +306 -306
- package/dist/cli/{providers-7CQUHS57.mjs → providers-UGHUYP4C.mjs} +6 -6
- package/dist/cli/{providers-LKEYLN6D.js → providers-VS5MK4ZH.js} +9 -9
- package/dist/cli/{quickstart-KS45M5SR.js → quickstart-GW2ERQ2A.js} +6 -6
- package/dist/cli/{quickstart-I6NYGMEE.mjs → quickstart-YBOQSLFV.mjs} +4 -4
- package/dist/cli/{run-AZETCL7R.mjs → run-44JT5GJM.mjs} +22 -22
- package/dist/cli/{run-BLMOBNAN.js → run-IVGMLY3J.js} +36 -36
- package/dist/cli/search-2XTYY7BF.js +32 -0
- package/dist/cli/{search-EEKEP67Y.mjs → search-43NY73VR.mjs} +7 -7
- package/dist/cli/{secrets-M6NU3TD2.js → secrets-DABUD3B7.js} +15 -15
- package/dist/cli/{secrets-HAULG2EW.mjs → secrets-ONDQGW3B.mjs} +6 -6
- package/dist/cli/{sessions-DSR5AHIA.js → sessions-4ILQMBKR.js} +6 -6
- package/dist/cli/{sessions-5MB4XKOK.mjs → sessions-AIAKKLSR.mjs} +5 -5
- package/dist/cli/{settings-6US327NQ.js → settings-BWNLL7TP.js} +78 -78
- package/dist/cli/{settings-JUQP4HYQ.mjs → settings-HSGKYOJT.mjs} +11 -11
- package/dist/cli/{setup-5ZRSEQUD.js → setup-37QOD4UT.js} +67 -52
- package/dist/cli/{setup-JRH4UC47.mjs → setup-LE4OVH4M.mjs} +33 -18
- package/dist/cli/{skills-HFOZ5WDH.mjs → skills-A3ZVR2YX.mjs} +7 -7
- package/dist/cli/skills-TULQXRQJ.js +33 -0
- package/dist/cli/{tools-CJEBZNPB.mjs → tools-ITKPPUDT.mjs} +16 -16
- package/dist/cli/tools-QYYBWDXU.js +55 -0
- package/dist/cli/{update-VQJEPAAK.mjs → update-XJOSCOK5.mjs} +9 -9
- package/dist/cli/update-XSMY7KWH.js +33 -0
- package/dist/cli/{workflow-EYWE3T75.mjs → workflow-KYQYFSND.mjs} +7 -7
- package/dist/cli/{workflow-NKPDRZOP.js → workflow-LERZ3TYV.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +96 -96
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-MZDFNRPG.js +0 -41
- package/dist/cli/describe-THHHNUEA.js +0 -48
- package/dist/cli/git-BX27JAW4.js +0 -25
- package/dist/cli/search-PEQXXY2B.js +0 -32
- package/dist/cli/skills-P67KCVDR.js +0 -33
- package/dist/cli/tools-PDBEAI22.js +0 -55
- package/dist/cli/update-G6DI3BQW.js +0 -33
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-EXMLR72R.mjs";
|
|
2
2
|
import {
|
|
3
3
|
DeeplineClient
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-2AYWC63S.mjs";
|
|
5
|
+
import "./chunk-DIDWIPMA.mjs";
|
|
6
6
|
import "./chunk-L2VKAASU.mjs";
|
|
7
7
|
import "./chunk-NELMCOWK.mjs";
|
|
8
8
|
import "./chunk-S3A4IXBQ.mjs";
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
} from "./chunk-MI6ZP7XI.mjs";
|
|
18
18
|
import {
|
|
19
19
|
createCliProgress
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ZSWY5E3W.mjs";
|
|
21
21
|
import {
|
|
22
22
|
errorToJsonPayload,
|
|
23
23
|
printCommandEnvelope,
|
|
24
24
|
printJson,
|
|
25
25
|
shouldEmitJson
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-53LLOGNV.mjs";
|
|
27
|
+
import "./chunk-TXFURKHD.mjs";
|
|
28
|
+
import "./chunk-T7EWDIVM.mjs";
|
|
29
29
|
import {
|
|
30
30
|
AuthError
|
|
31
31
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -33,7 +33,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-FZ42SO3Q.mjs";
|
|
37
37
|
import "./chunk-WZYKRD7T.mjs";
|
|
38
38
|
import "./chunk-KRD6H754.mjs";
|
|
39
39
|
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunkPDDUX5UYjs = require('./chunk-PDDUX5UY.js');
|
|
4
|
+
require('./chunk-6AYQK7Z6.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-JDMR33HS.js');
|
|
7
7
|
require('./chunk-NMU3VR5U.js');
|
|
8
8
|
require('./chunk-XDVT3GOM.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkWQBJHB63js = require('./chunk-WQBJHB63.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -28,14 +28,14 @@ var _chunkLXYDN5FEjs = require('./chunk-LXYDN5FE.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkTBJ23WKTjs = require('./chunk-TBJ23WKT.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkDQYJXVAFjs = require('./chunk-DQYJXVAF.js');
|
|
35
35
|
require('./chunk-ALJJRZNJ.js');
|
|
36
36
|
require('./chunk-XNYIZMNQ.js');
|
|
37
37
|
require('./chunk-DIAWYWT5.js');
|
|
38
|
-
require('./chunk-
|
|
38
|
+
require('./chunk-4V6KEXCM.js');
|
|
39
39
|
require('./chunk-OG64RBAC.js');
|
|
40
40
|
require('./chunk-COGTRVWW.js');
|
|
41
41
|
|
|
@@ -51,7 +51,7 @@ var _fs = require('fs');
|
|
|
51
51
|
var _path = require('path');
|
|
52
52
|
function pendingOrgCreatePath(baseUrl, accountId, sourceOrgId, name) {
|
|
53
53
|
const intent = _crypto.createHash.call(void 0, "sha256").update(accountId).update("\0").update(sourceOrgId).update("\0").update(name).digest("hex");
|
|
54
|
-
return _path.join.call(void 0,
|
|
54
|
+
return _path.join.call(void 0, _chunkTBJ23WKTjs.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
|
|
55
55
|
}
|
|
56
56
|
function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
|
|
57
57
|
let value;
|
|
@@ -70,7 +70,7 @@ function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
|
|
|
70
70
|
return value;
|
|
71
71
|
}
|
|
72
72
|
function loadOrCreatePendingOrgCreate(input) {
|
|
73
|
-
const stateDir =
|
|
73
|
+
const stateDir = _chunkTBJ23WKTjs.sdkCliStateDirPath.call(void 0, input.baseUrl);
|
|
74
74
|
const path = pendingOrgCreatePath(
|
|
75
75
|
input.baseUrl,
|
|
76
76
|
input.accountId,
|
|
@@ -155,11 +155,11 @@ function processEnvValue(name) {
|
|
|
155
155
|
}
|
|
156
156
|
function organizationAuthValues(input) {
|
|
157
157
|
return {
|
|
158
|
-
[
|
|
159
|
-
[
|
|
160
|
-
[
|
|
161
|
-
[
|
|
162
|
-
...
|
|
158
|
+
[_chunkTBJ23WKTjs.HOST_URL_ENV]: input.baseUrl,
|
|
159
|
+
[_chunkTBJ23WKTjs.API_KEY_ENV]: input.apiKey,
|
|
160
|
+
[_chunkTBJ23WKTjs.ACTIVE_ORG_ID_ENV]: input.orgId,
|
|
161
|
+
[_chunkTBJ23WKTjs.ACTIVE_ORG_NAME_ENV]: input.orgName,
|
|
162
|
+
..._chunkTBJ23WKTjs.featureEnvValues.call(void 0, input)
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
function organizationCommandContext(input) {
|
|
@@ -173,14 +173,14 @@ function organizationCommandContext(input) {
|
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
function agentCommandContext(commandContext) {
|
|
176
|
-
return
|
|
176
|
+
return _chunkDQYJXVAFjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
|
|
177
177
|
}
|
|
178
178
|
function resolveOrgSwitchAuthTarget(scope, config) {
|
|
179
|
-
const activeProject =
|
|
179
|
+
const activeProject = _chunkTBJ23WKTjs.getResolvedProjectAuthSource.call(void 0,
|
|
180
180
|
config.baseUrl,
|
|
181
181
|
config.apiKey
|
|
182
182
|
);
|
|
183
|
-
const folderTarget =
|
|
183
|
+
const folderTarget = _chunkTBJ23WKTjs.resolveProjectPinTarget.call(void 0, );
|
|
184
184
|
const globalOverrideWarning = activeProject && scope === "global" ? [
|
|
185
185
|
`Folder auth in ${activeProject.filePath} overrides global auth for commands run here.`
|
|
186
186
|
] : [];
|
|
@@ -252,10 +252,10 @@ function resolveOrgSwitchAuthTarget(scope, config) {
|
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
async function handleOrgList(options) {
|
|
255
|
-
const config =
|
|
256
|
-
const http = new (0,
|
|
255
|
+
const config = _chunkTBJ23WKTjs.resolveConfig.call(void 0, );
|
|
256
|
+
const http = new (0, _chunkTBJ23WKTjs.HttpClient)(config);
|
|
257
257
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
258
|
-
|
|
258
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
259
259
|
{
|
|
260
260
|
...payload,
|
|
261
261
|
render: {
|
|
@@ -271,22 +271,22 @@ async function handleOrgList(options) {
|
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
273
|
async function handleOrgStatus(options) {
|
|
274
|
-
const config =
|
|
275
|
-
const http = new (0,
|
|
274
|
+
const config = _chunkTBJ23WKTjs.resolveConfig.call(void 0, );
|
|
275
|
+
const http = new (0, _chunkTBJ23WKTjs.HttpClient)(config);
|
|
276
276
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
277
277
|
const current = _nullishCoalesce(_nullishCoalesce(payload.organizations.find((org) => org.is_current), () => ( payload.organizations.find(
|
|
278
278
|
(org) => org.org_id === payload.current_org_id
|
|
279
279
|
))), () => ( null));
|
|
280
|
-
const projectCandidate =
|
|
281
|
-
const activeProject =
|
|
280
|
+
const projectCandidate = _chunkTBJ23WKTjs.getActiveProjectAuthSource.call(void 0, );
|
|
281
|
+
const activeProject = _chunkTBJ23WKTjs.getResolvedProjectAuthSource.call(void 0,
|
|
282
282
|
config.baseUrl,
|
|
283
283
|
config.apiKey
|
|
284
284
|
);
|
|
285
|
-
const folderTarget =
|
|
286
|
-
const provenance =
|
|
287
|
-
const hostPath =
|
|
288
|
-
const envApiKey = processEnvValue(
|
|
289
|
-
const envHostUrl = processEnvValue(
|
|
285
|
+
const folderTarget = _chunkTBJ23WKTjs.resolveProjectPinTarget.call(void 0, );
|
|
286
|
+
const provenance = _chunkTBJ23WKTjs.resolveCliAuthProvenance.call(void 0, config);
|
|
287
|
+
const hostPath = _chunkTBJ23WKTjs.hostEnvFilePath.call(void 0, config.baseUrl);
|
|
288
|
+
const envApiKey = processEnvValue(_chunkTBJ23WKTjs.API_KEY_ENV);
|
|
289
|
+
const envHostUrl = processEnvValue(_chunkTBJ23WKTjs.HOST_URL_ENV);
|
|
290
290
|
const authSource = envApiKey ? {
|
|
291
291
|
scope: "env",
|
|
292
292
|
source: "process",
|
|
@@ -327,17 +327,17 @@ async function handleOrgStatus(options) {
|
|
|
327
327
|
if (authSource.path) {
|
|
328
328
|
lines.push(`Auth file: ${authSource.path}`);
|
|
329
329
|
} else {
|
|
330
|
-
lines.push(`Auth source: ${
|
|
330
|
+
lines.push(`Auth source: ${_chunkTBJ23WKTjs.API_KEY_ENV} process environment`);
|
|
331
331
|
}
|
|
332
332
|
if (envApiKey) {
|
|
333
|
-
lines.push(`${
|
|
333
|
+
lines.push(`${_chunkTBJ23WKTjs.API_KEY_ENV} overrides saved auth for this process.`);
|
|
334
334
|
} else if (activeProject) {
|
|
335
335
|
lines.push("Global auth is overridden in this folder.");
|
|
336
336
|
} else if (provenance.scope === "global" && provenance.project.state === "project") {
|
|
337
337
|
lines.push("Cloud mutations are blocked until this project is pinned.");
|
|
338
338
|
lines.push("Pin it: deepline org set --auth-scope folder");
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
341
341
|
{
|
|
342
342
|
ok: true,
|
|
343
343
|
host: config.baseUrl,
|
|
@@ -371,25 +371,25 @@ async function handleOrgStatus(options) {
|
|
|
371
371
|
}
|
|
372
372
|
async function handleOrgSwitch(selection, options) {
|
|
373
373
|
const authScope = normalizeAuthScope(options.authScope);
|
|
374
|
-
const config =
|
|
375
|
-
const provenance =
|
|
374
|
+
const config = _chunkTBJ23WKTjs.resolveConfig.call(void 0, );
|
|
375
|
+
const provenance = _chunkTBJ23WKTjs.resolveCliAuthProvenance.call(void 0, config);
|
|
376
376
|
if (!selection && !options.orgId && authScope === "folder" && provenance.scope === "global" && provenance.project.state === "project") {
|
|
377
|
-
const commandContext =
|
|
377
|
+
const commandContext = _chunkTBJ23WKTjs.resolveCliCommandContext.call(void 0, config);
|
|
378
378
|
const activeOrganization = commandContext.active_organization;
|
|
379
|
-
const pinnedFeatures =
|
|
380
|
-
const project_env_paths2 =
|
|
379
|
+
const pinnedFeatures = _chunkTBJ23WKTjs.storedHostFeatures.call(void 0, config.baseUrl);
|
|
380
|
+
const project_env_paths2 = _chunkTBJ23WKTjs.saveProjectDeeplineEnvValues.call(void 0,
|
|
381
381
|
{
|
|
382
|
-
[
|
|
383
|
-
[
|
|
382
|
+
[_chunkTBJ23WKTjs.HOST_URL_ENV]: config.baseUrl,
|
|
383
|
+
[_chunkTBJ23WKTjs.API_KEY_ENV]: config.apiKey,
|
|
384
384
|
...activeOrganization ? {
|
|
385
|
-
[
|
|
386
|
-
[
|
|
385
|
+
[_chunkTBJ23WKTjs.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
|
|
386
|
+
[_chunkTBJ23WKTjs.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
|
|
387
387
|
} : {},
|
|
388
|
-
...pinnedFeatures !== void 0 ? { [
|
|
388
|
+
...pinnedFeatures !== void 0 ? { [_chunkTBJ23WKTjs.FEATURES_ENV]: pinnedFeatures } : {}
|
|
389
389
|
},
|
|
390
390
|
provenance.project.dir
|
|
391
391
|
);
|
|
392
|
-
|
|
392
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
ok: true,
|
|
395
395
|
unchanged: true,
|
|
@@ -401,7 +401,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
401
401
|
orgId: activeOrganization.org_id,
|
|
402
402
|
orgName: activeOrganization.org_name,
|
|
403
403
|
authScope: "folder"
|
|
404
|
-
}) :
|
|
404
|
+
}) : _chunkTBJ23WKTjs.resolveCliCommandContext.call(void 0, config, "folder")
|
|
405
405
|
),
|
|
406
406
|
project_env_paths: project_env_paths2,
|
|
407
407
|
next: { status: "deepline org status" },
|
|
@@ -422,10 +422,10 @@ async function handleOrgSwitch(selection, options) {
|
|
|
422
422
|
);
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
|
-
const http = new (0,
|
|
425
|
+
const http = new (0, _chunkTBJ23WKTjs.HttpClient)(config);
|
|
426
426
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
427
427
|
if (!selection && !options.orgId) {
|
|
428
|
-
|
|
428
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
429
429
|
{
|
|
430
430
|
...payload,
|
|
431
431
|
next: { set: "deepline org set <number>" },
|
|
@@ -476,9 +476,9 @@ async function handleOrgSwitch(selection, options) {
|
|
|
476
476
|
features
|
|
477
477
|
});
|
|
478
478
|
if (authTarget.kind === "folder") {
|
|
479
|
-
project_env_paths2 =
|
|
479
|
+
project_env_paths2 = _chunkTBJ23WKTjs.saveProjectDeeplineEnvValues.call(void 0, authValues2);
|
|
480
480
|
} else {
|
|
481
|
-
|
|
481
|
+
_chunkTBJ23WKTjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
|
|
482
482
|
}
|
|
483
483
|
const renderLines2 = [`Already on ${target.name}.`];
|
|
484
484
|
for (const projectPath of project_env_paths2) {
|
|
@@ -486,7 +486,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
486
486
|
}
|
|
487
487
|
if (authTarget.kind === "global") {
|
|
488
488
|
renderLines2.push(
|
|
489
|
-
`Saved global auth in ${
|
|
489
|
+
`Saved global auth in ${_chunkTBJ23WKTjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
490
490
|
);
|
|
491
491
|
}
|
|
492
492
|
renderLines2.push(
|
|
@@ -502,7 +502,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
502
502
|
...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
|
|
503
503
|
...authTarget.warnings
|
|
504
504
|
];
|
|
505
|
-
|
|
505
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
506
506
|
{
|
|
507
507
|
ok: true,
|
|
508
508
|
unchanged: true,
|
|
@@ -518,7 +518,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
518
518
|
authScope: authTarget.effective_scope
|
|
519
519
|
})
|
|
520
520
|
),
|
|
521
|
-
host_env_path: authTarget.kind === "global" ?
|
|
521
|
+
host_env_path: authTarget.kind === "global" ? _chunkTBJ23WKTjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
|
|
522
522
|
project_env_paths: project_env_paths2,
|
|
523
523
|
deprecated_command: options.deprecatedSwitch ? "org switch" : null,
|
|
524
524
|
replacement_command: options.deprecatedSwitch ? "deepline org set" : null,
|
|
@@ -544,9 +544,9 @@ async function handleOrgSwitch(selection, options) {
|
|
|
544
544
|
features: switched.features
|
|
545
545
|
});
|
|
546
546
|
if (authTarget.kind === "folder") {
|
|
547
|
-
project_env_paths =
|
|
547
|
+
project_env_paths = _chunkTBJ23WKTjs.saveProjectDeeplineEnvValues.call(void 0, authValues);
|
|
548
548
|
} else {
|
|
549
|
-
|
|
549
|
+
_chunkTBJ23WKTjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
550
550
|
}
|
|
551
551
|
const { api_key: _apiKey, ...publicSwitched } = switched;
|
|
552
552
|
const renderLines = [`Switched to ${switched.org_name}.`];
|
|
@@ -555,7 +555,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
555
555
|
renderLines.push(`Saved folder auth in ${projectPath}`);
|
|
556
556
|
}
|
|
557
557
|
} else {
|
|
558
|
-
renderLines.push(`Saved global auth in ${
|
|
558
|
+
renderLines.push(`Saved global auth in ${_chunkTBJ23WKTjs.hostEnvFilePath.call(void 0, config.baseUrl)}`);
|
|
559
559
|
}
|
|
560
560
|
renderLines.push(
|
|
561
561
|
`Scope: ${authTarget.requested_scope} -> ${authTarget.effective_scope} (${authTarget.reason})`
|
|
@@ -570,10 +570,10 @@ async function handleOrgSwitch(selection, options) {
|
|
|
570
570
|
...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
|
|
571
571
|
...authTarget.warnings
|
|
572
572
|
];
|
|
573
|
-
|
|
573
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
574
574
|
{
|
|
575
575
|
ok: true,
|
|
576
|
-
host_env_path: authTarget.kind === "global" ?
|
|
576
|
+
host_env_path: authTarget.kind === "global" ? _chunkTBJ23WKTjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
|
|
577
577
|
project_env_paths,
|
|
578
578
|
...publicSwitched,
|
|
579
579
|
api_key_saved: true,
|
|
@@ -604,12 +604,12 @@ async function handleOrgSwitch(selection, options) {
|
|
|
604
604
|
);
|
|
605
605
|
}
|
|
606
606
|
async function handleOrgCreate(name, options) {
|
|
607
|
-
const config =
|
|
607
|
+
const config = _chunkTBJ23WKTjs.resolveConfig.call(void 0, );
|
|
608
608
|
const normalizedName = name.trim();
|
|
609
609
|
if (!normalizedName) {
|
|
610
610
|
throw new Error("Workspace name is required.");
|
|
611
611
|
}
|
|
612
|
-
const http = new (0,
|
|
612
|
+
const http = new (0, _chunkTBJ23WKTjs.HttpClient)(config);
|
|
613
613
|
const identity = await fetchWorkspaceCreationIdentity(http, config.apiKey);
|
|
614
614
|
let created;
|
|
615
615
|
let workspaceApiKey;
|
|
@@ -635,7 +635,7 @@ async function handleOrgCreate(name, options) {
|
|
|
635
635
|
sourceOrgId: identity.orgId,
|
|
636
636
|
name: normalizedName
|
|
637
637
|
});
|
|
638
|
-
const workspace = await new (0,
|
|
638
|
+
const workspace = await new (0, _chunkPDDUX5UYjs.DeeplineClient)({
|
|
639
639
|
apiKey: config.apiKey,
|
|
640
640
|
baseUrl: config.baseUrl
|
|
641
641
|
}).workspaces.create({
|
|
@@ -658,16 +658,16 @@ async function handleOrgCreate(name, options) {
|
|
|
658
658
|
orgName: created.org_name,
|
|
659
659
|
features: workspaceFeatures
|
|
660
660
|
});
|
|
661
|
-
|
|
661
|
+
_chunkTBJ23WKTjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
662
662
|
if (pendingIntentPath) _fs.unlinkSync.call(void 0, pendingIntentPath);
|
|
663
|
-
|
|
663
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
664
664
|
{
|
|
665
665
|
ok: true,
|
|
666
666
|
...created,
|
|
667
667
|
initial_credits: typeof created.initial_credits === "number" ? created.initial_credits : 0,
|
|
668
668
|
api_key_saved: true,
|
|
669
669
|
switched: true,
|
|
670
|
-
host_env_path:
|
|
670
|
+
host_env_path: _chunkTBJ23WKTjs.hostEnvFilePath.call(void 0, config.baseUrl),
|
|
671
671
|
...agentCommandContext(
|
|
672
672
|
organizationCommandContext({
|
|
673
673
|
orgId: created.org_id,
|
|
@@ -682,7 +682,7 @@ async function handleOrgCreate(name, options) {
|
|
|
682
682
|
lines: [
|
|
683
683
|
`Created organization: ${created.org_name}.`,
|
|
684
684
|
`Switched to ${created.org_name}.`,
|
|
685
|
-
`Saved host auth in ${
|
|
685
|
+
`Saved host auth in ${_chunkTBJ23WKTjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
686
686
|
]
|
|
687
687
|
}
|
|
688
688
|
]
|
|
@@ -734,8 +734,8 @@ Examples:
|
|
|
734
734
|
);
|
|
735
735
|
const members = org.command("members").description("List workspace members and manage their grants.");
|
|
736
736
|
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) => {
|
|
737
|
-
const result = await new (0,
|
|
738
|
-
|
|
737
|
+
const result = await new (0, _chunkPDDUX5UYjs.DeeplineClient)().workspaces.members(options);
|
|
738
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
739
739
|
{
|
|
740
740
|
...result,
|
|
741
741
|
render: {
|
|
@@ -756,11 +756,11 @@ Examples:
|
|
|
756
756
|
"Replace a member\u2019s grants (read, run, admin). Requires admin."
|
|
757
757
|
).option("--json", "Output JSON").action(
|
|
758
758
|
async (memberId, grants, options) => {
|
|
759
|
-
const result = await new (0,
|
|
759
|
+
const result = await new (0, _chunkPDDUX5UYjs.DeeplineClient)().workspaces.setMemberGrants(
|
|
760
760
|
memberId,
|
|
761
761
|
grants
|
|
762
762
|
);
|
|
763
|
-
|
|
763
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
764
764
|
{
|
|
765
765
|
...result,
|
|
766
766
|
render: {
|
|
@@ -778,7 +778,7 @@ Examples:
|
|
|
778
778
|
);
|
|
779
779
|
const sso = org.command("sso").description("Manage Enterprise workspace SSO.");
|
|
780
780
|
const ssoPath = "/api/v2/auth/workspace/sso";
|
|
781
|
-
const printSso = (payload, json) =>
|
|
781
|
+
const printSso = (payload, json) => _chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
782
782
|
{
|
|
783
783
|
...payload,
|
|
784
784
|
render: {
|
|
@@ -802,7 +802,7 @@ Examples:
|
|
|
802
802
|
},
|
|
803
803
|
{ json }
|
|
804
804
|
);
|
|
805
|
-
const ssoHttp = () => new (0,
|
|
805
|
+
const ssoHttp = () => new (0, _chunkTBJ23WKTjs.HttpClient)(_chunkTBJ23WKTjs.resolveConfig.call(void 0, ));
|
|
806
806
|
sso.command("status").description("Show this workspace's SSO connection and plan eligibility.").option("--json", "Emit JSON output").action(async (options) => {
|
|
807
807
|
printSso(await ssoHttp().get(ssoPath), options.json);
|
|
808
808
|
});
|
|
@@ -833,8 +833,8 @@ Examples:
|
|
|
833
833
|
"Identity provider metadata XML file"
|
|
834
834
|
).option("--json", "Emit JSON output").action(
|
|
835
835
|
async (options) => {
|
|
836
|
-
const config =
|
|
837
|
-
const http = new (0,
|
|
836
|
+
const config = _chunkTBJ23WKTjs.resolveConfig.call(void 0, );
|
|
837
|
+
const http = new (0, _chunkTBJ23WKTjs.HttpClient)(config);
|
|
838
838
|
const identity = await fetchWorkspaceCreationIdentity(
|
|
839
839
|
http,
|
|
840
840
|
config.apiKey
|
|
@@ -898,13 +898,13 @@ Examples:
|
|
|
898
898
|
if (chosen.length > 1) {
|
|
899
899
|
throw new Error("Pass one of a logo URL, --domain, or --remove.");
|
|
900
900
|
}
|
|
901
|
-
const http = new (0,
|
|
901
|
+
const http = new (0, _chunkTBJ23WKTjs.HttpClient)(_chunkTBJ23WKTjs.resolveConfig.call(void 0, ));
|
|
902
902
|
const path = "/api/v2/auth/workspace/logo";
|
|
903
903
|
const payload = chosen.length === 0 ? await http.get(path) : await http.patch(
|
|
904
904
|
path,
|
|
905
905
|
options.domain ? { domain: options.domain } : { logo: _nullishCoalesce(url, () => ( null)) }
|
|
906
906
|
);
|
|
907
|
-
|
|
907
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
908
908
|
{
|
|
909
909
|
...payload,
|
|
910
910
|
render: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-2AYWC63S.mjs";
|
|
4
|
+
import "./chunk-DIDWIPMA.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-NELMCOWK.mjs";
|
|
7
7
|
import "./chunk-S3A4IXBQ.mjs";
|
|
8
8
|
import "./chunk-UBKA33KY.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-53LLOGNV.mjs";
|
|
12
12
|
import {
|
|
13
13
|
ACTIVE_ORG_ID_ENV,
|
|
14
14
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
saveProjectDeeplineEnvValues,
|
|
29
29
|
sdkCliStateDirPath,
|
|
30
30
|
storedHostFeatures
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-TXFURKHD.mjs";
|
|
32
32
|
import {
|
|
33
33
|
detectAgentRuntime
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-T7EWDIVM.mjs";
|
|
35
35
|
import "./chunk-4QF2K7TM.mjs";
|
|
36
36
|
import "./chunk-DLIRSHV6.mjs";
|
|
37
37
|
import "./chunk-HBL4PM5Q.mjs";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-FZ42SO3Q.mjs";
|
|
39
39
|
import "./chunk-WZYKRD7T.mjs";
|
|
40
40
|
import "./chunk-KRD6H754.mjs";
|
|
41
41
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-2AYWC63S.mjs";
|
|
4
|
+
import "./chunk-DIDWIPMA.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-NELMCOWK.mjs";
|
|
7
7
|
import "./chunk-S3A4IXBQ.mjs";
|
|
8
8
|
import "./chunk-UBKA33KY.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-53LLOGNV.mjs";
|
|
12
12
|
import {
|
|
13
13
|
cliFeatureEnabled
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-TXFURKHD.mjs";
|
|
15
|
+
import "./chunk-T7EWDIVM.mjs";
|
|
16
16
|
import "./chunk-4QF2K7TM.mjs";
|
|
17
17
|
import "./chunk-DLIRSHV6.mjs";
|
|
18
18
|
import "./chunk-HBL4PM5Q.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-FZ42SO3Q.mjs";
|
|
20
20
|
import "./chunk-WZYKRD7T.mjs";
|
|
21
21
|
import "./chunk-KRD6H754.mjs";
|
|
22
22
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkPDDUX5UYjs = require('./chunk-PDDUX5UY.js');
|
|
4
|
+
require('./chunk-6AYQK7Z6.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-JDMR33HS.js');
|
|
7
7
|
require('./chunk-NMU3VR5U.js');
|
|
8
8
|
require('./chunk-XDVT3GOM.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkWQBJHB63js = require('./chunk-WQBJHB63.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
14
|
+
var _chunkTBJ23WKTjs = require('./chunk-TBJ23WKT.js');
|
|
15
|
+
require('./chunk-DQYJXVAF.js');
|
|
16
16
|
require('./chunk-ALJJRZNJ.js');
|
|
17
17
|
require('./chunk-XNYIZMNQ.js');
|
|
18
18
|
require('./chunk-DIAWYWT5.js');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-4V6KEXCM.js');
|
|
20
20
|
require('./chunk-OG64RBAC.js');
|
|
21
21
|
require('./chunk-COGTRVWW.js');
|
|
22
22
|
|
|
@@ -72,7 +72,7 @@ function linkLine(link) {
|
|
|
72
72
|
return `${link.id} ${expiry}${link.label ? ` ${link.label}` : ""}`;
|
|
73
73
|
}
|
|
74
74
|
function print(command, json, data, lines) {
|
|
75
|
-
|
|
75
|
+
_chunkWQBJHB63js.printCommandEnvelope.call(void 0,
|
|
76
76
|
{ command, ...data, render: { sections: [{ title: command, lines }] } },
|
|
77
77
|
{ json: Boolean(json), text: `${lines.join("\n")}
|
|
78
78
|
` }
|
|
@@ -88,7 +88,7 @@ async function run(action) {
|
|
|
88
88
|
}
|
|
89
89
|
var HOSTED_PAGES_FEATURE = "hosted-pages";
|
|
90
90
|
function registerPagesCommands(program) {
|
|
91
|
-
const pages = program.command("pages", { hidden: !
|
|
91
|
+
const pages = program.command("pages", { hidden: !_chunkTBJ23WKTjs.cliFeatureEnabled.call(void 0, HOSTED_PAGES_FEATURE) }).description(
|
|
92
92
|
"Publish documents at stable URLs on deepline.page and share them."
|
|
93
93
|
).addHelpText(
|
|
94
94
|
"after",
|
|
@@ -114,7 +114,7 @@ Examples:
|
|
|
114
114
|
throw new Error("Pass exactly one of --public or --private.");
|
|
115
115
|
}
|
|
116
116
|
const content = await _promises.readFile.call(void 0, options.file);
|
|
117
|
-
const result = await new (0,
|
|
117
|
+
const result = await new (0, _chunkPDDUX5UYjs.DeeplineClient)().writePage(name, {
|
|
118
118
|
public: Boolean(options.public),
|
|
119
119
|
contentBase64: content.toString("base64"),
|
|
120
120
|
contentType: _nullishCoalesce(options.contentType, () => ( inferPageContentType(options.file))),
|
|
@@ -137,7 +137,7 @@ Examples:
|
|
|
137
137
|
`
|
|
138
138
|
).action(
|
|
139
139
|
async (options) => run(async () => {
|
|
140
|
-
const result = await new (0,
|
|
140
|
+
const result = await new (0, _chunkPDDUX5UYjs.DeeplineClient)().listPages({
|
|
141
141
|
cursor: options.cursor,
|
|
142
142
|
limit: options.limit
|
|
143
143
|
});
|
|
@@ -151,7 +151,7 @@ Examples:
|
|
|
151
151
|
);
|
|
152
152
|
pages.command("get <name>").description("Show one page's details.").option("--json", "Emit raw JSON response").action(
|
|
153
153
|
async (name, options) => run(async () => {
|
|
154
|
-
const page = await new (0,
|
|
154
|
+
const page = await new (0, _chunkPDDUX5UYjs.DeeplineClient)().getPage(name);
|
|
155
155
|
print("pages get", options.json, page, pageLines(page));
|
|
156
156
|
})
|
|
157
157
|
);
|
|
@@ -165,7 +165,7 @@ Notes:
|
|
|
165
165
|
`
|
|
166
166
|
).action(
|
|
167
167
|
async (name, options) => run(async () => {
|
|
168
|
-
const page = await new (0,
|
|
168
|
+
const page = await new (0, _chunkPDDUX5UYjs.DeeplineClient)().setPageVisibility(name, true);
|
|
169
169
|
print("pages set-public", options.json, page, [
|
|
170
170
|
`${page.name} is now visible to anyone with its URL.`,
|
|
171
171
|
page.url
|
|
@@ -180,7 +180,7 @@ Notes:
|
|
|
180
180
|
`
|
|
181
181
|
).action(
|
|
182
182
|
async (name, options) => run(async () => {
|
|
183
|
-
const page = await new (0,
|
|
183
|
+
const page = await new (0, _chunkPDDUX5UYjs.DeeplineClient)().setPageVisibility(name, false);
|
|
184
184
|
print("pages set-private", options.json, page, [
|
|
185
185
|
`${page.name} is now visible to workspace members only.`
|
|
186
186
|
]);
|
|
@@ -196,7 +196,7 @@ Notes:
|
|
|
196
196
|
`
|
|
197
197
|
).action(
|
|
198
198
|
async (name, options) => run(async () => {
|
|
199
|
-
const result = await new (0,
|
|
199
|
+
const result = await new (0, _chunkPDDUX5UYjs.DeeplineClient)().deletePage(name);
|
|
200
200
|
print("pages delete", options.json, result, [`Deleted ${name}.`]);
|
|
201
201
|
})
|
|
202
202
|
);
|
|
@@ -213,7 +213,7 @@ Examples:
|
|
|
213
213
|
if (Boolean(options.expiresIn) === Boolean(options.permanent)) {
|
|
214
214
|
throw new Error("Pass exactly one of --expires-in or --permanent.");
|
|
215
215
|
}
|
|
216
|
-
const link = await new (0,
|
|
216
|
+
const link = await new (0, _chunkPDDUX5UYjs.DeeplineClient)().createPageLink(name, {
|
|
217
217
|
expiresInSeconds: options.expiresIn ? parseExpiresIn(options.expiresIn) : void 0,
|
|
218
218
|
permanent: options.permanent ? true : void 0,
|
|
219
219
|
label: options.label
|
|
@@ -227,7 +227,7 @@ Examples:
|
|
|
227
227
|
);
|
|
228
228
|
links.command("list <name>").description("List a page's links. Their URLs cannot be shown again.").option("--json", "Emit raw JSON response").action(
|
|
229
229
|
async (name, options) => run(async () => {
|
|
230
|
-
const result = await new (0,
|
|
230
|
+
const result = await new (0, _chunkPDDUX5UYjs.DeeplineClient)().listPageLinks(name);
|
|
231
231
|
print(
|
|
232
232
|
"pages links list",
|
|
233
233
|
options.json,
|
|
@@ -238,7 +238,7 @@ Examples:
|
|
|
238
238
|
);
|
|
239
239
|
links.command("revoke <name> <link-id>").description("Stop a link working.").option("--json", "Emit raw JSON response").action(
|
|
240
240
|
async (name, linkId, options) => run(async () => {
|
|
241
|
-
const result = await new (0,
|
|
241
|
+
const result = await new (0, _chunkPDDUX5UYjs.DeeplineClient)().revokePageLink(name, linkId);
|
|
242
242
|
print("pages links revoke", options.json, result, [
|
|
243
243
|
`Revoked ${linkId}.`
|
|
244
244
|
]);
|