deepline 0.3.534 → 0.3.536
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 +254 -147
- package/dist/bundling-sources/sdk/src/index.ts +4 -0
- package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +27 -1
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +16 -5
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +2 -23
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +26 -14
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-input-contract.ts +33 -8
- package/dist/bundling-sources/shared_libs/monitors/fleets/count-drift-alert.ts +121 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +8 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +14 -82
- package/dist/bundling-sources/shared_libs/monitors/package.json +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +4 -4
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +0 -26
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +21 -31
- 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 +727 -102
- 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/durable-runs-rollout.ts +12 -10
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +71 -2
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +60 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +372 -10
- package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +15 -2
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/fixture-capacity-simulator.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/gradient2-concurrency-controller.ts +41 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-capacity-policy.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-concurrency-policy.ts +9 -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 +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +5 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +63 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +31 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +11 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +73 -18
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +169 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +26 -4
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +90 -49
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +136 -30
- package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +13 -1
- package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +68 -1
- package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +63 -13
- package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +57 -1
- package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +22 -9
- package/dist/cli/auth-6XQKFOLG.js +43 -0
- package/dist/cli/{auth-MHQYIMVX.mjs → auth-KCTCUO7P.mjs} +7 -7
- package/dist/cli/{billing-YQLNP4S5.js → billing-4VBGZ3CT.js} +273 -112
- package/dist/cli/{billing-LX2PSBJ4.mjs → billing-OOJHKLNS.mjs} +185 -24
- package/dist/cli/{chunk-DGKTHWWH.js → chunk-2B4IOGFD.js} +406 -382
- package/dist/cli/{chunk-MQORQ7WL.js → chunk-2FCSUOYN.js} +55 -55
- package/dist/cli/{chunk-T2N3B7IQ.js → chunk-2GJZLIKW.js} +8 -8
- package/dist/cli/{chunk-6IFZPEJE.mjs → chunk-2YWJS76L.mjs} +1 -1
- package/dist/cli/{chunk-E7TP25I2.mjs → chunk-3PCYV6ZJ.mjs} +2 -2
- package/dist/cli/{chunk-LGRZCHKC.js → chunk-4E5JXZ3W.js} +18 -20
- package/dist/cli/{chunk-R4RG4FV5.mjs → chunk-4KWD3MX2.mjs} +13 -10
- package/dist/cli/{chunk-SUWTLXCV.js → chunk-6BBGUQJJ.js} +67 -146
- package/dist/cli/{chunk-JBBJDFUJ.js → chunk-6VUGBQZQ.js} +5 -5
- package/dist/cli/{chunk-2P3NVX65.mjs → chunk-AB2GBOD4.mjs} +40 -27
- package/dist/cli/{chunk-62SOZ67Y.mjs → chunk-ANUKBZ6W.mjs} +475 -11
- package/dist/cli/{chunk-MG6YL4M7.mjs → chunk-BASLYGXK.mjs} +101 -77
- package/dist/cli/{chunk-SQWET4SL.js → chunk-BBTKAASQ.js} +2 -1
- package/dist/cli/{chunk-NRO3NTVO.js → chunk-CBV7AKWM.js} +5 -5
- package/dist/cli/{chunk-RH3YRMUY.js → chunk-CIDN5K23.js} +1 -1
- package/dist/cli/{chunk-QNHHZ63P.mjs → chunk-CQBIO6HW.mjs} +1 -1
- package/dist/cli/{chunk-2KHUFWTK.js → chunk-CQDQNZGH.js} +42 -37
- package/dist/cli/{chunk-UWNVFAFN.js → chunk-CWSLUNA6.js} +33 -33
- package/dist/cli/{chunk-5FXMEEF4.mjs → chunk-CXTW7SRW.mjs} +67 -146
- package/dist/cli/{chunk-O53LHONF.mjs → chunk-DA2I2M7D.mjs} +2 -2
- package/dist/cli/{chunk-EYXUAJAU.mjs → chunk-DQHUJMCL.mjs} +5 -5
- package/dist/cli/{chunk-7GFR5Y4J.mjs → chunk-DUYAMLOC.mjs} +1 -1
- package/dist/cli/{chunk-OMVVHX4U.mjs → chunk-E24UGPGG.mjs} +13 -15
- package/dist/cli/{chunk-STR5LXK4.mjs → chunk-FSIVF2SI.mjs} +1 -1
- package/dist/cli/{chunk-KJVY7V2X.mjs → chunk-GF32SBST.mjs} +1 -1
- package/dist/cli/{chunk-AK622KIG.mjs → chunk-GHLDCLSC.mjs} +1 -1
- package/dist/cli/{chunk-A6HNT4EE.js → chunk-GTVZKY3F.js} +2 -2
- package/dist/cli/{chunk-BXIUZM5N.mjs → chunk-HAJQGP5V.mjs} +2 -2
- package/dist/cli/{chunk-6CEUQYMB.js → chunk-HWDKRN7L.js} +3 -3
- package/dist/cli/{chunk-5YAJGRWB.js → chunk-IPVRMYWT.js} +7 -7
- package/dist/cli/{chunk-ZPGGW27Q.mjs → chunk-JL2OTMSG.mjs} +1 -0
- package/dist/cli/{chunk-WR4WETRU.mjs → chunk-JUHDJNSI.mjs} +4 -4
- package/dist/cli/{chunk-TQH3533L.mjs → chunk-KPQHUVYW.mjs} +5 -5
- package/dist/cli/{chunk-V7SCRUFQ.js → chunk-KWYGWO4Y.js} +9 -6
- package/dist/cli/{chunk-DZS4JC7I.js → chunk-LDGZFDUB.js} +2 -2
- package/dist/cli/{chunk-EGTUOYYG.js → chunk-LN6RXDTB.js} +523 -59
- package/dist/cli/{chunk-DQ5ADV2J.mjs → chunk-LZXZQPA2.mjs} +4 -1
- package/dist/cli/{chunk-MYSKWJMA.js → chunk-MSP4DTSD.js} +13 -13
- package/dist/cli/{chunk-BNH4Y35W.mjs → chunk-OLH2PHMC.mjs} +2 -2
- package/dist/cli/{chunk-NNAE7E23.mjs → chunk-OUDTOMZC.mjs} +7 -9
- package/dist/cli/{chunk-GESIFFQX.mjs → chunk-OVX3Q5Q3.mjs} +1 -1
- package/dist/cli/{chunk-ENCA6O2D.mjs → chunk-PNY3BWHP.mjs} +2 -2
- package/dist/cli/{chunk-KSA2XE4T.js → chunk-Q4MNUOS4.js} +316 -303
- package/dist/cli/{chunk-GTXSUPCJ.js → chunk-Q5CXV3E3.js} +2 -2
- package/dist/cli/{chunk-VAG5YKP6.mjs → chunk-RVSSQPQO.mjs} +1 -1
- package/dist/cli/{chunk-VE7ZPLN2.js → chunk-SLPJ3LXI.js} +22 -22
- package/dist/cli/{chunk-IX45S5VC.js → chunk-TX5TUHJN.js} +17 -19
- package/dist/cli/{chunk-IF75RD6U.js → chunk-U2LVWCTD.js} +18 -6
- package/dist/cli/{chunk-ZS2WHWWL.js → chunk-UNDLNT3V.js} +1 -1
- package/dist/cli/{chunk-NDFNBJGL.js → chunk-VBDZIMWD.js} +26 -26
- package/dist/cli/{chunk-GVGQ6NZW.js → chunk-W7AEIGZR.js} +41 -41
- package/dist/cli/{chunk-WDNRPZED.mjs → chunk-WC5M3JXE.mjs} +2 -2
- package/dist/cli/{chunk-C374C22Y.js → chunk-WOQO3GV4.js} +14 -11
- package/dist/cli/{chunk-MQX363YF.js → chunk-XBAH3TKU.js} +5 -5
- package/dist/cli/{chunk-BDWZBMGV.mjs → chunk-XJD2GYUP.mjs} +5 -5
- package/dist/cli/{chunk-XRZJKHUA.mjs → chunk-XVZRJJDS.mjs} +4 -4
- package/dist/cli/{chunk-TVINIDHB.js → chunk-Y2NTPYGS.js} +17 -17
- package/dist/cli/{chunk-6GTGWZJG.mjs → chunk-YBMHOH6H.mjs} +4 -4
- package/dist/cli/{chunk-TG2UB3A5.mjs → chunk-YRLAUGQY.mjs} +3 -3
- package/dist/cli/{chunk-FKD3KL5Q.mjs → chunk-Z2XA6YU4.mjs} +10 -5
- package/dist/cli/{chunk-KXQCUX3X.mjs → chunk-Z7UIOGW4.mjs} +3 -3
- package/dist/cli/{chunk-HCD36BP6.js → chunk-ZEV2Y56V.js} +44 -44
- package/dist/cli/{chunk-MI6ZP7XI.mjs → chunk-ZG7BOECV.mjs} +18 -6
- package/dist/cli/{chunk-XBK6WCVA.js → chunk-ZILSRDIN.js} +8 -8
- package/dist/cli/{chunk-B2AS3R5W.js → chunk-ZISEH7OL.js} +16 -16
- package/dist/cli/{chunk-HPJAE6PP.js → chunk-ZZ4MF2GI.js} +6 -6
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-U3M2G76R.js → csv-2V2DIFNG.js} +15 -15
- package/dist/cli/{csv-4ID4E5W3.mjs → csv-P3HLK4GO.mjs} +6 -6
- package/dist/cli/{db-IHAQIKEQ.js → db-MREAQVW6.js} +36 -36
- package/dist/cli/{db-LHX5BBCZ.mjs → db-ZYOY3QRQ.mjs} +9 -9
- package/dist/cli/describe-IKZFOADR.mjs +49 -0
- package/dist/cli/describe-WW3OQRLP.js +49 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-CJ5LV23G.js → executions-H5IJ7QSQ.js} +11 -11
- package/dist/cli/{executions-UJ6JZUL5.mjs → executions-KTSY5M34.mjs} +9 -9
- package/dist/cli/{feedback-TGUBVGRP.js → feedback-724QK3Z5.js} +16 -16
- package/dist/cli/{feedback-YGTPJBRJ.mjs → feedback-WWJRIXEU.mjs} +8 -8
- package/dist/cli/git-PHYRD56H.js +25 -0
- package/dist/cli/{git-3DOTQHJO.mjs → git-R5VRG7X6.mjs} +7 -7
- package/dist/cli/index.js +151 -157
- package/dist/cli/index.mjs +51 -57
- package/dist/cli/{legacy-noops-BHEHVFHI.js → legacy-noops-C6GDEGPU.js} +11 -11
- package/dist/cli/{legacy-noops-RBBYRVLG.mjs → legacy-noops-PWZ5XLAO.mjs} +8 -8
- package/dist/cli/{monitors-XECKLAXA.js → monitors-VAVQ4WCE.js} +125 -122
- package/dist/cli/{monitors-5AJCG6IV.mjs → monitors-WQSKMHAP.mjs} +19 -16
- package/dist/cli/{org-DOBAIYWG.js → org-CWWRWXZQ.js} +89 -89
- package/dist/cli/{org-ZAAIEZKB.mjs → org-MAL4QPVF.mjs} +9 -9
- package/dist/cli/{play-KLYRMQPF.mjs → play-ILW6MSNG.mjs} +174 -80
- package/dist/cli/{play-E74VN6B7.js → play-WJOWK5PQ.js} +690 -596
- package/dist/cli/{providers-XTQXV5LB.mjs → providers-4V2NMLZZ.mjs} +9 -9
- package/dist/cli/{providers-APZ6SOSK.js → providers-W662ANCH.js} +12 -12
- package/dist/cli/{quickstart-S6WN6NWW.js → quickstart-BW6EBUYX.js} +8 -8
- package/dist/cli/{quickstart-X7RHHQCH.mjs → quickstart-C22BR743.mjs} +6 -6
- package/dist/cli/{run-3YLIJJ57.js → run-KW7KW4FX.js} +50 -53
- package/dist/cli/{run-TZPBBSPX.mjs → run-SPAU5IMW.mjs} +31 -34
- package/dist/cli/search-HLE54W5G.js +32 -0
- package/dist/cli/{search-VLHE2CMZ.mjs → search-XPC75HLM.mjs} +10 -11
- package/dist/cli/{search-output-73BYB7UE.mjs → search-output-JKYJSEPM.mjs} +6 -6
- package/dist/cli/{search-output-GCT7PQIT.js → search-output-VJYE7USJ.js} +8 -8
- package/dist/cli/{secrets-RLOTGKQZ.mjs → secrets-OJG73GXQ.mjs} +9 -9
- package/dist/cli/{secrets-J6CEKXKQ.js → secrets-YB57KGSB.js} +18 -18
- package/dist/cli/{sessions-7HZ7OZ62.mjs → sessions-7ZL37BW4.mjs} +8 -8
- package/dist/cli/sessions-VEBYZIEU.js +22 -0
- package/dist/cli/{settings-WRV5XEZC.js → settings-A7DD2ZYE.js} +88 -89
- package/dist/cli/{settings-72K5YCIS.mjs → settings-RKSQB7FA.mjs} +15 -16
- package/dist/cli/{setup-KQFY6WT4.mjs → setup-NXDUTITY.mjs} +11 -12
- package/dist/cli/{setup-QVXWT2EQ.js → setup-S3K5YU62.js} +51 -52
- package/dist/cli/skills-NVQ744CN.js +36 -0
- package/dist/cli/{skills-C3K3E473.mjs → skills-VMFAIDO6.mjs} +9 -10
- package/dist/cli/{tools-4A2OH6MB.mjs → tools-52NTHBSJ.mjs} +20 -21
- package/dist/cli/tools-SBDUL3WB.js +56 -0
- package/dist/cli/update-HHVFZPCV.js +34 -0
- package/dist/cli/{update-BS6USKPR.mjs → update-SAKBEKMV.mjs} +11 -12
- package/dist/cli/{views-WB6GFTRX.mjs → views-ACRV7MD6.mjs} +54 -10
- package/dist/cli/{views-4NZGAXHL.js → views-C3GJOBDG.js} +66 -22
- package/dist/cli/{workflow-2D4WX55R.mjs → workflow-CS22E7TC.mjs} +10 -10
- package/dist/cli/{workflow-L2QTQZYV.js → workflow-ZNWCZEGN.js} +20 -20
- package/dist/{client-DoUVSkqC.d.mts → client-BlLYQDNo.d.mts} +1 -1
- package/dist/{client-DQm56zMs.d.ts → client-DSQlkIDO.d.ts} +1 -1
- package/dist/{client-core-C7KkUIE_.d.ts → client-core-CDwapXy5.d.ts} +167 -108
- package/dist/{client-core-CPlwsC1Q.d.mts → client-core-rX7n2H8U.d.mts} +167 -108
- package/dist/{compiler-manifest-DsxsQP-T.d.mts → compiler-manifest-BHNC4RL-.d.mts} +58 -21
- package/dist/{compiler-manifest-DsxsQP-T.d.ts → compiler-manifest-BHNC4RL-.d.ts} +58 -21
- package/dist/{errors-qdJUVQ3g.d.mts → errors-D7sPXrvB.d.mts} +1 -1
- package/dist/{errors-Bk5h1D-C.d.ts → errors-lhtIWG5Z.d.ts} +1 -1
- package/dist/{index-bL66eHYz.d.ts → index-CQTBHXHr.d.ts} +1 -1
- package/dist/{index-PaupwX1B.d.mts → index-NaDZq2xf.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +15 -15
- package/dist/index.mjs +11 -11
- package/dist/install-integrity.json +131 -132
- package/dist/monitor-fleet-contract.d.mts +17 -11
- package/dist/monitor-fleet-contract.d.ts +17 -11
- package/dist/monitor-fleet-contract.js +3 -3
- package/dist/monitor-fleet-contract.mjs +2 -2
- package/dist/monitor-input-contract.js +2 -2
- package/dist/monitor-input-contract.mjs +1 -1
- 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 +67 -3
- package/dist/plays/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- 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/plays/run-request.js +3 -3
- package/dist/plays/run-request.mjs +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 +12 -12
- package/dist/server.mjs +6 -6
- package/package.json +1 -1
- package/dist/cli/auth-UP2RGPI6.js +0 -43
- package/dist/cli/chunk-5LZ5VSOK.mjs +0 -405
- package/dist/cli/chunk-D3J2Y2BP.js +0 -405
- package/dist/cli/describe-CI4MREFF.mjs +0 -50
- package/dist/cli/describe-IVTSD7ST.js +0 -50
- package/dist/cli/git-R3W25XIF.js +0 -25
- package/dist/cli/pages-FUOSF6BE.mjs +0 -266
- package/dist/cli/pages-TLC2N6L7.js +0 -266
- 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,266 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DeeplineClient
|
|
3
|
-
} from "./chunk-WDNRPZED.mjs";
|
|
4
|
-
import "./chunk-MG6YL4M7.mjs";
|
|
5
|
-
import "./chunk-L2VKAASU.mjs";
|
|
6
|
-
import "./chunk-FKD3KL5Q.mjs";
|
|
7
|
-
import "./chunk-PSX3WHIH.mjs";
|
|
8
|
-
import "./chunk-UBKA33KY.mjs";
|
|
9
|
-
import {
|
|
10
|
-
printCommandEnvelope
|
|
11
|
-
} from "./chunk-62SOZ67Y.mjs";
|
|
12
|
-
import {
|
|
13
|
-
cliFeatureEnabled
|
|
14
|
-
} from "./chunk-E7TP25I2.mjs";
|
|
15
|
-
import "./chunk-TG2UB3A5.mjs";
|
|
16
|
-
import "./chunk-QNHHZ63P.mjs";
|
|
17
|
-
import "./chunk-DLIRSHV6.mjs";
|
|
18
|
-
import "./chunk-ZPGGW27Q.mjs";
|
|
19
|
-
import "./chunk-AK622KIG.mjs";
|
|
20
|
-
import "./chunk-WZYKRD7T.mjs";
|
|
21
|
-
import "./chunk-KRD6H754.mjs";
|
|
22
|
-
|
|
23
|
-
// src/cli/commands/pages.ts
|
|
24
|
-
import { readFile } from "fs/promises";
|
|
25
|
-
import { extname } from "path";
|
|
26
|
-
var CONTENT_TYPES = {
|
|
27
|
-
".html": "text/html; charset=utf-8",
|
|
28
|
-
".htm": "text/html; charset=utf-8",
|
|
29
|
-
".json": "application/json",
|
|
30
|
-
".txt": "text/plain; charset=utf-8",
|
|
31
|
-
".csv": "text/csv; charset=utf-8",
|
|
32
|
-
".md": "text/markdown; charset=utf-8",
|
|
33
|
-
".svg": "image/svg+xml",
|
|
34
|
-
".png": "image/png",
|
|
35
|
-
".jpg": "image/jpeg",
|
|
36
|
-
".jpeg": "image/jpeg",
|
|
37
|
-
".gif": "image/gif",
|
|
38
|
-
".webp": "image/webp",
|
|
39
|
-
".pdf": "application/pdf"
|
|
40
|
-
};
|
|
41
|
-
var EXPIRY_UNITS = {
|
|
42
|
-
m: 60,
|
|
43
|
-
h: 3600,
|
|
44
|
-
d: 86400
|
|
45
|
-
};
|
|
46
|
-
function parseExpiresIn(value) {
|
|
47
|
-
const match = /^(\d+)([mhd])$/.exec(value.trim());
|
|
48
|
-
const seconds = match ? Number(match[1]) * EXPIRY_UNITS[match[2]] : 0;
|
|
49
|
-
if (!Number.isSafeInteger(seconds) || seconds <= 0) {
|
|
50
|
-
throw new Error(`--expires-in takes a value like 30m, 12h, or 7d.`);
|
|
51
|
-
}
|
|
52
|
-
return seconds;
|
|
53
|
-
}
|
|
54
|
-
function inferPageContentType(file) {
|
|
55
|
-
return CONTENT_TYPES[extname(file).toLowerCase()] ?? "application/octet-stream";
|
|
56
|
-
}
|
|
57
|
-
function audience(page) {
|
|
58
|
-
return page.public ? "public" : "workspace members";
|
|
59
|
-
}
|
|
60
|
-
function pageLines(page) {
|
|
61
|
-
return [
|
|
62
|
-
`${page.name}${page.state === "deleting" ? " (deleting)" : ""}`,
|
|
63
|
-
` ${page.url}`,
|
|
64
|
-
` visible to: ${audience(page)}`,
|
|
65
|
-
...page.allowed_origins?.length ? [` allowed origins: ${page.allowed_origins.join(", ")}`] : [],
|
|
66
|
-
...page.description ? [` ${page.description}`] : [],
|
|
67
|
-
` ${page.has_document ? `${page.content_type}, ${page.size_bytes} bytes, revision ${page.revision}` : "no content yet"}`,
|
|
68
|
-
` created ${new Date(page.created_at).toISOString()}, updated ${new Date(page.updated_at).toISOString()}`
|
|
69
|
-
];
|
|
70
|
-
}
|
|
71
|
-
function linkLine(link) {
|
|
72
|
-
const expiry = link.expires_at === null ? "never expires" : `expires ${new Date(link.expires_at).toISOString()}`;
|
|
73
|
-
return `${link.id} ${expiry}${link.label ? ` ${link.label}` : ""}`;
|
|
74
|
-
}
|
|
75
|
-
function print(command, json, data, lines) {
|
|
76
|
-
printCommandEnvelope(
|
|
77
|
-
{ command, ...data, render: { sections: [{ title: command, lines }] } },
|
|
78
|
-
{ json: Boolean(json), text: `${lines.join("\n")}
|
|
79
|
-
` }
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
async function run(action) {
|
|
83
|
-
try {
|
|
84
|
-
await action();
|
|
85
|
-
} catch (error) {
|
|
86
|
-
console.error(error instanceof Error ? error.message : String(error));
|
|
87
|
-
process.exitCode = 1;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
var HOSTED_PAGES_FEATURE = "hosted-pages";
|
|
91
|
-
function registerPagesCommands(program) {
|
|
92
|
-
const pages = program.command("pages", { hidden: !cliFeatureEnabled(HOSTED_PAGES_FEATURE) }).description(
|
|
93
|
-
"Publish documents at stable URLs on deepline.page and share them."
|
|
94
|
-
).addHelpText(
|
|
95
|
-
"after",
|
|
96
|
-
`
|
|
97
|
-
Examples:
|
|
98
|
-
deepline pages write report --file report.html --private
|
|
99
|
-
deepline pages list
|
|
100
|
-
deepline pages links create report --expires-in 7d
|
|
101
|
-
deepline pages set-public report
|
|
102
|
-
deepline pages delete report
|
|
103
|
-
`
|
|
104
|
-
);
|
|
105
|
-
pages.command("write <name>").description("Create a page, or replace all of its content.").requiredOption("--file <path>", "File holding the page content").option("--public", "Anyone with the URL can see this page").option("--private", "Only workspace members can see this page").option("--content-type <type>", "Overrides the type from the extension").option("--description <text>", "What the page is").option("--json", "Emit raw JSON response").addHelpText(
|
|
106
|
-
"after",
|
|
107
|
-
`
|
|
108
|
-
Examples:
|
|
109
|
-
deepline pages write report --file report.html --private
|
|
110
|
-
deepline pages write status --file status.json --public --description "Daily status"
|
|
111
|
-
`
|
|
112
|
-
).action(
|
|
113
|
-
async (name, options) => run(async () => {
|
|
114
|
-
if (Boolean(options.public) === Boolean(options.private)) {
|
|
115
|
-
throw new Error("Pass exactly one of --public or --private.");
|
|
116
|
-
}
|
|
117
|
-
const content = await readFile(options.file);
|
|
118
|
-
const result = await new DeeplineClient().writePage(name, {
|
|
119
|
-
public: Boolean(options.public),
|
|
120
|
-
contentBase64: content.toString("base64"),
|
|
121
|
-
contentType: options.contentType ?? inferPageContentType(options.file),
|
|
122
|
-
description: options.description
|
|
123
|
-
});
|
|
124
|
-
print("pages write", options.json, result, [
|
|
125
|
-
`${result.created ? "Created" : "Replaced"} ${result.name} (revision ${result.revision})`,
|
|
126
|
-
result.url,
|
|
127
|
-
`visible to: ${audience(result)}`,
|
|
128
|
-
...result.warnings.map((warning) => `warning: ${warning}`)
|
|
129
|
-
]);
|
|
130
|
-
})
|
|
131
|
-
);
|
|
132
|
-
pages.command("list").description("List this workspace's pages.").option("--cursor <cursor>", "Continue from a previous page of results").option("--limit <n>", "Results per request, up to 100", Number).option("--json", "Emit raw JSON response").addHelpText(
|
|
133
|
-
"after",
|
|
134
|
-
`
|
|
135
|
-
Examples:
|
|
136
|
-
deepline pages list
|
|
137
|
-
deepline pages list --json
|
|
138
|
-
`
|
|
139
|
-
).action(
|
|
140
|
-
async (options) => run(async () => {
|
|
141
|
-
const result = await new DeeplineClient().listPages({
|
|
142
|
-
cursor: options.cursor,
|
|
143
|
-
limit: options.limit
|
|
144
|
-
});
|
|
145
|
-
print("pages list", options.json, result, [
|
|
146
|
-
`Plan allows ${result.page_limit >= 1e3 ? "unlimited" : result.page_limit} pages. Public pages: ${result.public_allowed ? "enabled" : "not enabled; use --private and pages links create"}.`,
|
|
147
|
-
...result.pages.length === 0 ? ["No pages yet."] : [],
|
|
148
|
-
...result.pages.flatMap(pageLines),
|
|
149
|
-
...result.next_cursor ? [`More: --cursor ${result.next_cursor}`] : []
|
|
150
|
-
]);
|
|
151
|
-
})
|
|
152
|
-
);
|
|
153
|
-
pages.command("get <name>").description("Show one page's details.").option("--json", "Emit raw JSON response").action(
|
|
154
|
-
async (name, options) => run(async () => {
|
|
155
|
-
const page = await new DeeplineClient().getPage(name);
|
|
156
|
-
print("pages get", options.json, page, pageLines(page));
|
|
157
|
-
})
|
|
158
|
-
);
|
|
159
|
-
pages.command("set-origins <name> [origins...]").description(
|
|
160
|
-
"Replace the HTTPS origins that can read a public page. Omit origins to clear the list."
|
|
161
|
-
).option("--json", "Emit raw JSON response").action(
|
|
162
|
-
async (name, origins, options) => run(async () => {
|
|
163
|
-
const result = await new DeeplineClient().setPageAllowedOrigins(
|
|
164
|
-
name,
|
|
165
|
-
origins
|
|
166
|
-
);
|
|
167
|
-
print("pages set-origins", options.json, result, [
|
|
168
|
-
result.allowed_origins.length ? `Allowed origins for ${name}: ${result.allowed_origins.join(", ")}` : `Cleared allowed origins for ${name}.`
|
|
169
|
-
]);
|
|
170
|
-
})
|
|
171
|
-
);
|
|
172
|
-
pages.command("set-public <name>").description("Make a page visible to anyone with its URL.").option("--json", "Emit raw JSON response").addHelpText(
|
|
173
|
-
"after",
|
|
174
|
-
`
|
|
175
|
-
Notes:
|
|
176
|
-
This is the only way a private page becomes public. Effects are immediate.
|
|
177
|
-
Needs public pages enabled for the workspace; "deepline pages list" says
|
|
178
|
-
whether they are. A later write with public: false makes it private again.
|
|
179
|
-
`
|
|
180
|
-
).action(
|
|
181
|
-
async (name, options) => run(async () => {
|
|
182
|
-
const page = await new DeeplineClient().setPageVisibility(name, true);
|
|
183
|
-
print("pages set-public", options.json, page, [
|
|
184
|
-
`${page.name} is now visible to anyone with its URL.`,
|
|
185
|
-
page.url
|
|
186
|
-
]);
|
|
187
|
-
})
|
|
188
|
-
);
|
|
189
|
-
pages.command("set-private <name>").description("Limit a page to workspace members.").option("--json", "Emit raw JSON response").addHelpText(
|
|
190
|
-
"after",
|
|
191
|
-
`
|
|
192
|
-
Notes:
|
|
193
|
-
Effects are immediate. Existing links keep working until revoked.
|
|
194
|
-
`
|
|
195
|
-
).action(
|
|
196
|
-
async (name, options) => run(async () => {
|
|
197
|
-
const page = await new DeeplineClient().setPageVisibility(name, false);
|
|
198
|
-
print("pages set-private", options.json, page, [
|
|
199
|
-
`${page.name} is now visible to workspace members only.`
|
|
200
|
-
]);
|
|
201
|
-
})
|
|
202
|
-
);
|
|
203
|
-
pages.command("delete <name>").description("Delete a page, its content, and its links.").option("--json", "Emit raw JSON response").addHelpText(
|
|
204
|
-
"after",
|
|
205
|
-
`
|
|
206
|
-
Notes:
|
|
207
|
-
The page stops being served at once. This cannot be undone. If storage
|
|
208
|
-
removal fails, the command fails, the page stays listed as deleting, and
|
|
209
|
-
running the command again finishes the job.
|
|
210
|
-
`
|
|
211
|
-
).action(
|
|
212
|
-
async (name, options) => run(async () => {
|
|
213
|
-
const result = await new DeeplineClient().deletePage(name);
|
|
214
|
-
print("pages delete", options.json, result, [`Deleted ${name}.`]);
|
|
215
|
-
})
|
|
216
|
-
);
|
|
217
|
-
const links = pages.command("links").description("Manage URLs that open a page without login.");
|
|
218
|
-
links.command("create <name>").description("Create a URL that opens a page without login.").option("--expires-in <duration>", "How long it works: 30m, 12h, 7d").option("--permanent", "The URL works until it is revoked").option("--label <text>", "What this link is for").option("--json", "Emit raw JSON response").addHelpText(
|
|
219
|
-
"after",
|
|
220
|
-
`
|
|
221
|
-
Examples:
|
|
222
|
-
deepline pages links create report --expires-in 7d
|
|
223
|
-
deepline pages links create report --permanent --label "Board deck"
|
|
224
|
-
`
|
|
225
|
-
).action(
|
|
226
|
-
async (name, options) => run(async () => {
|
|
227
|
-
if (Boolean(options.expiresIn) === Boolean(options.permanent)) {
|
|
228
|
-
throw new Error("Pass exactly one of --expires-in or --permanent.");
|
|
229
|
-
}
|
|
230
|
-
const link = await new DeeplineClient().createPageLink(name, {
|
|
231
|
-
expiresInSeconds: options.expiresIn ? parseExpiresIn(options.expiresIn) : void 0,
|
|
232
|
-
permanent: options.permanent ? true : void 0,
|
|
233
|
-
label: options.label
|
|
234
|
-
});
|
|
235
|
-
print("pages links create", options.json, link, [
|
|
236
|
-
link.url,
|
|
237
|
-
linkLine(link),
|
|
238
|
-
"This URL is shown once."
|
|
239
|
-
]);
|
|
240
|
-
})
|
|
241
|
-
);
|
|
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
|
-
async (name, options) => run(async () => {
|
|
244
|
-
const result = await new DeeplineClient().listPageLinks(name);
|
|
245
|
-
print(
|
|
246
|
-
"pages links list",
|
|
247
|
-
options.json,
|
|
248
|
-
result,
|
|
249
|
-
result.links.length === 0 ? ["No links."] : result.links.map(linkLine)
|
|
250
|
-
);
|
|
251
|
-
})
|
|
252
|
-
);
|
|
253
|
-
links.command("revoke <name> <link-id>").description("Stop a link working.").option("--json", "Emit raw JSON response").action(
|
|
254
|
-
async (name, linkId, options) => run(async () => {
|
|
255
|
-
const result = await new DeeplineClient().revokePageLink(name, linkId);
|
|
256
|
-
print("pages links revoke", options.json, result, [
|
|
257
|
-
`Revoked ${linkId}.`
|
|
258
|
-
]);
|
|
259
|
-
})
|
|
260
|
-
);
|
|
261
|
-
}
|
|
262
|
-
export {
|
|
263
|
-
inferPageContentType,
|
|
264
|
-
parseExpiresIn,
|
|
265
|
-
registerPagesCommands
|
|
266
|
-
};
|
|
@@ -1,266 +0,0 @@
|
|
|
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
|
-
|
|
3
|
-
var _chunkMQX363YFjs = require('./chunk-MQX363YF.js');
|
|
4
|
-
require('./chunk-DGKTHWWH.js');
|
|
5
|
-
require('./chunk-E4CABWXL.js');
|
|
6
|
-
require('./chunk-2KHUFWTK.js');
|
|
7
|
-
require('./chunk-PMH4GLMD.js');
|
|
8
|
-
require('./chunk-XDVT3GOM.js');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _chunkEGTUOYYGjs = require('./chunk-EGTUOYYG.js');
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var _chunkXBK6WCVAjs = require('./chunk-XBK6WCVA.js');
|
|
15
|
-
require('./chunk-UWNVFAFN.js');
|
|
16
|
-
require('./chunk-T2N3B7IQ.js');
|
|
17
|
-
require('./chunk-XNYIZMNQ.js');
|
|
18
|
-
require('./chunk-SQWET4SL.js');
|
|
19
|
-
require('./chunk-RH3YRMUY.js');
|
|
20
|
-
require('./chunk-OG64RBAC.js');
|
|
21
|
-
require('./chunk-COGTRVWW.js');
|
|
22
|
-
|
|
23
|
-
// src/cli/commands/pages.ts
|
|
24
|
-
var _promises = require('fs/promises');
|
|
25
|
-
var _path = require('path');
|
|
26
|
-
var CONTENT_TYPES = {
|
|
27
|
-
".html": "text/html; charset=utf-8",
|
|
28
|
-
".htm": "text/html; charset=utf-8",
|
|
29
|
-
".json": "application/json",
|
|
30
|
-
".txt": "text/plain; charset=utf-8",
|
|
31
|
-
".csv": "text/csv; charset=utf-8",
|
|
32
|
-
".md": "text/markdown; charset=utf-8",
|
|
33
|
-
".svg": "image/svg+xml",
|
|
34
|
-
".png": "image/png",
|
|
35
|
-
".jpg": "image/jpeg",
|
|
36
|
-
".jpeg": "image/jpeg",
|
|
37
|
-
".gif": "image/gif",
|
|
38
|
-
".webp": "image/webp",
|
|
39
|
-
".pdf": "application/pdf"
|
|
40
|
-
};
|
|
41
|
-
var EXPIRY_UNITS = {
|
|
42
|
-
m: 60,
|
|
43
|
-
h: 3600,
|
|
44
|
-
d: 86400
|
|
45
|
-
};
|
|
46
|
-
function parseExpiresIn(value) {
|
|
47
|
-
const match = /^(\d+)([mhd])$/.exec(value.trim());
|
|
48
|
-
const seconds = match ? Number(match[1]) * EXPIRY_UNITS[match[2]] : 0;
|
|
49
|
-
if (!Number.isSafeInteger(seconds) || seconds <= 0) {
|
|
50
|
-
throw new Error(`--expires-in takes a value like 30m, 12h, or 7d.`);
|
|
51
|
-
}
|
|
52
|
-
return seconds;
|
|
53
|
-
}
|
|
54
|
-
function inferPageContentType(file) {
|
|
55
|
-
return _nullishCoalesce(CONTENT_TYPES[_path.extname.call(void 0, file).toLowerCase()], () => ( "application/octet-stream"));
|
|
56
|
-
}
|
|
57
|
-
function audience(page) {
|
|
58
|
-
return page.public ? "public" : "workspace members";
|
|
59
|
-
}
|
|
60
|
-
function pageLines(page) {
|
|
61
|
-
return [
|
|
62
|
-
`${page.name}${page.state === "deleting" ? " (deleting)" : ""}`,
|
|
63
|
-
` ${page.url}`,
|
|
64
|
-
` visible to: ${audience(page)}`,
|
|
65
|
-
..._optionalChain([page, 'access', _ => _.allowed_origins, 'optionalAccess', _2 => _2.length]) ? [` allowed origins: ${page.allowed_origins.join(", ")}`] : [],
|
|
66
|
-
...page.description ? [` ${page.description}`] : [],
|
|
67
|
-
` ${page.has_document ? `${page.content_type}, ${page.size_bytes} bytes, revision ${page.revision}` : "no content yet"}`,
|
|
68
|
-
` created ${new Date(page.created_at).toISOString()}, updated ${new Date(page.updated_at).toISOString()}`
|
|
69
|
-
];
|
|
70
|
-
}
|
|
71
|
-
function linkLine(link) {
|
|
72
|
-
const expiry = link.expires_at === null ? "never expires" : `expires ${new Date(link.expires_at).toISOString()}`;
|
|
73
|
-
return `${link.id} ${expiry}${link.label ? ` ${link.label}` : ""}`;
|
|
74
|
-
}
|
|
75
|
-
function print(command, json, data, lines) {
|
|
76
|
-
_chunkEGTUOYYGjs.printCommandEnvelope.call(void 0,
|
|
77
|
-
{ command, ...data, render: { sections: [{ title: command, lines }] } },
|
|
78
|
-
{ json: Boolean(json), text: `${lines.join("\n")}
|
|
79
|
-
` }
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
async function run(action) {
|
|
83
|
-
try {
|
|
84
|
-
await action();
|
|
85
|
-
} catch (error) {
|
|
86
|
-
console.error(error instanceof Error ? error.message : String(error));
|
|
87
|
-
process.exitCode = 1;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
var HOSTED_PAGES_FEATURE = "hosted-pages";
|
|
91
|
-
function registerPagesCommands(program) {
|
|
92
|
-
const pages = program.command("pages", { hidden: !_chunkXBK6WCVAjs.cliFeatureEnabled.call(void 0, HOSTED_PAGES_FEATURE) }).description(
|
|
93
|
-
"Publish documents at stable URLs on deepline.page and share them."
|
|
94
|
-
).addHelpText(
|
|
95
|
-
"after",
|
|
96
|
-
`
|
|
97
|
-
Examples:
|
|
98
|
-
deepline pages write report --file report.html --private
|
|
99
|
-
deepline pages list
|
|
100
|
-
deepline pages links create report --expires-in 7d
|
|
101
|
-
deepline pages set-public report
|
|
102
|
-
deepline pages delete report
|
|
103
|
-
`
|
|
104
|
-
);
|
|
105
|
-
pages.command("write <name>").description("Create a page, or replace all of its content.").requiredOption("--file <path>", "File holding the page content").option("--public", "Anyone with the URL can see this page").option("--private", "Only workspace members can see this page").option("--content-type <type>", "Overrides the type from the extension").option("--description <text>", "What the page is").option("--json", "Emit raw JSON response").addHelpText(
|
|
106
|
-
"after",
|
|
107
|
-
`
|
|
108
|
-
Examples:
|
|
109
|
-
deepline pages write report --file report.html --private
|
|
110
|
-
deepline pages write status --file status.json --public --description "Daily status"
|
|
111
|
-
`
|
|
112
|
-
).action(
|
|
113
|
-
async (name, options) => run(async () => {
|
|
114
|
-
if (Boolean(options.public) === Boolean(options.private)) {
|
|
115
|
-
throw new Error("Pass exactly one of --public or --private.");
|
|
116
|
-
}
|
|
117
|
-
const content = await _promises.readFile.call(void 0, options.file);
|
|
118
|
-
const result = await new (0, _chunkMQX363YFjs.DeeplineClient)().writePage(name, {
|
|
119
|
-
public: Boolean(options.public),
|
|
120
|
-
contentBase64: content.toString("base64"),
|
|
121
|
-
contentType: _nullishCoalesce(options.contentType, () => ( inferPageContentType(options.file))),
|
|
122
|
-
description: options.description
|
|
123
|
-
});
|
|
124
|
-
print("pages write", options.json, result, [
|
|
125
|
-
`${result.created ? "Created" : "Replaced"} ${result.name} (revision ${result.revision})`,
|
|
126
|
-
result.url,
|
|
127
|
-
`visible to: ${audience(result)}`,
|
|
128
|
-
...result.warnings.map((warning) => `warning: ${warning}`)
|
|
129
|
-
]);
|
|
130
|
-
})
|
|
131
|
-
);
|
|
132
|
-
pages.command("list").description("List this workspace's pages.").option("--cursor <cursor>", "Continue from a previous page of results").option("--limit <n>", "Results per request, up to 100", Number).option("--json", "Emit raw JSON response").addHelpText(
|
|
133
|
-
"after",
|
|
134
|
-
`
|
|
135
|
-
Examples:
|
|
136
|
-
deepline pages list
|
|
137
|
-
deepline pages list --json
|
|
138
|
-
`
|
|
139
|
-
).action(
|
|
140
|
-
async (options) => run(async () => {
|
|
141
|
-
const result = await new (0, _chunkMQX363YFjs.DeeplineClient)().listPages({
|
|
142
|
-
cursor: options.cursor,
|
|
143
|
-
limit: options.limit
|
|
144
|
-
});
|
|
145
|
-
print("pages list", options.json, result, [
|
|
146
|
-
`Plan allows ${result.page_limit >= 1e3 ? "unlimited" : result.page_limit} pages. Public pages: ${result.public_allowed ? "enabled" : "not enabled; use --private and pages links create"}.`,
|
|
147
|
-
...result.pages.length === 0 ? ["No pages yet."] : [],
|
|
148
|
-
...result.pages.flatMap(pageLines),
|
|
149
|
-
...result.next_cursor ? [`More: --cursor ${result.next_cursor}`] : []
|
|
150
|
-
]);
|
|
151
|
-
})
|
|
152
|
-
);
|
|
153
|
-
pages.command("get <name>").description("Show one page's details.").option("--json", "Emit raw JSON response").action(
|
|
154
|
-
async (name, options) => run(async () => {
|
|
155
|
-
const page = await new (0, _chunkMQX363YFjs.DeeplineClient)().getPage(name);
|
|
156
|
-
print("pages get", options.json, page, pageLines(page));
|
|
157
|
-
})
|
|
158
|
-
);
|
|
159
|
-
pages.command("set-origins <name> [origins...]").description(
|
|
160
|
-
"Replace the HTTPS origins that can read a public page. Omit origins to clear the list."
|
|
161
|
-
).option("--json", "Emit raw JSON response").action(
|
|
162
|
-
async (name, origins, options) => run(async () => {
|
|
163
|
-
const result = await new (0, _chunkMQX363YFjs.DeeplineClient)().setPageAllowedOrigins(
|
|
164
|
-
name,
|
|
165
|
-
origins
|
|
166
|
-
);
|
|
167
|
-
print("pages set-origins", options.json, result, [
|
|
168
|
-
result.allowed_origins.length ? `Allowed origins for ${name}: ${result.allowed_origins.join(", ")}` : `Cleared allowed origins for ${name}.`
|
|
169
|
-
]);
|
|
170
|
-
})
|
|
171
|
-
);
|
|
172
|
-
pages.command("set-public <name>").description("Make a page visible to anyone with its URL.").option("--json", "Emit raw JSON response").addHelpText(
|
|
173
|
-
"after",
|
|
174
|
-
`
|
|
175
|
-
Notes:
|
|
176
|
-
This is the only way a private page becomes public. Effects are immediate.
|
|
177
|
-
Needs public pages enabled for the workspace; "deepline pages list" says
|
|
178
|
-
whether they are. A later write with public: false makes it private again.
|
|
179
|
-
`
|
|
180
|
-
).action(
|
|
181
|
-
async (name, options) => run(async () => {
|
|
182
|
-
const page = await new (0, _chunkMQX363YFjs.DeeplineClient)().setPageVisibility(name, true);
|
|
183
|
-
print("pages set-public", options.json, page, [
|
|
184
|
-
`${page.name} is now visible to anyone with its URL.`,
|
|
185
|
-
page.url
|
|
186
|
-
]);
|
|
187
|
-
})
|
|
188
|
-
);
|
|
189
|
-
pages.command("set-private <name>").description("Limit a page to workspace members.").option("--json", "Emit raw JSON response").addHelpText(
|
|
190
|
-
"after",
|
|
191
|
-
`
|
|
192
|
-
Notes:
|
|
193
|
-
Effects are immediate. Existing links keep working until revoked.
|
|
194
|
-
`
|
|
195
|
-
).action(
|
|
196
|
-
async (name, options) => run(async () => {
|
|
197
|
-
const page = await new (0, _chunkMQX363YFjs.DeeplineClient)().setPageVisibility(name, false);
|
|
198
|
-
print("pages set-private", options.json, page, [
|
|
199
|
-
`${page.name} is now visible to workspace members only.`
|
|
200
|
-
]);
|
|
201
|
-
})
|
|
202
|
-
);
|
|
203
|
-
pages.command("delete <name>").description("Delete a page, its content, and its links.").option("--json", "Emit raw JSON response").addHelpText(
|
|
204
|
-
"after",
|
|
205
|
-
`
|
|
206
|
-
Notes:
|
|
207
|
-
The page stops being served at once. This cannot be undone. If storage
|
|
208
|
-
removal fails, the command fails, the page stays listed as deleting, and
|
|
209
|
-
running the command again finishes the job.
|
|
210
|
-
`
|
|
211
|
-
).action(
|
|
212
|
-
async (name, options) => run(async () => {
|
|
213
|
-
const result = await new (0, _chunkMQX363YFjs.DeeplineClient)().deletePage(name);
|
|
214
|
-
print("pages delete", options.json, result, [`Deleted ${name}.`]);
|
|
215
|
-
})
|
|
216
|
-
);
|
|
217
|
-
const links = pages.command("links").description("Manage URLs that open a page without login.");
|
|
218
|
-
links.command("create <name>").description("Create a URL that opens a page without login.").option("--expires-in <duration>", "How long it works: 30m, 12h, 7d").option("--permanent", "The URL works until it is revoked").option("--label <text>", "What this link is for").option("--json", "Emit raw JSON response").addHelpText(
|
|
219
|
-
"after",
|
|
220
|
-
`
|
|
221
|
-
Examples:
|
|
222
|
-
deepline pages links create report --expires-in 7d
|
|
223
|
-
deepline pages links create report --permanent --label "Board deck"
|
|
224
|
-
`
|
|
225
|
-
).action(
|
|
226
|
-
async (name, options) => run(async () => {
|
|
227
|
-
if (Boolean(options.expiresIn) === Boolean(options.permanent)) {
|
|
228
|
-
throw new Error("Pass exactly one of --expires-in or --permanent.");
|
|
229
|
-
}
|
|
230
|
-
const link = await new (0, _chunkMQX363YFjs.DeeplineClient)().createPageLink(name, {
|
|
231
|
-
expiresInSeconds: options.expiresIn ? parseExpiresIn(options.expiresIn) : void 0,
|
|
232
|
-
permanent: options.permanent ? true : void 0,
|
|
233
|
-
label: options.label
|
|
234
|
-
});
|
|
235
|
-
print("pages links create", options.json, link, [
|
|
236
|
-
link.url,
|
|
237
|
-
linkLine(link),
|
|
238
|
-
"This URL is shown once."
|
|
239
|
-
]);
|
|
240
|
-
})
|
|
241
|
-
);
|
|
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
|
-
async (name, options) => run(async () => {
|
|
244
|
-
const result = await new (0, _chunkMQX363YFjs.DeeplineClient)().listPageLinks(name);
|
|
245
|
-
print(
|
|
246
|
-
"pages links list",
|
|
247
|
-
options.json,
|
|
248
|
-
result,
|
|
249
|
-
result.links.length === 0 ? ["No links."] : result.links.map(linkLine)
|
|
250
|
-
);
|
|
251
|
-
})
|
|
252
|
-
);
|
|
253
|
-
links.command("revoke <name> <link-id>").description("Stop a link working.").option("--json", "Emit raw JSON response").action(
|
|
254
|
-
async (name, linkId, options) => run(async () => {
|
|
255
|
-
const result = await new (0, _chunkMQX363YFjs.DeeplineClient)().revokePageLink(name, linkId);
|
|
256
|
-
print("pages links revoke", options.json, result, [
|
|
257
|
-
`Revoked ${linkId}.`
|
|
258
|
-
]);
|
|
259
|
-
})
|
|
260
|
-
);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
exports.inferPageContentType = inferPageContentType; exports.parseExpiresIn = parseExpiresIn; exports.registerPagesCommands = registerPagesCommands;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _chunkIX45S5VCjs = require('./chunk-IX45S5VC.js');
|
|
9
|
-
require('./chunk-D3BCSAN7.js');
|
|
10
|
-
require('./chunk-MQX363YF.js');
|
|
11
|
-
require('./chunk-DGKTHWWH.js');
|
|
12
|
-
require('./chunk-E4CABWXL.js');
|
|
13
|
-
require('./chunk-2KHUFWTK.js');
|
|
14
|
-
require('./chunk-PMH4GLMD.js');
|
|
15
|
-
require('./chunk-XDVT3GOM.js');
|
|
16
|
-
require('./chunk-D3J2Y2BP.js');
|
|
17
|
-
require('./chunk-EGTUOYYG.js');
|
|
18
|
-
require('./chunk-XBK6WCVA.js');
|
|
19
|
-
require('./chunk-UWNVFAFN.js');
|
|
20
|
-
require('./chunk-T2N3B7IQ.js');
|
|
21
|
-
require('./chunk-XNYIZMNQ.js');
|
|
22
|
-
require('./chunk-SQWET4SL.js');
|
|
23
|
-
require('./chunk-RH3YRMUY.js');
|
|
24
|
-
require('./chunk-OG64RBAC.js');
|
|
25
|
-
require('./chunk-COGTRVWW.js');
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
exports.SEARCH_TYPES = _chunkIX45S5VCjs.SEARCH_TYPES; exports.appendCsv = _chunkIX45S5VCjs.appendCsv; exports.parseTypes = _chunkIX45S5VCjs.parseTypes; exports.pointAtDescribe = _chunkIX45S5VCjs.pointAtDescribe; exports.registerDeprecatedSearchCommand = _chunkIX45S5VCjs.registerDeprecatedSearchCommand; exports.registerSearchCommand = _chunkIX45S5VCjs.registerSearchCommand;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkMYSKWJMAjs = require('./chunk-MYSKWJMA.js');
|
|
7
|
-
require('./chunk-A6HNT4EE.js');
|
|
8
|
-
require('./chunk-EGTUOYYG.js');
|
|
9
|
-
require('./chunk-XBK6WCVA.js');
|
|
10
|
-
require('./chunk-UWNVFAFN.js');
|
|
11
|
-
require('./chunk-T2N3B7IQ.js');
|
|
12
|
-
require('./chunk-XNYIZMNQ.js');
|
|
13
|
-
require('./chunk-SQWET4SL.js');
|
|
14
|
-
require('./chunk-RH3YRMUY.js');
|
|
15
|
-
require('./chunk-OG64RBAC.js');
|
|
16
|
-
require('./chunk-COGTRVWW.js');
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
exports.feedbackAgentSessionId = _chunkMYSKWJMAjs.feedbackAgentSessionId; exports.registerSessionSendRenderCommands = _chunkMYSKWJMAjs.registerSessionSendRenderCommands; exports.registerSessionsCommands = _chunkMYSKWJMAjs.registerSessionsCommands; exports.uploadAgentSession = _chunkMYSKWJMAjs.uploadAgentSession;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _chunkGVGQ6NZWjs = require('./chunk-GVGQ6NZW.js');
|
|
13
|
-
require('./chunk-HCD36BP6.js');
|
|
14
|
-
require('./chunk-6CEUQYMB.js');
|
|
15
|
-
require('./chunk-D3J2Y2BP.js');
|
|
16
|
-
require('./chunk-EGTUOYYG.js');
|
|
17
|
-
require('./chunk-XBK6WCVA.js');
|
|
18
|
-
require('./chunk-UWNVFAFN.js');
|
|
19
|
-
require('./chunk-T2N3B7IQ.js');
|
|
20
|
-
require('./chunk-XNYIZMNQ.js');
|
|
21
|
-
require('./chunk-SQWET4SL.js');
|
|
22
|
-
require('./chunk-RH3YRMUY.js');
|
|
23
|
-
require('./chunk-OG64RBAC.js');
|
|
24
|
-
require('./chunk-RLX5ZFNX.js');
|
|
25
|
-
require('./chunk-COGTRVWW.js');
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
exports.buildSkillsPlan = _chunkGVGQ6NZWjs.buildSkillsPlan; exports.deeplineGtmSkillRoots = _chunkGVGQ6NZWjs.deeplineGtmSkillRoots; exports.detectSkillsAgents = _chunkGVGQ6NZWjs.detectSkillsAgents; exports.inferActiveSkillsScope = _chunkGVGQ6NZWjs.inferActiveSkillsScope; exports.isSkillsPlanCurrent = _chunkGVGQ6NZWjs.isSkillsPlanCurrent; exports.missingInstalledSkills = _chunkGVGQ6NZWjs.missingInstalledSkills; exports.registerSkillsCommand = _chunkGVGQ6NZWjs.registerSkillsCommand; exports.runSkillsCommand = _chunkGVGQ6NZWjs.runSkillsCommand; exports.skillsStatePathForScope = _chunkGVGQ6NZWjs.skillsStatePathForScope; exports.workspaceSkillRootsForAgents = _chunkGVGQ6NZWjs.workspaceSkillRootsForAgents;
|