@relayfx/test 0.2.15 → 0.2.16

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 (58) hide show
  1. package/dist/index.js +1759 -1496
  2. package/dist/types/runtime/address/address-book-service.d.ts +3 -3
  3. package/dist/types/runtime/address/address-resolution-service.d.ts +41 -41
  4. package/dist/types/runtime/agent/agent-loop-service.d.ts +14 -5
  5. package/dist/types/runtime/agent/agent-registry-service.d.ts +2 -2
  6. package/dist/types/runtime/agent/prompt-assembler-service.d.ts +1 -1
  7. package/dist/types/runtime/agent/relay-tool-output.d.ts +4 -1
  8. package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +1 -1
  9. package/dist/types/runtime/child/child-fan-out-runtime.d.ts +12 -8
  10. package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +1 -1
  11. package/dist/types/runtime/child/child-run-service.d.ts +7 -4
  12. package/dist/types/runtime/child/parent-notifier-service.d.ts +4 -2
  13. package/dist/types/runtime/child/spawn-child-run-tool.d.ts +5 -4
  14. package/dist/types/runtime/cluster/execution-entity.d.ts +2 -2
  15. package/dist/types/runtime/content/artifact-store-service.d.ts +2 -2
  16. package/dist/types/runtime/content/blob-store-service.d.ts +1 -1
  17. package/dist/types/runtime/entity/entity-instance-service.d.ts +14 -5
  18. package/dist/types/runtime/entity/entity-registry-service.d.ts +2 -2
  19. package/dist/types/runtime/envelope/envelope-service.d.ts +2 -2
  20. package/dist/types/runtime/execution/active-execution-registry.d.ts +1 -1
  21. package/dist/types/runtime/execution/event-log-service.d.ts +5 -2
  22. package/dist/types/runtime/execution/execution-service.d.ts +1 -1
  23. package/dist/types/runtime/execution/execution-watch-service.d.ts +1 -1
  24. package/dist/types/runtime/execution/session-stream-service.d.ts +1 -1
  25. package/dist/types/runtime/inbox/inbox-service.d.ts +1 -1
  26. package/dist/types/runtime/memory/memory-service.d.ts +1 -1
  27. package/dist/types/runtime/model/embedding-model-service.d.ts +23 -10
  28. package/dist/types/runtime/model/language-model-service.d.ts +19 -6
  29. package/dist/types/runtime/model/model-call-policy.d.ts +1 -1
  30. package/dist/types/runtime/observability/runtime-metrics.d.ts +12 -3
  31. package/dist/types/runtime/presence/presence-service.d.ts +1 -1
  32. package/dist/types/runtime/presence/presence-tool.d.ts +1 -1
  33. package/dist/types/runtime/runner/runner-runtime-service.d.ts +19 -19
  34. package/dist/types/runtime/schedule/scheduler-service.d.ts +3 -3
  35. package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +2 -2
  36. package/dist/types/runtime/session/session-store-service.d.ts +13 -4
  37. package/dist/types/runtime/skill/skill-registry-service.d.ts +2 -2
  38. package/dist/types/runtime/state/execution-state-service.d.ts +5 -2
  39. package/dist/types/runtime/tool/tool-runtime-service.d.ts +42 -19
  40. package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +2 -2
  41. package/dist/types/runtime/topic/topic-service.d.ts +1 -1
  42. package/dist/types/runtime/wait/wait-service.d.ts +1 -1
  43. package/dist/types/runtime/wait/wait-signal.d.ts +12 -3
  44. package/dist/types/runtime/workflow/activity-version-registry.d.ts +7 -3
  45. package/dist/types/runtime/workflow/definition-runtime.d.ts +37 -22
  46. package/dist/types/runtime/workflow/execution-workflow.d.ts +105 -110
  47. package/dist/types/runtime/workspace/workspace-planner-service.d.ts +6 -6
  48. package/dist/types/runtime/workspace/workspace-provider-service.d.ts +11 -7
  49. package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +1 -1
  50. package/dist/types/schema/agent-schema.d.ts +246 -246
  51. package/dist/types/schema/child-orchestration-schema.d.ts +64 -64
  52. package/dist/types/schema/execution-schema.d.ts +57 -57
  53. package/dist/types/schema/workflow-schema.d.ts +243 -243
  54. package/dist/types/schema/workspace-schema.d.ts +1 -1
  55. package/dist/types/test/captured-model.d.ts +10 -4
  56. package/dist/types/test/scripted-model.d.ts +16 -6
  57. package/dist/types/test/wait-test-kit.d.ts +4 -4
  58. package/package.json +2 -2
@@ -11,7 +11,7 @@ export declare const WorkspaceCapabilities: Schema.Struct<{
11
11
  readonly can_fork: Schema.Boolean;
12
12
  readonly persistent_by_default: Schema.Boolean;
13
13
  readonly suspend_granularity: Schema.Literals<readonly ["memory", "filesystem", "none"]>;
14
- readonly max_suspend_duration_ms: Schema.optionalKey<Schema.Number>;
14
+ readonly max_suspend_duration_ms: Schema.optionalKey<Schema.Finite>;
15
15
  readonly reattach_by_ref: Schema.Boolean;
16
16
  }>;
17
17
  export interface WorkspaceCapabilities extends Schema.Schema.Type<typeof WorkspaceCapabilities> {
@@ -7,7 +7,13 @@ export interface CapturedModel {
7
7
  readonly registration: RegistrationInput;
8
8
  readonly prompts: Effect.Effect<ReadonlyArray<Prompt>>;
9
9
  }
10
- export declare const make: (turns: ReadonlyArray<ScriptedTurn>, options?: {
11
- readonly provider?: string;
12
- readonly model?: string;
13
- }) => Effect.Effect<CapturedModel>;
10
+ export declare const make: {
11
+ (options?: {
12
+ readonly provider?: string;
13
+ readonly model?: string;
14
+ }): (turns: ReadonlyArray<ScriptedTurn>) => Effect.Effect<CapturedModel>;
15
+ (turns: ReadonlyArray<ScriptedTurn>, options?: {
16
+ readonly provider?: string;
17
+ readonly model?: string;
18
+ }): Effect.Effect<CapturedModel>;
19
+ };
@@ -14,7 +14,10 @@ export interface ScriptedTurn {
14
14
  }
15
15
  export declare const streamParts: (turn: ScriptedTurn) => ReadonlyArray<StreamPartEncoded>;
16
16
  export declare const responseParts: (turn: ScriptedTurn) => ReadonlyArray<PartEncoded>;
17
- export declare const nextTurn: (cursor: Ref.Ref<number>, turns: ReadonlyArray<ScriptedTurn>) => Effect.Effect<ScriptedTurn>;
17
+ export declare const nextTurn: {
18
+ (turns: ReadonlyArray<ScriptedTurn>): (cursor: Ref.Ref<number>) => Effect.Effect<ScriptedTurn>;
19
+ (cursor: Ref.Ref<number>, turns: ReadonlyArray<ScriptedTurn>): Effect.Effect<ScriptedTurn>;
20
+ };
18
21
  /**
19
22
  * Layer producing an `Ai.LanguageModel` that plays `turns` in order; each
20
23
  * `streamText`/`generateText` call consumes one turn. Fails with a defect if
@@ -32,8 +35,15 @@ export declare const layer: (turns: ReadonlyArray<ScriptedTurn>) => Layer.Layer<
32
35
  * (default provider `"test"`, model `"scripted"`).
33
36
  * @experimental
34
37
  */
35
- export declare const registration: (turns: ReadonlyArray<ScriptedTurn>, options?: {
36
- readonly provider?: string;
37
- readonly model?: string;
38
- readonly registrationKey?: string;
39
- }) => RegistrationInput;
38
+ export declare const registration: {
39
+ (options?: {
40
+ readonly provider?: string;
41
+ readonly model?: string;
42
+ readonly registrationKey?: string;
43
+ }): (turns: ReadonlyArray<ScriptedTurn>) => RegistrationInput;
44
+ (turns: ReadonlyArray<ScriptedTurn>, options?: {
45
+ readonly provider?: string;
46
+ readonly model?: string;
47
+ readonly registrationKey?: string;
48
+ }): RegistrationInput;
49
+ };
@@ -1,9 +1,9 @@
1
1
  import type { Ids } from "../schema/index";
2
2
  import { Client, Operation } from "@relayfx/sdk";
3
3
  import { Effect } from "effect";
4
- export declare const runThroughWait: <R>(options: {
5
- readonly start: Effect.Effect<Operation.StartExecutionResult, unknown, R>;
4
+ export declare const runThroughWait: <E, R>(options: {
5
+ readonly start: Effect.Effect<Operation.StartExecutionResult, E, R>;
6
6
  readonly waitId: Ids.WaitId;
7
- readonly whileSuspended?: Effect.Effect<void, unknown, R>;
7
+ readonly whileSuspended?: Effect.Effect<void, E, R>;
8
8
  readonly wake: Operation.WakeInput;
9
- }) => Effect.Effect<Operation.StartExecutionResult, unknown, R | Client.Service>;
9
+ }) => Effect.Effect<Operation.StartExecutionResult, E | Client.ClientError | Client.WaitKindMismatch, R | Client.Service>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@relayfx/test",
4
- "version": "0.2.15",
4
+ "version": "0.2.16",
5
5
  "description": "Experimental deterministic test kit for Relay applications",
6
6
  "type": "module",
7
7
  "exports": {
@@ -36,7 +36,7 @@
36
36
  "typecheck": "bun tsc --noEmit"
37
37
  },
38
38
  "dependencies": {
39
- "@relayfx/sdk": "0.2.15",
39
+ "@relayfx/sdk": "0.2.16",
40
40
  "effect": "4.0.0-beta.93"
41
41
  },
42
42
  "peerDependencies": {