@xenosystem/agent-sdk 0.9.37 → 0.9.39
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/dist/artifacts/browser.cjs +1 -1
- package/dist/artifacts/browser.d.cts +2 -2
- package/dist/artifacts/browser.d.ts +2 -2
- package/dist/artifacts/browser.js +1 -1
- package/dist/artifacts/{diff-artifact-CmhmeSu5.d.cts → diff-artifact--7QTtOxh.d.cts} +2 -1
- package/dist/artifacts/{diff-artifact-CmhmeSu5.d.ts → diff-artifact--7QTtOxh.d.ts} +2 -1
- package/dist/artifacts/index.cjs +10 -9
- package/dist/artifacts/index.d.cts +94 -3
- package/dist/artifacts/index.d.ts +94 -3
- package/dist/artifacts/index.js +10 -9
- package/dist/artifacts/metafile-cjs.json +1 -1
- package/dist/artifacts/metafile-esm.json +1 -1
- package/dist/automation/index.cjs +2 -2
- package/dist/automation/index.d.cts +2 -1
- package/dist/automation/index.d.ts +2 -1
- package/dist/automation/index.js +2 -2
- package/dist/automation/metafile-cjs.json +1 -1
- package/dist/automation/metafile-esm.json +1 -1
- package/dist/control-plane/index.cjs +8 -7
- package/dist/control-plane/index.d.cts +171 -1
- package/dist/control-plane/index.d.ts +171 -1
- package/dist/control-plane/index.js +8 -7
- package/dist/control-plane/metafile-cjs.json +1 -1
- package/dist/control-plane/metafile-esm.json +1 -1
- package/dist/coordination/index.cjs +2 -2
- package/dist/coordination/index.d.cts +85 -2
- package/dist/coordination/index.d.ts +85 -2
- package/dist/coordination/index.js +2 -2
- package/dist/coordination/metafile-cjs.json +1 -1
- package/dist/coordination/metafile-esm.json +1 -1
- package/dist/electron/index.cjs +48 -48
- package/dist/electron/index.d.cts +7 -1
- package/dist/electron/index.d.ts +7 -1
- package/dist/electron/index.js +48 -48
- package/dist/electron/metafile-cjs.json +1 -1
- package/dist/electron/metafile-esm.json +1 -1
- package/dist/index.cjs +345 -343
- package/dist/index.d.cts +443 -5
- package/dist/index.d.ts +443 -5
- package/dist/index.js +345 -343
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/oracle/index.cjs +1 -1
- package/dist/oracle/index.d.cts +2 -1
- package/dist/oracle/index.d.ts +2 -1
- package/dist/oracle/index.js +1 -1
- package/dist/oracle/metafile-cjs.json +1 -1
- package/dist/oracle/metafile-esm.json +1 -1
- package/dist/recipes/index.cjs +2 -2
- package/dist/recipes/index.js +2 -2
- package/dist/recipes/metafile-cjs.json +1 -1
- package/dist/recipes/metafile-esm.json +1 -1
- package/dist/research/index.cjs +3 -3
- package/dist/research/index.d.cts +2 -1
- package/dist/research/index.d.ts +2 -1
- package/dist/research/index.js +3 -3
- package/dist/research/metafile-cjs.json +1 -1
- package/dist/research/metafile-esm.json +1 -1
- package/dist/session/index.cjs +12 -12
- package/dist/session/index.d.cts +7 -1
- package/dist/session/index.d.ts +7 -1
- package/dist/session/index.js +9 -9
- package/dist/session/metafile-cjs.json +1 -1
- package/dist/session/metafile-esm.json +1 -1
- package/ownership/audit.mjs +6 -0
- package/package.json +2 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as XenoArtifactState, X as XenoArtifactEnvelope, w as XenoArtifactReviewEvent, y as XenoArtifactReviewSummary, R as XenoJsonValue, C as XenoContentHash, L as XenoEvidenceGraph, M as XenoEvidenceNode, J as XenoEvidenceEdge, s as XenoArtifactRecord, j as XenoArtifactActor, q as XenoArtifactListQuery, x as XenoArtifactReviewEventInput, c as XENO_ARTIFACT_SCHEMA_VERSION, p as XenoArtifactLifecycleEvent, v as XenoArtifactReviewDecision, l as XenoArtifactAnchor, O as XenoEvidenceReference, n as XenoArtifactIdentity, z as XenoArtifactSensitivity, o as XenoArtifactKind } from "./diff-artifact
|
|
2
|
-
export { S as ParseUnifiedDiffOptions, b as XENO_ARTIFACT_ACTOR_KINDS, d as XENO_ARTIFACT_SENSITIVITIES, e as XENO_ARTIFACT_STATES, f as XENO_BUILTIN_ARTIFACT_KINDS, g as XENO_EVIDENCE_EDGE_TYPES, h as XENO_EVIDENCE_GRAPH_SCHEMA_VERSION, i as XENO_EVIDENCE_NODE_TYPES, k as XenoArtifactActorKind, m as XenoArtifactContent, r as XenoArtifactProvenance, t as XenoArtifactRelationship, u as XenoArtifactRetention, B as XenoArtifactStorageReference, T as XenoDiffArtifactContext, a as XenoDiffDocument, D as XenoDiffFile, E as XenoDiffFileStatus, F as XenoDiffHunk, G as XenoDiffLine, H as XenoDiffLineKind, I as XenoDiffMode, U as XenoDiffParseError, K as XenoEvidenceEdgeType, N as XenoEvidenceNodeType, P as XenoJsonObject, Q as XenoJsonPrimitive, V as parseUnifiedDiff, W as unifiedDiffToXenoArtifact, Y as xenoArtifactToDiffDocument } from "./diff-artifact
|
|
1
|
+
import { A as XenoArtifactState, X as XenoArtifactEnvelope, w as XenoArtifactReviewEvent, y as XenoArtifactReviewSummary, R as XenoJsonValue, C as XenoContentHash, L as XenoEvidenceGraph, M as XenoEvidenceNode, J as XenoEvidenceEdge, s as XenoArtifactRecord, j as XenoArtifactActor, q as XenoArtifactListQuery, x as XenoArtifactReviewEventInput, c as XENO_ARTIFACT_SCHEMA_VERSION, p as XenoArtifactLifecycleEvent, v as XenoArtifactReviewDecision, l as XenoArtifactAnchor, O as XenoEvidenceReference, n as XenoArtifactIdentity, z as XenoArtifactSensitivity, o as XenoArtifactKind } from "./diff-artifact--7QTtOxh.cjs";
|
|
2
|
+
export { S as ParseUnifiedDiffOptions, b as XENO_ARTIFACT_ACTOR_KINDS, d as XENO_ARTIFACT_SENSITIVITIES, e as XENO_ARTIFACT_STATES, f as XENO_BUILTIN_ARTIFACT_KINDS, g as XENO_EVIDENCE_EDGE_TYPES, h as XENO_EVIDENCE_GRAPH_SCHEMA_VERSION, i as XENO_EVIDENCE_NODE_TYPES, k as XenoArtifactActorKind, m as XenoArtifactContent, r as XenoArtifactProvenance, t as XenoArtifactRelationship, u as XenoArtifactRetention, B as XenoArtifactStorageReference, T as XenoDiffArtifactContext, a as XenoDiffDocument, D as XenoDiffFile, E as XenoDiffFileStatus, F as XenoDiffHunk, G as XenoDiffLine, H as XenoDiffLineKind, I as XenoDiffMode, U as XenoDiffParseError, K as XenoEvidenceEdgeType, N as XenoEvidenceNodeType, P as XenoJsonObject, Q as XenoJsonPrimitive, V as parseUnifiedDiff, W as unifiedDiffToXenoArtifact, Y as xenoArtifactToDiffDocument } from "./diff-artifact--7QTtOxh.cjs";
|
|
3
3
|
interface XenoArtifactValidationIssue {
|
|
4
4
|
path: string;
|
|
5
5
|
code: string;
|
|
@@ -602,4 +602,95 @@ declare function toolEvidenceToXenoArtifact(evidence: ToolEvidence, context: Xen
|
|
|
602
602
|
declare function xenoArtifactToToolEvidence(artifact: XenoArtifactEnvelope): ToolEvidence;
|
|
603
603
|
declare function turnDiffSummaryToXenoArtifact(summary: TurnDiffSummary, context: XenoLegacyArtifactContext): XenoArtifactEnvelope;
|
|
604
604
|
declare function xenoArtifactToTurnDiffSummary(artifact: XenoArtifactEnvelope): TurnDiffSummary;
|
|
605
|
-
|
|
605
|
+
declare const XENO_PAGE_ENTRY = "index.html";
|
|
606
|
+
declare const XENO_PAGE_MAX_BYTES: number;
|
|
607
|
+
declare const XENO_PAGE_MAX_FILES = 255;
|
|
608
|
+
type XenoPageHome = "local" | "cloud";
|
|
609
|
+
interface XenoPageFileInput {
|
|
610
|
+
path: string;
|
|
611
|
+
bytes: Uint8Array | string;
|
|
612
|
+
contentType?: string;
|
|
613
|
+
}
|
|
614
|
+
interface XenoPageFileRecord {
|
|
615
|
+
sha256: string;
|
|
616
|
+
sizeBytes: number;
|
|
617
|
+
contentType: string;
|
|
618
|
+
}
|
|
619
|
+
interface XenoPagePublication {
|
|
620
|
+
home: XenoPageHome;
|
|
621
|
+
url?: string;
|
|
622
|
+
publishedAt: string;
|
|
623
|
+
remoteId?: string;
|
|
624
|
+
}
|
|
625
|
+
interface XenoPublishPageInput {
|
|
626
|
+
artifactId?: string;
|
|
627
|
+
html: string;
|
|
628
|
+
files?: XenoPageFileInput[];
|
|
629
|
+
title?: string;
|
|
630
|
+
description?: string;
|
|
631
|
+
icon?: string;
|
|
632
|
+
producer: XenoArtifactActor;
|
|
633
|
+
identity?: XenoArtifactIdentity;
|
|
634
|
+
home?: XenoPageHome;
|
|
635
|
+
}
|
|
636
|
+
interface XenoPublishedPage {
|
|
637
|
+
artifactId: string;
|
|
638
|
+
revision: number;
|
|
639
|
+
title: string;
|
|
640
|
+
description?: string;
|
|
641
|
+
icon?: string;
|
|
642
|
+
hash: string;
|
|
643
|
+
sizeBytes: number;
|
|
644
|
+
files: Record<string, XenoPageFileRecord>;
|
|
645
|
+
directory: string;
|
|
646
|
+
entryPath: string;
|
|
647
|
+
publications: XenoPagePublication[];
|
|
648
|
+
createdAt: string;
|
|
649
|
+
updatedAt?: string;
|
|
650
|
+
unchanged?: boolean;
|
|
651
|
+
}
|
|
652
|
+
interface XenoPageStoreOptions {
|
|
653
|
+
repository: XenoArtifactRepository;
|
|
654
|
+
directory: string;
|
|
655
|
+
now?: () => string;
|
|
656
|
+
maxBytes?: number;
|
|
657
|
+
}
|
|
658
|
+
declare function pageContentType(path: string): string;
|
|
659
|
+
declare function extractPageTitle(html: string): string | undefined;
|
|
660
|
+
declare function normalizePagePath(path: string): {
|
|
661
|
+
path: string;
|
|
662
|
+
} | {
|
|
663
|
+
error: string;
|
|
664
|
+
};
|
|
665
|
+
declare class XenoPageStore {
|
|
666
|
+
readonly repository: XenoArtifactRepository;
|
|
667
|
+
readonly directory: string;
|
|
668
|
+
private readonly now;
|
|
669
|
+
private readonly maxBytes;
|
|
670
|
+
constructor(options: XenoPageStoreOptions);
|
|
671
|
+
revisionDirectory(artifactId: string, revision: number): string;
|
|
672
|
+
publish(input: XenoPublishPageInput): Promise<XenoPublishedPage>;
|
|
673
|
+
recordPublication(artifactId: string, publication: XenoPagePublication): Promise<XenoPublishedPage>;
|
|
674
|
+
private sidecarPath;
|
|
675
|
+
private writeSidecar;
|
|
676
|
+
private readSidecar;
|
|
677
|
+
get(artifactId: string, revision?: number): Promise<XenoPublishedPage | undefined>;
|
|
678
|
+
list(): Promise<XenoPublishedPage[]>;
|
|
679
|
+
resolveFile(artifactId: string, revision: number, relativePath: string): {
|
|
680
|
+
path: string;
|
|
681
|
+
contentType: string;
|
|
682
|
+
} | undefined;
|
|
683
|
+
readEntry(artifactId: string, revision: number): string | undefined;
|
|
684
|
+
readRevision(artifactId: string, revision: number): {
|
|
685
|
+
html: string;
|
|
686
|
+
files: XenoPageFileInput[];
|
|
687
|
+
};
|
|
688
|
+
addComment(artifactId: string, body: string, actor: XenoArtifactActor, anchor?: XenoArtifactAnchor): Promise<Extract<XenoArtifactReviewEvent, {
|
|
689
|
+
type: "comment-added";
|
|
690
|
+
}>>;
|
|
691
|
+
listComments(artifactId: string): Promise<Array<Extract<XenoArtifactReviewEvent, {
|
|
692
|
+
type: "comment-added";
|
|
693
|
+
}>>>;
|
|
694
|
+
private toPublished;
|
|
695
|
+
}
|
|
696
|
+
export { type AddXenoArtifactCommentRequest, type DecideXenoArtifactRequest, FileXenoArtifactRepository, type FileXenoArtifactRepositoryOptions, InMemoryXenoArtifactRepository, type InMemoryXenoArtifactRepositoryOptions, type SetXenoArtifactCommentResolutionRequest, XENO_ARTIFACT_FILE_REPOSITORY_SCHEMA_VERSION, XENO_ARTIFACT_SCHEMA_VERSION, XENO_PAGE_ENTRY, XENO_PAGE_MAX_BYTES, XENO_PAGE_MAX_FILES, XENO_REVIEW_DIMENSIONS, XENO_REVIEW_EVIDENCE_KINDS, 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 XenoPageFileInput, type XenoPageFileRecord, type XenoPageHome, type XenoPagePublication, XenoPageStore, type XenoPageStoreOptions, type XenoPublishPageInput, type XenoPublishedPage, type XenoReviewAgentExecutor, type XenoReviewAgentResult, type XenoReviewArtifactContext, type XenoReviewCoordinatorContext, type XenoReviewDimension, type XenoReviewEvidence, type XenoReviewEvidenceKind, 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, extractPageTitle, legacyAgentArtifactToXenoArtifact, normalizePagePath, normalizeRepositoryRelativePath, pageContentType, sha256ArtifactBytes, sha256ArtifactJson, summarizeXenoArtifactReview, toolEvidenceToXenoArtifact, turnDiffSummaryToXenoArtifact, validateXenoArtifact, validateXenoArtifactReviewEvent, validateXenoEvidenceGraph, validateXenoSpecDocument, xenoArtifactToLegacyAgentArtifact, xenoArtifactToReviewReport, xenoArtifactToSpecDocument, xenoArtifactToSpecExecution, xenoArtifactToToolEvidence, xenoArtifactToTurnDiffSummary, xenoReviewReportToArtifact, xenoReviewReportToGitHubComments, xenoSpecArtifactIds, xenoSpecExecutionToArtifact, xenoSpecToArtifactBundle };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as XenoArtifactState, X as XenoArtifactEnvelope, w as XenoArtifactReviewEvent, y as XenoArtifactReviewSummary, R as XenoJsonValue, C as XenoContentHash, L as XenoEvidenceGraph, M as XenoEvidenceNode, J as XenoEvidenceEdge, s as XenoArtifactRecord, j as XenoArtifactActor, q as XenoArtifactListQuery, x as XenoArtifactReviewEventInput, c as XENO_ARTIFACT_SCHEMA_VERSION, p as XenoArtifactLifecycleEvent, v as XenoArtifactReviewDecision, l as XenoArtifactAnchor, O as XenoEvidenceReference, n as XenoArtifactIdentity, z as XenoArtifactSensitivity, o as XenoArtifactKind } from "./diff-artifact
|
|
2
|
-
export { S as ParseUnifiedDiffOptions, b as XENO_ARTIFACT_ACTOR_KINDS, d as XENO_ARTIFACT_SENSITIVITIES, e as XENO_ARTIFACT_STATES, f as XENO_BUILTIN_ARTIFACT_KINDS, g as XENO_EVIDENCE_EDGE_TYPES, h as XENO_EVIDENCE_GRAPH_SCHEMA_VERSION, i as XENO_EVIDENCE_NODE_TYPES, k as XenoArtifactActorKind, m as XenoArtifactContent, r as XenoArtifactProvenance, t as XenoArtifactRelationship, u as XenoArtifactRetention, B as XenoArtifactStorageReference, T as XenoDiffArtifactContext, a as XenoDiffDocument, D as XenoDiffFile, E as XenoDiffFileStatus, F as XenoDiffHunk, G as XenoDiffLine, H as XenoDiffLineKind, I as XenoDiffMode, U as XenoDiffParseError, K as XenoEvidenceEdgeType, N as XenoEvidenceNodeType, P as XenoJsonObject, Q as XenoJsonPrimitive, V as parseUnifiedDiff, W as unifiedDiffToXenoArtifact, Y as xenoArtifactToDiffDocument } from "./diff-artifact
|
|
1
|
+
import { A as XenoArtifactState, X as XenoArtifactEnvelope, w as XenoArtifactReviewEvent, y as XenoArtifactReviewSummary, R as XenoJsonValue, C as XenoContentHash, L as XenoEvidenceGraph, M as XenoEvidenceNode, J as XenoEvidenceEdge, s as XenoArtifactRecord, j as XenoArtifactActor, q as XenoArtifactListQuery, x as XenoArtifactReviewEventInput, c as XENO_ARTIFACT_SCHEMA_VERSION, p as XenoArtifactLifecycleEvent, v as XenoArtifactReviewDecision, l as XenoArtifactAnchor, O as XenoEvidenceReference, n as XenoArtifactIdentity, z as XenoArtifactSensitivity, o as XenoArtifactKind } from "./diff-artifact--7QTtOxh.js";
|
|
2
|
+
export { S as ParseUnifiedDiffOptions, b as XENO_ARTIFACT_ACTOR_KINDS, d as XENO_ARTIFACT_SENSITIVITIES, e as XENO_ARTIFACT_STATES, f as XENO_BUILTIN_ARTIFACT_KINDS, g as XENO_EVIDENCE_EDGE_TYPES, h as XENO_EVIDENCE_GRAPH_SCHEMA_VERSION, i as XENO_EVIDENCE_NODE_TYPES, k as XenoArtifactActorKind, m as XenoArtifactContent, r as XenoArtifactProvenance, t as XenoArtifactRelationship, u as XenoArtifactRetention, B as XenoArtifactStorageReference, T as XenoDiffArtifactContext, a as XenoDiffDocument, D as XenoDiffFile, E as XenoDiffFileStatus, F as XenoDiffHunk, G as XenoDiffLine, H as XenoDiffLineKind, I as XenoDiffMode, U as XenoDiffParseError, K as XenoEvidenceEdgeType, N as XenoEvidenceNodeType, P as XenoJsonObject, Q as XenoJsonPrimitive, V as parseUnifiedDiff, W as unifiedDiffToXenoArtifact, Y as xenoArtifactToDiffDocument } from "./diff-artifact--7QTtOxh.js";
|
|
3
3
|
interface XenoArtifactValidationIssue {
|
|
4
4
|
path: string;
|
|
5
5
|
code: string;
|
|
@@ -602,4 +602,95 @@ declare function toolEvidenceToXenoArtifact(evidence: ToolEvidence, context: Xen
|
|
|
602
602
|
declare function xenoArtifactToToolEvidence(artifact: XenoArtifactEnvelope): ToolEvidence;
|
|
603
603
|
declare function turnDiffSummaryToXenoArtifact(summary: TurnDiffSummary, context: XenoLegacyArtifactContext): XenoArtifactEnvelope;
|
|
604
604
|
declare function xenoArtifactToTurnDiffSummary(artifact: XenoArtifactEnvelope): TurnDiffSummary;
|
|
605
|
-
|
|
605
|
+
declare const XENO_PAGE_ENTRY = "index.html";
|
|
606
|
+
declare const XENO_PAGE_MAX_BYTES: number;
|
|
607
|
+
declare const XENO_PAGE_MAX_FILES = 255;
|
|
608
|
+
type XenoPageHome = "local" | "cloud";
|
|
609
|
+
interface XenoPageFileInput {
|
|
610
|
+
path: string;
|
|
611
|
+
bytes: Uint8Array | string;
|
|
612
|
+
contentType?: string;
|
|
613
|
+
}
|
|
614
|
+
interface XenoPageFileRecord {
|
|
615
|
+
sha256: string;
|
|
616
|
+
sizeBytes: number;
|
|
617
|
+
contentType: string;
|
|
618
|
+
}
|
|
619
|
+
interface XenoPagePublication {
|
|
620
|
+
home: XenoPageHome;
|
|
621
|
+
url?: string;
|
|
622
|
+
publishedAt: string;
|
|
623
|
+
remoteId?: string;
|
|
624
|
+
}
|
|
625
|
+
interface XenoPublishPageInput {
|
|
626
|
+
artifactId?: string;
|
|
627
|
+
html: string;
|
|
628
|
+
files?: XenoPageFileInput[];
|
|
629
|
+
title?: string;
|
|
630
|
+
description?: string;
|
|
631
|
+
icon?: string;
|
|
632
|
+
producer: XenoArtifactActor;
|
|
633
|
+
identity?: XenoArtifactIdentity;
|
|
634
|
+
home?: XenoPageHome;
|
|
635
|
+
}
|
|
636
|
+
interface XenoPublishedPage {
|
|
637
|
+
artifactId: string;
|
|
638
|
+
revision: number;
|
|
639
|
+
title: string;
|
|
640
|
+
description?: string;
|
|
641
|
+
icon?: string;
|
|
642
|
+
hash: string;
|
|
643
|
+
sizeBytes: number;
|
|
644
|
+
files: Record<string, XenoPageFileRecord>;
|
|
645
|
+
directory: string;
|
|
646
|
+
entryPath: string;
|
|
647
|
+
publications: XenoPagePublication[];
|
|
648
|
+
createdAt: string;
|
|
649
|
+
updatedAt?: string;
|
|
650
|
+
unchanged?: boolean;
|
|
651
|
+
}
|
|
652
|
+
interface XenoPageStoreOptions {
|
|
653
|
+
repository: XenoArtifactRepository;
|
|
654
|
+
directory: string;
|
|
655
|
+
now?: () => string;
|
|
656
|
+
maxBytes?: number;
|
|
657
|
+
}
|
|
658
|
+
declare function pageContentType(path: string): string;
|
|
659
|
+
declare function extractPageTitle(html: string): string | undefined;
|
|
660
|
+
declare function normalizePagePath(path: string): {
|
|
661
|
+
path: string;
|
|
662
|
+
} | {
|
|
663
|
+
error: string;
|
|
664
|
+
};
|
|
665
|
+
declare class XenoPageStore {
|
|
666
|
+
readonly repository: XenoArtifactRepository;
|
|
667
|
+
readonly directory: string;
|
|
668
|
+
private readonly now;
|
|
669
|
+
private readonly maxBytes;
|
|
670
|
+
constructor(options: XenoPageStoreOptions);
|
|
671
|
+
revisionDirectory(artifactId: string, revision: number): string;
|
|
672
|
+
publish(input: XenoPublishPageInput): Promise<XenoPublishedPage>;
|
|
673
|
+
recordPublication(artifactId: string, publication: XenoPagePublication): Promise<XenoPublishedPage>;
|
|
674
|
+
private sidecarPath;
|
|
675
|
+
private writeSidecar;
|
|
676
|
+
private readSidecar;
|
|
677
|
+
get(artifactId: string, revision?: number): Promise<XenoPublishedPage | undefined>;
|
|
678
|
+
list(): Promise<XenoPublishedPage[]>;
|
|
679
|
+
resolveFile(artifactId: string, revision: number, relativePath: string): {
|
|
680
|
+
path: string;
|
|
681
|
+
contentType: string;
|
|
682
|
+
} | undefined;
|
|
683
|
+
readEntry(artifactId: string, revision: number): string | undefined;
|
|
684
|
+
readRevision(artifactId: string, revision: number): {
|
|
685
|
+
html: string;
|
|
686
|
+
files: XenoPageFileInput[];
|
|
687
|
+
};
|
|
688
|
+
addComment(artifactId: string, body: string, actor: XenoArtifactActor, anchor?: XenoArtifactAnchor): Promise<Extract<XenoArtifactReviewEvent, {
|
|
689
|
+
type: "comment-added";
|
|
690
|
+
}>>;
|
|
691
|
+
listComments(artifactId: string): Promise<Array<Extract<XenoArtifactReviewEvent, {
|
|
692
|
+
type: "comment-added";
|
|
693
|
+
}>>>;
|
|
694
|
+
private toPublished;
|
|
695
|
+
}
|
|
696
|
+
export { type AddXenoArtifactCommentRequest, type DecideXenoArtifactRequest, FileXenoArtifactRepository, type FileXenoArtifactRepositoryOptions, InMemoryXenoArtifactRepository, type InMemoryXenoArtifactRepositoryOptions, type SetXenoArtifactCommentResolutionRequest, XENO_ARTIFACT_FILE_REPOSITORY_SCHEMA_VERSION, XENO_ARTIFACT_SCHEMA_VERSION, XENO_PAGE_ENTRY, XENO_PAGE_MAX_BYTES, XENO_PAGE_MAX_FILES, XENO_REVIEW_DIMENSIONS, XENO_REVIEW_EVIDENCE_KINDS, 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 XenoPageFileInput, type XenoPageFileRecord, type XenoPageHome, type XenoPagePublication, XenoPageStore, type XenoPageStoreOptions, type XenoPublishPageInput, type XenoPublishedPage, type XenoReviewAgentExecutor, type XenoReviewAgentResult, type XenoReviewArtifactContext, type XenoReviewCoordinatorContext, type XenoReviewDimension, type XenoReviewEvidence, type XenoReviewEvidenceKind, 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, extractPageTitle, legacyAgentArtifactToXenoArtifact, normalizePagePath, normalizeRepositoryRelativePath, pageContentType, sha256ArtifactBytes, sha256ArtifactJson, summarizeXenoArtifactReview, toolEvidenceToXenoArtifact, turnDiffSummaryToXenoArtifact, validateXenoArtifact, validateXenoArtifactReviewEvent, validateXenoEvidenceGraph, validateXenoSpecDocument, xenoArtifactToLegacyAgentArtifact, xenoArtifactToReviewReport, xenoArtifactToSpecDocument, xenoArtifactToSpecExecution, xenoArtifactToToolEvidence, xenoArtifactToTurnDiffSummary, xenoReviewReportToArtifact, xenoReviewReportToGitHubComments, xenoSpecArtifactIds, xenoSpecExecutionToArtifact, xenoSpecToArtifactBundle };
|