@kensnzk/koyu 0.16.0 → 0.18.0
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.ja.md +12 -8
- package/README.md +13 -10
- package/dist/analysis/contracts.d.ts +217 -0
- package/dist/analysis/contracts.d.ts.map +1 -0
- package/dist/analysis/contracts.js +27 -0
- package/dist/analysis/contracts.js.map +1 -0
- package/dist/analysis/index.d.ts +5 -0
- package/dist/analysis/index.d.ts.map +1 -0
- package/dist/analysis/index.js +17 -0
- package/dist/analysis/index.js.map +1 -0
- package/dist/analysis/json.d.ts +21 -0
- package/dist/analysis/json.d.ts.map +1 -0
- package/dist/analysis/json.js +111 -0
- package/dist/analysis/json.js.map +1 -0
- package/dist/cli.js +106 -35
- package/dist/cli.js.map +1 -1
- package/dist/core/derive.d.ts +13 -8
- package/dist/core/derive.d.ts.map +1 -1
- package/dist/core/derive.js +19 -13
- package/dist/core/derive.js.map +1 -1
- package/dist/core/diagnose.d.ts +4 -3
- package/dist/core/diagnose.d.ts.map +1 -1
- package/dist/core/diagnose.js +46 -11
- package/dist/core/diagnose.js.map +1 -1
- package/dist/core/diff.d.ts +3 -2
- package/dist/core/diff.d.ts.map +1 -1
- package/dist/core/diff.js +8 -5
- package/dist/core/diff.js.map +1 -1
- package/dist/core/fabric.d.ts +1 -3
- package/dist/core/fabric.d.ts.map +1 -1
- package/dist/core/fabric.js +8 -8
- package/dist/core/fabric.js.map +1 -1
- package/dist/core/graph.d.ts +2 -2
- package/dist/core/graph.d.ts.map +1 -1
- package/dist/core/graph.js +12 -5
- package/dist/core/graph.js.map +1 -1
- package/dist/core/light.d.ts.map +1 -1
- package/dist/core/light.js +2 -2
- package/dist/core/light.js.map +1 -1
- package/dist/core/model.d.ts +59 -10
- package/dist/core/model.d.ts.map +1 -1
- package/dist/core/model.js +128 -26
- package/dist/core/model.js.map +1 -1
- package/dist/core/parse.d.ts.map +1 -1
- package/dist/core/parse.js +83 -82
- package/dist/core/parse.js.map +1 -1
- package/dist/core/poly.d.ts +0 -4
- package/dist/core/poly.d.ts.map +1 -1
- package/dist/core/poly.js +1 -5
- package/dist/core/poly.js.map +1 -1
- package/dist/core/site.d.ts +9 -0
- package/dist/core/site.d.ts.map +1 -1
- package/dist/core/site.js +8 -2
- package/dist/core/site.js.map +1 -1
- package/dist/core/tolerance.d.ts +1 -1
- package/dist/core/tolerance.js +2 -2
- package/dist/core/tolerance.js.map +1 -1
- package/dist/core/vertical.d.ts +9 -2
- package/dist/core/vertical.d.ts.map +1 -1
- package/dist/core/vertical.js +8 -1
- package/dist/core/vertical.js.map +1 -1
- package/dist/core/vocabulary.d.ts.map +1 -1
- package/dist/core/vocabulary.js +17 -5
- package/dist/core/vocabulary.js.map +1 -1
- package/dist/diagnostics.d.ts +2 -0
- package/dist/diagnostics.d.ts.map +1 -0
- package/dist/diagnostics.js +3 -0
- package/dist/diagnostics.js.map +1 -0
- package/dist/diff.d.ts +2 -0
- package/dist/diff.d.ts.map +1 -0
- package/dist/diff.js +3 -0
- package/dist/diff.js.map +1 -0
- package/dist/draw/index.js +1 -1
- package/dist/draw/index.js.map +1 -1
- package/dist/draw/plan.js +5 -5
- package/dist/draw/plan.js.map +1 -1
- package/dist/form.d.ts +5 -0
- package/dist/form.d.ts.map +1 -0
- package/dist/form.js +4 -0
- package/dist/form.js.map +1 -0
- package/dist/graph.d.ts +2 -0
- package/dist/graph.d.ts.map +1 -0
- package/dist/graph.js +3 -0
- package/dist/graph.js.map +1 -0
- package/dist/index.d.ts +2 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +36 -45
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +81 -30
- package/dist/mcp.js.map +1 -1
- package/dist/model.d.ts +3 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/model.js +3 -0
- package/dist/model.js.map +1 -0
- package/dist/parse-file.d.ts.map +1 -1
- package/dist/parse-file.js +18 -3
- package/dist/parse-file.js.map +1 -1
- package/dist/validate/assessment.d.ts +8 -0
- package/dist/validate/assessment.d.ts.map +1 -0
- package/dist/validate/assessment.js +1738 -0
- package/dist/validate/assessment.js.map +1 -0
- package/dist/validate/builtin/access.d.ts +55 -0
- package/dist/validate/builtin/access.d.ts.map +1 -0
- package/dist/validate/builtin/access.js +494 -0
- package/dist/validate/builtin/access.js.map +1 -0
- package/dist/validate/builtin/daylight.d.ts +44 -0
- package/dist/validate/builtin/daylight.d.ts.map +1 -0
- package/dist/validate/builtin/daylight.js +233 -0
- package/dist/validate/builtin/daylight.js.map +1 -0
- package/dist/validate/builtin/door-column-collisions.d.ts +47 -0
- package/dist/validate/builtin/door-column-collisions.d.ts.map +1 -0
- package/dist/validate/builtin/door-column-collisions.js +189 -0
- package/dist/validate/builtin/door-column-collisions.js.map +1 -0
- package/dist/validate/builtin/envelope.d.ts +30 -0
- package/dist/validate/builtin/envelope.d.ts.map +1 -0
- package/dist/validate/builtin/envelope.js +169 -0
- package/dist/validate/builtin/envelope.js.map +1 -0
- package/dist/validate/builtin/freeze.d.ts +3 -0
- package/dist/validate/builtin/freeze.d.ts.map +1 -0
- package/dist/validate/builtin/freeze.js +21 -0
- package/dist/validate/builtin/freeze.js.map +1 -0
- package/dist/validate/builtin/index.d.ts +38 -0
- package/dist/validate/builtin/index.d.ts.map +1 -0
- package/dist/validate/builtin/index.js +106 -0
- package/dist/validate/builtin/index.js.map +1 -0
- package/dist/validate/builtin/site.d.ts +62 -0
- package/dist/validate/builtin/site.d.ts.map +1 -0
- package/dist/validate/builtin/site.js +333 -0
- package/dist/validate/builtin/site.js.map +1 -0
- package/dist/validate/builtin/vertical-runs.d.ts +53 -0
- package/dist/validate/builtin/vertical-runs.d.ts.map +1 -0
- package/dist/validate/builtin/vertical-runs.js +290 -0
- package/dist/validate/builtin/vertical-runs.js.map +1 -0
- package/dist/validate/contracts.d.ts +188 -0
- package/dist/validate/contracts.d.ts.map +1 -0
- package/dist/validate/contracts.js +28 -0
- package/dist/validate/contracts.js.map +1 -0
- package/dist/validate/index.d.ts +2 -59
- package/dist/validate/index.d.ts.map +1 -1
- package/dist/validate/index.js +22 -70
- package/dist/validate/index.js.map +1 -1
- package/dist/vocabulary.d.ts +2 -0
- package/dist/vocabulary.d.ts.map +1 -0
- package/dist/vocabulary.js +3 -0
- package/dist/vocabulary.js.map +1 -0
- package/editors/vscode/syntaxes/koyu.tmLanguage.json +2 -2
- package/examples/basement/main.muro +3 -3
- package/examples/complex/main.muro +1 -1
- package/examples/complex/podium.muro +1 -1
- package/examples/complex/site.muro +6 -6
- package/examples/house/L2.muro +1 -1
- package/examples/house/main.muro +1 -1
- package/examples/house/site.muro +4 -4
- package/examples/house.muro +6 -6
- package/examples/mansion.muro +2 -2
- package/examples/office.muro +3 -3
- package/examples/steps/04-exterior.muro +1 -1
- package/examples/steps/05-two-storeys.muro +1 -1
- package/examples/steps/06-finished.muro +2 -2
- package/examples/tower/L2.muro +1 -1
- package/examples/tower/main.muro +1 -1
- package/examples/tower/site.muro +4 -4
- package/examples/twin/main.muro +1 -1
- package/examples/twin/podium.muro +4 -4
- package/examples/twin/site.muro +8 -8
- package/examples/two-rooms.canonical.json +4 -4
- package/examples/two-rooms.muro +2 -2
- package/package.json +41 -9
- package/src/analysis/contracts.ts +234 -0
- package/src/analysis/index.ts +61 -0
- package/src/analysis/json.ts +117 -0
- package/src/cli.ts +116 -36
- package/src/core/derive.ts +32 -15
- package/src/core/diagnose.ts +63 -16
- package/src/core/diff.ts +10 -6
- package/src/core/fabric.ts +18 -9
- package/src/core/graph.ts +19 -5
- package/src/core/light.ts +2 -2
- package/src/core/model.ts +141 -31
- package/src/core/parse.ts +100 -85
- package/src/core/poly.ts +1 -8
- package/src/core/site.ts +19 -2
- package/src/core/tolerance.ts +2 -2
- package/src/core/vertical.ts +10 -3
- package/src/core/vocabulary.ts +18 -5
- package/src/diagnostics.ts +8 -0
- package/src/diff.ts +14 -0
- package/src/draw/index.ts +1 -1
- package/src/draw/plan.ts +5 -5
- package/src/form.ts +37 -0
- package/src/graph.ts +12 -0
- package/src/index.ts +40 -175
- package/src/mcp.ts +85 -35
- package/src/model.ts +43 -0
- package/src/parse-file.ts +17 -3
- package/src/validate/assessment.ts +1934 -0
- package/src/validate/builtin/access.ts +642 -0
- package/src/validate/builtin/daylight.ts +321 -0
- package/src/validate/builtin/door-column-collisions.ts +266 -0
- package/src/validate/builtin/envelope.ts +227 -0
- package/src/validate/builtin/freeze.ts +19 -0
- package/src/validate/builtin/index.ts +156 -0
- package/src/validate/builtin/site.ts +445 -0
- package/src/validate/builtin/vertical-runs.ts +390 -0
- package/src/validate/contracts.ts +240 -0
- package/src/validate/index.ts +45 -99
- package/src/vocabulary.ts +9 -0
- package/dist/validate/access.d.ts +0 -6
- package/dist/validate/access.d.ts.map +0 -1
- package/dist/validate/access.js +0 -238
- package/dist/validate/access.js.map +0 -1
- package/dist/validate/envelope.d.ts +0 -4
- package/dist/validate/envelope.d.ts.map +0 -1
- package/dist/validate/envelope.js +0 -55
- package/dist/validate/envelope.js.map +0 -1
- package/dist/validate/light.d.ts +0 -6
- package/dist/validate/light.d.ts.map +0 -1
- package/dist/validate/light.js +0 -28
- package/dist/validate/light.js.map +0 -1
- package/dist/validate/runs.d.ts +0 -16
- package/dist/validate/runs.d.ts.map +0 -1
- package/dist/validate/runs.js +0 -60
- package/dist/validate/runs.js.map +0 -1
- package/dist/validate/site.d.ts +0 -6
- package/dist/validate/site.d.ts.map +0 -1
- package/dist/validate/site.js +0 -63
- package/dist/validate/site.js.map +0 -1
- package/spec/README.md +0 -28
- package/spec/canonical-json.md +0 -98
- package/spec/composition.md +0 -121
- package/spec/derivation.md +0 -393
- package/spec/en/README.md +0 -30
- package/spec/en/canonical-json.md +0 -101
- package/spec/en/composition.md +0 -121
- package/spec/en/derivation.md +0 -393
- package/spec/en/language.md +0 -164
- package/spec/en/notation-v0.md +0 -145
- package/spec/en/scope.md +0 -229
- package/spec/en/semantics.md +0 -132
- package/spec/en/tools.md +0 -108
- package/spec/en/validation.md +0 -79
- package/spec/en/vocabulary.md +0 -103
- package/spec/language.md +0 -163
- package/spec/notation-v0.md +0 -184
- package/spec/scope.md +0 -229
- package/spec/semantics.md +0 -130
- package/spec/tools.md +0 -106
- package/spec/validation.md +0 -79
- package/spec/vocabulary.md +0 -114
- package/src/validate/access.ts +0 -279
- package/src/validate/envelope.ts +0 -59
- package/src/validate/light.ts +0 -43
- package/src/validate/runs.ts +0 -87
- package/src/validate/site.ts +0 -84
package/dist/validate/index.js
CHANGED
|
@@ -1,77 +1,29 @@
|
|
|
1
|
-
// koyu —
|
|
1
|
+
// koyu — the validation surface (`@kensnzk/koyu/validate`)
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
3
|
+
// **This is not core.** core says "what is written is not self-contradictory as data" and stops
|
|
4
|
+
// there; whether the building works is a different question with a different answer, and this
|
|
5
|
+
// face is where it gets answered (docs/reference/scope.md).
|
|
6
6
|
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
7
|
+
// This face does not freeze. Rules may be coarse, a rule set may cover one jurisdiction or none,
|
|
8
|
+
// and the resolution may be too low — add freely, throw away freely. It is cheap because it
|
|
9
|
+
// does not freeze. One condition attaches to that freedom: **a judgement must never be mistaken
|
|
10
|
+
// for what core guarantees.** The two are different from the type up:
|
|
9
11
|
//
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
+
// core Diagnostic { code: "HGT01", severity: "error" | "warning" }
|
|
13
|
+
// validation RuleOutcome { status: "pass" | "fail" | "indeterminate" } inside an AssessmentReport
|
|
12
14
|
//
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
+
// Nothing here judges on its own. This module is the **SPI and the runner**: the caller composes
|
|
16
|
+
// an immutable registry of rules, rule sets and profiles, names one profile and one context, and
|
|
17
|
+
// gets back an `AssessmentReport`. There is no registration API, no process-global registry and
|
|
18
|
+
// no import-time side effect — a rule pack that is merely imported does nothing. koyu's own pack
|
|
19
|
+
// is one such value and gets no privileged path: see `@kensnzk/koyu/validate/builtin`.
|
|
15
20
|
//
|
|
16
|
-
//
|
|
17
|
-
//
|
|
21
|
+
// The report never collapses to a boolean or a bare array. "No finding" and "could not be
|
|
22
|
+
// judged" have to stay distinguishable, so the report keeps pass, fail, not-applicable,
|
|
23
|
+
// indeterminate and rule error apart, along with the identity of everything that was applied.
|
|
18
24
|
//
|
|
19
|
-
//
|
|
20
|
-
// (test/domains.test.ts
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
import { envelopeFindings } from "./envelope.js";
|
|
24
|
-
import { runFindings } from "./runs.js";
|
|
25
|
-
import { siteFindings } from "./site.js";
|
|
26
|
-
/**
|
|
27
|
-
* 判定の台帳。**綴りが core の診断コードと違う**のは事故を防ぐためである —
|
|
28
|
-
* `ENV01` と `envelope.gap` を取り違える読み手はいない。
|
|
29
|
-
*
|
|
30
|
-
* 章 (`envelope` / `daylight` / `stair` / `run` / `access` / `column` / `site`) は管轄ではなく
|
|
31
|
-
* 主題である。管轄が二つ目を持ったとき (日本の法規と別の国の法規) に章の下へ足す。
|
|
32
|
-
*/
|
|
33
|
-
export const VALIDATION_RULES = {
|
|
34
|
-
"envelope.gap": "caution", // 外皮に穴 — 何にも面していない外周 (ADR-0025)
|
|
35
|
-
"daylight.ratio": "violation", // 有効窓面積 < 床面積/7 (ADR-0020)
|
|
36
|
-
"daylight.unknown": "caution", // h を持たない窓があり、窓面積を数え切れていない
|
|
37
|
-
"stair.proportion": "caution", // 導出された段が窮屈 (踏面 <240 / 2R+T が 550〜700 の外)
|
|
38
|
-
"run.slope": "caution", // 導出された勾配が宣言より急・常用域の外
|
|
39
|
-
"run.disconnected": "caution", // 縦動線の形はあるが上下を繋ぐ垂直境界が無い
|
|
40
|
-
"access.unreachable": "violation", // 領域を持つ室から外部へ辿り着けない
|
|
41
|
-
"access.voidonly": "violation", // 扉が吹抜け (床の無い所) にしか開いていない
|
|
42
|
-
"access.throughtenant": "caution", // 階段室からの避難が賃貸区画を通る
|
|
43
|
-
"access.parking": "violation", // 駐車場から車が出られない
|
|
44
|
-
"access.backofhouse": "caution", // 共用廊下からバックヤードを通らずに縦動線へ届かない
|
|
45
|
-
"column.blocksdoor": "violation", // 導出された柱が導出された扉と重なる (ADR-0023)
|
|
46
|
-
"site.escape": "violation", // 建物が敷地形状からはみ出す
|
|
47
|
-
"site.area": "caution", // 敷地面積の宣言と導出の食い違い
|
|
48
|
-
"site.frontage": "violation", // 接道長が 2m 未満 (法43条の粗い写し)
|
|
49
|
-
};
|
|
50
|
-
/** Finding を組み立てる — level は規則の不変属性であって、場合によって変わらない */
|
|
51
|
-
export function finding(rule, message, at = {}) {
|
|
52
|
-
return {
|
|
53
|
-
rule,
|
|
54
|
-
level: VALIDATION_RULES[rule],
|
|
55
|
-
message,
|
|
56
|
-
...(at.line !== undefined ? { line: at.line } : {}),
|
|
57
|
-
...(at.line !== undefined && at.file !== undefined ? { file: at.file } : {}),
|
|
58
|
-
...(at.path ? { path: at.path } : {}),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* 全ての判定を回す。並びは章の順で、章の中は走査の順である
|
|
63
|
-
* (core の checkDiagnostics と同じ規律 — ADR-0028)。
|
|
64
|
-
*
|
|
65
|
-
* **合否は返さない。**返るのは「守られなかったこと」の列であって、
|
|
66
|
-
* 建物が使えるかどうかの結論ではない。
|
|
67
|
-
*/
|
|
68
|
-
export function validate(model) {
|
|
69
|
-
return [
|
|
70
|
-
...envelopeFindings(model),
|
|
71
|
-
...daylightFindings(model),
|
|
72
|
-
...runFindings(model),
|
|
73
|
-
...accessFindings(model),
|
|
74
|
-
...siteFindings(model),
|
|
75
|
-
];
|
|
76
|
-
}
|
|
25
|
+
// Dependency runs one way — validation reads core, core knows nothing of validation
|
|
26
|
+
// (test/domains.test.ts checks the imports by machine).
|
|
27
|
+
export { assess, createAssessmentRegistry } from "./assessment.js";
|
|
28
|
+
export { ASSESSMENT_FORMAT, AssessmentConfigError, } from "./contracts.js";
|
|
77
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validate/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validate/index.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,EAAE;AACF,gGAAgG;AAChG,8FAA8F;AAC9F,4DAA4D;AAC5D,EAAE;AACF,iGAAiG;AACjG,4FAA4F;AAC5F,gGAAgG;AAChG,sEAAsE;AACtE,EAAE;AACF,4EAA4E;AAC5E,qGAAqG;AACrG,EAAE;AACF,iGAAiG;AACjG,iGAAiG;AACjG,gGAAgG;AAChG,iGAAiG;AACjG,uFAAuF;AACvF,EAAE;AACF,0FAA0F;AAC1F,wFAAwF;AACxF,8FAA8F;AAC9F,EAAE;AACF,oFAAoF;AACpF,wDAAwD;AAExD,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEnE,OAAO,EACL,iBAAiB,EACjB,qBAAqB,GAqBtB,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocabulary.d.ts","sourceRoot":"","sources":["../src/vocabulary.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,QAAQ,GACd,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocabulary.js","sourceRoot":"","sources":["../src/vocabulary.ts"],"names":[],"mappings":"AAAA,wFAAwF;AAExF,OAAO,EACL,WAAW,EACX,QAAQ,EACR,YAAY,GAGb,MAAM,sBAAsB,CAAC"}
|
|
@@ -177,8 +177,8 @@
|
|
|
177
177
|
"captures": { "1": { "name": "entity.name.type.path.koyu" } }
|
|
178
178
|
},
|
|
179
179
|
"attr-ledger": {
|
|
180
|
-
"comment": "
|
|
181
|
-
"match": "\\b(underground|escalator|daylight|ceiling|landing|hinge|level|riser|slope|stair|style|swing|tread|pitch|entry|lane|lift|form|road|slab|site|area|turn|type|edge|
|
|
180
|
+
"comment": "The ledger keys that are not carrier-tier — the attributes the tools act on. ATTR_LEDGER in src/core/vocabulary.ts is the contract; free k:v gets a different colour",
|
|
181
|
+
"match": "\\b(underground|escalator|daylight|ceiling|landing|outside|hinge|level|riser|slope|stair|style|swing|tread|pitch|entry|lane|lift|form|road|slab|site|area|turn|type|edge|name|ramp|void|uid|air|use|at|h|w|t|d|x|y)(:)",
|
|
182
182
|
"captures": {
|
|
183
183
|
"1": { "name": "entity.other.attribute-name.koyu" },
|
|
184
184
|
"2": { "name": "punctuation.separator.key-value.koyu" }
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
# * 地下は level の underground:1 という宣言。zの負値からは推定しない (ADR-0022)。
|
|
12
12
|
# * 土に接する壁は spec 語彙 (spec:RC土圧壁)。境界の型は増やさない — 物の名は spec である。
|
|
13
13
|
|
|
14
|
-
koyu 1.
|
|
14
|
+
koyu 1.1
|
|
15
15
|
name 地下駐車場 — 縦動線の最小例
|
|
16
16
|
unit mm
|
|
17
17
|
|
|
@@ -48,8 +48,8 @@ boundary /B2..B1/st /B2..B1/mech t:250 spec:RC
|
|
|
48
48
|
boundary /B2..B1/ev /B2..B1/mech t:250 spec:RC
|
|
49
49
|
|
|
50
50
|
# 外周は土。物の名は spec 語彙が運ぶ (境界の型を増やさない)
|
|
51
|
-
space /out
|
|
52
|
-
space /road
|
|
51
|
+
space /out name:外部 outside:1
|
|
52
|
+
space /road road:12000 name:前面道路 outside:1
|
|
53
53
|
|
|
54
54
|
boundary /B2..B1/park /out edge:W t:500 spec:RC土圧壁
|
|
55
55
|
boundary /B2..B1/park /out edge:S t:500 spec:RC土圧壁
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
# 吹抜けは**床の不在**である。区画の扉を吹抜けに開くと、そこは床の無い所なので出られない。
|
|
14
14
|
# 西列の区画は回廊に面させ、回廊がモールへ回り込む — 吹抜けの縁は手すりになる
|
|
15
15
|
space /L2..L5/wgal corridor X2..X2+2400 Y1..Y6 + X2+2400..X3 Y2..Y2+3600 name:西回廊 use:common floor:石張り
|
|
16
|
-
space /L2..L5/atrium
|
|
16
|
+
space /L2..L5/atrium X2+2400..X3 Y1..Y2 + X2+2400..X3 Y2+3600..Y4 + X2+5600..X3 Y4..Y4+12000 + X2+2400..X3 Y4+12000..Y6 name:吹抜け void:1
|
|
17
17
|
space /L2..L5/mall corridor X3..X8 Y2..Y2+3600 name:モール use:common floor:石張り
|
|
18
18
|
space /L2..L5/north backyard X4..X7 Y5..Y6 name:北側サービス use:common
|
|
19
19
|
space /L2..L5/bohW backyard X3..X4 Y4-3200..Y6 name:バックヤード西 use:common
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
zone /site name:敷地 site:1
|
|
7
7
|
polygon /site -6000,-8000 26000,-8000 34000,-11000 64000,-11000 68000,-5000 68000,22000 60000,34000 44000,48000 6000,48000 -6000,28000
|
|
8
8
|
|
|
9
|
-
space /out
|
|
10
|
-
space /road-s
|
|
11
|
-
space /road-e
|
|
12
|
-
space /site/walk
|
|
13
|
-
space /site/plaza
|
|
14
|
-
space /site/east
|
|
9
|
+
space /out name:外部 outside:1
|
|
10
|
+
space /road-s road:22000 name:南側道路 outside:1
|
|
11
|
+
space /road-e road:16000 name:東側道路 outside:1
|
|
12
|
+
space /site/walk X1..X8 Y1-6000..Y1 level:L1 name:歩道状空地 outside:1
|
|
13
|
+
space /site/plaza X1-4000..X1 Y1..Y6 level:L1 name:西側広場 outside:1
|
|
14
|
+
space /site/east X8..X8+6000 Y1..Y6 level:L1 name:東側歩道状空地 outside:1
|
|
15
15
|
|
|
16
16
|
# 接道は「敷地と道路が接する長さ」— 建物の外壁が道路に面していても接道ではない
|
|
17
17
|
boundary /site/walk /road-s edge:S type:open
|
package/examples/house/L2.muro
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# 2階の層 — 上階の外壁は方角別のexteriorに面する。
|
|
2
2
|
|
|
3
3
|
space /home/bed1 bedroom X1..X2 Y1..Y3 level:L2 name:主寝室 daylight:1
|
|
4
|
-
space /home/void
|
|
4
|
+
space /home/void X2..X3 Y1..Y2 level:L2 name:リビング上部 void:1
|
|
5
5
|
space /home/hall2 hall X2..X3 Y2..Y3 level:L2 name:2階ホール
|
|
6
6
|
|
|
7
7
|
boundary /home/bed1 /out/road edge:S t:150 spec:EW
|
package/examples/house/main.muro
CHANGED
package/examples/house/site.muro
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
# /out は方角・性格ごとの複数のexterior空間に割れ (道路は road:幅員)、
|
|
3
3
|
# 地上の外部空間 (庭) はL1上の実在の空間として建物の周りをタイルする。
|
|
4
4
|
|
|
5
|
-
space /out/road
|
|
6
|
-
space /out/n
|
|
7
|
-
space /out/e
|
|
8
|
-
space /out/w
|
|
5
|
+
space /out/road name:南側道路 road:6000 outside:1
|
|
6
|
+
space /out/n name:北側隣地 outside:1
|
|
7
|
+
space /out/e name:東側隣地 outside:1
|
|
8
|
+
space /out/w name:西側隣地 outside:1
|
|
9
9
|
|
|
10
10
|
zone /site name:敷地 site:1 area:126.24
|
|
11
11
|
space /site/garden garden X1-1500..X3+1500 Y1-4000..Y1 level:L1 name:南庭
|
package/examples/house.muro
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
# 敷地 = zone site:1 (宣言面積と導出面積を site コマンドが突き合わせる)。
|
|
8
8
|
# L1の平面図はそのまま配置図兼用になる。
|
|
9
9
|
|
|
10
|
-
koyu 1.
|
|
10
|
+
koyu 1.1
|
|
11
11
|
name 小さな戸建住宅
|
|
12
12
|
unit mm
|
|
13
13
|
|
|
@@ -19,10 +19,10 @@ level L2 2900 h:2400 slab:500
|
|
|
19
19
|
level R 5800 slab:500
|
|
20
20
|
|
|
21
21
|
# ---- 外部 (敷地の外) — 方角・性格ごとに割る ----
|
|
22
|
-
space /out/road
|
|
23
|
-
space /out/n
|
|
24
|
-
space /out/e
|
|
25
|
-
space /out/w
|
|
22
|
+
space /out/road name:南側道路 road:6000 outside:1
|
|
23
|
+
space /out/n name:北側隣地 outside:1
|
|
24
|
+
space /out/e name:東側隣地 outside:1
|
|
25
|
+
space /out/w name:西側隣地 outside:1
|
|
26
26
|
|
|
27
27
|
# ---- 敷地 — 地上の外部空間が建物の周りをタイルする ----
|
|
28
28
|
zone /site name:敷地 site:1 area:126.24
|
|
@@ -36,7 +36,7 @@ zone /home name:住戸 use:exclusive
|
|
|
36
36
|
space /home/ldk ldk X1..X2 Y1..Y3 + X2..X3 Y1..Y2 level:L1 name:LDK floor:オーク daylight:1
|
|
37
37
|
space /home/hall1 hall X2..X3 Y2..Y3 level:L1 name:玄関・階段
|
|
38
38
|
space /home/bed1 bedroom X1..X2 Y1..Y3 level:L2 name:主寝室 daylight:1
|
|
39
|
-
space /home/void
|
|
39
|
+
space /home/void X2..X3 Y1..Y2 level:L2 name:リビング上部 void:1
|
|
40
40
|
space /home/hall2 hall X2..X3 Y2..Y3 level:L2 name:2階ホール
|
|
41
41
|
|
|
42
42
|
# ---- 1階: 室と庭の境界 (実在の矩形同士 — 線分は正確に導出される) ----
|
package/examples/mansion.muro
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# 外部に対し open または air:1 (手すり等、遮蔽しない物) の境界を持つ空間として導出される)。
|
|
5
5
|
# 基準階は一度だけ書く — /L2..L9/ のスパンが8フロアに展開される。
|
|
6
6
|
|
|
7
|
-
koyu 1.
|
|
7
|
+
koyu 1.1
|
|
8
8
|
name 内廊下型集合住宅
|
|
9
9
|
unit mm
|
|
10
10
|
|
|
@@ -17,7 +17,7 @@ level L3..L9 6700 pitch:2900 h:2400 slab:500
|
|
|
17
17
|
level L10 27000 h:2600 slab:500 # ペントハウスは天井高2600
|
|
18
18
|
level R 30200 slab:600 # 屋上 (陸屋根)。L10の上限を与える
|
|
19
19
|
|
|
20
|
-
space /out
|
|
20
|
+
space /out name:外部 outside:1
|
|
21
21
|
|
|
22
22
|
# ============ 1階 — 共用部・機械室 ============
|
|
23
23
|
space /L1/hall hall X1..X2 Y1..Y3 name:エントランスホール use:common floor:タイル
|
package/examples/office.muro
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# 基本計画の解像度で書く。垂れ壁や建具詳細は表現しない — 省略ではなく抽象度の選択。
|
|
3
3
|
# 高さの一貫性は level の宣言 (z / h / slab) と check の不変量が担保する。
|
|
4
4
|
|
|
5
|
-
koyu 1.
|
|
5
|
+
koyu 1.1
|
|
6
6
|
name 小さなオフィス
|
|
7
7
|
unit mm
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ level L1 0 h:2700 slab:600
|
|
|
13
13
|
level L2 4000 h:2700 slab:1300
|
|
14
14
|
level R 8000 slab:1300 # 屋根面。L2の空間の上限を与える
|
|
15
15
|
|
|
16
|
-
space /out
|
|
16
|
+
space /out name:外部 outside:1
|
|
17
17
|
|
|
18
18
|
# ---- 1階: エントランス+事務室、北側にコア ----
|
|
19
19
|
space /L1/hall hall X1..X2 Y1..Y2 name:エントランスホール use:common floor:フローリング h:6700 # 吹抜けで2層分
|
|
@@ -62,7 +62,7 @@ boundary /L1/wc-w /out t:180 spec:EW1
|
|
|
62
62
|
boundary /L1/machine /out t:180 spec:EW1
|
|
63
63
|
|
|
64
64
|
# ---- 2階: 会議室+執務室 (南の廊下芯Y2を跨いで広がる)、コアは1階と同位置 ----
|
|
65
|
-
space /L2/void
|
|
65
|
+
space /L2/void X1..X2 Y1..Y2 name:エントランス吹抜け void:1
|
|
66
66
|
space /L2/office office X2..X4 Y1..Y3 name:執務室 use:rentable floor:タイルカーペット
|
|
67
67
|
area X3+3200..X4 Y1..Y1+3200 name:リフレッシュコーナー floor:フローリング
|
|
68
68
|
space /L2/corridor corridor X1..X2 Y2..Y3 name:廊下 use:common
|
|
@@ -7,7 +7,7 @@ space /L1/ldk ldk X1..X2 Y1..Y2 daylight:1
|
|
|
7
7
|
space /L1/hall hall X2..X3 Y1..Y2
|
|
8
8
|
space /L2/bed bedroom X1..X2 Y1..Y2 daylight:1
|
|
9
9
|
space /L2/hall hall X2..X3 Y1..Y2
|
|
10
|
-
space /out
|
|
10
|
+
space /out outside:1
|
|
11
11
|
|
|
12
12
|
boundary /L1/ldk /L1/hall t:120
|
|
13
13
|
door w:800 h:2000
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
koyu 1.
|
|
1
|
+
koyu 1.1
|
|
2
2
|
name 小さな家
|
|
3
3
|
|
|
4
4
|
grid X 0 3600 5400
|
|
@@ -10,7 +10,7 @@ space /L1/ldk ldk X1..X2 Y1..Y2 name:LDK floor:オーク daylight:1
|
|
|
10
10
|
space /L1/hall hall X2..X3 Y1..Y2 name:玄関ホール floor:タイル
|
|
11
11
|
space /L2/bed bedroom X1..X2 Y1..Y2 name:寝室 floor:オーク daylight:1
|
|
12
12
|
space /L2/hall hall X2..X3 Y1..Y2 name:階段ホール
|
|
13
|
-
space /out
|
|
13
|
+
space /out name:外部 outside:1
|
|
14
14
|
|
|
15
15
|
boundary /L1/ldk /L1/hall t:120 spec:PW1
|
|
16
16
|
door w:800 h:2000 name:LDK扉
|
package/examples/tower/L2.muro
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
space /L2/s3 shop X1..X3 Y1-4600..Y2 name:クリニック use:rentable
|
|
5
5
|
space /L2/s4 shop X3..X5 Y1-4600..Y2 name:フィットネス use:rentable
|
|
6
|
-
space /L2/void
|
|
6
|
+
space /L2/void X5..X6 Y1-4600..Y2 name:ホール吹抜け void:1
|
|
7
7
|
space /L2/corridor corridor X1..X6 Y2..Y3 + X4..X4+3200 Y3..Y3+3200 name:共用廊下 use:common
|
|
8
8
|
space /L2/st2 stair X1..X1+3200 Y3..Y4 name:西階段 use:common
|
|
9
9
|
space /L2/stor service X1+3200..X2+3200 Y3..Y4 name:テナント倉庫 use:rentable
|
package/examples/tower/main.muro
CHANGED
package/examples/tower/site.muro
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
# 角地: 南12m道路+東6m道路。地上の外部空間は建物の周りをタイルする実在の空間。
|
|
3
3
|
# タイルは矩形の近似 — 面積の真は敷地形状 (site-geometry.muro のpolygon) が持つ。
|
|
4
4
|
|
|
5
|
-
space /out/road-s
|
|
6
|
-
space /out/road-e
|
|
7
|
-
space /out/n
|
|
8
|
-
space /out/w
|
|
5
|
+
space /out/road-s name:南側道路 road:12000 outside:1
|
|
6
|
+
space /out/road-e name:東側道路 road:6000 outside:1
|
|
7
|
+
space /out/n name:北側隣地 outside:1
|
|
8
|
+
space /out/w name:西側隣地 outside:1
|
|
9
9
|
|
|
10
10
|
zone /site name:敷地 site:1 area:1097.80
|
|
11
11
|
|
package/examples/twin/main.muro
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
# 縁は手すり (air:1) — 床の無い所に扉は開かない。
|
|
9
9
|
|
|
10
10
|
# ---- 吹抜けとエスカレーター (L2〜L4 で共有) ----
|
|
11
|
-
space /L2/avoid
|
|
12
|
-
space /L3/avoid
|
|
11
|
+
space /L2/avoid X12+3200..X13 Y5..Y11 + X12..X12+3200 Y5..Y6+5600 + X12..X12+3200 Y8+3600..Y11 name:吹抜け void:1
|
|
12
|
+
space /L3/avoid X12+3200..X13 Y5..Y11 + X12..X12+3200 Y5..Y7 + X12..X12+3200 Y8+3600..Y11 name:吹抜け void:1
|
|
13
13
|
# L4 の吹抜けは基壇のセットバックに合わせて短い — 段々は吹抜けにも及ぶ
|
|
14
|
-
space /L4/avoid
|
|
14
|
+
space /L4/avoid X12+3200..X13 Y6..Y10 + X12..X12+3200 Y6..Y7 + X12..X12+3200 Y8+3600..Y10 name:吹抜け void:1
|
|
15
15
|
space /L2..L4/es2 escalator X12..X12+3200 Y7..Y7+12000 name:エスカレーター use:common escalator:N
|
|
16
16
|
space /L2/es1 corridor X12..X12+3200 Y6+5600..Y7 name:エスカレーター乗降 use:common
|
|
17
17
|
boundary /L1/atrium /L2/avoid type:void
|
|
@@ -30,7 +30,7 @@ space /L2/s04 shop X14..X19 Y4..Y5 name:南区画03 use:rentable
|
|
|
30
30
|
space /L2/mallSw corridor X2..X11 Y5..Y6 name:南モール西 use:common floor:石張り
|
|
31
31
|
space /L2/mallSe corridor X14..X19 Y5..Y6 name:南モール東 use:common floor:石張り
|
|
32
32
|
# 西の1スパン (X2..X3) はエントランス吹抜け — 1階の大開口の上をガラスが2層で立つ
|
|
33
|
-
space /L2/alvoid
|
|
33
|
+
space /L2/alvoid X2..X3 Y7..Y9 name:エントランス吹抜け void:1
|
|
34
34
|
space /L2/es4 corridor X2..X3 Y6..Y7 name:下りエスカレーター乗り場 use:common
|
|
35
35
|
space /L2/es3 corridor X2..X3 Y9..Y10 name:上りエスカレーター降り場 use:common
|
|
36
36
|
space /L2/w01 corridor X3..X4 Y6..Y7 name:西通路南 use:common
|
package/examples/twin/site.muro
CHANGED
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
# この規模の容積を積む再開発は、公開空地が制度の裏づけになる (総合設計・都市再生特区)。
|
|
5
5
|
# 基壇の四隅の斜めは、この敷地の辺の振れをそのまま建物に写した隅切りである。
|
|
6
6
|
|
|
7
|
-
space /out
|
|
7
|
+
space /out name:外部 outside:1
|
|
8
8
|
|
|
9
9
|
zone /site name:敷地 site:1 area:23167.40
|
|
10
10
|
|
|
11
11
|
polygon /site 0,24000 14000,6000 46000,0 92000,3000 126000,0 158000,9000 168000,38000 164000,80000 168000,118000 152000,144000 104000,151200 58000,149000 16000,142000 0,100000
|
|
12
12
|
|
|
13
|
-
space /road-s
|
|
14
|
-
space /road-e
|
|
15
|
-
space /road-n
|
|
13
|
+
space /road-s X1..X21 Y1-22000..Y1 level:L1 name:南側道路 road:25000 outside:1
|
|
14
|
+
space /road-e X21..X21+18000 Y1..Y19 level:L1 name:東側道路 road:18000 outside:1
|
|
15
|
+
space /road-n X1..X21 Y19..Y19+16000 level:L1 name:北側道路 road:16000 outside:1
|
|
16
16
|
|
|
17
17
|
# 外構。北の大きな広場が公開空地の主体
|
|
18
|
-
space /site/plazaS
|
|
19
|
-
space /site/plazaE
|
|
20
|
-
space /site/plazaW
|
|
21
|
-
space /site/green
|
|
18
|
+
space /site/plazaS X2..X19 Y1..Y4 level:L1 name:南側広場 outside:1
|
|
19
|
+
space /site/plazaE X19..X21 Y1..Y12 level:L1 name:東側広場 outside:1
|
|
20
|
+
space /site/plazaW X1..X2 Y1..Y12 level:L1 name:西側広場 outside:1
|
|
21
|
+
space /site/green X1..X21 Y12..Y19 level:L1 name:北側広場・緑地 outside:1
|
|
22
22
|
|
|
23
23
|
boundary /site/plazaS /road-s type:open
|
|
24
24
|
boundary /site/plazaE /road-e type:open
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"format": "koyu-canonical/1.
|
|
3
|
-
"koyu": "1.
|
|
2
|
+
"format": "koyu-canonical/1.1",
|
|
3
|
+
"koyu": "1.1",
|
|
4
4
|
"name": "二室",
|
|
5
5
|
"unit": "mm",
|
|
6
6
|
"grid": {
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
"/out": {
|
|
52
|
-
"type": "exterior",
|
|
53
52
|
"attrs": {
|
|
54
|
-
"name": "外部"
|
|
53
|
+
"name": "外部",
|
|
54
|
+
"outside": 1
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
},
|
package/examples/two-rooms.muro
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# 書いてあるのは、扉を吊るために宣言した境界と、外皮の境界だけ。
|
|
5
5
|
# 両室に daylight:1 を書いたので、窓が要る — `koyu light` が 1/7 を確かめる (ADR-0020)。
|
|
6
6
|
|
|
7
|
-
koyu 1.
|
|
7
|
+
koyu 1.1
|
|
8
8
|
name 二室
|
|
9
9
|
unit mm
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ level L1 0 h:2400 slab:150
|
|
|
14
14
|
|
|
15
15
|
space /L1/a room X1..X2 Y1..Y2 name:居室A daylight:1
|
|
16
16
|
space /L1/b room X2..X3 Y1..Y2 name:居室B daylight:1
|
|
17
|
-
space /out
|
|
17
|
+
space /out name:外部 outside:1
|
|
18
18
|
|
|
19
19
|
boundary /L1/a /L1/b t:120 spec:PW1
|
|
20
20
|
door w:780 h:2000
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kensnzk/koyu",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "空間を一次要素とするテキストネイティブ建築記述の探求 — writing architecture, not buildings",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -10,22 +10,53 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"default": "./dist/index.js"
|
|
12
12
|
},
|
|
13
|
+
"./model": {
|
|
14
|
+
"types": "./dist/model.d.ts",
|
|
15
|
+
"default": "./dist/model.js"
|
|
16
|
+
},
|
|
17
|
+
"./diagnostics": {
|
|
18
|
+
"types": "./dist/diagnostics.d.ts",
|
|
19
|
+
"default": "./dist/diagnostics.js"
|
|
20
|
+
},
|
|
21
|
+
"./graph": {
|
|
22
|
+
"types": "./dist/graph.d.ts",
|
|
23
|
+
"default": "./dist/graph.js"
|
|
24
|
+
},
|
|
25
|
+
"./form": {
|
|
26
|
+
"types": "./dist/form.d.ts",
|
|
27
|
+
"default": "./dist/form.js"
|
|
28
|
+
},
|
|
29
|
+
"./analysis": {
|
|
30
|
+
"types": "./dist/analysis/index.d.ts",
|
|
31
|
+
"default": "./dist/analysis/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./diff": {
|
|
34
|
+
"types": "./dist/diff.d.ts",
|
|
35
|
+
"default": "./dist/diff.js"
|
|
36
|
+
},
|
|
37
|
+
"./vocabulary": {
|
|
38
|
+
"types": "./dist/vocabulary.d.ts",
|
|
39
|
+
"default": "./dist/vocabulary.js"
|
|
40
|
+
},
|
|
13
41
|
"./validate": {
|
|
14
42
|
"types": "./dist/validate/index.d.ts",
|
|
15
43
|
"default": "./dist/validate/index.js"
|
|
16
44
|
},
|
|
45
|
+
"./validate/builtin": {
|
|
46
|
+
"types": "./dist/validate/builtin/index.d.ts",
|
|
47
|
+
"default": "./dist/validate/builtin/index.js"
|
|
48
|
+
},
|
|
17
49
|
"./draw": {
|
|
18
50
|
"types": "./dist/draw/index.d.ts",
|
|
19
51
|
"default": "./dist/draw/index.js"
|
|
20
52
|
},
|
|
21
|
-
"./examples/*": "./examples/*",
|
|
22
|
-
"./spec/*": "./spec/*",
|
|
23
|
-
"./syntax": "./editors/vscode/syntaxes/koyu.tmLanguage.json",
|
|
24
|
-
"./package.json": "./package.json",
|
|
25
53
|
"./node": {
|
|
26
54
|
"types": "./dist/parse-file.d.ts",
|
|
27
55
|
"default": "./dist/parse-file.js"
|
|
28
|
-
}
|
|
56
|
+
},
|
|
57
|
+
"./examples/*": "./examples/*",
|
|
58
|
+
"./syntax": "./editors/vscode/syntaxes/koyu.tmLanguage.json",
|
|
59
|
+
"./package.json": "./package.json"
|
|
29
60
|
},
|
|
30
61
|
"bin": {
|
|
31
62
|
"koyu": "dist/cli.js",
|
|
@@ -34,7 +65,6 @@
|
|
|
34
65
|
"files": [
|
|
35
66
|
"dist",
|
|
36
67
|
"src",
|
|
37
|
-
"spec",
|
|
38
68
|
"examples",
|
|
39
69
|
"editors",
|
|
40
70
|
"NOTICE"
|
|
@@ -48,9 +78,11 @@
|
|
|
48
78
|
"prepare": "npm run build",
|
|
49
79
|
"test": "node --import tsx --test test/*.test.ts",
|
|
50
80
|
"typecheck": "tsc --noEmit",
|
|
51
|
-
"check:examples": "for f in examples/two-rooms.muro examples/office.muro examples/mansion.muro examples/house.muro examples/house/main.muro examples/tower/main.muro examples/basement/main.muro examples/complex/main.muro examples/twin/main.muro examples/steps/*.muro; do tsx src/cli.ts check $f || exit 1; done",
|
|
81
|
+
"check:examples": "for f in examples/two-rooms.muro examples/office.muro examples/mansion.muro examples/house.muro examples/house/main.muro examples/tower/main.muro examples/basement/main.muro examples/complex/main.muro examples/twin/main.muro examples/steps/*.muro skills/koyu-design/examples/flat-1ldk.muro skills/koyu-design/examples/office/main.muro; do tsx src/cli.ts check $f || exit 1; done",
|
|
52
82
|
"gate:examples": "node --import tsx scripts/gate.mjs",
|
|
53
|
-
"plan:examples": "tsx src/cli.ts plan examples/two-rooms.muro -o out/two-rooms.svg"
|
|
83
|
+
"plan:examples": "tsx src/cli.ts plan examples/two-rooms.muro -o out/two-rooms.svg",
|
|
84
|
+
"conformance": "node --import tsx --test test/conformance.test.ts",
|
|
85
|
+
"gate:docs": "npm --prefix website run gate:canonical && npm --prefix website run check:navigation"
|
|
54
86
|
},
|
|
55
87
|
"devDependencies": {
|
|
56
88
|
"@types/node": "^22.0.0",
|