@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,354 @@
|
|
|
1
|
+
declare const XENO_ARTIFACT_SCHEMA_VERSION: 1;
|
|
2
|
+
declare const XENO_EVIDENCE_GRAPH_SCHEMA_VERSION: 1;
|
|
3
|
+
type XenoJsonPrimitive = string | number | boolean | null;
|
|
4
|
+
type XenoJsonValue = XenoJsonPrimitive | XenoJsonObject | XenoJsonValue[];
|
|
5
|
+
interface XenoJsonObject {
|
|
6
|
+
[key: string]: XenoJsonValue;
|
|
7
|
+
}
|
|
8
|
+
type XenoArtifactKind = "plan" | "requirements" | "design" | "task-graph" | "patch" | "diff" | "file" | "document" | "diagram" | "screenshot" | "recording" | "browser-snapshot" | "test-report" | "review-report" | "security-report" | "performance-report" | "release-report" | "sbom" | "provenance" | "attestation" | `custom:${string}`;
|
|
9
|
+
type XenoArtifactState = "draft" | "pending_review" | "approved" | "rejected" | "superseded" | "archived";
|
|
10
|
+
type XenoArtifactSensitivity = "public" | "internal" | "confidential" | "restricted";
|
|
11
|
+
interface XenoContentHash {
|
|
12
|
+
algorithm: "sha256" | `custom:${string}`;
|
|
13
|
+
value: string;
|
|
14
|
+
}
|
|
15
|
+
type XenoArtifactStorageReference = {
|
|
16
|
+
type: "inline";
|
|
17
|
+
text?: string;
|
|
18
|
+
base64?: string;
|
|
19
|
+
} | {
|
|
20
|
+
type: "file";
|
|
21
|
+
path: string;
|
|
22
|
+
} | {
|
|
23
|
+
type: "blob";
|
|
24
|
+
uri: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: "git";
|
|
27
|
+
commit: string;
|
|
28
|
+
path: string;
|
|
29
|
+
repositoryId?: string;
|
|
30
|
+
} | {
|
|
31
|
+
type: "url";
|
|
32
|
+
url: string;
|
|
33
|
+
expiresAt?: string;
|
|
34
|
+
} | {
|
|
35
|
+
type: "external";
|
|
36
|
+
provider: string;
|
|
37
|
+
locator: string;
|
|
38
|
+
};
|
|
39
|
+
interface XenoArtifactContent {
|
|
40
|
+
hash: XenoContentHash;
|
|
41
|
+
sizeBytes: number;
|
|
42
|
+
storage: XenoArtifactStorageReference;
|
|
43
|
+
encoding?: "utf8" | "base64" | "binary" | `custom:${string}`;
|
|
44
|
+
redactedPreview?: string;
|
|
45
|
+
}
|
|
46
|
+
interface XenoArtifactIdentity {
|
|
47
|
+
runId?: string;
|
|
48
|
+
sessionId?: string;
|
|
49
|
+
turnId?: string;
|
|
50
|
+
taskId?: string;
|
|
51
|
+
agentId?: string;
|
|
52
|
+
workspaceId?: string;
|
|
53
|
+
repositoryId?: string;
|
|
54
|
+
}
|
|
55
|
+
type XenoArtifactActorKind = "agent" | "tool" | "user" | "system" | "integration";
|
|
56
|
+
interface XenoArtifactActor {
|
|
57
|
+
kind: XenoArtifactActorKind;
|
|
58
|
+
id: string;
|
|
59
|
+
displayName?: string;
|
|
60
|
+
profileFingerprint?: string;
|
|
61
|
+
}
|
|
62
|
+
interface XenoArtifactProvenance {
|
|
63
|
+
producer: XenoArtifactActor;
|
|
64
|
+
eventId?: string;
|
|
65
|
+
toolCallId?: string;
|
|
66
|
+
operationId?: string;
|
|
67
|
+
executionContractFingerprint?: string;
|
|
68
|
+
capabilityLeaseIds?: string[];
|
|
69
|
+
sourceArtifactIds?: string[];
|
|
70
|
+
attributes?: XenoJsonObject;
|
|
71
|
+
}
|
|
72
|
+
type XenoEvidenceNodeType = "requirement" | "design-decision" | "risk" | "task" | "agent" | "run" | "tool-call" | "edit" | "commit" | "test-case" | "test-run" | "finding" | "approval" | "artifact" | "release" | "claim" | `custom:${string}`;
|
|
73
|
+
type XenoEvidenceEdgeType = "decomposes" | "depends_on" | "implements" | "changes" | "tests" | "verifies" | "finds" | "fixes" | "reviews" | "approves" | "rejects" | "supersedes" | "derived_from" | "produced_by" | "supports_claim" | "contradicts_claim" | "released_as" | `custom:${string}`;
|
|
74
|
+
interface XenoEvidenceReference {
|
|
75
|
+
type: XenoEvidenceNodeType;
|
|
76
|
+
id: string;
|
|
77
|
+
revision?: number;
|
|
78
|
+
}
|
|
79
|
+
interface XenoArtifactRelationship {
|
|
80
|
+
relation: XenoEvidenceEdgeType;
|
|
81
|
+
target: XenoEvidenceReference;
|
|
82
|
+
description?: string;
|
|
83
|
+
attributes?: XenoJsonObject;
|
|
84
|
+
}
|
|
85
|
+
type XenoArtifactAnchor = {
|
|
86
|
+
kind: "file";
|
|
87
|
+
path: string;
|
|
88
|
+
repositoryId?: string;
|
|
89
|
+
commit?: string;
|
|
90
|
+
} | {
|
|
91
|
+
kind: "source-line";
|
|
92
|
+
path: string;
|
|
93
|
+
startLine: number;
|
|
94
|
+
endLine?: number;
|
|
95
|
+
repositoryId?: string;
|
|
96
|
+
commit?: string;
|
|
97
|
+
} | {
|
|
98
|
+
kind: "diff-hunk";
|
|
99
|
+
path: string;
|
|
100
|
+
hunkId: string;
|
|
101
|
+
artifactId?: string;
|
|
102
|
+
revision?: number;
|
|
103
|
+
} | {
|
|
104
|
+
kind: "symbol";
|
|
105
|
+
path: string;
|
|
106
|
+
symbol: string;
|
|
107
|
+
repositoryId?: string;
|
|
108
|
+
commit?: string;
|
|
109
|
+
} | {
|
|
110
|
+
kind: "dom-node";
|
|
111
|
+
pageId: string;
|
|
112
|
+
selector?: string;
|
|
113
|
+
accessibilityId?: string;
|
|
114
|
+
snapshotArtifactId?: string;
|
|
115
|
+
} | {
|
|
116
|
+
kind: "timeline";
|
|
117
|
+
startMs: number;
|
|
118
|
+
endMs?: number;
|
|
119
|
+
recordingArtifactId: string;
|
|
120
|
+
} | {
|
|
121
|
+
kind: "region";
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
width: number;
|
|
125
|
+
height: number;
|
|
126
|
+
mediaArtifactId: string;
|
|
127
|
+
} | {
|
|
128
|
+
kind: "artifact";
|
|
129
|
+
artifactId: string;
|
|
130
|
+
revision?: number;
|
|
131
|
+
} | {
|
|
132
|
+
kind: `custom:${string}`;
|
|
133
|
+
data: XenoJsonObject;
|
|
134
|
+
};
|
|
135
|
+
interface XenoArtifactRetention {
|
|
136
|
+
policyId?: string;
|
|
137
|
+
retainUntil?: string;
|
|
138
|
+
legalHold?: boolean;
|
|
139
|
+
}
|
|
140
|
+
interface XenoArtifactEnvelope {
|
|
141
|
+
schemaVersion: typeof XENO_ARTIFACT_SCHEMA_VERSION;
|
|
142
|
+
artifactId: string;
|
|
143
|
+
revision: number;
|
|
144
|
+
kind: XenoArtifactKind;
|
|
145
|
+
title: string;
|
|
146
|
+
description?: string;
|
|
147
|
+
state: XenoArtifactState;
|
|
148
|
+
createdAt: string;
|
|
149
|
+
updatedAt?: string;
|
|
150
|
+
mediaType: string;
|
|
151
|
+
sensitivity: XenoArtifactSensitivity;
|
|
152
|
+
identity?: XenoArtifactIdentity;
|
|
153
|
+
content: XenoArtifactContent;
|
|
154
|
+
provenance: XenoArtifactProvenance;
|
|
155
|
+
relationships?: XenoArtifactRelationship[];
|
|
156
|
+
anchors?: XenoArtifactAnchor[];
|
|
157
|
+
predecessorRevision?: number;
|
|
158
|
+
accessPolicyId?: string;
|
|
159
|
+
retention?: XenoArtifactRetention;
|
|
160
|
+
extensions?: Record<string, XenoJsonValue>;
|
|
161
|
+
}
|
|
162
|
+
interface XenoArtifactLifecycleEvent {
|
|
163
|
+
schemaVersion: typeof XENO_ARTIFACT_SCHEMA_VERSION;
|
|
164
|
+
eventId: string;
|
|
165
|
+
artifactId: string;
|
|
166
|
+
revision: number;
|
|
167
|
+
sequence: number;
|
|
168
|
+
recordedAt: string;
|
|
169
|
+
actor: XenoArtifactActor;
|
|
170
|
+
fromState: XenoArtifactState | null;
|
|
171
|
+
toState: XenoArtifactState;
|
|
172
|
+
reason?: string;
|
|
173
|
+
reviewEventId?: string;
|
|
174
|
+
}
|
|
175
|
+
type XenoArtifactReviewDecision = "approved" | "rejected" | "changes_requested";
|
|
176
|
+
interface XenoArtifactReviewEventBase {
|
|
177
|
+
schemaVersion: typeof XENO_ARTIFACT_SCHEMA_VERSION;
|
|
178
|
+
eventId: string;
|
|
179
|
+
artifactId: string;
|
|
180
|
+
artifactRevision: number;
|
|
181
|
+
artifactHash: XenoContentHash;
|
|
182
|
+
sequence: number;
|
|
183
|
+
recordedAt: string;
|
|
184
|
+
actor: XenoArtifactActor;
|
|
185
|
+
}
|
|
186
|
+
type XenoArtifactReviewEvent = (XenoArtifactReviewEventBase & {
|
|
187
|
+
type: "review-requested";
|
|
188
|
+
reviewerIds?: string[];
|
|
189
|
+
message?: string;
|
|
190
|
+
}) | (XenoArtifactReviewEventBase & {
|
|
191
|
+
type: "comment-added";
|
|
192
|
+
commentId: string;
|
|
193
|
+
body: string;
|
|
194
|
+
anchor?: XenoArtifactAnchor;
|
|
195
|
+
parentCommentId?: string;
|
|
196
|
+
}) | (XenoArtifactReviewEventBase & {
|
|
197
|
+
type: "comment-resolved" | "comment-reopened";
|
|
198
|
+
commentId: string;
|
|
199
|
+
reason?: string;
|
|
200
|
+
}) | (XenoArtifactReviewEventBase & {
|
|
201
|
+
type: "decision-recorded";
|
|
202
|
+
decision: XenoArtifactReviewDecision;
|
|
203
|
+
rationale?: string;
|
|
204
|
+
scope?: XenoArtifactAnchor;
|
|
205
|
+
}) | (XenoArtifactReviewEventBase & {
|
|
206
|
+
type: "review-withdrawn";
|
|
207
|
+
reason?: string;
|
|
208
|
+
});
|
|
209
|
+
type XenoArtifactReviewEventInput = Omit<Extract<XenoArtifactReviewEvent, {
|
|
210
|
+
type: "review-requested";
|
|
211
|
+
}>, "schemaVersion" | "eventId" | "sequence" | "recordedAt"> | Omit<Extract<XenoArtifactReviewEvent, {
|
|
212
|
+
type: "comment-added";
|
|
213
|
+
}>, "schemaVersion" | "eventId" | "sequence" | "recordedAt"> | Omit<Extract<XenoArtifactReviewEvent, {
|
|
214
|
+
type: "comment-resolved" | "comment-reopened";
|
|
215
|
+
}>, "schemaVersion" | "eventId" | "sequence" | "recordedAt"> | Omit<Extract<XenoArtifactReviewEvent, {
|
|
216
|
+
type: "decision-recorded";
|
|
217
|
+
}>, "schemaVersion" | "eventId" | "sequence" | "recordedAt"> | Omit<Extract<XenoArtifactReviewEvent, {
|
|
218
|
+
type: "review-withdrawn";
|
|
219
|
+
}>, "schemaVersion" | "eventId" | "sequence" | "recordedAt">;
|
|
220
|
+
interface XenoArtifactReviewSummary {
|
|
221
|
+
status: "not_requested" | "pending" | "approved" | "rejected" | "changes_requested" | "withdrawn";
|
|
222
|
+
totalComments: number;
|
|
223
|
+
unresolvedComments: number;
|
|
224
|
+
latestDecision?: XenoArtifactReviewDecision;
|
|
225
|
+
latestDecisionEventId?: string;
|
|
226
|
+
scopedDecisionCount?: number;
|
|
227
|
+
lastReviewedAt?: string;
|
|
228
|
+
}
|
|
229
|
+
interface XenoArtifactRecord {
|
|
230
|
+
artifact: XenoArtifactEnvelope;
|
|
231
|
+
recordVersion: number;
|
|
232
|
+
etag: string;
|
|
233
|
+
lifecycleEvents: XenoArtifactLifecycleEvent[];
|
|
234
|
+
reviewEvents: XenoArtifactReviewEvent[];
|
|
235
|
+
reviewSummary: XenoArtifactReviewSummary;
|
|
236
|
+
}
|
|
237
|
+
interface XenoArtifactListQuery {
|
|
238
|
+
artifactIds?: string[];
|
|
239
|
+
kinds?: XenoArtifactKind[];
|
|
240
|
+
states?: XenoArtifactState[];
|
|
241
|
+
runId?: string;
|
|
242
|
+
sessionId?: string;
|
|
243
|
+
turnId?: string;
|
|
244
|
+
taskId?: string;
|
|
245
|
+
workspaceId?: string;
|
|
246
|
+
repositoryId?: string;
|
|
247
|
+
producerId?: string;
|
|
248
|
+
sensitivity?: XenoArtifactSensitivity[];
|
|
249
|
+
includeSuperseded?: boolean;
|
|
250
|
+
}
|
|
251
|
+
interface XenoEvidenceNode {
|
|
252
|
+
id: string;
|
|
253
|
+
type: XenoEvidenceNodeType;
|
|
254
|
+
label?: string;
|
|
255
|
+
artifactRevision?: number;
|
|
256
|
+
attributes?: XenoJsonObject;
|
|
257
|
+
}
|
|
258
|
+
interface XenoEvidenceEdge {
|
|
259
|
+
id: string;
|
|
260
|
+
type: XenoEvidenceEdgeType;
|
|
261
|
+
from: string;
|
|
262
|
+
to: string;
|
|
263
|
+
createdAt: string;
|
|
264
|
+
producer?: XenoArtifactActor;
|
|
265
|
+
attributes?: XenoJsonObject;
|
|
266
|
+
}
|
|
267
|
+
interface XenoEvidenceGraph {
|
|
268
|
+
schemaVersion: typeof XENO_EVIDENCE_GRAPH_SCHEMA_VERSION;
|
|
269
|
+
graphId: string;
|
|
270
|
+
version: number;
|
|
271
|
+
createdAt: string;
|
|
272
|
+
updatedAt: string;
|
|
273
|
+
nodes: XenoEvidenceNode[];
|
|
274
|
+
edges: XenoEvidenceEdge[];
|
|
275
|
+
}
|
|
276
|
+
type XenoDiffMode = "working-tree" | "staged" | "turn" | "commit" | "preview";
|
|
277
|
+
type XenoDiffFileStatus = "added" | "modified" | "deleted" | "renamed" | "copied" | "binary";
|
|
278
|
+
type XenoDiffLineKind = "context" | "addition" | "deletion" | "no-newline";
|
|
279
|
+
interface XenoDiffLine {
|
|
280
|
+
kind: XenoDiffLineKind;
|
|
281
|
+
text: string;
|
|
282
|
+
oldLine?: number;
|
|
283
|
+
newLine?: number;
|
|
284
|
+
}
|
|
285
|
+
interface XenoDiffHunk {
|
|
286
|
+
hunkId: string;
|
|
287
|
+
header: string;
|
|
288
|
+
section?: string;
|
|
289
|
+
oldStart: number;
|
|
290
|
+
oldLines: number;
|
|
291
|
+
newStart: number;
|
|
292
|
+
newLines: number;
|
|
293
|
+
additions: number;
|
|
294
|
+
deletions: number;
|
|
295
|
+
lines: XenoDiffLine[];
|
|
296
|
+
}
|
|
297
|
+
interface XenoDiffFile {
|
|
298
|
+
oldPath?: string;
|
|
299
|
+
newPath?: string;
|
|
300
|
+
displayPath: string;
|
|
301
|
+
status: XenoDiffFileStatus;
|
|
302
|
+
additions: number;
|
|
303
|
+
deletions: number;
|
|
304
|
+
binary: boolean;
|
|
305
|
+
headerLines: string[];
|
|
306
|
+
hunks: XenoDiffHunk[];
|
|
307
|
+
}
|
|
308
|
+
interface XenoDiffDocument {
|
|
309
|
+
schemaVersion: 1;
|
|
310
|
+
mode: XenoDiffMode;
|
|
311
|
+
repositoryId?: string;
|
|
312
|
+
baseRef?: string;
|
|
313
|
+
headRef?: string;
|
|
314
|
+
files: XenoDiffFile[];
|
|
315
|
+
additions: number;
|
|
316
|
+
deletions: number;
|
|
317
|
+
rawDiff: string;
|
|
318
|
+
}
|
|
319
|
+
interface ParseUnifiedDiffOptions {
|
|
320
|
+
mode?: XenoDiffMode;
|
|
321
|
+
repositoryId?: string;
|
|
322
|
+
baseRef?: string;
|
|
323
|
+
headRef?: string;
|
|
324
|
+
maxBytes?: number;
|
|
325
|
+
maxFiles?: number;
|
|
326
|
+
maxHunks?: number;
|
|
327
|
+
maxLines?: number;
|
|
328
|
+
}
|
|
329
|
+
interface XenoDiffArtifactContext {
|
|
330
|
+
kind?: "diff" | "patch";
|
|
331
|
+
artifactId?: string;
|
|
332
|
+
revision?: number;
|
|
333
|
+
predecessorRevision?: number;
|
|
334
|
+
createdAt?: string;
|
|
335
|
+
title?: string;
|
|
336
|
+
description?: string;
|
|
337
|
+
producer: XenoArtifactActor;
|
|
338
|
+
identity?: XenoArtifactIdentity;
|
|
339
|
+
sensitivity?: XenoArtifactSensitivity;
|
|
340
|
+
accessPolicyId?: string;
|
|
341
|
+
mode?: XenoDiffMode;
|
|
342
|
+
repositoryId?: string;
|
|
343
|
+
baseRef?: string;
|
|
344
|
+
headRef?: string;
|
|
345
|
+
}
|
|
346
|
+
declare class XenoDiffParseError extends Error {
|
|
347
|
+
readonly line?: number | undefined;
|
|
348
|
+
readonly code = "XENO_DIFF_INVALID";
|
|
349
|
+
constructor(message: string, line?: number | undefined);
|
|
350
|
+
}
|
|
351
|
+
declare function parseUnifiedDiff(diff: string, options?: ParseUnifiedDiffOptions): XenoDiffDocument;
|
|
352
|
+
declare function unifiedDiffToXenoArtifact(diff: string, context: XenoDiffArtifactContext): XenoArtifactEnvelope;
|
|
353
|
+
declare function xenoArtifactToDiffDocument(artifact: XenoArtifactEnvelope): XenoDiffDocument;
|
|
354
|
+
export { type XenoDiffLine as A, type XenoDiffLineKind as B, type XenoDiffMode as C, type XenoEvidenceEdge as D, type XenoEvidenceEdgeType as E, type XenoEvidenceGraph as F, type XenoEvidenceNode as G, type XenoEvidenceNodeType as H, type XenoEvidenceReference as I, type XenoJsonObject as J, type XenoJsonPrimitive as K, type XenoJsonValue as L, type XenoDiffArtifactContext as M, XenoDiffParseError as N, parseUnifiedDiff as O, type ParseUnifiedDiffOptions as P, unifiedDiffToXenoArtifact as Q, xenoArtifactToDiffDocument as R, type XenoArtifactEnvelope as X, type XenoDiffDocument as a, XENO_ARTIFACT_SCHEMA_VERSION as b, XENO_EVIDENCE_GRAPH_SCHEMA_VERSION as c, type XenoArtifactActor as d, type XenoArtifactActorKind as e, type XenoArtifactAnchor as f, type XenoArtifactContent as g, type XenoArtifactIdentity as h, type XenoArtifactKind as i, type XenoArtifactLifecycleEvent as j, type XenoArtifactListQuery as k, type XenoArtifactProvenance as l, type XenoArtifactRecord as m, type XenoArtifactRelationship as n, type XenoArtifactRetention as o, type XenoArtifactReviewDecision as p, type XenoArtifactReviewEvent as q, type XenoArtifactReviewEventInput as r, type XenoArtifactReviewSummary as s, type XenoArtifactSensitivity as t, type XenoArtifactState as u, type XenoArtifactStorageReference as v, type XenoContentHash as w, type XenoDiffFile as x, type XenoDiffFileStatus as y, type XenoDiffHunk as z };
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
declare const XENO_ARTIFACT_SCHEMA_VERSION: 1;
|
|
2
|
+
declare const XENO_EVIDENCE_GRAPH_SCHEMA_VERSION: 1;
|
|
3
|
+
type XenoJsonPrimitive = string | number | boolean | null;
|
|
4
|
+
type XenoJsonValue = XenoJsonPrimitive | XenoJsonObject | XenoJsonValue[];
|
|
5
|
+
interface XenoJsonObject {
|
|
6
|
+
[key: string]: XenoJsonValue;
|
|
7
|
+
}
|
|
8
|
+
type XenoArtifactKind = "plan" | "requirements" | "design" | "task-graph" | "patch" | "diff" | "file" | "document" | "diagram" | "screenshot" | "recording" | "browser-snapshot" | "test-report" | "review-report" | "security-report" | "performance-report" | "release-report" | "sbom" | "provenance" | "attestation" | `custom:${string}`;
|
|
9
|
+
type XenoArtifactState = "draft" | "pending_review" | "approved" | "rejected" | "superseded" | "archived";
|
|
10
|
+
type XenoArtifactSensitivity = "public" | "internal" | "confidential" | "restricted";
|
|
11
|
+
interface XenoContentHash {
|
|
12
|
+
algorithm: "sha256" | `custom:${string}`;
|
|
13
|
+
value: string;
|
|
14
|
+
}
|
|
15
|
+
type XenoArtifactStorageReference = {
|
|
16
|
+
type: "inline";
|
|
17
|
+
text?: string;
|
|
18
|
+
base64?: string;
|
|
19
|
+
} | {
|
|
20
|
+
type: "file";
|
|
21
|
+
path: string;
|
|
22
|
+
} | {
|
|
23
|
+
type: "blob";
|
|
24
|
+
uri: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: "git";
|
|
27
|
+
commit: string;
|
|
28
|
+
path: string;
|
|
29
|
+
repositoryId?: string;
|
|
30
|
+
} | {
|
|
31
|
+
type: "url";
|
|
32
|
+
url: string;
|
|
33
|
+
expiresAt?: string;
|
|
34
|
+
} | {
|
|
35
|
+
type: "external";
|
|
36
|
+
provider: string;
|
|
37
|
+
locator: string;
|
|
38
|
+
};
|
|
39
|
+
interface XenoArtifactContent {
|
|
40
|
+
hash: XenoContentHash;
|
|
41
|
+
sizeBytes: number;
|
|
42
|
+
storage: XenoArtifactStorageReference;
|
|
43
|
+
encoding?: "utf8" | "base64" | "binary" | `custom:${string}`;
|
|
44
|
+
redactedPreview?: string;
|
|
45
|
+
}
|
|
46
|
+
interface XenoArtifactIdentity {
|
|
47
|
+
runId?: string;
|
|
48
|
+
sessionId?: string;
|
|
49
|
+
turnId?: string;
|
|
50
|
+
taskId?: string;
|
|
51
|
+
agentId?: string;
|
|
52
|
+
workspaceId?: string;
|
|
53
|
+
repositoryId?: string;
|
|
54
|
+
}
|
|
55
|
+
type XenoArtifactActorKind = "agent" | "tool" | "user" | "system" | "integration";
|
|
56
|
+
interface XenoArtifactActor {
|
|
57
|
+
kind: XenoArtifactActorKind;
|
|
58
|
+
id: string;
|
|
59
|
+
displayName?: string;
|
|
60
|
+
profileFingerprint?: string;
|
|
61
|
+
}
|
|
62
|
+
interface XenoArtifactProvenance {
|
|
63
|
+
producer: XenoArtifactActor;
|
|
64
|
+
eventId?: string;
|
|
65
|
+
toolCallId?: string;
|
|
66
|
+
operationId?: string;
|
|
67
|
+
executionContractFingerprint?: string;
|
|
68
|
+
capabilityLeaseIds?: string[];
|
|
69
|
+
sourceArtifactIds?: string[];
|
|
70
|
+
attributes?: XenoJsonObject;
|
|
71
|
+
}
|
|
72
|
+
type XenoEvidenceNodeType = "requirement" | "design-decision" | "risk" | "task" | "agent" | "run" | "tool-call" | "edit" | "commit" | "test-case" | "test-run" | "finding" | "approval" | "artifact" | "release" | "claim" | `custom:${string}`;
|
|
73
|
+
type XenoEvidenceEdgeType = "decomposes" | "depends_on" | "implements" | "changes" | "tests" | "verifies" | "finds" | "fixes" | "reviews" | "approves" | "rejects" | "supersedes" | "derived_from" | "produced_by" | "supports_claim" | "contradicts_claim" | "released_as" | `custom:${string}`;
|
|
74
|
+
interface XenoEvidenceReference {
|
|
75
|
+
type: XenoEvidenceNodeType;
|
|
76
|
+
id: string;
|
|
77
|
+
revision?: number;
|
|
78
|
+
}
|
|
79
|
+
interface XenoArtifactRelationship {
|
|
80
|
+
relation: XenoEvidenceEdgeType;
|
|
81
|
+
target: XenoEvidenceReference;
|
|
82
|
+
description?: string;
|
|
83
|
+
attributes?: XenoJsonObject;
|
|
84
|
+
}
|
|
85
|
+
type XenoArtifactAnchor = {
|
|
86
|
+
kind: "file";
|
|
87
|
+
path: string;
|
|
88
|
+
repositoryId?: string;
|
|
89
|
+
commit?: string;
|
|
90
|
+
} | {
|
|
91
|
+
kind: "source-line";
|
|
92
|
+
path: string;
|
|
93
|
+
startLine: number;
|
|
94
|
+
endLine?: number;
|
|
95
|
+
repositoryId?: string;
|
|
96
|
+
commit?: string;
|
|
97
|
+
} | {
|
|
98
|
+
kind: "diff-hunk";
|
|
99
|
+
path: string;
|
|
100
|
+
hunkId: string;
|
|
101
|
+
artifactId?: string;
|
|
102
|
+
revision?: number;
|
|
103
|
+
} | {
|
|
104
|
+
kind: "symbol";
|
|
105
|
+
path: string;
|
|
106
|
+
symbol: string;
|
|
107
|
+
repositoryId?: string;
|
|
108
|
+
commit?: string;
|
|
109
|
+
} | {
|
|
110
|
+
kind: "dom-node";
|
|
111
|
+
pageId: string;
|
|
112
|
+
selector?: string;
|
|
113
|
+
accessibilityId?: string;
|
|
114
|
+
snapshotArtifactId?: string;
|
|
115
|
+
} | {
|
|
116
|
+
kind: "timeline";
|
|
117
|
+
startMs: number;
|
|
118
|
+
endMs?: number;
|
|
119
|
+
recordingArtifactId: string;
|
|
120
|
+
} | {
|
|
121
|
+
kind: "region";
|
|
122
|
+
x: number;
|
|
123
|
+
y: number;
|
|
124
|
+
width: number;
|
|
125
|
+
height: number;
|
|
126
|
+
mediaArtifactId: string;
|
|
127
|
+
} | {
|
|
128
|
+
kind: "artifact";
|
|
129
|
+
artifactId: string;
|
|
130
|
+
revision?: number;
|
|
131
|
+
} | {
|
|
132
|
+
kind: `custom:${string}`;
|
|
133
|
+
data: XenoJsonObject;
|
|
134
|
+
};
|
|
135
|
+
interface XenoArtifactRetention {
|
|
136
|
+
policyId?: string;
|
|
137
|
+
retainUntil?: string;
|
|
138
|
+
legalHold?: boolean;
|
|
139
|
+
}
|
|
140
|
+
interface XenoArtifactEnvelope {
|
|
141
|
+
schemaVersion: typeof XENO_ARTIFACT_SCHEMA_VERSION;
|
|
142
|
+
artifactId: string;
|
|
143
|
+
revision: number;
|
|
144
|
+
kind: XenoArtifactKind;
|
|
145
|
+
title: string;
|
|
146
|
+
description?: string;
|
|
147
|
+
state: XenoArtifactState;
|
|
148
|
+
createdAt: string;
|
|
149
|
+
updatedAt?: string;
|
|
150
|
+
mediaType: string;
|
|
151
|
+
sensitivity: XenoArtifactSensitivity;
|
|
152
|
+
identity?: XenoArtifactIdentity;
|
|
153
|
+
content: XenoArtifactContent;
|
|
154
|
+
provenance: XenoArtifactProvenance;
|
|
155
|
+
relationships?: XenoArtifactRelationship[];
|
|
156
|
+
anchors?: XenoArtifactAnchor[];
|
|
157
|
+
predecessorRevision?: number;
|
|
158
|
+
accessPolicyId?: string;
|
|
159
|
+
retention?: XenoArtifactRetention;
|
|
160
|
+
extensions?: Record<string, XenoJsonValue>;
|
|
161
|
+
}
|
|
162
|
+
interface XenoArtifactLifecycleEvent {
|
|
163
|
+
schemaVersion: typeof XENO_ARTIFACT_SCHEMA_VERSION;
|
|
164
|
+
eventId: string;
|
|
165
|
+
artifactId: string;
|
|
166
|
+
revision: number;
|
|
167
|
+
sequence: number;
|
|
168
|
+
recordedAt: string;
|
|
169
|
+
actor: XenoArtifactActor;
|
|
170
|
+
fromState: XenoArtifactState | null;
|
|
171
|
+
toState: XenoArtifactState;
|
|
172
|
+
reason?: string;
|
|
173
|
+
reviewEventId?: string;
|
|
174
|
+
}
|
|
175
|
+
type XenoArtifactReviewDecision = "approved" | "rejected" | "changes_requested";
|
|
176
|
+
interface XenoArtifactReviewEventBase {
|
|
177
|
+
schemaVersion: typeof XENO_ARTIFACT_SCHEMA_VERSION;
|
|
178
|
+
eventId: string;
|
|
179
|
+
artifactId: string;
|
|
180
|
+
artifactRevision: number;
|
|
181
|
+
artifactHash: XenoContentHash;
|
|
182
|
+
sequence: number;
|
|
183
|
+
recordedAt: string;
|
|
184
|
+
actor: XenoArtifactActor;
|
|
185
|
+
}
|
|
186
|
+
type XenoArtifactReviewEvent = (XenoArtifactReviewEventBase & {
|
|
187
|
+
type: "review-requested";
|
|
188
|
+
reviewerIds?: string[];
|
|
189
|
+
message?: string;
|
|
190
|
+
}) | (XenoArtifactReviewEventBase & {
|
|
191
|
+
type: "comment-added";
|
|
192
|
+
commentId: string;
|
|
193
|
+
body: string;
|
|
194
|
+
anchor?: XenoArtifactAnchor;
|
|
195
|
+
parentCommentId?: string;
|
|
196
|
+
}) | (XenoArtifactReviewEventBase & {
|
|
197
|
+
type: "comment-resolved" | "comment-reopened";
|
|
198
|
+
commentId: string;
|
|
199
|
+
reason?: string;
|
|
200
|
+
}) | (XenoArtifactReviewEventBase & {
|
|
201
|
+
type: "decision-recorded";
|
|
202
|
+
decision: XenoArtifactReviewDecision;
|
|
203
|
+
rationale?: string;
|
|
204
|
+
scope?: XenoArtifactAnchor;
|
|
205
|
+
}) | (XenoArtifactReviewEventBase & {
|
|
206
|
+
type: "review-withdrawn";
|
|
207
|
+
reason?: string;
|
|
208
|
+
});
|
|
209
|
+
type XenoArtifactReviewEventInput = Omit<Extract<XenoArtifactReviewEvent, {
|
|
210
|
+
type: "review-requested";
|
|
211
|
+
}>, "schemaVersion" | "eventId" | "sequence" | "recordedAt"> | Omit<Extract<XenoArtifactReviewEvent, {
|
|
212
|
+
type: "comment-added";
|
|
213
|
+
}>, "schemaVersion" | "eventId" | "sequence" | "recordedAt"> | Omit<Extract<XenoArtifactReviewEvent, {
|
|
214
|
+
type: "comment-resolved" | "comment-reopened";
|
|
215
|
+
}>, "schemaVersion" | "eventId" | "sequence" | "recordedAt"> | Omit<Extract<XenoArtifactReviewEvent, {
|
|
216
|
+
type: "decision-recorded";
|
|
217
|
+
}>, "schemaVersion" | "eventId" | "sequence" | "recordedAt"> | Omit<Extract<XenoArtifactReviewEvent, {
|
|
218
|
+
type: "review-withdrawn";
|
|
219
|
+
}>, "schemaVersion" | "eventId" | "sequence" | "recordedAt">;
|
|
220
|
+
interface XenoArtifactReviewSummary {
|
|
221
|
+
status: "not_requested" | "pending" | "approved" | "rejected" | "changes_requested" | "withdrawn";
|
|
222
|
+
totalComments: number;
|
|
223
|
+
unresolvedComments: number;
|
|
224
|
+
latestDecision?: XenoArtifactReviewDecision;
|
|
225
|
+
latestDecisionEventId?: string;
|
|
226
|
+
scopedDecisionCount?: number;
|
|
227
|
+
lastReviewedAt?: string;
|
|
228
|
+
}
|
|
229
|
+
interface XenoArtifactRecord {
|
|
230
|
+
artifact: XenoArtifactEnvelope;
|
|
231
|
+
recordVersion: number;
|
|
232
|
+
etag: string;
|
|
233
|
+
lifecycleEvents: XenoArtifactLifecycleEvent[];
|
|
234
|
+
reviewEvents: XenoArtifactReviewEvent[];
|
|
235
|
+
reviewSummary: XenoArtifactReviewSummary;
|
|
236
|
+
}
|
|
237
|
+
interface XenoArtifactListQuery {
|
|
238
|
+
artifactIds?: string[];
|
|
239
|
+
kinds?: XenoArtifactKind[];
|
|
240
|
+
states?: XenoArtifactState[];
|
|
241
|
+
runId?: string;
|
|
242
|
+
sessionId?: string;
|
|
243
|
+
turnId?: string;
|
|
244
|
+
taskId?: string;
|
|
245
|
+
workspaceId?: string;
|
|
246
|
+
repositoryId?: string;
|
|
247
|
+
producerId?: string;
|
|
248
|
+
sensitivity?: XenoArtifactSensitivity[];
|
|
249
|
+
includeSuperseded?: boolean;
|
|
250
|
+
}
|
|
251
|
+
interface XenoEvidenceNode {
|
|
252
|
+
id: string;
|
|
253
|
+
type: XenoEvidenceNodeType;
|
|
254
|
+
label?: string;
|
|
255
|
+
artifactRevision?: number;
|
|
256
|
+
attributes?: XenoJsonObject;
|
|
257
|
+
}
|
|
258
|
+
interface XenoEvidenceEdge {
|
|
259
|
+
id: string;
|
|
260
|
+
type: XenoEvidenceEdgeType;
|
|
261
|
+
from: string;
|
|
262
|
+
to: string;
|
|
263
|
+
createdAt: string;
|
|
264
|
+
producer?: XenoArtifactActor;
|
|
265
|
+
attributes?: XenoJsonObject;
|
|
266
|
+
}
|
|
267
|
+
interface XenoEvidenceGraph {
|
|
268
|
+
schemaVersion: typeof XENO_EVIDENCE_GRAPH_SCHEMA_VERSION;
|
|
269
|
+
graphId: string;
|
|
270
|
+
version: number;
|
|
271
|
+
createdAt: string;
|
|
272
|
+
updatedAt: string;
|
|
273
|
+
nodes: XenoEvidenceNode[];
|
|
274
|
+
edges: XenoEvidenceEdge[];
|
|
275
|
+
}
|
|
276
|
+
type XenoDiffMode = "working-tree" | "staged" | "turn" | "commit" | "preview";
|
|
277
|
+
type XenoDiffFileStatus = "added" | "modified" | "deleted" | "renamed" | "copied" | "binary";
|
|
278
|
+
type XenoDiffLineKind = "context" | "addition" | "deletion" | "no-newline";
|
|
279
|
+
interface XenoDiffLine {
|
|
280
|
+
kind: XenoDiffLineKind;
|
|
281
|
+
text: string;
|
|
282
|
+
oldLine?: number;
|
|
283
|
+
newLine?: number;
|
|
284
|
+
}
|
|
285
|
+
interface XenoDiffHunk {
|
|
286
|
+
hunkId: string;
|
|
287
|
+
header: string;
|
|
288
|
+
section?: string;
|
|
289
|
+
oldStart: number;
|
|
290
|
+
oldLines: number;
|
|
291
|
+
newStart: number;
|
|
292
|
+
newLines: number;
|
|
293
|
+
additions: number;
|
|
294
|
+
deletions: number;
|
|
295
|
+
lines: XenoDiffLine[];
|
|
296
|
+
}
|
|
297
|
+
interface XenoDiffFile {
|
|
298
|
+
oldPath?: string;
|
|
299
|
+
newPath?: string;
|
|
300
|
+
displayPath: string;
|
|
301
|
+
status: XenoDiffFileStatus;
|
|
302
|
+
additions: number;
|
|
303
|
+
deletions: number;
|
|
304
|
+
binary: boolean;
|
|
305
|
+
headerLines: string[];
|
|
306
|
+
hunks: XenoDiffHunk[];
|
|
307
|
+
}
|
|
308
|
+
interface XenoDiffDocument {
|
|
309
|
+
schemaVersion: 1;
|
|
310
|
+
mode: XenoDiffMode;
|
|
311
|
+
repositoryId?: string;
|
|
312
|
+
baseRef?: string;
|
|
313
|
+
headRef?: string;
|
|
314
|
+
files: XenoDiffFile[];
|
|
315
|
+
additions: number;
|
|
316
|
+
deletions: number;
|
|
317
|
+
rawDiff: string;
|
|
318
|
+
}
|
|
319
|
+
interface ParseUnifiedDiffOptions {
|
|
320
|
+
mode?: XenoDiffMode;
|
|
321
|
+
repositoryId?: string;
|
|
322
|
+
baseRef?: string;
|
|
323
|
+
headRef?: string;
|
|
324
|
+
maxBytes?: number;
|
|
325
|
+
maxFiles?: number;
|
|
326
|
+
maxHunks?: number;
|
|
327
|
+
maxLines?: number;
|
|
328
|
+
}
|
|
329
|
+
interface XenoDiffArtifactContext {
|
|
330
|
+
kind?: "diff" | "patch";
|
|
331
|
+
artifactId?: string;
|
|
332
|
+
revision?: number;
|
|
333
|
+
predecessorRevision?: number;
|
|
334
|
+
createdAt?: string;
|
|
335
|
+
title?: string;
|
|
336
|
+
description?: string;
|
|
337
|
+
producer: XenoArtifactActor;
|
|
338
|
+
identity?: XenoArtifactIdentity;
|
|
339
|
+
sensitivity?: XenoArtifactSensitivity;
|
|
340
|
+
accessPolicyId?: string;
|
|
341
|
+
mode?: XenoDiffMode;
|
|
342
|
+
repositoryId?: string;
|
|
343
|
+
baseRef?: string;
|
|
344
|
+
headRef?: string;
|
|
345
|
+
}
|
|
346
|
+
declare class XenoDiffParseError extends Error {
|
|
347
|
+
readonly line?: number | undefined;
|
|
348
|
+
readonly code = "XENO_DIFF_INVALID";
|
|
349
|
+
constructor(message: string, line?: number | undefined);
|
|
350
|
+
}
|
|
351
|
+
declare function parseUnifiedDiff(diff: string, options?: ParseUnifiedDiffOptions): XenoDiffDocument;
|
|
352
|
+
declare function unifiedDiffToXenoArtifact(diff: string, context: XenoDiffArtifactContext): XenoArtifactEnvelope;
|
|
353
|
+
declare function xenoArtifactToDiffDocument(artifact: XenoArtifactEnvelope): XenoDiffDocument;
|
|
354
|
+
export { type XenoDiffLine as A, type XenoDiffLineKind as B, type XenoDiffMode as C, type XenoEvidenceEdge as D, type XenoEvidenceEdgeType as E, type XenoEvidenceGraph as F, type XenoEvidenceNode as G, type XenoEvidenceNodeType as H, type XenoEvidenceReference as I, type XenoJsonObject as J, type XenoJsonPrimitive as K, type XenoJsonValue as L, type XenoDiffArtifactContext as M, XenoDiffParseError as N, parseUnifiedDiff as O, type ParseUnifiedDiffOptions as P, unifiedDiffToXenoArtifact as Q, xenoArtifactToDiffDocument as R, type XenoArtifactEnvelope as X, type XenoDiffDocument as a, XENO_ARTIFACT_SCHEMA_VERSION as b, XENO_EVIDENCE_GRAPH_SCHEMA_VERSION as c, type XenoArtifactActor as d, type XenoArtifactActorKind as e, type XenoArtifactAnchor as f, type XenoArtifactContent as g, type XenoArtifactIdentity as h, type XenoArtifactKind as i, type XenoArtifactLifecycleEvent as j, type XenoArtifactListQuery as k, type XenoArtifactProvenance as l, type XenoArtifactRecord as m, type XenoArtifactRelationship as n, type XenoArtifactRetention as o, type XenoArtifactReviewDecision as p, type XenoArtifactReviewEvent as q, type XenoArtifactReviewEventInput as r, type XenoArtifactReviewSummary as s, type XenoArtifactSensitivity as t, type XenoArtifactState as u, type XenoArtifactStorageReference as v, type XenoContentHash as w, type XenoDiffFile as x, type XenoDiffFileStatus as y, type XenoDiffHunk as z };
|