@almadar/std 3.4.3 → 3.4.4
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/behaviors/exports/atoms/std-autoregressive.orb +419 -0
- package/behaviors/exports/atoms/std-browse.orb +72 -0
- package/behaviors/exports/atoms/std-circuit-breaker.orb +12 -0
- package/behaviors/exports/atoms/std-combat-log.orb +112 -0
- package/behaviors/exports/atoms/std-game-canvas3d.orb +172 -15
- package/behaviors/exports/organisms/std-api-gateway.orb +12 -0
- package/behaviors/exports/organisms/std-devops-dashboard.orb +12 -0
- package/behaviors/exports/organisms/std-iot-dashboard.orb +12 -0
- package/behaviors/exports/validation-report.json +2 -2
- package/dist/behaviors/exports/atoms/std-autoregressive.orb +419 -0
- package/dist/behaviors/exports/atoms/std-browse.orb +72 -0
- package/dist/behaviors/exports/atoms/std-circuit-breaker.orb +12 -0
- package/dist/behaviors/exports/atoms/std-combat-log.orb +112 -0
- package/dist/behaviors/exports/atoms/std-game-canvas3d.orb +172 -15
- package/dist/behaviors/exports/organisms/std-api-gateway.orb +12 -0
- package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +12 -0
- package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +12 -0
- package/dist/behaviors/exports/validation-report.json +2 -2
- package/dist/behaviors/functions/index.js +62 -7
- package/dist/behaviors/functions/index.js.map +1 -1
- package/dist/behaviors/index.js +62 -7
- package/dist/behaviors/index.js.map +1 -1
- package/dist/exports/atoms/std-autoregressive.orb +419 -0
- package/dist/exports/atoms/std-browse.orb +72 -0
- package/dist/exports/atoms/std-circuit-breaker.orb +12 -0
- package/dist/exports/atoms/std-combat-log.orb +112 -0
- package/dist/exports/atoms/std-game-canvas3d.orb +172 -15
- package/dist/exports/organisms/std-api-gateway.orb +12 -0
- package/dist/exports/organisms/std-devops-dashboard.orb +12 -0
- package/dist/exports/organisms/std-iot-dashboard.orb +12 -0
- package/dist/exports/validation-report.json +2 -2
- package/dist/index.js +62 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -32,6 +32,58 @@
|
|
|
32
32
|
{
|
|
33
33
|
"name": "createdAt",
|
|
34
34
|
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "tiles",
|
|
38
|
+
"type": "array",
|
|
39
|
+
"default": []
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "units",
|
|
43
|
+
"type": "array",
|
|
44
|
+
"default": []
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "features",
|
|
48
|
+
"type": "array",
|
|
49
|
+
"default": []
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"instances": [
|
|
53
|
+
{
|
|
54
|
+
"id": "scene-1",
|
|
55
|
+
"name": "Battle Arena",
|
|
56
|
+
"description": "A 3D battle arena",
|
|
57
|
+
"status": "active",
|
|
58
|
+
"createdAt": "2026-01-01",
|
|
59
|
+
"tiles": [
|
|
60
|
+
{
|
|
61
|
+
"x": 0,
|
|
62
|
+
"y": 0,
|
|
63
|
+
"z": 0,
|
|
64
|
+
"type": "grass"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"x": 1,
|
|
68
|
+
"y": 0,
|
|
69
|
+
"z": 0,
|
|
70
|
+
"type": "grass"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"x": 0,
|
|
74
|
+
"y": 0,
|
|
75
|
+
"z": 1,
|
|
76
|
+
"type": "stone"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"x": 1,
|
|
80
|
+
"y": 0,
|
|
81
|
+
"z": 1,
|
|
82
|
+
"type": "water"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"units": [],
|
|
86
|
+
"features": []
|
|
35
87
|
}
|
|
36
88
|
]
|
|
37
89
|
},
|
|
@@ -97,9 +149,30 @@
|
|
|
97
149
|
"main",
|
|
98
150
|
{
|
|
99
151
|
"type": "game-canvas3-d",
|
|
100
|
-
"tiles":
|
|
101
|
-
|
|
102
|
-
|
|
152
|
+
"tiles": [
|
|
153
|
+
"object/get",
|
|
154
|
+
[
|
|
155
|
+
"array/first",
|
|
156
|
+
"@Canvas3dScene"
|
|
157
|
+
],
|
|
158
|
+
"tiles"
|
|
159
|
+
],
|
|
160
|
+
"units": [
|
|
161
|
+
"object/get",
|
|
162
|
+
[
|
|
163
|
+
"array/first",
|
|
164
|
+
"@Canvas3dScene"
|
|
165
|
+
],
|
|
166
|
+
"units"
|
|
167
|
+
],
|
|
168
|
+
"features": [
|
|
169
|
+
"object/get",
|
|
170
|
+
[
|
|
171
|
+
"array/first",
|
|
172
|
+
"@Canvas3dScene"
|
|
173
|
+
],
|
|
174
|
+
"features"
|
|
175
|
+
],
|
|
103
176
|
"orientation": "isometric",
|
|
104
177
|
"cameraMode": "orbital",
|
|
105
178
|
"showGrid": true,
|
|
@@ -121,9 +194,30 @@
|
|
|
121
194
|
"main",
|
|
122
195
|
{
|
|
123
196
|
"type": "game-canvas3-d",
|
|
124
|
-
"tiles":
|
|
125
|
-
|
|
126
|
-
|
|
197
|
+
"tiles": [
|
|
198
|
+
"object/get",
|
|
199
|
+
[
|
|
200
|
+
"array/first",
|
|
201
|
+
"@Canvas3dScene"
|
|
202
|
+
],
|
|
203
|
+
"tiles"
|
|
204
|
+
],
|
|
205
|
+
"units": [
|
|
206
|
+
"object/get",
|
|
207
|
+
[
|
|
208
|
+
"array/first",
|
|
209
|
+
"@Canvas3dScene"
|
|
210
|
+
],
|
|
211
|
+
"units"
|
|
212
|
+
],
|
|
213
|
+
"features": [
|
|
214
|
+
"object/get",
|
|
215
|
+
[
|
|
216
|
+
"array/first",
|
|
217
|
+
"@Canvas3dScene"
|
|
218
|
+
],
|
|
219
|
+
"features"
|
|
220
|
+
],
|
|
127
221
|
"orientation": "isometric",
|
|
128
222
|
"cameraMode": "orbital",
|
|
129
223
|
"showGrid": true,
|
|
@@ -145,9 +239,30 @@
|
|
|
145
239
|
"main",
|
|
146
240
|
{
|
|
147
241
|
"type": "game-canvas3-d",
|
|
148
|
-
"tiles":
|
|
149
|
-
|
|
150
|
-
|
|
242
|
+
"tiles": [
|
|
243
|
+
"object/get",
|
|
244
|
+
[
|
|
245
|
+
"array/first",
|
|
246
|
+
"@Canvas3dScene"
|
|
247
|
+
],
|
|
248
|
+
"tiles"
|
|
249
|
+
],
|
|
250
|
+
"units": [
|
|
251
|
+
"object/get",
|
|
252
|
+
[
|
|
253
|
+
"array/first",
|
|
254
|
+
"@Canvas3dScene"
|
|
255
|
+
],
|
|
256
|
+
"units"
|
|
257
|
+
],
|
|
258
|
+
"features": [
|
|
259
|
+
"object/get",
|
|
260
|
+
[
|
|
261
|
+
"array/first",
|
|
262
|
+
"@Canvas3dScene"
|
|
263
|
+
],
|
|
264
|
+
"features"
|
|
265
|
+
],
|
|
151
266
|
"orientation": "isometric",
|
|
152
267
|
"cameraMode": "orbital",
|
|
153
268
|
"showGrid": true,
|
|
@@ -169,9 +284,30 @@
|
|
|
169
284
|
"main",
|
|
170
285
|
{
|
|
171
286
|
"type": "game-canvas3-d",
|
|
172
|
-
"tiles":
|
|
173
|
-
|
|
174
|
-
|
|
287
|
+
"tiles": [
|
|
288
|
+
"object/get",
|
|
289
|
+
[
|
|
290
|
+
"array/first",
|
|
291
|
+
"@Canvas3dScene"
|
|
292
|
+
],
|
|
293
|
+
"tiles"
|
|
294
|
+
],
|
|
295
|
+
"units": [
|
|
296
|
+
"object/get",
|
|
297
|
+
[
|
|
298
|
+
"array/first",
|
|
299
|
+
"@Canvas3dScene"
|
|
300
|
+
],
|
|
301
|
+
"units"
|
|
302
|
+
],
|
|
303
|
+
"features": [
|
|
304
|
+
"object/get",
|
|
305
|
+
[
|
|
306
|
+
"array/first",
|
|
307
|
+
"@Canvas3dScene"
|
|
308
|
+
],
|
|
309
|
+
"features"
|
|
310
|
+
],
|
|
175
311
|
"orientation": "isometric",
|
|
176
312
|
"cameraMode": "orbital",
|
|
177
313
|
"showGrid": true,
|
|
@@ -193,9 +329,30 @@
|
|
|
193
329
|
"main",
|
|
194
330
|
{
|
|
195
331
|
"type": "game-canvas3-d",
|
|
196
|
-
"tiles":
|
|
197
|
-
|
|
198
|
-
|
|
332
|
+
"tiles": [
|
|
333
|
+
"object/get",
|
|
334
|
+
[
|
|
335
|
+
"array/first",
|
|
336
|
+
"@Canvas3dScene"
|
|
337
|
+
],
|
|
338
|
+
"tiles"
|
|
339
|
+
],
|
|
340
|
+
"units": [
|
|
341
|
+
"object/get",
|
|
342
|
+
[
|
|
343
|
+
"array/first",
|
|
344
|
+
"@Canvas3dScene"
|
|
345
|
+
],
|
|
346
|
+
"units"
|
|
347
|
+
],
|
|
348
|
+
"features": [
|
|
349
|
+
"object/get",
|
|
350
|
+
[
|
|
351
|
+
"array/first",
|
|
352
|
+
"@Canvas3dScene"
|
|
353
|
+
],
|
|
354
|
+
"features"
|
|
355
|
+
],
|
|
199
356
|
"orientation": "isometric",
|
|
200
357
|
"cameraMode": "orbital",
|
|
201
358
|
"showGrid": true,
|
|
@@ -1425,6 +1425,18 @@
|
|
|
1425
1425
|
"type": "number",
|
|
1426
1426
|
"default": 5
|
|
1427
1427
|
}
|
|
1428
|
+
],
|
|
1429
|
+
"instances": [
|
|
1430
|
+
{
|
|
1431
|
+
"id": "sn-1",
|
|
1432
|
+
"name": "ServiceNode",
|
|
1433
|
+
"description": "Primary API gateway",
|
|
1434
|
+
"status": "active",
|
|
1435
|
+
"createdAt": "2026-01-10",
|
|
1436
|
+
"failureCount": 783,
|
|
1437
|
+
"successCount": 603,
|
|
1438
|
+
"threshold": 5
|
|
1439
|
+
}
|
|
1428
1440
|
]
|
|
1429
1441
|
},
|
|
1430
1442
|
"traits": [
|
|
@@ -51,6 +51,18 @@
|
|
|
51
51
|
"type": "number",
|
|
52
52
|
"default": 5
|
|
53
53
|
}
|
|
54
|
+
],
|
|
55
|
+
"instances": [
|
|
56
|
+
{
|
|
57
|
+
"id": "sn-1",
|
|
58
|
+
"name": "ServiceNode",
|
|
59
|
+
"description": "Primary API gateway",
|
|
60
|
+
"status": "active",
|
|
61
|
+
"createdAt": "2026-01-10",
|
|
62
|
+
"failureCount": 783,
|
|
63
|
+
"successCount": 603,
|
|
64
|
+
"threshold": 5
|
|
65
|
+
}
|
|
54
66
|
]
|
|
55
67
|
},
|
|
56
68
|
"traits": [
|
|
@@ -3098,6 +3098,18 @@
|
|
|
3098
3098
|
"type": "number",
|
|
3099
3099
|
"default": 5
|
|
3100
3100
|
}
|
|
3101
|
+
],
|
|
3102
|
+
"instances": [
|
|
3103
|
+
{
|
|
3104
|
+
"id": "sn-1",
|
|
3105
|
+
"name": "ServiceNode",
|
|
3106
|
+
"description": "Primary API gateway",
|
|
3107
|
+
"status": "active",
|
|
3108
|
+
"createdAt": "2026-01-10",
|
|
3109
|
+
"failureCount": 783,
|
|
3110
|
+
"successCount": 603,
|
|
3111
|
+
"threshold": 5
|
|
3112
|
+
}
|
|
3101
3113
|
]
|
|
3102
3114
|
},
|
|
3103
3115
|
"traits": [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"name": "std-
|
|
3
|
+
"name": "std-combat-log",
|
|
4
4
|
"errors": 0,
|
|
5
5
|
"warnings": 0,
|
|
6
6
|
"output": [
|
|
7
7
|
"Loaded 22 services from packages/almadar-patterns/src/services-registry.json",
|
|
8
|
-
"Validating schema: /home/osamah/kflow.ai.builder/packages/almadar-std/behaviors/exports/atoms/std-
|
|
8
|
+
"Validating schema: /home/osamah/kflow.ai.builder/packages/almadar-std/behaviors/exports/atoms/std-combat-log.orb"
|
|
9
9
|
]
|
|
10
10
|
}
|
|
11
11
|
]
|
|
@@ -59,7 +59,19 @@ function buildDisplayPattern(c, entityName, emptyTitle, emptyDescription, defaul
|
|
|
59
59
|
return { ...base, ...c.displayProps };
|
|
60
60
|
}
|
|
61
61
|
function buildEntity(c) {
|
|
62
|
-
|
|
62
|
+
const instances = [
|
|
63
|
+
{ id: "bi-1", name: "Terry Schultz", description: "Senior product designer with 8 years of experience", status: "active", createdAt: "2026-01-15" },
|
|
64
|
+
{ id: "bi-2", name: "Dale Franey", description: "Full-stack developer specializing in React and Node.js", status: "active", createdAt: "2026-01-18" },
|
|
65
|
+
{ id: "bi-3", name: "Lorena Mayer", description: "Data analyst focused on business intelligence", status: "pending", createdAt: "2026-01-20" },
|
|
66
|
+
{ id: "bi-4", name: "Andrea Paucek", description: "Project manager with PMP certification", status: "active", createdAt: "2026-02-01" },
|
|
67
|
+
{ id: "bi-5", name: "Geneva Durgan", description: "UX researcher conducting user interviews", status: "inactive", createdAt: "2026-02-05" },
|
|
68
|
+
{ id: "bi-6", name: "Samantha Okuneva", description: "DevOps engineer managing cloud infrastructure", status: "active", createdAt: "2026-02-10" },
|
|
69
|
+
{ id: "bi-7", name: "Nelson Halby", description: "Technical writer documenting APIs", status: "active", createdAt: "2026-02-15" },
|
|
70
|
+
{ id: "bi-8", name: "Tanya Hand", description: "QA lead overseeing test automation", status: "pending", createdAt: "2026-02-20" },
|
|
71
|
+
{ id: "bi-9", name: "Rosemary Lind", description: "Marketing analyst tracking campaign performance", status: "active", createdAt: "2026-03-01" },
|
|
72
|
+
{ id: "bi-10", name: "Bernadette Anderson", description: "Security engineer conducting penetration tests", status: "active", createdAt: "2026-03-05" }
|
|
73
|
+
];
|
|
74
|
+
return makeEntity({ name: c.entityName, fields: c.fields, persistence: c.persistence, collection: c.collection, instances });
|
|
63
75
|
}
|
|
64
76
|
function buildTrait(c) {
|
|
65
77
|
const { entityName, listFields, headerIcon, pageTitle, emptyTitle, emptyDescription } = c;
|
|
@@ -4687,7 +4699,10 @@ function buildEntity23(c) {
|
|
|
4687
4699
|
{ name: "successCount", type: "number", default: 0 },
|
|
4688
4700
|
{ name: "threshold", type: "number", default: 5 }
|
|
4689
4701
|
];
|
|
4690
|
-
|
|
4702
|
+
const instances = [
|
|
4703
|
+
{ id: "sn-1", name: "ServiceNode", description: "Primary API gateway", status: "active", createdAt: "2026-01-10", failureCount: 783, successCount: 603, threshold: 5 }
|
|
4704
|
+
];
|
|
4705
|
+
return makeEntity({ name: c.entityName, fields, persistence: c.persistence, collection: c.collection, instances });
|
|
4691
4706
|
}
|
|
4692
4707
|
var ef9 = (field) => ["object/get", ["array/first", "@entity"], field];
|
|
4693
4708
|
function buildTrait24(c) {
|
|
@@ -7482,7 +7497,24 @@ function resolve43(params) {
|
|
|
7482
7497
|
};
|
|
7483
7498
|
}
|
|
7484
7499
|
function buildEntity42(c) {
|
|
7485
|
-
|
|
7500
|
+
const fields = [
|
|
7501
|
+
...c.fields.filter((f) => !["type", "message", "timestamp", "actorName", "targetName", "value", "turn"].includes(f.name)),
|
|
7502
|
+
{ name: "type", type: "string", default: "attack", values: ["attack", "defend", "heal", "move", "special", "death", "spawn"] },
|
|
7503
|
+
{ name: "message", type: "string" },
|
|
7504
|
+
{ name: "timestamp", type: "number", default: 0 },
|
|
7505
|
+
{ name: "actorName", type: "string" },
|
|
7506
|
+
{ name: "targetName", type: "string" },
|
|
7507
|
+
{ name: "value", type: "number", default: 0 },
|
|
7508
|
+
{ name: "turn", type: "number", default: 1 }
|
|
7509
|
+
];
|
|
7510
|
+
const instances = [
|
|
7511
|
+
{ id: "cl-1", name: "Attack log", description: "Warrior attacks Goblin", status: "active", createdAt: "2026-01-01", type: "attack", message: "Warrior strikes Goblin for 25 damage", timestamp: 1e3, actorName: "Warrior", targetName: "Goblin", value: 25, turn: 1 },
|
|
7512
|
+
{ id: "cl-2", name: "Defend log", description: "Paladin raises shield", status: "active", createdAt: "2026-01-01", type: "defend", message: "Paladin raises shield, blocking 15 damage", timestamp: 2e3, actorName: "Paladin", targetName: "Paladin", value: 15, turn: 1 },
|
|
7513
|
+
{ id: "cl-3", name: "Heal log", description: "Cleric heals Warrior", status: "active", createdAt: "2026-01-01", type: "heal", message: "Cleric heals Warrior for 30 HP", timestamp: 3e3, actorName: "Cleric", targetName: "Warrior", value: 30, turn: 2 },
|
|
7514
|
+
{ id: "cl-4", name: "Special log", description: "Mage casts fireball", status: "active", createdAt: "2026-01-01", type: "special", message: "Mage casts Fireball dealing 40 AoE damage", timestamp: 4e3, actorName: "Mage", targetName: "Goblin", value: 40, turn: 2 },
|
|
7515
|
+
{ id: "cl-5", name: "Move log", description: "Rogue moves to flank", status: "active", createdAt: "2026-01-01", type: "move", message: "Rogue moves to flanking position", timestamp: 5e3, actorName: "Rogue", value: 0, turn: 3 }
|
|
7516
|
+
];
|
|
7517
|
+
return makeEntity({ name: c.entityName, fields, persistence: c.persistence, instances });
|
|
7486
7518
|
}
|
|
7487
7519
|
function buildTrait43(c) {
|
|
7488
7520
|
const { entityName, title, maxVisible, autoScroll, showTimestamps } = c;
|
|
@@ -8189,15 +8221,38 @@ function resolve50(params) {
|
|
|
8189
8221
|
};
|
|
8190
8222
|
}
|
|
8191
8223
|
function buildEntity49(c) {
|
|
8192
|
-
|
|
8224
|
+
const fields = [
|
|
8225
|
+
...c.fields.filter((f) => !["tiles", "units", "features"].includes(f.name)),
|
|
8226
|
+
{ name: "tiles", type: "array", default: [] },
|
|
8227
|
+
{ name: "units", type: "array", default: [] },
|
|
8228
|
+
{ name: "features", type: "array", default: [] }
|
|
8229
|
+
];
|
|
8230
|
+
const instances = [
|
|
8231
|
+
{
|
|
8232
|
+
id: "scene-1",
|
|
8233
|
+
name: "Battle Arena",
|
|
8234
|
+
description: "A 3D battle arena",
|
|
8235
|
+
status: "active",
|
|
8236
|
+
createdAt: "2026-01-01",
|
|
8237
|
+
tiles: [
|
|
8238
|
+
{ x: 0, y: 0, z: 0, type: "grass" },
|
|
8239
|
+
{ x: 1, y: 0, z: 0, type: "grass" },
|
|
8240
|
+
{ x: 0, y: 0, z: 1, type: "stone" },
|
|
8241
|
+
{ x: 1, y: 0, z: 1, type: "water" }
|
|
8242
|
+
],
|
|
8243
|
+
units: [],
|
|
8244
|
+
features: []
|
|
8245
|
+
}
|
|
8246
|
+
];
|
|
8247
|
+
return makeEntity({ name: c.entityName, fields, persistence: c.persistence, instances });
|
|
8193
8248
|
}
|
|
8194
8249
|
function buildTrait50(c) {
|
|
8195
8250
|
const { entityName, orientation, cameraMode, showGrid, shadows, backgroundColor } = c;
|
|
8196
8251
|
const canvasView = {
|
|
8197
8252
|
type: "game-canvas3-d",
|
|
8198
|
-
tiles: `@${entityName}
|
|
8199
|
-
units: `@${entityName}
|
|
8200
|
-
features: `@${entityName}
|
|
8253
|
+
tiles: ["object/get", ["array/first", `@${entityName}`], "tiles"],
|
|
8254
|
+
units: ["object/get", ["array/first", `@${entityName}`], "units"],
|
|
8255
|
+
features: ["object/get", ["array/first", `@${entityName}`], "features"],
|
|
8201
8256
|
orientation,
|
|
8202
8257
|
cameraMode,
|
|
8203
8258
|
showGrid,
|