@replayci/replay 0.1.6 → 0.1.7
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.cjs +275 -191
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +275 -191
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -159,6 +159,10 @@ type ObserveDiagnosticEvent = {
|
|
|
159
159
|
message: string;
|
|
160
160
|
} | {
|
|
161
161
|
type: "flush_empty";
|
|
162
|
+
} | {
|
|
163
|
+
type: "capture_error";
|
|
164
|
+
session_id: string;
|
|
165
|
+
details: string;
|
|
162
166
|
};
|
|
163
167
|
type ObserveOptions = {
|
|
164
168
|
agent?: string;
|
|
@@ -263,10 +267,12 @@ type CompletedToolCall = {
|
|
|
263
267
|
arguments_hash: string;
|
|
264
268
|
proposal_decision: "allowed";
|
|
265
269
|
execution_state: "outcome_recorded";
|
|
270
|
+
/** Reserved stub — always `"acknowledged"`. Higher evidence levels (e.g. cryptographic attestation) are not yet implemented. */
|
|
266
271
|
evidence_level: "acknowledged";
|
|
267
272
|
commit_requirement: CommitRequirement;
|
|
268
273
|
commit_state: "committed";
|
|
269
274
|
commit_tier: "strong" | "compat";
|
|
275
|
+
/** Reserved stub — always `false`. Executor attestation (proof that the wrapped executor ran) is not yet implemented. */
|
|
270
276
|
executor_attested: boolean;
|
|
271
277
|
contractFile: string | null;
|
|
272
278
|
resourceValues: Record<string, unknown> | null;
|
|
@@ -565,6 +571,7 @@ type ReplayHealthSnapshot = {
|
|
|
565
571
|
durability: "server" | "degraded-local" | "inactive";
|
|
566
572
|
tier: "strong" | "compat";
|
|
567
573
|
compatEnforcement: "protective" | "advisory";
|
|
574
|
+
/** Reserved stub — always `false`. Cluster detection is not yet implemented. */
|
|
568
575
|
cluster_detected: boolean;
|
|
569
576
|
bypass_detected: boolean;
|
|
570
577
|
totalSteps: number;
|
|
@@ -775,6 +782,15 @@ type ReplayDiagnosticEvent = {
|
|
|
775
782
|
type: "replay_inactive";
|
|
776
783
|
reason: string;
|
|
777
784
|
error_message?: string;
|
|
785
|
+
} | {
|
|
786
|
+
type: "replay_compile_error";
|
|
787
|
+
details: string;
|
|
788
|
+
} | {
|
|
789
|
+
type: "replay_compile_warning";
|
|
790
|
+
details: string;
|
|
791
|
+
} | {
|
|
792
|
+
type: "replay_validation_warning";
|
|
793
|
+
details: string;
|
|
778
794
|
} | {
|
|
779
795
|
type: "replay_contract_error";
|
|
780
796
|
details: string;
|
|
@@ -821,6 +837,19 @@ type ReplayDiagnosticEvent = {
|
|
|
821
837
|
type: "replay_workflow_error";
|
|
822
838
|
session_id: string;
|
|
823
839
|
details: string;
|
|
840
|
+
} | {
|
|
841
|
+
type: "replay_state_sync_error";
|
|
842
|
+
session_id: string;
|
|
843
|
+
details: string;
|
|
844
|
+
} | {
|
|
845
|
+
type: "replay_receipt_error";
|
|
846
|
+
session_id: string;
|
|
847
|
+
tool_name: string;
|
|
848
|
+
details: string;
|
|
849
|
+
} | {
|
|
850
|
+
type: "replay_capture_error";
|
|
851
|
+
session_id: string;
|
|
852
|
+
details: string;
|
|
824
853
|
};
|
|
825
854
|
/**
|
|
826
855
|
* Workflow state snapshot returned by `session.getWorkflowState()`.
|
package/dist/index.d.ts
CHANGED
|
@@ -159,6 +159,10 @@ type ObserveDiagnosticEvent = {
|
|
|
159
159
|
message: string;
|
|
160
160
|
} | {
|
|
161
161
|
type: "flush_empty";
|
|
162
|
+
} | {
|
|
163
|
+
type: "capture_error";
|
|
164
|
+
session_id: string;
|
|
165
|
+
details: string;
|
|
162
166
|
};
|
|
163
167
|
type ObserveOptions = {
|
|
164
168
|
agent?: string;
|
|
@@ -263,10 +267,12 @@ type CompletedToolCall = {
|
|
|
263
267
|
arguments_hash: string;
|
|
264
268
|
proposal_decision: "allowed";
|
|
265
269
|
execution_state: "outcome_recorded";
|
|
270
|
+
/** Reserved stub — always `"acknowledged"`. Higher evidence levels (e.g. cryptographic attestation) are not yet implemented. */
|
|
266
271
|
evidence_level: "acknowledged";
|
|
267
272
|
commit_requirement: CommitRequirement;
|
|
268
273
|
commit_state: "committed";
|
|
269
274
|
commit_tier: "strong" | "compat";
|
|
275
|
+
/** Reserved stub — always `false`. Executor attestation (proof that the wrapped executor ran) is not yet implemented. */
|
|
270
276
|
executor_attested: boolean;
|
|
271
277
|
contractFile: string | null;
|
|
272
278
|
resourceValues: Record<string, unknown> | null;
|
|
@@ -565,6 +571,7 @@ type ReplayHealthSnapshot = {
|
|
|
565
571
|
durability: "server" | "degraded-local" | "inactive";
|
|
566
572
|
tier: "strong" | "compat";
|
|
567
573
|
compatEnforcement: "protective" | "advisory";
|
|
574
|
+
/** Reserved stub — always `false`. Cluster detection is not yet implemented. */
|
|
568
575
|
cluster_detected: boolean;
|
|
569
576
|
bypass_detected: boolean;
|
|
570
577
|
totalSteps: number;
|
|
@@ -775,6 +782,15 @@ type ReplayDiagnosticEvent = {
|
|
|
775
782
|
type: "replay_inactive";
|
|
776
783
|
reason: string;
|
|
777
784
|
error_message?: string;
|
|
785
|
+
} | {
|
|
786
|
+
type: "replay_compile_error";
|
|
787
|
+
details: string;
|
|
788
|
+
} | {
|
|
789
|
+
type: "replay_compile_warning";
|
|
790
|
+
details: string;
|
|
791
|
+
} | {
|
|
792
|
+
type: "replay_validation_warning";
|
|
793
|
+
details: string;
|
|
778
794
|
} | {
|
|
779
795
|
type: "replay_contract_error";
|
|
780
796
|
details: string;
|
|
@@ -821,6 +837,19 @@ type ReplayDiagnosticEvent = {
|
|
|
821
837
|
type: "replay_workflow_error";
|
|
822
838
|
session_id: string;
|
|
823
839
|
details: string;
|
|
840
|
+
} | {
|
|
841
|
+
type: "replay_state_sync_error";
|
|
842
|
+
session_id: string;
|
|
843
|
+
details: string;
|
|
844
|
+
} | {
|
|
845
|
+
type: "replay_receipt_error";
|
|
846
|
+
session_id: string;
|
|
847
|
+
tool_name: string;
|
|
848
|
+
details: string;
|
|
849
|
+
} | {
|
|
850
|
+
type: "replay_capture_error";
|
|
851
|
+
session_id: string;
|
|
852
|
+
details: string;
|
|
824
853
|
};
|
|
825
854
|
/**
|
|
826
855
|
* Workflow state snapshot returned by `session.getWorkflowState()`.
|