deepline 0.3.534 → 0.3.535
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client-core.ts +22 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/call-requeue-state-machine.ts +420 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +658 -25
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +26 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-retry-policy.ts +624 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +51 -1
- package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +245 -1
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-no-progress.ts +6 -2
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +6 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +101 -0
- package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +63 -13
- package/dist/cli/auth-VDCU3T6A.js +43 -0
- package/dist/cli/{auth-MHQYIMVX.mjs → auth-ZCTMB5RA.mjs} +5 -5
- package/dist/cli/{billing-YQLNP4S5.js → billing-GVFKZQH3.js} +82 -82
- package/dist/cli/{billing-LX2PSBJ4.mjs → billing-OU2ZHL72.mjs} +7 -7
- package/dist/cli/{chunk-MQX363YF.js → chunk-243O3FH5.js} +5 -5
- package/dist/cli/{chunk-MYSKWJMA.js → chunk-2D6SWQTK.js} +13 -13
- package/dist/cli/{chunk-NDFNBJGL.js → chunk-4NLRWKZB.js} +26 -26
- package/dist/cli/{chunk-5LZ5VSOK.mjs → chunk-4QELPWUW.mjs} +2 -2
- package/dist/cli/{chunk-GTXSUPCJ.js → chunk-5EKNDNFQ.js} +2 -2
- package/dist/cli/{chunk-V7SCRUFQ.js → chunk-6LHX33VN.js} +6 -6
- package/dist/cli/{chunk-ENCA6O2D.mjs → chunk-6TYRRNXY.mjs} +2 -2
- package/dist/cli/{chunk-AK622KIG.mjs → chunk-7CWSAEYS.mjs} +1 -1
- package/dist/cli/{chunk-DZS4JC7I.js → chunk-7PXP2FQK.js} +2 -2
- package/dist/cli/{chunk-KJVY7V2X.mjs → chunk-7R5DAANG.mjs} +1 -1
- package/dist/cli/{chunk-6IFZPEJE.mjs → chunk-AUEUAPVS.mjs} +1 -1
- package/dist/cli/{chunk-XRZJKHUA.mjs → chunk-BF65LB7X.mjs} +3 -3
- package/dist/cli/{chunk-B2AS3R5W.js → chunk-CIDATNTY.js} +16 -16
- package/dist/cli/{chunk-UWNVFAFN.js → chunk-D4MHCCIR.js} +4 -4
- package/dist/cli/{chunk-GVGQ6NZW.js → chunk-DAPKLYST.js} +41 -41
- package/dist/cli/{chunk-BDWZBMGV.mjs → chunk-DFJODFMC.mjs} +5 -5
- package/dist/cli/{chunk-7GFR5Y4J.mjs → chunk-DWPY6ZID.mjs} +1 -1
- package/dist/cli/{chunk-KSA2XE4T.js → chunk-DYIWDUY4.js} +104 -104
- package/dist/cli/{chunk-5FXMEEF4.mjs → chunk-E3CLOVG5.mjs} +17 -5
- package/dist/cli/{chunk-DGKTHWWH.js → chunk-FGN75ZN6.js} +23 -7
- package/dist/cli/{chunk-MG6YL4M7.mjs → chunk-FZKPPB5P.mjs} +17 -1
- package/dist/cli/{chunk-2P3NVX65.mjs → chunk-G2DLG32W.mjs} +10 -10
- package/dist/cli/{chunk-O53LHONF.mjs → chunk-H6SWS5CG.mjs} +2 -2
- package/dist/cli/{chunk-XBK6WCVA.js → chunk-HWPOXCCK.js} +3 -3
- package/dist/cli/{chunk-HCD36BP6.js → chunk-HYBZWSSH.js} +44 -44
- package/dist/cli/{chunk-BXIUZM5N.mjs → chunk-J75DANZY.mjs} +2 -2
- package/dist/cli/{chunk-KXQCUX3X.mjs → chunk-JQQG4QL4.mjs} +3 -3
- package/dist/cli/{chunk-62SOZ67Y.mjs → chunk-JWWYLGUT.mjs} +2 -2
- package/dist/cli/{chunk-IX45S5VC.js → chunk-K3IPGMGP.js} +11 -11
- package/dist/cli/{chunk-OMVVHX4U.mjs → chunk-K53NKWZO.mjs} +5 -5
- package/dist/cli/{chunk-WR4WETRU.mjs → chunk-K76AEBFY.mjs} +4 -4
- package/dist/cli/{chunk-HPJAE6PP.js → chunk-KA6ZERJL.js} +6 -6
- package/dist/cli/{chunk-MQORQ7WL.js → chunk-KOZBZPRM.js} +53 -53
- package/dist/cli/{chunk-EGTUOYYG.js → chunk-KWGXHPHL.js} +7 -7
- package/dist/cli/{chunk-WDNRPZED.mjs → chunk-LVISZFYO.mjs} +2 -2
- package/dist/cli/{chunk-TVINIDHB.js → chunk-OM732MGV.js} +9 -9
- package/dist/cli/{chunk-JBBJDFUJ.js → chunk-PHLNYBAA.js} +5 -5
- package/dist/cli/{chunk-RH3YRMUY.js → chunk-PI5R65OQ.js} +1 -1
- package/dist/cli/{chunk-NNAE7E23.mjs → chunk-QYBAHYP4.mjs} +6 -6
- package/dist/cli/{chunk-TQH3533L.mjs → chunk-R2KKEHJN.mjs} +5 -5
- package/dist/cli/{chunk-6CEUQYMB.js → chunk-RFQWSH6I.js} +3 -3
- package/dist/cli/{chunk-TG2UB3A5.mjs → chunk-RKY4LBX3.mjs} +1 -1
- package/dist/cli/{chunk-D3J2Y2BP.js → chunk-T7RBM2WX.js} +14 -14
- package/dist/cli/{chunk-DQ5ADV2J.mjs → chunk-TCVCFZP6.mjs} +1 -1
- package/dist/cli/{chunk-LGRZCHKC.js → chunk-UUQ2OXMH.js} +16 -16
- package/dist/cli/{chunk-E7TP25I2.mjs → chunk-W5YJYU4G.mjs} +1 -1
- package/dist/cli/{chunk-VAG5YKP6.mjs → chunk-W6T23EUC.mjs} +1 -1
- package/dist/cli/{chunk-EYXUAJAU.mjs → chunk-WAIBM6KX.mjs} +5 -5
- package/dist/cli/{chunk-VE7ZPLN2.js → chunk-WNNA4L6Z.js} +22 -22
- package/dist/cli/{chunk-SUWTLXCV.js → chunk-XSOTEVOB.js} +17 -5
- package/dist/cli/{chunk-6GTGWZJG.mjs → chunk-YFZLZNTH.mjs} +2 -2
- package/dist/cli/{chunk-A6HNT4EE.js → chunk-ZUVE63Y7.js} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-U3M2G76R.js → csv-CD55KEIO.js} +13 -13
- package/dist/cli/{csv-4ID4E5W3.mjs → csv-CLPVMIRF.mjs} +4 -4
- package/dist/cli/{db-LHX5BBCZ.mjs → db-AU4SMWUN.mjs} +6 -6
- package/dist/cli/{db-IHAQIKEQ.js → db-MQKLDAEO.js} +27 -27
- package/dist/cli/describe-5BFNHT5V.js +50 -0
- package/dist/cli/{describe-CI4MREFF.mjs → describe-AWJUXE2U.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-CJ5LV23G.js → executions-77GOLWRM.js} +8 -8
- package/dist/cli/{executions-UJ6JZUL5.mjs → executions-TFIJPUX7.mjs} +6 -6
- package/dist/cli/{feedback-YGTPJBRJ.mjs → feedback-2WRSZ5WL.mjs} +6 -6
- package/dist/cli/{feedback-TGUBVGRP.js → feedback-OV5YAL3A.js} +14 -14
- package/dist/cli/git-HGMX52XU.js +25 -0
- package/dist/cli/{git-3DOTQHJO.mjs → git-VNS4ATLZ.mjs} +5 -5
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-RBBYRVLG.mjs → legacy-noops-C732QDCY.mjs} +6 -6
- package/dist/cli/{legacy-noops-BHEHVFHI.js → legacy-noops-HDOB5C6F.js} +9 -9
- package/dist/cli/{monitors-5AJCG6IV.mjs → monitors-2LYEFXOU.mjs} +7 -7
- package/dist/cli/{monitors-XECKLAXA.js → monitors-5IUMHH3E.js} +100 -100
- package/dist/cli/{org-DOBAIYWG.js → org-ADW2EVAC.js} +86 -86
- package/dist/cli/{org-ZAAIEZKB.mjs → org-G4YGZPHS.mjs} +6 -6
- package/dist/cli/{pages-FUOSF6BE.mjs → pages-KXKWSCEV.mjs} +6 -6
- package/dist/cli/{pages-TLC2N6L7.js → pages-VTJGAI2D.js} +18 -18
- package/dist/cli/{play-KLYRMQPF.mjs → play-7GQ56C2D.mjs} +69 -22
- package/dist/cli/{play-E74VN6B7.js → play-EHSOSSHT.js} +367 -320
- package/dist/cli/{providers-APZ6SOSK.js → providers-PWCF6OOO.js} +9 -9
- package/dist/cli/{providers-XTQXV5LB.mjs → providers-WL3YTCSV.mjs} +6 -6
- package/dist/cli/{quickstart-X7RHHQCH.mjs → quickstart-323XOPGI.mjs} +4 -4
- package/dist/cli/{quickstart-S6WN6NWW.js → quickstart-ZKI5MURA.js} +6 -6
- package/dist/cli/{run-3YLIJJ57.js → run-XZPWA6JS.js} +41 -41
- package/dist/cli/{run-TZPBBSPX.mjs → run-ZCNZU3K2.mjs} +23 -23
- package/dist/cli/{search-VLHE2CMZ.mjs → search-CVLVSFMJ.mjs} +8 -8
- package/dist/cli/search-J6EY7DQN.js +33 -0
- package/dist/cli/{search-output-73BYB7UE.mjs → search-output-6PY6RN2R.mjs} +4 -4
- package/dist/cli/{search-output-GCT7PQIT.js → search-output-7HRSSRBS.js} +6 -6
- package/dist/cli/{secrets-RLOTGKQZ.mjs → secrets-6S2ZWDIM.mjs} +6 -6
- package/dist/cli/{secrets-J6CEKXKQ.js → secrets-IYD5VKY4.js} +15 -15
- package/dist/cli/sessions-7HPIVSQ4.js +22 -0
- package/dist/cli/{sessions-7HZ7OZ62.mjs → sessions-GVEX5TUJ.mjs} +6 -6
- package/dist/cli/{settings-72K5YCIS.mjs → settings-BN5MJZ3C.mjs} +13 -13
- package/dist/cli/{settings-WRV5XEZC.js → settings-CANK4HJQ.js} +86 -86
- package/dist/cli/{setup-KQFY6WT4.mjs → setup-JNMSCCU4.mjs} +10 -10
- package/dist/cli/{setup-QVXWT2EQ.js → setup-YSGKGLSJ.js} +50 -50
- package/dist/cli/{skills-C3K3E473.mjs → skills-QCQN2UM2.mjs} +8 -8
- package/dist/cli/skills-WDGSSKJZ.js +37 -0
- package/dist/cli/{tools-4A2OH6MB.mjs → tools-CDPOID7V.mjs} +17 -17
- package/dist/cli/tools-URNVXSTZ.js +57 -0
- package/dist/cli/{update-BS6USKPR.mjs → update-D3ZERUQ3.mjs} +10 -10
- package/dist/cli/update-Q6JW32IA.js +35 -0
- package/dist/cli/{views-4NZGAXHL.js → views-4NV2KQKA.js} +18 -18
- package/dist/cli/{views-WB6GFTRX.mjs → views-RDZRWQBQ.mjs} +6 -6
- package/dist/cli/{workflow-2D4WX55R.mjs → workflow-2CG3TVCG.mjs} +7 -7
- package/dist/cli/{workflow-L2QTQZYV.js → workflow-RABJCAZC.js} +17 -17
- package/dist/{client-DoUVSkqC.d.mts → client-DhSvMO3A.d.mts} +1 -1
- package/dist/{client-core-CPlwsC1Q.d.mts → client-core-CVG1Et-4.d.mts} +9 -1
- package/dist/{client-core-C7KkUIE_.d.ts → client-core-CdWH6Sii.d.ts} +9 -1
- package/dist/{client-DQm56zMs.d.ts → client-oGNJMQFd.d.ts} +1 -1
- package/dist/{compiler-manifest-DsxsQP-T.d.mts → compiler-manifest-D2ZlBGxj.d.mts} +44 -0
- package/dist/{compiler-manifest-DsxsQP-T.d.ts → compiler-manifest-D2ZlBGxj.d.ts} +44 -0
- package/dist/{errors-qdJUVQ3g.d.mts → errors-B-gOQdj-.d.mts} +1 -1
- package/dist/{errors-Bk5h1D-C.d.ts → errors-CB0KAmmV.d.ts} +1 -1
- package/dist/{index-PaupwX1B.d.mts → index-BbJADro4.d.mts} +1 -1
- package/dist/{index-bL66eHYz.d.ts → index-c3nvUGCS.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -116
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +52 -0
- 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-UP2RGPI6.js +0 -43
- package/dist/cli/describe-IVTSD7ST.js +0 -50
- package/dist/cli/git-R3W25XIF.js +0 -25
- package/dist/cli/search-NB5CBALV.js +0 -33
- package/dist/cli/sessions-SFCZSB77.js +0 -22
- package/dist/cli/skills-WIJEHVLA.js +0 -37
- package/dist/cli/tools-VMMERMLO.js +0 -57
- package/dist/cli/update-54WZQDTS.js +0 -35
|
@@ -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(); } } 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 _chunk243O3FH5js = require('./chunk-243O3FH5.js');
|
|
4
|
+
require('./chunk-FGN75ZN6.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-2KHUFWTK.js');
|
|
7
7
|
require('./chunk-PMH4GLMD.js');
|
|
8
8
|
require('./chunk-XDVT3GOM.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkKWGXHPHLjs = require('./chunk-KWGXHPHL.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
14
|
+
var _chunkHWPOXCCKjs = require('./chunk-HWPOXCCK.js');
|
|
15
|
+
require('./chunk-D4MHCCIR.js');
|
|
16
16
|
require('./chunk-T2N3B7IQ.js');
|
|
17
17
|
require('./chunk-XNYIZMNQ.js');
|
|
18
18
|
require('./chunk-SQWET4SL.js');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-PI5R65OQ.js');
|
|
20
20
|
require('./chunk-OG64RBAC.js');
|
|
21
21
|
require('./chunk-COGTRVWW.js');
|
|
22
22
|
|
|
@@ -73,7 +73,7 @@ function linkLine(link) {
|
|
|
73
73
|
return `${link.id} ${expiry}${link.label ? ` ${link.label}` : ""}`;
|
|
74
74
|
}
|
|
75
75
|
function print(command, json, data, lines) {
|
|
76
|
-
|
|
76
|
+
_chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
|
|
77
77
|
{ command, ...data, render: { sections: [{ title: command, lines }] } },
|
|
78
78
|
{ json: Boolean(json), text: `${lines.join("\n")}
|
|
79
79
|
` }
|
|
@@ -89,7 +89,7 @@ async function run(action) {
|
|
|
89
89
|
}
|
|
90
90
|
var HOSTED_PAGES_FEATURE = "hosted-pages";
|
|
91
91
|
function registerPagesCommands(program) {
|
|
92
|
-
const pages = program.command("pages", { hidden: !
|
|
92
|
+
const pages = program.command("pages", { hidden: !_chunkHWPOXCCKjs.cliFeatureEnabled.call(void 0, HOSTED_PAGES_FEATURE) }).description(
|
|
93
93
|
"Publish documents at stable URLs on deepline.page and share them."
|
|
94
94
|
).addHelpText(
|
|
95
95
|
"after",
|
|
@@ -115,7 +115,7 @@ Examples:
|
|
|
115
115
|
throw new Error("Pass exactly one of --public or --private.");
|
|
116
116
|
}
|
|
117
117
|
const content = await _promises.readFile.call(void 0, options.file);
|
|
118
|
-
const result = await new (0,
|
|
118
|
+
const result = await new (0, _chunk243O3FH5js.DeeplineClient)().writePage(name, {
|
|
119
119
|
public: Boolean(options.public),
|
|
120
120
|
contentBase64: content.toString("base64"),
|
|
121
121
|
contentType: _nullishCoalesce(options.contentType, () => ( inferPageContentType(options.file))),
|
|
@@ -138,7 +138,7 @@ Examples:
|
|
|
138
138
|
`
|
|
139
139
|
).action(
|
|
140
140
|
async (options) => run(async () => {
|
|
141
|
-
const result = await new (0,
|
|
141
|
+
const result = await new (0, _chunk243O3FH5js.DeeplineClient)().listPages({
|
|
142
142
|
cursor: options.cursor,
|
|
143
143
|
limit: options.limit
|
|
144
144
|
});
|
|
@@ -152,7 +152,7 @@ Examples:
|
|
|
152
152
|
);
|
|
153
153
|
pages.command("get <name>").description("Show one page's details.").option("--json", "Emit raw JSON response").action(
|
|
154
154
|
async (name, options) => run(async () => {
|
|
155
|
-
const page = await new (0,
|
|
155
|
+
const page = await new (0, _chunk243O3FH5js.DeeplineClient)().getPage(name);
|
|
156
156
|
print("pages get", options.json, page, pageLines(page));
|
|
157
157
|
})
|
|
158
158
|
);
|
|
@@ -160,7 +160,7 @@ Examples:
|
|
|
160
160
|
"Replace the HTTPS origins that can read a public page. Omit origins to clear the list."
|
|
161
161
|
).option("--json", "Emit raw JSON response").action(
|
|
162
162
|
async (name, origins, options) => run(async () => {
|
|
163
|
-
const result = await new (0,
|
|
163
|
+
const result = await new (0, _chunk243O3FH5js.DeeplineClient)().setPageAllowedOrigins(
|
|
164
164
|
name,
|
|
165
165
|
origins
|
|
166
166
|
);
|
|
@@ -179,7 +179,7 @@ Notes:
|
|
|
179
179
|
`
|
|
180
180
|
).action(
|
|
181
181
|
async (name, options) => run(async () => {
|
|
182
|
-
const page = await new (0,
|
|
182
|
+
const page = await new (0, _chunk243O3FH5js.DeeplineClient)().setPageVisibility(name, true);
|
|
183
183
|
print("pages set-public", options.json, page, [
|
|
184
184
|
`${page.name} is now visible to anyone with its URL.`,
|
|
185
185
|
page.url
|
|
@@ -194,7 +194,7 @@ Notes:
|
|
|
194
194
|
`
|
|
195
195
|
).action(
|
|
196
196
|
async (name, options) => run(async () => {
|
|
197
|
-
const page = await new (0,
|
|
197
|
+
const page = await new (0, _chunk243O3FH5js.DeeplineClient)().setPageVisibility(name, false);
|
|
198
198
|
print("pages set-private", options.json, page, [
|
|
199
199
|
`${page.name} is now visible to workspace members only.`
|
|
200
200
|
]);
|
|
@@ -210,7 +210,7 @@ Notes:
|
|
|
210
210
|
`
|
|
211
211
|
).action(
|
|
212
212
|
async (name, options) => run(async () => {
|
|
213
|
-
const result = await new (0,
|
|
213
|
+
const result = await new (0, _chunk243O3FH5js.DeeplineClient)().deletePage(name);
|
|
214
214
|
print("pages delete", options.json, result, [`Deleted ${name}.`]);
|
|
215
215
|
})
|
|
216
216
|
);
|
|
@@ -227,7 +227,7 @@ Examples:
|
|
|
227
227
|
if (Boolean(options.expiresIn) === Boolean(options.permanent)) {
|
|
228
228
|
throw new Error("Pass exactly one of --expires-in or --permanent.");
|
|
229
229
|
}
|
|
230
|
-
const link = await new (0,
|
|
230
|
+
const link = await new (0, _chunk243O3FH5js.DeeplineClient)().createPageLink(name, {
|
|
231
231
|
expiresInSeconds: options.expiresIn ? parseExpiresIn(options.expiresIn) : void 0,
|
|
232
232
|
permanent: options.permanent ? true : void 0,
|
|
233
233
|
label: options.label
|
|
@@ -241,7 +241,7 @@ Examples:
|
|
|
241
241
|
);
|
|
242
242
|
links.command("list <name>").description("List a page's links. Their URLs cannot be shown again.").option("--json", "Emit raw JSON response").action(
|
|
243
243
|
async (name, options) => run(async () => {
|
|
244
|
-
const result = await new (0,
|
|
244
|
+
const result = await new (0, _chunk243O3FH5js.DeeplineClient)().listPageLinks(name);
|
|
245
245
|
print(
|
|
246
246
|
"pages links list",
|
|
247
247
|
options.json,
|
|
@@ -252,7 +252,7 @@ Examples:
|
|
|
252
252
|
);
|
|
253
253
|
links.command("revoke <name> <link-id>").description("Stop a link working.").option("--json", "Emit raw JSON response").action(
|
|
254
254
|
async (name, linkId, options) => run(async () => {
|
|
255
|
-
const result = await new (0,
|
|
255
|
+
const result = await new (0, _chunk243O3FH5js.DeeplineClient)().revokePageLink(name, linkId);
|
|
256
256
|
print("pages links revoke", options.json, result, [
|
|
257
257
|
`Revoked ${linkId}.`
|
|
258
258
|
]);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
parsePlayRunHeaderFlag,
|
|
6
6
|
parsePlayRunOptions,
|
|
7
7
|
resolvePlayRunCliOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YFZLZNTH.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ExecutionOutputError,
|
|
11
11
|
TABLE_EXPORT_ERROR_COLUMN,
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
underscoreKeysLast,
|
|
19
19
|
writeExecutionOutput,
|
|
20
20
|
writeRunDatasetCsv
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-TCVCFZP6.mjs";
|
|
22
22
|
import {
|
|
23
23
|
registerDeprecatedSearchCommand
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-K53NKWZO.mjs";
|
|
25
25
|
import "./chunk-5AEDYVB6.mjs";
|
|
26
26
|
import {
|
|
27
27
|
handleDeploymentGet,
|
|
28
28
|
handleDeploymentsList
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-H6SWS5CG.mjs";
|
|
30
30
|
import {
|
|
31
31
|
buildPlayDashboardUrl,
|
|
32
32
|
buildPlayRunUrl
|
|
@@ -51,10 +51,10 @@ import {
|
|
|
51
51
|
import {
|
|
52
52
|
pinLocalPlayImports,
|
|
53
53
|
planLocalPlayExecution
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-6TYRRNXY.mjs";
|
|
55
55
|
import {
|
|
56
56
|
DeeplineClient
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-LVISZFYO.mjs";
|
|
58
58
|
import {
|
|
59
59
|
RUN_EVENT_SEARCH_KIND_VALUES,
|
|
60
60
|
RunEventQueryInputError,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
normalizePlayStatus,
|
|
68
68
|
normalizeRunEventOperationRequest,
|
|
69
69
|
parseLogLevel
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-FZKPPB5P.mjs";
|
|
71
71
|
import "./chunk-L2VKAASU.mjs";
|
|
72
72
|
import {
|
|
73
73
|
CSV_DATA_INPUT_KEY,
|
|
@@ -91,19 +91,19 @@ import "./chunk-UBKA33KY.mjs";
|
|
|
91
91
|
import {
|
|
92
92
|
checkPlayRunCompatibility,
|
|
93
93
|
usesCliPlayAdmission
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-J75DANZY.mjs";
|
|
95
95
|
import {
|
|
96
96
|
isCliTraceEnabled,
|
|
97
97
|
recordCliTrace,
|
|
98
98
|
resolveCliMaintenancePolicy,
|
|
99
99
|
traceCliSpan
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import "./chunk-
|
|
100
|
+
} from "./chunk-DWPY6ZID.mjs";
|
|
101
|
+
import "./chunk-DFJODFMC.mjs";
|
|
102
102
|
import {
|
|
103
103
|
createCliProgress,
|
|
104
104
|
getActiveCliProgress
|
|
105
|
-
} from "./chunk-
|
|
106
|
-
import "./chunk-
|
|
105
|
+
} from "./chunk-7R5DAANG.mjs";
|
|
106
|
+
import "./chunk-4QELPWUW.mjs";
|
|
107
107
|
import {
|
|
108
108
|
formatNonStandardSandboxRuntimeWarning
|
|
109
109
|
} from "./chunk-5LUF4LAR.mjs";
|
|
@@ -123,17 +123,17 @@ import {
|
|
|
123
123
|
printJsonError,
|
|
124
124
|
renderCommandEnvelopeText,
|
|
125
125
|
shouldEmitJson
|
|
126
|
-
} from "./chunk-
|
|
127
|
-
import "./chunk-
|
|
126
|
+
} from "./chunk-JWWYLGUT.mjs";
|
|
127
|
+
import "./chunk-W5YJYU4G.mjs";
|
|
128
128
|
import {
|
|
129
129
|
fetchWithDeploymentProtection
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-RKY4LBX3.mjs";
|
|
131
131
|
import "./chunk-QNHHZ63P.mjs";
|
|
132
132
|
import "./chunk-DLIRSHV6.mjs";
|
|
133
133
|
import {
|
|
134
134
|
DeeplineError
|
|
135
135
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
136
|
-
import "./chunk-
|
|
136
|
+
import "./chunk-7CWSAEYS.mjs";
|
|
137
137
|
import "./chunk-WZYKRD7T.mjs";
|
|
138
138
|
import {
|
|
139
139
|
__commonJS,
|
|
@@ -12193,7 +12193,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12193
12193
|
jsonOutput: argsWantJson(args)
|
|
12194
12194
|
};
|
|
12195
12195
|
}
|
|
12196
|
-
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
12196
|
+
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--watch-play <play-reference>] [--dry-run] [--json]\nUse --watch-play to show invalid source on your own open working canvas while keeping the last valid diagram.";
|
|
12197
12197
|
function parsePlaySaveOptions(args) {
|
|
12198
12198
|
const target = args[0];
|
|
12199
12199
|
if (!target) throw new Error(PLAY_SAVE_USAGE);
|
|
@@ -12202,9 +12202,16 @@ function parsePlaySaveOptions(args) {
|
|
|
12202
12202
|
The Play file is positional.`);
|
|
12203
12203
|
}
|
|
12204
12204
|
let expectedArtifactHash;
|
|
12205
|
+
let watchPlay;
|
|
12205
12206
|
let dryRun = false;
|
|
12206
12207
|
for (let index = 1; index < args.length; index += 1) {
|
|
12207
12208
|
const arg = args[index];
|
|
12209
|
+
if (arg === "--watch-play" || arg.startsWith("--watch-play=")) {
|
|
12210
|
+
watchPlay = arg === "--watch-play" ? args[++index] : arg.slice("--watch-play=".length);
|
|
12211
|
+
if (!watchPlay || watchPlay.startsWith("-"))
|
|
12212
|
+
throw new Error("--watch-play requires an existing Play reference.");
|
|
12213
|
+
continue;
|
|
12214
|
+
}
|
|
12208
12215
|
if (arg === "--expected-artifact") {
|
|
12209
12216
|
expectedArtifactHash = args[++index];
|
|
12210
12217
|
if (!expectedArtifactHash) {
|
|
@@ -12230,6 +12237,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12230
12237
|
return {
|
|
12231
12238
|
target,
|
|
12232
12239
|
expectedArtifactHash,
|
|
12240
|
+
watchPlay,
|
|
12233
12241
|
dryRun,
|
|
12234
12242
|
jsonOutput: argsWantJson(args)
|
|
12235
12243
|
};
|
|
@@ -15574,6 +15582,29 @@ async function handlePlaySave(args) {
|
|
|
15574
15582
|
);
|
|
15575
15583
|
return 2;
|
|
15576
15584
|
}
|
|
15585
|
+
const watchPlay = options.dryRun ? void 0 : options.watchPlay;
|
|
15586
|
+
const client = watchPlay ? new DeeplineClient() : void 0;
|
|
15587
|
+
let attempt;
|
|
15588
|
+
if (watchPlay && client) {
|
|
15589
|
+
try {
|
|
15590
|
+
attempt = await client.beginWorkingPlaySave(watchPlay);
|
|
15591
|
+
} catch (error) {
|
|
15592
|
+
console.error(
|
|
15593
|
+
`Could not open the Play save status: ${error instanceof Error ? error.message : String(error)}`
|
|
15594
|
+
);
|
|
15595
|
+
return 5;
|
|
15596
|
+
}
|
|
15597
|
+
}
|
|
15598
|
+
const reportSave = async (action) => {
|
|
15599
|
+
if (!watchPlay || !client || !attempt) return;
|
|
15600
|
+
try {
|
|
15601
|
+
await client.finishWorkingPlaySave(watchPlay, attempt.attemptId, action);
|
|
15602
|
+
} catch (error) {
|
|
15603
|
+
console.error(
|
|
15604
|
+
`Could not update the Play save status: ${error instanceof Error ? error.message : String(error)}`
|
|
15605
|
+
);
|
|
15606
|
+
}
|
|
15607
|
+
};
|
|
15577
15608
|
let graph;
|
|
15578
15609
|
try {
|
|
15579
15610
|
graph = await traceCliSpan(
|
|
@@ -15583,10 +15614,17 @@ async function handlePlaySave(args) {
|
|
|
15583
15614
|
);
|
|
15584
15615
|
assertPlayGraphAuthoring(graph);
|
|
15585
15616
|
} catch (error) {
|
|
15617
|
+
await reportSave("invalid_source");
|
|
15586
15618
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15587
15619
|
return 7;
|
|
15588
15620
|
}
|
|
15589
15621
|
const playName = graph.root.playName ?? await extractPlayName(graph.root.sourceCode, graph.root.filePath);
|
|
15622
|
+
if (watchPlay && parseReferencedPlayTarget(watchPlay).unqualifiedPlayName !== playName) {
|
|
15623
|
+
console.error(
|
|
15624
|
+
`The file defines ${playName}, which does not match --watch-play ${watchPlay}.`
|
|
15625
|
+
);
|
|
15626
|
+
return 7;
|
|
15627
|
+
}
|
|
15590
15628
|
const artifactHash = graph.root.artifact.artifactHash;
|
|
15591
15629
|
if (options.expectedArtifactHash && options.expectedArtifactHash !== artifactHash) {
|
|
15592
15630
|
const result = {
|
|
@@ -15629,17 +15667,17 @@ async function handlePlaySave(args) {
|
|
|
15629
15667
|
}
|
|
15630
15668
|
return 0;
|
|
15631
15669
|
}
|
|
15632
|
-
const
|
|
15670
|
+
const saveClient = client ?? new DeeplineClient();
|
|
15633
15671
|
try {
|
|
15634
15672
|
await traceCliSpan(
|
|
15635
15673
|
"cli.play_save_compile_manifests",
|
|
15636
15674
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15637
|
-
() => compileBundledPlayGraphManifests(
|
|
15675
|
+
() => compileBundledPlayGraphManifests(saveClient, graph)
|
|
15638
15676
|
);
|
|
15639
15677
|
const saved = await traceCliSpan(
|
|
15640
15678
|
"cli.play_save_register_draft",
|
|
15641
15679
|
{ targetKind: "file", playName, artifactHash },
|
|
15642
|
-
() =>
|
|
15680
|
+
() => saveClient.registerPlayArtifact({
|
|
15643
15681
|
name: playName,
|
|
15644
15682
|
sourceCode: graph.root.sourceCode,
|
|
15645
15683
|
sourceFiles: graph.root.sourceFiles,
|
|
@@ -15649,6 +15687,7 @@ async function handlePlaySave(args) {
|
|
|
15649
15687
|
publish: false
|
|
15650
15688
|
})
|
|
15651
15689
|
);
|
|
15690
|
+
await reportSave("saved");
|
|
15652
15691
|
const result = {
|
|
15653
15692
|
success: true,
|
|
15654
15693
|
name: playName,
|
|
@@ -15677,6 +15716,9 @@ async function handlePlaySave(args) {
|
|
|
15677
15716
|
}
|
|
15678
15717
|
return 0;
|
|
15679
15718
|
} catch (error) {
|
|
15719
|
+
if (extractPlayValidationErrors(error).length > 0) {
|
|
15720
|
+
await reportSave("invalid_source");
|
|
15721
|
+
}
|
|
15680
15722
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15681
15723
|
return 5;
|
|
15682
15724
|
}
|
|
@@ -16662,7 +16704,7 @@ Examples:
|
|
|
16662
16704
|
process.exitCode = await ownView();
|
|
16663
16705
|
return;
|
|
16664
16706
|
}
|
|
16665
|
-
const { describeAnything } = await import("./describe-
|
|
16707
|
+
const { describeAnything } = await import("./describe-AWJUXE2U.mjs");
|
|
16666
16708
|
process.exitCode = await describeAnything(
|
|
16667
16709
|
name,
|
|
16668
16710
|
{
|
|
@@ -16706,16 +16748,21 @@ Notes:
|
|
|
16706
16748
|
|
|
16707
16749
|
Examples:
|
|
16708
16750
|
deepline plays save ./company-research.play.ts
|
|
16751
|
+
deepline plays save ./company-research.play.ts --watch-play company-research
|
|
16709
16752
|
deepline plays save ./company-research.play.ts --dry-run
|
|
16710
16753
|
deepline plays publish ./company-research.play.ts
|
|
16711
16754
|
`
|
|
16712
16755
|
).option("--expected-artifact <hash>", "Require the checked artifact hash").option(
|
|
16756
|
+
"--watch-play <reference>",
|
|
16757
|
+
"Show rejected saves on your open working canvas"
|
|
16758
|
+
).option(
|
|
16713
16759
|
"--dry-run",
|
|
16714
16760
|
"Bundle and show the planned draft save without mutation"
|
|
16715
16761
|
).option("--json", "Emit JSON output").action(async (file, options) => {
|
|
16716
16762
|
process.exitCode = await handlePlaySave([
|
|
16717
16763
|
file,
|
|
16718
16764
|
...options.expectedArtifact ? ["--expected-artifact", options.expectedArtifact] : [],
|
|
16765
|
+
...options.watchPlay ? ["--watch-play", options.watchPlay] : [],
|
|
16719
16766
|
...options.dryRun ? ["--dry-run"] : [],
|
|
16720
16767
|
...options.json ? ["--json"] : []
|
|
16721
16768
|
]);
|
|
@@ -17000,7 +17047,7 @@ Examples:
|
|
|
17000
17047
|
new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
17001
17048
|
).action(async (runId, options) => {
|
|
17002
17049
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
17003
|
-
const { getToolExecutionReceipt } = await import("./tools-
|
|
17050
|
+
const { getToolExecutionReceipt } = await import("./tools-CDPOID7V.mjs");
|
|
17004
17051
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
17005
17052
|
receiptJson: options.json !== void 0
|
|
17006
17053
|
});
|