@markdy/stdlib-systems 0.7.11

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/LICENSE ADDED
@@ -0,0 +1 @@
1
+ MIT
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @markdy/stdlib-systems
2
+
3
+ System actor/action pack for Markdy.
4
+
5
+ ```ts
6
+ import { registerActorPack } from "@markdy/core";
7
+ import { systemsPack } from "@markdy/stdlib-systems";
8
+
9
+ registerActorPack(systemsPack);
10
+ ```
11
+
12
+ Adds actor types:
13
+ - `service`
14
+ - `db`
15
+ - `queue`
16
+ - `client`
17
+
18
+ Adds actions:
19
+ - `.request(to=..., label=..., dur=...)`
20
+ - `.response(to=..., label=..., dur=...)`
21
+ - `.emit(to=..., label=..., dur=...)`
@@ -0,0 +1,7 @@
1
+ import { ActorPack } from '@markdy/core';
2
+
3
+ declare const SYSTEM_ACTOR_TYPES: readonly ["service", "db", "queue", "client"];
4
+ declare const SYSTEM_FLOW_ACTIONS: readonly ["request", "response", "emit"];
5
+ declare const systemsPack: ActorPack;
6
+
7
+ export { SYSTEM_ACTOR_TYPES, SYSTEM_FLOW_ACTIONS, systemsPack };
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
1
+ // src/index.ts
2
+ var SYSTEM_ACTOR_TYPES = ["service", "db", "queue", "client"];
3
+ var SYSTEM_FLOW_ACTIONS = ["request", "response", "emit"];
4
+ var FLOW_ACTIONS = [...SYSTEM_FLOW_ACTIONS];
5
+ var systemsPack = {
6
+ name: "systems",
7
+ actors: SYSTEM_ACTOR_TYPES,
8
+ actions: {
9
+ service: FLOW_ACTIONS,
10
+ db: FLOW_ACTIONS,
11
+ queue: FLOW_ACTIONS,
12
+ client: FLOW_ACTIONS
13
+ }
14
+ };
15
+ export {
16
+ SYSTEM_ACTOR_TYPES,
17
+ SYSTEM_FLOW_ACTIONS,
18
+ systemsPack
19
+ };
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@markdy/stdlib-systems",
3
+ "version": "0.7.11",
4
+ "description": "System diagram actor/action pack for Markdy.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "files": [
9
+ "dist",
10
+ "README.md",
11
+ "LICENSE"
12
+ ],
13
+ "main": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js"
19
+ }
20
+ },
21
+ "keywords": [
22
+ "markdy",
23
+ "system-diagram",
24
+ "sequence",
25
+ "animation",
26
+ "dsl"
27
+ ],
28
+ "author": "Hoang Yell <hoangyell@gmail.com> (https://hoangyell.com)",
29
+ "homepage": "https://markdy.com",
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/HoangYell/markdy-com.git",
33
+ "directory": "packages/stdlib-systems"
34
+ },
35
+ "bugs": {
36
+ "url": "https://github.com/HoangYell/markdy-com/issues"
37
+ },
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "dependencies": {
42
+ "@markdy/core": "0.7.11"
43
+ },
44
+ "devDependencies": {
45
+ "tsup": "^8.5.1",
46
+ "typescript": "^5.9.3"
47
+ },
48
+ "scripts": {
49
+ "build": "tsup",
50
+ "test": "echo \"No tests yet\"",
51
+ "typecheck": "tsc --noEmit",
52
+ "lint": "tsc --noEmit"
53
+ }
54
+ }