@relayfx/test 0.1.0
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 +5 -0
- package/dist/index.js +18190 -0
- package/dist/types/runtime/address/address-book-service.d.ts +74 -0
- package/dist/types/runtime/address/address-resolution-service.d.ts +140 -0
- package/dist/types/runtime/agent/agent-loop-service.d.ts +85 -0
- package/dist/types/runtime/agent/agent-registry-service.d.ts +31 -0
- package/dist/types/runtime/agent/prompt-assembler-service.d.ts +64 -0
- package/dist/types/runtime/agent/relay-approvals.d.ts +2 -0
- package/dist/types/runtime/agent/relay-compaction.d.ts +23 -0
- package/dist/types/runtime/agent/relay-instructions.d.ts +7 -0
- package/dist/types/runtime/agent/relay-permissions.d.ts +25 -0
- package/dist/types/runtime/agent/relay-steering.d.ts +17 -0
- package/dist/types/runtime/agent/relay-tool-executor.d.ts +22 -0
- package/dist/types/runtime/agent/relay-tool-output.d.ts +7 -0
- package/dist/types/runtime/agent/sequence-allocator.d.ts +8 -0
- package/dist/types/runtime/child/child-run-service.d.ts +90 -0
- package/dist/types/runtime/child/parent-notifier-service.d.ts +40 -0
- package/dist/types/runtime/child/spawn-child-run-tool.d.ts +211 -0
- package/dist/types/runtime/cluster/execution-entity.d.ts +37 -0
- package/dist/types/runtime/content/artifact-store-service.d.ts +26 -0
- package/dist/types/runtime/content/blob-store-service.d.ts +54 -0
- package/dist/types/runtime/entity/entity-instance-service.d.ts +67 -0
- package/dist/types/runtime/entity/entity-registry-service.d.ts +35 -0
- package/dist/types/runtime/envelope/envelope-service.d.ts +56 -0
- package/dist/types/runtime/execution/event-log-service.d.ts +68 -0
- package/dist/types/runtime/execution/execution-service.d.ts +65 -0
- package/dist/types/runtime/execution/execution-watch-service.d.ts +32 -0
- package/dist/types/runtime/execution/session-stream-service.d.ts +33 -0
- package/dist/types/runtime/inbox/inbox-service.d.ts +76 -0
- package/dist/types/runtime/inbox/send-message-tool.d.ts +27 -0
- package/dist/types/runtime/inbox/wait-for-messages-tool.d.ts +34 -0
- package/dist/types/runtime/index.d.ts +51 -0
- package/dist/types/runtime/memory/memory-service.d.ts +22 -0
- package/dist/types/runtime/model/embedding-model-service.d.ts +68 -0
- package/dist/types/runtime/model/language-model-service.d.ts +34 -0
- package/dist/types/runtime/model/model-call-policy.d.ts +14 -0
- package/dist/types/runtime/observability/runtime-metrics.d.ts +19 -0
- package/dist/types/runtime/presence/presence-service.d.ts +30 -0
- package/dist/types/runtime/presence/presence-tool.d.ts +20 -0
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +149 -0
- package/dist/types/runtime/schedule/scheduler-service.d.ts +34 -0
- package/dist/types/runtime/schema-registry/schema-registry-service.d.ts +27 -0
- package/dist/types/runtime/session/session-store-service.d.ts +14 -0
- package/dist/types/runtime/skill/skill-registry-service.d.ts +44 -0
- package/dist/types/runtime/state/execution-state-service.d.ts +57 -0
- package/dist/types/runtime/state/state-tools.d.ts +5 -0
- package/dist/types/runtime/tool/tool-input-schema-digest.d.ts +6 -0
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +139 -0
- package/dist/types/runtime/tool/tool-transition-coordinator.d.ts +13 -0
- package/dist/types/runtime/topic/publish-to-topic-tool.d.ts +24 -0
- package/dist/types/runtime/topic/topic-service.d.ts +50 -0
- package/dist/types/runtime/wait/wait-service.d.ts +81 -0
- package/dist/types/runtime/wait/wait-signal.d.ts +16 -0
- package/dist/types/runtime/workflow/activity-version-registry.d.ts +89 -0
- package/dist/types/runtime/workflow/execution-workflow.d.ts +475 -0
- package/dist/types/runtime/workspace/workspace-planner-service.d.ts +64 -0
- package/dist/types/runtime/workspace/workspace-provider-service.d.ts +108 -0
- package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +21 -0
- package/dist/types/schema/address-schema.d.ts +77 -0
- package/dist/types/schema/agent-schema.d.ts +658 -0
- package/dist/types/schema/content-schema.d.ts +118 -0
- package/dist/types/schema/entity-schema.d.ts +40 -0
- package/dist/types/schema/envelope-schema.d.ts +180 -0
- package/dist/types/schema/execution-schema.d.ts +347 -0
- package/dist/types/schema/ids-schema.d.ts +94 -0
- package/dist/types/schema/inbox-schema.d.ts +81 -0
- package/dist/types/schema/index.d.ts +16 -0
- package/dist/types/schema/presence-schema.d.ts +28 -0
- package/dist/types/schema/schedule-schema.d.ts +79 -0
- package/dist/types/schema/shared-schema.d.ts +13 -0
- package/dist/types/schema/skill-schema.d.ts +260 -0
- package/dist/types/schema/state-schema.d.ts +35 -0
- package/dist/types/schema/tool-schema.d.ts +84 -0
- package/dist/types/schema/workspace-schema.d.ts +78 -0
- package/dist/types/test/captured-model.d.ts +13 -0
- package/dist/types/test/index.d.ts +6 -0
- package/dist/types/test/scripted-model.d.ts +39 -0
- package/dist/types/test/test-runtime.d.ts +9 -0
- package/dist/types/test/test-tools.d.ts +18 -0
- package/dist/types/test/wait-test-kit.d.ts +9 -0
- package/package.json +45 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ToolRuntime } from "../runtime/index";
|
|
2
|
+
import type { Ids, Shared, Tool } from "../schema/index";
|
|
3
|
+
import { Effect } from "effect";
|
|
4
|
+
export interface CapturedTool {
|
|
5
|
+
readonly registered: ToolRuntime.RegisteredTool;
|
|
6
|
+
readonly calls: Effect.Effect<ReadonlyArray<{
|
|
7
|
+
readonly input: Shared.JsonValue;
|
|
8
|
+
readonly executionId: Ids.ExecutionId;
|
|
9
|
+
}>>;
|
|
10
|
+
}
|
|
11
|
+
export declare const capturingTool: (options: {
|
|
12
|
+
readonly definition: Tool.Definition;
|
|
13
|
+
readonly output: Shared.JsonValue;
|
|
14
|
+
}) => Effect.Effect<CapturedTool>;
|
|
15
|
+
export declare const waitingTool: (options: {
|
|
16
|
+
readonly definition: Tool.Definition;
|
|
17
|
+
readonly waitId: Ids.WaitId;
|
|
18
|
+
}) => ToolRuntime.RegisteredTool;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Ids } from "../schema/index";
|
|
2
|
+
import { Client, Operation } from "@relayfx/sdk";
|
|
3
|
+
import { Effect } from "effect";
|
|
4
|
+
export declare const runThroughWait: <R>(options: {
|
|
5
|
+
readonly start: Effect.Effect<Operation.StartExecutionResult, unknown, R>;
|
|
6
|
+
readonly waitId: Ids.WaitId;
|
|
7
|
+
readonly whileSuspended?: Effect.Effect<void, unknown, R>;
|
|
8
|
+
readonly wake: Operation.WakeInput;
|
|
9
|
+
}) => Effect.Effect<Operation.StartExecutionResult, unknown, R | Client.Service>;
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
+
"name": "@relayfx/test",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "Experimental deterministic test kit for Relay applications",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/types/test/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"types": "./dist/types/test/index.d.ts",
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=22",
|
|
21
|
+
"bun": ">=1.3.0"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+https://github.com/In-Time-Tec/relayfx.git",
|
|
26
|
+
"directory": "packages/test"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://github.com/In-Time-Tec/relayfx#readme",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/In-Time-Tec/relayfx/issues"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "rm -rf dist && bun build ./src/index.ts --outdir dist --target bun --format esm --external effect --external 'effect/*' --external '@effect/*' --external '@relayfx/sdk' --external '@relayfx/sdk/*' && bun ../relay/scripts/build-types.ts && bun scripts/build-types.ts",
|
|
34
|
+
"lint": "bun --cwd ../.. oxlint packages/test/src packages/test/scripts packages/test/test",
|
|
35
|
+
"test": "bun --cwd ../.. vitest run packages/test/test --passWithNoTests",
|
|
36
|
+
"typecheck": "bun tsc --noEmit"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@relayfx/sdk": "0.1.0",
|
|
40
|
+
"effect": "4.0.0-beta.93"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"@effect/vitest": "4.0.0-beta.93"
|
|
44
|
+
}
|
|
45
|
+
}
|