@almadar/core 10.107.0 → 10.109.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/builders.d.ts +5 -5
- package/dist/builders.js.map +1 -1
- package/dist/{bus-LOS3PhAg.d.ts → bus-De_T27aq.d.ts} +2 -2
- package/dist/{effect-CXEHwilA.d.ts → effect-Cv7k1MTO.d.ts} +97 -9
- package/dist/{entityAccess-B3DEJe_j.d.ts → entityAccess-CH8vC2OG.d.ts} +3 -3
- package/dist/{expression-CfeHdS-f.d.ts → expression-C6Gs_c5b.d.ts} +7 -1
- package/dist/factory/index.d.ts +5 -5
- package/dist/factory/index.js +1558 -250
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +5 -5
- package/dist/factory-runtime/index.js +1 -1
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/fixtures.d.ts +3 -3
- package/dist/fixtures.js.map +1 -1
- package/dist/{index-Dv2PNH42.d.ts → index-BzFToa4c.d.ts} +15 -8
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1667 -255
- package/dist/index.js.map +1 -1
- package/dist/lolo-document/index.d.ts +7 -1
- package/dist/lolo-document/index.js +39 -1
- package/dist/lolo-document/index.js.map +1 -1
- package/dist/mock/index.d.ts +6 -6
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +11 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +3271 -588
- package/dist/patterns/index.js +1573 -253
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +1559 -251
- package/dist/patterns/registry.json +1559 -251
- package/dist/{schema-Bpel0-Do.d.ts → schema-Chi9QIcZ.d.ts} +1022 -1022
- package/dist/state-machine/index.d.ts +1 -1
- package/dist/themes/index.d.ts +1 -1
- package/dist/{trait-C97MPrMf.d.ts → trait-A_OGE8xT.d.ts} +182 -182
- package/dist/types/index.d.ts +8 -8
- package/dist/types/index.js +96 -2
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CoFKpB6f.d.ts → types-DQoBssKq.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/{domain-DnEv7amB.d.ts → domain-DYverojF.d.ts} +28 -28
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as FieldValue, S as ServerReportedEffect, N as NamespacedEffectName, g as EntityRow, d as OrbitalId, T as TraitId, b as EventId, h as PatternConfig, i as ResolvedPatternProps, A as AnyPatternConfig } from './effect-
|
|
1
|
+
import { F as FieldValue, S as ServerReportedEffect, N as NamespacedEffectName, g as EntityRow, d as OrbitalId, T as TraitId, b as EventId, h as PatternConfig, i as ResolvedPatternProps, A as AnyPatternConfig } from './effect-Cv7k1MTO.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { a as EventPayloadValue, b as EventPayload } from './expression-
|
|
3
|
+
import { a as EventPayloadValue, b as EventPayload } from './expression-C6Gs_c5b.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Authenticated user context — what `@user.x` resolves against.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { S as SExpr, b as EventPayload, E as Expression } from './expression-
|
|
2
|
+
import { S as SExpr, b as EventPayload, E as Expression } from './expression-C6Gs_c5b.js';
|
|
3
3
|
import { J as JsonValue, R as RuntimeValue } from './json-D8gmyK3l.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -859,7 +859,7 @@ interface IdentityLedger {
|
|
|
859
859
|
}
|
|
860
860
|
/** Resolve a name to its id via exact `curName` match within `kind`, else null. */
|
|
861
861
|
declare function ledgerResolveName(ledger: IdentityLedger, kind: LedgerKind, name: string): string | null;
|
|
862
|
-
/** Immutable rename: returns a new ledger with the id's `curName` + `renames` updated. */
|
|
862
|
+
/** Immutable rename: returns a new ledger with the id's `curName` + `renames` updated; renaming to the current name is a no-op. */
|
|
863
863
|
declare function ledgerRename(ledger: IdentityLedger, id: string, to: string, at: string): IdentityLedger;
|
|
864
864
|
/** Current display name for an id, or null when the id is not in the ledger. */
|
|
865
865
|
declare function ledgerCurName(ledger: IdentityLedger, id: string): string | null;
|
|
@@ -2840,8 +2840,8 @@ type EntityData = Record<string, EntityRow[]>;
|
|
|
2840
2840
|
*
|
|
2841
2841
|
* DO NOT EDIT MANUALLY — regenerated by almadar-pattern-sync `patterns` command.
|
|
2842
2842
|
*
|
|
2843
|
-
* Generated: 2026-09-
|
|
2844
|
-
* Pattern count:
|
|
2843
|
+
* Generated: 2026-09-28T12:49:04.983Z
|
|
2844
|
+
* Pattern count: 252
|
|
2845
2845
|
*/
|
|
2846
2846
|
|
|
2847
2847
|
/**
|
|
@@ -2853,7 +2853,7 @@ type PatternPropValue = Record<string, FieldValue | undefined>;
|
|
|
2853
2853
|
* All valid pattern type names from @almadar/core/patterns registry.
|
|
2854
2854
|
* Use this type in render-ui effects for compile-time validation.
|
|
2855
2855
|
*/
|
|
2856
|
-
type PatternType = 'accordion' | 'action-palette' | 'action-tile' | 'activation-block' | 'alert' | 'algo-graph-canvas' | 'algorithm-canvas' | 'animated-counter' | 'animated-graphic' | 'animated-reveal' | 'aside' | 'atlas-image' | 'atlas-panel' | 'auth-layout' | 'avatar' | 'badge' | 'behavior-view' | 'biology-canvas' | 'bloom-quiz-block' | 'box' | 'branching-logic-builder' | 'breadcrumb' | 'button' | 'calendar-grid' | 'canvas' | 'canvas-2d' | 'card' | 'carousel' | 'center' | 'change-list' | 'chart' | 'chart-legend' | 'chat-bar' | 'checkbox' | 'chemistry-canvas' | 'choice-button' | 'code-block' | 'code-runner-panel' | 'command-palette' | 'commit-row' | 'conditional-wrapper' | 'confetti-effect' | 'confirm-dialog' | 'connection-block' | 'container' | 'content-renderer' | 'control-button' | 'control-grid' | 'counter-template' | 'dashboard-grid' | 'dashboard-layout' | 'data-grid' | 'data-list' | 'date-range-picker' | 'date-range-selector' | 'day-cell' | 'detail-panel' | 'dialog' | 'dialogue-bubble' | 'divider' | 'doc-breadcrumb' | 'doc-pagination' | 'doc-search' | 'doc-sidebar' | 'doc-toc' | 'dock-layout' | 'document-details' | 'document-panel' | 'document-viewer' | 'draw-fx-layer' | 'draw-group' | 'draw-mesh' | 'draw-shape' | 'draw-shape-layer' | 'draw-skinned-mesh' | 'draw-sprite' | 'draw-sprite-layer' | 'draw-text' | 'draw-text-layer' | 'drawer' | 'drawer-slot' | 'edge-decoration' | 'emoji-picker' | 'empty-state' | 'entity-cards' | 'entity-list' | 'entity-table' | 'error-boundary' | 'error-state' | 'feature-card' | 'feature-grid' | 'file-tree' | 'filter-group' | 'filter-pill' | 'flex' | 'flip-card' | 'flip-container' | 'floating-action-button' | 'floating-toolbar' | 'form' | 'form-actions' | 'form-field' | 'form-layout' | 'form-section' | 'form-section-header' | 'fx-overlay' | 'game-audio-cue' | 'game-audio-toggle' | 'game-hud' | 'game-icon' | 'game-menu' | 'game-shell' | 'gantt' | 'generic-app-template' | 'geometric-pattern' | 'gradient-divider' | 'graph-canvas' | 'graph-view' | 'grid' | 'header' | 'health-bar' | 'hstack' | 'icon' | 'icon-button' | 'image' | 'import-preview-tree' | 'import-progress' | 'import-source-picker' | 'infinite-scroll-sentinel' | 'input' | 'input-group' | 'jazari-state-machine' | 'label' | 'law-reference-tooltip' | 'learning-canvas' | 'lightbox' | 'likert-scale' | 'line-chart' | 'loading-state' | 'map-view' | 'markdown-content' | 'master-detail' | 'master-detail-layout' | 'math-canvas' | 'matrix-question' | 'media-gallery' | 'menu' | 'meter' | 'modal' | 'modal-slot' | 'module-card' | 'navigation' | 'notification' | 'number-stepper' | 'option-constraint-group' | 'orbital-visualization' | 'overlay' | 'page-header' | 'page-transition' | 'pagination' | 'pattern-tile' | 'physics-canvas' | 'popover' | 'positioned-canvas' | 'presence' | 'progress-bar' | 'progress-dots' | 'pull-to-refresh' | 'qr-scanner' | 'quiz-block' | 'radio' | 'range-slider' | 'reflection-block' | 'relation-select' | 'repeatable-form-section' | 'reply-tree' | 'rich-text-editor' | 'runtime-debugger' | 'scaled-diagram' | 'score-display' | 'search-input' | 'section' | 'section-header' | 'segment-renderer' | 'select' | 'sequence-bar' | 'side-panel' | 'sidebar' | 'signature-pad' | 'simple-grid' | 'skeleton' | 'social-proof' | 'sortable-list' | 'spacer' | 'sparkline' | 'spinner' | 'split' | 'split-pane' | 'stack' | 'star-rating' | 'stat-badge' | 'stat-card' | 'stat-display' | 'state-graph' | 'state-json-view' | 'state-machine-view' | 'status-dot' | 'subagent-trace-panel' | 'svg-branch' | 'svg-connection' | 'svg-flow' | 'svg-grid' | 'svg-lobe' | 'svg-mesh' | 'svg-morph' | 'svg-node' | 'svg-pulse' | 'svg-ring' | 'svg-shield' | 'svg-stack' | 'swipeable-row' | 'switch' | 'tabbed-container' | 'table-view' | 'tabs' | 'tag-input' | 'text-highlight' | 'textarea' | 'theme-toggle' | 'time-slot-cell' | 'timeline' | 'timer-display' | 'toast-slot' | 'tooltip' | 'top-nav-item' | 'trait-frame' | 'trait-slot' | 'trend-indicator' | 'typewriter-text' | 'typography' | 'ui-slot-component' | 'ui-slot-renderer' | 'upload-drop-zone' | 'version-diff' | 'violation-alert' | 'vote-stack' | 'vstack' | 'wizard-container' | 'wizard-navigation' | 'wizard-progress';
|
|
2856
|
+
type PatternType = 'accordion' | 'action-palette' | 'action-tile' | 'activation-block' | 'alert' | 'algo-graph-canvas' | 'algorithm-canvas' | 'animated-counter' | 'animated-graphic' | 'animated-reveal' | 'aside' | 'atlas-image' | 'atlas-panel' | 'auth-layout' | 'avatar' | 'avl-glyph' | 'avl-state-machine' | 'badge' | 'behavior-view' | 'biology-canvas' | 'bloom-quiz-block' | 'box' | 'branching-logic-builder' | 'breadcrumb' | 'button' | 'calendar-grid' | 'canvas' | 'canvas-2d' | 'card' | 'carousel' | 'center' | 'change-list' | 'chart' | 'chart-legend' | 'chat-bar' | 'checkbox' | 'chemistry-canvas' | 'choice-button' | 'code-block' | 'code-runner-panel' | 'command-palette' | 'commit-row' | 'conditional-wrapper' | 'confetti-effect' | 'confirm-dialog' | 'connection-block' | 'container' | 'content-renderer' | 'control-button' | 'control-grid' | 'counter-template' | 'dashboard-grid' | 'dashboard-layout' | 'data-grid' | 'data-list' | 'date-range-picker' | 'date-range-selector' | 'day-cell' | 'detail-panel' | 'dialog' | 'dialogue-bubble' | 'divider' | 'doc-breadcrumb' | 'doc-pagination' | 'doc-search' | 'doc-sidebar' | 'doc-toc' | 'dock-layout' | 'document-details' | 'document-panel' | 'document-viewer' | 'draw-fx-layer' | 'draw-group' | 'draw-mesh' | 'draw-shape' | 'draw-shape-layer' | 'draw-skinned-mesh' | 'draw-sprite' | 'draw-sprite-layer' | 'draw-text' | 'draw-text-layer' | 'drawer' | 'drawer-slot' | 'edge-decoration' | 'emoji-picker' | 'empty-state' | 'entity-cards' | 'entity-list' | 'entity-table' | 'error-boundary' | 'error-state' | 'feature-card' | 'feature-grid' | 'file-tree' | 'filter-group' | 'filter-pill' | 'flex' | 'flip-card' | 'flip-container' | 'floating-action-button' | 'floating-toolbar' | 'form' | 'form-actions' | 'form-field' | 'form-layout' | 'form-section' | 'form-section-header' | 'fx-overlay' | 'game-audio-cue' | 'game-audio-toggle' | 'game-hud' | 'game-icon' | 'game-menu' | 'game-shell' | 'gantt' | 'generic-app-template' | 'geometric-pattern' | 'gradient-divider' | 'graph-canvas' | 'graph-view' | 'grid' | 'header' | 'health-bar' | 'hstack' | 'icon' | 'icon-button' | 'image' | 'import-preview-tree' | 'import-progress' | 'import-source-picker' | 'infinite-scroll-sentinel' | 'input' | 'input-group' | 'jazari-state-machine' | 'label' | 'law-reference-tooltip' | 'learning-canvas' | 'lightbox' | 'likert-scale' | 'line-chart' | 'loading-state' | 'map-view' | 'markdown-content' | 'master-detail' | 'master-detail-layout' | 'math-canvas' | 'matrix-question' | 'media-gallery' | 'menu' | 'meter' | 'modal' | 'modal-slot' | 'module-card' | 'navigation' | 'notification' | 'number-stepper' | 'option-constraint-group' | 'orbital-visualization' | 'overlay' | 'page-header' | 'page-transition' | 'pagination' | 'pattern-tile' | 'physics-canvas' | 'popover' | 'positioned-canvas' | 'presence' | 'progress-bar' | 'progress-dots' | 'pull-to-refresh' | 'qr-scanner' | 'quiz-block' | 'radio' | 'range-slider' | 'reflection-block' | 'relation-select' | 'repeatable-form-section' | 'reply-tree' | 'rich-text-editor' | 'runtime-debugger' | 'scaled-diagram' | 'score-display' | 'search-input' | 'section' | 'section-header' | 'segment-renderer' | 'select' | 'sequence-bar' | 'side-panel' | 'sidebar' | 'signature-pad' | 'simple-grid' | 'skeleton' | 'social-proof' | 'sortable-list' | 'spacer' | 'sparkline' | 'spinner' | 'split' | 'split-pane' | 'stack' | 'star-rating' | 'stat-badge' | 'stat-card' | 'stat-display' | 'state-graph' | 'state-json-view' | 'state-machine-view' | 'status-dot' | 'subagent-trace-panel' | 'svg-branch' | 'svg-connection' | 'svg-flow' | 'svg-grid' | 'svg-lobe' | 'svg-mesh' | 'svg-morph' | 'svg-node' | 'svg-pulse' | 'svg-ring' | 'svg-shield' | 'svg-stack' | 'swipeable-row' | 'switch' | 'tabbed-container' | 'table-view' | 'tabs' | 'tag-input' | 'text-highlight' | 'textarea' | 'theme-toggle' | 'time-slot-cell' | 'timeline' | 'timer-display' | 'toast-slot' | 'tooltip' | 'top-nav-item' | 'trait-frame' | 'trait-slot' | 'trend-indicator' | 'typewriter-text' | 'typography' | 'ui-slot-component' | 'ui-slot-renderer' | 'upload-drop-zone' | 'version-diff' | 'violation-alert' | 'vote-stack' | 'vstack' | 'wizard-container' | 'wizard-navigation' | 'wizard-progress';
|
|
2857
2857
|
/**
|
|
2858
2858
|
* Pattern props map — each pattern type maps to its valid props interface.
|
|
2859
2859
|
*/
|
|
@@ -3052,6 +3052,34 @@ interface PatternPropsMap {
|
|
|
3052
3052
|
action?: string | SExpr;
|
|
3053
3053
|
actionPayload?: PatternPropValue | string | SExpr;
|
|
3054
3054
|
};
|
|
3055
|
+
'avl-glyph': {
|
|
3056
|
+
type: 'avl-glyph';
|
|
3057
|
+
kind: string | SExpr;
|
|
3058
|
+
label?: string | SExpr;
|
|
3059
|
+
effectType?: string | SExpr;
|
|
3060
|
+
fieldType?: PatternPropValue | string | SExpr;
|
|
3061
|
+
persistence?: PatternPropValue | string | SExpr;
|
|
3062
|
+
namespace?: PatternPropValue | string | SExpr;
|
|
3063
|
+
size?: string | SExpr;
|
|
3064
|
+
showCaption?: boolean | string | SExpr;
|
|
3065
|
+
className?: string | SExpr;
|
|
3066
|
+
};
|
|
3067
|
+
'avl-state-machine': {
|
|
3068
|
+
type: 'avl-state-machine';
|
|
3069
|
+
trait: PatternPropValue | string | SExpr;
|
|
3070
|
+
activeState?: string | SExpr;
|
|
3071
|
+
activeTransition?: number | string | SExpr;
|
|
3072
|
+
visitedStates?: unknown[] | string | SExpr;
|
|
3073
|
+
stateClickEvent?: string | SExpr;
|
|
3074
|
+
transitionClickEvent?: string | SExpr;
|
|
3075
|
+
selectedState?: string | SExpr;
|
|
3076
|
+
pendingSourceState?: string | SExpr;
|
|
3077
|
+
nodeShape?: string | SExpr;
|
|
3078
|
+
entityFields?: unknown[] | string | SExpr;
|
|
3079
|
+
direction?: string | SExpr;
|
|
3080
|
+
showHeader?: boolean | string | SExpr;
|
|
3081
|
+
className?: string | SExpr;
|
|
3082
|
+
};
|
|
3055
3083
|
'badge': {
|
|
3056
3084
|
type: 'badge';
|
|
3057
3085
|
className?: string | SExpr;
|
|
@@ -3439,6 +3467,14 @@ interface PatternPropsMap {
|
|
|
3439
3467
|
onSetMode?: string | SExpr;
|
|
3440
3468
|
motions?: unknown[] | string | SExpr;
|
|
3441
3469
|
operators?: unknown[] | string | SExpr;
|
|
3470
|
+
completions?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
3471
|
+
assist?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
3472
|
+
problems?: number | string | SExpr;
|
|
3473
|
+
diagnostics?: unknown[] | string | SExpr;
|
|
3474
|
+
definitionAt?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
3475
|
+
onGoToDefinition?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
3476
|
+
diagnosticsCode?: string | SExpr;
|
|
3477
|
+
lineNumbers?: boolean | string | SExpr;
|
|
3442
3478
|
};
|
|
3443
3479
|
'code-runner-panel': {
|
|
3444
3480
|
type: 'code-runner-panel';
|
|
@@ -4225,6 +4261,8 @@ interface PatternPropsMap {
|
|
|
4225
4261
|
selectedId?: string | SExpr;
|
|
4226
4262
|
look?: string | SExpr;
|
|
4227
4263
|
onFileSelect?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
4264
|
+
onNodeExpand?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
4265
|
+
expandedPaths?: unknown[] | string | SExpr;
|
|
4228
4266
|
onNodeSelect?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
4229
4267
|
onNodeAction?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
4230
4268
|
nodeActionIcon?: string | SExpr;
|
|
@@ -5736,11 +5774,21 @@ interface PatternPropsMap {
|
|
|
5736
5774
|
};
|
|
5737
5775
|
'state-machine-view': {
|
|
5738
5776
|
type: 'state-machine-view';
|
|
5777
|
+
activeState?: string | SExpr;
|
|
5778
|
+
activeTransition?: number | string | SExpr;
|
|
5779
|
+
visitedStates?: unknown[] | string | SExpr;
|
|
5780
|
+
stateClickEvent?: string | SExpr;
|
|
5781
|
+
transitionClickEvent?: string | SExpr;
|
|
5782
|
+
selectedState?: string | SExpr;
|
|
5783
|
+
pendingSourceState?: string | SExpr;
|
|
5784
|
+
nodeShape?: string | SExpr;
|
|
5785
|
+
entityFields?: unknown[] | string | SExpr;
|
|
5786
|
+
direction?: string | SExpr;
|
|
5787
|
+
showHeader?: boolean | string | SExpr;
|
|
5739
5788
|
className?: string | SExpr;
|
|
5789
|
+
trait?: PatternPropValue | string | SExpr;
|
|
5740
5790
|
isLoading?: boolean | string | SExpr;
|
|
5741
5791
|
error?: PatternPropValue | string | SExpr;
|
|
5742
|
-
layoutData?: PatternPropValue | string | SExpr;
|
|
5743
|
-
renderStateNode?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
5744
5792
|
};
|
|
5745
5793
|
'status-dot': {
|
|
5746
5794
|
type: 'status-dot';
|
|
@@ -6910,11 +6958,34 @@ type AsyncAllEffect = ['async/all', ...Effect[]];
|
|
|
6910
6958
|
* @example ['async/sequence', ['call', 'validate'], ['call', 'save']]
|
|
6911
6959
|
*/
|
|
6912
6960
|
type AsyncSequenceEffect = ['async/sequence', ...Effect[]];
|
|
6961
|
+
/** Effect operators the std registry declares that had no typed tuple (arity from the registry). */
|
|
6962
|
+
type NotifyEffect = ['notify', SExpr] | ['notify', SExpr, SExpr];
|
|
6963
|
+
type SendServerEffect = ['send-server', SExpr] | ['send-server', SExpr, SExpr];
|
|
6964
|
+
type AsyncTimeoutEffect = ['async/timeout', SExpr, SExpr];
|
|
6965
|
+
type AsyncRetryEffect = ['async/retry', SExpr, SExpr];
|
|
6966
|
+
type NnSetWeightsEffect = ['nn/setWeights', SExpr, SExpr];
|
|
6967
|
+
type TrainLoopEffect = ['train/loop', SExpr, SExpr, SExpr];
|
|
6968
|
+
type TrainStepEffect = ['train/step', SExpr, SExpr, SExpr, SExpr];
|
|
6969
|
+
type TrainClipGradientsEffect = ['train/clipGradients', SExpr, SExpr];
|
|
6970
|
+
type TrainClipWeightsEffect = ['train/clipWeights', SExpr, SExpr];
|
|
6971
|
+
type TrainSgdEffect = ['train/sgd', SExpr, SExpr] | ['train/sgd', SExpr, SExpr, SExpr];
|
|
6972
|
+
type TrainAdamEffect = ['train/adam', SExpr, SExpr] | ['train/adam', SExpr, SExpr, SExpr] | ['train/adam', SExpr, SExpr, SExpr, SExpr];
|
|
6973
|
+
type ProbSeedEffect = ['prob/seed', SExpr];
|
|
6974
|
+
type ProbConditionEffect = ['prob/condition', SExpr];
|
|
6975
|
+
type WorkspaceWriteOrbitalEffect = ['workspace/write-orbital', SExpr, SExpr];
|
|
6976
|
+
type WorkspaceWriteFileEffect = ['workspace/write-file', SExpr, SExpr];
|
|
6977
|
+
type WorkspaceWriteSchemaEffect = ['workspace/write-schema', SExpr];
|
|
6978
|
+
type WorkspaceWritePlanEffect = ['workspace/write-plan', SExpr];
|
|
6979
|
+
type WorkspaceArchiveOrbitalEffect = ['workspace/archive-orbital', SExpr];
|
|
6980
|
+
type LoloEmitBodyEffect = ['lolo/emit-body', SExpr, SExpr, SExpr];
|
|
6981
|
+
type IntegrationHttpEffect = ['integration/http', SExpr, SExpr, SExpr] | ['integration/http', SExpr, SExpr, SExpr, SExpr];
|
|
6982
|
+
type IntegrationGithubGetRepoEffect = ['integration/github-get-repo', SExpr, SExpr];
|
|
6983
|
+
type IntegrationGithubCreateIssueEffect = ['integration/github-create-issue', SExpr, SExpr, SExpr];
|
|
6913
6984
|
/**
|
|
6914
6985
|
* Union of all typed effects.
|
|
6915
6986
|
* Provides compile-time validation for common effect types.
|
|
6916
6987
|
*/
|
|
6917
|
-
type TypedEffect = RenderUIEffect | NavigateEffect | NavigateBackEffect | EmitEffect | SetEffect | PersistEffect | CallServiceEffect | SpawnEffect | DespawnEffect | DoEffect | FetchEffect | FetchStreamEffect | IfEffect | WhenEffect | LetEffect | LogEffect | WaitEffect | RefEffect | DerefEffect | SwapEffect | WatchEffect | AtomicEffect | AsyncDelayEffect | AsyncDebounceEffect | AsyncThrottleEffect | AsyncIntervalEffect | AsyncRaceEffect | AsyncAllEffect | AsyncSequenceEffect | ForwardEffect | TrainEffect | EvaluateEffect | CheckpointSaveEffect | CheckpointLoadEffect | AgentEffect | OsEffect | BrowserEffect | LlmEffect | BehaviorEffect | ValidateEffect | SessionEffect | ComposeEffect | TraceEffect | MemoryEffect | ApplicationEffect;
|
|
6988
|
+
type TypedEffect = RenderUIEffect | NavigateEffect | NavigateBackEffect | EmitEffect | SetEffect | PersistEffect | CallServiceEffect | SpawnEffect | DespawnEffect | DoEffect | FetchEffect | FetchStreamEffect | IfEffect | WhenEffect | LetEffect | LogEffect | WaitEffect | RefEffect | DerefEffect | SwapEffect | WatchEffect | AtomicEffect | AsyncDelayEffect | AsyncDebounceEffect | AsyncThrottleEffect | AsyncIntervalEffect | AsyncRaceEffect | AsyncAllEffect | AsyncSequenceEffect | ForwardEffect | TrainEffect | EvaluateEffect | CheckpointSaveEffect | CheckpointLoadEffect | AgentEffect | OsEffect | BrowserEffect | LlmEffect | BehaviorEffect | ValidateEffect | SessionEffect | ComposeEffect | TraceEffect | MemoryEffect | ApplicationEffect | NotifyEffect | SendServerEffect | AsyncTimeoutEffect | AsyncRetryEffect | NnSetWeightsEffect | TrainLoopEffect | TrainStepEffect | TrainClipGradientsEffect | TrainClipWeightsEffect | TrainSgdEffect | TrainAdamEffect | ProbSeedEffect | ProbConditionEffect | WorkspaceWriteOrbitalEffect | WorkspaceWriteFileEffect | WorkspaceWriteSchemaEffect | WorkspaceWritePlanEffect | WorkspaceArchiveOrbitalEffect | LoloEmitBodyEffect | IntegrationHttpEffect | IntegrationGithubGetRepoEffect | IntegrationGithubCreateIssueEffect;
|
|
6918
6989
|
/**
|
|
6919
6990
|
* Effect type - typed S-expression format.
|
|
6920
6991
|
*
|
|
@@ -6941,6 +7012,23 @@ type TypedEffect = RenderUIEffect | NavigateEffect | NavigateBackEffect | EmitEf
|
|
|
6941
7012
|
* ["persist", "create", "Task", { "title": "@payload.title" }]
|
|
6942
7013
|
*/
|
|
6943
7014
|
type Effect = TypedEffect;
|
|
7015
|
+
/** Every literal effect operator the {@link Effect} union declares, as runtime data. */
|
|
7016
|
+
declare const EFFECT_OPERATORS: readonly ["render-ui", "navigate", "navigate-back", "emit", "set", "persist", "call-service", "spawn", "despawn", "do", "fetch", "fetch-stream", "if", "when", "let", "log", "wait", "ref", "deref", "swap", "watch", "atomic", "async/delay", "async/debounce", "async/throttle", "async/interval", "async/race", "async/all", "async/sequence", "forward", "train", "evaluate", "checkpoint/save", "checkpoint/load", "notify", "send-server", "async/timeout", "async/retry", "nn/setWeights", "train/loop", "train/step", "train/clipGradients", "train/clipWeights", "train/sgd", "train/adam", "prob/seed", "prob/condition", "workspace/write-orbital", "workspace/write-file", "workspace/write-schema", "workspace/write-plan", "workspace/archive-orbital", "lolo/emit-body", "integration/http", "integration/github-get-repo", "integration/github-create-issue"];
|
|
7017
|
+
/** Namespaced effect families (`<family>/<name>`, e.g. `llm/generate`) the {@link Effect} union declares. */
|
|
7018
|
+
declare const EFFECT_OPERATOR_FAMILIES: readonly ["agent", "os", "browser", "llm", "behavior", "validate", "session", "compose", "trace", "memory", "application"];
|
|
7019
|
+
type EffectOperator = (typeof EFFECT_OPERATORS)[number];
|
|
7020
|
+
type EffectOperatorFamily = (typeof EFFECT_OPERATOR_FAMILIES)[number];
|
|
7021
|
+
type EffectHead = Effect[0];
|
|
7022
|
+
type FamilyOfHead<H> = H extends `${infer P}/${string}` ? (`${P}/\u0000` extends H ? P : never) : never;
|
|
7023
|
+
type LiteralOfHead<H> = H extends `${infer P}/${string}` ? (`${P}/\u0000` extends H ? never : H) : H;
|
|
7024
|
+
type AssertTrue<T extends true> = T;
|
|
7025
|
+
/** Fails to compile when the runtime lists and the {@link Effect} union drift apart, in either direction. */
|
|
7026
|
+
type EffectOperatorsInSync = AssertTrue<[
|
|
7027
|
+
Exclude<LiteralOfHead<EffectHead>, EffectOperator>,
|
|
7028
|
+
Exclude<EffectOperator, LiteralOfHead<EffectHead>>,
|
|
7029
|
+
Exclude<FamilyOfHead<EffectHead>, EffectOperatorFamily>,
|
|
7030
|
+
Exclude<EffectOperatorFamily, FamilyOfHead<EffectHead>>
|
|
7031
|
+
] extends [never, never, never, never] ? true : false>;
|
|
6944
7032
|
/**
|
|
6945
7033
|
* The effects a server reports an outcome for on
|
|
6946
7034
|
* `OrbitalEventResponse.effectResults` (`ServerEffectResult.effect`). Every
|
|
@@ -7160,4 +7248,4 @@ interface RenderUINode {
|
|
|
7160
7248
|
renderItem?: RenderUINode;
|
|
7161
7249
|
}
|
|
7162
7250
|
|
|
7163
|
-
export {
|
|
7251
|
+
export { CAMERA_MODES as $, type AnyPatternConfig as A, AssetAspectSchema as B, type AssetCatalog as C, type AssetCatalogEntry as D, type EntityField as E, type FieldValue as F, type AssetCatalogEntryInput as G, AssetCatalogEntrySchema as H, type IdentityLedger as I, AssetCatalogSchema as J, type AssetDimension as K, AssetDimensionSchema as L, AssetSchema as M, type NamespacedEffectName as N, type OrbitalEntity as O, type PageId as P, type AssetUrl as Q, type RelationConfig as R, type ServerReportedEffect as S, type TraitId as T, type UISlot as U, type AsyncRetryEffect as V, type AsyncTimeoutEffect as W, type AtomicEffect as X, type AudioManifest as Y, AudioManifestSchema as Z, type BehaviorEffect as _, type EntityPersistence as a, type LlmEffect as a$, type CallServiceConfig as a0, type CallServiceEffect as a1, type Camera as a2, type CameraMode as a3, CameraModeSchema as a4, CameraSchema as a5, type CheckpointLoadEffect as a6, type CheckpointSaveEffect as a7, type ComposeEffect as a8, type ControlValue as a9, type EvaluateEffect as aA, EventIdSchema as aB, FIELD_TYPES as aC, type FetchEffect as aD, type FetchOptions as aE, type FetchResult as aF, type FetchStreamEffect as aG, type FetchStreamOptions as aH, type Field as aI, FieldSchema as aJ, type FieldType as aK, FieldTypeSchema as aL, FieldValueSchema as aM, type FileValue as aN, FileValueSchema as aO, type ForwardConfig as aP, type ForwardEffect as aQ, type IdForKind as aR, type IdKind as aS, IdentityLedgerSchema as aT, type IntegrationGithubCreateIssueEffect as aU, type IntegrationGithubGetRepoEffect as aV, type IntegrationHttpEffect as aW, type LedgerEntry as aX, LedgerEntrySchema as aY, type LedgerKind as aZ, LedgerKindSchema as a_, DEFAULT_UNIT_ANIMATION_ROWS as aa, type DerefEffect as ab, type DespawnEffect as ac, type DoEffect as ad, EFFECT_OPERATORS as ae, EFFECT_OPERATOR_FAMILIES as af, ENTITY_ROLES as ag, type EffectInput as ah, type EffectOperator as ai, type EffectOperatorFamily as aj, type EffectOperatorsInSync as ak, EffectSchema as al, type EmitConfig as am, type EmitEffect as an, type EntityData as ao, type EntityFieldInput as ap, EntityFieldSchema as aq, EntityIdSchema as ar, EntityPersistenceSchema as as, type EntityRole as at, EntityRoleSchema as au, EntityRowSchema as av, EntitySchema as aw, type EntityWith as ax, type EnumEntityField as ay, type EvaluateConfig as az, type EventId as b, SPRITE_DIRECTIONS as b$, type LogEffect as b0, type LoloEmitBodyEffect as b1, MANIFEST_ASSET_LICENSES as b2, MANIFEST_CANVAS_AFFINITIES as b3, MANIFEST_ENTRY_KINDS as b4, MANIFEST_SOURCE_CATALOGS as b5, type ManifestAssetLicense as b6, ManifestAssetLicenseSchema as b7, type ManifestCanvasAffinity as b8, ManifestCanvasAffinitySchema as b9, type PaletteEntryId as bA, PaletteEntryIdSchema as bB, PatternConfigSchema as bC, type PatternProps as bD, type PatternPropsMap as bE, type PatternType as bF, type PersistBatchOperation as bG, type PersistData as bH, type PersistEffect as bI, type PersistEmitConfig as bJ, type ProbConditionEffect as bK, type ProbSeedEffect as bL, type RefEffect as bM, RelationConfigSchema as bN, type RelationEntityField as bO, type RenderChildrenMap as bP, type RenderItemLambda as bQ, type RenderUINode as bR, ResolvedPatternPropsSchema as bS, type RestAuthConfig as bT, RestAuthConfigSchema as bU, type RestServiceDef as bV, RestServiceDefSchema as bW, SEMANTIC_STRING_TYPES as bX, SERVER_REPORTED_EFFECTS as bY, SERVICE_TYPES as bZ, SHEET_PROJECTIONS as b_, type ManifestEntry as ba, type ManifestEntryInput as bb, type ManifestEntryKind as bc, ManifestEntryKindSchema as bd, ManifestEntrySchema as be, type ManifestFrameSpec as bf, ManifestFrameSpecSchema as bg, type ManifestSourceCatalog as bh, ManifestSourceCatalogSchema as bi, type McpServiceDef as bj, McpServiceDefSchema as bk, type MemoryEffect as bl, type NavigateBackEffect as bm, type NavigateEffect as bn, type NavigateOptions as bo, type NnConfig as bp, type NnLayer as bq, type NnSetWeightsEffect as br, type NotifyEffect as bs, type ObjectEntityField as bt, type OrbitalEntityInput as bu, OrbitalEntitySchema as bv, OrbitalIdSchema as bw, type OsEffect as bx, PATTERN_TYPES as by, PageIdSchema as bz, type Effect as c, type VisualStyle as c$, SPRITE_SHEET_LAYOUT as c0, type ScalarEntityField as c1, type ScenePos as c2, ScenePosSchema as c3, type SemanticAssetRef as c4, type SemanticAssetRefInput as c5, SemanticAssetRefSchema as c6, type SemanticStringType as c7, type SendServerEffect as c8, ServiceDefinitionSchema as c9, type SpriteSheetLayout as cA, type SubTexture as cB, SubTextureSchema as cC, type SwapEffect as cD, TYPE_POSITION_ONLY as cE, type TemplatePatternConfig as cF, type TextureAtlas as cG, TextureAtlasSchema as cH, type ThemeId as cI, ThemeIdSchema as cJ, type Tilesheet as cK, TilesheetSchema as cL, type TraceEffect as cM, type TrainAdamEffect as cN, type TrainClipGradientsEffect as cO, type TrainClipWeightsEffect as cP, type TrainConfig as cQ, type TrainEffect as cR, type TrainLoopEffect as cS, type TrainSgdEffect as cT, type TrainStepEffect as cU, TraitIdSchema as cV, type TypedEffect as cW, UISlotSchema as cX, UI_SLOTS as cY, VISUAL_STYLES as cZ, type ValidateEffect as c_, type ServiceId as ca, ServiceIdSchema as cb, type ServiceParams as cc, type ServiceParamsValue as cd, type ServiceRefObject as ce, ServiceRefObjectSchema as cf, ServiceRefSchema as cg, ServiceRefStringSchema as ch, type ServiceType as ci, ServiceTypeSchema as cj, type SessionEffect as ck, type SetEffect as cl, type SheetProjection as cm, SheetProjectionSchema as cn, type SocketEvents as co, SocketEventsSchema as cp, type SocketServiceDef as cq, SocketServiceDefSchema as cr, type SoundEntry as cs, SoundEntrySchema as ct, type SpawnEffect as cu, type SpriteDirection as cv, SpriteDirectionSchema as cw, type SpriteSheetAtlas as cx, type SpriteSheetAtlasInput as cy, SpriteSheetAtlasSchema as cz, type OrbitalId as d, matchAssetQuery as d$, VisualStyleSchema as d0, type WatchEffect as d1, type WatchOptions as d2, type WorkspaceArchiveOrbitalEffect as d3, type WorkspaceWriteFileEffect as d4, type WorkspaceWriteOrbitalEffect as d5, type WorkspaceWritePlanEffect as d6, type WorkspaceWriteSchemaEffect as d7, asEntityId as d8, asEventId as d9, isEventId as dA, isFieldValue as dB, isFileValue as dC, isMcpService as dD, isOrbitalId as dE, isPageId as dF, isPaletteEntryId as dG, isPersistBatchOperation as dH, isPhoneValue as dI, isRestService as dJ, isRuntimeEntity as dK, isSExprEffect as dL, isSemanticStringType as dM, isSemanticStringValue as dN, isServiceId as dO, isServiceReference as dP, isServiceReferenceObject as dQ, isSocketService as dR, isThemeId as dS, isTraitId as dT, isUrlValue as dU, isUuidValue as dV, isValidPatternType as dW, ledgerCurName as dX, ledgerRename as dY, ledgerResolveName as dZ, manifestToAssetCatalog as d_, asOrbitalId as da, asPageId as db, asPaletteEntryId as dc, asServiceId as dd, asThemeId as de, asTraitId as df, atomic as dg, callService as dh, createAssetKey as di, defaultUnitAtlas as dj, deref as dk, deriveCollection as dl, deriveId as dm, despawn as dn, doEffects as dp, emit as dq, findService as dr, getDefaultAnimationsForRole as ds, getServiceNames as dt, hasService as du, idKindOf as dv, idPrefix as dw, isEffect as dx, isEmailValue as dy, isEntityId as dz, type EntityId as e, mintId as e0, navigate as e1, navigateBack as e2, parseAssetKey as e3, parseAssetQuery as e4, parseServiceRef as e5, persist as e6, persistenceModeAllowsOverrides as e7, ref as e8, renderUI as e9, set as ea, spawn as eb, swap as ec, validateAssetAnimations as ed, watch as ee, type Entity as f, type EntityRow as g, type PatternConfig as h, type ResolvedPatternProps as i, type ServiceRef as j, type ServiceDefinition as k, type RenderBinding as l, type RenderUIEffect as m, ANIMATION_NAMES as n, ASSET_ASPECTS as o, ASSET_DIMENSIONS as p, type AgentEffect as q, type AnimationDef as r, type AnimationDefInput as s, AnimationDefSchema as t, type AnimationName as u, AnimationNameSchema as v, type ApplicationEffect as w, type ArrayEntityField as x, type Asset as y, type AssetAspect as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OrbitalEntity } from './effect-
|
|
2
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from './schema-
|
|
3
|
-
import { S as SExpr } from './expression-
|
|
1
|
+
import { O as OrbitalEntity } from './effect-Cv7k1MTO.js';
|
|
2
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from './schema-Chi9QIcZ.js';
|
|
3
|
+
import { S as SExpr } from './expression-C6Gs_c5b.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Entity access policies — the declared `@read`/`@create`/`@update`/`@delete`
|
|
@@ -182,6 +182,12 @@ declare function isValidBinding(binding: string): boolean;
|
|
|
182
182
|
* @returns The operator string or null if not a valid call
|
|
183
183
|
*/
|
|
184
184
|
declare function getOperator(expr: SExpr): string | null;
|
|
185
|
+
/**
|
|
186
|
+
* Print an S-expression in `.lolo` surface form: calls as `(op args…)`,
|
|
187
|
+
* bindings bare, strings quoted, objects `{ k: v }`, literal arrays `[a b]`.
|
|
188
|
+
* Structural only — a string-headed array is a call, as in {@link isSExpr}.
|
|
189
|
+
*/
|
|
190
|
+
declare function formatSExpr(expr: SExpr): string;
|
|
185
191
|
/**
|
|
186
192
|
* Get the arguments from an S-expression call.
|
|
187
193
|
*
|
|
@@ -265,4 +271,4 @@ interface LogMeta {
|
|
|
265
271
|
*/
|
|
266
272
|
declare function isStaticallyFalse(expr: SExpr, resolve?: (binding: string) => SExprAtom | undefined): boolean;
|
|
267
273
|
|
|
268
|
-
export {
|
|
274
|
+
export { parseBinding as A, sexpr as B, CORE_BINDINGS as C, walkSExpr as D, type Expression as E, type LogMeta as L, type ParsedBinding as P, type SExpr as S, type EventPayloadValue as a, type EventPayload as b, type CoreBinding as c, type EvalContext as d, EventPayloadSchema as e, EventPayloadValueSchema as f, type ExpressionInput as g, ExpressionSchema as h, type LogMetaValue as i, type SExprAtom as j, SExprAtomSchema as k, SExprDataSchema as l, type SExprInput as m, type SExprObject as n, SExprSchema as o, collectBindings as p, formatSExpr as q, getArgs as r, getOperator as s, isBinding as t, isEventPayloadValue as u, isSExpr as v, isSExprAtom as w, isSExprCall as x, isStaticallyFalse as y, isValidBinding as z };
|
package/dist/factory/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { k as FactorySignatureCatalog, h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay, J as JsonSchema } from '../types-
|
|
2
|
-
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, l as FactorySignatureEntityField, m as FactoryTraitSignature, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-
|
|
3
|
-
import { a as EntityPersistence, E as EntityField } from '../effect-
|
|
4
|
-
import { a as TraitReference } from '../trait-
|
|
1
|
+
import { k as FactorySignatureCatalog, h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay, J as JsonSchema } from '../types-DQoBssKq.js';
|
|
2
|
+
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, l as FactorySignatureEntityField, m as FactoryTraitSignature, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-DQoBssKq.js';
|
|
3
|
+
import { a as EntityPersistence, E as EntityField } from '../effect-Cv7k1MTO.js';
|
|
4
|
+
import { a as TraitReference } from '../trait-A_OGE8xT.js';
|
|
5
5
|
export { J as JsonValue } from '../json-D8gmyK3l.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../expression-
|
|
7
|
+
import '../expression-C6Gs_c5b.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Rehydrate `overridableConfigKeys` from a catalog's `knobDefs` table,
|