@relayfx/test 0.3.1 → 0.3.3
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/README.md +2 -2
- package/dist/index.js +29 -20481
- package/dist/types/test/index.d.ts +0 -2
- package/dist/types/test/test-runtime.d.ts +6 -7
- package/dist/types/test/test-tools.d.ts +2 -2
- package/dist/types/test/wait-test-kit.d.ts +1 -1
- package/package.json +7 -6
- package/dist/types/runtime/address/address-book-service.d.ts +0 -74
- package/dist/types/runtime/address/address-resolution-service.d.ts +0 -172
- package/dist/types/runtime/agent/agent-loop-service.d.ts +0 -92
- package/dist/types/runtime/agent/agent-registry-service.d.ts +0 -31
- package/dist/types/runtime/agent/prompt-assembler-service.d.ts +0 -64
- package/dist/types/runtime/agent/relay-approvals.d.ts +0 -2
- package/dist/types/runtime/agent/relay-compaction.d.ts +0 -24
- package/dist/types/runtime/agent/relay-instructions.d.ts +0 -7
- package/dist/types/runtime/agent/relay-permissions.d.ts +0 -25
- package/dist/types/runtime/agent/relay-steering.d.ts +0 -17
- package/dist/types/runtime/agent/relay-tool-executor.d.ts +0 -22
- package/dist/types/runtime/agent/relay-tool-output.d.ts +0 -10
- package/dist/types/runtime/agent/sequence-allocator.d.ts +0 -8
- package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +0 -30
- package/dist/types/runtime/child/child-fan-out-runtime.d.ts +0 -40
- package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +0 -25
- package/dist/types/runtime/child/child-run-service.d.ts +0 -96
- package/dist/types/runtime/child/parent-notifier-service.d.ts +0 -42
- package/dist/types/runtime/child/spawn-child-run-tool.d.ts +0 -225
- package/dist/types/runtime/cluster/execution-entity.d.ts +0 -39
- package/dist/types/runtime/content/artifact-store-service.d.ts +0 -26
- package/dist/types/runtime/content/blob-store-service.d.ts +0 -54
- package/dist/types/runtime/entity/entity-instance-service.d.ts +0 -76
- package/dist/types/runtime/entity/entity-registry-service.d.ts +0 -35
- package/dist/types/runtime/envelope/envelope-service.d.ts +0 -56
- package/dist/types/runtime/execution/active-execution-registry.d.ts +0 -12
- package/dist/types/runtime/execution/event-log-service.d.ts +0 -93
- package/dist/types/runtime/execution/execution-service.d.ts +0 -66
- package/dist/types/runtime/execution/execution-watch-service.d.ts +0 -32
- package/dist/types/runtime/execution/session-stream-service.d.ts +0 -33
- package/dist/types/runtime/inbox/inbox-service.d.ts +0 -76
- package/dist/types/runtime/inbox/send-message-tool.d.ts +0 -27
- package/dist/types/runtime/inbox/wait-for-messages-tool.d.ts +0 -34
- package/dist/types/runtime/index.d.ts +0 -56
- package/dist/types/runtime/memory/memory-service.d.ts +0 -22
- package/dist/types/runtime/model/embedding-model-service.d.ts +0 -81
- package/dist/types/runtime/model/language-model-service.d.ts +0 -48
- package/dist/types/runtime/model/model-call-policy.d.ts +0 -14
- package/dist/types/runtime/observability/runtime-metrics.d.ts +0 -28
- package/dist/types/runtime/presence/presence-service.d.ts +0 -30
- package/dist/types/runtime/presence/presence-tool.d.ts +0 -20
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +0 -149
- package/dist/types/runtime/schedule/scheduler-service.d.ts +0 -34
- package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +0 -27
- package/dist/types/runtime/session/session-store-service.d.ts +0 -23
- package/dist/types/runtime/skill/skill-registry-service.d.ts +0 -44
- package/dist/types/runtime/state/execution-state-service.d.ts +0 -60
- package/dist/types/runtime/state/state-tools.d.ts +0 -5
- package/dist/types/runtime/tool/tool-input-schema-digest.d.ts +0 -6
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +0 -162
- package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +0 -13
- package/dist/types/runtime/topic/publish-to-topic-tool.d.ts +0 -24
- package/dist/types/runtime/topic/topic-service.d.ts +0 -50
- package/dist/types/runtime/wait/wait-service.d.ts +0 -81
- package/dist/types/runtime/wait/wait-signal.d.ts +0 -25
- package/dist/types/runtime/workflow/activity-version-registry.d.ts +0 -93
- package/dist/types/runtime/workflow/definition-runtime.d.ts +0 -95
- package/dist/types/runtime/workflow/execution-workflow.d.ts +0 -534
- package/dist/types/runtime/workspace/workspace-planner-service.d.ts +0 -64
- package/dist/types/runtime/workspace/workspace-provider-service.d.ts +0 -112
- package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +0 -21
- package/dist/types/schema/address-schema.d.ts +0 -77
- package/dist/types/schema/agent-schema.d.ts +0 -901
- package/dist/types/schema/child-orchestration-schema.d.ts +0 -429
- package/dist/types/schema/content-schema.d.ts +0 -118
- package/dist/types/schema/entity-schema.d.ts +0 -40
- package/dist/types/schema/envelope-schema.d.ts +0 -180
- package/dist/types/schema/execution-schema.d.ts +0 -453
- package/dist/types/schema/ids-schema.d.ts +0 -106
- package/dist/types/schema/inbox-schema.d.ts +0 -81
- package/dist/types/schema/index.d.ts +0 -19
- package/dist/types/schema/presence-schema.d.ts +0 -28
- package/dist/types/schema/schedule-schema.d.ts +0 -79
- package/dist/types/schema/shared-schema.d.ts +0 -13
- package/dist/types/schema/skill-schema.d.ts +0 -260
- package/dist/types/schema/state-schema.d.ts +0 -35
- package/dist/types/schema/tool-schema.d.ts +0 -84
- package/dist/types/schema/wait-schema.d.ts +0 -98
- package/dist/types/schema/workflow-schema.d.ts +0 -2062
- package/dist/types/schema/workspace-schema.d.ts +0 -78
- package/dist/types/test/captured-model.d.ts +0 -19
- package/dist/types/test/scripted-model.d.ts +0 -49
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { Schema } from "effect";
|
|
2
|
-
import { JsonValue } from "./shared-schema";
|
|
3
|
-
export declare const Permission: Schema.Struct<{
|
|
4
|
-
readonly name: Schema.String;
|
|
5
|
-
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
6
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
7
|
-
}>;
|
|
8
|
-
export interface Permission extends Schema.Schema.Type<typeof Permission> {
|
|
9
|
-
}
|
|
10
|
-
export declare const RuntimeRequirement: Schema.Union<readonly [Schema.Struct<{
|
|
11
|
-
readonly type: Schema.Literal<"workspace">;
|
|
12
|
-
readonly mode: Schema.Literals<readonly ["read", "write", "exec"]>;
|
|
13
|
-
}>]>;
|
|
14
|
-
export interface RuntimeRequirement extends Schema.Schema.Type<typeof RuntimeRequirement> {
|
|
15
|
-
}
|
|
16
|
-
export declare const PlacementKey: Schema.String;
|
|
17
|
-
export type PlacementKey = typeof PlacementKey.Type;
|
|
18
|
-
export declare const WorkerId: Schema.String;
|
|
19
|
-
export type WorkerId = typeof WorkerId.Type;
|
|
20
|
-
export declare const Placement: Schema.Union<readonly [Schema.Struct<{
|
|
21
|
-
readonly kind: Schema.Literal<"local">;
|
|
22
|
-
}>, Schema.Struct<{
|
|
23
|
-
readonly kind: Schema.Literal<"client">;
|
|
24
|
-
}>, Schema.Struct<{
|
|
25
|
-
readonly kind: Schema.Literal<"remote">;
|
|
26
|
-
readonly queue: Schema.String;
|
|
27
|
-
}>, Schema.Struct<{
|
|
28
|
-
readonly kind: Schema.Literal<"mcp">;
|
|
29
|
-
readonly server_id: Schema.String;
|
|
30
|
-
}>]>;
|
|
31
|
-
export type Placement = typeof Placement.Type;
|
|
32
|
-
export declare const ExternalOutcome: Schema.Union<readonly [Schema.Struct<{
|
|
33
|
-
readonly kind: Schema.Literal<"success">;
|
|
34
|
-
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
35
|
-
}>, Schema.Struct<{
|
|
36
|
-
readonly kind: Schema.Literal<"failure">;
|
|
37
|
-
readonly message: Schema.String;
|
|
38
|
-
}>]>;
|
|
39
|
-
export type ExternalOutcome = typeof ExternalOutcome.Type;
|
|
40
|
-
export declare const CallState: Schema.Literals<readonly ["requested", "waiting", "running", "submitted", "completed", "failed"]>;
|
|
41
|
-
export type CallState = typeof CallState.Type;
|
|
42
|
-
export declare const AttemptState: Schema.Literals<readonly ["running", "completed", "failed", "released", "expired", "abandoned"]>;
|
|
43
|
-
export type AttemptState = typeof AttemptState.Type;
|
|
44
|
-
export declare const Definition: Schema.Struct<{
|
|
45
|
-
readonly name: Schema.String;
|
|
46
|
-
readonly description: Schema.String;
|
|
47
|
-
readonly input_schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
48
|
-
readonly output_schema: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
49
|
-
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
50
|
-
readonly name: Schema.String;
|
|
51
|
-
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
52
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
53
|
-
}>>;
|
|
54
|
-
readonly requirements: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
55
|
-
readonly type: Schema.Literal<"workspace">;
|
|
56
|
-
readonly mode: Schema.Literals<readonly ["read", "write", "exec"]>;
|
|
57
|
-
}>]>>>;
|
|
58
|
-
readonly needs_approval: Schema.optionalKey<Schema.Boolean>;
|
|
59
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
60
|
-
}>;
|
|
61
|
-
export interface Definition extends Schema.Schema.Type<typeof Definition> {
|
|
62
|
-
}
|
|
63
|
-
export declare const Call: Schema.Struct<{
|
|
64
|
-
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
65
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
66
|
-
};
|
|
67
|
-
readonly name: Schema.String;
|
|
68
|
-
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
69
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
70
|
-
}>;
|
|
71
|
-
export interface Call extends Schema.Schema.Type<typeof Call> {
|
|
72
|
-
}
|
|
73
|
-
export declare const Result: Schema.Struct<{
|
|
74
|
-
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
75
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
76
|
-
};
|
|
77
|
-
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
78
|
-
readonly error: Schema.optionalKey<Schema.String>;
|
|
79
|
-
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
80
|
-
}>;
|
|
81
|
-
export interface Result extends Schema.Schema.Type<typeof Result> {
|
|
82
|
-
}
|
|
83
|
-
export declare const parametersSchema: (inputSchema: JsonValue) => Schema.Top;
|
|
84
|
-
export declare const resultSchema: (outputSchema: JsonValue) => Schema.Codec<unknown>;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { Schema } from "effect";
|
|
2
|
-
import { WaitMode } from "./envelope-schema";
|
|
3
|
-
import { EnvelopeId, WaitId } from "./ids-schema";
|
|
4
|
-
export declare const WaitKind: Schema.Literals<readonly ["permission", "tool_approval", "tool_placement", "child_join", "inbox", "reply", "timer", "external"]>;
|
|
5
|
-
export type WaitKind = typeof WaitKind.Type;
|
|
6
|
-
export declare const PermissionWait: Schema.Struct<{
|
|
7
|
-
readonly kind: Schema.Literal<"permission">;
|
|
8
|
-
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
9
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
10
|
-
};
|
|
11
|
-
readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
12
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
15
|
-
export declare const ToolApprovalWait: Schema.Struct<{
|
|
16
|
-
readonly kind: Schema.Literal<"tool_approval">;
|
|
17
|
-
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
18
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
19
|
-
};
|
|
20
|
-
readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
21
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
22
|
-
};
|
|
23
|
-
}>;
|
|
24
|
-
export declare const ToolPlacementWait: Schema.Struct<{
|
|
25
|
-
readonly kind: Schema.Literal<"tool_placement">;
|
|
26
|
-
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
27
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
28
|
-
};
|
|
29
|
-
readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
30
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
31
|
-
};
|
|
32
|
-
}>;
|
|
33
|
-
export declare const ChildJoinWait: Schema.Struct<{
|
|
34
|
-
readonly kind: Schema.Literal<"child_join">;
|
|
35
|
-
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
36
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
37
|
-
};
|
|
38
|
-
readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
|
|
39
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
|
|
40
|
-
};
|
|
41
|
-
}>;
|
|
42
|
-
export declare const InboxWait: Schema.Struct<{
|
|
43
|
-
readonly kind: Schema.Literal<"inbox">;
|
|
44
|
-
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
45
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
46
|
-
};
|
|
47
|
-
readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
48
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
49
|
-
};
|
|
50
|
-
}>;
|
|
51
|
-
export declare const ReplyWait: Schema.Struct<{
|
|
52
|
-
readonly kind: Schema.Literal<"reply">;
|
|
53
|
-
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
54
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
55
|
-
};
|
|
56
|
-
readonly envelope_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
57
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
58
|
-
}>;
|
|
59
|
-
}>;
|
|
60
|
-
export declare const TimerWait: Schema.Struct<{
|
|
61
|
-
readonly kind: Schema.Literal<"timer">;
|
|
62
|
-
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
63
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
64
|
-
};
|
|
65
|
-
}>;
|
|
66
|
-
export declare const ExternalWait: Schema.Struct<{
|
|
67
|
-
readonly kind: Schema.Literal<"external">;
|
|
68
|
-
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
69
|
-
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
70
|
-
};
|
|
71
|
-
readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
72
|
-
}>;
|
|
73
|
-
export type Classification = typeof PermissionWait.Type | typeof ToolApprovalWait.Type | typeof ToolPlacementWait.Type | typeof ChildJoinWait.Type | typeof InboxWait.Type | typeof ReplyWait.Type | typeof TimerWait.Type | typeof ExternalWait.Type;
|
|
74
|
-
export declare const Classification: Schema.Schema<Classification>;
|
|
75
|
-
export interface ClassifyInput {
|
|
76
|
-
readonly wait_id: WaitId;
|
|
77
|
-
readonly mode: WaitMode;
|
|
78
|
-
readonly envelope_id?: EnvelopeId;
|
|
79
|
-
readonly correlation_key?: string;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Derives a wait's public kind from its persisted fields.
|
|
83
|
-
*
|
|
84
|
-
* Relay mints every runtime-owned wait id inside a reserved namespace, so the
|
|
85
|
-
* namespace is the classification authority; envelope anchoring and mode only
|
|
86
|
-
* classify what no namespace claims. Reconnecting clients and replay consumers
|
|
87
|
-
* get the same answer Relay does without interpreting internal metadata.
|
|
88
|
-
*/
|
|
89
|
-
export declare const classify: (input: ClassifyInput) => Classification;
|
|
90
|
-
export declare const Resolver: Schema.Literals<readonly ["resolve_permission", "resolve_tool_approval", "wake"]>;
|
|
91
|
-
export type Resolver = typeof Resolver.Type;
|
|
92
|
-
/**
|
|
93
|
-
* Names the one public resolver a classification admits. Runtime-owned kinds
|
|
94
|
-
* (child joins, inbox parks, tool placement) return undefined: deliveries,
|
|
95
|
-
* child completion, and tool completion resolve them — callers never do.
|
|
96
|
-
*/
|
|
97
|
-
export declare const resolverFor: (classification: Classification) => Resolver | undefined;
|
|
98
|
-
export declare const externallyResolvable: (classification: Classification) => boolean;
|