agent-inspect 6.26.0 → 6.28.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 +12 -0
- package/README.md +1 -1
- package/docs/BUNDLES.md +4 -1
- package/docs/LIMITATIONS.md +1 -1
- package/docs/SAFE-TRACE-SHARING.md +2 -0
- package/docs/TRACE-CONTRACTS.md +21 -3
- package/package.json +1 -1
- package/packages/cli/dist/{chunk-HPR2OJPU.mjs → chunk-JVQ4LTHR.mjs} +4317 -3803
- package/packages/cli/dist/chunk-JVQ4LTHR.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +4541 -4005
- 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-J43ECFHC.mjs → src-M5J5YC5E.mjs} +3 -3
- package/packages/cli/dist/{src-J43ECFHC.mjs.map → src-M5J5YC5E.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +3026 -2501
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.d.cts +172 -16
- package/packages/core/dist/advanced.d.ts +172 -16
- package/packages/core/dist/advanced.mjs +362 -32
- package/packages/core/dist/advanced.mjs.map +1 -1
- package/packages/core/dist/checks.cjs +537 -152
- package/packages/core/dist/checks.cjs.map +1 -1
- package/packages/core/dist/checks.d.cts +9 -414
- package/packages/core/dist/checks.d.ts +9 -414
- package/packages/core/dist/checks.mjs +1 -1
- package/packages/core/dist/{chunk-LHSXRIYU.mjs → chunk-ME4WXYY3.mjs} +3609 -3224
- package/packages/core/dist/chunk-ME4WXYY3.mjs.map +1 -0
- package/packages/core/dist/{context-DOOT9GZ-.d.cts → context-DGMqxFpz.d.cts} +4 -4
- package/packages/core/dist/{context-DOX2-RjH.d.ts → context-DgcvkJ9t.d.ts} +4 -4
- package/packages/core/dist/diff.d.cts +3 -3
- package/packages/core/dist/diff.d.ts +3 -3
- package/packages/core/dist/exporters.d.cts +3 -3
- package/packages/core/dist/exporters.d.ts +3 -3
- package/packages/core/dist/{index-CtK_p-ps.d.ts → index-BOA1AeEU.d.ts} +473 -6
- package/packages/core/dist/{index-D72DPqAF.d.ts → index-BzyNPfLm.d.ts} +2 -2
- package/packages/core/dist/{index-DLLz9sce.d.cts → index-C6bCIbFO.d.cts} +2 -2
- package/packages/core/dist/{index-CR4CCRqP.d.cts → index-DVetZwGG.d.cts} +473 -6
- package/packages/core/dist/index.d.cts +7 -7
- package/packages/core/dist/index.d.ts +7 -7
- package/packages/core/dist/{inspect-event-DRthdZlf.d.cts → inspect-event-CDqjcrG_.d.cts} +1 -1
- package/packages/core/dist/{inspect-event-DRthdZlf.d.ts → inspect-event-CDqjcrG_.d.ts} +1 -1
- package/packages/core/dist/{log-config-CFlIJHTf.d.cts → log-config-DcjV8ZjF.d.cts} +1 -1
- package/packages/core/dist/{log-config-OZRfpHED.d.ts → log-config-N_c5AE09.d.ts} +1 -1
- package/packages/core/dist/logs.d.cts +3 -3
- package/packages/core/dist/logs.d.ts +3 -3
- package/packages/core/dist/{persisted-inspect-event-BVucFVrP.d.ts → persisted-inspect-event-CbaRYpbw.d.ts} +1 -1
- package/packages/core/dist/{persisted-inspect-event-CVZWZldL.d.cts → persisted-inspect-event-DiJ0I_vi.d.cts} +1 -1
- package/packages/core/dist/persisted.d.cts +5 -5
- package/packages/core/dist/persisted.d.ts +5 -5
- package/packages/core/dist/readers.d.cts +3 -3
- package/packages/core/dist/readers.d.ts +3 -3
- package/packages/core/dist/{types-B562HgN_.d.cts → types-BA_IOdg4.d.cts} +1 -1
- package/packages/core/dist/{types-B562HgN_.d.ts → types-BA_IOdg4.d.ts} +1 -1
- package/packages/core/dist/{types-VzKihKQo.d.cts → types-wXuxMUop.d.cts} +2 -2
- package/packages/core/dist/{types-Bx3mEZ04.d.ts → types-xv9bSgOK.d.ts} +2 -2
- package/packages/core/dist/writers.d.cts +2 -2
- package/packages/core/dist/writers.d.ts +2 -2
- package/packages/cli/dist/chunk-HPR2OJPU.mjs.map +0 -1
- package/packages/core/dist/chunk-LHSXRIYU.mjs.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { g as TraceReadResult, h as TraceReadWarning } from './index-C6bCIbFO.cjs';
|
|
2
|
+
import { a as InspectRunTree, c as InspectNode, A as AttributionConfidence } from './inspect-event-CDqjcrG_.cjs';
|
|
3
|
+
import { P as PersistedInspectEvent } from './persisted-inspect-event-DiJ0I_vi.cjs';
|
|
4
|
+
import { a as ObservedOutcomeStatus } from './types-BA_IOdg4.cjs';
|
|
5
|
+
import { j as TraceMetadataStatus } from './types-wXuxMUop.cjs';
|
|
6
6
|
|
|
7
7
|
/** Known session/workflow metadata keys (v2.4 RFC). */
|
|
8
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", "operationId", "attemptId", "attemptNumber", "fallbackOf", "idempotencyKey", "correlationId", "requestId", "decisionId"];
|
|
@@ -216,6 +216,473 @@ declare function projectLogicalEvents(events: readonly PersistedInspectEvent[]):
|
|
|
216
216
|
*/
|
|
217
217
|
declare function resolveCanonicalToolName(event: PersistedInspectEvent): string;
|
|
218
218
|
|
|
219
|
+
/**
|
|
220
|
+
* Explicit actor/run projection for TraceContract evaluation (#320).
|
|
221
|
+
*
|
|
222
|
+
* Selectors use only declared metadata (or explicit event ids). Zero matches
|
|
223
|
+
* and singular-actor ambiguity fail closed. No timestamp or display-name
|
|
224
|
+
* inference.
|
|
225
|
+
*
|
|
226
|
+
* @experimental
|
|
227
|
+
*/
|
|
228
|
+
interface TraceContractScope {
|
|
229
|
+
runId?: string;
|
|
230
|
+
subAgentId?: string;
|
|
231
|
+
groupId?: string;
|
|
232
|
+
workflowStep?: string;
|
|
233
|
+
/** Explicit root event id; evaluation projects to that event and descendants. */
|
|
234
|
+
rootEventId?: string;
|
|
235
|
+
}
|
|
236
|
+
interface ResolvedContractScope {
|
|
237
|
+
runId: string;
|
|
238
|
+
rootEventId?: string;
|
|
239
|
+
matchedSelectors: Record<string, string>;
|
|
240
|
+
evidenceEventCount: number;
|
|
241
|
+
input: TraceCheckInput;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Collect explicit session/workflow metadata for a run from persisted events.
|
|
245
|
+
* Prefers RUN-kind attributes; never invents identity from timestamps.
|
|
246
|
+
*/
|
|
247
|
+
declare function workflowMetadataForRun(events: readonly PersistedInspectEvent[], runId: string): SessionWorkflowMetadata;
|
|
248
|
+
/**
|
|
249
|
+
* Resolve TraceContract `scope` against a check input.
|
|
250
|
+
* Returns diagnostics on zero/ambiguous matches or missing root events.
|
|
251
|
+
*/
|
|
252
|
+
declare function resolveTraceContractScope(input: TraceCheckInput, scope: TraceContractScope | undefined): {
|
|
253
|
+
resolved?: ResolvedContractScope;
|
|
254
|
+
diagnostics: TraceCheckDiagnostic[];
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Declared-versus-enforced control checks for TraceContract (6.23).
|
|
259
|
+
*
|
|
260
|
+
* A stored declaration is not proof of enforcement.
|
|
261
|
+
*
|
|
262
|
+
* @experimental
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
type ControlStage = "declared" | "presented" | "validated" | "enforced" | "observed" | "accepted";
|
|
266
|
+
interface TraceContractControlRules {
|
|
267
|
+
/**
|
|
268
|
+
* Tools declared/presented to the agent (inline). Distinct from `enforcedTools`.
|
|
269
|
+
*/
|
|
270
|
+
declaredTools?: string[];
|
|
271
|
+
/**
|
|
272
|
+
* Tools the harness claims to enforce (inline allowlist).
|
|
273
|
+
*/
|
|
274
|
+
enforcedTools?: string[];
|
|
275
|
+
/**
|
|
276
|
+
* RUN/event attribute holding a string[] of declared tool names.
|
|
277
|
+
* Used when `declaredTools` is omitted.
|
|
278
|
+
*/
|
|
279
|
+
declaredToolsAttribute?: string;
|
|
280
|
+
/**
|
|
281
|
+
* RUN/event attribute holding a string[] of enforced tool names.
|
|
282
|
+
*/
|
|
283
|
+
enforcedToolsAttribute?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Fail when both declared and enforced sets resolve and differ.
|
|
286
|
+
*/
|
|
287
|
+
requireDeclaredMatchesEnforced?: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Fail when any observed finished tool is outside the enforced set.
|
|
290
|
+
*/
|
|
291
|
+
requireObservedWithinEnforced?: boolean;
|
|
292
|
+
/**
|
|
293
|
+
* Fail when any observed finished tool is outside the declared set.
|
|
294
|
+
*/
|
|
295
|
+
requireObservedWithinDeclared?: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* Require observation names for control stages (default `control.<stage>`).
|
|
298
|
+
*/
|
|
299
|
+
requiredStages?: Array<{
|
|
300
|
+
stage: ControlStage;
|
|
301
|
+
/** Observation name; defaults to `control.<stage>`. */
|
|
302
|
+
observation?: string;
|
|
303
|
+
}>;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Bounded safe recovery operation contracts (6.27).
|
|
308
|
+
*
|
|
309
|
+
* Additive `retry.operations[]` rules for read-first recovery oracles.
|
|
310
|
+
* AgentInspect evaluates traces; it does not perform retries.
|
|
311
|
+
*
|
|
312
|
+
* @experimental
|
|
313
|
+
*/
|
|
314
|
+
|
|
315
|
+
/** How same-argument evidence may be compared across attempts. */
|
|
316
|
+
type RecoverySameArgumentsMode = "structured-or-digest";
|
|
317
|
+
/**
|
|
318
|
+
* Side-effect class for conservative write recovery semantics.
|
|
319
|
+
* Read-only tools may recover without write idempotency proof.
|
|
320
|
+
* Write tools treat timeout/unknown completion as fail/unevaluable
|
|
321
|
+
* unless authoritative idempotency evidence is present.
|
|
322
|
+
*/
|
|
323
|
+
type RecoverySideEffectClass = "read" | "write";
|
|
324
|
+
interface TraceContractRecoveryRetryableErrors {
|
|
325
|
+
/** Allowed error codes on failed attempts that precede a retry. */
|
|
326
|
+
codes?: readonly string[];
|
|
327
|
+
}
|
|
328
|
+
interface TraceContractRecoverySuccessfulResultDependency {
|
|
329
|
+
/** Consumer kind that must observe the successful tool result. */
|
|
330
|
+
consumerKind: "LLM";
|
|
331
|
+
/**
|
|
332
|
+
* When true, an LLM event must explicitly reference the successful tool
|
|
333
|
+
* event id (attributes / workflow metadata), not merely follow it in time.
|
|
334
|
+
*/
|
|
335
|
+
requireExplicitReference?: boolean;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Per-tool bounded recovery oracle (additive under `retry.operations`).
|
|
339
|
+
*
|
|
340
|
+
* @experimental Additive in 6.27.
|
|
341
|
+
*/
|
|
342
|
+
interface TraceContractRecoveryOperation {
|
|
343
|
+
tool: string;
|
|
344
|
+
maxAttempts?: number;
|
|
345
|
+
retryableErrors?: TraceContractRecoveryRetryableErrors;
|
|
346
|
+
requireFailureBeforeRetry?: boolean;
|
|
347
|
+
/**
|
|
348
|
+
* When true or `"structured-or-digest"`, retries must share structured
|
|
349
|
+
* arguments or matching digests. Missing evidence fails closed.
|
|
350
|
+
*/
|
|
351
|
+
requireSameArguments?: boolean | RecoverySameArgumentsMode;
|
|
352
|
+
requireTerminalSuccess?: boolean;
|
|
353
|
+
requireRecoveredFailureVisible?: boolean;
|
|
354
|
+
successfulResultDependency?: TraceContractRecoverySuccessfulResultDependency;
|
|
355
|
+
/**
|
|
356
|
+
* Defaults to `"read"`. Write tools apply conservative timeout/unknown rules.
|
|
357
|
+
*/
|
|
358
|
+
sideEffectClass?: RecoverySideEffectClass;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Retry / side-effect safety checks for TraceContract (6.23+; corrected in 6.25.1).
|
|
363
|
+
*
|
|
364
|
+
* Uses explicit attempt identity from session workflow metadata.
|
|
365
|
+
* AgentInspect evaluates; it does not perform retries.
|
|
366
|
+
*
|
|
367
|
+
* @experimental
|
|
368
|
+
*/
|
|
369
|
+
|
|
370
|
+
interface TraceContractRetryRules {
|
|
371
|
+
/**
|
|
372
|
+
* Maximum attempts per `operationId` (or `attemptOf` grouping).
|
|
373
|
+
* Prefers distinct `attemptId` values, else validated contiguous `attemptNumber`s,
|
|
374
|
+
* else finished tool/LLM events in the operation.
|
|
375
|
+
*/
|
|
376
|
+
maxAttempts?: number;
|
|
377
|
+
/**
|
|
378
|
+
* When true, every operation with attempts must include a non-running terminal event.
|
|
379
|
+
*/
|
|
380
|
+
requireTerminalResult?: boolean;
|
|
381
|
+
/**
|
|
382
|
+
* Fail when `fallbackOf` is set without an earlier failure for the referenced operation
|
|
383
|
+
* that chronologically precedes the fallback event.
|
|
384
|
+
*/
|
|
385
|
+
fallbackOnlyAfterFailure?: boolean;
|
|
386
|
+
/**
|
|
387
|
+
* Tool names treated as non-idempotent. A later attempt after an `ok` occurrence fails
|
|
388
|
+
* unless idempotency / no-side-effect evidence is present on the retry.
|
|
389
|
+
*/
|
|
390
|
+
nonIdempotentTools?: string[];
|
|
391
|
+
/**
|
|
392
|
+
* When true, genuine retries (including error→success) require `idempotencyKey`
|
|
393
|
+
* or `attributes.noSideEffect === true` / `sideEffect === false`.
|
|
394
|
+
* A client key alone is not proof of exactly-once mutation.
|
|
395
|
+
*/
|
|
396
|
+
requireIdempotencyEvidenceForRetry?: boolean;
|
|
397
|
+
/**
|
|
398
|
+
* When true, recovered success paths must retain an earlier error attempt in the
|
|
399
|
+
* same operation/retry chain (not merely coexistence of ok+error).
|
|
400
|
+
*/
|
|
401
|
+
requireRecoveredFailureVisible?: boolean;
|
|
402
|
+
/**
|
|
403
|
+
* Per-tool bounded recovery oracles (read-first; write timeout/unknown fails closed).
|
|
404
|
+
*
|
|
405
|
+
* @experimental Additive in 6.27.
|
|
406
|
+
*/
|
|
407
|
+
operations?: readonly TraceContractRecoveryOperation[];
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Resolve an RFC 6901 JSON Pointer against a JSON-like value.
|
|
412
|
+
* Returns `{ found: false }` when the path does not exist.
|
|
413
|
+
*/
|
|
414
|
+
declare function resolveJsonPointer(document: unknown, pointer: string): {
|
|
415
|
+
found: true;
|
|
416
|
+
value: unknown;
|
|
417
|
+
} | {
|
|
418
|
+
found: false;
|
|
419
|
+
};
|
|
420
|
+
type ToolArgumentOperator = "exists" | "type" | "equals" | "oneOf";
|
|
421
|
+
type ToolArgumentOccurrence = "first" | "last" | "any" | "all";
|
|
422
|
+
interface ToolArgumentCheck {
|
|
423
|
+
tool: string;
|
|
424
|
+
path: string;
|
|
425
|
+
operator: ToolArgumentOperator;
|
|
426
|
+
occurrence?: ToolArgumentOccurrence;
|
|
427
|
+
/** Required for `equals`. */
|
|
428
|
+
expected?: unknown;
|
|
429
|
+
/** Required for `oneOf`. */
|
|
430
|
+
oneOf?: readonly unknown[];
|
|
431
|
+
/** Required for `type` (`string` | `number` | `boolean` | `object` | `array` | `null`). */
|
|
432
|
+
type?: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
433
|
+
}
|
|
434
|
+
type ToolArgumentEval = {
|
|
435
|
+
status: "pass";
|
|
436
|
+
} | {
|
|
437
|
+
status: "fail";
|
|
438
|
+
message: string;
|
|
439
|
+
code: string;
|
|
440
|
+
} | {
|
|
441
|
+
status: "unavailable";
|
|
442
|
+
message: string;
|
|
443
|
+
code: "AI_CHECK_TOOL_ARGUMENT_EVIDENCE_UNAVAILABLE";
|
|
444
|
+
};
|
|
445
|
+
/**
|
|
446
|
+
* Extract structured tool-argument evidence from a tool event.
|
|
447
|
+
* Preview-only strings and digests do not count as structured evidence.
|
|
448
|
+
*/
|
|
449
|
+
declare function extractToolArgumentPayload(event: {
|
|
450
|
+
attributes?: Record<string, unknown>;
|
|
451
|
+
inputSummary?: unknown;
|
|
452
|
+
}): {
|
|
453
|
+
present: boolean;
|
|
454
|
+
value: unknown;
|
|
455
|
+
};
|
|
456
|
+
declare function evaluateToolArgumentValue(value: unknown, check: ToolArgumentCheck, evidencePresent: boolean): ToolArgumentEval;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* @experimental Typed trace contract input. Evolves during v6.5.x.
|
|
460
|
+
*/
|
|
461
|
+
interface TraceContractRunRules {
|
|
462
|
+
requireCompleted?: boolean;
|
|
463
|
+
allowedStatuses?: string[];
|
|
464
|
+
maxDurationMs?: number;
|
|
465
|
+
}
|
|
466
|
+
interface TraceContractToolRules {
|
|
467
|
+
/**
|
|
468
|
+
* Unconditional tool presence invariant. Every named tool must appear at least
|
|
469
|
+
* once. Do not use for cache-hit or alternate-path shortcuts — prefer
|
|
470
|
+
* `alternatives.anyOf` or `observations.required` when a legitimate path may
|
|
471
|
+
* skip the tool.
|
|
472
|
+
*
|
|
473
|
+
* @see docs/TRACE-CONTRACTS.md
|
|
474
|
+
*/
|
|
475
|
+
required?: string[];
|
|
476
|
+
/** Alias of `required` (TraceContract v2 normalization). */
|
|
477
|
+
requiredTools?: string[];
|
|
478
|
+
forbidden?: string[];
|
|
479
|
+
/** Alias of `forbidden`. */
|
|
480
|
+
forbiddenTools?: string[];
|
|
481
|
+
allowed?: string[];
|
|
482
|
+
maxCalls?: number;
|
|
483
|
+
/**
|
|
484
|
+
* Required tool order expanded into adjacent pairs.
|
|
485
|
+
*
|
|
486
|
+
* `[A, B, C]` expands to “A before B” and “B before C”, each comparing the
|
|
487
|
+
* selected `requiredOrderMode` to every pair. Unlisted intermediate tools
|
|
488
|
+
* are allowed.
|
|
489
|
+
*
|
|
490
|
+
* TraceContract `requiredOrder` **implies presence**: every listed name is
|
|
491
|
+
* added to the effective required-tool set. Low-level `createToolOrderingRule`
|
|
492
|
+
* alone may still pass vacuously when an endpoint is missing.
|
|
493
|
+
*
|
|
494
|
+
* The default `first-occurrence` mode preserves first-occurrence encounter
|
|
495
|
+
* ordering; overlapping intervals emit a non-failing warning. `happens-before`
|
|
496
|
+
* requires the first before event to finish before the first after event starts.
|
|
497
|
+
* `all-occurrences` applies that causal boundary to every occurrence.
|
|
498
|
+
*
|
|
499
|
+
* @see docs/TRACE-CONTRACTS.md
|
|
500
|
+
* @beta Available through `agent-inspect/checks`. Additive changes may ship
|
|
501
|
+
* in minor releases; breaking changes require a future major.
|
|
502
|
+
*/
|
|
503
|
+
requiredOrder?: string[];
|
|
504
|
+
/**
|
|
505
|
+
* Ordering semantics applied to every adjacent pair in `requiredOrder`.
|
|
506
|
+
* Causal modes fail closed when a required interval boundary is unavailable.
|
|
507
|
+
*
|
|
508
|
+
* @defaultValue `"first-occurrence"`
|
|
509
|
+
* @beta Available through `agent-inspect/checks`.
|
|
510
|
+
*/
|
|
511
|
+
requiredOrderMode?: "first-occurrence" | "happens-before" | "all-occurrences";
|
|
512
|
+
/**
|
|
513
|
+
* Bounded structured tool-argument checks (JSON Pointer + limited operators).
|
|
514
|
+
*
|
|
515
|
+
* Missing structured evidence fails closed as unevaluable (not pass).
|
|
516
|
+
* Findings never embed full actual inputs.
|
|
517
|
+
*
|
|
518
|
+
* @experimental Additive in 6.23.
|
|
519
|
+
*/
|
|
520
|
+
arguments?: ToolArgumentCheck[];
|
|
521
|
+
/**
|
|
522
|
+
* Default occurrence mode for `orderRules` when a rule omits `occurrenceMode`.
|
|
523
|
+
*
|
|
524
|
+
* @experimental Additive in 6.23.
|
|
525
|
+
*/
|
|
526
|
+
defaultOccurrenceMode?: "first-occurrence" | "happens-before" | "all-occurrences";
|
|
527
|
+
/**
|
|
528
|
+
* Mixed per-pair ordering rules (additive alongside `requiredOrder`).
|
|
529
|
+
*
|
|
530
|
+
* @experimental Additive in 6.23.
|
|
531
|
+
*/
|
|
532
|
+
orderRules?: Array<{
|
|
533
|
+
before: string;
|
|
534
|
+
after: string;
|
|
535
|
+
occurrenceMode?: "first-occurrence" | "happens-before" | "all-occurrences";
|
|
536
|
+
requireEndpoints?: boolean;
|
|
537
|
+
}>;
|
|
538
|
+
}
|
|
539
|
+
interface TraceContractLlmRules {
|
|
540
|
+
maxCalls?: number;
|
|
541
|
+
maxTotalTokens?: number;
|
|
542
|
+
allowedModels?: string[];
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Structural provenance requirements for named observed outcomes (#321).
|
|
546
|
+
*
|
|
547
|
+
* These checks prove method/evidence linkage was recorded. They do **not**
|
|
548
|
+
* prove the claim is semantically true, authorized, complete, or externally
|
|
549
|
+
* trusted.
|
|
550
|
+
*
|
|
551
|
+
* @experimental
|
|
552
|
+
*/
|
|
553
|
+
interface TraceContractObservationProvenance {
|
|
554
|
+
/** Require a non-empty method from the bounded ObservedOutcomeMethod vocabulary. */
|
|
555
|
+
method?: boolean;
|
|
556
|
+
/**
|
|
557
|
+
* Require bounded evidence references. Supported shapes:
|
|
558
|
+
* `string` event id, `{ eventId }`, or `{ eventIds: string[] }` (max 16 ids).
|
|
559
|
+
*/
|
|
560
|
+
evidence?: boolean;
|
|
561
|
+
/** When true with evidence, each referenced event id must exist in the same run. */
|
|
562
|
+
sameRunEventReference?: boolean;
|
|
563
|
+
}
|
|
564
|
+
interface TraceContractObservationRules {
|
|
565
|
+
required?: string[];
|
|
566
|
+
failOn?: Array<"failed" | "unknown" | "skipped">;
|
|
567
|
+
/**
|
|
568
|
+
* Structural provenance gates for `required` observation names.
|
|
569
|
+
*
|
|
570
|
+
* @experimental
|
|
571
|
+
*/
|
|
572
|
+
requireProvenance?: TraceContractObservationProvenance;
|
|
573
|
+
}
|
|
574
|
+
/**
|
|
575
|
+
* One deterministic alternate path. Branch contracts are one level only —
|
|
576
|
+
* nested `alternatives` are rejected.
|
|
577
|
+
*
|
|
578
|
+
* @experimental
|
|
579
|
+
*/
|
|
580
|
+
interface TraceContractAlternativeBranch {
|
|
581
|
+
/** Unique branch id within `alternatives.anyOf`. */
|
|
582
|
+
id: string;
|
|
583
|
+
description?: string;
|
|
584
|
+
/** Branch body: run/tools/llm/observations only (no nested alternatives). */
|
|
585
|
+
contract: TraceContractBody;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Bounded alternative valid paths for legitimate shortcuts (GitHub #309).
|
|
589
|
+
*
|
|
590
|
+
* @experimental
|
|
591
|
+
*/
|
|
592
|
+
interface TraceContractAlternatives {
|
|
593
|
+
/**
|
|
594
|
+
* One level of named branches. The overall contract passes when the base
|
|
595
|
+
* rules pass and **at least one** complete branch passes.
|
|
596
|
+
*/
|
|
597
|
+
anyOf: TraceContractAlternativeBranch[];
|
|
598
|
+
}
|
|
599
|
+
/** Contract body without alternatives (base or branch). */
|
|
600
|
+
type TraceContractBody = {
|
|
601
|
+
run?: TraceContractRunRules;
|
|
602
|
+
tools?: TraceContractToolRules;
|
|
603
|
+
llm?: TraceContractLlmRules;
|
|
604
|
+
observations?: TraceContractObservationRules;
|
|
605
|
+
/**
|
|
606
|
+
* Declared-versus-enforced control invariants.
|
|
607
|
+
*
|
|
608
|
+
* @experimental Additive in 6.23.
|
|
609
|
+
*/
|
|
610
|
+
controls?: TraceContractControlRules;
|
|
611
|
+
/**
|
|
612
|
+
* Retry / side-effect safety using explicit attempt identity.
|
|
613
|
+
* Additive `retry.operations[]` recovery oracles land in 6.27.
|
|
614
|
+
*
|
|
615
|
+
* @experimental Additive in 6.23; operations in 6.27.
|
|
616
|
+
*/
|
|
617
|
+
retry?: TraceContractRetryRules;
|
|
618
|
+
};
|
|
619
|
+
interface TraceContractInput extends TraceContractBody {
|
|
620
|
+
/**
|
|
621
|
+
* Optional actor/run projection applied before evaluation (#320).
|
|
622
|
+
*
|
|
623
|
+
* @experimental
|
|
624
|
+
*/
|
|
625
|
+
scope?: TraceContractScope;
|
|
626
|
+
alternatives?: TraceContractAlternatives;
|
|
627
|
+
}
|
|
628
|
+
interface TraceContract extends TraceContractBody {
|
|
629
|
+
/**
|
|
630
|
+
* Optional actor/run projection applied before evaluation (#320).
|
|
631
|
+
*
|
|
632
|
+
* @experimental
|
|
633
|
+
*/
|
|
634
|
+
scope?: TraceContractScope;
|
|
635
|
+
alternatives?: TraceContractAlternatives;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Lint diagnostic for brittle or invalid TraceContract shapes.
|
|
639
|
+
*
|
|
640
|
+
* @experimental
|
|
641
|
+
*/
|
|
642
|
+
interface TraceContractLintDiagnostic {
|
|
643
|
+
code: string;
|
|
644
|
+
severity: "error" | "warning" | "info";
|
|
645
|
+
message: string;
|
|
646
|
+
path?: string;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Define a normalized trace contract object.
|
|
650
|
+
*
|
|
651
|
+
* @experimental
|
|
652
|
+
*/
|
|
653
|
+
declare function defineTraceContract(input: TraceContractInput): TraceContract;
|
|
654
|
+
/**
|
|
655
|
+
* Evaluate a trace contract against an opened trace read result.
|
|
656
|
+
*
|
|
657
|
+
* Base rules always apply. When `alternatives.anyOf` is present, at least one
|
|
658
|
+
* complete branch must also pass.
|
|
659
|
+
*
|
|
660
|
+
* @experimental
|
|
661
|
+
*/
|
|
662
|
+
declare function evaluateTraceContract(input: TraceCheckInput, contract: TraceContract, options?: {
|
|
663
|
+
runId?: string;
|
|
664
|
+
}): TraceCheckResult;
|
|
665
|
+
/**
|
|
666
|
+
* Convenience: evaluate a contract against a TraceReadResult directly.
|
|
667
|
+
*
|
|
668
|
+
* @experimental Additive wrapper over `evaluateTraceContract({ read }, …)`.
|
|
669
|
+
*/
|
|
670
|
+
declare function evaluateTraceContractRead(read: TraceReadResult, contract: TraceContract, options?: {
|
|
671
|
+
runId?: string;
|
|
672
|
+
}): TraceCheckResult;
|
|
673
|
+
/**
|
|
674
|
+
* Lint a TraceContract for invalid or brittle shapes (does not evaluate a trace).
|
|
675
|
+
*
|
|
676
|
+
* @experimental
|
|
677
|
+
*/
|
|
678
|
+
declare function lintTraceContract(contract: TraceContract): TraceContractLintDiagnostic[];
|
|
679
|
+
/**
|
|
680
|
+
* Explain a TraceContract as short human-readable lines (does not evaluate a trace).
|
|
681
|
+
*
|
|
682
|
+
* @experimental
|
|
683
|
+
*/
|
|
684
|
+
declare function explainTraceContract(contract: TraceContract): string[];
|
|
685
|
+
|
|
219
686
|
/**
|
|
220
687
|
* Experimental trace-check finding severity.
|
|
221
688
|
*
|
|
@@ -881,4 +1348,4 @@ declare function createObservedOutcomeRule(options?: ObservedOutcomeRuleOptions)
|
|
|
881
1348
|
*/
|
|
882
1349
|
declare function runTraceChecks(input: TraceCheckInput, options?: RunTraceChecksOptions): TraceCheckResult;
|
|
883
1350
|
|
|
884
|
-
export {
|
|
1351
|
+
export { type TraceContractAlternatives as $, type TraceCheckDiagnostic as A, type BaselineRegressionRuleOptions as B, type ControlStage as C, type DecisionRuleOptions as D, type TraceCheckDiagnosticCode as E, type TraceCheckEvidence as F, type GuardrailRuleOptions as G, type TraceCheckFacts as H, type TraceCheckFinding as I, type TraceCheckFindingStatus as J, type TraceCheckInput as K, type LogicalTraceEvent as L, type MaxStepDurationRuleOptions as M, type TraceCheckResult as N, type ObservedOutcomeRuleOptions as O, type TraceCheckRule as P, type TraceCheckRuleCategory as Q, type RecoverySameArgumentsMode as R, type SafetyFindingCategory as S, type ToolArgumentCheck as T, type TraceCheckRuleExecution as U, type TraceCheckRuleExecutionStatus as V, type TraceCheckSeverity as W, type TraceCheckStatus as X, type TraceCheckSummary as Y, type TraceContract as Z, type TraceContractAlternativeBranch as _, type LogicalProjectionDiagnostic as a, type ActivityEntry as a$, type TraceContractBody as a0, type TraceContractControlRules as a1, type TraceContractInput as a2, type TraceContractLintDiagnostic as a3, type TraceContractLlmRules as a4, type TraceContractObservationProvenance as a5, type TraceContractObservationRules as a6, type TraceContractRecoveryOperation as a7, type TraceContractRecoveryRetryableErrors as a8, type TraceContractRecoverySuccessfulResultDependency as a9, createStructureRelationshipRule as aA, createToolFailureRule as aB, createToolOrderingRule as aC, createToolUsageRule as aD, defineTraceContract as aE, evaluateToolArgumentValue as aF, evaluateTraceContract as aG, evaluateTraceContractRead as aH, explainTraceContract as aI, extractToolArgumentPayload as aJ, lintTraceContract as aK, projectLogicalEvents as aL, resolveCanonicalToolName as aM, resolveJsonPointer as aN, resolveTraceContractScope as aO, runTraceChecks as aP, workflowMetadataForRun as aQ, type SessionWorkflowMetadata as aR, type SessionRunRecord as aS, type EnrichSessionSummaryOptions as aT, type SessionStatus as aU, type SessionSummary as aV, type SessionIndex as aW, type BuildActivitySummaryOptions as aX, type ActivitySummary as aY, type SessionWarning as aZ, type BuildSessionIndexOptions as a_, type TraceContractRetryRules as aa, type TraceContractRunRules as ab, type TraceContractScope as ac, type TraceContractToolRules as ad, type TraceSignalRuleOptions as ae, createBaselineRegressionRule as af, createDecisionRule as ag, createGuardrailRule as ah, createLlmUsageRule as ai, createMaxStepDurationRule as aj, createObservedOutcomeRule as ak, createRequireCompletedRule as al, createRetrievalRule as am, createRunDepthRule as an, createRunDurationRule as ao, createRunEventCountRule as ap, createRunStatusRule as aq, createSafetyOversizedAttributeRule as ar, createSafetyRawContentRule as as, createSafetyRedactionRule as at, createSafetySecretPatternRule as au, createStallDetectionRule as av, createStructureCycleRule as aw, createStructureIncompleteRule as ax, createStructureOrphanRule as ay, createStructureParallelWidthRule as az, type LlmUsageRuleOptions as b, type CriticalPathStep as b0, type HandoffEdge as b1, type RetryLink as b2, SESSION_WORKFLOW_KEYS as b3, type SessionCheckSummary as b4, type SessionConfidence as b5, type SessionEdgeSource as b6, type SessionGroup as b7, type SessionLastError as b8, type SessionWorkflowKey as b9, type RecoverySideEffectClass as c, type RetrievalRuleOptions as d, type RunDepthRuleOptions as e, type RunDurationRuleOptions as f, type RunEventCountRuleOptions as g, type RunStatusRuleOptions as h, type RunTraceChecksOptions as i, type SafetyFindingConfidence as j, type SafetyOversizedAttributeRuleOptions as k, type SafetyRawContentRuleOptions as l, type SafetyRedactionRuleOptions as m, type SafetySecretPattern as n, type SafetySecretPatternRuleOptions as o, type StallDetectionRuleOptions as p, type StructureIncompleteRuleOptions as q, type StructureOrphanRuleOptions as r, type StructureParallelWidthRuleOptions as s, type StructureRelationshipRuleOptions as t, type ToolArgumentOccurrence as u, type ToolArgumentOperator as v, type ToolFailureRuleOptions as w, type ToolOrderingRuleOptions as x, type ToolUsageRuleOptions as y, type TraceCheckContext as z };
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
4
|
-
import {
|
|
5
|
-
import './log-config-
|
|
6
|
-
import './inspect-event-
|
|
7
|
-
import './persisted-inspect-event-
|
|
1
|
+
import { I as InspectRunOptions, S as StepOptions, O as ObserveOptions } from './types-wXuxMUop.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, T as TokenMetadata, g as TraceCorrelationMetadata } from './types-wXuxMUop.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-DGMqxFpz.cjs';
|
|
4
|
+
import { O as ObserveOutcomeOptions } from './types-BA_IOdg4.cjs';
|
|
5
|
+
import './log-config-DcjV8ZjF.cjs';
|
|
6
|
+
import './inspect-event-CDqjcrG_.cjs';
|
|
7
|
+
import './persisted-inspect-event-DiJ0I_vi.cjs';
|
|
8
8
|
import './writers.cjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
4
|
-
import {
|
|
5
|
-
import './log-config-
|
|
6
|
-
import './inspect-event-
|
|
7
|
-
import './persisted-inspect-event-
|
|
1
|
+
import { I as InspectRunOptions, S as StepOptions, O as ObserveOptions } from './types-xv9bSgOK.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, T as TokenMetadata, g as TraceCorrelationMetadata } from './types-xv9bSgOK.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-DgcvkJ9t.js';
|
|
4
|
+
import { O as ObserveOutcomeOptions } from './types-BA_IOdg4.js';
|
|
5
|
+
import './log-config-N_c5AE09.js';
|
|
6
|
+
import './inspect-event-CDqjcrG_.js';
|
|
7
|
+
import './persisted-inspect-event-CbaRYpbw.js';
|
|
8
8
|
import './writers.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -47,4 +47,4 @@ interface InspectRunTree {
|
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export type { AttributionConfidence as A, EventSource as E, InspectKind as I, InspectRunTree as a,
|
|
50
|
+
export type { AttributionConfidence as A, EventSource as E, InspectKind as I, InspectRunTree as a, InspectEvent as b, InspectNode as c };
|
|
@@ -47,4 +47,4 @@ interface InspectRunTree {
|
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export type { AttributionConfidence as A, EventSource as E, InspectKind as I, InspectRunTree as a,
|
|
50
|
+
export type { AttributionConfidence as A, EventSource as E, InspectKind as I, InspectRunTree as a, InspectEvent as b, InspectNode as c };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LogIngestConfig, a as LogEventMapping, R as RedactionRule } from './log-config-
|
|
2
|
-
export { b as RedactionStrategy } from './log-config-
|
|
3
|
-
import {
|
|
1
|
+
import { L as LogIngestConfig, a as LogEventMapping, R as RedactionRule } from './log-config-DcjV8ZjF.cjs';
|
|
2
|
+
export { b as RedactionStrategy } from './log-config-DcjV8ZjF.cjs';
|
|
3
|
+
import { b as InspectEvent, a as InspectRunTree } from './inspect-event-CDqjcrG_.cjs';
|
|
4
4
|
|
|
5
5
|
type ParserWarningCode = "MALFORMED_JSON" | "MISSING_RUN_ID" | "MISSING_EVENT" | "MISSING_TIMESTAMP" | "UNSUPPORTED_LOG4JS_PAYLOAD" | "CONFIG_ERROR" | "UNKNOWN";
|
|
6
6
|
interface ParserWarning {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LogIngestConfig, a as LogEventMapping, R as RedactionRule } from './log-config-
|
|
2
|
-
export { b as RedactionStrategy } from './log-config-
|
|
3
|
-
import {
|
|
1
|
+
import { L as LogIngestConfig, a as LogEventMapping, R as RedactionRule } from './log-config-N_c5AE09.js';
|
|
2
|
+
export { b as RedactionStrategy } from './log-config-N_c5AE09.js';
|
|
3
|
+
import { b as InspectEvent, a as InspectRunTree } from './inspect-event-CDqjcrG_.js';
|
|
4
4
|
|
|
5
5
|
type ParserWarningCode = "MALFORMED_JSON" | "MISSING_RUN_ID" | "MISSING_EVENT" | "MISSING_TIMESTAMP" | "UNSUPPORTED_LOG4JS_PAYLOAD" | "CONFIG_ERROR" | "UNKNOWN";
|
|
6
6
|
interface ParserWarning {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InspectKind, A as AttributionConfidence } from './inspect-event-
|
|
1
|
+
import { I as InspectKind, A as AttributionConfidence } from './inspect-event-CDqjcrG_.js';
|
|
2
2
|
|
|
3
3
|
type PersistedSchemaVersion = "0.2" | "1.0";
|
|
4
4
|
type PersistedEventSourceType = "manual" | "json-log" | "log4js" | "adapter" | "ai-sdk" | "otel";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as InspectKind, A as AttributionConfidence } from './inspect-event-
|
|
1
|
+
import { I as InspectKind, A as AttributionConfidence } from './inspect-event-CDqjcrG_.cjs';
|
|
2
2
|
|
|
3
3
|
type PersistedSchemaVersion = "0.2" | "1.0";
|
|
4
4
|
type PersistedEventSourceType = "manual" | "json-log" | "log4js" | "adapter" | "ai-sdk" | "otel";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as PersistedInspectEvent } from './persisted-inspect-event-
|
|
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-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import './log-config-
|
|
1
|
+
import { P as PersistedInspectEvent } from './persisted-inspect-event-DiJ0I_vi.cjs';
|
|
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-DiJ0I_vi.cjs';
|
|
3
|
+
import { h as TraceEvent } from './types-wXuxMUop.cjs';
|
|
4
|
+
import { b as InspectEvent, a as InspectRunTree } from './inspect-event-CDqjcrG_.cjs';
|
|
5
|
+
import './log-config-DcjV8ZjF.cjs';
|
|
6
6
|
|
|
7
7
|
interface TraceEventToPersistedOptions {
|
|
8
8
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as PersistedInspectEvent } from './persisted-inspect-event-
|
|
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-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import './log-config-
|
|
1
|
+
import { P as PersistedInspectEvent } from './persisted-inspect-event-CbaRYpbw.js';
|
|
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-CbaRYpbw.js';
|
|
3
|
+
import { h as TraceEvent } from './types-xv9bSgOK.js';
|
|
4
|
+
import { b as InspectEvent, a as InspectRunTree } from './inspect-event-CDqjcrG_.js';
|
|
5
|
+
import './log-config-N_c5AE09.js';
|
|
6
6
|
|
|
7
7
|
interface TraceEventToPersistedOptions {
|
|
8
8
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { D as DEFAULT_TRACE_READERS, T as TraceFormatCandidate, a as TraceFormatDetectionResult, b as TraceFormatDetectionStatus, c as TraceInput, d as TraceReadError, e as TraceReadErrorCode, f as TraceReadOptions, g as TraceReadResult, h as TraceReadWarning, i as TraceReadWarningSeverity, j as TraceReader, k as TraceReaderDetectOptions, l as TraceReaderReadOptions, m as agentInspectJsonlReader, n as assertTraceInput, o as detectTraceFormat, p as openInferenceJsonReader, q as openTrace, r as openTraceDirectory, s as openTraceFile, t as openTraceText, u as otlpJsonReader, v as readTrace } from './index-
|
|
1
|
+
export { D as DEFAULT_TRACE_READERS, T as TraceFormatCandidate, a as TraceFormatDetectionResult, b as TraceFormatDetectionStatus, c as TraceInput, d as TraceReadError, e as TraceReadErrorCode, f as TraceReadOptions, g as TraceReadResult, h as TraceReadWarning, i as TraceReadWarningSeverity, j as TraceReader, k as TraceReaderDetectOptions, l as TraceReaderReadOptions, m as agentInspectJsonlReader, n as assertTraceInput, o as detectTraceFormat, p as openInferenceJsonReader, q as openTrace, r as openTraceDirectory, s as openTraceFile, t as openTraceText, u as otlpJsonReader, v as readTrace } from './index-C6bCIbFO.cjs';
|
|
2
2
|
export { P as PROGRAMMATIC_DIAGNOSTIC_SPECS, a as ProgrammaticDiagnosticCode, b as ProgrammaticDiagnosticSpec, f as formatProgrammaticDiagnostic } from './programmatic-gZTWLObB.cjs';
|
|
3
|
-
import './inspect-event-
|
|
4
|
-
import './persisted-inspect-event-
|
|
3
|
+
import './inspect-event-CDqjcrG_.cjs';
|
|
4
|
+
import './persisted-inspect-event-DiJ0I_vi.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Version-pinned reader/exporter mapping ledger (6.22).
|