@markdy/stdlib-systems 0.7.28 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -11
- package/dist/index.d.ts +11 -4
- package/dist/index.js +10 -199
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
# @markdy/stdlib-systems
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The system-diagram vocabulary for MarkdyScript.
|
|
4
|
+
|
|
5
|
+
As of MarkdyScript 0.8 the node vocabulary ships inside `@markdy/core`, so there
|
|
6
|
+
is **no registration step** — every node kind below is available out of the box.
|
|
7
|
+
This package re-exports that vocabulary and a `systemsPack` manifest for tooling
|
|
8
|
+
that wants a single import listing every supported node type and flow action.
|
|
4
9
|
|
|
5
10
|
```ts
|
|
6
|
-
import {
|
|
7
|
-
import { systemsPack } from "@markdy/stdlib-systems";
|
|
11
|
+
import { systemsPack, SYSTEM_NODE_TYPES, SYSTEM_FLOW_ACTIONS } from "@markdy/stdlib-systems";
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
systemsPack.nodes; // every supported node type
|
|
14
|
+
systemsPack.actions; // ["request", "response", "event", "dependency"]
|
|
10
15
|
```
|
|
11
16
|
|
|
12
|
-
|
|
17
|
+
Node types:
|
|
13
18
|
|
|
14
19
|
Architecture / technical nodes:
|
|
15
20
|
- Compute/backend: `service`, `api`, `microservice`, `backend`, `server`, `worker`, `job`, `scheduler`, `cron`, `batch`, `function`, `lambda`, `edge`, `controller`, `handler`, `repository`, `runtime`, `process`
|
|
@@ -35,17 +40,19 @@ Generic visual primitives:
|
|
|
35
40
|
- `chips` (`token_strip` alias)
|
|
36
41
|
- `glyph` (`glyph_card` alias)
|
|
37
42
|
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
43
|
+
Flow operators (from `@markdy/core`):
|
|
44
|
+
- `->` request
|
|
45
|
+
- `<-` response
|
|
46
|
+
- `~>` event
|
|
47
|
+
- `--` dependency
|
|
42
48
|
|
|
43
49
|
## Package position (text)
|
|
44
50
|
|
|
45
51
|
```text
|
|
46
|
-
@markdy/stdlib-systems
|
|
52
|
+
@markdy/stdlib-systems re-exports the node vocabulary from @markdy/core
|
|
47
53
|
|
|
48
|
-
|
|
54
|
+
The vocabulary is built into the core parser — this package is a convenience
|
|
55
|
+
re-export and manifest, not a runtime registration step.
|
|
49
56
|
```
|
|
50
57
|
|
|
51
58
|
## Output preview
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
export { TECHNICAL_NODE_TYPES, VISUAL_PRIMITIVE_TYPES } from '@markdy/core';
|
|
2
2
|
|
|
3
|
+
declare const SYSTEM_NODE_TYPES: readonly ["service", "api", "microservice", "backend", "server", "worker", "job", "scheduler", "cron", "batch", "function", "lambda", "edge", "controller", "handler", "repository", "module", "package", "library", "sdk", "cli", "runtime", "process", "client", "user", "browser", "web", "mobile", "desktop", "frontend", "app", "page", "view", "component", "store", "db", "database", "sql", "nosql", "table", "index", "warehouse", "lake", "object_store", "bucket", "blob", "volume", "disk", "search", "cache", "queue", "topic", "stream", "event", "event_bus", "bus", "broker", "pubsub", "kafka", "producer", "consumer", "dead_letter", "dlq", "webhook", "cloud", "region", "vpc", "subnet", "network", "internet", "dns", "cdn", "proxy", "gateway", "api_gateway", "load_balancer", "reverse_proxy", "router", "switch", "nat", "firewall", "waf", "vpn", "bastion", "container", "cluster", "pod", "node", "deployment", "replicaset", "statefulset", "daemonset", "namespace", "ingress", "service_mesh", "sidecar", "image", "registry", "docker", "compose", "helm", "chart", "configmap", "pvc", "auth", "identity", "oauth", "oidc", "jwt", "session", "policy", "role", "permission", "vault", "secret", "key", "certificate", "repo", "branch", "commit", "pipeline", "workflow", "runner", "build", "test", "artifact", "deploy", "release", "environment", "preview", "monitor", "metrics", "logs", "trace", "alert", "dashboard", "probe", "slo", "start", "end", "state", "decision", "condition", "step", "loop", "sequence", "participant", "replica", "shard", "leader", "follower", "quorum", "consensus", "lock", "class", "interface", "method", "object", "enum", "type", "panel", "surface", "terminal", "metric", "stat", "grid", "matrix", "lane", "track", "marker", "dot", "token_strip", "chips", "glyph_card", "glyph"];
|
|
4
|
+
/** Backwards-compatible alias for the pre-0.8 export name. */
|
|
3
5
|
declare const SYSTEM_ACTOR_TYPES: readonly ["service", "api", "microservice", "backend", "server", "worker", "job", "scheduler", "cron", "batch", "function", "lambda", "edge", "controller", "handler", "repository", "module", "package", "library", "sdk", "cli", "runtime", "process", "client", "user", "browser", "web", "mobile", "desktop", "frontend", "app", "page", "view", "component", "store", "db", "database", "sql", "nosql", "table", "index", "warehouse", "lake", "object_store", "bucket", "blob", "volume", "disk", "search", "cache", "queue", "topic", "stream", "event", "event_bus", "bus", "broker", "pubsub", "kafka", "producer", "consumer", "dead_letter", "dlq", "webhook", "cloud", "region", "vpc", "subnet", "network", "internet", "dns", "cdn", "proxy", "gateway", "api_gateway", "load_balancer", "reverse_proxy", "router", "switch", "nat", "firewall", "waf", "vpn", "bastion", "container", "cluster", "pod", "node", "deployment", "replicaset", "statefulset", "daemonset", "namespace", "ingress", "service_mesh", "sidecar", "image", "registry", "docker", "compose", "helm", "chart", "configmap", "pvc", "auth", "identity", "oauth", "oidc", "jwt", "session", "policy", "role", "permission", "vault", "secret", "key", "certificate", "repo", "branch", "commit", "pipeline", "workflow", "runner", "build", "test", "artifact", "deploy", "release", "environment", "preview", "monitor", "metrics", "logs", "trace", "alert", "dashboard", "probe", "slo", "start", "end", "state", "decision", "condition", "step", "loop", "sequence", "participant", "replica", "shard", "leader", "follower", "quorum", "consensus", "lock", "class", "interface", "method", "object", "enum", "type", "panel", "surface", "terminal", "metric", "stat", "grid", "matrix", "lane", "track", "marker", "dot", "token_strip", "chips", "glyph_card", "glyph"];
|
|
4
|
-
declare const SYSTEM_FLOW_ACTIONS: readonly ["request", "response", "
|
|
5
|
-
|
|
6
|
+
declare const SYSTEM_FLOW_ACTIONS: readonly ["request", "response", "event", "dependency"];
|
|
7
|
+
interface SystemsPack {
|
|
8
|
+
name: string;
|
|
9
|
+
nodes: readonly string[];
|
|
10
|
+
actions: readonly string[];
|
|
11
|
+
}
|
|
12
|
+
declare const systemsPack: SystemsPack;
|
|
6
13
|
|
|
7
|
-
export { SYSTEM_ACTOR_TYPES, SYSTEM_FLOW_ACTIONS, systemsPack };
|
|
14
|
+
export { SYSTEM_ACTOR_TYPES, SYSTEM_FLOW_ACTIONS, SYSTEM_NODE_TYPES, type SystemsPack, systemsPack };
|
package/dist/index.js
CHANGED
|
@@ -1,211 +1,22 @@
|
|
|
1
|
-
// ../core/src/system-vocabulary.ts
|
|
2
|
-
var TECHNICAL_NODE_TYPES = [
|
|
3
|
-
"service",
|
|
4
|
-
"api",
|
|
5
|
-
"microservice",
|
|
6
|
-
"backend",
|
|
7
|
-
"server",
|
|
8
|
-
"worker",
|
|
9
|
-
"job",
|
|
10
|
-
"scheduler",
|
|
11
|
-
"cron",
|
|
12
|
-
"batch",
|
|
13
|
-
"function",
|
|
14
|
-
"lambda",
|
|
15
|
-
"edge",
|
|
16
|
-
"controller",
|
|
17
|
-
"handler",
|
|
18
|
-
"repository",
|
|
19
|
-
"module",
|
|
20
|
-
"package",
|
|
21
|
-
"library",
|
|
22
|
-
"sdk",
|
|
23
|
-
"cli",
|
|
24
|
-
"runtime",
|
|
25
|
-
"process",
|
|
26
|
-
"client",
|
|
27
|
-
"user",
|
|
28
|
-
"browser",
|
|
29
|
-
"web",
|
|
30
|
-
"mobile",
|
|
31
|
-
"desktop",
|
|
32
|
-
"frontend",
|
|
33
|
-
"app",
|
|
34
|
-
"page",
|
|
35
|
-
"view",
|
|
36
|
-
"component",
|
|
37
|
-
"store",
|
|
38
|
-
"db",
|
|
39
|
-
"database",
|
|
40
|
-
"sql",
|
|
41
|
-
"nosql",
|
|
42
|
-
"table",
|
|
43
|
-
"index",
|
|
44
|
-
"warehouse",
|
|
45
|
-
"lake",
|
|
46
|
-
"object_store",
|
|
47
|
-
"bucket",
|
|
48
|
-
"blob",
|
|
49
|
-
"volume",
|
|
50
|
-
"disk",
|
|
51
|
-
"search",
|
|
52
|
-
"cache",
|
|
53
|
-
"queue",
|
|
54
|
-
"topic",
|
|
55
|
-
"stream",
|
|
56
|
-
"event",
|
|
57
|
-
"event_bus",
|
|
58
|
-
"bus",
|
|
59
|
-
"broker",
|
|
60
|
-
"pubsub",
|
|
61
|
-
"kafka",
|
|
62
|
-
"producer",
|
|
63
|
-
"consumer",
|
|
64
|
-
"dead_letter",
|
|
65
|
-
"dlq",
|
|
66
|
-
"webhook",
|
|
67
|
-
"cloud",
|
|
68
|
-
"region",
|
|
69
|
-
"vpc",
|
|
70
|
-
"subnet",
|
|
71
|
-
"network",
|
|
72
|
-
"internet",
|
|
73
|
-
"dns",
|
|
74
|
-
"cdn",
|
|
75
|
-
"proxy",
|
|
76
|
-
"gateway",
|
|
77
|
-
"api_gateway",
|
|
78
|
-
"load_balancer",
|
|
79
|
-
"reverse_proxy",
|
|
80
|
-
"router",
|
|
81
|
-
"switch",
|
|
82
|
-
"nat",
|
|
83
|
-
"firewall",
|
|
84
|
-
"waf",
|
|
85
|
-
"vpn",
|
|
86
|
-
"bastion",
|
|
87
|
-
"container",
|
|
88
|
-
"cluster",
|
|
89
|
-
"pod",
|
|
90
|
-
"node",
|
|
91
|
-
"deployment",
|
|
92
|
-
"replicaset",
|
|
93
|
-
"statefulset",
|
|
94
|
-
"daemonset",
|
|
95
|
-
"namespace",
|
|
96
|
-
"ingress",
|
|
97
|
-
"service_mesh",
|
|
98
|
-
"sidecar",
|
|
99
|
-
"image",
|
|
100
|
-
"registry",
|
|
101
|
-
"docker",
|
|
102
|
-
"compose",
|
|
103
|
-
"helm",
|
|
104
|
-
"chart",
|
|
105
|
-
"configmap",
|
|
106
|
-
"pvc",
|
|
107
|
-
"auth",
|
|
108
|
-
"identity",
|
|
109
|
-
"oauth",
|
|
110
|
-
"oidc",
|
|
111
|
-
"jwt",
|
|
112
|
-
"session",
|
|
113
|
-
"policy",
|
|
114
|
-
"role",
|
|
115
|
-
"permission",
|
|
116
|
-
"vault",
|
|
117
|
-
"secret",
|
|
118
|
-
"key",
|
|
119
|
-
"certificate",
|
|
120
|
-
"repo",
|
|
121
|
-
"branch",
|
|
122
|
-
"commit",
|
|
123
|
-
"pipeline",
|
|
124
|
-
"workflow",
|
|
125
|
-
"runner",
|
|
126
|
-
"build",
|
|
127
|
-
"test",
|
|
128
|
-
"artifact",
|
|
129
|
-
"deploy",
|
|
130
|
-
"release",
|
|
131
|
-
"environment",
|
|
132
|
-
"preview",
|
|
133
|
-
"monitor",
|
|
134
|
-
"metrics",
|
|
135
|
-
"logs",
|
|
136
|
-
"trace",
|
|
137
|
-
"alert",
|
|
138
|
-
"dashboard",
|
|
139
|
-
"probe",
|
|
140
|
-
"slo",
|
|
141
|
-
"start",
|
|
142
|
-
"end",
|
|
143
|
-
"state",
|
|
144
|
-
"decision",
|
|
145
|
-
"condition",
|
|
146
|
-
"step",
|
|
147
|
-
"loop",
|
|
148
|
-
"sequence",
|
|
149
|
-
"participant",
|
|
150
|
-
"replica",
|
|
151
|
-
"shard",
|
|
152
|
-
"leader",
|
|
153
|
-
"follower",
|
|
154
|
-
"quorum",
|
|
155
|
-
"consensus",
|
|
156
|
-
"lock",
|
|
157
|
-
"class",
|
|
158
|
-
"interface",
|
|
159
|
-
"method",
|
|
160
|
-
"object",
|
|
161
|
-
"enum",
|
|
162
|
-
"type"
|
|
163
|
-
];
|
|
164
|
-
var VISUAL_PRIMITIVE_TYPES = [
|
|
165
|
-
"panel",
|
|
166
|
-
"surface",
|
|
167
|
-
"terminal",
|
|
168
|
-
"metric",
|
|
169
|
-
"stat",
|
|
170
|
-
"grid",
|
|
171
|
-
"matrix",
|
|
172
|
-
"lane",
|
|
173
|
-
"track",
|
|
174
|
-
"marker",
|
|
175
|
-
"dot",
|
|
176
|
-
"token_strip",
|
|
177
|
-
"chips",
|
|
178
|
-
"glyph_card",
|
|
179
|
-
"glyph"
|
|
180
|
-
];
|
|
181
|
-
|
|
182
1
|
// src/index.ts
|
|
183
|
-
|
|
2
|
+
import { TECHNICAL_NODE_TYPES, VISUAL_PRIMITIVE_TYPES } from "@markdy/core";
|
|
3
|
+
import { TECHNICAL_NODE_TYPES as TECHNICAL_NODE_TYPES2, VISUAL_PRIMITIVE_TYPES as VISUAL_PRIMITIVE_TYPES2 } from "@markdy/core";
|
|
4
|
+
var SYSTEM_NODE_TYPES = [
|
|
184
5
|
...TECHNICAL_NODE_TYPES,
|
|
185
6
|
...VISUAL_PRIMITIVE_TYPES
|
|
186
7
|
];
|
|
187
|
-
var
|
|
188
|
-
|
|
189
|
-
"ascii_map",
|
|
190
|
-
"game_scene",
|
|
191
|
-
"byte_viz"
|
|
192
|
-
];
|
|
193
|
-
var REGISTERED_SYSTEM_ACTOR_TYPES = [
|
|
194
|
-
...SYSTEM_ACTOR_TYPES,
|
|
195
|
-
...LEGACY_VISUAL_ACTOR_TYPES
|
|
196
|
-
];
|
|
197
|
-
var SYSTEM_FLOW_ACTIONS = ["request", "response", "emit"];
|
|
198
|
-
var FLOW_ACTIONS = [...SYSTEM_FLOW_ACTIONS];
|
|
199
|
-
var SYSTEM_ACTIONS = Object.fromEntries(
|
|
200
|
-
REGISTERED_SYSTEM_ACTOR_TYPES.map((actorType) => [actorType, FLOW_ACTIONS])
|
|
201
|
-
);
|
|
8
|
+
var SYSTEM_ACTOR_TYPES = SYSTEM_NODE_TYPES;
|
|
9
|
+
var SYSTEM_FLOW_ACTIONS = ["request", "response", "event", "dependency"];
|
|
202
10
|
var systemsPack = {
|
|
203
11
|
name: "systems",
|
|
204
|
-
|
|
205
|
-
actions:
|
|
12
|
+
nodes: SYSTEM_NODE_TYPES,
|
|
13
|
+
actions: SYSTEM_FLOW_ACTIONS
|
|
206
14
|
};
|
|
207
15
|
export {
|
|
208
16
|
SYSTEM_ACTOR_TYPES,
|
|
209
17
|
SYSTEM_FLOW_ACTIONS,
|
|
18
|
+
SYSTEM_NODE_TYPES,
|
|
19
|
+
TECHNICAL_NODE_TYPES2 as TECHNICAL_NODE_TYPES,
|
|
20
|
+
VISUAL_PRIMITIVE_TYPES2 as VISUAL_PRIMITIVE_TYPES,
|
|
210
21
|
systemsPack
|
|
211
22
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markdy/stdlib-systems",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "System
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "System-diagram node vocabulary for Markdy (re-exported from @markdy/core).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@markdy/core": "0.
|
|
42
|
+
"@markdy/core": "0.8.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"tsup": "^8.5.1",
|