@effect-agent/testing 0.1.0-beta.22 → 0.1.0-beta.24
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.d.mts +3 -2
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
- package/src/certification.ts +10 -8
- package/src/fixtures/travel-planner/phase5.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-agent/testing",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.24",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@effect-agent/capabilities": "0.1.0-beta.
|
|
12
|
-
"@effect-agent/core": "0.1.0-beta.
|
|
13
|
-
"@effect-agent/engine": "0.1.0-beta.
|
|
14
|
-
"@effect-agent/platform-node": "0.1.0-beta.
|
|
15
|
-
"@effect-agent/sandbox": "0.1.0-beta.
|
|
16
|
-
"@effect-agent/session": "0.1.0-beta.
|
|
17
|
-
"@effect-agent/storage-memory": "0.1.0-beta.
|
|
18
|
-
"@effect-agent/storage-sqlite": "0.1.0-beta.
|
|
11
|
+
"@effect-agent/capabilities": "0.1.0-beta.24",
|
|
12
|
+
"@effect-agent/core": "0.1.0-beta.24",
|
|
13
|
+
"@effect-agent/engine": "0.1.0-beta.24",
|
|
14
|
+
"@effect-agent/platform-node": "0.1.0-beta.24",
|
|
15
|
+
"@effect-agent/sandbox": "0.1.0-beta.24",
|
|
16
|
+
"@effect-agent/session": "0.1.0-beta.24",
|
|
17
|
+
"@effect-agent/storage-memory": "0.1.0-beta.24",
|
|
18
|
+
"@effect-agent/storage-sqlite": "0.1.0-beta.24",
|
|
19
19
|
"effect": "4.0.0-rc.110"
|
|
20
20
|
},
|
|
21
21
|
"description": "Scripted models, deterministic fixtures, and adapter conformance kits for testing Effect Agent applications.",
|
package/src/certification.ts
CHANGED
|
@@ -19,11 +19,6 @@ import { DurableStep, DurableStepError } from "@effect-agent/engine";
|
|
|
19
19
|
import {
|
|
20
20
|
AgentBindingResolver,
|
|
21
21
|
ApprovalDecisionCommand,
|
|
22
|
-
CertificationCaseResult,
|
|
23
|
-
CertificationReport,
|
|
24
|
-
CertificationSweepResult,
|
|
25
|
-
CertificationTierThreeReport,
|
|
26
|
-
CertifiedAdapterIdentity,
|
|
27
22
|
ConversationExportRequest,
|
|
28
23
|
ConversationStore,
|
|
29
24
|
DefinitionDigests,
|
|
@@ -47,21 +42,28 @@ import {
|
|
|
47
42
|
UnknownResolutionCommand,
|
|
48
43
|
WakeScheduler,
|
|
49
44
|
DEFAULT_OWNERSHIP_LEASE_DURATION,
|
|
50
|
-
certifyPorts,
|
|
51
45
|
childConversationIdFor,
|
|
52
46
|
verifyConversationInvariants,
|
|
53
47
|
type BatchId,
|
|
54
|
-
type CertificationScenario,
|
|
55
48
|
type DurableSubmitFailure,
|
|
56
49
|
type DurableSubmitOptions,
|
|
57
50
|
type Receipt,
|
|
58
51
|
type ResolvedBinding,
|
|
59
52
|
type SubmissionSnapshot,
|
|
60
53
|
} from "@effect-agent/session";
|
|
54
|
+
import type { CertificationCaseResult } from "@effect-agent/session/testing";
|
|
55
|
+
import {
|
|
56
|
+
CertificationReport,
|
|
57
|
+
CertificationSweepResult,
|
|
58
|
+
CertificationTierThreeReport,
|
|
59
|
+
CertifiedAdapterIdentity,
|
|
60
|
+
certifyPorts,
|
|
61
|
+
type CertificationScenario,
|
|
62
|
+
} from "@effect-agent/session/testing";
|
|
63
|
+
import type { Crypto } from "effect";
|
|
61
64
|
import {
|
|
62
65
|
Cause,
|
|
63
66
|
Clock,
|
|
64
|
-
Crypto,
|
|
65
67
|
DateTime,
|
|
66
68
|
Duration,
|
|
67
69
|
Effect,
|
|
@@ -205,7 +205,7 @@ export const CancelBooking = Tool.make("cancel_booking", {
|
|
|
205
205
|
|
|
206
206
|
/**
|
|
207
207
|
* The Durable Tool: declaring `DurableStep` in `dependencies` is what makes it durable
|
|
208
|
-
* (
|
|
208
|
+
* (GLOSSARY.md). Its handler divides supplier mutation into three named Steps — `reserve-flight`,
|
|
209
209
|
* `reserve-lodging`, `issue-confirmation` — each deriving its supplier idempotency key from
|
|
210
210
|
* `(toolCallId, stepName)`, so re-entry after interruption replays recorded Step results and the
|
|
211
211
|
* supplier dedupes any honestly-repeated call. The Tool itself carries no execution-class
|