@diagrammo/dgmo 0.8.6 → 0.8.8
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/.claude/commands/dgmo.md +1 -27
- package/.cursorrules +2 -2
- package/.github/copilot-instructions.md +2 -2
- package/.windsurfrules +2 -2
- package/AGENTS.md +2 -2
- package/README.md +0 -1
- package/dist/index.cjs +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/docs/ai-integration.md +1 -1
- package/docs/language-reference.md +81 -162
- package/package.json +1 -1
- package/src/boxes-and-lines/parser.ts +4 -1
- package/src/gantt/parser.ts +4 -1
- package/src/infra/parser.ts +4 -1
- package/src/kanban/parser.ts +4 -1
- package/src/utils/tag-groups.ts +38 -14
package/.claude/commands/dgmo.md
CHANGED
|
@@ -97,7 +97,7 @@ For **examples** of real diagrams, call `mcp__dgmo__get_examples("<type>")` —
|
|
|
97
97
|
- "process" / "decision" / "flow" → `flowchart`
|
|
98
98
|
- "states" / "lifecycle" / "transitions" → `state`
|
|
99
99
|
- "org" / "team" / "hierarchy" → `org`
|
|
100
|
-
- "roadmap" / "project status" → `
|
|
100
|
+
- "roadmap" / "project status" → `gantt`
|
|
101
101
|
- "boxes" / "nodes and edges" / "general diagram" → `boxes-and-lines`
|
|
102
102
|
- "compare" / "metrics" / "data" → `bar`, `line`, `pie`, etc.
|
|
103
103
|
- If genuinely ambiguous, suggest your best guess with a one-line rationale.
|
|
@@ -254,7 +254,6 @@ Key options:
|
|
|
254
254
|
| `org` | Hierarchical tree structures |
|
|
255
255
|
| `kanban` | Task / workflow columns |
|
|
256
256
|
| `c4` | System architecture (context → container → component → deployment) |
|
|
257
|
-
| `initiative-status` | Project roadmap with dependency tracking |
|
|
258
257
|
| `sitemap` | Website / app navigation structure |
|
|
259
258
|
| `infra` | Infrastructure traffic flow with rps computation |
|
|
260
259
|
| `gantt` | Project scheduling with dependencies |
|
|
@@ -513,31 +512,6 @@ Canvas
|
|
|
513
512
|
- Relationships: `A *-- B` (composition), `A o-- B` (aggregation), `A --|> B` (inheritance), `A ..|> B` (implementation), `A ..> B` (dependency), `A -> B` (association)
|
|
514
513
|
- Optional label: `A *-- B : description`
|
|
515
514
|
|
|
516
|
-
### initiative-status
|
|
517
|
-
|
|
518
|
-
```
|
|
519
|
-
initiative-status Q2 Roadmap
|
|
520
|
-
|
|
521
|
-
[Identity]
|
|
522
|
-
Auth Service | done
|
|
523
|
-
SSO Integration | doing
|
|
524
|
-
-> Auth Service | done
|
|
525
|
-
MFA Rollout | blocked
|
|
526
|
-
-> SSO Integration | doing
|
|
527
|
-
|
|
528
|
-
[Payments]
|
|
529
|
-
Payment Gateway | doing
|
|
530
|
-
Billing UI | todo
|
|
531
|
-
-> Payment Gateway | doing
|
|
532
|
-
|
|
533
|
-
Auth Service -> Payment Gateway: validates | done
|
|
534
|
-
```
|
|
535
|
-
|
|
536
|
-
- Status values: `done`, `doing`, `todo`, `blocked`, `na`
|
|
537
|
-
- Dependencies: `-> Target | status` (indented) or `Source -> Target: label | status`
|
|
538
|
-
- Groups: `[Group Name]` with indented items
|
|
539
|
-
- Tags supported for phase/team coloring
|
|
540
|
-
|
|
541
515
|
### venn
|
|
542
516
|
|
|
543
517
|
```
|
package/.cursorrules
CHANGED
|
@@ -121,9 +121,9 @@ API Gateway | t: Backend
|
|
|
121
121
|
|
|
122
122
|
Nodes: implicit from edges or explicit with `| metadata`. Edges: `A -label-> B`, `A <-label-> B` (bidi). Groups: `[Name]` with indented children (max 2 levels). Tags: `tag Name alias values`, `active-tag`, `hide`. Options: `direction LR|TB`.
|
|
123
123
|
|
|
124
|
-
## All
|
|
124
|
+
## All 33 chart types
|
|
125
125
|
|
|
126
|
-
bar, line, multi-line, area, pie, doughnut, radar, polar-area, bar-stacked, scatter, sankey, chord, function, heatmap, funnel, slope, wordcloud, arc, timeline, venn, quadrant, sequence, flowchart, state, class, er, org, kanban, c4,
|
|
126
|
+
bar, line, multi-line, area, pie, doughnut, radar, polar-area, bar-stacked, scatter, sankey, chord, function, heatmap, funnel, slope, wordcloud, arc, timeline, venn, quadrant, sequence, flowchart, state, class, er, org, kanban, c4, sitemap, infra, gantt, boxes-and-lines
|
|
127
127
|
|
|
128
128
|
## Common patterns
|
|
129
129
|
|
|
@@ -125,9 +125,9 @@ API Gateway | t: Backend
|
|
|
125
125
|
|
|
126
126
|
Nodes: implicit from edges or explicit with `| metadata`. Edges: `A -label-> B`, `A <-label-> B` (bidi). Groups: `[Name]` with indented children (max 2 levels). Tags: `tag Name alias values`, `active-tag`, `hide`. Options: `direction LR|TB`.
|
|
127
127
|
|
|
128
|
-
## All
|
|
128
|
+
## All 33 chart types
|
|
129
129
|
|
|
130
|
-
bar, line, multi-line, area, pie, doughnut, radar, polar-area, bar-stacked, scatter, sankey, chord, function, heatmap, funnel, slope, wordcloud, arc, timeline, venn, quadrant, sequence, flowchart, state, class, er, org, kanban, c4,
|
|
130
|
+
bar, line, multi-line, area, pie, doughnut, radar, polar-area, bar-stacked, scatter, sankey, chord, function, heatmap, funnel, slope, wordcloud, arc, timeline, venn, quadrant, sequence, flowchart, state, class, er, org, kanban, c4, sitemap, infra, gantt, boxes-and-lines
|
|
131
131
|
|
|
132
132
|
## Common patterns
|
|
133
133
|
|
package/.windsurfrules
CHANGED
|
@@ -121,9 +121,9 @@ API Gateway | t: Backend
|
|
|
121
121
|
|
|
122
122
|
Nodes: implicit from edges or explicit with `| metadata`. Edges: `A -label-> B`, `A <-label-> B` (bidi). Groups: `[Name]` with indented children (max 2 levels). Tags: `tag Name alias values`, `active-tag`, `hide`. Options: `direction LR|TB`.
|
|
123
123
|
|
|
124
|
-
## All
|
|
124
|
+
## All 33 chart types
|
|
125
125
|
|
|
126
|
-
bar, line, multi-line, area, pie, doughnut, radar, polar-area, bar-stacked, scatter, sankey, chord, function, heatmap, funnel, slope, wordcloud, arc, timeline, venn, quadrant, sequence, flowchart, state, class, er, org, kanban, c4,
|
|
126
|
+
bar, line, multi-line, area, pie, doughnut, radar, polar-area, bar-stacked, scatter, sankey, chord, function, heatmap, funnel, slope, wordcloud, arc, timeline, venn, quadrant, sequence, flowchart, state, class, er, org, kanban, c4, sitemap, infra, gantt, boxes-and-lines
|
|
127
127
|
|
|
128
128
|
## Common patterns
|
|
129
129
|
|
package/AGENTS.md
CHANGED
|
@@ -113,9 +113,9 @@ API
|
|
|
113
113
|
latency-ms: 45
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
## All
|
|
116
|
+
## All 33 chart types
|
|
117
117
|
|
|
118
|
-
bar, line, multi-line, area, pie, doughnut, radar, polar-area, bar-stacked, scatter, sankey, chord, function, heatmap, funnel, slope, wordcloud, arc, timeline, venn, quadrant, sequence, flowchart, state, class, er, org, kanban, c4,
|
|
118
|
+
bar, line, multi-line, area, pie, doughnut, radar, polar-area, bar-stacked, scatter, sankey, chord, function, heatmap, funnel, slope, wordcloud, arc, timeline, venn, quadrant, sequence, flowchart, state, class, er, org, kanban, c4, sitemap, infra, gantt, boxes-and-lines
|
|
119
119
|
|
|
120
120
|
### Boxes and lines
|
|
121
121
|
```
|
package/README.md
CHANGED
|
@@ -108,7 +108,6 @@ dgmo diagram.dgmo --theme dark --palette catppuccin
|
|
|
108
108
|
| `state` | State machine diagrams |
|
|
109
109
|
| `infra` | Infrastructure capacity and latency diagrams |
|
|
110
110
|
| `kanban` | Kanban boards |
|
|
111
|
-
| `initiative-status` | Initiative status and dependency graphs |
|
|
112
111
|
| `sitemap` | Site structure and navigation maps |
|
|
113
112
|
|
|
114
113
|
### Other
|
package/dist/index.cjs
CHANGED
|
@@ -1677,7 +1677,9 @@ function parseTagDeclaration(line10) {
|
|
|
1677
1677
|
restStartIdx = 2;
|
|
1678
1678
|
}
|
|
1679
1679
|
} else {
|
|
1680
|
-
const aliasKeywordIdx = tokens.findIndex(
|
|
1680
|
+
const aliasKeywordIdx = tokens.findIndex(
|
|
1681
|
+
(t, i) => i > 0 && t.toLowerCase() === "alias"
|
|
1682
|
+
);
|
|
1681
1683
|
if (aliasKeywordIdx > 0 && aliasKeywordIdx + 1 < tokens.length) {
|
|
1682
1684
|
name = tokens.slice(0, aliasKeywordIdx).map((t) => stripQuotes(t)).join(" ");
|
|
1683
1685
|
alias = tokens[aliasKeywordIdx + 1];
|
|
@@ -1739,9 +1741,7 @@ function resolveTagColor(metadata, tagGroups, activeGroupName, isContainer) {
|
|
|
1739
1741
|
if (!group) return void 0;
|
|
1740
1742
|
const metaValue = metadata[group.name.toLowerCase()] ?? (isContainer ? void 0 : group.defaultValue);
|
|
1741
1743
|
if (!metaValue) return "#999999";
|
|
1742
|
-
return group.entries.find(
|
|
1743
|
-
(e) => e.value.toLowerCase() === metaValue.toLowerCase()
|
|
1744
|
-
)?.color ?? "#999999";
|
|
1744
|
+
return group.entries.find((e) => e.value.toLowerCase() === metaValue.toLowerCase())?.color ?? "#999999";
|
|
1745
1745
|
}
|
|
1746
1746
|
function validateTagValues(entities, tagGroups, pushWarning, suggestFn) {
|
|
1747
1747
|
if (tagGroups.length === 0) return;
|
|
@@ -1778,7 +1778,10 @@ function injectDefaultTagMetadata(entities, tagGroups, skip) {
|
|
|
1778
1778
|
const defaults = [];
|
|
1779
1779
|
for (const group of tagGroups) {
|
|
1780
1780
|
if (group.defaultValue) {
|
|
1781
|
-
defaults.push({
|
|
1781
|
+
defaults.push({
|
|
1782
|
+
key: group.name.toLowerCase(),
|
|
1783
|
+
value: group.defaultValue
|
|
1784
|
+
});
|
|
1782
1785
|
}
|
|
1783
1786
|
}
|
|
1784
1787
|
if (defaults.length === 0) return;
|