@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.
- package/dist/index.js +1759 -1496
- package/dist/types/runtime/address/address-book-service.d.ts +3 -3
- package/dist/types/runtime/address/address-resolution-service.d.ts +41 -41
- package/dist/types/runtime/agent/agent-loop-service.d.ts +14 -5
- package/dist/types/runtime/agent/agent-registry-service.d.ts +2 -2
- package/dist/types/runtime/agent/prompt-assembler-service.d.ts +1 -1
- package/dist/types/runtime/agent/relay-tool-output.d.ts +4 -1
- package/dist/types/runtime/child/child-fan-out-admission-service.d.ts +1 -1
- package/dist/types/runtime/child/child-fan-out-runtime.d.ts +12 -8
- package/dist/types/runtime/child/child-fan-out-transition-service.d.ts +1 -1
- package/dist/types/runtime/child/child-run-service.d.ts +7 -4
- package/dist/types/runtime/child/parent-notifier-service.d.ts +4 -2
- package/dist/types/runtime/child/spawn-child-run-tool.d.ts +5 -4
- package/dist/types/runtime/cluster/execution-entity.d.ts +2 -2
- package/dist/types/runtime/content/artifact-store-service.d.ts +2 -2
- package/dist/types/runtime/content/blob-store-service.d.ts +1 -1
- package/dist/types/runtime/entity/entity-instance-service.d.ts +14 -5
- package/dist/types/runtime/entity/entity-registry-service.d.ts +2 -2
- package/dist/types/runtime/envelope/envelope-service.d.ts +2 -2
- package/dist/types/runtime/execution/active-execution-registry.d.ts +1 -1
- package/dist/types/runtime/execution/event-log-service.d.ts +5 -2
- package/dist/types/runtime/execution/execution-service.d.ts +1 -1
- package/dist/types/runtime/execution/execution-watch-service.d.ts +1 -1
- package/dist/types/runtime/execution/session-stream-service.d.ts +1 -1
- package/dist/types/runtime/inbox/inbox-service.d.ts +1 -1
- package/dist/types/runtime/memory/memory-service.d.ts +1 -1
- package/dist/types/runtime/model/embedding-model-service.d.ts +23 -10
- package/dist/types/runtime/model/language-model-service.d.ts +19 -6
- package/dist/types/runtime/model/model-call-policy.d.ts +1 -1
- package/dist/types/runtime/observability/runtime-metrics.d.ts +12 -3
- package/dist/types/runtime/presence/presence-service.d.ts +1 -1
- package/dist/types/runtime/presence/presence-tool.d.ts +1 -1
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +19 -19
- package/dist/types/runtime/schedule/scheduler-service.d.ts +3 -3
- package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +2 -2
- package/dist/types/runtime/session/session-store-service.d.ts +13 -4
- package/dist/types/runtime/skill/skill-registry-service.d.ts +2 -2
- package/dist/types/runtime/state/execution-state-service.d.ts +5 -2
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +42 -19
- package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +2 -2
- package/dist/types/runtime/topic/topic-service.d.ts +1 -1
- package/dist/types/runtime/wait/wait-service.d.ts +1 -1
- package/dist/types/runtime/wait/wait-signal.d.ts +12 -3
- package/dist/types/runtime/workflow/activity-version-registry.d.ts +7 -3
- package/dist/types/runtime/workflow/definition-runtime.d.ts +37 -22
- package/dist/types/runtime/workflow/execution-workflow.d.ts +105 -110
- package/dist/types/runtime/workspace/workspace-planner-service.d.ts +6 -6
- package/dist/types/runtime/workspace/workspace-provider-service.d.ts +11 -7
- package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +1 -1
- package/dist/types/schema/agent-schema.d.ts +246 -246
- package/dist/types/schema/child-orchestration-schema.d.ts +64 -64
- package/dist/types/schema/execution-schema.d.ts +57 -57
- package/dist/types/schema/workflow-schema.d.ts +243 -243
- package/dist/types/schema/workspace-schema.d.ts +1 -1
- package/dist/types/test/captured-model.d.ts +10 -4
- package/dist/types/test/scripted-model.d.ts +16 -6
- package/dist/types/test/wait-test-kit.d.ts +4 -4
- 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.
|
|
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:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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:
|
|
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:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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,
|
|
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,
|
|
7
|
+
readonly whileSuspended?: Effect.Effect<void, E, R>;
|
|
8
8
|
readonly wake: Operation.WakeInput;
|
|
9
|
-
}) => Effect.Effect<Operation.StartExecutionResult,
|
|
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.
|
|
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.
|
|
39
|
+
"@relayfx/sdk": "0.2.16",
|
|
40
40
|
"effect": "4.0.0-beta.93"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|