@almadar/runtime 6.25.0 → 6.28.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.
@@ -1,5 +1,5 @@
1
1
  import * as _almadar_core from '@almadar/core';
2
- import { SExpr, EventPayload, AgentContext, TraitConfig, BusEvent, EntityRow, FieldValue, ServiceParams, FetchResult, PatternConfig, ResolvedPatternProps, BusEventSource, BusEventListener, Unsubscribe as Unsubscribe$1 } from '@almadar/core';
2
+ import { SExpr, EventPayload, AgentContext, LlmContext, WorkspaceContext, SessionContext, MemoryContext, TraceContext, IntegrationContext, TraitConfig, BusEvent, EntityRow, FieldValue, ServiceParams, FetchResult, PatternConfig, ResolvedPatternProps, BusEventSource, BusEventListener, Unsubscribe as Unsubscribe$1 } from '@almadar/core';
3
3
 
4
4
  /** Alias for ResolvedPatternProps to avoid breaking internal consumers */
5
5
  type PatternProps = ResolvedPatternProps;
@@ -221,6 +221,22 @@ interface EffectHandlers {
221
221
  osWatchEnv?: (variable: string, emit?: OsEmitConfig) => void;
222
222
  /** Configure debounce for an OS event type */
223
223
  osDebounce?: (ms: number, eventType: string) => void;
224
+ /** compose/compose-all — compose multiple orbitals into one schema */
225
+ substrateComposeAll?: (config: {
226
+ appName: string;
227
+ orbitals: unknown[];
228
+ layoutStrategy?: string;
229
+ }) => Promise<unknown>;
230
+ /** compose/compose-children — compose children under a parent */
231
+ substrateComposeChildren?: (parentName: string, children: unknown[]) => Promise<unknown>;
232
+ /** behavior/instantiate — instantiate a behavior at runtime (meta `uses`) */
233
+ substrateInstantiate?: (parentName: string, behavior: string, params?: unknown) => Promise<unknown>;
234
+ /** behavior/call — call a method on an instantiated behavior */
235
+ substrateCall?: (behavior: string, method: string, params?: unknown) => Promise<unknown>;
236
+ /** validate/validate — validate an orbital, fires VALIDATED_OK/ERROR */
237
+ substrateValidate?: (orbitalName: string) => Promise<unknown>;
238
+ /** lolo/emit-body — emit lolo source for an orbital */
239
+ substrateEmitBody?: (orbitalName: string, loloSource: string) => Promise<unknown>;
224
240
  }
225
241
  /**
226
242
  * Author-configured `emit:` block threaded into `os/watch-*` handlers.
@@ -333,6 +349,13 @@ interface RuntimeConfig {
333
349
  interface EvaluationContextExtensions {
334
350
  /** Agent context for agent/* operators (memory, LLM, tools, session) */
335
351
  agent?: AgentContext;
352
+ /** Substrate contexts for the new operator namespaces */
353
+ llm?: LlmContext;
354
+ workspace?: WorkspaceContext;
355
+ session?: SessionContext;
356
+ memory?: MemoryContext;
357
+ trace?: TraceContext;
358
+ integration?: IntegrationContext;
336
359
  }
337
360
  /**
338
361
  * Execution context for handler manifest validation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/runtime",
3
- "version": "6.25.0",
3
+ "version": "6.28.0",
4
4
  "description": "Interpreted runtime for Almadar orbital applications (OrbitalServerRuntime)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -42,7 +42,7 @@
42
42
  "access": "public"
43
43
  },
44
44
  "dependencies": {
45
- "@almadar/core": "^10.11.0",
45
+ "@almadar/core": "^10.21.0",
46
46
  "@almadar/evaluator": ">=2.9.2",
47
47
  "@almadar/logger": "^1.0.0",
48
48
  "@almadar/server": "^2.14.2",