@almadar/std 16.199.0 → 16.201.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/behaviors/lolo/ui/avl/atoms/ui-behavior-view.lolo +2 -2
- package/behaviors/lolo/ui/avl/atoms/ui-module-card.lolo +2 -2
- package/behaviors/lolo/ui/core/atoms/std-app-layout.lolo +1 -1
- package/behaviors/lolo/ui/core/atoms/std-file-store.lolo +1 -1
- package/behaviors/lolo/ui/core/atoms/ui-conditional-wrapper.lolo +11 -4
- package/behaviors/lolo/ui/core/atoms/ui-icon.lolo +1 -1
- package/behaviors/lolo/ui/core/atoms/ui-input.lolo +10 -4
- package/behaviors/lolo/ui/core/atoms/ui-select.lolo +6 -4
- package/behaviors/lolo/ui/core/molecules/ui-branching-logic-builder.lolo +5 -5
- package/behaviors/lolo/ui/core/molecules/ui-document-details.lolo +8 -1
- package/behaviors/lolo/ui/core/molecules/ui-drawer.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-edge-decoration.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-file-tree.lolo +5 -0
- package/behaviors/lolo/ui/core/molecules/ui-floating-action-button.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-floating-toolbar.lolo +54 -0
- package/behaviors/lolo/ui/core/molecules/ui-gradient-divider.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-import-preview-tree.lolo +8 -1
- package/behaviors/lolo/ui/core/molecules/ui-input-group.lolo +10 -4
- package/behaviors/lolo/ui/core/molecules/ui-orbital-visualization.lolo +3 -3
- package/behaviors/lolo/ui/core/molecules/ui-reply-tree.lolo +1 -1
- package/behaviors/lolo/ui/core/molecules/ui-swipeable-row.lolo +3 -3
- package/behaviors/lolo/ui/core/molecules/ui-wizard-container.lolo +23 -16
- package/behaviors/lolo/ui/core/organisms/ui-dock-layout.lolo +186 -0
- package/behaviors/lolo/ui/core/organisms/ui-entity-cards.lolo +2 -2
- package/behaviors/lolo/ui/core/organisms/ui-entity-list.lolo +1 -1
- package/behaviors/lolo/ui/core/organisms/ui-entity-table.lolo +2 -2
- package/behaviors/lolo/ui/core/organisms/ui-form-section.lolo +15 -8
- package/behaviors/lolo/ui/core/organisms/ui-form.lolo +15 -8
- package/behaviors/lolo/ui/core/organisms/ui-split-pane.lolo +37 -1
- package/behaviors/lolo/ui/core/organisms/ui-stat-card.lolo +1 -1
- package/behaviors/lolo/ui/core/organisms/ui-subagent-trace-panel.lolo +3 -3
- package/behaviors/lolo/ui/game/atoms/std-coef-pad.lolo +5 -3
- package/behaviors/lolo/ui/game/atoms/std-fx-narrative.lolo +126 -0
- package/behaviors/lolo/ui/game/atoms/std-pickup.lolo +104 -0
- package/behaviors/lolo/ui/game/atoms/std-platformer-body.lolo +50 -21
- package/behaviors/lolo/ui/game/atoms/ui-control-button.lolo +3 -3
- package/behaviors/lolo/ui/game/atoms/ui-control-grid.lolo +1 -1
- package/behaviors/lolo/ui/game/atoms/ui-game-hud.lolo +1 -1
- package/behaviors/lolo/ui/game/atoms/ui-game-menu.lolo +3 -3
- package/behaviors/lolo/ui/game/atoms/ui-stat-badge.lolo +3 -3
- package/behaviors/lolo/ui/learning/atoms/ui-math-canvas.lolo +12 -0
- package/behaviors/registry/infra/atoms/std-approval-gate.orb +20 -10
- package/behaviors/registry/infra/atoms/std-cache-aside.orb +62 -31
- package/behaviors/registry/infra/atoms/std-circuit-breaker.orb +32 -16
- package/behaviors/registry/infra/atoms/std-data-erasure.orb +16 -8
- package/behaviors/registry/infra/atoms/std-mod-queue.orb +16 -8
- package/behaviors/registry/infra/atoms/std-rate-limiter.orb +28 -14
- package/behaviors/registry/infra/organisms/std-status-lifecycle-control.orb +2 -1
- package/behaviors/registry/ml/organisms/std-escalating-decision.orb +10 -5
- package/behaviors/registry/ml/organisms/std-knowledge-tracing.orb +4 -2
- package/behaviors/registry/ui/avl/atoms/ui-behavior-view.orb +389 -3
- package/behaviors/registry/ui/avl/atoms/ui-module-card.orb +389 -3
- package/behaviors/registry/ui/core/atoms/std-app-layout.orb +93 -2
- package/behaviors/registry/ui/core/atoms/std-billable-hour.orb +2 -1
- package/behaviors/registry/ui/core/atoms/std-browse.orb +6 -3
- package/behaviors/registry/ui/core/atoms/std-dashboard-grid-embedded.orb +2 -1
- package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +4 -2
- package/behaviors/registry/ui/core/atoms/std-esign-request.orb +6 -3
- package/behaviors/registry/ui/core/atoms/std-export.orb +4 -2
- package/behaviors/registry/ui/core/atoms/std-file-store.orb +101 -2
- package/behaviors/registry/ui/core/atoms/std-gallery.orb +18 -9
- package/behaviors/registry/ui/core/atoms/std-import.orb +4 -2
- package/behaviors/registry/ui/core/atoms/std-list.orb +6 -3
- package/behaviors/registry/ui/core/atoms/ui-atlas-image.orb +13 -1
- package/behaviors/registry/ui/core/atoms/ui-atlas-panel.orb +13 -1
- package/behaviors/registry/ui/core/atoms/ui-badge.orb +56 -1
- package/behaviors/registry/ui/core/atoms/ui-button.orb +56 -1
- package/behaviors/registry/ui/core/atoms/ui-conditional-wrapper.orb +277 -5
- package/behaviors/registry/ui/core/atoms/ui-game-icon.orb +56 -1
- package/behaviors/registry/ui/core/atoms/ui-icon.orb +1 -10
- package/behaviors/registry/ui/core/atoms/ui-input.orb +42 -7
- package/behaviors/registry/ui/core/atoms/ui-law-reference-tooltip.orb +27 -1
- package/behaviors/registry/ui/core/atoms/ui-select.orb +69 -9
- package/behaviors/registry/ui/core/molecules/ui-accordion.orb +30 -1
- package/behaviors/registry/ui/core/molecules/ui-branching-logic-builder.orb +76 -13
- package/behaviors/registry/ui/core/molecules/ui-breadcrumb.orb +30 -1
- package/behaviors/registry/ui/core/molecules/ui-chart-legend.orb +15 -1
- package/behaviors/registry/ui/core/molecules/ui-chart.orb +133 -1
- package/behaviors/registry/ui/core/molecules/ui-code-block.orb +77 -1
- package/behaviors/registry/ui/core/molecules/ui-confirm-dialog.orb +22 -1
- package/behaviors/registry/ui/core/molecules/ui-content-renderer.orb +34 -1
- package/behaviors/registry/ui/core/molecules/ui-data-grid.orb +99 -1
- package/behaviors/registry/ui/core/molecules/ui-data-list.orb +118 -1
- package/behaviors/registry/ui/core/molecules/ui-date-range-picker.orb +27 -1
- package/behaviors/registry/ui/core/molecules/ui-date-range-selector.orb +15 -1
- package/behaviors/registry/ui/core/molecules/ui-doc-breadcrumb.orb +14 -1
- package/behaviors/registry/ui/core/molecules/ui-doc-pagination.orb +35 -1
- package/behaviors/registry/ui/core/molecules/ui-doc-toc.orb +20 -1
- package/behaviors/registry/ui/core/molecules/ui-document-details.orb +65 -3
- package/behaviors/registry/ui/core/molecules/ui-document-panel.orb +22 -1
- package/behaviors/registry/ui/core/molecules/ui-document-viewer.orb +60 -1
- package/behaviors/registry/ui/core/molecules/ui-drawer.orb +1 -8
- package/behaviors/registry/ui/core/molecules/ui-edge-decoration.orb +1 -9
- package/behaviors/registry/ui/core/molecules/ui-feature-grid.orb +39 -1
- package/behaviors/registry/ui/core/molecules/ui-file-tree.orb +8 -0
- package/behaviors/registry/ui/core/molecules/ui-filter-group.orb +39 -1
- package/behaviors/registry/ui/core/molecules/ui-floating-action-button.orb +29 -10
- package/behaviors/registry/ui/core/molecules/ui-floating-toolbar.orb +274 -0
- package/behaviors/registry/ui/core/molecules/ui-form-actions.orb +85 -1
- package/behaviors/registry/ui/core/molecules/ui-form-layout.orb +22 -1
- package/behaviors/registry/ui/core/molecules/ui-fx-overlay.orb +76 -1
- package/behaviors/registry/ui/core/molecules/ui-gradient-divider.orb +1 -10
- package/behaviors/registry/ui/core/molecules/ui-graph-canvas.orb +421 -1
- package/behaviors/registry/ui/core/molecules/ui-graph-view.orb +92 -1
- package/behaviors/registry/ui/core/molecules/ui-header.orb +59 -1
- package/behaviors/registry/ui/core/molecules/ui-import-preview-tree.orb +125 -2
- package/behaviors/registry/ui/core/molecules/ui-import-progress.orb +17 -1
- package/behaviors/registry/ui/core/molecules/ui-import-source-picker.orb +39 -1
- package/behaviors/registry/ui/core/molecules/ui-input-group.orb +42 -7
- package/behaviors/registry/ui/core/molecules/ui-jazari-state-machine.orb +22 -1
- package/behaviors/registry/ui/core/molecules/ui-lightbox.orb +17 -1
- package/behaviors/registry/ui/core/molecules/ui-likert-scale.orb +15 -1
- package/behaviors/registry/ui/core/molecules/ui-line-chart.orb +18 -1
- package/behaviors/registry/ui/core/molecules/ui-map-view.orb +109 -1
- package/behaviors/registry/ui/core/molecules/ui-matrix-question.orb +27 -1
- package/behaviors/registry/ui/core/molecules/ui-meter.orb +57 -1
- package/behaviors/registry/ui/core/molecules/ui-option-constraint-group.orb +27 -1
- package/behaviors/registry/ui/core/molecules/ui-orbital-visualization.orb +78 -4
- package/behaviors/registry/ui/core/molecules/ui-page-header.orb +91 -1
- package/behaviors/registry/ui/core/molecules/ui-qr-scanner.orb +20 -1
- package/behaviors/registry/ui/core/molecules/ui-relation-select.orb +23 -1
- package/behaviors/registry/ui/core/molecules/ui-repeatable-form-section.orb +18 -1
- package/behaviors/registry/ui/core/molecules/ui-reply-tree.orb +5 -2
- package/behaviors/registry/ui/core/molecules/ui-section.orb +22 -1
- package/behaviors/registry/ui/core/molecules/ui-signature-pad.orb +22 -1
- package/behaviors/registry/ui/core/molecules/ui-social-proof.orb +18 -1
- package/behaviors/registry/ui/core/molecules/ui-split.orb +22 -1
- package/behaviors/registry/ui/core/molecules/ui-stat-display.orb +22 -1
- package/behaviors/registry/ui/core/molecules/ui-swipeable-row.orb +64 -4
- package/behaviors/registry/ui/core/molecules/ui-table-view.orb +136 -1
- package/behaviors/registry/ui/core/molecules/ui-tabs.orb +301 -1
- package/behaviors/registry/ui/core/molecules/ui-upload-drop-zone.orb +25 -1
- package/behaviors/registry/ui/core/molecules/ui-version-diff.orb +28 -1
- package/behaviors/registry/ui/core/molecules/ui-violation-alert.orb +46 -1
- package/behaviors/registry/ui/core/molecules/ui-wizard-container.orb +518 -102
- package/behaviors/registry/ui/core/molecules/ui-wizard-progress.orb +19 -1
- package/behaviors/registry/ui/core/organisms/ui-chat-bar.orb +22 -1
- package/behaviors/registry/ui/core/organisms/ui-dashboard-grid.orb +40 -1
- package/behaviors/registry/ui/core/organisms/ui-detail-panel.orb +196 -1
- package/behaviors/registry/ui/core/organisms/ui-dock-layout.orb +521 -0
- package/behaviors/registry/ui/core/organisms/ui-drawer-slot.orb +22 -1
- package/behaviors/registry/ui/core/organisms/ui-entity-cards.orb +83 -14
- package/behaviors/registry/ui/core/organisms/ui-entity-list.orb +64 -8
- package/behaviors/registry/ui/core/organisms/ui-entity-table.orb +152 -14
- package/behaviors/registry/ui/core/organisms/ui-form-section.orb +1140 -15
- package/behaviors/registry/ui/core/organisms/ui-form.orb +1140 -15
- package/behaviors/registry/ui/core/organisms/ui-master-detail.orb +22 -1
- package/behaviors/registry/ui/core/organisms/ui-media-gallery.orb +71 -1
- package/behaviors/registry/ui/core/organisms/ui-modal-slot.orb +22 -1
- package/behaviors/registry/ui/core/organisms/ui-segment-renderer.orb +29 -1
- package/behaviors/registry/ui/core/organisms/ui-split-pane.orb +109 -2
- package/behaviors/registry/ui/core/organisms/ui-stat-card.orb +61 -7
- package/behaviors/registry/ui/core/organisms/ui-state-machine-view.orb +22 -1
- package/behaviors/registry/ui/core/organisms/ui-subagent-trace-panel.orb +37 -7
- package/behaviors/registry/ui/core/organisms/ui-tabbed-container.orb +31 -1
- package/behaviors/registry/ui/core/organisms/ui-timeline.orb +73 -1
- package/behaviors/registry/ui/core/organisms/ui-toast-slot.orb +22 -1
- package/behaviors/registry/ui/game/atoms/std-coef-pad.orb +170 -4
- package/behaviors/registry/ui/game/atoms/std-fx-narrative.orb +695 -0
- package/behaviors/registry/ui/game/atoms/std-pickup.orb +835 -0
- package/behaviors/registry/ui/game/atoms/std-platformer-body.orb +1613 -1062
- package/behaviors/registry/ui/game/atoms/ui-action-palette.orb +269 -1
- package/behaviors/registry/ui/game/atoms/ui-action-tile.orb +288 -1
- package/behaviors/registry/ui/game/atoms/ui-canvas-2d.orb +54 -1
- package/behaviors/registry/ui/game/atoms/ui-canvas.orb +311 -1
- package/behaviors/registry/ui/game/atoms/ui-choice-button.orb +56 -1
- package/behaviors/registry/ui/game/atoms/ui-control-button.orb +59 -20
- package/behaviors/registry/ui/game/atoms/ui-control-grid.orb +186 -7
- package/behaviors/registry/ui/game/atoms/ui-dialogue-bubble.orb +56 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-fx-layer.orb +233 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-group.orb +137 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-mesh.orb +219 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-shape-layer.orb +951 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-shape.orb +512 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-sprite-layer.orb +270 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-sprite.orb +106 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-text-layer.orb +85 -1
- package/behaviors/registry/ui/game/atoms/ui-draw-text.orb +19 -1
- package/behaviors/registry/ui/game/atoms/ui-game-audio-toggle.orb +128 -1
- package/behaviors/registry/ui/game/atoms/ui-game-hud.orb +168 -8
- package/behaviors/registry/ui/game/atoms/ui-game-menu.orb +151 -13
- package/behaviors/registry/ui/game/atoms/ui-health-bar.orb +109 -1
- package/behaviors/registry/ui/game/atoms/ui-score-display.orb +56 -1
- package/behaviors/registry/ui/game/atoms/ui-sequence-bar.orb +523 -1
- package/behaviors/registry/ui/game/atoms/ui-stat-badge.orb +112 -22
- package/behaviors/registry/ui/game/atoms/ui-state-graph.orb +24 -1
- package/behaviors/registry/ui/game/atoms/ui-state-json-view.orb +20 -1
- package/behaviors/registry/ui/game/atoms/ui-trait-slot.orb +849 -1
- package/behaviors/registry/ui/game/organisms/std-arcade-board-3d.orb +8 -4
- package/behaviors/registry/ui/game/organisms/std-crew-board-2d.orb +6 -3
- package/behaviors/registry/ui/game/organisms/std-dungeon-board-2d.orb +10 -5
- package/behaviors/registry/ui/game/organisms/std-market-board-3d.orb +8 -4
- package/behaviors/registry/ui/game/organisms/std-objective-board-3d.orb +8 -4
- package/behaviors/registry/ui/game/organisms/std-platformer-board-2d.orb +6 -3
- package/behaviors/registry/ui/game/organisms/std-survival-board-3d.orb +8 -4
- package/behaviors/registry/ui/game/organisms/std-tactics-board-2d.orb +12 -6
- package/behaviors/registry/ui/game/organisms/std-tactics-board-3d.orb +8 -4
- package/behaviors/registry/ui/game/organisms/std-worldmap-board-2d.orb +6 -3
- package/behaviors/registry/ui/learning/atoms/ui-algo-graph-canvas.orb +289 -1
- package/behaviors/registry/ui/learning/atoms/ui-algorithm-canvas.orb +424 -1
- package/behaviors/registry/ui/learning/atoms/ui-biology-canvas.orb +925 -1
- package/behaviors/registry/ui/learning/atoms/ui-chemistry-canvas.orb +970 -1
- package/behaviors/registry/ui/learning/atoms/ui-learning-canvas.orb +351 -1
- package/behaviors/registry/ui/learning/atoms/ui-math-canvas.orb +610 -1
- package/behaviors/registry/ui/learning/atoms/ui-physics-canvas.orb +1049 -1
- package/behaviors/registry/ui/marketing/atoms/std-marketing-article.orb +2 -1
- package/behaviors/registry/ui/marketing/atoms/std-marketing-footer.orb +2 -1
- package/behaviors/registry/ui/marketing/atoms/std-marketing-split.orb +2 -1
- package/behaviors/registry/ui/marketing/atoms/std-marketing-stats.orb +2 -1
- package/behaviors/registry/ui/marketing/atoms/std-marketing-steps.orb +2 -1
- package/behaviors/registry/ui/marketing/atoms/std-marketing-team.orb +2 -1
- package/behaviors/registry/ui/marketing/atoms/ui-community-links.orb +36 -1
- package/behaviors/registry/ui/marketing/atoms/ui-cta-banner.orb +27 -1
- package/behaviors/registry/ui/marketing/atoms/ui-hero-section.orb +39 -1
- package/behaviors/registry/ui/marketing/atoms/ui-marketing-footer.orb +55 -1
- package/behaviors/registry/ui/marketing/atoms/ui-pricing-card.orb +15 -1
- package/behaviors/registry/ui/marketing/atoms/ui-pricing-grid.orb +65 -1
- package/behaviors/registry/ui/marketing/atoms/ui-service-catalog.orb +19 -1
- package/behaviors/registry/ui/marketing/atoms/ui-showcase-card.orb +15 -1
- package/behaviors/registry/ui/marketing/atoms/ui-split-section.orb +15 -1
- package/behaviors/registry/ui/marketing/atoms/ui-stats-grid.orb +15 -1
- package/behaviors/registry/ui/marketing/atoms/ui-step-flow.orb +23 -1
- package/behaviors/registry/ui/marketing/atoms/ui-tag-cloud.orb +18 -1
- package/behaviors/registry/ui/marketing/organisms/ui-book-viewer.orb +84 -1
- package/behaviors/registry/ui/marketing/organisms/ui-case-study-organism.orb +22 -1
- package/behaviors/registry/ui/marketing/organisms/ui-feature-grid-organism.orb +22 -1
- package/behaviors/registry/ui/marketing/organisms/ui-hero-organism.orb +52 -1
- package/behaviors/registry/ui/marketing/organisms/ui-pricing-organism.orb +22 -1
- package/behaviors/registry/ui/marketing/organisms/ui-showcase-organism.orb +32 -1
- package/behaviors/registry/ui/marketing/organisms/ui-stats-organism.orb +22 -1
- package/behaviors/registry/ui/marketing/organisms/ui-step-flow-organism.orb +22 -1
- package/behaviors/registry/ui/marketing/organisms/ui-team-organism.orb +22 -1
- package/behaviors/registry/ui/marketing/templates/ui-about-page-template.orb +176 -1
- package/behaviors/registry/ui/marketing/templates/ui-feature-detail-page-template.orb +147 -1
- package/behaviors/registry/ui/marketing/templates/ui-landing-page-template.orb +260 -1
- package/behaviors/registry/ui/marketing/templates/ui-pricing-page-template.orb +98 -1
- package/dist/behaviors/exports-reader.js +3918 -2596
- package/dist/behaviors/functions/index.d.ts +469 -30
- package/dist/behaviors/functions/index.js +3906 -2597
- package/dist/behaviors/index.d.ts +2 -2
- package/dist/behaviors/index.js +3929 -2597
- package/dist/behaviors/query.d.ts +88 -4
- package/dist/behaviors/query.js +3929 -2597
- package/dist/behaviors-embeddings.hash.json +3 -3
- package/dist/behaviors-embeddings.json +19 -3
- package/dist/behaviors-registry.json +122305 -2637
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3929 -2597
- package/dist/knob-embeddings.hash.json +3 -3
- package/dist/knob-embeddings.json +1 -1
- package/dist/registry/factory-signatures.json +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FactoryExposure, FactoryProvenance } from '@almadar/core';
|
|
1
|
+
import { JsonValue, FactoryExposure, FactoryProvenance, FactoryEventSignature, FactoryConfigParam } from '@almadar/core';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Behavior Registry Query Helpers
|
|
@@ -10,6 +10,53 @@ import { FactoryExposure, FactoryProvenance } from '@almadar/core';
|
|
|
10
10
|
* @packageDocumentation
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* The role a trait plays inside its orbital — stamped by
|
|
15
|
+
* `tools/almadar-pattern-sync` (`behaviors` command) via `deriveTraitRole`.
|
|
16
|
+
* `authority` = owns ticking state it provides fields for; `reactor` = wires
|
|
17
|
+
* transitions off listened/transitioned events with no tick of its own;
|
|
18
|
+
* `renderer` = renders UI; `chrome` = a generated `ui-*` atom wrapper;
|
|
19
|
+
* `frame` = an organism-level ref trait sharing a `linkedEntity` with a
|
|
20
|
+
* sibling ref trait (≥2), neither independently classified; `catalog` = a
|
|
21
|
+
* trait declaring the `asset-catalog` capability; `passive` = none of the
|
|
22
|
+
* above (config-only binding).
|
|
23
|
+
*/
|
|
24
|
+
type BehaviorTraitRole = 'authority' | 'reactor' | 'renderer' | 'chrome' | 'frame' | 'catalog' | 'passive';
|
|
25
|
+
/**
|
|
26
|
+
* Per-trait exposure surface for one trait inside a `RegistryEntry`'s
|
|
27
|
+
* orbital — the registry-record mirror of `FactoryTraitSignature`
|
|
28
|
+
* (`@almadar/core` `src/factory/types.ts`) plus the fields
|
|
29
|
+
* `*.signature.json` computes but the trait-signature type doesn't carry
|
|
30
|
+
* (`ticks`, `rendersUi`) and the derived `role`. Stamped by
|
|
31
|
+
* `tools/almadar-pattern-sync` (`behaviors` command); a ref trait (organism
|
|
32
|
+
* call site) inherits `entityContract`/`transitionEvents`/`ticks`/
|
|
33
|
+
* `rendersUi`/`overridableConfigKeys` from the referenced atom.
|
|
34
|
+
*/
|
|
35
|
+
interface RegistryTraitSurface {
|
|
36
|
+
name: string;
|
|
37
|
+
orbital: string;
|
|
38
|
+
ref?: string;
|
|
39
|
+
category?: string;
|
|
40
|
+
role: BehaviorTraitRole;
|
|
41
|
+
entityRebindable?: boolean;
|
|
42
|
+
linkedEntity?: string;
|
|
43
|
+
entityContract?: {
|
|
44
|
+
requires: string[];
|
|
45
|
+
provides: string[];
|
|
46
|
+
};
|
|
47
|
+
transitionEvents?: string[];
|
|
48
|
+
emittedEvents: string[];
|
|
49
|
+
listenedEvents: string[];
|
|
50
|
+
events?: FactoryEventSignature[];
|
|
51
|
+
overridableConfigKeys: FactoryConfigParam[];
|
|
52
|
+
definerKnobs?: string[];
|
|
53
|
+
capabilities: string[];
|
|
54
|
+
ticks: Array<{
|
|
55
|
+
name: string;
|
|
56
|
+
interval: string | number;
|
|
57
|
+
}>;
|
|
58
|
+
rendersUi: boolean;
|
|
59
|
+
}
|
|
13
60
|
interface RegistryEntry {
|
|
14
61
|
name: string;
|
|
15
62
|
level: 'atom' | 'molecule' | 'organism';
|
|
@@ -49,20 +96,24 @@ interface RegistryEntry {
|
|
|
49
96
|
fields: Array<{
|
|
50
97
|
name: string;
|
|
51
98
|
type: string;
|
|
52
|
-
|
|
99
|
+
required?: boolean;
|
|
100
|
+
default?: JsonValue;
|
|
53
101
|
}>;
|
|
54
102
|
};
|
|
55
103
|
defaultLabels: {
|
|
56
104
|
title: string;
|
|
105
|
+
createButton?: string;
|
|
57
106
|
entitySingular: string;
|
|
58
107
|
entityPlural: string;
|
|
59
108
|
};
|
|
109
|
+
/** Icon names lifted from the INIT render-ui tree. Stamped by `tools/almadar-pattern-sync` (`behaviors` command). */
|
|
110
|
+
defaultIcons?: string[];
|
|
60
111
|
composableWith: string[];
|
|
61
112
|
connectableEvents: string[];
|
|
62
113
|
eventPayloads: Record<string, Array<{
|
|
63
114
|
name: string;
|
|
64
115
|
type: string;
|
|
65
|
-
required
|
|
116
|
+
required?: boolean;
|
|
66
117
|
}>>;
|
|
67
118
|
/**
|
|
68
119
|
* Where the behavior may be dispatched: `app` (whole-app organisms),
|
|
@@ -87,6 +138,26 @@ interface RegistryEntry {
|
|
|
87
138
|
* legacy filters.
|
|
88
139
|
*/
|
|
89
140
|
provenance?: FactoryProvenance;
|
|
141
|
+
/**
|
|
142
|
+
* Per-trait exposure surfaces for the orbital's first (canonical) orbital
|
|
143
|
+
* — the registry-record mirror of `FactorySignature.traits`. Stamped by
|
|
144
|
+
* `tools/almadar-pattern-sync` (`behaviors` command) via `extractSignatures`
|
|
145
|
+
* + `inheritCallSiteOverrideTypes`. Optional: pre-W0 registries don't carry it.
|
|
146
|
+
*/
|
|
147
|
+
traits?: RegistryTraitSurface[];
|
|
148
|
+
/** Sorted unique union of `traits[].role`. Optional: pre-W0 registries don't carry it. */
|
|
149
|
+
roles?: BehaviorTraitRole[];
|
|
150
|
+
/**
|
|
151
|
+
* `orb validate`/`orb resolve` readiness, back-stamped by `std-ts`
|
|
152
|
+
* (`tools/almadar-pattern-sync` `regenerate.ts`) right after it computes
|
|
153
|
+
* the same fields for `*.signature.json` — one writer, pipeline-ordered.
|
|
154
|
+
* Optional: unstamped until the `orb` binary is available at regen time.
|
|
155
|
+
*/
|
|
156
|
+
sourceValid?: boolean;
|
|
157
|
+
/** `orb validate`/`orb resolve` error strings when `sourceValid` is `false`. Back-stamped alongside `sourceValid`. */
|
|
158
|
+
sourceErrors?: string[];
|
|
159
|
+
/** Path (relative to the package root) of the generated factory source, mirrors `FactorySignature.factoryPath`. */
|
|
160
|
+
factoryPath?: string;
|
|
90
161
|
}
|
|
91
162
|
interface BehaviorSummary {
|
|
92
163
|
name: string;
|
|
@@ -109,6 +180,19 @@ interface BehaviorSummary {
|
|
|
109
180
|
* Caching (and its concurrency safety) lives in `loadRegistryData`.
|
|
110
181
|
*/
|
|
111
182
|
declare function getBehaviorRegistry(): Promise<Record<string, RegistryEntry>>;
|
|
183
|
+
/**
|
|
184
|
+
* Filter behaviors by the derived per-trait role (`authority`/`reactor`/
|
|
185
|
+
* `renderer`/`chrome`/`frame`/`catalog`/`passive`) — matches an entry whose
|
|
186
|
+
* `roles` union contains `role`. Entries from a pre-W0 registry (no `roles`
|
|
187
|
+
* stamped) never match.
|
|
188
|
+
*/
|
|
189
|
+
declare function getBehaviorsByRole(role: BehaviorTraitRole): Promise<RegistryEntry[]>;
|
|
190
|
+
/**
|
|
191
|
+
* Look up one trait's exposure surface by behavior name + trait name.
|
|
192
|
+
* Returns `null` when the behavior or trait isn't found, or the registry
|
|
193
|
+
* entry predates `traits` stamping (V0 rollout).
|
|
194
|
+
*/
|
|
195
|
+
declare function getTraitSurface(name: string, trait: string): Promise<RegistryTraitSurface | null>;
|
|
112
196
|
/**
|
|
113
197
|
* Filter behaviors by domain. Matches against layer (primary) and family (fallback).
|
|
114
198
|
*/
|
|
@@ -127,4 +211,4 @@ declare function searchBehaviors(query: string): Promise<RegistryEntry[]>;
|
|
|
127
211
|
*/
|
|
128
212
|
declare function getBehaviorSummary(name: string): Promise<BehaviorSummary | null>;
|
|
129
213
|
|
|
130
|
-
export { type BehaviorSummary, type RegistryEntry, getBehaviorRegistry, getBehaviorSummary, getBehaviorsByDomain, getBehaviorsByOperations, searchBehaviors };
|
|
214
|
+
export { type BehaviorSummary, type BehaviorTraitRole, type RegistryEntry, type RegistryTraitSurface, getBehaviorRegistry, getBehaviorSummary, getBehaviorsByDomain, getBehaviorsByOperations, getBehaviorsByRole, getTraitSurface, searchBehaviors };
|