@relayfx/test 0.1.0 → 0.2.1
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/index.js +5719 -3877
- package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +30 -0
- package/dist/types/runtime/child/child-fan-out-runtime.d.ts +34 -0
- package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +25 -0
- package/dist/types/runtime/cluster/execution-entity.d.ts +4 -2
- package/dist/types/runtime/execution/active-execution-registry.d.ts +12 -0
- package/dist/types/runtime/execution/execution-service.d.ts +1 -0
- package/dist/types/runtime/index.d.ts +5 -0
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +14 -14
- package/dist/types/runtime/workflow/definition-runtime.d.ts +78 -0
- package/dist/types/runtime/workflow/execution-workflow.d.ts +5 -5
- package/dist/types/schema/child-orchestration-schema.d.ts +393 -0
- package/dist/types/schema/execution-schema.d.ts +2 -2
- package/dist/types/schema/ids-schema.d.ts +12 -0
- package/dist/types/schema/index.d.ts +3 -0
- package/dist/types/schema/wait-schema.d.ts +98 -0
- package/dist/types/schema/workflow-schema.d.ts +2062 -0
- package/package.json +2 -2
|
@@ -0,0 +1,98 @@
|
|
|
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;
|