@almadar/std 3.4.2 → 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.
Files changed (40) hide show
  1. package/behaviors/exports/atoms/std-autoregressive.orb +419 -0
  2. package/behaviors/exports/atoms/std-browse.orb +72 -0
  3. package/behaviors/exports/atoms/std-circuit-breaker.orb +12 -0
  4. package/behaviors/exports/atoms/std-combat-log.orb +112 -0
  5. package/behaviors/exports/atoms/std-game-audio.orb +232 -6
  6. package/behaviors/exports/atoms/std-game-canvas3d.orb +172 -15
  7. package/behaviors/exports/atoms/std-sprite.orb +165 -17
  8. package/behaviors/exports/organisms/std-api-gateway.orb +12 -0
  9. package/behaviors/exports/organisms/std-devops-dashboard.orb +12 -0
  10. package/behaviors/exports/organisms/std-iot-dashboard.orb +12 -0
  11. package/behaviors/exports/validation-report.json +2 -2
  12. package/dist/behaviors/exports/atoms/std-autoregressive.orb +419 -0
  13. package/dist/behaviors/exports/atoms/std-browse.orb +72 -0
  14. package/dist/behaviors/exports/atoms/std-circuit-breaker.orb +12 -0
  15. package/dist/behaviors/exports/atoms/std-combat-log.orb +112 -0
  16. package/dist/behaviors/exports/atoms/std-game-audio.orb +232 -6
  17. package/dist/behaviors/exports/atoms/std-game-canvas3d.orb +172 -15
  18. package/dist/behaviors/exports/atoms/std-sprite.orb +165 -17
  19. package/dist/behaviors/exports/organisms/std-api-gateway.orb +12 -0
  20. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +12 -0
  21. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +12 -0
  22. package/dist/behaviors/exports/validation-report.json +2 -2
  23. package/dist/behaviors/functions/index.js +179 -19
  24. package/dist/behaviors/functions/index.js.map +1 -1
  25. package/dist/behaviors/index.js +179 -19
  26. package/dist/behaviors/index.js.map +1 -1
  27. package/dist/exports/atoms/std-autoregressive.orb +419 -0
  28. package/dist/exports/atoms/std-browse.orb +72 -0
  29. package/dist/exports/atoms/std-circuit-breaker.orb +12 -0
  30. package/dist/exports/atoms/std-combat-log.orb +112 -0
  31. package/dist/exports/atoms/std-game-audio.orb +232 -6
  32. package/dist/exports/atoms/std-game-canvas3d.orb +172 -15
  33. package/dist/exports/atoms/std-sprite.orb +165 -17
  34. package/dist/exports/organisms/std-api-gateway.orb +12 -0
  35. package/dist/exports/organisms/std-devops-dashboard.orb +12 -0
  36. package/dist/exports/organisms/std-iot-dashboard.orb +12 -0
  37. package/dist/exports/validation-report.json +2 -2
  38. package/dist/index.js +179 -19
  39. package/dist/index.js.map +1 -1
  40. package/package.json +1 -1
@@ -186,7 +186,19 @@ function buildDisplayPattern(c, entityName, emptyTitle, emptyDescription, defaul
186
186
  return { ...base, ...c.displayProps };
187
187
  }
188
188
  function buildEntity(c) {
189
- return makeEntity({ name: c.entityName, fields: c.fields, persistence: c.persistence, collection: c.collection });
189
+ const instances = [
190
+ { id: "bi-1", name: "Terry Schultz", description: "Senior product designer with 8 years of experience", status: "active", createdAt: "2026-01-15" },
191
+ { id: "bi-2", name: "Dale Franey", description: "Full-stack developer specializing in React and Node.js", status: "active", createdAt: "2026-01-18" },
192
+ { id: "bi-3", name: "Lorena Mayer", description: "Data analyst focused on business intelligence", status: "pending", createdAt: "2026-01-20" },
193
+ { id: "bi-4", name: "Andrea Paucek", description: "Project manager with PMP certification", status: "active", createdAt: "2026-02-01" },
194
+ { id: "bi-5", name: "Geneva Durgan", description: "UX researcher conducting user interviews", status: "inactive", createdAt: "2026-02-05" },
195
+ { id: "bi-6", name: "Samantha Okuneva", description: "DevOps engineer managing cloud infrastructure", status: "active", createdAt: "2026-02-10" },
196
+ { id: "bi-7", name: "Nelson Halby", description: "Technical writer documenting APIs", status: "active", createdAt: "2026-02-15" },
197
+ { id: "bi-8", name: "Tanya Hand", description: "QA lead overseeing test automation", status: "pending", createdAt: "2026-02-20" },
198
+ { id: "bi-9", name: "Rosemary Lind", description: "Marketing analyst tracking campaign performance", status: "active", createdAt: "2026-03-01" },
199
+ { id: "bi-10", name: "Bernadette Anderson", description: "Security engineer conducting penetration tests", status: "active", createdAt: "2026-03-05" }
200
+ ];
201
+ return makeEntity({ name: c.entityName, fields: c.fields, persistence: c.persistence, collection: c.collection, instances });
190
202
  }
191
203
  function buildTrait(c) {
192
204
  const { entityName, listFields, headerIcon, pageTitle, emptyTitle, emptyDescription } = c;
@@ -4814,7 +4826,10 @@ function buildEntity23(c) {
4814
4826
  { name: "successCount", type: "number", default: 0 },
4815
4827
  { name: "threshold", type: "number", default: 5 }
4816
4828
  ];
4817
- return makeEntity({ name: c.entityName, fields, persistence: c.persistence, collection: c.collection });
4829
+ const instances = [
4830
+ { id: "sn-1", name: "ServiceNode", description: "Primary API gateway", status: "active", createdAt: "2026-01-10", failureCount: 783, successCount: 603, threshold: 5 }
4831
+ ];
4832
+ return makeEntity({ name: c.entityName, fields, persistence: c.persistence, collection: c.collection, instances });
4818
4833
  }
4819
4834
  var ef9 = (field) => ["object/get", ["array/first", "@entity"], field];
4820
4835
  function buildTrait24(c) {
@@ -7609,7 +7624,24 @@ function resolve44(params) {
7609
7624
  };
7610
7625
  }
7611
7626
  function buildEntity42(c) {
7612
- return makeEntity({ name: c.entityName, fields: c.fields, persistence: c.persistence });
7627
+ const fields = [
7628
+ ...c.fields.filter((f) => !["type", "message", "timestamp", "actorName", "targetName", "value", "turn"].includes(f.name)),
7629
+ { name: "type", type: "string", default: "attack", values: ["attack", "defend", "heal", "move", "special", "death", "spawn"] },
7630
+ { name: "message", type: "string" },
7631
+ { name: "timestamp", type: "number", default: 0 },
7632
+ { name: "actorName", type: "string" },
7633
+ { name: "targetName", type: "string" },
7634
+ { name: "value", type: "number", default: 0 },
7635
+ { name: "turn", type: "number", default: 1 }
7636
+ ];
7637
+ const instances = [
7638
+ { 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 },
7639
+ { 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 },
7640
+ { 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 },
7641
+ { 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 },
7642
+ { 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 }
7643
+ ];
7644
+ return makeEntity({ name: c.entityName, fields, persistence: c.persistence, instances });
7613
7645
  }
7614
7646
  function buildTrait43(c) {
7615
7647
  const { entityName, title, maxVisible, autoScroll, showTimestamps } = c;
@@ -7664,7 +7696,7 @@ function resolve45(params) {
7664
7696
  { name: "x", type: "number", default: 0 },
7665
7697
  { name: "y", type: "number", default: 0 },
7666
7698
  { name: "frame", type: "number", default: 0 },
7667
- { name: "spritesheet", type: "string", default: "" }
7699
+ { name: "spritesheet", type: "string", default: "https://almadar-kflow-assets.web.app/shared/sprite-sheets/amir-sprite-sheet-se.png" }
7668
7700
  ];
7669
7701
  const userFieldNames = new Set(baseFields.map((f) => f.name));
7670
7702
  const fields = [...baseFields, ...domainFields.filter((f) => !userFieldNames.has(f.name))];
@@ -7687,14 +7719,51 @@ function buildEntity43(c) {
7687
7719
  function buildTrait44(c) {
7688
7720
  const { entityName, frameWidth, frameHeight, scale } = c;
7689
7721
  const spriteView = {
7690
- type: "sprite",
7691
- spritesheet: `@${entityName}.spritesheet`,
7692
- frameWidth,
7693
- frameHeight,
7694
- frame: `@${entityName}.frame`,
7695
- x: `@${entityName}.x`,
7696
- y: `@${entityName}.y`,
7697
- scale
7722
+ type: "stack",
7723
+ direction: "vertical",
7724
+ gap: "md",
7725
+ children: [
7726
+ {
7727
+ type: "stack",
7728
+ direction: "horizontal",
7729
+ gap: "sm",
7730
+ align: "center",
7731
+ children: [
7732
+ { type: "icon", name: "image", size: "lg" },
7733
+ { type: "typography", content: `${entityName} Sprite`, variant: "h2" }
7734
+ ]
7735
+ },
7736
+ { type: "divider" },
7737
+ {
7738
+ type: "box",
7739
+ className: "relative bg-gray-900 rounded-lg overflow-hidden",
7740
+ style: { width: `${frameWidth * scale * 4}px`, height: `${frameHeight * scale * 4}px`, margin: "0 auto" },
7741
+ children: [
7742
+ {
7743
+ type: "sprite",
7744
+ spritesheet: `@${entityName}.spritesheet`,
7745
+ frameWidth,
7746
+ frameHeight,
7747
+ frame: `@${entityName}.frame`,
7748
+ x: frameWidth * scale,
7749
+ y: frameHeight * scale,
7750
+ scale
7751
+ }
7752
+ ]
7753
+ },
7754
+ {
7755
+ type: "stack",
7756
+ direction: "horizontal",
7757
+ gap: "md",
7758
+ justify: "center",
7759
+ children: [
7760
+ { type: "typography", content: `Frame: `, variant: "caption", color: "muted" },
7761
+ { type: "badge", content: `@${entityName}.frame`, variant: "default" },
7762
+ { type: "typography", content: `Position: `, variant: "caption", color: "muted" },
7763
+ { type: "badge", content: ["concat", `@${entityName}.x`, ",", `@${entityName}.y`], variant: "default" }
7764
+ ]
7765
+ }
7766
+ ]
7698
7767
  };
7699
7768
  return {
7700
7769
  name: c.traitName,
@@ -7753,12 +7822,80 @@ function buildEntity44(c) {
7753
7822
  }
7754
7823
  function buildTrait45(c) {
7755
7824
  const { entityName, initialMuted } = c;
7825
+ const audioControls = {
7826
+ type: "stack",
7827
+ direction: "vertical",
7828
+ gap: "lg",
7829
+ className: "max-w-md mx-auto",
7830
+ children: [
7831
+ {
7832
+ type: "stack",
7833
+ direction: "horizontal",
7834
+ gap: "sm",
7835
+ align: "center",
7836
+ children: [
7837
+ { type: "icon", name: "volume-2", size: "lg" },
7838
+ { type: "typography", content: "Audio Controls", variant: "h2" }
7839
+ ]
7840
+ },
7841
+ { type: "divider" },
7842
+ {
7843
+ type: "card",
7844
+ children: [
7845
+ {
7846
+ type: "stack",
7847
+ direction: "vertical",
7848
+ gap: "md",
7849
+ children: [
7850
+ { type: "typography", content: initialMuted ? "Audio Muted" : "Audio Active", variant: "h4" },
7851
+ { type: "typography", content: "Toggle mute to control game audio playback.", variant: "body", color: "muted" },
7852
+ {
7853
+ type: "stack",
7854
+ direction: "horizontal",
7855
+ gap: "sm",
7856
+ children: [
7857
+ { type: "button", label: "Toggle Mute", icon: initialMuted ? "volume-x" : "volume-2", event: "TOGGLE_MUTE", variant: "primary" }
7858
+ ]
7859
+ }
7860
+ ]
7861
+ }
7862
+ ]
7863
+ },
7864
+ {
7865
+ type: "card",
7866
+ children: [
7867
+ {
7868
+ type: "stack",
7869
+ direction: "vertical",
7870
+ gap: "sm",
7871
+ children: [
7872
+ { type: "typography", content: "Sound Effects", variant: "h4" },
7873
+ {
7874
+ type: "stack",
7875
+ direction: "horizontal",
7876
+ gap: "sm",
7877
+ children: [
7878
+ { type: "button", label: "Play Click", icon: "play", variant: "outline" },
7879
+ { type: "button", label: "Play Confirm", icon: "play", variant: "outline" },
7880
+ { type: "button", label: "Play Drop", icon: "play", variant: "outline" }
7881
+ ]
7882
+ }
7883
+ ]
7884
+ }
7885
+ ]
7886
+ }
7887
+ ]
7888
+ };
7756
7889
  const audioView = {
7757
7890
  type: "game-audio-provider",
7758
- manifest: {},
7759
- baseUrl: "",
7891
+ manifest: {
7892
+ click: "https://almadar-kflow-assets.web.app/shared/audio/sfx/close_001.ogg",
7893
+ confirm: "https://almadar-kflow-assets.web.app/shared/audio/sfx/confirmation_001.ogg",
7894
+ drop: "https://almadar-kflow-assets.web.app/shared/audio/sfx/drop_001.ogg"
7895
+ },
7896
+ baseUrl: "https://almadar-kflow-assets.web.app/shared/audio",
7760
7897
  initialMuted,
7761
- children: []
7898
+ children: [audioControls]
7762
7899
  };
7763
7900
  return {
7764
7901
  name: c.traitName,
@@ -8211,15 +8348,38 @@ function resolve51(params) {
8211
8348
  };
8212
8349
  }
8213
8350
  function buildEntity49(c) {
8214
- return makeEntity({ name: c.entityName, fields: c.fields, persistence: c.persistence });
8351
+ const fields = [
8352
+ ...c.fields.filter((f) => !["tiles", "units", "features"].includes(f.name)),
8353
+ { name: "tiles", type: "array", default: [] },
8354
+ { name: "units", type: "array", default: [] },
8355
+ { name: "features", type: "array", default: [] }
8356
+ ];
8357
+ const instances = [
8358
+ {
8359
+ id: "scene-1",
8360
+ name: "Battle Arena",
8361
+ description: "A 3D battle arena",
8362
+ status: "active",
8363
+ createdAt: "2026-01-01",
8364
+ tiles: [
8365
+ { x: 0, y: 0, z: 0, type: "grass" },
8366
+ { x: 1, y: 0, z: 0, type: "grass" },
8367
+ { x: 0, y: 0, z: 1, type: "stone" },
8368
+ { x: 1, y: 0, z: 1, type: "water" }
8369
+ ],
8370
+ units: [],
8371
+ features: []
8372
+ }
8373
+ ];
8374
+ return makeEntity({ name: c.entityName, fields, persistence: c.persistence, instances });
8215
8375
  }
8216
8376
  function buildTrait50(c) {
8217
8377
  const { entityName, orientation, cameraMode, showGrid, shadows, backgroundColor } = c;
8218
8378
  const canvasView = {
8219
8379
  type: "game-canvas3-d",
8220
- tiles: `@${entityName}`,
8221
- units: `@${entityName}`,
8222
- features: `@${entityName}`,
8380
+ tiles: ["object/get", ["array/first", `@${entityName}`], "tiles"],
8381
+ units: ["object/get", ["array/first", `@${entityName}`], "units"],
8382
+ features: ["object/get", ["array/first", `@${entityName}`], "features"],
8223
8383
  orientation,
8224
8384
  cameraMode,
8225
8385
  showGrid,