@cardenelabs/dragon 0.45.5 → 0.46.1

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.
Files changed (72) hide show
  1. package/README.ja.md +331 -0
  2. package/README.md +200 -188
  3. package/dist/cli.cjs +148 -111
  4. package/dist/cli.cjs.map +1 -1
  5. package/dist/cli.js +148 -111
  6. package/dist/cli.js.map +1 -1
  7. package/dist/export.cjs +139 -109
  8. package/dist/export.cjs.map +1 -1
  9. package/dist/export.js +139 -109
  10. package/dist/export.js.map +1 -1
  11. package/dist/index.cjs +99 -62
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.js +99 -62
  14. package/dist/index.js.map +1 -1
  15. package/dist/light/chunk-CLS6JVKK.cjs.map +1 -1
  16. package/dist/light/{chunk-EHTQUCW4.js → chunk-DVGDEPCV.js} +6 -2
  17. package/dist/light/chunk-DVGDEPCV.js.map +1 -0
  18. package/dist/light/{chunk-5OQV42W3.cjs → chunk-SUL4AJLI.cjs} +6 -2
  19. package/dist/light/chunk-SUL4AJLI.cjs.map +1 -0
  20. package/dist/light/{chunk-JCEKXALJ.cjs → chunk-V34DCH34.cjs} +90 -87
  21. package/dist/light/chunk-V34DCH34.cjs.map +1 -0
  22. package/dist/light/{chunk-YEQSLVIN.js → chunk-YO3UBEC3.js} +12 -9
  23. package/dist/light/chunk-YO3UBEC3.js.map +1 -0
  24. package/dist/light/{git-K3KAAAWW.cjs → git-WBGFDRBD.cjs} +59 -59
  25. package/dist/light/git-WBGFDRBD.cjs.map +1 -0
  26. package/dist/light/{git-GESUYKGR.js → git-WEJL6VAY.js} +3 -3
  27. package/dist/light/index.cjs +407 -375
  28. package/dist/light/index.cjs.map +1 -1
  29. package/dist/light/index.js +92 -60
  30. package/dist/light/index.js.map +1 -1
  31. package/dist/light/{lineup-2V2U7HZH.js → lineup-6LN6Z5T2.js} +3 -3
  32. package/dist/light/{lineup-623J25LU.cjs → lineup-WLGNGTFX.cjs} +40 -40
  33. package/dist/light/lineup-WLGNGTFX.cjs.map +1 -0
  34. package/dist/light/{state-T4OTVING.js → state-DFYTMQI7.js} +2 -2
  35. package/dist/light/{state-OZVCHX7H.cjs → state-JVAH4TSM.cjs} +41 -41
  36. package/dist/light/state-JVAH4TSM.cjs.map +1 -0
  37. package/dist/light/{time-KVMZIKYF.cjs → time-EXRPI34B.cjs} +84 -84
  38. package/dist/light/time-EXRPI34B.cjs.map +1 -0
  39. package/dist/light/{time-O4CMTUV5.js → time-M3EGEFDU.js} +3 -3
  40. package/dist/light/{tree-6D7KI57H.cjs → tree-DECHTXFU.cjs} +62 -62
  41. package/dist/light/tree-DECHTXFU.cjs.map +1 -0
  42. package/dist/light/{tree-ZJZQI5QT.js → tree-MFU54QKY.js} +3 -3
  43. package/dist/node.cjs +115 -49
  44. package/dist/node.cjs.map +1 -1
  45. package/dist/node.js +115 -49
  46. package/dist/node.js.map +1 -1
  47. package/dist/player.global.js +3 -3
  48. package/package.json +1 -1
  49. package/src/field-messages.ts +4 -0
  50. package/src/look/values.ts +5 -1
  51. package/src/messages.ts +11 -1
  52. package/src/nearest.ts +37 -0
  53. package/src/parser.ts +4 -2
  54. package/src/render/draw.ts +2 -1
  55. package/src/render/parts.ts +28 -7
  56. package/src/schema.ts +27 -3
  57. package/src/schemas/diagram.schema.json +3 -2
  58. package/src/schemas/validate-diagram.js +1 -1
  59. package/dist/light/chunk-5OQV42W3.cjs.map +0 -1
  60. package/dist/light/chunk-EHTQUCW4.js.map +0 -1
  61. package/dist/light/chunk-JCEKXALJ.cjs.map +0 -1
  62. package/dist/light/chunk-YEQSLVIN.js.map +0 -1
  63. package/dist/light/git-K3KAAAWW.cjs.map +0 -1
  64. package/dist/light/lineup-623J25LU.cjs.map +0 -1
  65. package/dist/light/state-OZVCHX7H.cjs.map +0 -1
  66. package/dist/light/time-KVMZIKYF.cjs.map +0 -1
  67. package/dist/light/tree-6D7KI57H.cjs.map +0 -1
  68. /package/dist/light/{git-GESUYKGR.js.map → git-WEJL6VAY.js.map} +0 -0
  69. /package/dist/light/{lineup-2V2U7HZH.js.map → lineup-6LN6Z5T2.js.map} +0 -0
  70. /package/dist/light/{state-T4OTVING.js.map → state-DFYTMQI7.js.map} +0 -0
  71. /package/dist/light/{time-O4CMTUV5.js.map → time-M3EGEFDU.js.map} +0 -0
  72. /package/dist/light/{tree-ZJZQI5QT.js.map → tree-MFU54QKY.js.map} +0 -0
@@ -31,6 +31,7 @@ import {
31
31
  action,
32
32
  badge,
33
33
  band,
34
+ boxTextY,
34
35
  card,
35
36
  carrier,
36
37
  cs,
@@ -50,7 +51,7 @@ import {
50
51
  sansOf,
51
52
  side,
52
53
  strip
53
- } from "./chunk-YEQSLVIN.js";
54
+ } from "./chunk-YO3UBEC3.js";
54
55
  import {
55
56
  DEFAULT_PALETTE,
56
57
  EASE,
@@ -93,7 +94,7 @@ import {
93
94
  slotRooms,
94
95
  stripNeed,
95
96
  textWidth
96
- } from "./chunk-EHTQUCW4.js";
97
+ } from "./chunk-DVGDEPCV.js";
97
98
 
98
99
  // src/kinds/registry.ts
99
100
  var LATER_KINDS = ["git", "lineup", "state", "time", "tree"];
@@ -134,6 +135,33 @@ function extractDiagrams(markdown) {
134
135
  return fences;
135
136
  }
136
137
 
138
+ // src/nearest.ts
139
+ var MAX_DISTANCE = 2;
140
+ function nearest(word, candidates) {
141
+ const written = [...word.toLowerCase()];
142
+ let limit = Math.min(MAX_DISTANCE, written.length - 1);
143
+ let best;
144
+ for (const candidate of candidates) {
145
+ const d = distance(written, [...candidate.toLowerCase()]);
146
+ if (d > limit) continue;
147
+ best = candidate;
148
+ limit = d - 1;
149
+ }
150
+ return best;
151
+ }
152
+ function distance(a, b) {
153
+ let previous = Array.from({ length: b.length + 1 }, (_, j) => j);
154
+ for (let i = 1; i <= a.length; i++) {
155
+ const current = [i];
156
+ for (let j = 1; j <= b.length; j++) {
157
+ const replace = previous[j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1);
158
+ current.push(Math.min(previous[j] + 1, current[j - 1] + 1, replace));
159
+ }
160
+ previous = current;
161
+ }
162
+ return previous[b.length];
163
+ }
164
+
137
165
  // src/field-messages.ts
138
166
  var TYPES_JA = {
139
167
  string: "\u6587\u5B57\u5217\u306B\u3059\u308B",
@@ -158,6 +186,7 @@ var ja = {
158
186
  additionalProperties: (key2) => `${key2} \u3068\u3044\u3046\u6B04\u306F\u66F8\u3051\u306A\u3044`,
159
187
  required: (key2) => `${key2} \u306E\u6B04\u304C\u8981\u308B`,
160
188
  enum: (values) => `${values.join(" / ")} \u306E\u3069\u308C\u304B\u306B\u3059\u308B`,
189
+ unknownIcon: (value2, near) => `${value2} \u3068\u3044\u3046 icon \u306F\u7121\u3044\u3002\u8FD1\u3044\u540D\u524D\u306F ${near}`,
161
190
  type: (type) => TYPES_JA[type] ?? `${type} \u306B\u3059\u308B`,
162
191
  minLength: (limit) => `${limit} \u5B57\u4EE5\u4E0A\u66F8\u304F`,
163
192
  maxLength: (limit) => `${limit} \u5B57\u307E\u3067\u306B\u3059\u308B`,
@@ -182,6 +211,7 @@ var en = {
182
211
  additionalProperties: (key2) => `The ${key2} field is not allowed`,
183
212
  required: (key2) => `The ${key2} field is required`,
184
213
  enum: (values) => `Use one of ${values.join(" / ")}`,
214
+ unknownIcon: (value2, near) => `There is no icon named ${value2}. The closest is ${near}`,
185
215
  type: (type) => TYPES_EN[type] ?? `Use ${type}`,
186
216
  minLength: (limit) => `Write at least ${plural(limit, "character")}`,
187
217
  maxLength: (limit) => `Write at most ${plural(limit, "character")}`,
@@ -211,7 +241,7 @@ function ucs2length(str) {
211
241
  return length;
212
242
  }
213
243
  var validate_diagram_default = validate10;
214
- var schema11 = { "title": "dragon \u306E\u56F3\u306E\u539F\u672C", "description": "\u533A\u753B\u3001\u7BB1\u3001\u7DDA\u3001\u904B\u3076\u7269\u3001\u6BB5\u3001\u4E2D\u8EAB\u306E\u5E2F\u306E 6 \u90E8\u54C1\u3092\u5171\u901A\u306E\u9AA8\u7D44\u307F\u306B\u7F6E\u304D\u3001\u56F3\u306E\u7A2E\u985E\u3060\u3051\u306E\u7269\u306F\u7A2E\u985E\u306E\u6B04\u306B\u7F6E\u304F\u3002\u5EA7\u6A19\u306F\u6301\u305F\u306A\u3044\u3002\u7BB1\u306F\u679D\u5206\u304B\u308C\u306E\u56F3\u3068\u6642\u9593\u8EF8\u306E\u56F3\u3068\u6728\u306E\u56F3\u3060\u3051\u304C\u6301\u305F\u306A\u304F\u3066\u3088\u3044\u3002\u5217\u306E\u56F3\u306E\u7BB1\u306F\u5217\u306B\u306A\u308B\u3002", "type": "object", "additionalProperties": false, "required": ["version", "kind", "title", "boxes", "steps"], "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time", "tree", "lineup"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" }, "lineup": { "$ref": "#/definitions/lineup" } }, "if": { "required": ["kind"], "properties": { "kind": { "const": "sequence" } } }, "then": { "required": ["sequence"], "properties": { "boxes": { "minItems": 1 }, "steps": { "$ref": "#/definitions/plainSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "properties": { "sequence": { "$ref": "#/definitions/absent" } }, "if": { "required": ["kind"], "properties": { "kind": { "const": "state" } } }, "then": { "properties": { "boxes": { "minItems": 1, "items": { "properties": { "id": { "description": "\u59CB\u307E\u308A\u3068\u7D42\u308F\u308A\u306E\u5370\u306E\u540D\u524D\u306F\u7BB1\u306E\u540D\u672D\u306B\u4F7F\u3048\u306A\u3044", "not": { "enum": ["start", "finish"] } } } } }, "steps": { "$ref": "#/definitions/plainSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "git" } } }, "then": { "required": ["git"], "properties": { "steps": { "$ref": "#/definitions/gitSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "time" } } }, "then": { "required": ["time"], "properties": { "steps": { "$ref": "#/definitions/timeSteps" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "tree" } } }, "then": { "properties": { "steps": { "$ref": "#/definitions/treeSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "lineup" } } }, "then": { "required": ["lineup"], "properties": { "boxes": { "minItems": 1, "items": { "properties": { "icon": { "$ref": "#/definitions/absent" }, "link": { "$ref": "#/definitions/absent" }, "region": { "$ref": "#/definitions/absent" } } } }, "steps": { "$ref": "#/definitions/lineupSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" } } }, "else": { "properties": { "boxes": { "minItems": 1 }, "steps": { "$ref": "#/definitions/plainSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } } } } } } }, "definitions": { "text": { "type": "string", "minLength": 1 }, "absent": { "description": "\u3053\u306E\u56F3\u306E\u7A2E\u985E\u3067\u306F\u66F8\u3051\u306A\u3044\u6B04", "not": {} }, "plainSteps": { "description": "\u679D\u5206\u304B\u308C\u306E\u56F3\u3067\u3082\u6642\u9593\u8EF8\u306E\u56F3\u3067\u3082\u6728\u306E\u56F3\u3067\u3082\u5217\u306E\u56F3\u3067\u3082\u306A\u3044\u56F3\u306E\u6BB5\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (at \u3068 into \u3068 color) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notLineupEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } }, "at": { "$ref": "#/definitions/absent" }, "into": { "$ref": "#/definitions/absent" }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "gitSteps": { "description": "\u679D\u5206\u304B\u308C\u306E\u56F3\u306E\u6BB5\u3002\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (at \u3068 into \u3068 color) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notLineupEvent" }], "properties": { "at": { "$ref": "#/definitions/absent" }, "into": { "$ref": "#/definitions/absent" }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "timeSteps": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u6BB5\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notLineupEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } } } } } } } }, "treeSteps": { "description": "\u6728\u306E\u56F3\u306E\u6BB5\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (at \u3068 into \u3068 color) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "$ref": "#/definitions/notLineupEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } }, "at": { "$ref": "#/definitions/absent" }, "into": { "$ref": "#/definitions/absent" }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "lineupSteps": { "description": "\u5217\u306E\u56F3\u306E\u6BB5\u3002\u7DDA\u3068\u51E6\u7406\u3068\u3001\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (color) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notWiredEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "treeEvent": { "description": "\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u51FA\u6765\u4E8B", "required": ["type"], "properties": { "type": { "enum": ["leaf", "node"] } } }, "notLineupEvent": { "description": "\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u51FA\u6765\u4E8B\u3092\u66F8\u3051\u306A\u3044", "not": { "required": ["type"], "properties": { "type": { "enum": ["line", "seal", "open", "pick", "stamp"] } } } }, "notWiredEvent": { "description": "\u7BB1\u3068\u7DDA\u306E\u56F3\u306E\u51FA\u6765\u4E8B\u3092\u66F8\u3051\u306A\u3044", "not": { "required": ["type"], "properties": { "type": { "enum": ["edge", "action"] } } } }, "timeEvent": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u51FA\u6765\u4E8B", "required": ["type"], "properties": { "type": { "enum": ["now", "mark", "span"] } } }, "plainStrip": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u3067\u306A\u3044\u56F3\u306E\u4E2D\u8EAB\u306E\u5E2F\u3002\u7269\u5DEE\u3057\u3092\u66F8\u3051\u306A\u3044", "properties": { "meters": { "$ref": "#/definitions/absent" } } }, "id": { "type": "string", "pattern": "^[^\\s\\[\\]\u300C\u300D=:]+$" }, "color": { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] }, "region": { "type": "object", "additionalProperties": false, "required": ["id", "name"], "properties": { "id": { "$ref": "#/definitions/id" }, "name": { "$ref": "#/definitions/text" }, "note": { "$ref": "#/definitions/text" }, "color": { "$ref": "#/definitions/color" }, "icon": { "$ref": "#/definitions/text" } } }, "box": { "type": "object", "additionalProperties": false, "required": ["id", "name"], "properties": { "id": { "$ref": "#/definitions/id" }, "name": { "$ref": "#/definitions/text" }, "sub": { "$ref": "#/definitions/text" }, "color": { "$ref": "#/definitions/color" }, "icon": { "$ref": "#/definitions/text" }, "region": { "$ref": "#/definitions/id" }, "link": { "description": "\u98DB\u3073\u5148\u3002\u63CF\u3044\u305F\u56F3\u3067\u306F\u3053\u306E\u7BB1\u304C\u3053\u3053\u3078\u306E link \u306B\u306A\u308B", "$ref": "#/definitions/url" } } }, "strip": { "type": "object", "additionalProperties": false, "required": ["title", "fields"], "properties": { "title": { "$ref": "#/definitions/text" }, "fields": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/text" } }, "meters": { "description": "\u7269\u5DEE\u3057\u306B\u3059\u308B\u6B04\u3002\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/meter" } } } }, "meter": { "description": "\u7269\u5DEE\u3057\u306E\u6B04\u3002line \u306E\u5272\u5408\u306E\u6240\u306B\u7DDA\u3092\u5F15\u304D\u3001set \u306E\u5024\u307E\u3067\u91DD\u3068\u4E00\u7DD2\u306B\u6E80\u3061\u308B", "type": "object", "additionalProperties": false, "required": ["field", "line"], "properties": { "field": { "$ref": "#/definitions/text" }, "line": { "$ref": "#/definitions/ratio" } } }, "ratio": { "description": "\u5272\u5408\u3002\u5206\u6570 (2/3) \u304B\u767E\u5206\u7387 (97%)", "type": "string", "pattern": "^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$" }, "step": { "type": "object", "additionalProperties": false, "required": ["title", "body", "events"], "properties": { "title": { "$ref": "#/definitions/text" }, "body": { "$ref": "#/definitions/text" }, "code": { "$ref": "#/definitions/text" }, "sources": { "description": "\u6BB5\u306E\u51FA\u5178\u3002\u8AAD\u307F\u4E0A\u3052\u306E\u6BB5\u306E\u4E00\u89A7\u306B\u3001\u540D\u524D\u3092 URL \u3078\u306E link \u306B\u3057\u3066\u66F8\u3044\u305F\u9806\u306B\u51FA\u3059", "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/source" } }, "events": { "type": "array", "items": { "$ref": "#/definitions/event" } } } }, "source": { "type": "object", "additionalProperties": false, "required": ["name", "url"], "properties": { "name": { "$ref": "#/definitions/text" }, "url": { "$ref": "#/definitions/url" } } }, "url": { "description": "\u9801\u3092\u79FB\u308B\u5F62\u3002/ \u3067\u59CB\u307E\u308B path \u304B\u3001http:// \u304B https:// \u3067\u59CB\u307E\u308B URL", "type": "string", "pattern": "^(/|https?://)" }, "event": { "description": "\u6BB5\u306E\u4E2D\u3067\u8D77\u304D\u308B\u3053\u3068\u3002\u8D77\u304D\u308B\u9806\u306B\u4E26\u3079\u308B", "type": "object", "required": ["type"], "discriminator": { "propertyName": "type" }, "oneOf": [{ "description": "\u7DDA\u3002\u904B\u3076\u7269\u3092\u8F09\u305B\u3066\u9001\u308B\u5074\u304B\u3089\u53D7\u3051\u308B\u5074\u3078\u8D70\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "carry"], "properties": { "type": { "const": "edge" }, "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" }, "carry": { "$ref": "#/definitions/carry" }, "labelSide": { "description": "\u7DDA\u306E\u540D\u524D\u3092\u7F6E\u304F\u5074 (\u5BC4\u305B\u306E\u6307\u793A)", "enum": ["above", "below", "left", "right"] }, "at": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u7DDA\u3092\u5F15\u304F\u5217\u306E\u76EE\u76DB\u308A", "$ref": "#/definitions/unit" }, "into": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u53D7\u3051\u308B\u7BB1\u3092\u9078\u3076\u5217\u306E\u76EE\u76DB\u308A\u3002\u66F8\u304B\u306A\u3051\u308C\u3070 at \u306E\u5217", "$ref": "#/definitions/unit" } } }, { "description": "\u7BB1\u306E\u4E2D\u306E\u51E6\u7406", "type": "object", "additionalProperties": false, "required": ["type", "box", "label"], "properties": { "type": { "const": "action" }, "box": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } }, { "description": "\u7BB1\u306E\u4E0B\u306E\u5C0F\u3055\u306A\u5B57\u306E\u66F8\u304D\u63DB\u3048", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "swap" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" }, "color": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7BC0\u76EE\u306E\u4E38\u306E\u8272", "$ref": "#/definitions/color" } } }, { "description": "commit \u3092\u7A4D\u3080\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u7A4D\u3093\u3060\u679D\u306E\u672D\u3068\u3001\u305D\u306E\u679D\u3092\u6307\u3059 HEAD \u304C\u9032\u3080\u3002\u5F53\u3066\u76F4\u3057 (copy) \u306F\u679D\u306E\u672D\u3092\u52D5\u304B\u3055\u305A\u3001merge commit (merge) \u306F\u53D6\u308A\u8FBC\u3080\u679D\u306E\u5148\u7AEF\u3082\u89AA\u306B\u6301\u3064", "type": "object", "additionalProperties": false, "required": ["type", "id", "branch"], "properties": { "type": { "const": "commit" }, "id": { "$ref": "#/definitions/id" }, "branch": { "$ref": "#/definitions/id" }, "copy": { "$ref": "#/definitions/id" }, "merge": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" }, "note": { "$ref": "#/definitions/text" } } }, { "description": "\u679D\u3092\u5207\u308B\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u679D\u306E\u672D\u3092 from \u306E commit \u3078\u7F6E\u304D\u3001HEAD \u3092\u305D\u306E\u679D\u3078\u79FB\u3059", "type": "object", "additionalProperties": false, "required": ["type", "branch", "from"], "properties": { "type": { "const": "branch" }, "branch": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/id" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u4ECA\u306E\u6642\u523B\u306E\u91DD\u3092\u3001to \u306E\u76EE\u76DB\u308A\u306E\u7D42\u308F\u308A\u307E\u3067\u9032\u3081\u308B", "type": "object", "additionalProperties": false, "required": ["type", "to"], "properties": { "type": { "const": "now" }, "to": { "$ref": "#/definitions/unit" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u5370\u306E\u5217 row \u306E\u3001from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u8272\u3092\u5909\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "row", "from", "to", "color"], "properties": { "type": { "const": "mark" }, "row": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306B\u3001\u62EC\u5F27\u3068\u5B57\u3092\u51FA\u3059\u3002shape \u304C box \u306A\u3089\u5370\u306E\u5217\u3092\u56F2\u307F\u3001\u5B57\u3092\u7E01\u306E\u672D\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "text"], "properties": { "type": { "const": "span" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "text": { "$ref": "#/definitions/text" }, "shape": { "enum": ["box"] }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u8449\u3092\u51FA\u3059\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u8449\u306E\u7BB1\u304C\u73FE\u308C\u308B\u3002hash \u3092\u66F8\u304F\u3068\u7BB1\u306B\u5024\u3092\u51FA\u3057\u3001\u540D\u672D\u3092\u8449\u306E\u4E0B\u306E\u672D\u306B\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["type", "id"], "properties": { "type": { "const": "leaf" }, "id": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "1 \u3064\u4EE5\u4E0A\u306E\u5B50\u304B\u3089\u89AA\u3092\u7D44\u3080\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u89AA\u306E\u7BB1\u3068\u3001\u5B50\u304B\u3089\u89AA\u3078\u306E\u6728\u306E\u7DDA\u304C\u73FE\u308C\u308B", "type": "object", "additionalProperties": false, "required": ["type", "id", "children"], "properties": { "type": { "const": "node" }, "id": { "$ref": "#/definitions/id" }, "children": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "\u5217\u306E box \u306E\u4E26\u3073\u3092 items \u306B\u66F8\u304D\u63DB\u3048\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u30C1\u30C3\u30D7\u306F\u524D\u306B\u5C45\u305F\u5217\u304B\u3089\u6ED1\u308A\u3001\u3069\u306E\u5217\u306B\u3082\u5C45\u306A\u304B\u3063\u305F\u30C1\u30C3\u30D7\u306F\u5F3E\u3093\u3067\u73FE\u308C\u3001\u5217\u304B\u3089\u5916\u308C\u305F\u30C1\u30C3\u30D7\u306F\u6D88\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "items"], "properties": { "type": { "const": "line" }, "box": { "$ref": "#/definitions/id" }, "items": { "type": "array", "minItems": 1, "maxItems": 12, "items": { "$ref": "#/definitions/id" } } } }, { "description": "\u5217 box \u306B\u5C01\u3092\u3057\u3066\u3001\u30C1\u30C3\u30D7\u3092\u96A0\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "seal" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u5C01\u3092\u958B\u3051\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "open" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u3092\u9078\u3076\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u5217\u306E\u7E01\u306B\u8272\u304C\u4ED8\u304D\u3001\u307B\u304B\u306E\u5217\u304C\u8584\u304F\u306A\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "pick" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u53F3\u306B text \u306E\u672D\u3092\u62BC\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "stamp" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" } } }, { "description": "\u4E2D\u8EAB\u306E\u5E2F\u306E\u6B04\u306E\u5024\u3068\u672D", "type": "object", "additionalProperties": false, "required": ["type", "field"], "anyOf": [{ "required": ["value"] }, { "required": ["tag"] }], "properties": { "type": { "const": "strip" }, "field": { "$ref": "#/definitions/text" }, "value": { "$ref": "#/definitions/text" }, "tag": { "$ref": "#/definitions/text" } } }] }, "carry": { "description": "\u7DDA\u306E\u4E0A\u3092\u8D70\u308B\u7269\u3002\u5C01\u7B52 (\u30E1\u30C3\u30BB\u30FC\u30B8\u3084\u8981\u6C42)\u3001\u672D (\u540D\u524D\u306E\u3042\u308B\u5024)\u3001\u786C\u8CA8 (\u4FA1\u5024)\u3001\u7121\u3057", "type": "object", "additionalProperties": false, "required": ["kind"], "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }, "text": { "$ref": "#/definitions/text" } }, "if": { "required": ["kind"], "properties": { "kind": { "const": "tag" } } }, "then": { "required": ["text"] }, "else": { "not": { "required": ["text"] } } }, "sequence": { "description": "\u6642\u7CFB\u5217\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u751F\u5B58\u7DDA\u3092\u5DE6\u304B\u3089\u4E26\u3079\u308B\u9806", "type": "object", "additionalProperties": false, "required": ["lifelines"], "properties": { "lifelines": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } } } }, "state": { "description": "\u72B6\u614B\u9077\u79FB\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u6700\u521D\u306E\u6BB5\u3088\u308A\u524D\u306B\u66F8\u3044\u305F\u3001\u79FB\u308C\u308B\u304C\u6BB5\u3067\u901A\u308B\u3068\u306F\u9650\u3089\u306A\u3044\u7DDA", "type": "object", "additionalProperties": false, "required": ["paths"], "properties": { "paths": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/path" } } } }, "git": { "description": "\u679D\u5206\u304B\u308C\u306E\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u679D\u3092\u4E0A\u304B\u3089\u5E2F\u306B\u4E26\u3079\u308B\u9806", "type": "object", "additionalProperties": false, "required": ["branches"], "properties": { "branches": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/branch" } } } }, "branch": { "description": "\u679D\u3002\u5E2F\u306E\u5DE6\u306B\u540D\u672D\u3068\u6DFB\u3048\u66F8\u304D\u3092\u7F6E\u304F", "type": "object", "additionalProperties": false, "required": ["id"], "properties": { "id": { "$ref": "#/definitions/id" }, "note": { "$ref": "#/definitions/text" } } }, "hash": { "description": "commit \u3068\u6728\u306E\u7BB1\u306E hash\u300216 \u9032\u306E\u5B57\u3067 4 \u304B\u3089 40 \u5B57", "type": "string", "pattern": "^[0-9a-f]{4,40}$" }, "lineup": { "description": "\u5217\u306E\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u5217\u306B\u4E26\u3079\u308B\u30C1\u30C3\u30D7", "type": "object", "additionalProperties": false, "required": ["items"], "properties": { "items": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/item" } } } }, "item": { "description": "\u30C1\u30C3\u30D7\u3002color \u3092\u66F8\u304B\u306A\u3044\u30C1\u30C3\u30D7\u306F\u8584\u3044\u8272\u3067\u3001label \u3092\u66F8\u304B\u306A\u3044\u30C1\u30C3\u30D7\u306F\u8272\u3060\u3051\u3067\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["id"], "properties": { "id": { "$ref": "#/definitions/id" }, "color": { "$ref": "#/definitions/color" }, "label": { "description": "\u30C1\u30C3\u30D7\u306B\u8F09\u305B\u308B\u5B57", "type": "string", "minLength": 1, "maxLength": 4 } } }, "time": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u76EE\u76DB\u308A\u3001\u533A\u5207\u308A\u3001\u5370\u306E\u5217\u3001\u7BC0\u76EE\u3001\u62E1\u5927\u306E\u7BC4\u56F2", "type": "object", "additionalProperties": false, "required": ["scale", "rows"], "properties": { "scale": { "$ref": "#/definitions/scale" }, "period": { "$ref": "#/definitions/period" }, "rows": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/row" } }, "points": { "type": "array", "items": { "$ref": "#/definitions/point" } }, "zoom": { "$ref": "#/definitions/zoom" } } }, "scale": { "description": "\u76EE\u76DB\u308A\u3002unit \u306E\u540D\u524D\u306E\u76EE\u76DB\u308A\u3092 length \u306E\u9577\u3055\u3067 count \u500B\u4E26\u3079\u3001\u6700\u521D\u306E\u76EE\u76DB\u308A\u306E\u756A\u53F7\u3092 from \u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["unit", "length", "count"], "properties": { "unit": { "$ref": "#/definitions/text" }, "length": { "$ref": "#/definitions/duration" }, "count": { "type": "integer", "minimum": 1 }, "from": { "type": "integer", "minimum": 0 } } }, "duration": { "description": "\u9577\u3055\u3002\u6570\u3068\u5358\u4F4D (ms\u3001s\u3001min\u3001h\u3001d) \u306E\u7D44", "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$" }, "unit": { "description": "\u76EE\u76DB\u308A\u306E\u4F4D\u7F6E\u30020 \u304B\u3089\u6570\u3048\u308B", "type": "integer", "minimum": 0 }, "period": { "description": "\u533A\u5207\u308A\u3002\u76EE\u76DB\u308A length \u500B\u3054\u3068\u306B name \u306E\u533A\u5207\u308A\u3092\u7F6E\u304D\u3001\u6700\u521D\u306E\u533A\u5207\u308A\u306E\u756A\u53F7\u3092 from \u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["name", "length"], "properties": { "name": { "$ref": "#/definitions/text" }, "length": { "type": "integer", "minimum": 1 }, "from": { "type": "integer", "minimum": 0 } } }, "row": { "description": "\u5370\u306E\u5217\u3002\u76EE\u76DB\u308A\u3054\u3068\u306B\u5370\u3092 1 \u3064\u7F6E\u304D\u3001empty \u306E\u76EE\u76DB\u308A\u306F\u7A7A\u304D\u306E\u5370\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["id", "name"], "properties": { "id": { "$ref": "#/definitions/id" }, "name": { "$ref": "#/definitions/text" }, "color": { "$ref": "#/definitions/color" }, "empty": { "type": "array", "items": { "$ref": "#/definitions/unit" } } } }, "point": { "description": "\u7BC0\u76EE\u3002at \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u4E0B\u306B\u65D7\u306E\u4E38\u3068\u540D\u672D\u3092\u7F6E\u304F", "type": "object", "additionalProperties": false, "required": ["id", "at"], "properties": { "id": { "$ref": "#/definitions/id" }, "at": { "$ref": "#/definitions/unit" } } }, "zoom": { "description": "\u62E1\u5927\u306E\u7BC4\u56F2\u3002from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u3054\u3068\u306B\u62E1\u5927\u306E\u5E2F\u306B\u5217\u3092\u4F5C\u308B", "type": "object", "additionalProperties": false, "required": ["from", "to"], "properties": { "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" } } }, "path": { "description": "\u79FB\u308C\u308B\u9053\u3002\u9001\u308B\u5074\u306B\u59CB\u307E\u308A\u306E\u5370 start\u3001\u53D7\u3051\u308B\u5074\u306B\u7D42\u308F\u308A\u306E\u5370 finish \u3092\u66F8\u3051\u308B\u3002\u3069\u306E\u6BB5\u306B\u3082\u51FA\u306A\u3044\u9053\u306F\u70B9\u7DDA\u3067\u63CF\u304D\u3001\u904B\u3076\u7269\u3092\u8D70\u3089\u305B\u306A\u3044", "type": "object", "additionalProperties": false, "required": ["from", "to"], "properties": { "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } } } };
244
+ var schema11 = { "title": "dragon \u306E\u56F3\u306E\u539F\u672C", "description": "\u533A\u753B\u3001\u7BB1\u3001\u7DDA\u3001\u904B\u3076\u7269\u3001\u6BB5\u3001\u4E2D\u8EAB\u306E\u5E2F\u306E 6 \u90E8\u54C1\u3092\u5171\u901A\u306E\u9AA8\u7D44\u307F\u306B\u7F6E\u304D\u3001\u56F3\u306E\u7A2E\u985E\u3060\u3051\u306E\u7269\u306F\u7A2E\u985E\u306E\u6B04\u306B\u7F6E\u304F\u3002\u5EA7\u6A19\u306F\u6301\u305F\u306A\u3044\u3002\u7BB1\u306F\u679D\u5206\u304B\u308C\u306E\u56F3\u3068\u6642\u9593\u8EF8\u306E\u56F3\u3068\u6728\u306E\u56F3\u3060\u3051\u304C\u6301\u305F\u306A\u304F\u3066\u3088\u3044\u3002\u5217\u306E\u56F3\u306E\u7BB1\u306F\u5217\u306B\u306A\u308B\u3002", "type": "object", "additionalProperties": false, "required": ["version", "kind", "title", "boxes", "steps"], "properties": { "version": { "description": "\u5F62\u5F0F\u306E\u7248", "type": "integer", "minimum": 1 }, "kind": { "description": "\u56F3\u306E\u7A2E\u985E", "enum": ["sequence", "architecture", "state", "git", "time", "tree", "lineup"] }, "title": { "$ref": "#/definitions/text" }, "view": { "description": "\u898B\u305B\u65B9\u3002\u66F8\u304B\u306A\u3051\u308C\u3070\u5B57\u306E\u5927\u304D\u3055\u3067\u9078\u3076\u3002fixed \u306F\u5168\u4F53\u3092\u6B62\u3081\u3066\u4E2D\u3060\u3051\u52D5\u304B\u3057\u3001follow \u306F\u5BC4\u3063\u3066\u52D5\u304B\u3057\u5168\u4F53\u56F3\u3067\u4ECA\u3069\u3053\u304B\u3092\u793A\u3059", "enum": ["fixed", "follow"] }, "regions": { "type": "array", "items": { "$ref": "#/definitions/region" } }, "boxes": { "type": "array", "items": { "$ref": "#/definitions/box" } }, "strip": { "$ref": "#/definitions/strip" }, "steps": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/step" } }, "sequence": { "$ref": "#/definitions/sequence" }, "state": { "$ref": "#/definitions/state" }, "git": { "$ref": "#/definitions/git" }, "time": { "$ref": "#/definitions/time" }, "lineup": { "$ref": "#/definitions/lineup" } }, "if": { "required": ["kind"], "properties": { "kind": { "const": "sequence" } } }, "then": { "required": ["sequence"], "properties": { "boxes": { "minItems": 1 }, "steps": { "$ref": "#/definitions/plainSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "properties": { "sequence": { "$ref": "#/definitions/absent" } }, "if": { "required": ["kind"], "properties": { "kind": { "const": "state" } } }, "then": { "properties": { "boxes": { "minItems": 1, "items": { "properties": { "id": { "description": "\u59CB\u307E\u308A\u3068\u7D42\u308F\u308A\u306E\u5370\u306E\u540D\u524D\u306F\u7BB1\u306E\u540D\u672D\u306B\u4F7F\u3048\u306A\u3044", "not": { "enum": ["start", "finish"] } } } } }, "steps": { "$ref": "#/definitions/plainSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "git" } } }, "then": { "required": ["git"], "properties": { "steps": { "$ref": "#/definitions/gitSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "time" } } }, "then": { "required": ["time"], "properties": { "steps": { "$ref": "#/definitions/timeSteps" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "tree" } } }, "then": { "properties": { "steps": { "$ref": "#/definitions/treeSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } }, "else": { "if": { "required": ["kind"], "properties": { "kind": { "const": "lineup" } } }, "then": { "required": ["lineup"], "properties": { "boxes": { "minItems": 1, "items": { "properties": { "icon": { "$ref": "#/definitions/absent" }, "link": { "$ref": "#/definitions/absent" }, "region": { "$ref": "#/definitions/absent" } } } }, "steps": { "$ref": "#/definitions/lineupSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "regions": { "$ref": "#/definitions/absent" } } }, "else": { "properties": { "boxes": { "minItems": 1 }, "steps": { "$ref": "#/definitions/plainSteps" }, "strip": { "$ref": "#/definitions/plainStrip" }, "state": { "$ref": "#/definitions/absent" }, "git": { "$ref": "#/definitions/absent" }, "time": { "$ref": "#/definitions/absent" }, "lineup": { "$ref": "#/definitions/absent" } } } } } } } }, "definitions": { "text": { "type": "string", "minLength": 1 }, "absent": { "description": "\u3053\u306E\u56F3\u306E\u7A2E\u985E\u3067\u306F\u66F8\u3051\u306A\u3044\u6B04", "not": {} }, "plainSteps": { "description": "\u679D\u5206\u304B\u308C\u306E\u56F3\u3067\u3082\u6642\u9593\u8EF8\u306E\u56F3\u3067\u3082\u6728\u306E\u56F3\u3067\u3082\u5217\u306E\u56F3\u3067\u3082\u306A\u3044\u56F3\u306E\u6BB5\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (at \u3068 into \u3068 color) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notLineupEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } }, "at": { "$ref": "#/definitions/absent" }, "into": { "$ref": "#/definitions/absent" }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "gitSteps": { "description": "\u679D\u5206\u304B\u308C\u306E\u56F3\u306E\u6BB5\u3002\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (at \u3068 into \u3068 color) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notLineupEvent" }], "properties": { "at": { "$ref": "#/definitions/absent" }, "into": { "$ref": "#/definitions/absent" }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "timeSteps": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u6BB5\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notLineupEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } } } } } } } }, "treeSteps": { "description": "\u6728\u306E\u56F3\u306E\u6BB5\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (at \u3068 into \u3068 color) \u3068\u3001\u5217\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (line \u3068 seal \u3068 open \u3068 pick \u3068 stamp) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "$ref": "#/definitions/notLineupEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } }, "at": { "$ref": "#/definitions/absent" }, "into": { "$ref": "#/definitions/absent" }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "lineupSteps": { "description": "\u5217\u306E\u56F3\u306E\u6BB5\u3002\u7DDA\u3068\u51E6\u7406\u3068\u3001\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (commit \u3068 branch) \u3068\u3001\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (now \u3068 mark \u3068 span) \u3068\u6B04 (color) \u3068\u3001\u6728\u306E\u56F3\u3060\u3051\u306E\u51FA\u6765\u4E8B (leaf \u3068 node) \u3092\u66F8\u3051\u306A\u3044", "items": { "properties": { "events": { "items": { "not": { "$ref": "#/definitions/timeEvent" }, "allOf": [{ "not": { "$ref": "#/definitions/treeEvent" } }, { "$ref": "#/definitions/notWiredEvent" }], "properties": { "type": { "not": { "enum": ["commit", "branch"] } }, "color": { "$ref": "#/definitions/absent" } } } } } } }, "treeEvent": { "description": "\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u51FA\u6765\u4E8B", "required": ["type"], "properties": { "type": { "enum": ["leaf", "node"] } } }, "notLineupEvent": { "description": "\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u51FA\u6765\u4E8B\u3092\u66F8\u3051\u306A\u3044", "not": { "required": ["type"], "properties": { "type": { "enum": ["line", "seal", "open", "pick", "stamp"] } } } }, "notWiredEvent": { "description": "\u7BB1\u3068\u7DDA\u306E\u56F3\u306E\u51FA\u6765\u4E8B\u3092\u66F8\u3051\u306A\u3044", "not": { "required": ["type"], "properties": { "type": { "enum": ["edge", "action"] } } } }, "timeEvent": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u51FA\u6765\u4E8B", "required": ["type"], "properties": { "type": { "enum": ["now", "mark", "span"] } } }, "plainStrip": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u3067\u306A\u3044\u56F3\u306E\u4E2D\u8EAB\u306E\u5E2F\u3002\u7269\u5DEE\u3057\u3092\u66F8\u3051\u306A\u3044", "properties": { "meters": { "$ref": "#/definitions/absent" } } }, "id": { "type": "string", "pattern": "^[^\\s\\[\\]\u300C\u300D=:]+$" }, "color": { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] }, "icon": { "description": "\u7BB1\u3068\u533A\u753B\u306E\u30A2\u30A4\u30B3\u30F3\u540D\u3002\u63CF\u304F\u90E8\u54C1\u306E\u30A2\u30A4\u30B3\u30F3\u306E\u8868 (ICONS) \u306B\u5728\u308B\u540D\u524D\u3060\u3051", "enum": ["app", "router", "on", "off", "pool", "db", "exe", "idx", "sign", "env", "lock", "check", "flag", "x", "chain", "net", "user", "server", "key", "shield", "globe", "bolt", "doc", "box", "truck", "card", "cart", "clock", "branch", "cloud", "refresh", "undo", "yen", "layers", "code", "paint", "tree", "block"] }, "region": { "type": "object", "additionalProperties": false, "required": ["id", "name"], "properties": { "id": { "$ref": "#/definitions/id" }, "name": { "$ref": "#/definitions/text" }, "note": { "$ref": "#/definitions/text" }, "color": { "$ref": "#/definitions/color" }, "icon": { "$ref": "#/definitions/icon" } } }, "box": { "type": "object", "additionalProperties": false, "required": ["id", "name"], "properties": { "id": { "$ref": "#/definitions/id" }, "name": { "$ref": "#/definitions/text" }, "sub": { "$ref": "#/definitions/text" }, "color": { "$ref": "#/definitions/color" }, "icon": { "$ref": "#/definitions/icon" }, "region": { "$ref": "#/definitions/id" }, "link": { "description": "\u98DB\u3073\u5148\u3002\u63CF\u3044\u305F\u56F3\u3067\u306F\u3053\u306E\u7BB1\u304C\u3053\u3053\u3078\u306E link \u306B\u306A\u308B", "$ref": "#/definitions/url" } } }, "strip": { "type": "object", "additionalProperties": false, "required": ["title", "fields"], "properties": { "title": { "$ref": "#/definitions/text" }, "fields": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/text" } }, "meters": { "description": "\u7269\u5DEE\u3057\u306B\u3059\u308B\u6B04\u3002\u6642\u9593\u8EF8\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/meter" } } } }, "meter": { "description": "\u7269\u5DEE\u3057\u306E\u6B04\u3002line \u306E\u5272\u5408\u306E\u6240\u306B\u7DDA\u3092\u5F15\u304D\u3001set \u306E\u5024\u307E\u3067\u91DD\u3068\u4E00\u7DD2\u306B\u6E80\u3061\u308B", "type": "object", "additionalProperties": false, "required": ["field", "line"], "properties": { "field": { "$ref": "#/definitions/text" }, "line": { "$ref": "#/definitions/ratio" } } }, "ratio": { "description": "\u5272\u5408\u3002\u5206\u6570 (2/3) \u304B\u767E\u5206\u7387 (97%)", "type": "string", "pattern": "^([0-9]+/[0-9]+|[0-9]+(\\.[0-9]+)?%)$" }, "step": { "type": "object", "additionalProperties": false, "required": ["title", "body", "events"], "properties": { "title": { "$ref": "#/definitions/text" }, "body": { "$ref": "#/definitions/text" }, "code": { "$ref": "#/definitions/text" }, "sources": { "description": "\u6BB5\u306E\u51FA\u5178\u3002\u8AAD\u307F\u4E0A\u3052\u306E\u6BB5\u306E\u4E00\u89A7\u306B\u3001\u540D\u524D\u3092 URL \u3078\u306E link \u306B\u3057\u3066\u66F8\u3044\u305F\u9806\u306B\u51FA\u3059", "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/source" } }, "events": { "type": "array", "items": { "$ref": "#/definitions/event" } } } }, "source": { "type": "object", "additionalProperties": false, "required": ["name", "url"], "properties": { "name": { "$ref": "#/definitions/text" }, "url": { "$ref": "#/definitions/url" } } }, "url": { "description": "\u9801\u3092\u79FB\u308B\u5F62\u3002/ \u3067\u59CB\u307E\u308B path \u304B\u3001http:// \u304B https:// \u3067\u59CB\u307E\u308B URL", "type": "string", "pattern": "^(/|https?://)" }, "event": { "description": "\u6BB5\u306E\u4E2D\u3067\u8D77\u304D\u308B\u3053\u3068\u3002\u8D77\u304D\u308B\u9806\u306B\u4E26\u3079\u308B", "type": "object", "required": ["type"], "discriminator": { "propertyName": "type" }, "oneOf": [{ "description": "\u7DDA\u3002\u904B\u3076\u7269\u3092\u8F09\u305B\u3066\u9001\u308B\u5074\u304B\u3089\u53D7\u3051\u308B\u5074\u3078\u8D70\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "carry"], "properties": { "type": { "const": "edge" }, "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" }, "carry": { "$ref": "#/definitions/carry" }, "labelSide": { "description": "\u7DDA\u306E\u540D\u524D\u3092\u7F6E\u304F\u5074 (\u5BC4\u305B\u306E\u6307\u793A)", "enum": ["above", "below", "left", "right"] }, "at": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u7DDA\u3092\u5F15\u304F\u5217\u306E\u76EE\u76DB\u308A", "$ref": "#/definitions/unit" }, "into": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u62E1\u5927\u306E\u5E2F\u3067\u3001\u53D7\u3051\u308B\u7BB1\u3092\u9078\u3076\u5217\u306E\u76EE\u76DB\u308A\u3002\u66F8\u304B\u306A\u3051\u308C\u3070 at \u306E\u5217", "$ref": "#/definitions/unit" } } }, { "description": "\u7BB1\u306E\u4E2D\u306E\u51E6\u7406", "type": "object", "additionalProperties": false, "required": ["type", "box", "label"], "properties": { "type": { "const": "action" }, "box": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } }, { "description": "\u7BB1\u306E\u4E0B\u306E\u5C0F\u3055\u306A\u5B57\u306E\u66F8\u304D\u63DB\u3048", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "swap" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" }, "color": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7BC0\u76EE\u306E\u4E38\u306E\u8272", "$ref": "#/definitions/color" } } }, { "description": "commit \u3092\u7A4D\u3080\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u7A4D\u3093\u3060\u679D\u306E\u672D\u3068\u3001\u305D\u306E\u679D\u3092\u6307\u3059 HEAD \u304C\u9032\u3080\u3002\u5F53\u3066\u76F4\u3057 (copy) \u306F\u679D\u306E\u672D\u3092\u52D5\u304B\u3055\u305A\u3001merge commit (merge) \u306F\u53D6\u308A\u8FBC\u3080\u679D\u306E\u5148\u7AEF\u3082\u89AA\u306B\u6301\u3064", "type": "object", "additionalProperties": false, "required": ["type", "id", "branch"], "properties": { "type": { "const": "commit" }, "id": { "$ref": "#/definitions/id" }, "branch": { "$ref": "#/definitions/id" }, "copy": { "$ref": "#/definitions/id" }, "merge": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" }, "note": { "$ref": "#/definitions/text" } } }, { "description": "\u679D\u3092\u5207\u308B\u3002\u679D\u5206\u304B\u308C\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u679D\u306E\u672D\u3092 from \u306E commit \u3078\u7F6E\u304D\u3001HEAD \u3092\u305D\u306E\u679D\u3078\u79FB\u3059", "type": "object", "additionalProperties": false, "required": ["type", "branch", "from"], "properties": { "type": { "const": "branch" }, "branch": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/id" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u4ECA\u306E\u6642\u523B\u306E\u91DD\u3092\u3001to \u306E\u76EE\u76DB\u308A\u306E\u7D42\u308F\u308A\u307E\u3067\u9032\u3081\u308B", "type": "object", "additionalProperties": false, "required": ["type", "to"], "properties": { "type": { "const": "now" }, "to": { "$ref": "#/definitions/unit" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u5370\u306E\u5217 row \u306E\u3001from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u8272\u3092\u5909\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "row", "from", "to", "color"], "properties": { "type": { "const": "mark" }, "row": { "$ref": "#/definitions/id" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u306B\u3001\u62EC\u5F27\u3068\u5B57\u3092\u51FA\u3059\u3002shape \u304C box \u306A\u3089\u5370\u306E\u5217\u3092\u56F2\u307F\u3001\u5B57\u3092\u7E01\u306E\u672D\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["type", "from", "to", "text"], "properties": { "type": { "const": "span" }, "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" }, "text": { "$ref": "#/definitions/text" }, "shape": { "enum": ["box"] }, "color": { "$ref": "#/definitions/color" } } }, { "description": "\u8449\u3092\u51FA\u3059\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u8449\u306E\u7BB1\u304C\u73FE\u308C\u308B\u3002hash \u3092\u66F8\u304F\u3068\u7BB1\u306B\u5024\u3092\u51FA\u3057\u3001\u540D\u672D\u3092\u8449\u306E\u4E0B\u306E\u672D\u306B\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["type", "id"], "properties": { "type": { "const": "leaf" }, "id": { "$ref": "#/definitions/id" }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "1 \u3064\u4EE5\u4E0A\u306E\u5B50\u304B\u3089\u89AA\u3092\u7D44\u3080\u3002\u6728\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u66F8\u3044\u305F\u6BB5\u3067\u89AA\u306E\u7BB1\u3068\u3001\u5B50\u304B\u3089\u89AA\u3078\u306E\u6728\u306E\u7DDA\u304C\u73FE\u308C\u308B", "type": "object", "additionalProperties": false, "required": ["type", "id", "children"], "properties": { "type": { "const": "node" }, "id": { "$ref": "#/definitions/id" }, "children": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } }, "hash": { "$ref": "#/definitions/hash" } } }, { "description": "\u5217\u306E box \u306E\u4E26\u3073\u3092 items \u306B\u66F8\u304D\u63DB\u3048\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u30C1\u30C3\u30D7\u306F\u524D\u306B\u5C45\u305F\u5217\u304B\u3089\u6ED1\u308A\u3001\u3069\u306E\u5217\u306B\u3082\u5C45\u306A\u304B\u3063\u305F\u30C1\u30C3\u30D7\u306F\u5F3E\u3093\u3067\u73FE\u308C\u3001\u5217\u304B\u3089\u5916\u308C\u305F\u30C1\u30C3\u30D7\u306F\u6D88\u3048\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "items"], "properties": { "type": { "const": "line" }, "box": { "$ref": "#/definitions/id" }, "items": { "type": "array", "minItems": 1, "maxItems": 12, "items": { "$ref": "#/definitions/id" } } } }, { "description": "\u5217 box \u306B\u5C01\u3092\u3057\u3066\u3001\u30C1\u30C3\u30D7\u3092\u96A0\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "seal" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u5C01\u3092\u958B\u3051\u308B\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "open" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u3092\u9078\u3076\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B\u3002\u5217\u306E\u7E01\u306B\u8272\u304C\u4ED8\u304D\u3001\u307B\u304B\u306E\u5217\u304C\u8584\u304F\u306A\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box"], "properties": { "type": { "const": "pick" }, "box": { "$ref": "#/definitions/id" } } }, { "description": "\u5217 box \u306E\u53F3\u306B text \u306E\u672D\u3092\u62BC\u3059\u3002\u5217\u306E\u56F3\u3060\u3051\u304C\u66F8\u3051\u308B", "type": "object", "additionalProperties": false, "required": ["type", "box", "text"], "properties": { "type": { "const": "stamp" }, "box": { "$ref": "#/definitions/id" }, "text": { "$ref": "#/definitions/text" } } }, { "description": "\u4E2D\u8EAB\u306E\u5E2F\u306E\u6B04\u306E\u5024\u3068\u672D", "type": "object", "additionalProperties": false, "required": ["type", "field"], "anyOf": [{ "required": ["value"] }, { "required": ["tag"] }], "properties": { "type": { "const": "strip" }, "field": { "$ref": "#/definitions/text" }, "value": { "$ref": "#/definitions/text" }, "tag": { "$ref": "#/definitions/text" } } }] }, "carry": { "description": "\u7DDA\u306E\u4E0A\u3092\u8D70\u308B\u7269\u3002\u5C01\u7B52 (\u30E1\u30C3\u30BB\u30FC\u30B8\u3084\u8981\u6C42)\u3001\u672D (\u540D\u524D\u306E\u3042\u308B\u5024)\u3001\u786C\u8CA8 (\u4FA1\u5024)\u3001\u7121\u3057", "type": "object", "additionalProperties": false, "required": ["kind"], "properties": { "kind": { "enum": ["envelope", "tag", "coin", "none"] }, "text": { "$ref": "#/definitions/text" } }, "if": { "required": ["kind"], "properties": { "kind": { "const": "tag" } } }, "then": { "required": ["text"] }, "else": { "not": { "required": ["text"] } } }, "sequence": { "description": "\u6642\u7CFB\u5217\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u751F\u5B58\u7DDA\u3092\u5DE6\u304B\u3089\u4E26\u3079\u308B\u9806", "type": "object", "additionalProperties": false, "required": ["lifelines"], "properties": { "lifelines": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/id" } } } }, "state": { "description": "\u72B6\u614B\u9077\u79FB\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u6700\u521D\u306E\u6BB5\u3088\u308A\u524D\u306B\u66F8\u3044\u305F\u3001\u79FB\u308C\u308B\u304C\u6BB5\u3067\u901A\u308B\u3068\u306F\u9650\u3089\u306A\u3044\u7DDA", "type": "object", "additionalProperties": false, "required": ["paths"], "properties": { "paths": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/path" } } } }, "git": { "description": "\u679D\u5206\u304B\u308C\u306E\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u679D\u3092\u4E0A\u304B\u3089\u5E2F\u306B\u4E26\u3079\u308B\u9806", "type": "object", "additionalProperties": false, "required": ["branches"], "properties": { "branches": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/branch" } } } }, "branch": { "description": "\u679D\u3002\u5E2F\u306E\u5DE6\u306B\u540D\u672D\u3068\u6DFB\u3048\u66F8\u304D\u3092\u7F6E\u304F", "type": "object", "additionalProperties": false, "required": ["id"], "properties": { "id": { "$ref": "#/definitions/id" }, "note": { "$ref": "#/definitions/text" } } }, "hash": { "description": "commit \u3068\u6728\u306E\u7BB1\u306E hash\u300216 \u9032\u306E\u5B57\u3067 4 \u304B\u3089 40 \u5B57", "type": "string", "pattern": "^[0-9a-f]{4,40}$" }, "lineup": { "description": "\u5217\u306E\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u5217\u306B\u4E26\u3079\u308B\u30C1\u30C3\u30D7", "type": "object", "additionalProperties": false, "required": ["items"], "properties": { "items": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/item" } } } }, "item": { "description": "\u30C1\u30C3\u30D7\u3002color \u3092\u66F8\u304B\u306A\u3044\u30C1\u30C3\u30D7\u306F\u8584\u3044\u8272\u3067\u3001label \u3092\u66F8\u304B\u306A\u3044\u30C1\u30C3\u30D7\u306F\u8272\u3060\u3051\u3067\u51FA\u3059", "type": "object", "additionalProperties": false, "required": ["id"], "properties": { "id": { "$ref": "#/definitions/id" }, "color": { "$ref": "#/definitions/color" }, "label": { "description": "\u30C1\u30C3\u30D7\u306B\u8F09\u305B\u308B\u5B57", "type": "string", "minLength": 1, "maxLength": 4 } } }, "time": { "description": "\u6642\u9593\u8EF8\u306E\u56F3\u306E\u7A2E\u985E\u306E\u6B04\u3002\u76EE\u76DB\u308A\u3001\u533A\u5207\u308A\u3001\u5370\u306E\u5217\u3001\u7BC0\u76EE\u3001\u62E1\u5927\u306E\u7BC4\u56F2", "type": "object", "additionalProperties": false, "required": ["scale", "rows"], "properties": { "scale": { "$ref": "#/definitions/scale" }, "period": { "$ref": "#/definitions/period" }, "rows": { "type": "array", "minItems": 1, "items": { "$ref": "#/definitions/row" } }, "points": { "type": "array", "items": { "$ref": "#/definitions/point" } }, "zoom": { "$ref": "#/definitions/zoom" } } }, "scale": { "description": "\u76EE\u76DB\u308A\u3002unit \u306E\u540D\u524D\u306E\u76EE\u76DB\u308A\u3092 length \u306E\u9577\u3055\u3067 count \u500B\u4E26\u3079\u3001\u6700\u521D\u306E\u76EE\u76DB\u308A\u306E\u756A\u53F7\u3092 from \u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["unit", "length", "count"], "properties": { "unit": { "$ref": "#/definitions/text" }, "length": { "$ref": "#/definitions/duration" }, "count": { "type": "integer", "minimum": 1 }, "from": { "type": "integer", "minimum": 0 } } }, "duration": { "description": "\u9577\u3055\u3002\u6570\u3068\u5358\u4F4D (ms\u3001s\u3001min\u3001h\u3001d) \u306E\u7D44", "type": "string", "pattern": "^[0-9]+(\\.[0-9]+)?(ms|s|min|h|d)$" }, "unit": { "description": "\u76EE\u76DB\u308A\u306E\u4F4D\u7F6E\u30020 \u304B\u3089\u6570\u3048\u308B", "type": "integer", "minimum": 0 }, "period": { "description": "\u533A\u5207\u308A\u3002\u76EE\u76DB\u308A length \u500B\u3054\u3068\u306B name \u306E\u533A\u5207\u308A\u3092\u7F6E\u304D\u3001\u6700\u521D\u306E\u533A\u5207\u308A\u306E\u756A\u53F7\u3092 from \u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["name", "length"], "properties": { "name": { "$ref": "#/definitions/text" }, "length": { "type": "integer", "minimum": 1 }, "from": { "type": "integer", "minimum": 0 } } }, "row": { "description": "\u5370\u306E\u5217\u3002\u76EE\u76DB\u308A\u3054\u3068\u306B\u5370\u3092 1 \u3064\u7F6E\u304D\u3001empty \u306E\u76EE\u76DB\u308A\u306F\u7A7A\u304D\u306E\u5370\u306B\u3059\u308B", "type": "object", "additionalProperties": false, "required": ["id", "name"], "properties": { "id": { "$ref": "#/definitions/id" }, "name": { "$ref": "#/definitions/text" }, "color": { "$ref": "#/definitions/color" }, "empty": { "type": "array", "items": { "$ref": "#/definitions/unit" } } } }, "point": { "description": "\u7BC0\u76EE\u3002at \u306E\u76EE\u76DB\u308A\u306E\u5370\u306E\u4E0B\u306B\u65D7\u306E\u4E38\u3068\u540D\u672D\u3092\u7F6E\u304F", "type": "object", "additionalProperties": false, "required": ["id", "at"], "properties": { "id": { "$ref": "#/definitions/id" }, "at": { "$ref": "#/definitions/unit" } } }, "zoom": { "description": "\u62E1\u5927\u306E\u7BC4\u56F2\u3002from \u304B\u3089 to \u306E\u76EE\u76DB\u308A\u3054\u3068\u306B\u62E1\u5927\u306E\u5E2F\u306B\u5217\u3092\u4F5C\u308B", "type": "object", "additionalProperties": false, "required": ["from", "to"], "properties": { "from": { "$ref": "#/definitions/unit" }, "to": { "$ref": "#/definitions/unit" } } }, "path": { "description": "\u79FB\u308C\u308B\u9053\u3002\u9001\u308B\u5074\u306B\u59CB\u307E\u308A\u306E\u5370 start\u3001\u53D7\u3051\u308B\u5074\u306B\u7D42\u308F\u308A\u306E\u5370 finish \u3092\u66F8\u3051\u308B\u3002\u3069\u306E\u6BB5\u306B\u3082\u51FA\u306A\u3044\u9053\u306F\u70B9\u7DDA\u3067\u63CF\u304D\u3001\u904B\u3076\u7269\u3092\u8D70\u3089\u305B\u306A\u3044", "type": "object", "additionalProperties": false, "required": ["from", "to"], "properties": { "from": { "$ref": "#/definitions/id" }, "to": { "$ref": "#/definitions/id" }, "label": { "$ref": "#/definitions/text" } } } } };
215
245
  function validate11(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
216
246
  let vErrors = null;
217
247
  let errors = 0;
@@ -1175,6 +1205,7 @@ function validate25(data, { instancePath = "", parentData, parentDataProperty, r
1175
1205
  return errors === 0;
1176
1206
  }
1177
1207
  var schema79 = { "enum": ["blue", "amber", "green", "violet", "rose", "slate", "coin"] };
1208
+ var schema80 = { "description": "\u7BB1\u3068\u533A\u753B\u306E\u30A2\u30A4\u30B3\u30F3\u540D\u3002\u63CF\u304F\u90E8\u54C1\u306E\u30A2\u30A4\u30B3\u30F3\u306E\u8868 (ICONS) \u306B\u5728\u308B\u540D\u524D\u3060\u3051", "enum": ["app", "router", "on", "off", "pool", "db", "exe", "idx", "sign", "env", "lock", "check", "flag", "x", "chain", "net", "user", "server", "key", "shield", "globe", "bolt", "doc", "box", "truck", "card", "cart", "clock", "branch", "cloud", "refresh", "undo", "yen", "layers", "code", "paint", "tree", "block"] };
1178
1209
  var pattern0 = new RegExp("^[^\\s\\[\\]\u300C\u300D=:]+$", "u");
1179
1210
  var func3 = ucs2length;
1180
1211
  function validate30(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
@@ -1290,32 +1321,22 @@ function validate30(data, { instancePath = "", parentData, parentDataProperty, r
1290
1321
  }
1291
1322
  if (data.icon !== void 0) {
1292
1323
  let data4 = data.icon;
1293
- if (typeof data4 === "string") {
1294
- if (func3(data4) < 1) {
1295
- const err10 = { instancePath: instancePath + "/icon", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1296
- if (vErrors === null) {
1297
- vErrors = [err10];
1298
- } else {
1299
- vErrors.push(err10);
1300
- }
1301
- errors++;
1302
- }
1303
- } else {
1304
- const err11 = { instancePath: instancePath + "/icon", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1324
+ if (!(data4 === "app" || data4 === "router" || data4 === "on" || data4 === "off" || data4 === "pool" || data4 === "db" || data4 === "exe" || data4 === "idx" || data4 === "sign" || data4 === "env" || data4 === "lock" || data4 === "check" || data4 === "flag" || data4 === "x" || data4 === "chain" || data4 === "net" || data4 === "user" || data4 === "server" || data4 === "key" || data4 === "shield" || data4 === "globe" || data4 === "bolt" || data4 === "doc" || data4 === "box" || data4 === "truck" || data4 === "card" || data4 === "cart" || data4 === "clock" || data4 === "branch" || data4 === "cloud" || data4 === "refresh" || data4 === "undo" || data4 === "yen" || data4 === "layers" || data4 === "code" || data4 === "paint" || data4 === "tree" || data4 === "block")) {
1325
+ const err10 = { instancePath: instancePath + "/icon", schemaPath: "#/definitions/icon/enum", keyword: "enum", params: { allowedValues: schema80.enum }, message: "must be equal to one of the allowed values" };
1305
1326
  if (vErrors === null) {
1306
- vErrors = [err11];
1327
+ vErrors = [err10];
1307
1328
  } else {
1308
- vErrors.push(err11);
1329
+ vErrors.push(err10);
1309
1330
  }
1310
1331
  errors++;
1311
1332
  }
1312
1333
  }
1313
1334
  } else {
1314
- const err12 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1335
+ const err11 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1315
1336
  if (vErrors === null) {
1316
- vErrors = [err12];
1337
+ vErrors = [err11];
1317
1338
  } else {
1318
- vErrors.push(err12);
1339
+ vErrors.push(err11);
1319
1340
  }
1320
1341
  errors++;
1321
1342
  }
@@ -1436,22 +1457,12 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
1436
1457
  }
1437
1458
  if (data.icon !== void 0) {
1438
1459
  let data4 = data.icon;
1439
- if (typeof data4 === "string") {
1440
- if (func3(data4) < 1) {
1441
- const err10 = { instancePath: instancePath + "/icon", schemaPath: "#/definitions/text/minLength", keyword: "minLength", params: { limit: 1 }, message: "must NOT have fewer than 1 characters" };
1442
- if (vErrors === null) {
1443
- vErrors = [err10];
1444
- } else {
1445
- vErrors.push(err10);
1446
- }
1447
- errors++;
1448
- }
1449
- } else {
1450
- const err11 = { instancePath: instancePath + "/icon", schemaPath: "#/definitions/text/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1460
+ if (!(data4 === "app" || data4 === "router" || data4 === "on" || data4 === "off" || data4 === "pool" || data4 === "db" || data4 === "exe" || data4 === "idx" || data4 === "sign" || data4 === "env" || data4 === "lock" || data4 === "check" || data4 === "flag" || data4 === "x" || data4 === "chain" || data4 === "net" || data4 === "user" || data4 === "server" || data4 === "key" || data4 === "shield" || data4 === "globe" || data4 === "bolt" || data4 === "doc" || data4 === "box" || data4 === "truck" || data4 === "card" || data4 === "cart" || data4 === "clock" || data4 === "branch" || data4 === "cloud" || data4 === "refresh" || data4 === "undo" || data4 === "yen" || data4 === "layers" || data4 === "code" || data4 === "paint" || data4 === "tree" || data4 === "block")) {
1461
+ const err10 = { instancePath: instancePath + "/icon", schemaPath: "#/definitions/icon/enum", keyword: "enum", params: { allowedValues: schema80.enum }, message: "must be equal to one of the allowed values" };
1451
1462
  if (vErrors === null) {
1452
- vErrors = [err11];
1463
+ vErrors = [err10];
1453
1464
  } else {
1454
- vErrors.push(err11);
1465
+ vErrors.push(err10);
1455
1466
  }
1456
1467
  errors++;
1457
1468
  }
@@ -1460,20 +1471,20 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
1460
1471
  let data5 = data.region;
1461
1472
  if (typeof data5 === "string") {
1462
1473
  if (!pattern0.test(data5)) {
1463
- const err12 = { instancePath: instancePath + "/region", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
1474
+ const err11 = { instancePath: instancePath + "/region", schemaPath: "#/definitions/id/pattern", keyword: "pattern", params: { pattern: "^[^\\s\\[\\]\u300C\u300D=:]+$" }, message: 'must match pattern "^[^\\s\\[\\]\u300C\u300D=:]+$"' };
1464
1475
  if (vErrors === null) {
1465
- vErrors = [err12];
1476
+ vErrors = [err11];
1466
1477
  } else {
1467
- vErrors.push(err12);
1478
+ vErrors.push(err11);
1468
1479
  }
1469
1480
  errors++;
1470
1481
  }
1471
1482
  } else {
1472
- const err13 = { instancePath: instancePath + "/region", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1483
+ const err12 = { instancePath: instancePath + "/region", schemaPath: "#/definitions/id/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1473
1484
  if (vErrors === null) {
1474
- vErrors = [err13];
1485
+ vErrors = [err12];
1475
1486
  } else {
1476
- vErrors.push(err13);
1487
+ vErrors.push(err12);
1477
1488
  }
1478
1489
  errors++;
1479
1490
  }
@@ -1482,30 +1493,30 @@ function validate32(data, { instancePath = "", parentData, parentDataProperty, r
1482
1493
  let data6 = data.link;
1483
1494
  if (typeof data6 === "string") {
1484
1495
  if (!pattern3.test(data6)) {
1485
- const err14 = { instancePath: instancePath + "/link", schemaPath: "#/definitions/url/pattern", keyword: "pattern", params: { pattern: "^(/|https?://)" }, message: 'must match pattern "^(/|https?://)"' };
1496
+ const err13 = { instancePath: instancePath + "/link", schemaPath: "#/definitions/url/pattern", keyword: "pattern", params: { pattern: "^(/|https?://)" }, message: 'must match pattern "^(/|https?://)"' };
1486
1497
  if (vErrors === null) {
1487
- vErrors = [err14];
1498
+ vErrors = [err13];
1488
1499
  } else {
1489
- vErrors.push(err14);
1500
+ vErrors.push(err13);
1490
1501
  }
1491
1502
  errors++;
1492
1503
  }
1493
1504
  } else {
1494
- const err15 = { instancePath: instancePath + "/link", schemaPath: "#/definitions/url/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1505
+ const err14 = { instancePath: instancePath + "/link", schemaPath: "#/definitions/url/type", keyword: "type", params: { type: "string" }, message: "must be string" };
1495
1506
  if (vErrors === null) {
1496
- vErrors = [err15];
1507
+ vErrors = [err14];
1497
1508
  } else {
1498
- vErrors.push(err15);
1509
+ vErrors.push(err14);
1499
1510
  }
1500
1511
  errors++;
1501
1512
  }
1502
1513
  }
1503
1514
  } else {
1504
- const err16 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1515
+ const err15 = { instancePath, schemaPath: "#/type", keyword: "type", params: { type: "object" }, message: "must be object" };
1505
1516
  if (vErrors === null) {
1506
- vErrors = [err16];
1517
+ vErrors = [err15];
1507
1518
  } else {
1508
- vErrors.push(err16);
1519
+ vErrors.push(err15);
1509
1520
  }
1510
1521
  errors++;
1511
1522
  }
@@ -6565,6 +6576,7 @@ function validate10(data, { instancePath = "", parentData, parentDataProperty, r
6565
6576
 
6566
6577
  // src/schema.ts
6567
6578
  var COLORS = ["blue", "amber", "green", "violet", "rose", "slate", "coin"];
6579
+ var ICON_NAMES = Object.keys(ICONS);
6568
6580
  var EVENT_TYPES = ["edge", "action", "swap", "strip", "commit", "branch", "now", "mark", "span", "leaf", "node", "line", "seal", "open", "pick", "stamp"];
6569
6581
  var ABSENT = "#/definitions/absent/not";
6570
6582
  var ABSENT_KINDS = {
@@ -6594,7 +6606,16 @@ var WIRED_EVENTS = ["edge", "action"];
6594
6606
  var DURATION = /^\^\[0-9\]\+\(\\\.\[0-9\]\+\)\?\(([a-z|]+)\)\$$/u;
6595
6607
  var RATIO = /%\)\$$/u;
6596
6608
  var escape = (key2) => key2.replaceAll("~", "~0").replaceAll("/", "~1");
6609
+ function valueAt(input, pointer) {
6610
+ let value2 = input;
6611
+ for (const raw of pointer.split("/").slice(1)) {
6612
+ if (typeof value2 !== "object" || value2 === null) return void 0;
6613
+ value2 = value2[raw.replaceAll("~1", "/").replaceAll("~0", "~")];
6614
+ }
6615
+ return value2;
6616
+ }
6597
6617
  var URL_RULE = "#/definitions/url/pattern";
6618
+ var ICON_RULE = "#/definitions/icon/enum";
6598
6619
  var HEX = /^\^\[0-9a-f\]\{(\d+),(\d+)\}\$$/u;
6599
6620
  function forbiddenOf(pattern) {
6600
6621
  const inside = /^\^\[\^(.+)\]\+\$$/u.exec(pattern)?.[1];
@@ -6605,7 +6626,7 @@ function forbiddenOf(pattern) {
6605
6626
  var branchesOf = (anyOf, errors) => errors.filter(
6606
6627
  (error) => error !== anyOf && error.schemaPath.startsWith(`${anyOf.schemaPath}/`) && (error.instancePath === anyOf.instancePath || error.instancePath.startsWith(`${anyOf.instancePath}/`))
6607
6628
  );
6608
- function toFieldError(error, errors, m) {
6629
+ function toFieldError(error, errors, m, input) {
6609
6630
  const params = error.params;
6610
6631
  const at = error.instancePath;
6611
6632
  switch (error.keyword) {
@@ -6638,8 +6659,12 @@ function toFieldError(error, errors, m) {
6638
6659
  const tag = String(params.tag);
6639
6660
  return { pointer: `${at}/${escape(tag)}`, message: m.discriminator(tag, EVENT_TYPES) };
6640
6661
  }
6641
- case "enum":
6662
+ case "enum": {
6663
+ const written = error.schemaPath === ICON_RULE ? valueAt(input, at) : void 0;
6664
+ const near = typeof written === "string" ? nearest(written, ICON_NAMES) : void 0;
6665
+ if (typeof written === "string" && near !== void 0) return { pointer: at, message: m.unknownIcon(written, near) };
6642
6666
  return { pointer: at, message: m.enum(params.allowedValues.map(String)) };
6667
+ }
6643
6668
  case "type":
6644
6669
  return { pointer: at, message: m.type(String(params.type)) };
6645
6670
  case "minLength":
@@ -6675,12 +6700,16 @@ function validateDiagram(input, options = {}) {
6675
6700
  const all = validate_diagram_default.errors ?? [];
6676
6701
  const inBranch = new Set(all.filter((error) => error.keyword === "anyOf").flatMap((anyOf) => branchesOf(anyOf, all)));
6677
6702
  const m = FIELD_MESSAGES[options.lang ?? "ja"];
6678
- const errors = all.filter((error) => error.keyword !== "if" && !inBranch.has(error)).map((error) => toFieldError(error, all, m));
6703
+ const errors = all.filter((error) => error.keyword !== "if" && !inBranch.has(error)).map((error) => toFieldError(error, all, m, input));
6679
6704
  return { ok: false, errors };
6680
6705
  }
6681
6706
 
6682
6707
  // src/messages.ts
6683
6708
  var list = (words) => words.join(" / ");
6709
+ var withNear = (value2, near, none) => {
6710
+ const name2 = nearest(value2, ICON_NAMES);
6711
+ return name2 === void 0 ? none : near(name2);
6712
+ };
6684
6713
  var ja2 = () => {
6685
6714
  const shapes = {
6686
6715
  sequence: "sequence <\u984C>",
@@ -6741,6 +6770,7 @@ var ja2 = () => {
6741
6770
  attrTwice: (key2) => `${key2} \u306F 1 \u3064\u306E\u884C\u306B 1 \u3064\u307E\u3067`,
6742
6771
  badAttr: (key2, allowed) => `${key2} \u306F\u3053\u306E\u884C\u306B\u66F8\u3051\u306A\u3044\u5C5E\u6027\u3002\u66F8\u3051\u308B\u306E\u306F ${list(allowed)}`,
6743
6772
  badColor: `color \u306F ${list(COLORS)} \u306E\u3069\u308C\u304B`,
6773
+ badIcon: (value2) => withNear(value2, (near) => `${value2} \u3068\u3044\u3046 icon \u306F\u7121\u3044\u3002\u8FD1\u3044\u540D\u524D\u306F ${near}`, `icon \u306F ${list(ICON_NAMES)} \u306E\u3069\u308C\u304B`),
6744
6774
  badView: `view \u306F ${list(VIEWS)} \u306E\u3069\u308C\u304B`,
6745
6775
  badCarry: `carry \u306F ${list(CARRIES)} \u306E\u3069\u308C\u304B\u3002\u672D\u306F tag: <\u5024> \u3067\u66F8\u304F`,
6746
6776
  badSide: `side \u306F ${list(SIDES)} \u306E\u3069\u308C\u304B`,
@@ -6879,6 +6909,7 @@ var en2 = () => {
6879
6909
  attrTwice: (key2) => `Write ${key2} only once on a line`,
6880
6910
  badAttr: (key2, allowed) => `${key2} cannot be written on this line. Write ${list(allowed)}`,
6881
6911
  badColor: `color is one of ${list(COLORS)}`,
6912
+ badIcon: (value2) => withNear(value2, (near) => `There is no icon named ${value2}. The closest is ${near}`, `icon is one of ${list(ICON_NAMES)}`),
6882
6913
  badView: `view is one of ${list(VIEWS)}`,
6883
6914
  badCarry: `carry is one of ${list(CARRIES)}. Write a tag as tag: <value>`,
6884
6915
  badSide: `side is one of ${list(SIDES)}`,
@@ -7138,12 +7169,13 @@ function readDeclared(source, word, allowed, m) {
7138
7169
  function lookOf(source, attrs2, m) {
7139
7170
  const color = attrs2.get("color");
7140
7171
  if (color && !isOneOf(COLORS, color.value)) throw fail(source, color.at, m.badColor);
7172
+ const icon = attrs2.get("icon");
7173
+ if (icon && !ICON_NAMES.includes(icon.value)) throw fail(source, icon.at, m.badIcon(icon.value));
7141
7174
  const note = attrs2.get("note")?.value;
7142
- const icon = attrs2.get("icon")?.value;
7143
7175
  return {
7144
7176
  ...note !== void 0 ? { note } : {},
7145
7177
  ...color ? { color: color.value } : {},
7146
- ...icon !== void 0 ? { icon } : {}
7178
+ ...icon ? { icon: icon.value } : {}
7147
7179
  };
7148
7180
  }
7149
7181
  function oldForm(text, inStep) {
@@ -9266,7 +9298,7 @@ function drawSvg(diagram, layout, timeline, palette, theme, follow, ink = [], tr
9266
9298
  const vars = paletteVars(palette, theme);
9267
9299
  const id = nameOf(`${JSON.stringify(diagram)}|${vars}|${follow ? `${follow.width}|${follow.lang}` : ""}`);
9268
9300
  const m = new Motion(`dg${id}`, timeline.total, timeline.last);
9269
- const ctx = { m, t: timeline, id, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces };
9301
+ const ctx = { m, t: timeline, id, sh: `filter="url(#dg-sh-${id})"`, end: timeline.steps[timeline.steps.length - 1].end, ink, traces, boxText: boxTextY(layout.boxes) };
9270
9302
  const on = involved(diagram);
9271
9303
  const subs = subChanges(diagram, timeline, layout.kind !== "sequence");
9272
9304
  const L = { band: [], base: [], lit: [], node: [], badge: [], top: [] };
@@ -9858,11 +9890,11 @@ function mountDiagram(host, diagram, options = {}) {
9858
9890
 
9859
9891
  // src/light.ts
9860
9892
  var LOADERS = {
9861
- git: () => import("./git-GESUYKGR.js"),
9862
- lineup: () => import("./lineup-2V2U7HZH.js"),
9863
- state: () => import("./state-T4OTVING.js"),
9864
- time: () => import("./time-O4CMTUV5.js"),
9865
- tree: () => import("./tree-ZJZQI5QT.js")
9893
+ git: () => import("./git-WEJL6VAY.js"),
9894
+ lineup: () => import("./lineup-6LN6Z5T2.js"),
9895
+ state: () => import("./state-DFYTMQI7.js"),
9896
+ time: () => import("./time-M3EGEFDU.js"),
9897
+ tree: () => import("./tree-MFU54QKY.js")
9866
9898
  };
9867
9899
  var isLater = (kind) => LATER_KINDS.includes(kind);
9868
9900
  async function loadKind(kind) {