@relayfx/test 0.3.1 → 0.3.2

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 (89) hide show
  1. package/README.md +2 -2
  2. package/dist/index.js +29 -20481
  3. package/dist/types/test/index.d.ts +0 -2
  4. package/dist/types/test/test-runtime.d.ts +6 -7
  5. package/dist/types/test/test-tools.d.ts +2 -2
  6. package/dist/types/test/wait-test-kit.d.ts +1 -1
  7. package/package.json +7 -6
  8. package/dist/types/runtime/address/address-book-service.d.ts +0 -74
  9. package/dist/types/runtime/address/address-resolution-service.d.ts +0 -172
  10. package/dist/types/runtime/agent/agent-loop-service.d.ts +0 -92
  11. package/dist/types/runtime/agent/agent-registry-service.d.ts +0 -31
  12. package/dist/types/runtime/agent/prompt-assembler-service.d.ts +0 -64
  13. package/dist/types/runtime/agent/relay-approvals.d.ts +0 -2
  14. package/dist/types/runtime/agent/relay-compaction.d.ts +0 -24
  15. package/dist/types/runtime/agent/relay-instructions.d.ts +0 -7
  16. package/dist/types/runtime/agent/relay-permissions.d.ts +0 -25
  17. package/dist/types/runtime/agent/relay-steering.d.ts +0 -17
  18. package/dist/types/runtime/agent/relay-tool-executor.d.ts +0 -22
  19. package/dist/types/runtime/agent/relay-tool-output.d.ts +0 -10
  20. package/dist/types/runtime/agent/sequence-allocator.d.ts +0 -8
  21. package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +0 -30
  22. package/dist/types/runtime/child/child-fan-out-runtime.d.ts +0 -40
  23. package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +0 -25
  24. package/dist/types/runtime/child/child-run-service.d.ts +0 -96
  25. package/dist/types/runtime/child/parent-notifier-service.d.ts +0 -42
  26. package/dist/types/runtime/child/spawn-child-run-tool.d.ts +0 -225
  27. package/dist/types/runtime/cluster/execution-entity.d.ts +0 -39
  28. package/dist/types/runtime/content/artifact-store-service.d.ts +0 -26
  29. package/dist/types/runtime/content/blob-store-service.d.ts +0 -54
  30. package/dist/types/runtime/entity/entity-instance-service.d.ts +0 -76
  31. package/dist/types/runtime/entity/entity-registry-service.d.ts +0 -35
  32. package/dist/types/runtime/envelope/envelope-service.d.ts +0 -56
  33. package/dist/types/runtime/execution/active-execution-registry.d.ts +0 -12
  34. package/dist/types/runtime/execution/event-log-service.d.ts +0 -93
  35. package/dist/types/runtime/execution/execution-service.d.ts +0 -66
  36. package/dist/types/runtime/execution/execution-watch-service.d.ts +0 -32
  37. package/dist/types/runtime/execution/session-stream-service.d.ts +0 -33
  38. package/dist/types/runtime/inbox/inbox-service.d.ts +0 -76
  39. package/dist/types/runtime/inbox/send-message-tool.d.ts +0 -27
  40. package/dist/types/runtime/inbox/wait-for-messages-tool.d.ts +0 -34
  41. package/dist/types/runtime/index.d.ts +0 -56
  42. package/dist/types/runtime/memory/memory-service.d.ts +0 -22
  43. package/dist/types/runtime/model/embedding-model-service.d.ts +0 -81
  44. package/dist/types/runtime/model/language-model-service.d.ts +0 -48
  45. package/dist/types/runtime/model/model-call-policy.d.ts +0 -14
  46. package/dist/types/runtime/observability/runtime-metrics.d.ts +0 -28
  47. package/dist/types/runtime/presence/presence-service.d.ts +0 -30
  48. package/dist/types/runtime/presence/presence-tool.d.ts +0 -20
  49. package/dist/types/runtime/runner/runner-runtime-service.d.ts +0 -149
  50. package/dist/types/runtime/schedule/scheduler-service.d.ts +0 -34
  51. package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +0 -27
  52. package/dist/types/runtime/session/session-store-service.d.ts +0 -23
  53. package/dist/types/runtime/skill/skill-registry-service.d.ts +0 -44
  54. package/dist/types/runtime/state/execution-state-service.d.ts +0 -60
  55. package/dist/types/runtime/state/state-tools.d.ts +0 -5
  56. package/dist/types/runtime/tool/tool-input-schema-digest.d.ts +0 -6
  57. package/dist/types/runtime/tool/tool-runtime-service.d.ts +0 -162
  58. package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +0 -13
  59. package/dist/types/runtime/topic/publish-to-topic-tool.d.ts +0 -24
  60. package/dist/types/runtime/topic/topic-service.d.ts +0 -50
  61. package/dist/types/runtime/wait/wait-service.d.ts +0 -81
  62. package/dist/types/runtime/wait/wait-signal.d.ts +0 -25
  63. package/dist/types/runtime/workflow/activity-version-registry.d.ts +0 -93
  64. package/dist/types/runtime/workflow/definition-runtime.d.ts +0 -95
  65. package/dist/types/runtime/workflow/execution-workflow.d.ts +0 -534
  66. package/dist/types/runtime/workspace/workspace-planner-service.d.ts +0 -64
  67. package/dist/types/runtime/workspace/workspace-provider-service.d.ts +0 -112
  68. package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +0 -21
  69. package/dist/types/schema/address-schema.d.ts +0 -77
  70. package/dist/types/schema/agent-schema.d.ts +0 -901
  71. package/dist/types/schema/child-orchestration-schema.d.ts +0 -429
  72. package/dist/types/schema/content-schema.d.ts +0 -118
  73. package/dist/types/schema/entity-schema.d.ts +0 -40
  74. package/dist/types/schema/envelope-schema.d.ts +0 -180
  75. package/dist/types/schema/execution-schema.d.ts +0 -453
  76. package/dist/types/schema/ids-schema.d.ts +0 -106
  77. package/dist/types/schema/inbox-schema.d.ts +0 -81
  78. package/dist/types/schema/index.d.ts +0 -19
  79. package/dist/types/schema/presence-schema.d.ts +0 -28
  80. package/dist/types/schema/schedule-schema.d.ts +0 -79
  81. package/dist/types/schema/shared-schema.d.ts +0 -13
  82. package/dist/types/schema/skill-schema.d.ts +0 -260
  83. package/dist/types/schema/state-schema.d.ts +0 -35
  84. package/dist/types/schema/tool-schema.d.ts +0 -84
  85. package/dist/types/schema/wait-schema.d.ts +0 -98
  86. package/dist/types/schema/workflow-schema.d.ts +0 -2062
  87. package/dist/types/schema/workspace-schema.d.ts +0 -78
  88. package/dist/types/test/captured-model.d.ts +0 -19
  89. package/dist/types/test/scripted-model.d.ts +0 -49
@@ -1,78 +0,0 @@
1
- import { Schema } from "effect";
2
- export declare const WorkspaceProviderKey: Schema.String;
3
- export type WorkspaceProviderKey = typeof WorkspaceProviderKey.Type;
4
- export declare const WorkspaceLeaseStatus: Schema.Literals<readonly ["planned", "running", "suspended", "snapshotted", "archived", "released", "failed"]>;
5
- export type WorkspaceLeaseStatus = typeof WorkspaceLeaseStatus.Type;
6
- export declare const WorkspaceResumeStrategy: Schema.Literals<readonly ["reattach", "restore_snapshot"]>;
7
- export type WorkspaceResumeStrategy = typeof WorkspaceResumeStrategy.Type;
8
- export declare const WorkspaceCapabilities: Schema.Struct<{
9
- readonly can_suspend: Schema.Boolean;
10
- readonly can_snapshot: Schema.Boolean;
11
- readonly can_fork: Schema.Boolean;
12
- readonly persistent_by_default: Schema.Boolean;
13
- readonly suspend_granularity: Schema.Literals<readonly ["memory", "filesystem", "none"]>;
14
- readonly max_suspend_duration_ms: Schema.optionalKey<Schema.Finite>;
15
- readonly reattach_by_ref: Schema.Boolean;
16
- }>;
17
- export interface WorkspaceCapabilities extends Schema.Schema.Type<typeof WorkspaceCapabilities> {
18
- }
19
- export declare const WorkspaceRequest: Schema.Struct<{
20
- readonly provider_key: Schema.optionalKey<Schema.String>;
21
- readonly resume_snapshot_ref: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SnapshotRef"> & {
22
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SnapshotRef">;
23
- }>;
24
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
25
- }>;
26
- export interface WorkspaceRequest extends Schema.Schema.Type<typeof WorkspaceRequest> {
27
- }
28
- export declare const WorkspaceLeaseRecord: Schema.Struct<{
29
- readonly id: Schema.brand<Schema.String, "Relay.WorkspaceLeaseId"> & {
30
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkspaceLeaseId">;
31
- };
32
- readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
33
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
34
- };
35
- readonly provider_key: Schema.String;
36
- readonly sandbox_ref: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WorkspaceRef"> & {
37
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkspaceRef">;
38
- }>;
39
- readonly latest_snapshot_ref: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SnapshotRef"> & {
40
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SnapshotRef">;
41
- }>;
42
- readonly status: Schema.Literals<readonly ["planned", "running", "suspended", "snapshotted", "archived", "released", "failed"]>;
43
- readonly resume_strategy: Schema.Literals<readonly ["reattach", "restore_snapshot"]>;
44
- readonly region: Schema.optionalKey<Schema.String>;
45
- readonly request: Schema.optionalKey<Schema.Struct<{
46
- readonly provider_key: Schema.optionalKey<Schema.String>;
47
- readonly resume_snapshot_ref: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SnapshotRef"> & {
48
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SnapshotRef">;
49
- }>;
50
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
51
- }>>;
52
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
53
- readonly created_at: Schema.Int;
54
- readonly updated_at: Schema.Int;
55
- }>;
56
- export interface WorkspaceLeaseRecord extends Schema.Schema.Type<typeof WorkspaceLeaseRecord> {
57
- }
58
- export declare const WorkspaceSnapshotReason: Schema.Literals<readonly ["before_wait", "before_child_fork", "on_complete", "on_failure", "manual"]>;
59
- export type WorkspaceSnapshotReason = typeof WorkspaceSnapshotReason.Type;
60
- export declare const WorkspaceSnapshotRecord: Schema.Struct<{
61
- readonly id: Schema.brand<Schema.String, "Relay.WorkspaceSnapshotId"> & {
62
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkspaceSnapshotId">;
63
- };
64
- readonly lease_id: Schema.brand<Schema.String, "Relay.WorkspaceLeaseId"> & {
65
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkspaceLeaseId">;
66
- };
67
- readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
68
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
69
- };
70
- readonly reason: Schema.Literals<readonly ["before_wait", "before_child_fork", "on_complete", "on_failure", "manual"]>;
71
- readonly snapshot_ref: Schema.brand<Schema.String, "Relay.SnapshotRef"> & {
72
- make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SnapshotRef">;
73
- };
74
- readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
75
- readonly created_at: Schema.Int;
76
- }>;
77
- export interface WorkspaceSnapshotRecord extends Schema.Schema.Type<typeof WorkspaceSnapshotRecord> {
78
- }
@@ -1,19 +0,0 @@
1
- import { Effect, Layer } from "effect";
2
- import { LanguageModel } from "effect/unstable/ai";
3
- import type { Prompt } from "effect/unstable/ai/Prompt";
4
- import type { RegistrationInput, ScriptedTurn } from "./scripted-model";
5
- export interface CapturedModel {
6
- readonly layer: Layer.Layer<LanguageModel.LanguageModel>;
7
- readonly registration: RegistrationInput;
8
- readonly prompts: Effect.Effect<ReadonlyArray<Prompt>>;
9
- }
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
- };
@@ -1,49 +0,0 @@
1
- import { LanguageModelService } from "../runtime/index";
2
- import type { Shared } from "../schema/index";
3
- import { Effect, Layer, Ref } from "effect";
4
- import { LanguageModel } from "effect/unstable/ai";
5
- import type { PartEncoded, StreamPartEncoded } from "effect/unstable/ai/Response";
6
- export type RegistrationInput = LanguageModelService.Registration;
7
- export interface ScriptedTurn {
8
- readonly text?: string;
9
- readonly toolCalls?: ReadonlyArray<{
10
- readonly id: string;
11
- readonly name: string;
12
- readonly params: Shared.JsonValue;
13
- }>;
14
- }
15
- export declare const streamParts: (turn: ScriptedTurn) => ReadonlyArray<StreamPartEncoded>;
16
- export declare const responseParts: (turn: ScriptedTurn) => ReadonlyArray<PartEncoded>;
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
- };
21
- /**
22
- * Layer producing an `Ai.LanguageModel` that plays `turns` in order; each
23
- * `streamText`/`generateText` call consumes one turn. Fails with a defect if
24
- * called more times than turns provided.
25
- *
26
- * The cursor is created once per `layer(turns)` call and shared across every
27
- * build of the returned layer. This matters because the agent loop rebuilds the
28
- * model layer once per model turn (`provideForAgent`); a per-build cursor would
29
- * reset every turn. One `layer(turns)` value therefore drives one linear script.
30
- * @experimental
31
- */
32
- export declare const layer: (turns: ReadonlyArray<ScriptedTurn>) => Layer.Layer<LanguageModel.LanguageModel>;
33
- /**
34
- * The same scripted model wrapped as a `LanguageModelService` registration
35
- * (default provider `"test"`, model `"scripted"`).
36
- * @experimental
37
- */
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
- };