agent-inspect 6.20.0 → 6.21.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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/docs/TRACE-CONTRACTS.md +39 -0
- package/package.json +1 -1
- package/packages/cli/dist/{chunk-QPRJUVLH.mjs → chunk-CRUHIL5J.mjs} +16 -2
- package/packages/cli/dist/chunk-CRUHIL5J.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +22 -3
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +4 -4
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-6W5ZR3I7.mjs → src-MNJFYW3W.mjs} +3 -3
- package/packages/cli/dist/{src-6W5ZR3I7.mjs.map → src-MNJFYW3W.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +3 -0
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.d.cts +6 -156
- package/packages/core/dist/advanced.d.ts +6 -156
- package/packages/core/dist/advanced.mjs +6 -60
- package/packages/core/dist/advanced.mjs.map +1 -1
- package/packages/core/dist/checks.cjs +558 -25
- package/packages/core/dist/checks.cjs.map +1 -1
- package/packages/core/dist/checks.d.cts +81 -3
- package/packages/core/dist/checks.d.ts +81 -3
- package/packages/core/dist/checks.mjs +2 -2
- package/packages/core/dist/{chunk-G47KQB42.mjs → chunk-43SHIPZM.mjs} +556 -29
- package/packages/core/dist/chunk-43SHIPZM.mjs.map +1 -0
- package/packages/core/dist/{chunk-3XS5O4JI.mjs → chunk-R4SSYU6D.mjs} +3 -3
- package/packages/core/dist/chunk-R4SSYU6D.mjs.map +1 -0
- package/packages/core/dist/{chunk-5YFJJFXU.mjs → chunk-WGDSM37E.mjs} +3 -3
- package/packages/core/dist/{chunk-5YFJJFXU.mjs.map → chunk-WGDSM37E.mjs.map} +1 -1
- package/packages/core/dist/{context-C5ye_xcS.d.cts → context-DOOT9GZ-.d.cts} +1 -1
- package/packages/core/dist/{context-CNsNSgE2.d.ts → context-DOX2-RjH.d.ts} +1 -1
- package/packages/core/dist/diff.d.cts +1 -1
- package/packages/core/dist/diff.d.ts +1 -1
- package/packages/core/dist/exporters.d.cts +1 -1
- package/packages/core/dist/exporters.d.ts +1 -1
- package/packages/core/dist/exporters.mjs +1 -1
- package/packages/core/dist/{index-rVpX5PPh.d.cts → index-BG-ZBESI.d.cts} +153 -1
- package/packages/core/dist/{index-Bg9ZdsdS.d.ts → index-xevIlqdd.d.ts} +153 -1
- package/packages/core/dist/index.d.cts +3 -3
- package/packages/core/dist/index.d.ts +3 -3
- package/packages/core/dist/index.mjs +3 -3
- package/packages/core/dist/persisted.d.cts +1 -1
- package/packages/core/dist/persisted.d.ts +1 -1
- package/packages/core/dist/{types--ainI31J.d.ts → types-Bx3mEZ04.d.ts} +1 -1
- package/packages/core/dist/{types-UnrNaTo2.d.cts → types-VzKihKQo.d.cts} +1 -1
- package/packages/cli/dist/chunk-QPRJUVLH.mjs.map +0 -1
- package/packages/core/dist/chunk-3XS5O4JI.mjs.map +0 -1
- package/packages/core/dist/chunk-G47KQB42.mjs.map +0 -1
|
@@ -1,8 +1,160 @@
|
|
|
1
|
+
import { T as TraceMetadataStatus } from './types-VzKihKQo.cjs';
|
|
1
2
|
import { T as TraceReadWarning, a as TraceReadResult } from './index-vqr-g6ev.cjs';
|
|
2
3
|
import { a as InspectRunTree, b as InspectNode, A as AttributionConfidence } from './inspect-event-DRthdZlf.cjs';
|
|
3
4
|
import { P as PersistedInspectEvent } from './persisted-inspect-event-CVZWZldL.cjs';
|
|
4
5
|
import { O as ObservedOutcomeStatus } from './types-B562HgN_.cjs';
|
|
5
6
|
|
|
7
|
+
/** Known session/workflow metadata keys (v2.4 RFC). */
|
|
8
|
+
declare const SESSION_WORKFLOW_KEYS: readonly ["sessionId", "conversationId", "groupId", "parentGroupId", "attempt", "retryOf", "retryReason", "handoffFrom", "handoffTo", "subAgentId", "subAgentName", "jobId", "queueName", "workflowName", "workflowStep", "toolCallId", "mcpToolCallId", "linkedStepId", "correlationId", "requestId", "decisionId"];
|
|
9
|
+
type SessionWorkflowKey = (typeof SESSION_WORKFLOW_KEYS)[number];
|
|
10
|
+
type SessionConfidence = "explicit" | "correlated" | "heuristic" | "unknown";
|
|
11
|
+
type SessionEdgeSource = "manual" | "adapter" | "json-log" | "log4js" | "mcp-client" | "inferred";
|
|
12
|
+
interface SessionWorkflowMetadata {
|
|
13
|
+
sessionId?: string;
|
|
14
|
+
conversationId?: string;
|
|
15
|
+
groupId?: string;
|
|
16
|
+
parentGroupId?: string;
|
|
17
|
+
attempt?: number;
|
|
18
|
+
retryOf?: string;
|
|
19
|
+
retryReason?: string;
|
|
20
|
+
handoffFrom?: string;
|
|
21
|
+
handoffTo?: string;
|
|
22
|
+
subAgentId?: string;
|
|
23
|
+
subAgentName?: string;
|
|
24
|
+
jobId?: string;
|
|
25
|
+
queueName?: string;
|
|
26
|
+
workflowName?: string;
|
|
27
|
+
workflowStep?: string;
|
|
28
|
+
toolCallId?: string;
|
|
29
|
+
mcpToolCallId?: string;
|
|
30
|
+
linkedStepId?: string;
|
|
31
|
+
correlationId?: string;
|
|
32
|
+
requestId?: string;
|
|
33
|
+
decisionId?: string;
|
|
34
|
+
}
|
|
35
|
+
interface SessionRunRecord {
|
|
36
|
+
runId: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
status?: TraceMetadataStatus;
|
|
39
|
+
startedAt?: number;
|
|
40
|
+
endedAt?: number;
|
|
41
|
+
durationMs?: number;
|
|
42
|
+
filePath?: string;
|
|
43
|
+
metadata?: Record<string, unknown>;
|
|
44
|
+
}
|
|
45
|
+
interface SessionWarning {
|
|
46
|
+
code: string;
|
|
47
|
+
message: string;
|
|
48
|
+
runId?: string;
|
|
49
|
+
sessionId?: string;
|
|
50
|
+
}
|
|
51
|
+
interface HandoffEdge {
|
|
52
|
+
from: string;
|
|
53
|
+
to: string;
|
|
54
|
+
source: SessionEdgeSource;
|
|
55
|
+
confidence: SessionConfidence;
|
|
56
|
+
}
|
|
57
|
+
interface RetryLink {
|
|
58
|
+
runId: string;
|
|
59
|
+
retryOf?: string;
|
|
60
|
+
attempt?: number;
|
|
61
|
+
source: SessionEdgeSource;
|
|
62
|
+
confidence: SessionConfidence;
|
|
63
|
+
}
|
|
64
|
+
interface SessionGroup {
|
|
65
|
+
groupId: string;
|
|
66
|
+
parentGroupId?: string;
|
|
67
|
+
runIds: string[];
|
|
68
|
+
}
|
|
69
|
+
interface CriticalPathStep {
|
|
70
|
+
runId: string;
|
|
71
|
+
name?: string;
|
|
72
|
+
startedAt?: number;
|
|
73
|
+
durationMs?: number;
|
|
74
|
+
source: SessionEdgeSource;
|
|
75
|
+
confidence: SessionConfidence;
|
|
76
|
+
}
|
|
77
|
+
/** Session lifecycle status (v4.2 RFC). */
|
|
78
|
+
type SessionStatus = "running" | "waiting_input" | "idle" | "completed" | "error" | "stale" | "unknown";
|
|
79
|
+
interface SessionLastError {
|
|
80
|
+
runId: string;
|
|
81
|
+
message: string;
|
|
82
|
+
code?: string;
|
|
83
|
+
}
|
|
84
|
+
interface SessionCheckSummary {
|
|
85
|
+
pass: number;
|
|
86
|
+
fail: number;
|
|
87
|
+
warn: number;
|
|
88
|
+
}
|
|
89
|
+
interface EnrichSessionSummaryOptions {
|
|
90
|
+
/** Reference clock for staleness (default Date.now()). */
|
|
91
|
+
nowMs?: number;
|
|
92
|
+
/** Inactivity threshold before marking a session stale (default 24h). */
|
|
93
|
+
staleThresholdMs?: number;
|
|
94
|
+
}
|
|
95
|
+
interface ActivityEntry {
|
|
96
|
+
sessionId: string;
|
|
97
|
+
status: SessionStatus;
|
|
98
|
+
summary: string;
|
|
99
|
+
lastActivity: string;
|
|
100
|
+
runCount: number;
|
|
101
|
+
}
|
|
102
|
+
interface ActivitySummary {
|
|
103
|
+
since: string;
|
|
104
|
+
sessions: number;
|
|
105
|
+
failed: number;
|
|
106
|
+
stale: number;
|
|
107
|
+
guardrailWarnings: number;
|
|
108
|
+
entries: ActivityEntry[];
|
|
109
|
+
}
|
|
110
|
+
interface BuildActivitySummaryOptions {
|
|
111
|
+
/** Duration window (e.g. 7d, 24h). Default 7d. */
|
|
112
|
+
since?: string;
|
|
113
|
+
/** Reference clock (default Date.now()). */
|
|
114
|
+
nowMs?: number;
|
|
115
|
+
/** Max entries returned (default 20). */
|
|
116
|
+
limit?: number;
|
|
117
|
+
}
|
|
118
|
+
interface SessionSummary {
|
|
119
|
+
sessionId: string;
|
|
120
|
+
runIds: string[];
|
|
121
|
+
groups: SessionGroup[];
|
|
122
|
+
handoffs: HandoffEdge[];
|
|
123
|
+
retries: RetryLink[];
|
|
124
|
+
criticalPath: CriticalPathStep[];
|
|
125
|
+
/** Derived session status (v4.2+). */
|
|
126
|
+
status: SessionStatus;
|
|
127
|
+
/** Earliest run start time in the session. */
|
|
128
|
+
startedAt?: number;
|
|
129
|
+
/** Latest run end time when all runs have ended. */
|
|
130
|
+
endedAt?: number;
|
|
131
|
+
/** endedAt - startedAt when both are present. */
|
|
132
|
+
durationMs?: number;
|
|
133
|
+
correlationId?: string;
|
|
134
|
+
jobId?: string;
|
|
135
|
+
workflowId?: string;
|
|
136
|
+
lastError?: SessionLastError;
|
|
137
|
+
/** ISO-8601 timestamp of the most recent run activity. */
|
|
138
|
+
lastActivity: string;
|
|
139
|
+
retryCount: number;
|
|
140
|
+
observationSummary?: string;
|
|
141
|
+
checkSummary?: SessionCheckSummary;
|
|
142
|
+
}
|
|
143
|
+
interface SessionIndex {
|
|
144
|
+
runs: SessionRunRecord[];
|
|
145
|
+
sessions: SessionSummary[];
|
|
146
|
+
unscopedRunIds: string[];
|
|
147
|
+
warnings: SessionWarning[];
|
|
148
|
+
}
|
|
149
|
+
interface BuildSessionIndexOptions {
|
|
150
|
+
/** When true, group runs that share only `groupId` under a synthetic session key. */
|
|
151
|
+
correlateByGroupId?: boolean;
|
|
152
|
+
/** Reference clock for session staleness (v4.2+). */
|
|
153
|
+
nowMs?: number;
|
|
154
|
+
/** Inactivity threshold before marking a session stale (v4.2+, default 24h). */
|
|
155
|
+
staleThresholdMs?: number;
|
|
156
|
+
}
|
|
157
|
+
|
|
6
158
|
/**
|
|
7
159
|
* Logical lifecycle projection for trace checks.
|
|
8
160
|
*
|
|
@@ -724,4 +876,4 @@ declare function createObservedOutcomeRule(options?: ObservedOutcomeRuleOptions)
|
|
|
724
876
|
*/
|
|
725
877
|
declare function runTraceChecks(input: TraceCheckInput, options?: RunTraceChecksOptions): TraceCheckResult;
|
|
726
878
|
|
|
727
|
-
export {
|
|
879
|
+
export { createRequireCompletedRule as $, type TraceCheckEvidence as A, type BaselineRegressionRuleOptions as B, type TraceCheckFacts as C, type DecisionRuleOptions as D, type TraceCheckFinding as E, type TraceCheckFindingStatus as F, type GuardrailRuleOptions as G, type TraceCheckRule as H, type TraceCheckRuleCategory as I, type TraceCheckRuleExecution as J, type TraceCheckRuleExecutionStatus as K, type LogicalTraceEvent as L, type MaxStepDurationRuleOptions as M, type TraceCheckSeverity as N, type ObservedOutcomeRuleOptions as O, type TraceCheckStatus as P, type TraceCheckSummary as Q, type RetrievalRuleOptions as R, type SessionWorkflowMetadata as S, type TraceCheckInput as T, type TraceSignalRuleOptions as U, createBaselineRegressionRule as V, createDecisionRule as W, createGuardrailRule as X, createLlmUsageRule as Y, createMaxStepDurationRule as Z, createObservedOutcomeRule as _, type LogicalProjectionDiagnostic as a, createRetrievalRule as a0, createRunDepthRule as a1, createRunDurationRule as a2, createRunEventCountRule as a3, createRunStatusRule as a4, createSafetyOversizedAttributeRule as a5, createSafetyRawContentRule as a6, createSafetyRedactionRule as a7, createSafetySecretPatternRule as a8, createStallDetectionRule as a9, type SessionConfidence as aA, type SessionEdgeSource as aB, type SessionGroup as aC, type SessionLastError as aD, type SessionWorkflowKey as aE, createStructureCycleRule as aa, createStructureIncompleteRule as ab, createStructureOrphanRule as ac, createStructureParallelWidthRule as ad, createStructureRelationshipRule as ae, createToolFailureRule as af, createToolOrderingRule as ag, createToolUsageRule as ah, projectLogicalEvents as ai, resolveCanonicalToolName as aj, runTraceChecks as ak, type SessionRunRecord as al, type EnrichSessionSummaryOptions as am, type SessionStatus as an, type SessionSummary as ao, type SessionIndex as ap, type BuildActivitySummaryOptions as aq, type ActivitySummary as ar, type SessionWarning as as, type BuildSessionIndexOptions as at, type ActivityEntry as au, type CriticalPathStep as av, type HandoffEdge as aw, type RetryLink as ax, SESSION_WORKFLOW_KEYS as ay, type SessionCheckSummary as az, type TraceCheckDiagnostic as b, type TraceCheckResult as c, type LlmUsageRuleOptions as d, type RunDepthRuleOptions as e, type RunDurationRuleOptions as f, type RunEventCountRuleOptions as g, type RunStatusRuleOptions as h, type RunTraceChecksOptions as i, type SafetyFindingCategory as j, type SafetyFindingConfidence as k, type SafetyOversizedAttributeRuleOptions as l, type SafetyRawContentRuleOptions as m, type SafetyRedactionRuleOptions as n, type SafetySecretPattern as o, type SafetySecretPatternRuleOptions as p, type StallDetectionRuleOptions as q, type StructureIncompleteRuleOptions as r, type StructureOrphanRuleOptions as s, type StructureParallelWidthRuleOptions as t, type StructureRelationshipRuleOptions as u, type ToolFailureRuleOptions as v, type ToolOrderingRuleOptions as w, type ToolUsageRuleOptions as x, type TraceCheckContext as y, type TraceCheckDiagnosticCode as z };
|
|
@@ -1,8 +1,160 @@
|
|
|
1
|
+
import { T as TraceMetadataStatus } from './types-Bx3mEZ04.js';
|
|
1
2
|
import { T as TraceReadWarning, a as TraceReadResult } from './index-AMAGuO_i.js';
|
|
2
3
|
import { a as InspectRunTree, b as InspectNode, A as AttributionConfidence } from './inspect-event-DRthdZlf.js';
|
|
3
4
|
import { P as PersistedInspectEvent } from './persisted-inspect-event-BVucFVrP.js';
|
|
4
5
|
import { O as ObservedOutcomeStatus } from './types-B562HgN_.js';
|
|
5
6
|
|
|
7
|
+
/** Known session/workflow metadata keys (v2.4 RFC). */
|
|
8
|
+
declare const SESSION_WORKFLOW_KEYS: readonly ["sessionId", "conversationId", "groupId", "parentGroupId", "attempt", "retryOf", "retryReason", "handoffFrom", "handoffTo", "subAgentId", "subAgentName", "jobId", "queueName", "workflowName", "workflowStep", "toolCallId", "mcpToolCallId", "linkedStepId", "correlationId", "requestId", "decisionId"];
|
|
9
|
+
type SessionWorkflowKey = (typeof SESSION_WORKFLOW_KEYS)[number];
|
|
10
|
+
type SessionConfidence = "explicit" | "correlated" | "heuristic" | "unknown";
|
|
11
|
+
type SessionEdgeSource = "manual" | "adapter" | "json-log" | "log4js" | "mcp-client" | "inferred";
|
|
12
|
+
interface SessionWorkflowMetadata {
|
|
13
|
+
sessionId?: string;
|
|
14
|
+
conversationId?: string;
|
|
15
|
+
groupId?: string;
|
|
16
|
+
parentGroupId?: string;
|
|
17
|
+
attempt?: number;
|
|
18
|
+
retryOf?: string;
|
|
19
|
+
retryReason?: string;
|
|
20
|
+
handoffFrom?: string;
|
|
21
|
+
handoffTo?: string;
|
|
22
|
+
subAgentId?: string;
|
|
23
|
+
subAgentName?: string;
|
|
24
|
+
jobId?: string;
|
|
25
|
+
queueName?: string;
|
|
26
|
+
workflowName?: string;
|
|
27
|
+
workflowStep?: string;
|
|
28
|
+
toolCallId?: string;
|
|
29
|
+
mcpToolCallId?: string;
|
|
30
|
+
linkedStepId?: string;
|
|
31
|
+
correlationId?: string;
|
|
32
|
+
requestId?: string;
|
|
33
|
+
decisionId?: string;
|
|
34
|
+
}
|
|
35
|
+
interface SessionRunRecord {
|
|
36
|
+
runId: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
status?: TraceMetadataStatus;
|
|
39
|
+
startedAt?: number;
|
|
40
|
+
endedAt?: number;
|
|
41
|
+
durationMs?: number;
|
|
42
|
+
filePath?: string;
|
|
43
|
+
metadata?: Record<string, unknown>;
|
|
44
|
+
}
|
|
45
|
+
interface SessionWarning {
|
|
46
|
+
code: string;
|
|
47
|
+
message: string;
|
|
48
|
+
runId?: string;
|
|
49
|
+
sessionId?: string;
|
|
50
|
+
}
|
|
51
|
+
interface HandoffEdge {
|
|
52
|
+
from: string;
|
|
53
|
+
to: string;
|
|
54
|
+
source: SessionEdgeSource;
|
|
55
|
+
confidence: SessionConfidence;
|
|
56
|
+
}
|
|
57
|
+
interface RetryLink {
|
|
58
|
+
runId: string;
|
|
59
|
+
retryOf?: string;
|
|
60
|
+
attempt?: number;
|
|
61
|
+
source: SessionEdgeSource;
|
|
62
|
+
confidence: SessionConfidence;
|
|
63
|
+
}
|
|
64
|
+
interface SessionGroup {
|
|
65
|
+
groupId: string;
|
|
66
|
+
parentGroupId?: string;
|
|
67
|
+
runIds: string[];
|
|
68
|
+
}
|
|
69
|
+
interface CriticalPathStep {
|
|
70
|
+
runId: string;
|
|
71
|
+
name?: string;
|
|
72
|
+
startedAt?: number;
|
|
73
|
+
durationMs?: number;
|
|
74
|
+
source: SessionEdgeSource;
|
|
75
|
+
confidence: SessionConfidence;
|
|
76
|
+
}
|
|
77
|
+
/** Session lifecycle status (v4.2 RFC). */
|
|
78
|
+
type SessionStatus = "running" | "waiting_input" | "idle" | "completed" | "error" | "stale" | "unknown";
|
|
79
|
+
interface SessionLastError {
|
|
80
|
+
runId: string;
|
|
81
|
+
message: string;
|
|
82
|
+
code?: string;
|
|
83
|
+
}
|
|
84
|
+
interface SessionCheckSummary {
|
|
85
|
+
pass: number;
|
|
86
|
+
fail: number;
|
|
87
|
+
warn: number;
|
|
88
|
+
}
|
|
89
|
+
interface EnrichSessionSummaryOptions {
|
|
90
|
+
/** Reference clock for staleness (default Date.now()). */
|
|
91
|
+
nowMs?: number;
|
|
92
|
+
/** Inactivity threshold before marking a session stale (default 24h). */
|
|
93
|
+
staleThresholdMs?: number;
|
|
94
|
+
}
|
|
95
|
+
interface ActivityEntry {
|
|
96
|
+
sessionId: string;
|
|
97
|
+
status: SessionStatus;
|
|
98
|
+
summary: string;
|
|
99
|
+
lastActivity: string;
|
|
100
|
+
runCount: number;
|
|
101
|
+
}
|
|
102
|
+
interface ActivitySummary {
|
|
103
|
+
since: string;
|
|
104
|
+
sessions: number;
|
|
105
|
+
failed: number;
|
|
106
|
+
stale: number;
|
|
107
|
+
guardrailWarnings: number;
|
|
108
|
+
entries: ActivityEntry[];
|
|
109
|
+
}
|
|
110
|
+
interface BuildActivitySummaryOptions {
|
|
111
|
+
/** Duration window (e.g. 7d, 24h). Default 7d. */
|
|
112
|
+
since?: string;
|
|
113
|
+
/** Reference clock (default Date.now()). */
|
|
114
|
+
nowMs?: number;
|
|
115
|
+
/** Max entries returned (default 20). */
|
|
116
|
+
limit?: number;
|
|
117
|
+
}
|
|
118
|
+
interface SessionSummary {
|
|
119
|
+
sessionId: string;
|
|
120
|
+
runIds: string[];
|
|
121
|
+
groups: SessionGroup[];
|
|
122
|
+
handoffs: HandoffEdge[];
|
|
123
|
+
retries: RetryLink[];
|
|
124
|
+
criticalPath: CriticalPathStep[];
|
|
125
|
+
/** Derived session status (v4.2+). */
|
|
126
|
+
status: SessionStatus;
|
|
127
|
+
/** Earliest run start time in the session. */
|
|
128
|
+
startedAt?: number;
|
|
129
|
+
/** Latest run end time when all runs have ended. */
|
|
130
|
+
endedAt?: number;
|
|
131
|
+
/** endedAt - startedAt when both are present. */
|
|
132
|
+
durationMs?: number;
|
|
133
|
+
correlationId?: string;
|
|
134
|
+
jobId?: string;
|
|
135
|
+
workflowId?: string;
|
|
136
|
+
lastError?: SessionLastError;
|
|
137
|
+
/** ISO-8601 timestamp of the most recent run activity. */
|
|
138
|
+
lastActivity: string;
|
|
139
|
+
retryCount: number;
|
|
140
|
+
observationSummary?: string;
|
|
141
|
+
checkSummary?: SessionCheckSummary;
|
|
142
|
+
}
|
|
143
|
+
interface SessionIndex {
|
|
144
|
+
runs: SessionRunRecord[];
|
|
145
|
+
sessions: SessionSummary[];
|
|
146
|
+
unscopedRunIds: string[];
|
|
147
|
+
warnings: SessionWarning[];
|
|
148
|
+
}
|
|
149
|
+
interface BuildSessionIndexOptions {
|
|
150
|
+
/** When true, group runs that share only `groupId` under a synthetic session key. */
|
|
151
|
+
correlateByGroupId?: boolean;
|
|
152
|
+
/** Reference clock for session staleness (v4.2+). */
|
|
153
|
+
nowMs?: number;
|
|
154
|
+
/** Inactivity threshold before marking a session stale (v4.2+, default 24h). */
|
|
155
|
+
staleThresholdMs?: number;
|
|
156
|
+
}
|
|
157
|
+
|
|
6
158
|
/**
|
|
7
159
|
* Logical lifecycle projection for trace checks.
|
|
8
160
|
*
|
|
@@ -724,4 +876,4 @@ declare function createObservedOutcomeRule(options?: ObservedOutcomeRuleOptions)
|
|
|
724
876
|
*/
|
|
725
877
|
declare function runTraceChecks(input: TraceCheckInput, options?: RunTraceChecksOptions): TraceCheckResult;
|
|
726
878
|
|
|
727
|
-
export {
|
|
879
|
+
export { createRequireCompletedRule as $, type TraceCheckEvidence as A, type BaselineRegressionRuleOptions as B, type TraceCheckFacts as C, type DecisionRuleOptions as D, type TraceCheckFinding as E, type TraceCheckFindingStatus as F, type GuardrailRuleOptions as G, type TraceCheckRule as H, type TraceCheckRuleCategory as I, type TraceCheckRuleExecution as J, type TraceCheckRuleExecutionStatus as K, type LogicalTraceEvent as L, type MaxStepDurationRuleOptions as M, type TraceCheckSeverity as N, type ObservedOutcomeRuleOptions as O, type TraceCheckStatus as P, type TraceCheckSummary as Q, type RetrievalRuleOptions as R, type SessionWorkflowMetadata as S, type TraceCheckInput as T, type TraceSignalRuleOptions as U, createBaselineRegressionRule as V, createDecisionRule as W, createGuardrailRule as X, createLlmUsageRule as Y, createMaxStepDurationRule as Z, createObservedOutcomeRule as _, type LogicalProjectionDiagnostic as a, createRetrievalRule as a0, createRunDepthRule as a1, createRunDurationRule as a2, createRunEventCountRule as a3, createRunStatusRule as a4, createSafetyOversizedAttributeRule as a5, createSafetyRawContentRule as a6, createSafetyRedactionRule as a7, createSafetySecretPatternRule as a8, createStallDetectionRule as a9, type SessionConfidence as aA, type SessionEdgeSource as aB, type SessionGroup as aC, type SessionLastError as aD, type SessionWorkflowKey as aE, createStructureCycleRule as aa, createStructureIncompleteRule as ab, createStructureOrphanRule as ac, createStructureParallelWidthRule as ad, createStructureRelationshipRule as ae, createToolFailureRule as af, createToolOrderingRule as ag, createToolUsageRule as ah, projectLogicalEvents as ai, resolveCanonicalToolName as aj, runTraceChecks as ak, type SessionRunRecord as al, type EnrichSessionSummaryOptions as am, type SessionStatus as an, type SessionSummary as ao, type SessionIndex as ap, type BuildActivitySummaryOptions as aq, type ActivitySummary as ar, type SessionWarning as as, type BuildSessionIndexOptions as at, type ActivityEntry as au, type CriticalPathStep as av, type HandoffEdge as aw, type RetryLink as ax, SESSION_WORKFLOW_KEYS as ay, type SessionCheckSummary as az, type TraceCheckDiagnostic as b, type TraceCheckResult as c, type LlmUsageRuleOptions as d, type RunDepthRuleOptions as e, type RunDurationRuleOptions as f, type RunEventCountRuleOptions as g, type RunStatusRuleOptions as h, type RunTraceChecksOptions as i, type SafetyFindingCategory as j, type SafetyFindingConfidence as k, type SafetyOversizedAttributeRuleOptions as l, type SafetyRawContentRuleOptions as m, type SafetyRedactionRuleOptions as n, type SafetySecretPattern as o, type SafetySecretPatternRuleOptions as p, type StallDetectionRuleOptions as q, type StructureIncompleteRuleOptions as r, type StructureOrphanRuleOptions as s, type StructureParallelWidthRuleOptions as t, type StructureRelationshipRuleOptions as u, type ToolFailureRuleOptions as v, type ToolOrderingRuleOptions as w, type ToolUsageRuleOptions as x, type TraceCheckContext as y, type TraceCheckDiagnosticCode as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as InspectRunOptions, S as StepOptions, O as ObserveOptions } from './types-
|
|
2
|
-
export { E as ErrorInfo, R as RedactionProfile, a as Run, b as RunStatus, c as Step, d as StepMetadata, e as StepStatus, f as StepType,
|
|
3
|
-
export { C as CreateInspectorOptions, I as Inspector, a as InspectorCaptureOptions, b as InspectorObserveOptions, c as InspectorRunOptions, d as InspectorStepOptions, e as createInspector, g as getCurrentCorrelationMetadata, m as maybeInspectRun } from './context-
|
|
1
|
+
import { I as InspectRunOptions, S as StepOptions, O as ObserveOptions } from './types-VzKihKQo.cjs';
|
|
2
|
+
export { E as ErrorInfo, R as RedactionProfile, a as Run, b as RunStatus, c as Step, d as StepMetadata, e as StepStatus, f as StepType, g as TokenMetadata, h as TraceCorrelationMetadata } from './types-VzKihKQo.cjs';
|
|
3
|
+
export { C as CreateInspectorOptions, I as Inspector, a as InspectorCaptureOptions, b as InspectorObserveOptions, c as InspectorRunOptions, d as InspectorStepOptions, e as createInspector, g as getCurrentCorrelationMetadata, m as maybeInspectRun } from './context-DOOT9GZ-.cjs';
|
|
4
4
|
import { a as ObserveOutcomeOptions } from './types-B562HgN_.cjs';
|
|
5
5
|
import './log-config-CFlIJHTf.cjs';
|
|
6
6
|
import './inspect-event-DRthdZlf.cjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as InspectRunOptions, S as StepOptions, O as ObserveOptions } from './types
|
|
2
|
-
export { E as ErrorInfo, R as RedactionProfile, a as Run, b as RunStatus, c as Step, d as StepMetadata, e as StepStatus, f as StepType,
|
|
3
|
-
export { C as CreateInspectorOptions, I as Inspector, a as InspectorCaptureOptions, b as InspectorObserveOptions, c as InspectorRunOptions, d as InspectorStepOptions, e as createInspector, g as getCurrentCorrelationMetadata, m as maybeInspectRun } from './context-
|
|
1
|
+
import { I as InspectRunOptions, S as StepOptions, O as ObserveOptions } from './types-Bx3mEZ04.js';
|
|
2
|
+
export { E as ErrorInfo, R as RedactionProfile, a as Run, b as RunStatus, c as Step, d as StepMetadata, e as StepStatus, f as StepType, g as TokenMetadata, h as TraceCorrelationMetadata } from './types-Bx3mEZ04.js';
|
|
3
|
+
export { C as CreateInspectorOptions, I as Inspector, a as InspectorCaptureOptions, b as InspectorObserveOptions, c as InspectorRunOptions, d as InspectorStepOptions, e as createInspector, g as getCurrentCorrelationMetadata, m as maybeInspectRun } from './context-DOX2-RjH.js';
|
|
4
4
|
import { a as ObserveOutcomeOptions } from './types-B562HgN_.js';
|
|
5
5
|
import './log-config-OZRfpHED.js';
|
|
6
6
|
import './inspect-event-DRthdZlf.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getCurrentContext, getCurrentDepth, getParentStepId, getTraceSafetyFromContext, runWithStepContext, printStepStart, printStepComplete, printError, printFailedAt, inspectRun } from './chunk-
|
|
2
|
-
export { createInspector, getCurrentCorrelationMetadata, inspectRun, maybeInspectRun } from './chunk-
|
|
3
|
-
import { normalizeObserveOutcomeInput, prepareOutcomeEventForDisk } from './chunk-
|
|
1
|
+
import { getCurrentContext, getCurrentDepth, getParentStepId, getTraceSafetyFromContext, runWithStepContext, printStepStart, printStepComplete, printError, printFailedAt, inspectRun } from './chunk-WGDSM37E.mjs';
|
|
2
|
+
export { createInspector, getCurrentCorrelationMetadata, inspectRun, maybeInspectRun } from './chunk-WGDSM37E.mjs';
|
|
3
|
+
import { normalizeObserveOutcomeInput, prepareOutcomeEventForDisk } from './chunk-R4SSYU6D.mjs';
|
|
4
4
|
import './chunk-BT7CATSD.mjs';
|
|
5
5
|
import { prepareTraceEventForDisk, writeTraceEvent } from './chunk-U25RHRSU.mjs';
|
|
6
6
|
import './chunk-VU6O5QAH.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { P as PersistedInspectEvent } from './persisted-inspect-event-CVZWZldL.cjs';
|
|
2
2
|
export { a as PersistedEventSource, b as PersistedEventSourceType, c as PersistedEventStatus, d as PersistedInspectError, e as PersistedInspectEventV02, f as PersistedInspectEventV10, g as PersistedSchemaVersion, h as PersistedTokenUsage, i as PersistedTraceContext, j as isPersistedInspectEvent, k as isPersistedInspectEventV02, l as isPersistedInspectEventV10 } from './persisted-inspect-event-CVZWZldL.cjs';
|
|
3
|
-
import {
|
|
3
|
+
import { i as TraceEvent } from './types-VzKihKQo.cjs';
|
|
4
4
|
import { c as InspectEvent, a as InspectRunTree } from './inspect-event-DRthdZlf.cjs';
|
|
5
5
|
import './log-config-CFlIJHTf.cjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { P as PersistedInspectEvent } from './persisted-inspect-event-BVucFVrP.js';
|
|
2
2
|
export { a as PersistedEventSource, b as PersistedEventSourceType, c as PersistedEventStatus, d as PersistedInspectError, e as PersistedInspectEventV02, f as PersistedInspectEventV10, g as PersistedSchemaVersion, h as PersistedTokenUsage, i as PersistedTraceContext, j as isPersistedInspectEvent, k as isPersistedInspectEventV02, l as isPersistedInspectEventV10 } from './persisted-inspect-event-BVucFVrP.js';
|
|
3
|
-
import {
|
|
3
|
+
import { i as TraceEvent } from './types-Bx3mEZ04.js';
|
|
4
4
|
import { c as InspectEvent, a as InspectRunTree } from './inspect-event-DRthdZlf.js';
|
|
5
5
|
import './log-config-OZRfpHED.js';
|
|
6
6
|
|
|
@@ -243,4 +243,4 @@ declare function isStepStatus(value: unknown): value is StepStatus;
|
|
|
243
243
|
*/
|
|
244
244
|
declare function isTraceEvent(value: unknown): value is TraceEvent;
|
|
245
245
|
|
|
246
|
-
export { type ActiveStepContext as A, type ErrorInfo as E, type InspectRunOptions as I, type ObserveOptions as O, type RedactionProfile as R, type StepOptions as S, type
|
|
246
|
+
export { type ActiveStepContext as A, type ErrorInfo as E, type InspectRunOptions as I, type ObserveOptions as O, type RedactionProfile as R, type StepOptions as S, type TraceMetadataStatus as T, type Run as a, type RunStatus as b, type Step as c, type StepMetadata as d, type StepStatus as e, type StepType as f, type TokenMetadata as g, type TraceCorrelationMetadata as h, type TraceEvent as i, type ExecutionContext as j, type RunSummary as k, type TraceMetadata as l, type RunCompletedEvent as m, type RunStartedEvent as n, type StepCompletedEvent as o, type StepStartedEvent as p, type TraceEventBase as q, type TraceSchemaVersion as r, isStepStatus as s, isStepType as t, isTraceEvent as u };
|
|
@@ -243,4 +243,4 @@ declare function isStepStatus(value: unknown): value is StepStatus;
|
|
|
243
243
|
*/
|
|
244
244
|
declare function isTraceEvent(value: unknown): value is TraceEvent;
|
|
245
245
|
|
|
246
|
-
export { type ActiveStepContext as A, type ErrorInfo as E, type InspectRunOptions as I, type ObserveOptions as O, type RedactionProfile as R, type StepOptions as S, type
|
|
246
|
+
export { type ActiveStepContext as A, type ErrorInfo as E, type InspectRunOptions as I, type ObserveOptions as O, type RedactionProfile as R, type StepOptions as S, type TraceMetadataStatus as T, type Run as a, type RunStatus as b, type Step as c, type StepMetadata as d, type StepStatus as e, type StepType as f, type TokenMetadata as g, type TraceCorrelationMetadata as h, type TraceEvent as i, type ExecutionContext as j, type RunSummary as k, type TraceMetadata as l, type RunCompletedEvent as m, type RunStartedEvent as n, type StepCompletedEvent as o, type StepStartedEvent as p, type TraceEventBase as q, type TraceSchemaVersion as r, isStepStatus as s, isStepType as t, isTraceEvent as u };
|