@relayfx/test 0.2.12 → 0.2.13
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
CHANGED
|
@@ -509,6 +509,7 @@ import { Schema as Schema8 } from "effect";
|
|
|
509
509
|
// ../schema/src/execution-schema.ts
|
|
510
510
|
var exports_execution_schema = {};
|
|
511
511
|
__export(exports_execution_schema, {
|
|
512
|
+
childSessionId: () => childSessionId,
|
|
512
513
|
SpawnChildRunInput: () => SpawnChildRunInput,
|
|
513
514
|
ExecutionStatus: () => ExecutionStatus,
|
|
514
515
|
ExecutionEventType: () => ExecutionEventType,
|
|
@@ -654,6 +655,7 @@ var ChildRunAccepted = Schema7.Struct({
|
|
|
654
655
|
child_execution_id: ChildExecutionId,
|
|
655
656
|
execution_id: ExecutionId
|
|
656
657
|
}).annotate({ identifier: "Relay.ChildRunAccepted" });
|
|
658
|
+
var childSessionId = (childExecutionId) => SessionId.make(`session:child:${childExecutionId}`);
|
|
657
659
|
var ExecutionEventType = Schema7.Literals([
|
|
658
660
|
"execution.accepted",
|
|
659
661
|
"execution.started",
|
|
@@ -13750,6 +13752,7 @@ var dispatchChild = Effect56.fn("SpawnChildRunTool.dispatchChild")(function* (co
|
|
|
13750
13752
|
yield* config.dispatch({
|
|
13751
13753
|
executionId: exports_ids_schema.ExecutionId.make(id2),
|
|
13752
13754
|
rootAddressId: input.address_id,
|
|
13755
|
+
sessionId: exports_execution_schema.childSessionId(id2),
|
|
13753
13756
|
input: input.input ?? [],
|
|
13754
13757
|
eventSequence: 0,
|
|
13755
13758
|
startedAt: (input.created_at ?? 0) + 2,
|
|
@@ -16091,6 +16094,7 @@ var completeExecution = (input, waitId, waitState, workspaceRuntimeLayer, turn,
|
|
|
16091
16094
|
dispatchChildRun: (child) => StartExecutionWorkflow.execute({
|
|
16092
16095
|
execution_id: child.executionId,
|
|
16093
16096
|
root_address_id: child.rootAddressId,
|
|
16097
|
+
session_id: child.sessionId,
|
|
16094
16098
|
input: child.input,
|
|
16095
16099
|
event_sequence: child.eventSequence,
|
|
16096
16100
|
started_at: child.startedAt,
|
|
@@ -190,6 +190,7 @@ export interface TransferInput extends Schema.Schema.Type<typeof TransferInput>
|
|
|
190
190
|
export interface DispatchInput {
|
|
191
191
|
readonly executionId: Ids.ExecutionId;
|
|
192
192
|
readonly rootAddressId: Ids.AddressId;
|
|
193
|
+
readonly sessionId: Ids.SessionId;
|
|
193
194
|
readonly input: ReadonlyArray<Content.Part>;
|
|
194
195
|
readonly eventSequence: Execution.ExecutionEventSequence;
|
|
195
196
|
readonly startedAt: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
2
|
import { Definition } from "./agent-schema";
|
|
3
|
+
import { ChildExecutionId } from "./ids-schema";
|
|
3
4
|
export declare const ExecutionStatus: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
4
5
|
export type ExecutionStatus = typeof ExecutionStatus.Type;
|
|
5
6
|
export declare const Execution: Schema.Struct<{
|
|
@@ -316,6 +317,7 @@ export declare const ChildRunAccepted: Schema.Struct<{
|
|
|
316
317
|
}>;
|
|
317
318
|
export interface ChildRunAccepted extends Schema.Schema.Type<typeof ChildRunAccepted> {
|
|
318
319
|
}
|
|
320
|
+
export declare const childSessionId: (childExecutionId: ChildExecutionId) => string & import("effect/Brand").Brand<"Relay.SessionId">;
|
|
319
321
|
export declare const ExecutionEventType: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.toolcall.delta", "model.output.completed", "model.usage.reported", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "entity.created", "entity.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "child_fan_out.created", "child_fan_out.member.admitted", "child_fan_out.member.terminal", "child_fan_out.terminal", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
320
322
|
export type ExecutionEventType = typeof ExecutionEventType.Type;
|
|
321
323
|
export declare const ExecutionEvent: Schema.Struct<{
|
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.13",
|
|
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.13",
|
|
40
40
|
"effect": "4.0.0-beta.93"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|