@almadar/skills 2.3.0 → 2.5.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/dist/index.js CHANGED
@@ -1488,8 +1488,8 @@ The most-used patterns (by frequency across all behaviors):
1488
1488
  {
1489
1489
  "type": "stack", "direction": "horizontal", "gap": "md",
1490
1490
  "children": [
1491
- { "type": "stat-display", "label": "Total", "value": "--" },
1492
- { "type": "stat-display", "label": "Active", "value": "--" }
1491
+ { "type": "stat-display", "label": "Total", "value": "@entity.total", "icon": "package" },
1492
+ { "type": "stat-display", "label": "Price", "value": "@entity.price", "icon": "dollar-sign" }
1493
1493
  ]
1494
1494
  },
1495
1495
  {
@@ -3100,14 +3100,10 @@ ${getSExprQuickRef()}
3100
3100
 
3101
3101
  ---
3102
3102
 
3103
- ${includeDesignGuide ? getRenderUIDesignGuide() : ""}
3103
+ ${includeDesignGuide ? getOrbRenderUIGuide() : ""}
3104
3104
 
3105
3105
  ${includeDesignGuide ? `---
3106
3106
 
3107
- ${getThemeGuide()}
3108
-
3109
- ---
3110
-
3111
3107
  ${getBannedProps()}` : ""}
3112
3108
 
3113
3109
  ${stdSection}
@@ -4388,11 +4384,8 @@ These are the ONLY patterns you may use. They are derived from 104 production be
4388
4384
  | Pattern | Purpose | Key Props |
4389
4385
  |---------|---------|-----------|
4390
4386
  | \`stat-display\` | Single KPI display | \`label\`, \`value\`, \`icon\` |
4391
- | \`stats\` | Multiple stat cards | \`entity\`, \`items\` |
4392
4387
  | \`stat-badge\` | Stat with badge | \`label\`, \`value\`, \`variant\` |
4393
4388
  | \`meter\` | Metric gauge | \`value\`, \`max\`, \`label\` |
4394
- | \`line-chart\` | Line chart | \`entity\`, \`xField\`, \`yField\` |
4395
- | \`chart\` | Generic chart | \`entity\`, \`type\`, \`fields\` |
4396
4389
  | \`trend-indicator\` | Trend up/down | \`value\`, \`direction\` |
4397
4390
  | \`score-display\` | Score/count | \`value\`, \`label\` |
4398
4391
 
@@ -4523,9 +4516,9 @@ Instead of \`page-header\`, compose with atoms:
4523
4516
  {
4524
4517
  "type": "stack", "direction": "horizontal", "gap": "md", "wrap": true,
4525
4518
  "children": [
4526
- { "type": "stat-display", "label": "Total", "value": "--", "icon": "list" },
4527
- { "type": "stat-display", "label": "Active", "value": "--", "icon": "activity" },
4528
- { "type": "stat-display", "label": "Done", "value": "--", "icon": "check-circle" }
4519
+ { "type": "stat-display", "label": "Total", "value": "@entity.count", "icon": "list" },
4520
+ { "type": "stat-display", "label": "Active", "value": "@entity.activeCount", "icon": "activity" },
4521
+ { "type": "stat-display", "label": "Done", "value": "@entity.doneCount", "icon": "check-circle" }
4529
4522
  ]
4530
4523
  }
4531
4524
  \`\`\`
@@ -4554,6 +4547,26 @@ Instead of \`page-header\`, compose with atoms:
4554
4547
  | **Payload events** | \`{ "key": "SAVE", "payload": [...] }\` | No payload | ORB_BINDING_PAYLOAD_FIELD_UNDECLARED |
4555
4548
  | **Page traits** | \`{ "ref": "TraitName" }\` | With linkedEntity | ORB_P_INVALID_TRAIT_REF |
4556
4549
  | **Category** | \`"category": "interaction"\` | Missing | ORB_T_MISSING_CATEGORY |
4550
+ | **Page traits array** | \`"traits": [{ "ref": "TraitName" }]\` | Missing traits | Page renders blank |
4551
+ | **Entity names** | \`"Task"\`, \`"CartItem"\` | \`"Form"\`, \`"Button"\`, \`"Card"\` | Name collision with UI component |
4552
+
4553
+ ### Effect Operators (Use ONLY These)
4554
+
4555
+ | Operator | Purpose | Example |
4556
+ |----------|---------|---------|
4557
+ | \`set\` | Set entity field | \`["set", "@entity.status", "active"]\` |
4558
+ | \`fetch\` | Load entity data | \`["fetch", "Task"]\` |
4559
+ | \`persist\` | Create/update/delete | \`["persist", "create", "Task", "@payload.data"]\` |
4560
+ | \`notify\` | Show notification | \`["notify", "Saved!", "success"]\` |
4561
+
4562
+ **BANNED**: \`call-service\` (external integrations only), \`emit\` (handled separately), \`log\`, \`navigate\`
4563
+
4564
+ ### Binding Rules for Prop Values
4565
+
4566
+ - Each prop value can have at most ONE binding: \`"value": "@entity.price"\`
4567
+ - NEVER concatenate bindings: \`"@entity.price @entity.currency"\` is INVALID
4568
+ - NEVER use inline expressions: \`"@entity.quantity <= 0"\` is INVALID
4569
+ - For conditional logic, use guards on transitions, not prop expressions
4557
4570
 
4558
4571
  ---
4559
4572
 
@@ -4752,9 +4765,9 @@ Uses only atoms and molecules. No organisms.
4752
4765
  {
4753
4766
  "type": "stack", "direction": "horizontal", "gap": "md", "wrap": true,
4754
4767
  "children": [
4755
- { "type": "stat-display", "label": "Total Tasks", "value": "--", "icon": "list" },
4756
- { "type": "stat-display", "label": "In Progress", "value": "--", "icon": "clock" },
4757
- { "type": "stat-display", "label": "Completed", "value": "--", "icon": "check-circle" }
4768
+ { "type": "stat-display", "label": "Total Tasks", "value": "@entity.count", "icon": "list" },
4769
+ { "type": "stat-display", "label": "In Progress", "value": "@entity.inProgressCount", "icon": "clock" },
4770
+ { "type": "stat-display", "label": "Completed", "value": "@entity.completedCount", "icon": "check-circle" }
4758
4771
  ]
4759
4772
  },
4760
4773
  {
@@ -4821,7 +4834,7 @@ Uses only atoms and molecules. No organisms.
4821
4834
  "effects": [
4822
4835
  ["persist", "create", "Task", "@payload.data"],
4823
4836
  ["render-ui", "modal", null],
4824
- ["emit", "INIT"]
4837
+ ["fetch", "Task"]
4825
4838
  ]
4826
4839
  },
4827
4840
  {
@@ -4829,7 +4842,7 @@ Uses only atoms and molecules. No organisms.
4829
4842
  "effects": [
4830
4843
  ["persist", "update", "Task", "@entity.id", "@payload.data"],
4831
4844
  ["render-ui", "modal", null],
4832
- ["emit", "INIT"]
4845
+ ["fetch", "Task"]
4833
4846
  ]
4834
4847
  },
4835
4848
  {
@@ -4870,7 +4883,7 @@ Uses only atoms and molecules. No organisms.
4870
4883
  "from": "Browsing", "to": "Browsing", "event": "DELETE",
4871
4884
  "effects": [
4872
4885
  ["persist", "delete", "Task", "@payload.id"],
4873
- ["emit", "INIT"]
4886
+ ["fetch", "Task"]
4874
4887
  ]
4875
4888
  }
4876
4889
  ]