@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
|
]
|
package/dist/index.js
CHANGED
|
@@ -3824,7 +3824,19 @@ function buildDisplayPattern(c, entityName, emptyTitle, emptyDescription, defaul
|
|
|
3824
3824
|
return { ...base, ...c.displayProps };
|
|
3825
3825
|
}
|
|
3826
3826
|
function buildEntity(c) {
|
|
3827
|
-
|
|
3827
|
+
const instances = [
|
|
3828
|
+
{ id: "bi-1", name: "Terry Schultz", description: "Senior product designer with 8 years of experience", status: "active", createdAt: "2026-01-15" },
|
|
3829
|
+
{ id: "bi-2", name: "Dale Franey", description: "Full-stack developer specializing in React and Node.js", status: "active", createdAt: "2026-01-18" },
|
|
3830
|
+
{ id: "bi-3", name: "Lorena Mayer", description: "Data analyst focused on business intelligence", status: "pending", createdAt: "2026-01-20" },
|
|
3831
|
+
{ id: "bi-4", name: "Andrea Paucek", description: "Project manager with PMP certification", status: "active", createdAt: "2026-02-01" },
|
|
3832
|
+
{ id: "bi-5", name: "Geneva Durgan", description: "UX researcher conducting user interviews", status: "inactive", createdAt: "2026-02-05" },
|
|
3833
|
+
{ id: "bi-6", name: "Samantha Okuneva", description: "DevOps engineer managing cloud infrastructure", status: "active", createdAt: "2026-02-10" },
|
|
3834
|
+
{ id: "bi-7", name: "Nelson Halby", description: "Technical writer documenting APIs", status: "active", createdAt: "2026-02-15" },
|
|
3835
|
+
{ id: "bi-8", name: "Tanya Hand", description: "QA lead overseeing test automation", status: "pending", createdAt: "2026-02-20" },
|
|
3836
|
+
{ id: "bi-9", name: "Rosemary Lind", description: "Marketing analyst tracking campaign performance", status: "active", createdAt: "2026-03-01" },
|
|
3837
|
+
{ id: "bi-10", name: "Bernadette Anderson", description: "Security engineer conducting penetration tests", status: "active", createdAt: "2026-03-05" }
|
|
3838
|
+
];
|
|
3839
|
+
return makeEntity({ name: c.entityName, fields: c.fields, persistence: c.persistence, collection: c.collection, instances });
|
|
3828
3840
|
}
|
|
3829
3841
|
function buildTrait(c) {
|
|
3830
3842
|
const { entityName, listFields, headerIcon, pageTitle, emptyTitle, emptyDescription } = c;
|
|
@@ -8452,7 +8464,10 @@ function buildEntity23(c) {
|
|
|
8452
8464
|
{ name: "successCount", type: "number", default: 0 },
|
|
8453
8465
|
{ name: "threshold", type: "number", default: 5 }
|
|
8454
8466
|
];
|
|
8455
|
-
|
|
8467
|
+
const instances = [
|
|
8468
|
+
{ id: "sn-1", name: "ServiceNode", description: "Primary API gateway", status: "active", createdAt: "2026-01-10", failureCount: 783, successCount: 603, threshold: 5 }
|
|
8469
|
+
];
|
|
8470
|
+
return makeEntity({ name: c.entityName, fields, persistence: c.persistence, collection: c.collection, instances });
|
|
8456
8471
|
}
|
|
8457
8472
|
var ef9 = (field) => ["object/get", ["array/first", "@entity"], field];
|
|
8458
8473
|
function buildTrait24(c) {
|
|
@@ -11247,7 +11262,24 @@ function resolve44(params) {
|
|
|
11247
11262
|
};
|
|
11248
11263
|
}
|
|
11249
11264
|
function buildEntity42(c) {
|
|
11250
|
-
|
|
11265
|
+
const fields = [
|
|
11266
|
+
...c.fields.filter((f) => !["type", "message", "timestamp", "actorName", "targetName", "value", "turn"].includes(f.name)),
|
|
11267
|
+
{ name: "type", type: "string", default: "attack", values: ["attack", "defend", "heal", "move", "special", "death", "spawn"] },
|
|
11268
|
+
{ name: "message", type: "string" },
|
|
11269
|
+
{ name: "timestamp", type: "number", default: 0 },
|
|
11270
|
+
{ name: "actorName", type: "string" },
|
|
11271
|
+
{ name: "targetName", type: "string" },
|
|
11272
|
+
{ name: "value", type: "number", default: 0 },
|
|
11273
|
+
{ name: "turn", type: "number", default: 1 }
|
|
11274
|
+
];
|
|
11275
|
+
const instances = [
|
|
11276
|
+
{ 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 },
|
|
11277
|
+
{ 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 },
|
|
11278
|
+
{ 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 },
|
|
11279
|
+
{ 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 },
|
|
11280
|
+
{ 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 }
|
|
11281
|
+
];
|
|
11282
|
+
return makeEntity({ name: c.entityName, fields, persistence: c.persistence, instances });
|
|
11251
11283
|
}
|
|
11252
11284
|
function buildTrait43(c) {
|
|
11253
11285
|
const { entityName, title, maxVisible, autoScroll, showTimestamps } = c;
|
|
@@ -11954,15 +11986,38 @@ function resolve51(params) {
|
|
|
11954
11986
|
};
|
|
11955
11987
|
}
|
|
11956
11988
|
function buildEntity49(c) {
|
|
11957
|
-
|
|
11989
|
+
const fields = [
|
|
11990
|
+
...c.fields.filter((f) => !["tiles", "units", "features"].includes(f.name)),
|
|
11991
|
+
{ name: "tiles", type: "array", default: [] },
|
|
11992
|
+
{ name: "units", type: "array", default: [] },
|
|
11993
|
+
{ name: "features", type: "array", default: [] }
|
|
11994
|
+
];
|
|
11995
|
+
const instances = [
|
|
11996
|
+
{
|
|
11997
|
+
id: "scene-1",
|
|
11998
|
+
name: "Battle Arena",
|
|
11999
|
+
description: "A 3D battle arena",
|
|
12000
|
+
status: "active",
|
|
12001
|
+
createdAt: "2026-01-01",
|
|
12002
|
+
tiles: [
|
|
12003
|
+
{ x: 0, y: 0, z: 0, type: "grass" },
|
|
12004
|
+
{ x: 1, y: 0, z: 0, type: "grass" },
|
|
12005
|
+
{ x: 0, y: 0, z: 1, type: "stone" },
|
|
12006
|
+
{ x: 1, y: 0, z: 1, type: "water" }
|
|
12007
|
+
],
|
|
12008
|
+
units: [],
|
|
12009
|
+
features: []
|
|
12010
|
+
}
|
|
12011
|
+
];
|
|
12012
|
+
return makeEntity({ name: c.entityName, fields, persistence: c.persistence, instances });
|
|
11958
12013
|
}
|
|
11959
12014
|
function buildTrait50(c) {
|
|
11960
12015
|
const { entityName, orientation, cameraMode, showGrid, shadows, backgroundColor } = c;
|
|
11961
12016
|
const canvasView = {
|
|
11962
12017
|
type: "game-canvas3-d",
|
|
11963
|
-
tiles: `@${entityName}
|
|
11964
|
-
units: `@${entityName}
|
|
11965
|
-
features: `@${entityName}
|
|
12018
|
+
tiles: ["object/get", ["array/first", `@${entityName}`], "tiles"],
|
|
12019
|
+
units: ["object/get", ["array/first", `@${entityName}`], "units"],
|
|
12020
|
+
features: ["object/get", ["array/first", `@${entityName}`], "features"],
|
|
11966
12021
|
orientation,
|
|
11967
12022
|
cameraMode,
|
|
11968
12023
|
showGrid,
|