deepline 0.3.463 → 0.3.465
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/play.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +130 -55
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +16 -2
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +98 -0
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +353 -52
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +63 -3
- package/dist/cli/auth-W62UTNJZ.js +41 -0
- package/dist/cli/{auth-LZLBR4C3.mjs → auth-WZCX4MTH.mjs} +5 -5
- package/dist/cli/{billing-OTOP5RE4.mjs → billing-ATR3CLIW.mjs} +6 -6
- package/dist/cli/{billing-6TJPNJQD.js → billing-DQUD3DBY.js} +77 -77
- package/dist/cli/{chunk-IKWRUNAP.mjs → chunk-3K3EHT6E.mjs} +1 -1
- package/dist/cli/{chunk-ALZBANZI.js → chunk-3XFNF6RR.js} +8 -8
- package/dist/cli/{chunk-3BOIOCNX.js → chunk-4URRABMM.js} +1 -1
- package/dist/cli/{chunk-BGNWI3KH.js → chunk-5VGMRONE.js} +3 -3
- package/dist/cli/{chunk-5LEAXRHV.js → chunk-6P4OYABU.js} +54 -226
- package/dist/cli/{chunk-UROQDCVW.js → chunk-6WKYRHGT.js} +3 -3
- package/dist/cli/{chunk-VDGTTH7K.mjs → chunk-6Y34LU6P.mjs} +2 -2
- package/dist/cli/{chunk-5DRNNC72.js → chunk-7R76B3WE.js} +5 -5
- package/dist/cli/{chunk-C25QE4CH.mjs → chunk-7Y2MLWTM.mjs} +1 -1
- package/dist/cli/chunk-7YDN6AEK.mjs +649 -0
- package/dist/cli/{chunk-VY2GBNTX.js → chunk-A3GML7WW.js} +9 -9
- package/dist/cli/{chunk-UIURR26V.mjs → chunk-B6GAIXVD.mjs} +4 -4
- package/dist/cli/{chunk-7XYDDCQ2.js → chunk-BQNUJK53.js} +26 -26
- package/dist/cli/{chunk-FK2HNDCN.js → chunk-DDF74332.js} +2 -2
- package/dist/cli/{chunk-JVDKZJUH.js → chunk-DJD4KLIX.js} +258 -258
- package/dist/cli/{chunk-7D6X7IXW.mjs → chunk-E3EYQ2FQ.mjs} +4 -4
- package/dist/cli/{chunk-WUZS2HK6.js → chunk-E3PLLFE2.js} +53 -53
- package/dist/cli/{chunk-BAPTQDLF.mjs → chunk-EA2F4YVX.mjs} +2 -2
- package/dist/cli/{chunk-XDWS2JJT.mjs → chunk-EISIAWBD.mjs} +1 -1
- package/dist/cli/{chunk-GUT7CLOL.mjs → chunk-EVQBOVOJ.mjs} +3 -3
- package/dist/cli/{chunk-S4XQCFES.mjs → chunk-FFTLJGZQ.mjs} +5 -5
- package/dist/cli/{chunk-5LHXOIPT.js → chunk-GBQSEOXE.js} +7 -7
- package/dist/cli/{chunk-NTLI6P6Y.mjs → chunk-GNLCGR7R.mjs} +2 -2
- package/dist/cli/{chunk-RD6IQ2JY.mjs → chunk-GW7RUNLW.mjs} +1 -1
- package/dist/cli/{chunk-6PMCRYDA.js → chunk-HIMV32ZX.js} +6 -4
- package/dist/cli/{chunk-CVQ7N5CV.mjs → chunk-HS6CM7TF.mjs} +11 -11
- package/dist/cli/{chunk-DHXCBITQ.mjs → chunk-HXWZ52CW.mjs} +3 -3
- package/dist/cli/{chunk-MSY22NQW.mjs → chunk-I2TCWIW2.mjs} +44 -216
- package/dist/cli/chunk-JLZKF7EY.js +649 -0
- package/dist/cli/{chunk-TIRBDQ3W.js → chunk-JN7AOVD4.js} +16 -16
- package/dist/cli/{chunk-4YZKBBLZ.mjs → chunk-JQSPKPHT.mjs} +5 -5
- package/dist/cli/{chunk-XQCTG5OO.js → chunk-L3U44YVO.js} +5 -5
- package/dist/cli/{chunk-7FCYPAPP.js → chunk-LFTLH5BK.js} +2 -2
- package/dist/cli/{chunk-TKAQR3IB.mjs → chunk-MUQAKLBP.mjs} +1 -1
- package/dist/cli/{chunk-3U5EAP6E.mjs → chunk-N27BUJU3.mjs} +5 -5
- package/dist/cli/{chunk-NDHJR2WZ.js → chunk-N57JYG7J.js} +36 -36
- package/dist/cli/{chunk-O3BJYD6D.mjs → chunk-NIJYJI67.mjs} +2 -2
- package/dist/cli/{chunk-CTQ56DXP.mjs → chunk-OEU3ZNBZ.mjs} +1 -1
- package/dist/cli/{chunk-VPHN2HAL.mjs → chunk-OGCAGZXO.mjs} +6 -4
- package/dist/cli/{chunk-NAPTMYTY.js → chunk-OKI3HWFF.js} +8 -8
- package/dist/cli/{chunk-PVY4DPPF.js → chunk-OQDN6JK6.js} +13 -13
- package/dist/cli/{chunk-CBZP6J3V.js → chunk-PIGMBDBZ.js} +21 -21
- package/dist/cli/{chunk-SKU6ECIY.js → chunk-QPJ2BDFD.js} +5 -5
- package/dist/cli/{chunk-UC4SFYNU.js → chunk-RREWUPC3.js} +6 -6
- package/dist/cli/{chunk-LYFKBLJI.mjs → chunk-SBM5JVTK.mjs} +1 -1
- package/dist/cli/{chunk-2NISBXMN.js → chunk-SOIXDMZK.js} +51 -51
- package/dist/cli/{chunk-WUMIYOXQ.mjs → chunk-SSQXSMAT.mjs} +2 -2
- package/dist/cli/{chunk-2ZIRCBYG.js → chunk-TJXGEK7P.js} +6 -6
- package/dist/cli/{chunk-XW2JIYG7.mjs → chunk-UMQT7QMB.mjs} +2 -2
- package/dist/cli/{chunk-RGOUCIIZ.js → chunk-W4J2EK5K.js} +3 -3
- package/dist/cli/{chunk-3BVLLJ3H.mjs → chunk-X6BQ4JAD.mjs} +2 -2
- package/dist/cli/{chunk-F2RHUPVH.mjs → chunk-XFAO5A5R.mjs} +1 -1
- package/dist/cli/{chunk-YGGIZ3VT.js → chunk-XJ5W64AC.js} +4 -4
- package/dist/cli/{chunk-I624J4H5.mjs → chunk-YZZGFUQ4.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-OK45Z5XQ.mjs → csv-AE7OLXCV.mjs} +4 -4
- package/dist/cli/{csv-EH5QWR4O.js → csv-ZVFGYRB7.js} +13 -13
- package/dist/cli/{db-3ESJKETS.js → db-JOD2MQ2T.js} +27 -27
- package/dist/cli/{db-6Z5E4HKN.mjs → db-KTXMCLB5.mjs} +6 -6
- package/dist/cli/describe-2IKB4KIX.js +48 -0
- package/dist/cli/{describe-PNDQB7YS.mjs → describe-FENTKQFK.mjs} +20 -20
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-2NTWQFEG.mjs → executions-FJCV5L37.mjs} +6 -6
- package/dist/cli/{executions-KUOBRX5V.js → executions-IT6TQ65Q.js} +8 -8
- package/dist/cli/{feedback-7RPRMSGY.mjs → feedback-LTTO73YD.mjs} +4 -4
- package/dist/cli/{feedback-UPHAZJ4C.js → feedback-WGURC3BG.js} +8 -8
- package/dist/cli/git-UOIC2DJL.js +25 -0
- package/dist/cli/{git-SCYP6WSZ.mjs → git-ZYEDB2UG.mjs} +5 -5
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-A4KYAGI6.mjs → legacy-noops-EGQ4G4BT.mjs} +5 -5
- package/dist/cli/{legacy-noops-7XMFCVRG.js → legacy-noops-JFXWEOZF.js} +8 -8
- package/dist/cli/{monitors-FLC5J7RI.mjs → monitors-IK6GWLCA.mjs} +7 -7
- package/dist/cli/{monitors-NZV6IX5H.js → monitors-WKN2K6ZH.js} +91 -91
- package/dist/cli/{org-IZ7UP3XF.js → org-FE5VMAKF.js} +68 -68
- package/dist/cli/{org-LUETJ7Z5.mjs → org-PD5YBUHR.mjs} +6 -6
- package/dist/cli/{pages-22ML3O7O.js → pages-H3DKEVVI.js} +17 -17
- package/dist/cli/{pages-EUX5EAGF.mjs → pages-ZVKSOSZJ.mjs} +6 -6
- package/dist/cli/{play-USJBQADG.js → play-2UL5OPGH.js} +305 -305
- package/dist/cli/{play-CDHPAKKM.mjs → play-RLIQY22H.mjs} +18 -18
- package/dist/cli/{providers-WFEUNPGC.js → providers-2IMHQDBC.js} +9 -9
- package/dist/cli/{providers-CCXZ3SQF.mjs → providers-M4AFFJF2.mjs} +6 -6
- package/dist/cli/{quickstart-O4JSUORZ.js → quickstart-OE64DBKK.js} +6 -6
- package/dist/cli/{quickstart-ZUULI635.mjs → quickstart-PS4QKNG2.mjs} +4 -4
- package/dist/cli/{run-QJ4NX5F5.mjs → run-3TKR5CZU.mjs} +25 -25
- package/dist/cli/{run-ISDJYJMU.js → run-SWLGV2VS.js} +40 -40
- package/dist/cli/{search-IX3XKZJ3.mjs → search-AMZ67RKO.mjs} +7 -7
- package/dist/cli/search-LXG7T6YZ.js +32 -0
- package/dist/cli/{secrets-7VUDXTUZ.mjs → secrets-INBXKNFM.mjs} +6 -6
- package/dist/cli/{secrets-ELQSNCTR.js → secrets-ZTLJY7L2.js} +15 -15
- package/dist/cli/{sessions-A3FG3AZX.js → sessions-3GKS45NP.js} +6 -6
- package/dist/cli/{sessions-VOIQ62GB.mjs → sessions-ZVBTKQ7J.mjs} +5 -5
- package/dist/cli/{settings-ZTXQEMZI.js → settings-7YG3UWJH.js} +78 -78
- package/dist/cli/{settings-S6N6EFBG.mjs → settings-AUPDZZ2U.mjs} +11 -11
- package/dist/cli/{setup-AYPIK4JE.mjs → setup-44QB72NU.mjs} +9 -9
- package/dist/cli/{setup-Y3WOIFLS.js → setup-YGESCFTH.js} +44 -44
- package/dist/cli/{skills-5SF5QWNI.mjs → skills-N3AWWCWO.mjs} +7 -7
- package/dist/cli/skills-QALGBUFY.js +31 -0
- package/dist/cli/{tools-3XNZ4J64.mjs → tools-3SHNTJPU.mjs} +18 -18
- package/dist/cli/tools-PUQ3JBZ7.js +55 -0
- package/dist/cli/{update-3U4OVX5R.mjs → update-3TWB5EEV.mjs} +9 -9
- package/dist/cli/update-O7XSJMLX.js +33 -0
- package/dist/cli/{workflow-2M5JP7SA.mjs → workflow-SYP62XNN.mjs} +7 -7
- package/dist/cli/{workflow-RM7H7555.js → workflow-ULIZU7KI.js} +17 -17
- package/dist/{client-DTwnz_AW.d.mts → client-ADFHNtFM.d.mts} +1 -1
- package/dist/{client-DS2IWYZF.d.ts → client-BClp2yrq.d.ts} +1 -1
- package/dist/{client-core-B_6HAIBy.d.ts → client-core-BFU73Ttw.d.ts} +1 -1
- package/dist/{client-core-DzBSlY1U.d.mts → client-core-DWLmmJWo.d.mts} +1 -1
- package/dist/{compiler-manifest-Dcyd3-Zd.d.ts → compiler-manifest-Cs17yO-H.d.mts} +321 -3
- package/dist/{compiler-manifest-Dcyd3-Zd.d.mts → compiler-manifest-Cs17yO-H.d.ts} +321 -3
- package/dist/{errors-yQwfgrcX.d.ts → errors-Dee-QpVS.d.ts} +1 -1
- package/dist/{errors-d-sTrZhe.d.mts → errors-qNfvQuRB.d.mts} +1 -1
- package/dist/{index-C6oXchjN.d.mts → index-BTqNNXmC.d.mts} +1 -1
- package/dist/{index-P56zy_z5.d.ts → index-DXTh1Lxe.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +80 -13
- package/dist/index.mjs +76 -9
- package/dist/install-integrity.json +114 -114
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-XPGKBJKB.js +0 -41
- package/dist/cli/chunk-NA4T3B62.js +0 -286
- package/dist/cli/chunk-TXZVVBQZ.mjs +0 -286
- package/dist/cli/describe-QUF7VTTR.js +0 -48
- package/dist/cli/git-UH653WHV.js +0 -25
- package/dist/cli/search-TIFNLRPM.js +0 -32
- package/dist/cli/skills-MWFRMG3H.js +0 -31
- package/dist/cli/tools-XEC4OD3R.js +0 -55
- package/dist/cli/update-DWYEYTZE.js +0 -33
|
@@ -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 _chunkQPJ2BDFDjs = require('./chunk-QPJ2BDFD.js');
|
|
4
|
+
require('./chunk-RREWUPC3.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-JKVRBCZL.js');
|
|
7
7
|
require('./chunk-NMU3VR5U.js');
|
|
8
8
|
require('./chunk-XDVT3GOM.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkGBQSEOXEjs = require('./chunk-GBQSEOXE.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -28,14 +28,14 @@ var _chunk5LHXOIPTjs = require('./chunk-5LHXOIPT.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk5VGMRONEjs = require('./chunk-5VGMRONE.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkXJ5W64ACjs = require('./chunk-XJ5W64AC.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-4URRABMM.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, _chunk5VGMRONEjs.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 = _chunk5VGMRONEjs.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
|
+
[_chunk5VGMRONEjs.HOST_URL_ENV]: input.baseUrl,
|
|
159
|
+
[_chunk5VGMRONEjs.API_KEY_ENV]: input.apiKey,
|
|
160
|
+
[_chunk5VGMRONEjs.ACTIVE_ORG_ID_ENV]: input.orgId,
|
|
161
|
+
[_chunk5VGMRONEjs.ACTIVE_ORG_NAME_ENV]: input.orgName,
|
|
162
|
+
..._chunk5VGMRONEjs.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 _chunkXJ5W64ACjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
|
|
177
177
|
}
|
|
178
178
|
function resolveOrgSwitchAuthTarget(scope, config) {
|
|
179
|
-
const activeProject =
|
|
179
|
+
const activeProject = _chunk5VGMRONEjs.getResolvedProjectAuthSource.call(void 0,
|
|
180
180
|
config.baseUrl,
|
|
181
181
|
config.apiKey
|
|
182
182
|
);
|
|
183
|
-
const folderTarget =
|
|
183
|
+
const folderTarget = _chunk5VGMRONEjs.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 = _chunk5VGMRONEjs.resolveConfig.call(void 0, );
|
|
256
|
+
const http = new (0, _chunk5VGMRONEjs.HttpClient)(config);
|
|
257
257
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
258
|
-
|
|
258
|
+
_chunkGBQSEOXEjs.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 = _chunk5VGMRONEjs.resolveConfig.call(void 0, );
|
|
275
|
+
const http = new (0, _chunk5VGMRONEjs.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 = _chunk5VGMRONEjs.getActiveProjectAuthSource.call(void 0, );
|
|
281
|
+
const activeProject = _chunk5VGMRONEjs.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 = _chunk5VGMRONEjs.resolveProjectPinTarget.call(void 0, );
|
|
286
|
+
const provenance = _chunk5VGMRONEjs.resolveCliAuthProvenance.call(void 0, config);
|
|
287
|
+
const hostPath = _chunk5VGMRONEjs.hostEnvFilePath.call(void 0, config.baseUrl);
|
|
288
|
+
const envApiKey = processEnvValue(_chunk5VGMRONEjs.API_KEY_ENV);
|
|
289
|
+
const envHostUrl = processEnvValue(_chunk5VGMRONEjs.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: ${_chunk5VGMRONEjs.API_KEY_ENV} process environment`);
|
|
331
331
|
}
|
|
332
332
|
if (envApiKey) {
|
|
333
|
-
lines.push(`${
|
|
333
|
+
lines.push(`${_chunk5VGMRONEjs.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
|
+
_chunkGBQSEOXEjs.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 = _chunk5VGMRONEjs.resolveConfig.call(void 0, );
|
|
375
|
+
const provenance = _chunk5VGMRONEjs.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 = _chunk5VGMRONEjs.resolveCliCommandContext.call(void 0, config);
|
|
378
378
|
const activeOrganization = commandContext.active_organization;
|
|
379
|
-
const pinnedFeatures =
|
|
380
|
-
const project_env_paths2 =
|
|
379
|
+
const pinnedFeatures = _chunk5VGMRONEjs.storedHostFeatures.call(void 0, config.baseUrl);
|
|
380
|
+
const project_env_paths2 = _chunk5VGMRONEjs.saveProjectDeeplineEnvValues.call(void 0,
|
|
381
381
|
{
|
|
382
|
-
[
|
|
383
|
-
[
|
|
382
|
+
[_chunk5VGMRONEjs.HOST_URL_ENV]: config.baseUrl,
|
|
383
|
+
[_chunk5VGMRONEjs.API_KEY_ENV]: config.apiKey,
|
|
384
384
|
...activeOrganization ? {
|
|
385
|
-
[
|
|
386
|
-
[
|
|
385
|
+
[_chunk5VGMRONEjs.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
|
|
386
|
+
[_chunk5VGMRONEjs.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
|
|
387
387
|
} : {},
|
|
388
|
-
...pinnedFeatures !== void 0 ? { [
|
|
388
|
+
...pinnedFeatures !== void 0 ? { [_chunk5VGMRONEjs.FEATURES_ENV]: pinnedFeatures } : {}
|
|
389
389
|
},
|
|
390
390
|
provenance.project.dir
|
|
391
391
|
);
|
|
392
|
-
|
|
392
|
+
_chunkGBQSEOXEjs.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
|
+
}) : _chunk5VGMRONEjs.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, _chunk5VGMRONEjs.HttpClient)(config);
|
|
426
426
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
427
427
|
if (!selection && !options.orgId) {
|
|
428
|
-
|
|
428
|
+
_chunkGBQSEOXEjs.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 = _chunk5VGMRONEjs.saveProjectDeeplineEnvValues.call(void 0, authValues2);
|
|
480
480
|
} else {
|
|
481
|
-
|
|
481
|
+
_chunk5VGMRONEjs.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 ${_chunk5VGMRONEjs.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
|
+
_chunkGBQSEOXEjs.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" ? _chunk5VGMRONEjs.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 = _chunk5VGMRONEjs.saveProjectDeeplineEnvValues.call(void 0, authValues);
|
|
548
548
|
} else {
|
|
549
|
-
|
|
549
|
+
_chunk5VGMRONEjs.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 ${_chunk5VGMRONEjs.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
|
+
_chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
|
|
574
574
|
{
|
|
575
575
|
ok: true,
|
|
576
|
-
host_env_path: authTarget.kind === "global" ?
|
|
576
|
+
host_env_path: authTarget.kind === "global" ? _chunk5VGMRONEjs.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 = _chunk5VGMRONEjs.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, _chunk5VGMRONEjs.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, _chunkQPJ2BDFDjs.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
|
+
_chunk5VGMRONEjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
662
662
|
if (pendingIntentPath) _fs.unlinkSync.call(void 0, pendingIntentPath);
|
|
663
|
-
|
|
663
|
+
_chunkGBQSEOXEjs.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: _chunk5VGMRONEjs.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 ${_chunk5VGMRONEjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
686
686
|
]
|
|
687
687
|
}
|
|
688
688
|
]
|
|
@@ -734,7 +734,7 @@ Examples:
|
|
|
734
734
|
);
|
|
735
735
|
const sso = org.command("sso").description("Manage Enterprise workspace SSO.");
|
|
736
736
|
const ssoPath = "/api/v2/auth/workspace/sso";
|
|
737
|
-
const printSso = (payload, json) =>
|
|
737
|
+
const printSso = (payload, json) => _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
|
|
738
738
|
{
|
|
739
739
|
...payload,
|
|
740
740
|
render: {
|
|
@@ -758,7 +758,7 @@ Examples:
|
|
|
758
758
|
},
|
|
759
759
|
{ json }
|
|
760
760
|
);
|
|
761
|
-
const ssoHttp = () => new (0,
|
|
761
|
+
const ssoHttp = () => new (0, _chunk5VGMRONEjs.HttpClient)(_chunk5VGMRONEjs.resolveConfig.call(void 0, ));
|
|
762
762
|
sso.command("status").description("Show this workspace's SSO connection and plan eligibility.").option("--json", "Emit JSON output").action(async (options) => {
|
|
763
763
|
printSso(await ssoHttp().get(ssoPath), options.json);
|
|
764
764
|
});
|
|
@@ -789,8 +789,8 @@ Examples:
|
|
|
789
789
|
"Identity provider metadata XML file"
|
|
790
790
|
).option("--json", "Emit JSON output").action(
|
|
791
791
|
async (options) => {
|
|
792
|
-
const config =
|
|
793
|
-
const http = new (0,
|
|
792
|
+
const config = _chunk5VGMRONEjs.resolveConfig.call(void 0, );
|
|
793
|
+
const http = new (0, _chunk5VGMRONEjs.HttpClient)(config);
|
|
794
794
|
const identity = await fetchWorkspaceCreationIdentity(
|
|
795
795
|
http,
|
|
796
796
|
config.apiKey
|
|
@@ -854,13 +854,13 @@ Examples:
|
|
|
854
854
|
if (chosen.length > 1) {
|
|
855
855
|
throw new Error("Pass one of a logo URL, --domain, or --remove.");
|
|
856
856
|
}
|
|
857
|
-
const http = new (0,
|
|
857
|
+
const http = new (0, _chunk5VGMRONEjs.HttpClient)(_chunk5VGMRONEjs.resolveConfig.call(void 0, ));
|
|
858
858
|
const path = "/api/v2/auth/workspace/logo";
|
|
859
859
|
const payload = chosen.length === 0 ? await http.get(path) : await http.patch(
|
|
860
860
|
path,
|
|
861
861
|
options.domain ? { domain: options.domain } : { logo: _nullishCoalesce(url, () => ( null)) }
|
|
862
862
|
);
|
|
863
|
-
|
|
863
|
+
_chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
|
|
864
864
|
{
|
|
865
865
|
...payload,
|
|
866
866
|
render: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GNLCGR7R.mjs";
|
|
4
|
+
import "./chunk-GW7RUNLW.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-FAG4DFUC.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-SSQXSMAT.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-XFAO5A5R.mjs";
|
|
32
32
|
import {
|
|
33
33
|
detectAgentRuntime
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YZZGFUQ4.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-EISIAWBD.mjs";
|
|
39
39
|
import "./chunk-WZYKRD7T.mjs";
|
|
40
40
|
import "./chunk-KRD6H754.mjs";
|
|
41
41
|
|
|
@@ -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 _chunkQPJ2BDFDjs = require('./chunk-QPJ2BDFD.js');
|
|
4
|
+
require('./chunk-RREWUPC3.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-JKVRBCZL.js');
|
|
7
7
|
require('./chunk-NMU3VR5U.js');
|
|
8
8
|
require('./chunk-XDVT3GOM.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkGBQSEOXEjs = require('./chunk-GBQSEOXE.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
14
|
+
var _chunk5VGMRONEjs = require('./chunk-5VGMRONE.js');
|
|
15
|
+
require('./chunk-XJ5W64AC.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-4URRABMM.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
|
+
_chunkGBQSEOXEjs.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: !_chunk5VGMRONEjs.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, _chunkQPJ2BDFDjs.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, _chunkQPJ2BDFDjs.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, _chunkQPJ2BDFDjs.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, _chunkQPJ2BDFDjs.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, _chunkQPJ2BDFDjs.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, _chunkQPJ2BDFDjs.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, _chunkQPJ2BDFDjs.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, _chunkQPJ2BDFDjs.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, _chunkQPJ2BDFDjs.DeeplineClient)().revokePageLink(name, linkId);
|
|
242
242
|
print("pages links revoke", options.json, result, [
|
|
243
243
|
`Revoked ${linkId}.`
|
|
244
244
|
]);
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-GNLCGR7R.mjs";
|
|
4
|
+
import "./chunk-GW7RUNLW.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-FAG4DFUC.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-SSQXSMAT.mjs";
|
|
12
12
|
import {
|
|
13
13
|
cliFeatureEnabled
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-XFAO5A5R.mjs";
|
|
15
|
+
import "./chunk-YZZGFUQ4.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-EISIAWBD.mjs";
|
|
20
20
|
import "./chunk-WZYKRD7T.mjs";
|
|
21
21
|
import "./chunk-KRD6H754.mjs";
|
|
22
22
|
|