slateboard 0.1.0 → 0.1.2
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/README.md +33 -192
- package/dist/arch-3JZTL2DJ.js +1842 -0
- package/dist/bin.js +93 -17
- package/dist/{chunk-ONZFKR4I.js → chunk-6CR2V7P7.js} +172 -22
- package/dist/chunk-6YTKJKSG.js +129 -0
- package/dist/{chunk-SQHGMBUM.js → chunk-KA7Z72FC.js} +3 -2
- package/dist/{chunk-WXM4BB4D.js → chunk-OJOVDYIZ.js} +1400 -873
- package/dist/{chunk-BWNUX4FT.js → chunk-WREOGLK6.js} +4 -4
- package/dist/{chunk-FMO5B2KJ.js → chunk-ZCFHR5VG.js} +5 -5
- package/dist/{client-JHI2EG6J.js → client-BFKANUSM.js} +4 -4
- package/dist/{commands-ONES545N.js → commands-IB76RJGP.js} +1 -1
- package/dist/{doctor-H5Y5L2JZ.js → doctor-RPN73UNG.js} +3 -3
- package/dist/{hooks-2TI5OLAU.js → hooks-QJ4XG42C.js} +13 -1
- package/dist/{lifecycle-ZB5HEO5P.js → lifecycle-O7LDC735.js} +4 -4
- package/dist/{service-command-26BPMBK3.js → service-command-WG4TAU2T.js} +5 -5
- package/dist/shipped-7D2LNTAK.js +153 -0
- package/dist/{src-QZIVUACM.js → src-2MHSOXLY.js} +12 -2
- package/dist/{src-YVFB3ZLM.js → src-QB7VJHQH.js} +21 -1
- package/dist/ui/assets/abnfDiagram-XWFEHMT6-DAC8TnbO.js +1 -0
- package/dist/ui/assets/architecture-WOLXFQ4H-X8k0-LVf.js +1 -0
- package/dist/ui/assets/architectureDiagram-CSQXQB3N-CVoxvA0s.js +36 -0
- package/dist/ui/assets/blockDiagram-BEDRHYPZ-DGf5VAwB.js +140 -0
- package/dist/ui/assets/bpmnIcons-APHXDYXF-C0jbCElo.js +1 -0
- package/dist/ui/assets/c4Diagram-M2UUVUY5-PB5quCOl.js +38 -0
- package/dist/ui/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/dist/ui/assets/chunk-3GCGMST5-RRiusQp9.js +1 -0
- package/dist/ui/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/dist/ui/assets/chunk-7U7NFRK5-CSOOpKZT.js +88 -0
- package/dist/ui/assets/chunk-CNRTWJTD-DJuDnaYn.js +1 -0
- package/dist/ui/assets/chunk-D5HYT7QG-imLQxbAy.js +1 -0
- package/dist/ui/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
- package/dist/ui/assets/chunk-DZSZGQHW-BCXsfFfT.js +1 -0
- package/dist/ui/assets/chunk-EBZ3SEQC-CdDips7b.js +2 -0
- package/dist/ui/assets/chunk-F3AE6A5H-DTVcMSk7.js +1 -0
- package/dist/ui/assets/chunk-FGVZ23HU-BEVs0fgA.js +213 -0
- package/dist/ui/assets/chunk-GZTWQ64R-CKGVWw4I.js +62 -0
- package/dist/ui/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
- package/dist/ui/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/dist/ui/assets/chunk-KTR4FSNJ-DSr3q0Xy.js +1 -0
- package/dist/ui/assets/chunk-MDAHDJXZ-YMIkXJ0O.js +10 -0
- package/dist/ui/assets/chunk-MPYPSXSE-C-CxVwa7.js +1 -0
- package/dist/ui/assets/chunk-ND7LMLKX-lfusdDHU.js +72 -0
- package/dist/ui/assets/chunk-NGNAAXSQ-DqoPQk1a.js +136 -0
- package/dist/ui/assets/chunk-OWCVCYLK-4-W-ynqW.js +2 -0
- package/dist/ui/assets/chunk-QDWOWVBQ-Du0KmhW4.js +129 -0
- package/dist/ui/assets/chunk-T47YP6PS-CKli33QU.js +1 -0
- package/dist/ui/assets/chunk-XXDRQBXY-DSL17ZTh.js +1 -0
- package/dist/ui/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/dist/ui/assets/classDiagram-v2-KXABOMEV-CYc2BZ2y.js +217 -0
- package/dist/ui/assets/cose-bilkent-JH36ORCC-81nUs0at.js +1 -0
- package/dist/ui/assets/cynefin-EF2NZ3EQ-Clvwy422.js +1 -0
- package/dist/ui/assets/cynefinDiagram-NJNITYFG-CsgTQqAC.js +62 -0
- package/dist/ui/assets/cytoscape.esm-BPveszXl.js +321 -0
- package/dist/ui/assets/d3-scale-lXtN6-Od.js +1 -0
- package/dist/ui/assets/d3-selection-BFzs9NTX.js +1 -0
- package/dist/ui/assets/dagre-KIHZ2IZ3--BpWd3hW.js +4 -0
- package/dist/ui/assets/diagram-7YQZDPLS-Dp_m-C1a.js +41 -0
- package/dist/ui/assets/diagram-QBROCOUO-Bt-Lp7vq.js +200 -0
- package/dist/ui/assets/diagram-RJJCUUZO-DLsG2Tej.js +30 -0
- package/dist/ui/assets/diagram-WERXNKYE-D31SLp70.js +24 -0
- package/dist/ui/assets/diagram-YHHI257C-CVMeUILe.js +3 -0
- package/dist/ui/assets/diagram-YR4HJLHV-Bz9qvIhJ.js +24 -0
- package/dist/ui/assets/dist-YCovsM_S.js +1 -0
- package/dist/ui/assets/ebnfDiagram-N527522P-_FIZSf8P.js +1 -0
- package/dist/ui/assets/elk-O5DQBFGD-BK3qD3UW.js +27 -0
- package/dist/ui/assets/erDiagram-K3K3BIDK-Dmpdi5Ob.js +99 -0
- package/dist/ui/assets/eventmodeling-K75KTNOO-Dt-51L4s.js +1 -0
- package/dist/ui/assets/flowDiagram-Z6JWZHQI-Cn2ZVzvO.js +1 -0
- package/dist/ui/assets/ganttDiagram-3PRQTZWP-BaZof7eT.js +292 -0
- package/dist/ui/assets/gitGraph-VSP46ZUC-ezyaB0jQ.js +1 -0
- package/dist/ui/assets/gitGraphDiagram-VXDFKS5L-DRNdClPw.js +106 -0
- package/dist/ui/assets/graphlib-DS17s2tU.js +1 -0
- package/dist/ui/assets/grid-E2QIVN74--djCUwdI.js +1 -0
- package/dist/ui/assets/index-Bly281F6.css +1 -0
- package/dist/ui/assets/index-CXK8WmR8.js +45 -0
- package/dist/ui/assets/info-OHQRW6UA-DsFXrFWI.js +1 -0
- package/dist/ui/assets/infoDiagram-EZ3ZOAHP-e8qx3eqc.js +2 -0
- package/dist/ui/assets/ishikawaDiagram-S3EKX5GW-CuKExPKN.js +70 -0
- package/dist/ui/assets/journeyDiagram-POQNLL5X-D0GE8iji.js +139 -0
- package/dist/ui/assets/kanban-definition-BH5XI6FM-NL5dOF_0.js +89 -0
- package/dist/ui/assets/katex-BXIx1Jgr.js +257 -0
- package/dist/ui/assets/mermaid-parser.core-0pE4JCc_.js +7 -0
- package/dist/ui/assets/mermaid.core-BVgUieVU.js +44 -0
- package/dist/ui/assets/mindmap-definition-WVAN44T4-BLTtjuVH.js +98 -0
- package/dist/ui/assets/packet-JDAUHWVQ-C-7DeilZ.js +1 -0
- package/dist/ui/assets/pegDiagram-D4NLKWP3-F2SSXiqv.js +1 -0
- package/dist/ui/assets/pie-XZMESJXO-B4BkiWTy.js +1 -0
- package/dist/ui/assets/pieDiagram-36ENHN4W-BB5uEdtB.js +39 -0
- package/dist/ui/assets/quadrantDiagram-ZQUDMS73-B5iPooYO.js +7 -0
- package/dist/ui/assets/radar-ABXABTNO-Dx3jkQdr.js +1 -0
- package/dist/ui/assets/railroad-I3PHUGI6-BSh47OT_.js +1 -0
- package/dist/ui/assets/railroad-abnf-LNEFI6M7-BWFvDxOj.js +1 -0
- package/dist/ui/assets/railroad-ebnf-DWYD2UWJ-GBoLzumA.js +1 -0
- package/dist/ui/assets/railroad-peg-JR7BVNR7-DByw5Orh.js +1 -0
- package/dist/ui/assets/railroadDiagram-JIZHGYPL--ptGd2NR.js +1 -0
- package/dist/ui/assets/render-VIF2ZAQL-CzNp-J42.js +2 -0
- package/dist/ui/assets/requirementDiagram-AXW2TVFA-DBh9Dt63.js +84 -0
- package/dist/ui/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/dist/ui/assets/sankeyDiagram-FBCJTAIF-CjJtGyu8.js +40 -0
- package/dist/ui/assets/sequenceDiagram-3LA2ROMG-BzeMVuzG.js +169 -0
- package/dist/ui/assets/sizeCapture-2Q2CQKSF-DSY_W0YL.js +1 -0
- package/dist/ui/assets/stateDiagram-v2-ATKHQDJO-DYavre2v.js +291 -0
- package/dist/ui/assets/swimlanes-YQL5WMAO-CUTCsfPM.js +1 -0
- package/dist/ui/assets/swimlanesDiagram-UCCPES4V-B7bXxKVr.js +8 -0
- package/dist/ui/assets/timeline-definition-7Z437IG3-HWrtH0QT.js +120 -0
- package/dist/ui/assets/treeView-D4JQ5SDB-B5lbyI_M.js +1 -0
- package/dist/ui/assets/treemap-SAJKECNS-Ckfi-DGc.js +1 -0
- package/dist/ui/assets/usecaseDiagram-RDK6N6HP-BuKN2NAW.js +328 -0
- package/dist/ui/assets/vennDiagram-SHRQU5PJ-s2gljkjP.js +34 -0
- package/dist/ui/assets/wardley-7MLQ67FV-CjAqYBcP.js +1 -0
- package/dist/ui/assets/wardleyDiagram-F3OXNVQS-Ba_SoMTx.js +78 -0
- package/dist/ui/assets/xychartDiagram-GDYJKCDI-FsxUUoqL.js +7 -0
- package/dist/ui/index.html +2 -2
- package/dist/{upgrade-FND3UBJR.js → upgrade-M6TR3IBW.js} +15 -15
- package/migrations/0006_arch_auto.sql +8 -0
- package/package.json +1 -1
- package/dist/chunk-3ZLMW2RI.js +0 -74
- package/dist/ui/assets/index-4WzXlYHs.css +0 -1
- package/dist/ui/assets/index-ZKfByx7Q.js +0 -42
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
Store,
|
|
4
|
-
createServices
|
|
5
|
-
} from "./chunk-WXM4BB4D.js";
|
|
6
2
|
import {
|
|
7
3
|
dbFile
|
|
8
4
|
} from "./chunk-3TOSW3FU.js";
|
|
5
|
+
import {
|
|
6
|
+
Store,
|
|
7
|
+
createServices
|
|
8
|
+
} from "./chunk-OJOVDYIZ.js";
|
|
9
9
|
|
|
10
10
|
// src/readonly.ts
|
|
11
11
|
import { existsSync, mkdtempSync, rmSync } from "node:fs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
startDaemon
|
|
4
|
+
} from "./chunk-KA7Z72FC.js";
|
|
2
5
|
import {
|
|
3
6
|
stopPid
|
|
4
7
|
} from "./chunk-FNBCYJA2.js";
|
|
5
8
|
import {
|
|
6
9
|
readSchemaVersion
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import {
|
|
9
|
-
startDaemon
|
|
10
|
-
} from "./chunk-SQHGMBUM.js";
|
|
10
|
+
} from "./chunk-WREOGLK6.js";
|
|
11
11
|
import {
|
|
12
12
|
START_TIMEOUT_MS,
|
|
13
13
|
logFile
|
|
@@ -120,7 +120,7 @@ async function statusCommand(service, port, version) {
|
|
|
120
120
|
} catch (err) {
|
|
121
121
|
schemaVersion = err;
|
|
122
122
|
}
|
|
123
|
-
const { readUpdateCache, updateStatus } = await import("./src-
|
|
123
|
+
const { readUpdateCache, updateStatus } = await import("./src-2MHSOXLY.js");
|
|
124
124
|
const cache = readUpdateCache(dir);
|
|
125
125
|
cachedUpdate = cache ? updateStatus(version, cache.latestVersion) : null;
|
|
126
126
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
withSnapshot
|
|
4
|
-
} from "./chunk-BWNUX4FT.js";
|
|
5
2
|
import {
|
|
6
3
|
ApiError,
|
|
7
4
|
api,
|
|
8
5
|
apiText
|
|
9
6
|
} from "./chunk-7GQK2VEN.js";
|
|
7
|
+
import {
|
|
8
|
+
withSnapshot
|
|
9
|
+
} from "./chunk-WREOGLK6.js";
|
|
10
10
|
import {
|
|
11
11
|
run
|
|
12
12
|
} from "./chunk-I5SMACZY.js";
|
|
13
|
-
import "./chunk-WXM4BB4D.js";
|
|
14
13
|
import {
|
|
15
14
|
health
|
|
16
15
|
} from "./chunk-3TOSW3FU.js";
|
|
16
|
+
import "./chunk-OJOVDYIZ.js";
|
|
17
17
|
import "./chunk-WKKEXOKW.js";
|
|
18
18
|
import "./chunk-KPOE4I3O.js";
|
|
19
19
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
hookInstalled
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6YTKJKSG.js";
|
|
5
5
|
import {
|
|
6
6
|
isAlive
|
|
7
7
|
} from "./chunk-FNBCYJA2.js";
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
activeProjectPaths,
|
|
10
10
|
openReadOnly,
|
|
11
11
|
schemaVersionOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WREOGLK6.js";
|
|
13
13
|
import "./chunk-I5SMACZY.js";
|
|
14
|
-
import "./chunk-WXM4BB4D.js";
|
|
15
14
|
import {
|
|
16
15
|
baseUrl,
|
|
17
16
|
dbFile
|
|
18
17
|
} from "./chunk-3TOSW3FU.js";
|
|
18
|
+
import "./chunk-OJOVDYIZ.js";
|
|
19
19
|
import "./chunk-WKKEXOKW.js";
|
|
20
20
|
import "./chunk-KPOE4I3O.js";
|
|
21
21
|
|
|
@@ -1,21 +1,33 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
HOOK,
|
|
4
|
+
HOOK_REFUSED,
|
|
4
5
|
HOOK_SCRIPT,
|
|
5
6
|
MARKER,
|
|
7
|
+
REQUIRE_KEY,
|
|
8
|
+
SHIPPED_CHECK_KEY,
|
|
9
|
+
checkMessage,
|
|
6
10
|
hookInstalled,
|
|
11
|
+
hookPolicy,
|
|
7
12
|
hooksDir,
|
|
8
13
|
installHook,
|
|
14
|
+
messageText,
|
|
9
15
|
uninstallHook
|
|
10
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6YTKJKSG.js";
|
|
11
17
|
import "./chunk-I5SMACZY.js";
|
|
12
18
|
import "./chunk-KPOE4I3O.js";
|
|
13
19
|
export {
|
|
14
20
|
HOOK,
|
|
21
|
+
HOOK_REFUSED,
|
|
15
22
|
HOOK_SCRIPT,
|
|
16
23
|
MARKER,
|
|
24
|
+
REQUIRE_KEY,
|
|
25
|
+
SHIPPED_CHECK_KEY,
|
|
26
|
+
checkMessage,
|
|
17
27
|
hookInstalled,
|
|
28
|
+
hookPolicy,
|
|
18
29
|
hooksDir,
|
|
19
30
|
installHook,
|
|
31
|
+
messageText,
|
|
20
32
|
uninstallHook
|
|
21
33
|
};
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
statusLines,
|
|
8
8
|
stopCommand,
|
|
9
9
|
stopServer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZCFHR5VG.js";
|
|
11
|
+
import "./chunk-KA7Z72FC.js";
|
|
11
12
|
import "./chunk-FNBCYJA2.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-WXM4BB4D.js";
|
|
14
|
-
import "./chunk-SQHGMBUM.js";
|
|
13
|
+
import "./chunk-WREOGLK6.js";
|
|
15
14
|
import "./chunk-TCKAXJOM.js";
|
|
16
15
|
import "./chunk-MKT3PGWK.js";
|
|
17
16
|
import "./chunk-3TOSW3FU.js";
|
|
18
17
|
import "./chunk-GD6AEWOM.js";
|
|
18
|
+
import "./chunk-OJOVDYIZ.js";
|
|
19
19
|
import "./chunk-WKKEXOKW.js";
|
|
20
20
|
import "./chunk-KPOE4I3O.js";
|
|
21
21
|
export {
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
stopServer
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZCFHR5VG.js";
|
|
5
|
+
import "./chunk-KA7Z72FC.js";
|
|
5
6
|
import "./chunk-FNBCYJA2.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-WREOGLK6.js";
|
|
8
|
+
import "./chunk-TCKAXJOM.js";
|
|
7
9
|
import {
|
|
8
10
|
currentSpec
|
|
9
11
|
} from "./chunk-LDIOPHXZ.js";
|
|
10
12
|
import "./chunk-I5SMACZY.js";
|
|
11
|
-
import "./chunk-WXM4BB4D.js";
|
|
12
|
-
import "./chunk-SQHGMBUM.js";
|
|
13
|
-
import "./chunk-TCKAXJOM.js";
|
|
14
13
|
import {
|
|
15
14
|
START_TIMEOUT_MS,
|
|
16
15
|
logFile
|
|
@@ -23,6 +22,7 @@ import {
|
|
|
23
22
|
waitForHealth
|
|
24
23
|
} from "./chunk-3TOSW3FU.js";
|
|
25
24
|
import "./chunk-GD6AEWOM.js";
|
|
25
|
+
import "./chunk-OJOVDYIZ.js";
|
|
26
26
|
import "./chunk-WKKEXOKW.js";
|
|
27
27
|
import "./chunk-KPOE4I3O.js";
|
|
28
28
|
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
ApiError,
|
|
4
|
+
api
|
|
5
|
+
} from "./chunk-7GQK2VEN.js";
|
|
6
|
+
import {
|
|
7
|
+
run
|
|
8
|
+
} from "./chunk-I5SMACZY.js";
|
|
9
|
+
import "./chunk-3TOSW3FU.js";
|
|
10
|
+
import "./chunk-KPOE4I3O.js";
|
|
11
|
+
|
|
12
|
+
// src/shipped.ts
|
|
13
|
+
var SHIPPED_PENDING = 3;
|
|
14
|
+
var RELEASE_TAGS_KEY = "slate.releaseTags";
|
|
15
|
+
var UNDOING = /^(Revert|Reapply) "/;
|
|
16
|
+
var MAX_COMMITS = 5e3;
|
|
17
|
+
var q = encodeURIComponent;
|
|
18
|
+
var short = (sha) => sha.slice(0, 7);
|
|
19
|
+
var plural = (n, word) => `${n} ${word}${n === 1 ? "" : "s"}`;
|
|
20
|
+
var subject = (message) => message.split("\n", 1)[0].trim();
|
|
21
|
+
var label = (item) => item.key ?? item.id;
|
|
22
|
+
async function shipped(port, cwd, options, git = run) {
|
|
23
|
+
const { mentionsIn, saysNoItem } = await import("./src-QB7VJHQH.js");
|
|
24
|
+
const inRepo = (args) => git("git", ["-C", cwd, ...args]);
|
|
25
|
+
const commitOf = async (ref2) => {
|
|
26
|
+
const found = await inRepo(["rev-parse", "--verify", "--quiet", "--end-of-options", `${ref2}^{commit}`]);
|
|
27
|
+
return found.code === 0 ? found.stdout.trim() : null;
|
|
28
|
+
};
|
|
29
|
+
if ((await inRepo(["rev-parse", "--git-dir"])).code !== 0) {
|
|
30
|
+
if (options.check) return { lines: [], code: 0 };
|
|
31
|
+
throw new Error(`${cwd} is not in a git repository`);
|
|
32
|
+
}
|
|
33
|
+
const pattern = (await inRepo(["config", "--get", RELEASE_TAGS_KEY])).stdout.trim();
|
|
34
|
+
const describe = (at) => inRepo(["describe", "--tags", "--abbrev=0", ...pattern ? ["--match", pattern] : [], at]);
|
|
35
|
+
let ref = options.ref;
|
|
36
|
+
if (ref === void 0) {
|
|
37
|
+
const newest = await describe("HEAD");
|
|
38
|
+
if (newest.code !== 0) {
|
|
39
|
+
if (options.check) return { lines: [], code: 0 };
|
|
40
|
+
throw new Error("no tag is reachable from HEAD; name what shipped: slate shipped <ref>");
|
|
41
|
+
}
|
|
42
|
+
ref = newest.stdout.trim();
|
|
43
|
+
}
|
|
44
|
+
const sha = await commitOf(ref);
|
|
45
|
+
if (!sha) throw new Error(`${ref} is not a commit in ${cwd}`);
|
|
46
|
+
let since = options.since;
|
|
47
|
+
let from = null;
|
|
48
|
+
if (since !== void 0) {
|
|
49
|
+
from = await commitOf(since);
|
|
50
|
+
if (!from) throw new Error(`${since} is not a commit in ${cwd}`);
|
|
51
|
+
} else {
|
|
52
|
+
const before = await describe(`${sha}^`);
|
|
53
|
+
if (before.code === 0) {
|
|
54
|
+
since = before.stdout.trim();
|
|
55
|
+
from = await commitOf(since);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
const ctx = await api(port, "GET", `/context?cwd=${q(cwd)}`).catch((err) => {
|
|
59
|
+
if (err instanceof ApiError && err.status < 500) return null;
|
|
60
|
+
throw err;
|
|
61
|
+
});
|
|
62
|
+
if (!ctx?.project) {
|
|
63
|
+
if (options.check) return { lines: [], code: 0 };
|
|
64
|
+
throw new Error(`${cwd} is not inside a registered project`);
|
|
65
|
+
}
|
|
66
|
+
const project = await api(port, "GET", `/projects/${q(ctx.project.id)}`);
|
|
67
|
+
const done = project.statuses.find((s) => s.kind === "done");
|
|
68
|
+
if (!done) throw new Error(`${project.name} has no done column`);
|
|
69
|
+
const log = await inRepo(["log", `--max-count=${MAX_COMMITS}`, "--format=%H%x1f%P%x1f%B%x1e", from ? `${from}..${sha}` : sha]);
|
|
70
|
+
if (log.code !== 0) throw new Error(`git log failed: ${(log.stderr || log.stdout).trim().split("\n")[0]}`);
|
|
71
|
+
const commits = log.stdout.split("").map((record) => record.replace(/^\n+/, "").split("")).filter((fields) => fields.length === 3 && fields[0]).map(([hash, parents, message]) => ({ sha: hash, merge: parents.trim().includes(" "), message }));
|
|
72
|
+
const board = await api(port, "GET", `/projects/${q(project.id)}/board?includeDone=true`);
|
|
73
|
+
const items = /* @__PURE__ */ new Map();
|
|
74
|
+
for (const column2 of board.columns) {
|
|
75
|
+
for (const item of column2.items) {
|
|
76
|
+
items.set(item.id, item);
|
|
77
|
+
if (item.key) items.set(item.key, item);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
const wanted = new Set(items.keys());
|
|
81
|
+
const finishing = /* @__PURE__ */ new Map();
|
|
82
|
+
const partOnly = /* @__PURE__ */ new Map();
|
|
83
|
+
const unnamed = [];
|
|
84
|
+
for (const commit of commits) {
|
|
85
|
+
if (UNDOING.test(commit.message)) continue;
|
|
86
|
+
const mentions = mentionsIn(commit.message, wanted);
|
|
87
|
+
if (mentions.size === 0) {
|
|
88
|
+
if (!commit.merge && !saysNoItem(commit.message)) unnamed.push(commit);
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
const plain = /* @__PURE__ */ new Map();
|
|
92
|
+
for (const [token, { partial }] of mentions) {
|
|
93
|
+
const id = items.get(token).id;
|
|
94
|
+
plain.set(id, (plain.get(id) ?? false) || !partial);
|
|
95
|
+
}
|
|
96
|
+
for (const [id, finishes] of plain) {
|
|
97
|
+
const item = items.get(id);
|
|
98
|
+
if (finishes && !finishing.has(id)) finishing.set(id, { item, sha: commit.sha });
|
|
99
|
+
else if (!finishes) partOnly.set(id, item);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
for (const id of finishing.keys()) partOnly.delete(id);
|
|
103
|
+
const kind = (item) => project.statuses.find((s) => s.key === item.status)?.kind;
|
|
104
|
+
const column = (item) => project.statuses.find((s) => s.key === item.status)?.label ?? item.status;
|
|
105
|
+
const pending = [...finishing.values()].filter(({ item }) => kind(item) !== "done");
|
|
106
|
+
const already = finishing.size - pending.length;
|
|
107
|
+
const range = `${ref} (${plural(commits.length, "commit")}${since ? ` since ${since}` : ""})`;
|
|
108
|
+
if (options.check) {
|
|
109
|
+
if (pending.length === 0) return { lines: [`${range} in ${project.name}: nothing left to move to ${done.label}`], code: 0 };
|
|
110
|
+
return {
|
|
111
|
+
lines: [
|
|
112
|
+
`${ref} names ${plural(pending.length, "item")} of ${project.name} not in ${done.label}:`,
|
|
113
|
+
...pending.map(({ item }) => ` ${label(item).padEnd(9)} ${item.title} [${column(item)}]`),
|
|
114
|
+
`when ${ref} is out: slate shipped ${ref}`
|
|
115
|
+
],
|
|
116
|
+
code: SHIPPED_PENDING
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
const lines = [`${range} in ${project.name}`];
|
|
120
|
+
let moved = 0;
|
|
121
|
+
let failed = 0;
|
|
122
|
+
for (const { item, sha: commit } of pending) {
|
|
123
|
+
if (options.dryRun) {
|
|
124
|
+
lines.push(` would move ${label(item).padEnd(9)} ${item.title} (${short(commit)})`);
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
try {
|
|
128
|
+
await api(port, "POST", `/items/${q(item.id)}/move`, { status: done.key, commit, expectedRevision: item.revision });
|
|
129
|
+
moved += 1;
|
|
130
|
+
lines.push(` done ${label(item).padEnd(9)} ${item.title} (${short(commit)})`);
|
|
131
|
+
} catch (err) {
|
|
132
|
+
failed += 1;
|
|
133
|
+
lines.push(` failed ${label(item).padEnd(9)} ${item.title}: ${err instanceof Error ? err.message : String(err)}`);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
for (const item of partOnly.values()) {
|
|
137
|
+
if (kind(item) !== "done") lines.push(` part ${label(item).padEnd(9)} ${item.title} [${column(item)}]`);
|
|
138
|
+
}
|
|
139
|
+
for (const commit of unnamed) lines.push(` no item ${short(commit.sha)} ${subject(commit.message)}`);
|
|
140
|
+
const counts = [
|
|
141
|
+
options.dryRun ? `${pending.length} to move to ${done.label}` : `${moved} moved to ${done.label}`,
|
|
142
|
+
`${already} already there`,
|
|
143
|
+
...failed ? [`${failed} failed`] : [],
|
|
144
|
+
...unnamed.length ? [`${plural(unnamed.length, "commit")} ${unnamed.length === 1 ? "names" : "name"} no item`] : []
|
|
145
|
+
];
|
|
146
|
+
lines.push(counts.join(", "));
|
|
147
|
+
return { lines, code: failed ? 1 : 0 };
|
|
148
|
+
}
|
|
149
|
+
export {
|
|
150
|
+
RELEASE_TAGS_KEY,
|
|
151
|
+
SHIPPED_PENDING,
|
|
152
|
+
shipped
|
|
153
|
+
};
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
+
ARCH_POLL_MS,
|
|
4
|
+
ARCH_TIMEOUT_MS,
|
|
3
5
|
DEFAULT_PORT,
|
|
4
6
|
HOST,
|
|
5
7
|
KEEP_BACKUPS,
|
|
6
8
|
VERSION,
|
|
7
9
|
acquireLock,
|
|
10
|
+
archOutcome,
|
|
8
11
|
backupDatabase,
|
|
9
12
|
backupFileName,
|
|
10
13
|
backupsDir,
|
|
11
14
|
clearUpgradeMarker,
|
|
15
|
+
cliArchRunner,
|
|
12
16
|
compareVersions,
|
|
13
17
|
createApp,
|
|
18
|
+
createArchAuto,
|
|
14
19
|
createUpdateChecker,
|
|
15
20
|
isAlive,
|
|
16
21
|
listBackups,
|
|
@@ -30,23 +35,28 @@ import {
|
|
|
30
35
|
upgradeMarkerPath,
|
|
31
36
|
writeUpdateCache,
|
|
32
37
|
writeUpgradeMarker
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-WXM4BB4D.js";
|
|
38
|
+
} from "./chunk-6CR2V7P7.js";
|
|
35
39
|
import "./chunk-GD6AEWOM.js";
|
|
40
|
+
import "./chunk-OJOVDYIZ.js";
|
|
36
41
|
import "./chunk-WKKEXOKW.js";
|
|
37
42
|
import "./chunk-KPOE4I3O.js";
|
|
38
43
|
export {
|
|
44
|
+
ARCH_POLL_MS,
|
|
45
|
+
ARCH_TIMEOUT_MS,
|
|
39
46
|
DEFAULT_PORT,
|
|
40
47
|
HOST,
|
|
41
48
|
KEEP_BACKUPS,
|
|
42
49
|
VERSION,
|
|
43
50
|
acquireLock,
|
|
51
|
+
archOutcome,
|
|
44
52
|
backupDatabase,
|
|
45
53
|
backupFileName,
|
|
46
54
|
backupsDir,
|
|
47
55
|
clearUpgradeMarker,
|
|
56
|
+
cliArchRunner,
|
|
48
57
|
compareVersions,
|
|
49
58
|
createApp,
|
|
59
|
+
createArchAuto,
|
|
50
60
|
createUpdateChecker,
|
|
51
61
|
isAlive,
|
|
52
62
|
listBackups,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createRequire as __createRequire } from "node:module"; const require = __createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
+
ARCHITECTURE_DIR,
|
|
3
4
|
BOARD_FORMAT_VERSION,
|
|
4
5
|
DEFAULT_CLAIM_MINUTES,
|
|
5
6
|
DEFAULT_COMMIT_SCAN,
|
|
@@ -9,16 +10,21 @@ import {
|
|
|
9
10
|
ERROR_CODES,
|
|
10
11
|
EventBus,
|
|
11
12
|
GIT_CACHE_TTL_MS,
|
|
13
|
+
KEY_TOKEN,
|
|
14
|
+
MAX_ARCHITECTURE_VIEWS,
|
|
15
|
+
MAX_CHANGED_FILES,
|
|
12
16
|
MAX_LIST_LIMIT,
|
|
13
17
|
MAX_REF_BYTES,
|
|
14
18
|
MAX_TODOS,
|
|
15
19
|
MAX_TODO_FILES,
|
|
16
20
|
MAX_TODO_FILE_BYTES,
|
|
21
|
+
MAX_TOUCH_PATHS,
|
|
17
22
|
MAX_WORKSPACE_REPOS,
|
|
18
23
|
PROJECT_KEY,
|
|
19
24
|
SlateError,
|
|
20
25
|
Store,
|
|
21
26
|
ancestors,
|
|
27
|
+
changedFiles,
|
|
22
28
|
claimantSchema,
|
|
23
29
|
clearGitCache,
|
|
24
30
|
commitShaSchema,
|
|
@@ -28,6 +34,7 @@ import {
|
|
|
28
34
|
expandHome,
|
|
29
35
|
findCommitsMentioning,
|
|
30
36
|
findTodos,
|
|
37
|
+
headCommit,
|
|
31
38
|
idSchema,
|
|
32
39
|
invalid,
|
|
33
40
|
isInside,
|
|
@@ -45,10 +52,12 @@ import {
|
|
|
45
52
|
itemReleaseSchema,
|
|
46
53
|
itemUpdateSchema,
|
|
47
54
|
keyFromBranch,
|
|
55
|
+
keyTokens,
|
|
48
56
|
lineSuffix,
|
|
49
57
|
linkKindSchema,
|
|
50
58
|
linkSchema,
|
|
51
59
|
loadMigrations,
|
|
60
|
+
mentionsIn,
|
|
52
61
|
milestoneSchema,
|
|
53
62
|
nameSchema,
|
|
54
63
|
normalizePath,
|
|
@@ -71,6 +80,7 @@ import {
|
|
|
71
80
|
resolveCommit,
|
|
72
81
|
resolveItemId,
|
|
73
82
|
resolveSchema,
|
|
83
|
+
saysNoItem,
|
|
74
84
|
setStatusesSchema,
|
|
75
85
|
slateHome,
|
|
76
86
|
splitFileTarget,
|
|
@@ -84,10 +94,11 @@ import {
|
|
|
84
94
|
workspaceCreateSchema,
|
|
85
95
|
workspaceUpdateSchema,
|
|
86
96
|
worktreeMainRepo
|
|
87
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-OJOVDYIZ.js";
|
|
88
98
|
import "./chunk-WKKEXOKW.js";
|
|
89
99
|
import "./chunk-KPOE4I3O.js";
|
|
90
100
|
export {
|
|
101
|
+
ARCHITECTURE_DIR,
|
|
91
102
|
BOARD_FORMAT_VERSION,
|
|
92
103
|
DEFAULT_CLAIM_MINUTES,
|
|
93
104
|
DEFAULT_COMMIT_SCAN,
|
|
@@ -97,16 +108,21 @@ export {
|
|
|
97
108
|
ERROR_CODES,
|
|
98
109
|
EventBus,
|
|
99
110
|
GIT_CACHE_TTL_MS,
|
|
111
|
+
KEY_TOKEN,
|
|
112
|
+
MAX_ARCHITECTURE_VIEWS,
|
|
113
|
+
MAX_CHANGED_FILES,
|
|
100
114
|
MAX_LIST_LIMIT,
|
|
101
115
|
MAX_REF_BYTES,
|
|
102
116
|
MAX_TODOS,
|
|
103
117
|
MAX_TODO_FILES,
|
|
104
118
|
MAX_TODO_FILE_BYTES,
|
|
119
|
+
MAX_TOUCH_PATHS,
|
|
105
120
|
MAX_WORKSPACE_REPOS,
|
|
106
121
|
PROJECT_KEY,
|
|
107
122
|
SlateError,
|
|
108
123
|
Store,
|
|
109
124
|
ancestors,
|
|
125
|
+
changedFiles,
|
|
110
126
|
claimantSchema,
|
|
111
127
|
clearGitCache,
|
|
112
128
|
commitShaSchema,
|
|
@@ -116,6 +132,7 @@ export {
|
|
|
116
132
|
expandHome,
|
|
117
133
|
findCommitsMentioning,
|
|
118
134
|
findTodos,
|
|
135
|
+
headCommit,
|
|
119
136
|
idSchema,
|
|
120
137
|
invalid,
|
|
121
138
|
isInside,
|
|
@@ -133,10 +150,12 @@ export {
|
|
|
133
150
|
itemReleaseSchema,
|
|
134
151
|
itemUpdateSchema,
|
|
135
152
|
keyFromBranch,
|
|
153
|
+
keyTokens,
|
|
136
154
|
lineSuffix,
|
|
137
155
|
linkKindSchema,
|
|
138
156
|
linkSchema,
|
|
139
157
|
loadMigrations,
|
|
158
|
+
mentionsIn,
|
|
140
159
|
milestoneSchema,
|
|
141
160
|
nameSchema,
|
|
142
161
|
normalizePath,
|
|
@@ -159,6 +178,7 @@ export {
|
|
|
159
178
|
resolveCommit,
|
|
160
179
|
resolveItemId,
|
|
161
180
|
resolveSchema,
|
|
181
|
+
saysNoItem,
|
|
162
182
|
setStatusesSchema,
|
|
163
183
|
slateHome,
|
|
164
184
|
splitFileTarget,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as e,t}from"./mermaid-parser.core-0pE4JCc_.js";import{n}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{n as r}from"./d3-selection-BFzs9NTX.js";import"./chunk-QDWOWVBQ-Du0KmhW4.js";import{n as i,r as a,t as o}from"./chunk-7U7NFRK5-CSOOpKZT.js";import{t as s}from"./chunk-JWPE2WC7-DVXcaiue.js";import"./mermaid.core-BVgUieVU.js";var c=e().RailroadAbnf.parser.LangiumParser,l=n(e=>{let t=e.alternatives.map(u);return t.length===1?t[0]:{type:`choice`,alternatives:t}},`transformAlternation`),u=n(e=>{let t=e.elements.map(f);return t.length===1?t[0]:{type:`sequence`,elements:t}},`transformConcatenation`),d=n(e=>{if(e.includes(`*`)){let[t,n]=e.split(`*`);return{min:t?parseInt(t,10):0,max:n?parseInt(n,10):1/0}}let t=parseInt(e,10);return{min:t,max:t}},`parseRepeat`),f=n(e=>{let t=p(e.primary);if(!e.repeat)return t;let{min:n,max:r}=d(e.repeat);return n===0&&r===1?{type:`optional`,element:t}:{type:`repetition`,element:t,min:n,max:r}},`transformElement`),p=n(e=>{switch(e.$type){case`AbnfStringLiteral`:return{type:`terminal`,value:e.value};case`AbnfNumVal`:return{type:`terminal`,value:e.value};case`AbnfRuleName`:return{type:`nonterminal`,name:e.name};case`AbnfGroup`:return l(e.element);case`AbnfOptionalGroup`:return{type:`optional`,element:l(e.element)};default:throw Error(`Unsupported ABNF primary node: ${e.$type}`)}},`transformPrimary`),m=n(e=>({name:e.name,definition:l(e.definition)}),`transformRule`),h=n(e=>{s(e,o),e.title&&o.setTitle(e.title),e.rules.map(e=>o.addRule(m(e)))},`populateDb`),g={parser:{parse:n(e=>{o.clear(),r.debug(`[ABNF Parser] Starting Langium parse`);let n=c.parse(e);if(n.lexerErrors.length>0||n.parserErrors.length>0)throw new t(n);let i=n.value;r.debug(`[ABNF Parser] Parsed rules:`,i.rules.length),h(i),r.debug(`[ABNF Parser] Parse complete`)},`parse`),parser:{yy:o}},db:o,renderer:a,styles:i};export{g as diagram};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-NGNAAXSQ-DqoPQk1a.js";import{M as e}from"./mermaid-parser.core-0pE4JCc_.js";export{e as createArchitectureServices};
|