agent-inspect 6.9.0 → 6.10.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/BUNDLES.md +31 -9
- package/docs/CI-ARTIFACTS.md +10 -1
- package/docs/CLI.md +11 -2
- package/package.json +1 -1
- package/packages/cli/dist/{chunk-WQ5XMFH2.mjs → chunk-36IJ76LH.mjs} +1756 -149
- package/packages/cli/dist/chunk-36IJ76LH.mjs.map +1 -0
- package/packages/cli/dist/index.cjs +10370 -8774
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +584 -712
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-C4EUHTER.mjs → src-YFN3Q3GP.mjs} +3 -3
- package/packages/cli/dist/{src-C4EUHTER.mjs.map → src-YFN3Q3GP.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs +1703 -12
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.d.cts +334 -3
- package/packages/core/dist/advanced.d.ts +334 -3
- package/packages/core/dist/advanced.mjs +1163 -10
- package/packages/core/dist/advanced.mjs.map +1 -1
- package/packages/core/dist/chunk-F7STQ5JF.mjs +479 -0
- package/packages/core/dist/chunk-F7STQ5JF.mjs.map +1 -0
- package/packages/core/dist/diff.mjs +3 -477
- package/packages/core/dist/diff.mjs.map +1 -1
- package/packages/core/dist/reporters.cjs +25 -0
- package/packages/core/dist/reporters.cjs.map +1 -1
- package/packages/core/dist/reporters.d.cts +16 -2
- package/packages/core/dist/reporters.d.ts +16 -2
- package/packages/core/dist/reporters.mjs +24 -1
- package/packages/core/dist/reporters.mjs.map +1 -1
- package/packages/cli/dist/chunk-WQ5XMFH2.mjs.map +0 -1
|
@@ -751,14 +751,345 @@ declare function bundleRunAssetRelativePath(runId: string, extension: string): s
|
|
|
751
751
|
*/
|
|
752
752
|
declare function assertBundlePathContained(outputDir: string, relativePath: string): string;
|
|
753
753
|
/**
|
|
754
|
-
* Normalizes bundle output path.
|
|
754
|
+
* Normalizes bundle output path.
|
|
755
|
+
* For directory/html modes, strips a trailing `.zip` suffix (folder-first).
|
|
756
|
+
* Pass `preserveZipExtension: true` for `--format zip`.
|
|
755
757
|
*/
|
|
756
|
-
declare function normalizeBundleOutputPath(out: string
|
|
758
|
+
declare function normalizeBundleOutputPath(out: string, options?: {
|
|
759
|
+
preserveZipExtension?: boolean;
|
|
760
|
+
}): string;
|
|
757
761
|
/**
|
|
758
762
|
* Default bundle directory when --out is omitted.
|
|
759
763
|
*/
|
|
760
764
|
declare function defaultBundleOutputPath(runIds: readonly string[]): string;
|
|
761
765
|
|
|
766
|
+
/** Portable Evidence v2 (`evidenceFormatVersion`) — independent of trace schema. */
|
|
767
|
+
type EvidenceFormatVersion = "1.0";
|
|
768
|
+
type EvidenceSafeStatus = "SAFE" | "SAFE WITH WARNINGS" | "UNSAFE" | "UNKNOWN";
|
|
769
|
+
type EvidenceRedactionProfile = "local" | "share" | "strict";
|
|
770
|
+
type EvidenceVerificationPolicy = "development" | "local" | "share" | "strict";
|
|
771
|
+
type EvidenceFileRole = "report" | "redacted-trace" | "checks" | "redaction-report" | "summary" | "other";
|
|
772
|
+
interface EvidenceSourceHash {
|
|
773
|
+
runId: string;
|
|
774
|
+
algorithm: "sha256";
|
|
775
|
+
hash: string;
|
|
776
|
+
}
|
|
777
|
+
interface EvidenceFileEntry {
|
|
778
|
+
path: string;
|
|
779
|
+
sha256: string;
|
|
780
|
+
role?: EvidenceFileRole;
|
|
781
|
+
}
|
|
782
|
+
interface EvidenceManifest {
|
|
783
|
+
evidenceFormatVersion: EvidenceFormatVersion;
|
|
784
|
+
generator: {
|
|
785
|
+
name: string;
|
|
786
|
+
version: string;
|
|
787
|
+
};
|
|
788
|
+
createdAt?: string;
|
|
789
|
+
source: {
|
|
790
|
+
runIds: string[];
|
|
791
|
+
traceSchemaVersions: string[];
|
|
792
|
+
sourceHashes: EvidenceSourceHash[];
|
|
793
|
+
};
|
|
794
|
+
policy: {
|
|
795
|
+
redactionProfile: EvidenceRedactionProfile;
|
|
796
|
+
verificationPolicy: EvidenceVerificationPolicy;
|
|
797
|
+
};
|
|
798
|
+
assessment: {
|
|
799
|
+
status: EvidenceSafeStatus;
|
|
800
|
+
sourceStatus?: EvidenceSafeStatus;
|
|
801
|
+
note?: string;
|
|
802
|
+
};
|
|
803
|
+
files: EvidenceFileEntry[];
|
|
804
|
+
}
|
|
805
|
+
interface EvidencePackagedFile {
|
|
806
|
+
/** Relative POSIX path inside the evidence/bundle directory. */
|
|
807
|
+
path: string;
|
|
808
|
+
/** Exact bytes that will be / were written. */
|
|
809
|
+
content: string | Uint8Array;
|
|
810
|
+
role?: EvidenceFileRole;
|
|
811
|
+
}
|
|
812
|
+
declare const EVIDENCE_FORMAT_VERSION: EvidenceFormatVersion;
|
|
813
|
+
declare const EVIDENCE_ASSESSMENT_NOTE = "Best-effort local safety verification only; not a compliance certification.";
|
|
814
|
+
declare const EVIDENCE_MANIFEST_FILENAME = "evidence.json";
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* SHA-256 hex digest of exact bytes (UTF-8 when `data` is a string).
|
|
818
|
+
*/
|
|
819
|
+
declare function sha256Hex(data: string | Uint8Array): string;
|
|
820
|
+
declare function isSha256Hex(value: string): boolean;
|
|
821
|
+
/**
|
|
822
|
+
* Constant-time-ish equality for hex digests (length-checked; not for secrets).
|
|
823
|
+
*/
|
|
824
|
+
declare function sha256Equals(expected: string, actual: string): boolean;
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Validates a relative evidence/bundle path: no absolute paths, no `..`, POSIX separators.
|
|
828
|
+
* Returns the normalized POSIX relative path.
|
|
829
|
+
*/
|
|
830
|
+
declare function assertEvidenceRelativePath(relativePath: string): string;
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* Deterministic JSON serialization used for evidence manifests (trailing newline).
|
|
834
|
+
*/
|
|
835
|
+
declare function serializeEvidenceManifest(manifest: EvidenceManifest): string;
|
|
836
|
+
declare function inferEvidenceFileRole(relativePath: string): EvidenceFileRole;
|
|
837
|
+
/**
|
|
838
|
+
* Hash packaged file bytes into Evidence `files[]` entries (sorted by path).
|
|
839
|
+
* Rejects `evidence.json` itself (manifest is not self-hashed).
|
|
840
|
+
*/
|
|
841
|
+
declare function buildEvidenceFileEntries(files: readonly EvidencePackagedFile[]): EvidenceFileEntry[];
|
|
842
|
+
declare function buildEvidenceManifest(parts: {
|
|
843
|
+
generatorVersion: string;
|
|
844
|
+
generatorName?: string;
|
|
845
|
+
runIds: readonly string[];
|
|
846
|
+
traceSchemaVersions: readonly string[];
|
|
847
|
+
sourceHashes: readonly EvidenceSourceHash[];
|
|
848
|
+
redactionProfile: EvidenceRedactionProfile;
|
|
849
|
+
verificationPolicy?: EvidenceVerificationPolicy;
|
|
850
|
+
assessmentStatus: EvidenceSafeStatus;
|
|
851
|
+
sourceStatus?: EvidenceSafeStatus;
|
|
852
|
+
files: readonly EvidencePackagedFile[];
|
|
853
|
+
createdAt?: string;
|
|
854
|
+
note?: string;
|
|
855
|
+
}): EvidenceManifest;
|
|
856
|
+
/**
|
|
857
|
+
* Minimal structural validation for a parsed evidence manifest object.
|
|
858
|
+
* Unknown fields are preserved by returning the cast value after checks.
|
|
859
|
+
*/
|
|
860
|
+
declare function validateEvidenceManifest(value: unknown): EvidenceManifest;
|
|
861
|
+
declare function parseEvidenceManifestJson(text: string): EvidenceManifest;
|
|
862
|
+
/**
|
|
863
|
+
* Collect unique `schemaVersion` values from agent-inspect JSONL text.
|
|
864
|
+
*/
|
|
865
|
+
declare function collectTraceSchemaVersions(jsonl: string): string[];
|
|
866
|
+
|
|
867
|
+
declare const EVIDENCE_HTML_FILENAME = "evidence.html";
|
|
868
|
+
/** View ids reserved for later 6.10 chunks; shell renders stubs except summary. */
|
|
869
|
+
declare const EVIDENCE_VIEW_IDS: readonly ["summary", "tree", "timeline", "causal", "tools-llm", "outcomes", "contracts", "circuit", "diff", "safety", "provenance"];
|
|
870
|
+
type EvidenceViewId = (typeof EVIDENCE_VIEW_IDS)[number];
|
|
871
|
+
interface EvidenceHtmlShellInput {
|
|
872
|
+
title?: string;
|
|
873
|
+
runIds: readonly string[];
|
|
874
|
+
assessmentStatus: EvidenceSafeStatus;
|
|
875
|
+
sourceStatus?: EvidenceSafeStatus;
|
|
876
|
+
redactionProfile: string;
|
|
877
|
+
verificationPolicy: string;
|
|
878
|
+
generatorName: string;
|
|
879
|
+
generatorVersion: string;
|
|
880
|
+
createdAt?: string;
|
|
881
|
+
evidenceFormatVersion?: string;
|
|
882
|
+
/** Optional short summary markdown already safe for display (will be escaped). */
|
|
883
|
+
summaryText?: string;
|
|
884
|
+
/** Bounded check counts (no finding payloads / prompts). */
|
|
885
|
+
checkSummary?: {
|
|
886
|
+
aggregateStatus: EvidenceSafeStatus;
|
|
887
|
+
runs: readonly {
|
|
888
|
+
runId: string;
|
|
889
|
+
status: EvidenceSafeStatus;
|
|
890
|
+
sourceStatus?: EvidenceSafeStatus;
|
|
891
|
+
errors: number;
|
|
892
|
+
warnings: number;
|
|
893
|
+
findings: number;
|
|
894
|
+
}[];
|
|
895
|
+
};
|
|
896
|
+
/** Max chars for embedded JSON payload (default 64 KiB). */
|
|
897
|
+
maxEmbeddedJsonChars?: number;
|
|
898
|
+
/**
|
|
899
|
+
* Pre-escaped HTML bodies for views. Missing ids keep the stub panel.
|
|
900
|
+
* Callers must pass only trusted, escaped fragments (use evidence view builders).
|
|
901
|
+
*/
|
|
902
|
+
viewBodies?: Partial<Record<EvidenceViewId, string>>;
|
|
903
|
+
}
|
|
904
|
+
/**
|
|
905
|
+
* Encode JSON for embedding in HTML without breaking out of a script/pre context.
|
|
906
|
+
* Escapes `<` so `</script>` cannot appear in payload text.
|
|
907
|
+
*/
|
|
908
|
+
declare function encodeEmbeddedEvidenceJson(value: unknown): string;
|
|
909
|
+
/**
|
|
910
|
+
* Build a self-contained offline `evidence.html` shell (no external assets/network).
|
|
911
|
+
* View panels beyond Summary are stubs filled in later 6.10 chunks.
|
|
912
|
+
*/
|
|
913
|
+
declare function buildEvidenceHtmlShell(input: EvidenceHtmlShellInput): string;
|
|
914
|
+
/**
|
|
915
|
+
* Convenience: build shell fields from an EvidenceManifest (views still stubbed).
|
|
916
|
+
*/
|
|
917
|
+
declare function buildEvidenceHtmlShellFromManifest(manifest: EvidenceManifest, extras?: Partial<Pick<EvidenceHtmlShellInput, "summaryText" | "checkSummary" | "title" | "viewBodies">>): string;
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
* Execution-tree HTML fragment for the Evidence Tree view (already escaped).
|
|
921
|
+
*/
|
|
922
|
+
declare function buildEvidenceTreeViewHtml(trees: readonly InspectRunTree[]): string;
|
|
923
|
+
/**
|
|
924
|
+
* Timeline / waterfall HTML fragment (escaped; no external assets).
|
|
925
|
+
*/
|
|
926
|
+
declare function buildEvidenceTimelineViewHtml(trees: readonly InspectRunTree[]): string;
|
|
927
|
+
/**
|
|
928
|
+
* First causal failure view: earliest error by timestamp, with parent chain.
|
|
929
|
+
* Does not invent relationships; if no parentId chain exists, shows the error alone.
|
|
930
|
+
*/
|
|
931
|
+
declare function buildEvidenceCausalFailureViewHtml(trees: readonly InspectRunTree[]): string;
|
|
932
|
+
/** Extra CSS for tree / timeline / causal panels (inlined into evidence shell). */
|
|
933
|
+
declare const EVIDENCE_VIEW_CSS: string;
|
|
934
|
+
|
|
935
|
+
interface EvidenceCheckFindingSummary {
|
|
936
|
+
runId: string;
|
|
937
|
+
ruleId: string;
|
|
938
|
+
severity: string;
|
|
939
|
+
message: string;
|
|
940
|
+
category?: string;
|
|
941
|
+
detector?: string;
|
|
942
|
+
confidence?: string;
|
|
943
|
+
action?: string;
|
|
944
|
+
}
|
|
945
|
+
interface EvidenceContractsViewInput {
|
|
946
|
+
aggregateStatus: string;
|
|
947
|
+
runs: readonly {
|
|
948
|
+
runId: string;
|
|
949
|
+
status: string;
|
|
950
|
+
sourceStatus?: string;
|
|
951
|
+
errors: number;
|
|
952
|
+
warnings: number;
|
|
953
|
+
findings: number;
|
|
954
|
+
}[];
|
|
955
|
+
findingSummaries?: readonly EvidenceCheckFindingSummary[];
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* Contracts / checks HTML: aggregate status + bounded finding taxonomy (no evidence payloads).
|
|
959
|
+
*/
|
|
960
|
+
declare function buildEvidenceContractsViewHtml(input: EvidenceContractsViewInput): string;
|
|
961
|
+
/**
|
|
962
|
+
* Observed outcomes view from persisted inspect events (redacted artifact).
|
|
963
|
+
*/
|
|
964
|
+
declare function buildEvidenceOutcomesViewHtml(runs: readonly {
|
|
965
|
+
runId: string;
|
|
966
|
+
events: readonly PersistedInspectEvent[];
|
|
967
|
+
}[]): string;
|
|
968
|
+
/**
|
|
969
|
+
* Diff view: when two event sets are supplied, render a local run diff.
|
|
970
|
+
* Otherwise show an empty-state explaining baseline/candidate is optional.
|
|
971
|
+
*/
|
|
972
|
+
declare function buildEvidenceDiffViewHtml(parts?: {
|
|
973
|
+
leftRunId: string;
|
|
974
|
+
rightRunId: string;
|
|
975
|
+
leftEvents: readonly PersistedInspectEvent[];
|
|
976
|
+
rightEvents: readonly PersistedInspectEvent[];
|
|
977
|
+
}): string;
|
|
978
|
+
|
|
979
|
+
interface EvidenceSafetyViewInput {
|
|
980
|
+
artifactStatus: EvidenceSafeStatus | string;
|
|
981
|
+
sourceStatus?: EvidenceSafeStatus | string;
|
|
982
|
+
redactionProfile: string;
|
|
983
|
+
verificationPolicy: string;
|
|
984
|
+
redaction?: {
|
|
985
|
+
totalFindings: number;
|
|
986
|
+
runs: readonly {
|
|
987
|
+
runId: string;
|
|
988
|
+
findings: number;
|
|
989
|
+
detectors: string[];
|
|
990
|
+
}[];
|
|
991
|
+
};
|
|
992
|
+
findingSummaries?: readonly EvidenceCheckFindingSummary[];
|
|
993
|
+
}
|
|
994
|
+
interface EvidenceProvenanceViewInput {
|
|
995
|
+
generatorName: string;
|
|
996
|
+
generatorVersion: string;
|
|
997
|
+
evidenceFormatVersion: string;
|
|
998
|
+
createdAt?: string;
|
|
999
|
+
runIds: readonly string[];
|
|
1000
|
+
traceSchemaVersions: readonly string[];
|
|
1001
|
+
sourceHashes: readonly EvidenceSourceHash[];
|
|
1002
|
+
packagedFiles: readonly {
|
|
1003
|
+
path: string;
|
|
1004
|
+
role?: string;
|
|
1005
|
+
}[];
|
|
1006
|
+
note?: string;
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Safety / redaction view: artifact vs source status + detector summary (no raw secrets).
|
|
1010
|
+
*/
|
|
1011
|
+
declare function buildEvidenceSafetyViewHtml(input: EvidenceSafetyViewInput): string;
|
|
1012
|
+
/**
|
|
1013
|
+
* Provenance / mapping view: generator, schema versions, source hashes, packaged roles.
|
|
1014
|
+
*/
|
|
1015
|
+
declare function buildEvidenceProvenanceViewHtml(input: EvidenceProvenanceViewInput): string;
|
|
1016
|
+
/**
|
|
1017
|
+
* Tools / LLM metadata view: names, kinds, statuses, durations — no prompts/outputs.
|
|
1018
|
+
*/
|
|
1019
|
+
declare function buildEvidenceToolsLlmViewHtml(trees: readonly InspectRunTree[]): string;
|
|
1020
|
+
/**
|
|
1021
|
+
* Circuit / guardrails placeholder filled with conservative empty state unless findings supplied.
|
|
1022
|
+
*/
|
|
1023
|
+
declare function buildEvidenceCircuitViewHtml(parts?: {
|
|
1024
|
+
findings?: readonly {
|
|
1025
|
+
runId: string;
|
|
1026
|
+
name: string;
|
|
1027
|
+
status: string;
|
|
1028
|
+
detail?: string;
|
|
1029
|
+
}[];
|
|
1030
|
+
}): string;
|
|
1031
|
+
|
|
1032
|
+
interface ZipEntry {
|
|
1033
|
+
path: string;
|
|
1034
|
+
content: string | Uint8Array;
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
* Build a minimal ZIP archive (STORE method) with traversal-safe relative paths.
|
|
1038
|
+
* No external dependencies — suitable for Evidence `--format zip`.
|
|
1039
|
+
*/
|
|
1040
|
+
declare function buildZipArchive(entries: readonly ZipEntry[]): Buffer;
|
|
1041
|
+
|
|
1042
|
+
type EvidenceVerifyStatus = "pass" | "fail";
|
|
1043
|
+
interface EvidenceVerifyIssue {
|
|
1044
|
+
code: "manifest_missing" | "manifest_invalid" | "file_missing" | "file_unexpected" | "hash_mismatch" | "assessment_missing" | "provenance_missing" | "path_unsafe" | "io_error";
|
|
1045
|
+
severity: "error" | "warning";
|
|
1046
|
+
message: string;
|
|
1047
|
+
path?: string;
|
|
1048
|
+
}
|
|
1049
|
+
interface EvidenceVerifyResult {
|
|
1050
|
+
ok: boolean;
|
|
1051
|
+
status: EvidenceVerifyStatus;
|
|
1052
|
+
root: string;
|
|
1053
|
+
manifest?: EvidenceManifest;
|
|
1054
|
+
issues: EvidenceVerifyIssue[];
|
|
1055
|
+
checkedFiles: number;
|
|
1056
|
+
}
|
|
1057
|
+
interface EvidenceVerifyOptions {
|
|
1058
|
+
/** Unexpected files: default fail for share/strict-style verification. */
|
|
1059
|
+
unexpectedFiles?: "fail" | "warn" | "ignore";
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Verify an Evidence v2 directory (contains `evidence.json`).
|
|
1063
|
+
* Does not extract ZIP archives — callers should unpack first when needed.
|
|
1064
|
+
*/
|
|
1065
|
+
declare function verifyEvidenceDirectory(rootPath: string, options?: EvidenceVerifyOptions): Promise<EvidenceVerifyResult>;
|
|
1066
|
+
|
|
1067
|
+
interface EvidenceCiPackageInput {
|
|
1068
|
+
generatorVersion: string;
|
|
1069
|
+
runIds: readonly string[];
|
|
1070
|
+
/** Pre-redaction source bytes keyed by run id (for sourceHashes). */
|
|
1071
|
+
sourceContents: ReadonlyMap<string, string> | Record<string, string>;
|
|
1072
|
+
/** Redacted combined JSONL written as trace.jsonl. */
|
|
1073
|
+
redactedTraceJsonl: string;
|
|
1074
|
+
redactionProfile: "local" | "share" | "strict";
|
|
1075
|
+
assessmentStatus: EvidenceSafeStatus;
|
|
1076
|
+
sourceStatus?: EvidenceSafeStatus;
|
|
1077
|
+
checkResultsJson: string;
|
|
1078
|
+
createdAt?: string;
|
|
1079
|
+
summaryText?: string;
|
|
1080
|
+
}
|
|
1081
|
+
interface EvidenceCiPackageFiles {
|
|
1082
|
+
"evidence.html": string;
|
|
1083
|
+
"evidence.json": string;
|
|
1084
|
+
"check-results.json": string;
|
|
1085
|
+
"trace.jsonl": string;
|
|
1086
|
+
manifest: EvidenceManifest;
|
|
1087
|
+
}
|
|
1088
|
+
/**
|
|
1089
|
+
* Build the four standard CI evidence files (in memory) using Evidence v2 helpers.
|
|
1090
|
+
*/
|
|
1091
|
+
declare function buildEvidenceCiPackage(input: EvidenceCiPackageInput): EvidenceCiPackageFiles;
|
|
1092
|
+
|
|
762
1093
|
type SuiteCaseStatus = "pass" | "fail" | "error" | "skipped";
|
|
763
1094
|
type SuiteDiagnosticCode = "AI_SUITE_CONFIG_INVALID" | "AI_SUITE_CONFIG_LOAD_FAILED" | "AI_SUITE_CASE_TRACE_MISSING" | "AI_SUITE_CASE_CHECK_FAILED" | "AI_SUITE_CASE_EVAL_FAILED" | "AI_SUITE_CASE_OBSERVATION_FAILED" | "AI_SUITE_TRACE_UNREADABLE";
|
|
764
1095
|
interface SuiteDiagnostic {
|
|
@@ -1043,4 +1374,4 @@ declare function renderGateGithubStepSummary(result: GateResult): string;
|
|
|
1043
1374
|
declare function renderGateJUnit(result: GateResult): string;
|
|
1044
1375
|
declare function renderGateReport(result: GateResult, options?: RenderGateReportOptions): string;
|
|
1045
1376
|
|
|
1046
|
-
export { type ActivityEntry, type ActivitySummary, type AnalyzeCohortOptions, type BuildActivitySummaryOptions, type BuildSessionIndexOptions, type BundleCheckResults, type BundleCheckRunResult, type BundleMetadata, type BundlePlaceholderArtifact, type BundleRedactionProfile, type BundleRedactionReport, type BundleRedactionReportRun, type BundleResolveOptions, type BundleResolveResult, type BundleSafeStatus, type BundleSafeStatusMetadata, COHORT_METRIC_IDS, type CohortAggregateMetrics, type CohortAnalysisResult, type CohortMetricComparison, type CohortMetricId, type CohortRunMetrics, type CriticalPathStep, DEFAULT_SUITE_ARTIFACTS_DIR, DEFAULT_SUITE_CONFIG_NAMES, DEFAULT_TRACE_DIR_NAME, type DurationStats, type EnrichSessionSummaryOptions, ErrorInfo, type ExplainFact, type ExplainInference, type ExplainMode, type ExplainOptions, type ExplainResult, FALLBACK_TRACE_DIR, type GateCheckId, type GateCheckResult, type GateExitCode, type GateResult, type GroupSessionCohortsOptions, type HandoffEdge, InspectRunTree, type LoadSuiteConfigOptions, MAX_NAME_LENGTH, MAX_TERMINAL_DEPTH, MAX_TERMINAL_NAME_LENGTH, ObservedOutcome, type ParseTraceJsonlOptions, type ParseTraceJsonlResult, type ParsedDurationFilter, RUNS_DIR_NAME, RedactionProfile, type RenderCohortReportOptions, type RenderGateReportOptions, type RenderSuiteReportOptions, type RenderTimelineOptions, type RenderWhatOptions, type ResolvedRedactionProfile, type ResolvedSuiteCase, type RetryLink, type RunGateOptions, RunStatus, type RunSuiteOptions, RunSummary, type RunTimeline, type RunWhatSummary, SESSION_WORKFLOW_KEYS, SUITE_TEMPLATE_IDS, type SessionCheckSummary, type SessionCohort, type SessionCohortKind, type SessionConfidence, type SessionEdgeSource, type SessionGroup, type SessionIndex, type SessionLastError, type SessionRunRecord, type SessionScopeOptions, type SessionScopeResult, type SessionStatus, type SessionSummary, type SessionWarning, type SessionWorkflowKey, type SessionWorkflowMetadata, StepStatus, StepType, type SuiteArtifactsConfig, type SuiteCaseConfig, type SuiteCaseResult, type SuiteCaseStatus, type SuiteChecksConfig, type SuiteConfig, type SuiteDiagnostic, type SuiteDiagnosticCode, type SuiteEvalConfig, type SuiteRunResult, type SuiteRunSummary, type SuiteTemplateId, TERMINAL_INDENT, type TimelineEntry, type TimelineFocus, type TimelineOptions, TraceCorrelationMetadata, TraceDirectory, type TraceDirectoryOptions, TraceEvent, type TraceFilterOptions, type TraceJsonlFormat, TraceMetadata, TraceMetadataStatus, type TraceSearchOptions, type TraceSearchResult, type TraceSessionCheckResult, type TraceStats, type TraceStatsOptions, type TraceStatsRankedRun, type TraceStatsRankedStep, type ValidateSuiteConfigResult, aggregateBundleSafeStatus, aggregateSessionCheckResults, analyzeCohort, assertBundlePathContained, buildActivitySummary, buildBundleMetadata, buildBundleSummaryMarkdown, buildLocalExplanation, buildPlaceholderArtifact, buildRunSummary, buildRunTimeline, buildRunWhatSummary, buildSessionIndex, buildTraceStats, bundleFailsOnSafety, bundleRunAssetRelativePath, compareCohortAggregates, createRunId, createStepId, defaultBundleOutputPath, defaultSuiteConfigTemplate, deriveSessionStatus, enrichSessionRunRecord, enrichSessionSummary, ensureTraceDir, extractMetadata, extractOutcomesFromPersistedEvents, extractOutcomesFromTraceEvents, extractSessionWorkflowMetadata, filterMetasBySessionScope, filterTraces, formatDuration, formatError, formatTerminalName, formatTimestamp, gateHasThresholds, getDefaultTraceDir, getIndent, getRunIdFromTraceFileName, getSuiteTemplate, getTraceFilePath, groupSessionCohorts, initializeTraceFile, isAgentInspectTrace, listSuiteTemplates, listTraceFiles, loadSessionRunRecords, loadSuiteConfig, loadTraceMetadataList, normalizeBundleOutputPath, normalizeSuiteConfig, parseCohortMetricList, parseDuration, parseDurationFilter, parseGateList, parseGateNumber, parseGroupBySpec, parseTraceJsonl, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readTraceEvents, readTraceFile, renderActivitySummaryHuman, renderCohortReport, renderCohortSummaryMarkdown, renderErrorLine, renderGateGithubStepSummary, renderGateJUnit, renderGateReport, renderGateSummaryMarkdown, renderRunSummary, renderRunWhat, renderStepLine, renderSuiteReport, renderSuiteReportMarkdown, renderTimeline, renderTraceStats, resolveBundleRunIds, resolveRedactionProfile, resolveSuiteCaseTrace, resolveSuiteConfigPath, resolveSuiteTemplate, resolveTraceDir, runGate, runSuite, sanitizeBundleRunId, searchTraces, serializeEvent, sessionKeyForRun, toMetadataSafeStatus, traceMetasToSessionRunRecords, truncateName, unknownTraceFormatMessage, validateEvent, validateSuiteConfig, warn, writeTraceEvent };
|
|
1377
|
+
export { type ActivityEntry, type ActivitySummary, type AnalyzeCohortOptions, type BuildActivitySummaryOptions, type BuildSessionIndexOptions, type BundleCheckResults, type BundleCheckRunResult, type BundleMetadata, type BundlePlaceholderArtifact, type BundleRedactionProfile, type BundleRedactionReport, type BundleRedactionReportRun, type BundleResolveOptions, type BundleResolveResult, type BundleSafeStatus, type BundleSafeStatusMetadata, COHORT_METRIC_IDS, type CohortAggregateMetrics, type CohortAnalysisResult, type CohortMetricComparison, type CohortMetricId, type CohortRunMetrics, type CriticalPathStep, DEFAULT_SUITE_ARTIFACTS_DIR, DEFAULT_SUITE_CONFIG_NAMES, DEFAULT_TRACE_DIR_NAME, type DurationStats, EVIDENCE_ASSESSMENT_NOTE, EVIDENCE_FORMAT_VERSION, EVIDENCE_HTML_FILENAME, EVIDENCE_MANIFEST_FILENAME, EVIDENCE_VIEW_CSS, EVIDENCE_VIEW_IDS, type EnrichSessionSummaryOptions, ErrorInfo, type EvidenceCheckFindingSummary, type EvidenceCiPackageFiles, type EvidenceCiPackageInput, type EvidenceContractsViewInput, type EvidenceFileEntry, type EvidenceFileRole, type EvidenceFormatVersion, type EvidenceHtmlShellInput, type EvidenceManifest, type EvidencePackagedFile, type EvidenceProvenanceViewInput, type EvidenceRedactionProfile, type EvidenceSafeStatus, type EvidenceSafetyViewInput, type EvidenceSourceHash, type EvidenceVerificationPolicy, type EvidenceVerifyIssue, type EvidenceVerifyOptions, type EvidenceVerifyResult, type EvidenceVerifyStatus, type EvidenceViewId, type ExplainFact, type ExplainInference, type ExplainMode, type ExplainOptions, type ExplainResult, FALLBACK_TRACE_DIR, type GateCheckId, type GateCheckResult, type GateExitCode, type GateResult, type GroupSessionCohortsOptions, type HandoffEdge, InspectRunTree, type LoadSuiteConfigOptions, MAX_NAME_LENGTH, MAX_TERMINAL_DEPTH, MAX_TERMINAL_NAME_LENGTH, ObservedOutcome, type ParseTraceJsonlOptions, type ParseTraceJsonlResult, type ParsedDurationFilter, RUNS_DIR_NAME, RedactionProfile, type RenderCohortReportOptions, type RenderGateReportOptions, type RenderSuiteReportOptions, type RenderTimelineOptions, type RenderWhatOptions, type ResolvedRedactionProfile, type ResolvedSuiteCase, type RetryLink, type RunGateOptions, RunStatus, type RunSuiteOptions, RunSummary, type RunTimeline, type RunWhatSummary, SESSION_WORKFLOW_KEYS, SUITE_TEMPLATE_IDS, type SessionCheckSummary, type SessionCohort, type SessionCohortKind, type SessionConfidence, type SessionEdgeSource, type SessionGroup, type SessionIndex, type SessionLastError, type SessionRunRecord, type SessionScopeOptions, type SessionScopeResult, type SessionStatus, type SessionSummary, type SessionWarning, type SessionWorkflowKey, type SessionWorkflowMetadata, StepStatus, StepType, type SuiteArtifactsConfig, type SuiteCaseConfig, type SuiteCaseResult, type SuiteCaseStatus, type SuiteChecksConfig, type SuiteConfig, type SuiteDiagnostic, type SuiteDiagnosticCode, type SuiteEvalConfig, type SuiteRunResult, type SuiteRunSummary, type SuiteTemplateId, TERMINAL_INDENT, type TimelineEntry, type TimelineFocus, type TimelineOptions, TraceCorrelationMetadata, TraceDirectory, type TraceDirectoryOptions, TraceEvent, type TraceFilterOptions, type TraceJsonlFormat, TraceMetadata, TraceMetadataStatus, type TraceSearchOptions, type TraceSearchResult, type TraceSessionCheckResult, type TraceStats, type TraceStatsOptions, type TraceStatsRankedRun, type TraceStatsRankedStep, type ValidateSuiteConfigResult, type ZipEntry, aggregateBundleSafeStatus, aggregateSessionCheckResults, analyzeCohort, assertBundlePathContained, assertEvidenceRelativePath, buildActivitySummary, buildBundleMetadata, buildBundleSummaryMarkdown, buildEvidenceCausalFailureViewHtml, buildEvidenceCiPackage, buildEvidenceCircuitViewHtml, buildEvidenceContractsViewHtml, buildEvidenceDiffViewHtml, buildEvidenceFileEntries, buildEvidenceHtmlShell, buildEvidenceHtmlShellFromManifest, buildEvidenceManifest, buildEvidenceOutcomesViewHtml, buildEvidenceProvenanceViewHtml, buildEvidenceSafetyViewHtml, buildEvidenceTimelineViewHtml, buildEvidenceToolsLlmViewHtml, buildEvidenceTreeViewHtml, buildLocalExplanation, buildPlaceholderArtifact, buildRunSummary, buildRunTimeline, buildRunWhatSummary, buildSessionIndex, buildTraceStats, buildZipArchive, bundleFailsOnSafety, bundleRunAssetRelativePath, collectTraceSchemaVersions, compareCohortAggregates, createRunId, createStepId, defaultBundleOutputPath, defaultSuiteConfigTemplate, deriveSessionStatus, encodeEmbeddedEvidenceJson, enrichSessionRunRecord, enrichSessionSummary, ensureTraceDir, extractMetadata, extractOutcomesFromPersistedEvents, extractOutcomesFromTraceEvents, extractSessionWorkflowMetadata, filterMetasBySessionScope, filterTraces, formatDuration, formatError, formatTerminalName, formatTimestamp, gateHasThresholds, getDefaultTraceDir, getIndent, getRunIdFromTraceFileName, getSuiteTemplate, getTraceFilePath, groupSessionCohorts, inferEvidenceFileRole, initializeTraceFile, isAgentInspectTrace, isSha256Hex, listSuiteTemplates, listTraceFiles, loadSessionRunRecords, loadSuiteConfig, loadTraceMetadataList, normalizeBundleOutputPath, normalizeSuiteConfig, parseCohortMetricList, parseDuration, parseDurationFilter, parseEvidenceManifestJson, parseGateList, parseGateNumber, parseGroupBySpec, parseTraceJsonl, printError, printFailedAt, printRunComplete, printRunStart, printStepComplete, printStepStart, readTraceEvents, readTraceFile, renderActivitySummaryHuman, renderCohortReport, renderCohortSummaryMarkdown, renderErrorLine, renderGateGithubStepSummary, renderGateJUnit, renderGateReport, renderGateSummaryMarkdown, renderRunSummary, renderRunWhat, renderStepLine, renderSuiteReport, renderSuiteReportMarkdown, renderTimeline, renderTraceStats, resolveBundleRunIds, resolveRedactionProfile, resolveSuiteCaseTrace, resolveSuiteConfigPath, resolveSuiteTemplate, resolveTraceDir, runGate, runSuite, sanitizeBundleRunId, searchTraces, serializeEvent, serializeEvidenceManifest, sessionKeyForRun, sha256Equals, sha256Hex, toMetadataSafeStatus, traceMetasToSessionRunRecords, truncateName, unknownTraceFormatMessage, validateEvent, validateEvidenceManifest, validateSuiteConfig, verifyEvidenceDirectory, warn, writeTraceEvent };
|