@xenosystem/agent-sdk 0.8.12
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/LICENSE +15 -0
- package/README.md +511 -0
- package/dist/agents/index.cjs +17 -0
- package/dist/agents/index.d.cts +244 -0
- package/dist/agents/index.d.ts +244 -0
- package/dist/agents/index.js +17 -0
- package/dist/agents/metafile-cjs.json +1 -0
- package/dist/agents/metafile-esm.json +1 -0
- package/dist/artifacts/browser.cjs +1 -0
- package/dist/artifacts/browser.d.cts +8 -0
- package/dist/artifacts/browser.d.ts +8 -0
- package/dist/artifacts/browser.js +1 -0
- package/dist/artifacts/diff-artifact-C2tQZWcs.d.cts +354 -0
- package/dist/artifacts/diff-artifact-C2tQZWcs.d.ts +354 -0
- package/dist/artifacts/index.cjs +10 -0
- package/dist/artifacts/index.d.cts +588 -0
- package/dist/artifacts/index.d.ts +588 -0
- package/dist/artifacts/index.js +10 -0
- package/dist/artifacts/metafile-cjs.json +1 -0
- package/dist/artifacts/metafile-esm.json +1 -0
- package/dist/automation/index.cjs +438 -0
- package/dist/automation/index.d.cts +878 -0
- package/dist/automation/index.d.ts +878 -0
- package/dist/automation/index.js +438 -0
- package/dist/automation/metafile-cjs.json +1 -0
- package/dist/automation/metafile-esm.json +1 -0
- package/dist/control-plane/index.cjs +7 -0
- package/dist/control-plane/index.d.cts +403 -0
- package/dist/control-plane/index.d.ts +403 -0
- package/dist/control-plane/index.js +7 -0
- package/dist/control-plane/metafile-cjs.json +1 -0
- package/dist/control-plane/metafile-esm.json +1 -0
- package/dist/control-room/index.cjs +1 -0
- package/dist/control-room/index.d.cts +216 -0
- package/dist/control-room/index.d.ts +216 -0
- package/dist/control-room/index.js +1 -0
- package/dist/control-room/metafile-cjs.json +1 -0
- package/dist/control-room/metafile-esm.json +1 -0
- package/dist/electron/index.cjs +1476 -0
- package/dist/electron/index.d.cts +1583 -0
- package/dist/electron/index.d.ts +1583 -0
- package/dist/electron/index.js +1476 -0
- package/dist/electron/metafile-cjs.json +1 -0
- package/dist/electron/metafile-esm.json +1 -0
- package/dist/governance/index.cjs +33 -0
- package/dist/governance/index.d.cts +397 -0
- package/dist/governance/index.d.ts +397 -0
- package/dist/governance/index.js +33 -0
- package/dist/governance/metafile-cjs.json +1 -0
- package/dist/governance/metafile-esm.json +1 -0
- package/dist/hooks/index.cjs +9 -0
- package/dist/hooks/index.d.cts +198 -0
- package/dist/hooks/index.d.ts +198 -0
- package/dist/hooks/index.js +9 -0
- package/dist/hooks/metafile-cjs.json +1 -0
- package/dist/hooks/metafile-esm.json +1 -0
- package/dist/hosted/index.cjs +1 -0
- package/dist/hosted/index.d.cts +490 -0
- package/dist/hosted/index.d.ts +490 -0
- package/dist/hosted/index.js +1 -0
- package/dist/hosted/metafile-cjs.json +1 -0
- package/dist/hosted/metafile-esm.json +1 -0
- package/dist/index.cjs +2161 -0
- package/dist/index.d.cts +12259 -0
- package/dist/index.d.ts +12259 -0
- package/dist/index.js +2161 -0
- package/dist/intelligence/index.cjs +10 -0
- package/dist/intelligence/index.d.cts +220 -0
- package/dist/intelligence/index.d.ts +220 -0
- package/dist/intelligence/index.js +10 -0
- package/dist/intelligence/metafile-cjs.json +1 -0
- package/dist/intelligence/metafile-esm.json +1 -0
- package/dist/mcp/index.cjs +28 -0
- package/dist/mcp/index.d.cts +960 -0
- package/dist/mcp/index.d.ts +960 -0
- package/dist/mcp/index.js +28 -0
- package/dist/mcp/metafile-cjs.json +1 -0
- package/dist/mcp/metafile-esm.json +1 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/oracle/index.cjs +1 -0
- package/dist/oracle/index.d.cts +310 -0
- package/dist/oracle/index.d.ts +310 -0
- package/dist/oracle/index.js +1 -0
- package/dist/oracle/metafile-cjs.json +1 -0
- package/dist/oracle/metafile-esm.json +1 -0
- package/dist/providers/index.cjs +11 -0
- package/dist/providers/index.d.cts +462 -0
- package/dist/providers/index.d.ts +462 -0
- package/dist/providers/index.js +11 -0
- package/dist/providers/metafile-cjs.json +1 -0
- package/dist/providers/metafile-esm.json +1 -0
- package/dist/recipes/index.cjs +2 -0
- package/dist/recipes/index.d.cts +86 -0
- package/dist/recipes/index.d.ts +86 -0
- package/dist/recipes/index.js +2 -0
- package/dist/recipes/metafile-cjs.json +1 -0
- package/dist/recipes/metafile-esm.json +1 -0
- package/dist/research/index.cjs +3 -0
- package/dist/research/index.d.cts +285 -0
- package/dist/research/index.d.ts +285 -0
- package/dist/research/index.js +3 -0
- package/dist/research/metafile-cjs.json +1 -0
- package/dist/research/metafile-esm.json +1 -0
- package/dist/session/index.cjs +56 -0
- package/dist/session/index.d.cts +523 -0
- package/dist/session/index.d.ts +523 -0
- package/dist/session/index.js +56 -0
- package/dist/session/metafile-cjs.json +1 -0
- package/dist/session/metafile-esm.json +1 -0
- package/dist/sharing/index.cjs +4 -0
- package/dist/sharing/index.d.cts +272 -0
- package/dist/sharing/index.d.ts +272 -0
- package/dist/sharing/index.js +4 -0
- package/dist/sharing/metafile-cjs.json +1 -0
- package/dist/sharing/metafile-esm.json +1 -0
- package/dist/skills/index.cjs +6 -0
- package/dist/skills/index.d.cts +277 -0
- package/dist/skills/index.d.ts +277 -0
- package/dist/skills/index.js +6 -0
- package/dist/skills/metafile-cjs.json +1 -0
- package/dist/skills/metafile-esm.json +1 -0
- package/dist/soul/index.cjs +32 -0
- package/dist/soul/index.d.cts +138 -0
- package/dist/soul/index.d.ts +138 -0
- package/dist/soul/index.js +32 -0
- package/dist/soul/metafile-cjs.json +1 -0
- package/dist/soul/metafile-esm.json +1 -0
- package/dist/terminal/index.cjs +4 -0
- package/dist/terminal/index.d.cts +55 -0
- package/dist/terminal/index.d.ts +55 -0
- package/dist/terminal/index.js +4 -0
- package/dist/terminal/metafile-cjs.json +1 -0
- package/dist/terminal/metafile-esm.json +1 -0
- package/dist/ui/index.cjs +35 -0
- package/dist/ui/index.d.cts +298 -0
- package/dist/ui/index.d.ts +298 -0
- package/dist/ui/index.js +35 -0
- package/dist/ui/metafile-cjs.json +1 -0
- package/dist/ui/metafile-esm.json +1 -0
- package/dist/utils/index.cjs +23 -0
- package/dist/utils/index.d.cts +245 -0
- package/dist/utils/index.d.ts +245 -0
- package/dist/utils/index.js +23 -0
- package/dist/utils/metafile-cjs.json +1 -0
- package/dist/utils/metafile-esm.json +1 -0
- package/native/mxc/LICENSE.microsoft-mxc-sdk.md +21 -0
- package/native/mxc/README.md +25 -0
- package/native/mxc/bin/arm64/lxc-exec +0 -0
- package/native/mxc/bin/arm64/mxc-exec-mac +0 -0
- package/native/mxc/bin/arm64/wxc-exec.exe +0 -0
- package/native/mxc/bin/arm64/wxc-host-prep.exe +0 -0
- package/native/mxc/bin/x64/lxc-exec +0 -0
- package/native/mxc/bin/x64/wxc-exec.exe +0 -0
- package/native/mxc/bin/x64/wxc-host-prep.exe +0 -0
- package/native/mxc/package.json +58 -0
- package/ownership/CLEAN_ROOM_CONTRIBUTOR_GUIDE.md +63 -0
- package/ownership/audit.mjs +727 -0
- package/ownership/evidence/PROPRIETARY-COMMAND-1/implementation-record.md +77 -0
- package/ownership/evidence/PROPRIETARY-COMMAND-1/provenance-review.md +51 -0
- package/ownership/evidence/PROPRIETARY-MEDIA-1/implementation-record.md +131 -0
- package/ownership/evidence/PROPRIETARY-MEDIA-1/provenance-review.md +50 -0
- package/ownership/evidence/PROPRIETARY-PTY-1/implementation-record.md +86 -0
- package/ownership/evidence/PROPRIETARY-PTY-1/provenance-review.md +52 -0
- package/ownership/evidence/PROPRIETARY-RUNTIME-1/implementation-record.md +68 -0
- package/ownership/evidence/PROPRIETARY-RUNTIME-1/provenance-review.md +32 -0
- package/ownership/evidence/PROPRIETARY-TOOLCHAIN-1/implementation-record.md +53 -0
- package/ownership/evidence/PROPRIETARY-TOOLCHAIN-1/provenance-review.md +32 -0
- package/ownership/evidence/PROPRIETARY-UI-1/implementation-record.md +96 -0
- package/ownership/evidence/PROPRIETARY-UI-1/provenance-review.md +46 -0
- package/ownership/ownership-policy.json +232 -0
- package/ownership/ownership-policy.schema.json +192 -0
- package/ownership/templates/clean-room-implementation-record.md +70 -0
- package/ownership/templates/provenance-review.md +51 -0
- package/package.json +209 -0
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
import { u as XenoArtifactState, X as XenoArtifactEnvelope, q as XenoArtifactReviewEvent, s as XenoArtifactReviewSummary, L as XenoJsonValue, w as XenoContentHash, F as XenoEvidenceGraph, G as XenoEvidenceNode, D as XenoEvidenceEdge, m as XenoArtifactRecord, d as XenoArtifactActor, k as XenoArtifactListQuery, r as XenoArtifactReviewEventInput, b as XENO_ARTIFACT_SCHEMA_VERSION, j as XenoArtifactLifecycleEvent, p as XenoArtifactReviewDecision, f as XenoArtifactAnchor, I as XenoEvidenceReference, h as XenoArtifactIdentity, t as XenoArtifactSensitivity, i as XenoArtifactKind } from "./diff-artifact-C2tQZWcs.js";
|
|
2
|
+
export { P as ParseUnifiedDiffOptions, c as XENO_EVIDENCE_GRAPH_SCHEMA_VERSION, e as XenoArtifactActorKind, g as XenoArtifactContent, l as XenoArtifactProvenance, n as XenoArtifactRelationship, o as XenoArtifactRetention, v as XenoArtifactStorageReference, M as XenoDiffArtifactContext, a as XenoDiffDocument, x as XenoDiffFile, y as XenoDiffFileStatus, z as XenoDiffHunk, A as XenoDiffLine, B as XenoDiffLineKind, C as XenoDiffMode, N as XenoDiffParseError, E as XenoEvidenceEdgeType, H as XenoEvidenceNodeType, J as XenoJsonObject, K as XenoJsonPrimitive, O as parseUnifiedDiff, Q as unifiedDiffToXenoArtifact, R as xenoArtifactToDiffDocument } from "./diff-artifact-C2tQZWcs.js";
|
|
3
|
+
interface XenoArtifactValidationIssue {
|
|
4
|
+
path: string;
|
|
5
|
+
code: string;
|
|
6
|
+
message: string;
|
|
7
|
+
}
|
|
8
|
+
declare class XenoArtifactValidationError extends Error {
|
|
9
|
+
readonly code = "ARTIFACT_INVALID";
|
|
10
|
+
readonly issues: XenoArtifactValidationIssue[];
|
|
11
|
+
constructor(message: string, issues: XenoArtifactValidationIssue[]);
|
|
12
|
+
}
|
|
13
|
+
declare class XenoArtifactStateTransitionError extends Error {
|
|
14
|
+
readonly fromState: XenoArtifactState;
|
|
15
|
+
readonly toState: XenoArtifactState;
|
|
16
|
+
readonly code = "ARTIFACT_STATE_TRANSITION_INVALID";
|
|
17
|
+
constructor(fromState: XenoArtifactState, toState: XenoArtifactState);
|
|
18
|
+
}
|
|
19
|
+
declare function validateXenoArtifact(artifact: XenoArtifactEnvelope): XenoArtifactValidationIssue[];
|
|
20
|
+
declare function assertValidXenoArtifact(artifact: XenoArtifactEnvelope): void;
|
|
21
|
+
declare function canTransitionXenoArtifactState(fromState: XenoArtifactState, toState: XenoArtifactState): boolean;
|
|
22
|
+
declare function assertXenoArtifactStateTransition(fromState: XenoArtifactState, toState: XenoArtifactState): void;
|
|
23
|
+
declare function validateXenoArtifactReviewEvent(event: XenoArtifactReviewEvent, artifact?: XenoArtifactEnvelope): XenoArtifactValidationIssue[];
|
|
24
|
+
declare function summarizeXenoArtifactReview(events: readonly XenoArtifactReviewEvent[]): XenoArtifactReviewSummary;
|
|
25
|
+
declare function sha256ArtifactBytes(content: Uint8Array | string): XenoContentHash;
|
|
26
|
+
declare function canonicalizeArtifactJson(value: XenoJsonValue): string;
|
|
27
|
+
declare function sha256ArtifactJson(value: XenoJsonValue): XenoContentHash;
|
|
28
|
+
declare class XenoEvidenceGraphValidationError extends Error {
|
|
29
|
+
readonly code = "EVIDENCE_GRAPH_INVALID";
|
|
30
|
+
readonly issues: XenoArtifactValidationIssue[];
|
|
31
|
+
constructor(issues: XenoArtifactValidationIssue[]);
|
|
32
|
+
}
|
|
33
|
+
declare function validateXenoEvidenceGraph(graph: XenoEvidenceGraph): XenoArtifactValidationIssue[];
|
|
34
|
+
declare function assertValidXenoEvidenceGraph(graph: XenoEvidenceGraph): void;
|
|
35
|
+
interface XenoEvidenceGraphBuilderOptions {
|
|
36
|
+
graphId: string;
|
|
37
|
+
now?: () => string;
|
|
38
|
+
}
|
|
39
|
+
declare class XenoEvidenceGraphBuilder {
|
|
40
|
+
private readonly now;
|
|
41
|
+
private graph;
|
|
42
|
+
constructor(options: XenoEvidenceGraphBuilderOptions | XenoEvidenceGraph);
|
|
43
|
+
addNode(node: XenoEvidenceNode): this;
|
|
44
|
+
addEdge(edge: XenoEvidenceEdge): this;
|
|
45
|
+
build(): XenoEvidenceGraph;
|
|
46
|
+
private touch;
|
|
47
|
+
}
|
|
48
|
+
type XenoArtifactRepositoryErrorCode = "ARTIFACT_ALREADY_EXISTS" | "ARTIFACT_NOT_FOUND" | "ARTIFACT_CONFLICT" | "ARTIFACT_REVISION_INVALID" | "ARTIFACT_CONTENT_UNCHANGED" | "ARTIFACT_REVIEW_INVALID" | "ARTIFACT_REVIEW_DECISION_REQUIRED" | "ARTIFACT_UNRESOLVED_COMMENTS" | "ARTIFACT_PERSISTENCE_CORRUPT" | "ARTIFACT_PERSISTENCE_LOCKED" | "ARTIFACT_PERSISTENCE_IO";
|
|
49
|
+
declare class XenoArtifactRepositoryError extends Error {
|
|
50
|
+
readonly code: XenoArtifactRepositoryErrorCode;
|
|
51
|
+
readonly detail?: Record<string, string | number | boolean | null> | undefined;
|
|
52
|
+
constructor(code: XenoArtifactRepositoryErrorCode, message: string, detail?: Record<string, string | number | boolean | null> | undefined, options?: ErrorOptions);
|
|
53
|
+
}
|
|
54
|
+
interface XenoArtifactMutationOptions {
|
|
55
|
+
expectedRecordVersion?: number;
|
|
56
|
+
}
|
|
57
|
+
interface XenoArtifactRevisionOptions extends XenoArtifactMutationOptions {
|
|
58
|
+
actor?: XenoArtifactActor;
|
|
59
|
+
reason?: string;
|
|
60
|
+
}
|
|
61
|
+
interface XenoArtifactTransitionRequest extends XenoArtifactMutationOptions {
|
|
62
|
+
artifactId: string;
|
|
63
|
+
revision?: number;
|
|
64
|
+
toState: XenoArtifactState;
|
|
65
|
+
actor: XenoArtifactActor;
|
|
66
|
+
reason?: string;
|
|
67
|
+
reviewEventId?: string;
|
|
68
|
+
}
|
|
69
|
+
interface XenoArtifactAppendReviewRequest extends XenoArtifactMutationOptions {
|
|
70
|
+
event: XenoArtifactReviewEventInput;
|
|
71
|
+
}
|
|
72
|
+
interface XenoArtifactRepository {
|
|
73
|
+
create(artifact: XenoArtifactEnvelope): Promise<XenoArtifactRecord>;
|
|
74
|
+
createRevision(artifact: XenoArtifactEnvelope, options?: XenoArtifactRevisionOptions): Promise<XenoArtifactRecord>;
|
|
75
|
+
get(artifactId: string, revision?: number): Promise<XenoArtifactRecord | undefined>;
|
|
76
|
+
require(artifactId: string, revision?: number): Promise<XenoArtifactRecord>;
|
|
77
|
+
list(query?: XenoArtifactListQuery): Promise<XenoArtifactRecord[]>;
|
|
78
|
+
listRevisions(artifactId: string): Promise<XenoArtifactRecord[]>;
|
|
79
|
+
transition(request: XenoArtifactTransitionRequest): Promise<XenoArtifactRecord>;
|
|
80
|
+
appendReviewEvent(request: XenoArtifactAppendReviewRequest): Promise<XenoArtifactRecord>;
|
|
81
|
+
}
|
|
82
|
+
interface XenoArtifactPersistedRecord {
|
|
83
|
+
artifact: XenoArtifactEnvelope;
|
|
84
|
+
recordVersion: number;
|
|
85
|
+
lifecycleEvents: XenoArtifactLifecycleEvent[];
|
|
86
|
+
reviewEvents: XenoArtifactReviewEvent[];
|
|
87
|
+
}
|
|
88
|
+
interface XenoArtifactRepositoryState {
|
|
89
|
+
schemaVersion: typeof XENO_ARTIFACT_SCHEMA_VERSION;
|
|
90
|
+
records: XenoArtifactPersistedRecord[];
|
|
91
|
+
}
|
|
92
|
+
interface InMemoryXenoArtifactRepositoryOptions {
|
|
93
|
+
now?: () => string;
|
|
94
|
+
idFactory?: (prefix: "artifact_event" | "review_event") => string;
|
|
95
|
+
initialState?: XenoArtifactRepositoryState;
|
|
96
|
+
}
|
|
97
|
+
declare class InMemoryXenoArtifactRepository implements XenoArtifactRepository {
|
|
98
|
+
private readonly records;
|
|
99
|
+
private readonly currentRevisions;
|
|
100
|
+
private readonly now;
|
|
101
|
+
private readonly idFactory;
|
|
102
|
+
private readonly eventIds;
|
|
103
|
+
private idCounter;
|
|
104
|
+
constructor(options?: InMemoryXenoArtifactRepositoryOptions);
|
|
105
|
+
exportState(): XenoArtifactRepositoryState;
|
|
106
|
+
create(artifact: XenoArtifactEnvelope): Promise<XenoArtifactRecord>;
|
|
107
|
+
createRevision(artifact: XenoArtifactEnvelope, options?: XenoArtifactRevisionOptions): Promise<XenoArtifactRecord>;
|
|
108
|
+
get(artifactId: string, revision?: number): Promise<XenoArtifactRecord | undefined>;
|
|
109
|
+
require(artifactId: string, revision?: number): Promise<XenoArtifactRecord>;
|
|
110
|
+
list(query?: XenoArtifactListQuery): Promise<XenoArtifactRecord[]>;
|
|
111
|
+
listRevisions(artifactId: string): Promise<XenoArtifactRecord[]>;
|
|
112
|
+
transition(request: XenoArtifactTransitionRequest): Promise<XenoArtifactRecord>;
|
|
113
|
+
appendReviewEvent(request: XenoArtifactAppendReviewRequest): Promise<XenoArtifactRecord>;
|
|
114
|
+
private getMutable;
|
|
115
|
+
private assertVersion;
|
|
116
|
+
private assertInitialState;
|
|
117
|
+
private assertReviewCommentState;
|
|
118
|
+
private createLifecycleEvent;
|
|
119
|
+
private nextEventId;
|
|
120
|
+
private hydrate;
|
|
121
|
+
}
|
|
122
|
+
declare const XENO_ARTIFACT_FILE_REPOSITORY_SCHEMA_VERSION: 1;
|
|
123
|
+
interface XenoArtifactFileSnapshotPayload {
|
|
124
|
+
schemaVersion: typeof XENO_ARTIFACT_FILE_REPOSITORY_SCHEMA_VERSION;
|
|
125
|
+
generation: number;
|
|
126
|
+
createdAt: string;
|
|
127
|
+
updatedAt: string;
|
|
128
|
+
state: XenoArtifactRepositoryState;
|
|
129
|
+
}
|
|
130
|
+
interface XenoArtifactFileSnapshot extends XenoArtifactFileSnapshotPayload {
|
|
131
|
+
checksum: {
|
|
132
|
+
algorithm: "sha256";
|
|
133
|
+
value: string;
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
interface XenoArtifactFileRecoveryNotice {
|
|
137
|
+
snapshotPath: string;
|
|
138
|
+
backupPath: string;
|
|
139
|
+
reason: string;
|
|
140
|
+
}
|
|
141
|
+
interface FileXenoArtifactRepositoryOptions {
|
|
142
|
+
directory: string;
|
|
143
|
+
snapshotFileName?: string;
|
|
144
|
+
lockTimeoutMs?: number;
|
|
145
|
+
lockRetryMs?: number;
|
|
146
|
+
maxSnapshotBytes?: number;
|
|
147
|
+
now?: () => string;
|
|
148
|
+
onRecovery?: (notice: XenoArtifactFileRecoveryNotice) => void;
|
|
149
|
+
}
|
|
150
|
+
declare class FileXenoArtifactRepository implements XenoArtifactRepository {
|
|
151
|
+
readonly directory: string;
|
|
152
|
+
readonly snapshotPath: string;
|
|
153
|
+
readonly backupPath: string;
|
|
154
|
+
readonly lockPath: string;
|
|
155
|
+
private readonly now;
|
|
156
|
+
private readonly lockTimeoutMs;
|
|
157
|
+
private readonly lockRetryMs;
|
|
158
|
+
private readonly maxSnapshotBytes;
|
|
159
|
+
private readonly onRecovery?;
|
|
160
|
+
private mutationTail;
|
|
161
|
+
constructor(options: FileXenoArtifactRepositoryOptions);
|
|
162
|
+
create(artifact: XenoArtifactEnvelope): Promise<XenoArtifactRecord>;
|
|
163
|
+
createRevision(artifact: XenoArtifactEnvelope, options?: XenoArtifactRevisionOptions): Promise<XenoArtifactRecord>;
|
|
164
|
+
get(artifactId: string, revision?: number): Promise<XenoArtifactRecord | undefined>;
|
|
165
|
+
require(artifactId: string, revision?: number): Promise<XenoArtifactRecord>;
|
|
166
|
+
list(query?: XenoArtifactListQuery): Promise<XenoArtifactRecord[]>;
|
|
167
|
+
listRevisions(artifactId: string): Promise<XenoArtifactRecord[]>;
|
|
168
|
+
transition(request: XenoArtifactTransitionRequest): Promise<XenoArtifactRecord>;
|
|
169
|
+
appendReviewEvent(request: XenoArtifactAppendReviewRequest): Promise<XenoArtifactRecord>;
|
|
170
|
+
inspectSnapshot(): Promise<XenoArtifactFileSnapshot | undefined>;
|
|
171
|
+
private mutate;
|
|
172
|
+
private enqueueMutation;
|
|
173
|
+
private acquireLock;
|
|
174
|
+
private load;
|
|
175
|
+
private persist;
|
|
176
|
+
private readSnapshot;
|
|
177
|
+
}
|
|
178
|
+
interface XenoArtifactReviewServiceOptions {
|
|
179
|
+
repository: XenoArtifactRepository;
|
|
180
|
+
actor: XenoArtifactActor;
|
|
181
|
+
idFactory?: () => string;
|
|
182
|
+
}
|
|
183
|
+
interface XenoArtifactReviewAnchorInput {
|
|
184
|
+
file?: string;
|
|
185
|
+
line?: number;
|
|
186
|
+
hunkId?: string;
|
|
187
|
+
}
|
|
188
|
+
interface AddXenoArtifactCommentRequest extends XenoArtifactReviewAnchorInput {
|
|
189
|
+
artifactId: string;
|
|
190
|
+
revision?: number;
|
|
191
|
+
body: string;
|
|
192
|
+
parentCommentId?: string;
|
|
193
|
+
}
|
|
194
|
+
interface SetXenoArtifactCommentResolutionRequest {
|
|
195
|
+
artifactId: string;
|
|
196
|
+
revision?: number;
|
|
197
|
+
commentId: string;
|
|
198
|
+
resolved: boolean;
|
|
199
|
+
reason?: string;
|
|
200
|
+
}
|
|
201
|
+
interface DecideXenoArtifactRequest extends Omit<XenoArtifactReviewAnchorInput, "line"> {
|
|
202
|
+
artifactId: string;
|
|
203
|
+
revision?: number;
|
|
204
|
+
decision: XenoArtifactReviewDecision;
|
|
205
|
+
rationale?: string;
|
|
206
|
+
}
|
|
207
|
+
declare class XenoArtifactReviewService {
|
|
208
|
+
private readonly repository;
|
|
209
|
+
private readonly actor;
|
|
210
|
+
private readonly idFactory;
|
|
211
|
+
constructor(options: XenoArtifactReviewServiceOptions);
|
|
212
|
+
addComment(request: AddXenoArtifactCommentRequest): Promise<XenoArtifactRecord>;
|
|
213
|
+
setCommentResolution(request: SetXenoArtifactCommentResolutionRequest): Promise<XenoArtifactRecord>;
|
|
214
|
+
decide(request: DecideXenoArtifactRequest): Promise<XenoArtifactRecord>;
|
|
215
|
+
}
|
|
216
|
+
declare function buildXenoArtifactReviewAnchor(record: XenoArtifactRecord, input: XenoArtifactReviewAnchorInput): XenoArtifactAnchor | undefined;
|
|
217
|
+
declare function normalizeRepositoryRelativePath(value: string): string;
|
|
218
|
+
declare const XENO_SPEC_SCHEMA_VERSION: "xeno.spec.v1";
|
|
219
|
+
declare const XENO_SPEC_EXECUTION_SCHEMA_VERSION: "xeno.spec-execution.v1";
|
|
220
|
+
type XenoSpecPriority = "must" | "should" | "could";
|
|
221
|
+
type XenoSpecTaskStatus = "pending" | "in_progress" | "completed" | "blocked" | "skipped";
|
|
222
|
+
type XenoSpecExecutionState = "ready" | "running" | "completed" | "failed" | "cancelled";
|
|
223
|
+
interface XenoSpecAcceptanceCriterion {
|
|
224
|
+
id: string;
|
|
225
|
+
text: string;
|
|
226
|
+
requiredEvidenceKinds?: string[];
|
|
227
|
+
}
|
|
228
|
+
interface XenoSpecRequirement {
|
|
229
|
+
id: string;
|
|
230
|
+
text: string;
|
|
231
|
+
priority: XenoSpecPriority;
|
|
232
|
+
acceptanceCriteria: XenoSpecAcceptanceCriterion[];
|
|
233
|
+
sourceReferences?: XenoEvidenceReference[];
|
|
234
|
+
}
|
|
235
|
+
interface XenoSpecDesignDecision {
|
|
236
|
+
id: string;
|
|
237
|
+
decision: string;
|
|
238
|
+
rationale: string;
|
|
239
|
+
alternatives?: string[];
|
|
240
|
+
requirementIds?: string[];
|
|
241
|
+
}
|
|
242
|
+
interface XenoSpecRisk {
|
|
243
|
+
id: string;
|
|
244
|
+
description: string;
|
|
245
|
+
impact: "low" | "medium" | "high" | "critical";
|
|
246
|
+
mitigation: string;
|
|
247
|
+
owner?: string;
|
|
248
|
+
}
|
|
249
|
+
interface XenoSpecDesign {
|
|
250
|
+
summary: string;
|
|
251
|
+
decisions: XenoSpecDesignDecision[];
|
|
252
|
+
risks: XenoSpecRisk[];
|
|
253
|
+
}
|
|
254
|
+
interface XenoSpecTask {
|
|
255
|
+
id: string;
|
|
256
|
+
title: string;
|
|
257
|
+
description: string;
|
|
258
|
+
dependsOn?: string[];
|
|
259
|
+
requirementIds: string[];
|
|
260
|
+
acceptanceCriterionIds: string[];
|
|
261
|
+
expectedPaths?: string[];
|
|
262
|
+
preferredAgentProfile?: string;
|
|
263
|
+
}
|
|
264
|
+
interface XenoSpecSourceBaseline {
|
|
265
|
+
repositoryId?: string;
|
|
266
|
+
commit?: string;
|
|
267
|
+
workspaceFingerprint?: XenoContentHash;
|
|
268
|
+
}
|
|
269
|
+
interface XenoSpecDocument {
|
|
270
|
+
schemaVersion: typeof XENO_SPEC_SCHEMA_VERSION;
|
|
271
|
+
specId: string;
|
|
272
|
+
revision: number;
|
|
273
|
+
title: string;
|
|
274
|
+
problem: string;
|
|
275
|
+
requirements: XenoSpecRequirement[];
|
|
276
|
+
design: XenoSpecDesign;
|
|
277
|
+
tasks: XenoSpecTask[];
|
|
278
|
+
acceptanceCriteria: XenoSpecAcceptanceCriterion[];
|
|
279
|
+
sourceBaseline?: XenoSpecSourceBaseline;
|
|
280
|
+
createdAt: string;
|
|
281
|
+
updatedAt: string;
|
|
282
|
+
predecessorRevision?: number;
|
|
283
|
+
}
|
|
284
|
+
interface XenoSpecArtifactContext {
|
|
285
|
+
producer: XenoArtifactActor;
|
|
286
|
+
identity?: XenoArtifactIdentity;
|
|
287
|
+
sensitivity?: XenoArtifactSensitivity;
|
|
288
|
+
accessPolicyId?: string;
|
|
289
|
+
createdAt?: string;
|
|
290
|
+
}
|
|
291
|
+
interface XenoSpecArtifactBundle {
|
|
292
|
+
document: XenoSpecDocument;
|
|
293
|
+
plan: XenoArtifactEnvelope;
|
|
294
|
+
requirements: XenoArtifactEnvelope;
|
|
295
|
+
design: XenoArtifactEnvelope;
|
|
296
|
+
taskGraph: XenoArtifactEnvelope;
|
|
297
|
+
}
|
|
298
|
+
interface XenoSpecTaskExecution {
|
|
299
|
+
taskId: string;
|
|
300
|
+
status: XenoSpecTaskStatus;
|
|
301
|
+
ownerAgentId?: string;
|
|
302
|
+
startedAt?: string;
|
|
303
|
+
completedAt?: string;
|
|
304
|
+
evidence: XenoEvidenceReference[];
|
|
305
|
+
acceptanceEvidence: Record<string, XenoEvidenceReference[]>;
|
|
306
|
+
note?: string;
|
|
307
|
+
}
|
|
308
|
+
interface XenoSpecExecutionRecord {
|
|
309
|
+
schemaVersion: typeof XENO_SPEC_EXECUTION_SCHEMA_VERSION;
|
|
310
|
+
executionId: string;
|
|
311
|
+
specId: string;
|
|
312
|
+
specRevision: number;
|
|
313
|
+
planArtifactId: string;
|
|
314
|
+
planHash: XenoContentHash;
|
|
315
|
+
state: XenoSpecExecutionState;
|
|
316
|
+
createdAt: string;
|
|
317
|
+
updatedAt: string;
|
|
318
|
+
startedAt?: string;
|
|
319
|
+
completedAt?: string;
|
|
320
|
+
observedPaths: string[];
|
|
321
|
+
tasks: XenoSpecTaskExecution[];
|
|
322
|
+
}
|
|
323
|
+
interface XenoSpecDriftFinding {
|
|
324
|
+
code: "PLAN_HASH_MISMATCH" | "UNKNOWN_TASK" | "UNKNOWN_PATH" | "MISSING_TASK_EVIDENCE" | "MISSING_ACCEPTANCE_EVIDENCE" | "DEPENDENCY_INCOMPLETE";
|
|
325
|
+
severity: "warning" | "error";
|
|
326
|
+
message: string;
|
|
327
|
+
taskId?: string;
|
|
328
|
+
path?: string;
|
|
329
|
+
criterionId?: string;
|
|
330
|
+
}
|
|
331
|
+
interface XenoSpecDriftReport {
|
|
332
|
+
schemaVersion: "xeno.spec-drift.v1";
|
|
333
|
+
specId: string;
|
|
334
|
+
specRevision: number;
|
|
335
|
+
executionId: string;
|
|
336
|
+
checkedAt: string;
|
|
337
|
+
drifted: boolean;
|
|
338
|
+
findings: XenoSpecDriftFinding[];
|
|
339
|
+
}
|
|
340
|
+
interface XenoSpecLifecycleServiceOptions {
|
|
341
|
+
repository: XenoArtifactRepository;
|
|
342
|
+
now?: () => string;
|
|
343
|
+
idFactory?: () => string;
|
|
344
|
+
}
|
|
345
|
+
declare class XenoSpecValidationError extends Error {
|
|
346
|
+
readonly issues: string[];
|
|
347
|
+
readonly code = "XENO_SPEC_INVALID";
|
|
348
|
+
constructor(issues: string[]);
|
|
349
|
+
}
|
|
350
|
+
declare class XenoSpecLifecycleService {
|
|
351
|
+
private readonly repository;
|
|
352
|
+
private readonly now;
|
|
353
|
+
private readonly idFactory;
|
|
354
|
+
constructor(options: XenoSpecLifecycleServiceOptions);
|
|
355
|
+
create(document: XenoSpecDocument, context: XenoSpecArtifactContext): Promise<XenoSpecArtifactBundle>;
|
|
356
|
+
revise(document: XenoSpecDocument, context: XenoSpecArtifactContext): Promise<XenoSpecArtifactBundle>;
|
|
357
|
+
approve(specId: string, reviewer: XenoArtifactActor, rationale?: string): Promise<XenoArtifactRecord>;
|
|
358
|
+
reject(specId: string, reviewer: XenoArtifactActor, rationale: string): Promise<XenoArtifactRecord>;
|
|
359
|
+
startExecution(specId: string, actor: XenoArtifactActor): Promise<XenoArtifactRecord>;
|
|
360
|
+
updateExecution(executionArtifactId: string, update: (record: XenoSpecExecutionRecord) => XenoSpecExecutionRecord, actor: XenoArtifactActor): Promise<XenoArtifactRecord>;
|
|
361
|
+
}
|
|
362
|
+
declare function xenoSpecArtifactIds(specId: string): {
|
|
363
|
+
plan: string;
|
|
364
|
+
requirements: string;
|
|
365
|
+
design: string;
|
|
366
|
+
taskGraph: string;
|
|
367
|
+
};
|
|
368
|
+
declare function validateXenoSpecDocument(document: XenoSpecDocument): string[];
|
|
369
|
+
declare function assertValidXenoSpecDocument(document: XenoSpecDocument): void;
|
|
370
|
+
declare function xenoSpecToArtifactBundle(document: XenoSpecDocument, context: XenoSpecArtifactContext): XenoSpecArtifactBundle;
|
|
371
|
+
declare function xenoArtifactToSpecDocument(artifact: XenoArtifactEnvelope): XenoSpecDocument;
|
|
372
|
+
declare function xenoSpecExecutionToArtifact(execution: XenoSpecExecutionRecord, context: XenoSpecArtifactContext, revision?: number, predecessorRevision?: number): XenoArtifactEnvelope;
|
|
373
|
+
declare function xenoArtifactToSpecExecution(artifact: XenoArtifactEnvelope): XenoSpecExecutionRecord;
|
|
374
|
+
declare function assertValidXenoSpecExecution(execution: XenoSpecExecutionRecord, document: XenoSpecDocument): void;
|
|
375
|
+
declare function detectXenoSpecDrift(document: XenoSpecDocument, planHash: XenoContentHash, execution: XenoSpecExecutionRecord, actualPlanHash: XenoContentHash, checkedAt?: string): XenoSpecDriftReport;
|
|
376
|
+
declare const XENO_REVIEW_REPORT_SCHEMA_VERSION: "xeno.review-report.v1";
|
|
377
|
+
type XenoReviewDimension = "correctness" | "security" | "performance" | "api" | "tests" | "documentation" | `custom:${string}`;
|
|
378
|
+
type XenoReviewSeverity = "info" | "low" | "medium" | "high" | "critical";
|
|
379
|
+
type XenoReviewFindingState = "verified" | "unverified" | "rejected";
|
|
380
|
+
type XenoReviewVerificationOutcome = "reproduced" | "rejected" | "inconclusive";
|
|
381
|
+
interface XenoReviewEvidence {
|
|
382
|
+
evidenceId: string;
|
|
383
|
+
kind: "source" | "test" | "trace" | "artifact" | "reproduction" | "benchmark" | `custom:${string}`;
|
|
384
|
+
summary: string;
|
|
385
|
+
producerId: string;
|
|
386
|
+
reference?: XenoEvidenceReference;
|
|
387
|
+
anchor?: XenoArtifactAnchor;
|
|
388
|
+
contentHash?: XenoContentHash;
|
|
389
|
+
}
|
|
390
|
+
interface XenoReviewFindingProposal {
|
|
391
|
+
ruleId?: string;
|
|
392
|
+
dimension: XenoReviewDimension;
|
|
393
|
+
title: string;
|
|
394
|
+
summary: string;
|
|
395
|
+
severity: XenoReviewSeverity;
|
|
396
|
+
confidence: number;
|
|
397
|
+
anchors: XenoArtifactAnchor[];
|
|
398
|
+
evidence: XenoReviewEvidence[];
|
|
399
|
+
remediation?: string;
|
|
400
|
+
}
|
|
401
|
+
interface XenoReviewAgentResult {
|
|
402
|
+
reviewerAgentId: string;
|
|
403
|
+
dimension: XenoReviewDimension;
|
|
404
|
+
findings: XenoReviewFindingProposal[];
|
|
405
|
+
completedAt: string;
|
|
406
|
+
}
|
|
407
|
+
interface XenoReviewVerificationResult {
|
|
408
|
+
verifierAgentId: string;
|
|
409
|
+
outcome: XenoReviewVerificationOutcome;
|
|
410
|
+
rationale: string;
|
|
411
|
+
evidence: XenoReviewEvidence[];
|
|
412
|
+
confidence?: number;
|
|
413
|
+
completedAt: string;
|
|
414
|
+
}
|
|
415
|
+
interface XenoReviewFinding {
|
|
416
|
+
findingId: string;
|
|
417
|
+
fingerprint: string;
|
|
418
|
+
ruleIds: string[];
|
|
419
|
+
dimensions: XenoReviewDimension[];
|
|
420
|
+
reviewerAgentIds: string[];
|
|
421
|
+
title: string;
|
|
422
|
+
summary: string;
|
|
423
|
+
severity: XenoReviewSeverity;
|
|
424
|
+
confidence: number;
|
|
425
|
+
state: XenoReviewFindingState;
|
|
426
|
+
verificationBasis: "verifier" | "independent-evidence" | "none";
|
|
427
|
+
anchors: XenoArtifactAnchor[];
|
|
428
|
+
evidence: XenoReviewEvidence[];
|
|
429
|
+
verifications: XenoReviewVerificationResult[];
|
|
430
|
+
remediation?: string;
|
|
431
|
+
duplicateProposalCount: number;
|
|
432
|
+
}
|
|
433
|
+
interface XenoReviewTarget {
|
|
434
|
+
artifactId: string;
|
|
435
|
+
revision: number;
|
|
436
|
+
contentHash: XenoContentHash;
|
|
437
|
+
title: string;
|
|
438
|
+
repositoryId?: string;
|
|
439
|
+
commit?: string;
|
|
440
|
+
anchors?: XenoArtifactAnchor[];
|
|
441
|
+
}
|
|
442
|
+
interface XenoReviewPack {
|
|
443
|
+
schemaVersion: "xeno.review-pack.v1";
|
|
444
|
+
packId: string;
|
|
445
|
+
version: string;
|
|
446
|
+
dimensions: XenoReviewDimension[];
|
|
447
|
+
verifierCount: number;
|
|
448
|
+
minimumVerifierReproductions: number;
|
|
449
|
+
allowIndependentEvidenceVerification: boolean;
|
|
450
|
+
minimumIndependentEvidenceProducers: number;
|
|
451
|
+
maxFindings: number;
|
|
452
|
+
}
|
|
453
|
+
interface XenoReviewReport {
|
|
454
|
+
schemaVersion: typeof XENO_REVIEW_REPORT_SCHEMA_VERSION;
|
|
455
|
+
reportId: string;
|
|
456
|
+
runId: string;
|
|
457
|
+
pack: XenoReviewPack;
|
|
458
|
+
target: XenoReviewTarget;
|
|
459
|
+
startedAt: string;
|
|
460
|
+
completedAt: string;
|
|
461
|
+
reviewers: Array<{
|
|
462
|
+
agentId: string;
|
|
463
|
+
dimension: XenoReviewDimension;
|
|
464
|
+
findingCount: number;
|
|
465
|
+
}>;
|
|
466
|
+
findings: XenoReviewFinding[];
|
|
467
|
+
summary: {
|
|
468
|
+
total: number;
|
|
469
|
+
verified: number;
|
|
470
|
+
unverified: number;
|
|
471
|
+
rejected: number;
|
|
472
|
+
bySeverity: Record<XenoReviewSeverity, number>;
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
interface XenoReviewCoordinatorContext {
|
|
476
|
+
runId: string;
|
|
477
|
+
target: XenoReviewTarget;
|
|
478
|
+
pack: XenoReviewPack;
|
|
479
|
+
}
|
|
480
|
+
type XenoReviewAgentExecutor = (request: XenoReviewCoordinatorContext & {
|
|
481
|
+
dimension: XenoReviewDimension;
|
|
482
|
+
reviewerSlot: number;
|
|
483
|
+
}) => Promise<XenoReviewAgentResult>;
|
|
484
|
+
type XenoReviewVerifierExecutor = (request: XenoReviewCoordinatorContext & {
|
|
485
|
+
finding: XenoReviewFinding;
|
|
486
|
+
verifierSlot: number;
|
|
487
|
+
}) => Promise<XenoReviewVerificationResult>;
|
|
488
|
+
interface XenoMultiAgentReviewCoordinatorOptions {
|
|
489
|
+
reviewer: XenoReviewAgentExecutor;
|
|
490
|
+
verifier?: XenoReviewVerifierExecutor;
|
|
491
|
+
now?: () => string;
|
|
492
|
+
idFactory?: (prefix: "report" | "finding") => string;
|
|
493
|
+
}
|
|
494
|
+
interface XenoReviewArtifactContext {
|
|
495
|
+
producer: XenoArtifactActor;
|
|
496
|
+
identity?: XenoArtifactIdentity;
|
|
497
|
+
sensitivity?: XenoArtifactSensitivity;
|
|
498
|
+
accessPolicyId?: string;
|
|
499
|
+
artifactId?: string;
|
|
500
|
+
createdAt?: string;
|
|
501
|
+
}
|
|
502
|
+
interface XenoGitHubReviewComment {
|
|
503
|
+
findingId: string;
|
|
504
|
+
path: string;
|
|
505
|
+
line?: number;
|
|
506
|
+
body: string;
|
|
507
|
+
severity: XenoReviewSeverity;
|
|
508
|
+
verified: boolean;
|
|
509
|
+
}
|
|
510
|
+
declare class XenoReviewValidationError extends Error {
|
|
511
|
+
readonly issues: string[];
|
|
512
|
+
readonly code = "XENO_REVIEW_INVALID";
|
|
513
|
+
constructor(issues: string[]);
|
|
514
|
+
}
|
|
515
|
+
declare class XenoMultiAgentReviewCoordinator {
|
|
516
|
+
private readonly reviewer;
|
|
517
|
+
private readonly verifier?;
|
|
518
|
+
private readonly now;
|
|
519
|
+
private readonly idFactory;
|
|
520
|
+
constructor(options: XenoMultiAgentReviewCoordinatorOptions);
|
|
521
|
+
run(context: XenoReviewCoordinatorContext): Promise<XenoReviewReport>;
|
|
522
|
+
}
|
|
523
|
+
declare function defaultXenoReviewPack(packId?: string): XenoReviewPack;
|
|
524
|
+
declare function assertValidXenoReviewPack(pack: XenoReviewPack): void;
|
|
525
|
+
declare function assertValidXenoReviewTarget(target: XenoReviewTarget): void;
|
|
526
|
+
declare function assertValidXenoReviewReport(report: XenoReviewReport): void;
|
|
527
|
+
declare function xenoReviewReportToArtifact(report: XenoReviewReport, context: XenoReviewArtifactContext): XenoArtifactEnvelope;
|
|
528
|
+
declare function xenoArtifactToReviewReport(artifact: XenoArtifactEnvelope): XenoReviewReport;
|
|
529
|
+
declare function xenoReviewReportToGitHubComments(report: XenoReviewReport, options?: {
|
|
530
|
+
verifiedOnly?: boolean;
|
|
531
|
+
}): XenoGitHubReviewComment[];
|
|
532
|
+
interface AgentArtifact {
|
|
533
|
+
name: string;
|
|
534
|
+
mimeType?: string;
|
|
535
|
+
content: string;
|
|
536
|
+
}
|
|
537
|
+
interface FileSnapshot {
|
|
538
|
+
path: string;
|
|
539
|
+
exists: boolean;
|
|
540
|
+
size: number;
|
|
541
|
+
mtimeMs: number;
|
|
542
|
+
text?: string;
|
|
543
|
+
binary?: boolean;
|
|
544
|
+
truncated?: boolean;
|
|
545
|
+
}
|
|
546
|
+
interface TurnFileDiff {
|
|
547
|
+
path: string;
|
|
548
|
+
status: "created" | "modified" | "deleted" | "unchanged";
|
|
549
|
+
before?: FileSnapshot;
|
|
550
|
+
after?: FileSnapshot;
|
|
551
|
+
patch?: string;
|
|
552
|
+
}
|
|
553
|
+
interface TurnDiffSummary {
|
|
554
|
+
turnId: string;
|
|
555
|
+
startedAt: string;
|
|
556
|
+
completedAt: string;
|
|
557
|
+
files: TurnFileDiff[];
|
|
558
|
+
}
|
|
559
|
+
interface ToolEvidence {
|
|
560
|
+
id: string;
|
|
561
|
+
kind: "artifact" | "process" | "verification";
|
|
562
|
+
status: "pending" | "verified" | "failed";
|
|
563
|
+
path?: string;
|
|
564
|
+
observedAt: string;
|
|
565
|
+
operationId: string;
|
|
566
|
+
detail?: Record<string, string | number | boolean | null>;
|
|
567
|
+
}
|
|
568
|
+
interface XenoLegacyArtifactContext {
|
|
569
|
+
artifactId?: string;
|
|
570
|
+
revision?: number;
|
|
571
|
+
createdAt?: string;
|
|
572
|
+
producer: XenoArtifactActor;
|
|
573
|
+
identity?: XenoArtifactIdentity;
|
|
574
|
+
state?: XenoArtifactState;
|
|
575
|
+
sensitivity?: XenoArtifactSensitivity;
|
|
576
|
+
accessPolicyId?: string;
|
|
577
|
+
}
|
|
578
|
+
interface XenoLegacyAgentArtifactContext extends XenoLegacyArtifactContext {
|
|
579
|
+
contentEncoding?: "utf8" | "base64";
|
|
580
|
+
kind?: XenoArtifactKind;
|
|
581
|
+
}
|
|
582
|
+
declare function legacyAgentArtifactToXenoArtifact(legacy: AgentArtifact, context: XenoLegacyAgentArtifactContext): XenoArtifactEnvelope;
|
|
583
|
+
declare function xenoArtifactToLegacyAgentArtifact(artifact: XenoArtifactEnvelope): AgentArtifact;
|
|
584
|
+
declare function toolEvidenceToXenoArtifact(evidence: ToolEvidence, context: XenoLegacyArtifactContext): XenoArtifactEnvelope;
|
|
585
|
+
declare function xenoArtifactToToolEvidence(artifact: XenoArtifactEnvelope): ToolEvidence;
|
|
586
|
+
declare function turnDiffSummaryToXenoArtifact(summary: TurnDiffSummary, context: XenoLegacyArtifactContext): XenoArtifactEnvelope;
|
|
587
|
+
declare function xenoArtifactToTurnDiffSummary(artifact: XenoArtifactEnvelope): TurnDiffSummary;
|
|
588
|
+
export { type AddXenoArtifactCommentRequest, type DecideXenoArtifactRequest, FileXenoArtifactRepository, type FileXenoArtifactRepositoryOptions, InMemoryXenoArtifactRepository, type InMemoryXenoArtifactRepositoryOptions, type SetXenoArtifactCommentResolutionRequest, XENO_ARTIFACT_FILE_REPOSITORY_SCHEMA_VERSION, XENO_ARTIFACT_SCHEMA_VERSION, XENO_REVIEW_REPORT_SCHEMA_VERSION, XENO_SPEC_EXECUTION_SCHEMA_VERSION, XENO_SPEC_SCHEMA_VERSION, XenoArtifactActor, XenoArtifactAnchor, type XenoArtifactAppendReviewRequest, XenoArtifactEnvelope, type XenoArtifactFileRecoveryNotice, type XenoArtifactFileSnapshot, XenoArtifactIdentity, XenoArtifactKind, XenoArtifactLifecycleEvent, XenoArtifactListQuery, type XenoArtifactMutationOptions, type XenoArtifactPersistedRecord, XenoArtifactRecord, type XenoArtifactRepository, XenoArtifactRepositoryError, type XenoArtifactRepositoryErrorCode, type XenoArtifactRepositoryState, type XenoArtifactReviewAnchorInput, XenoArtifactReviewDecision, XenoArtifactReviewEvent, XenoArtifactReviewEventInput, XenoArtifactReviewService, type XenoArtifactReviewServiceOptions, XenoArtifactReviewSummary, type XenoArtifactRevisionOptions, XenoArtifactSensitivity, XenoArtifactState, XenoArtifactStateTransitionError, type XenoArtifactTransitionRequest, XenoArtifactValidationError, type XenoArtifactValidationIssue, XenoContentHash, XenoEvidenceEdge, XenoEvidenceGraph, XenoEvidenceGraphBuilder, type XenoEvidenceGraphBuilderOptions, XenoEvidenceGraphValidationError, XenoEvidenceNode, XenoEvidenceReference, type XenoGitHubReviewComment, XenoJsonValue, type XenoLegacyAgentArtifactContext, type XenoLegacyArtifactContext, XenoMultiAgentReviewCoordinator, type XenoMultiAgentReviewCoordinatorOptions, type XenoReviewAgentExecutor, type XenoReviewAgentResult, type XenoReviewArtifactContext, type XenoReviewCoordinatorContext, type XenoReviewDimension, type XenoReviewEvidence, type XenoReviewFinding, type XenoReviewFindingProposal, type XenoReviewFindingState, type XenoReviewPack, type XenoReviewReport, type XenoReviewSeverity, type XenoReviewTarget, XenoReviewValidationError, type XenoReviewVerificationOutcome, type XenoReviewVerificationResult, type XenoReviewVerifierExecutor, type XenoSpecAcceptanceCriterion, type XenoSpecArtifactBundle, type XenoSpecArtifactContext, type XenoSpecDesign, type XenoSpecDesignDecision, type XenoSpecDocument, type XenoSpecDriftFinding, type XenoSpecDriftReport, type XenoSpecExecutionRecord, type XenoSpecExecutionState, XenoSpecLifecycleService, type XenoSpecLifecycleServiceOptions, type XenoSpecPriority, type XenoSpecRequirement, type XenoSpecRisk, type XenoSpecSourceBaseline, type XenoSpecTask, type XenoSpecTaskExecution, type XenoSpecTaskStatus, XenoSpecValidationError, assertValidXenoArtifact, assertValidXenoEvidenceGraph, assertValidXenoReviewPack, assertValidXenoReviewReport, assertValidXenoReviewTarget, assertValidXenoSpecDocument, assertValidXenoSpecExecution, assertXenoArtifactStateTransition, buildXenoArtifactReviewAnchor, canTransitionXenoArtifactState, canonicalizeArtifactJson, defaultXenoReviewPack, detectXenoSpecDrift, legacyAgentArtifactToXenoArtifact, normalizeRepositoryRelativePath, sha256ArtifactBytes, sha256ArtifactJson, summarizeXenoArtifactReview, toolEvidenceToXenoArtifact, turnDiffSummaryToXenoArtifact, validateXenoArtifact, validateXenoArtifactReviewEvent, validateXenoEvidenceGraph, validateXenoSpecDocument, xenoArtifactToLegacyAgentArtifact, xenoArtifactToReviewReport, xenoArtifactToSpecDocument, xenoArtifactToSpecExecution, xenoArtifactToToolEvidence, xenoArtifactToTurnDiffSummary, xenoReviewReportToArtifact, xenoReviewReportToGitHubComments, xenoSpecArtifactIds, xenoSpecExecutionToArtifact, xenoSpecToArtifactBundle };
|