@zigrivers/surface-core 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -959,6 +959,14 @@ declare const SurfaceErrorCodeSchema: z.ZodEnum<{
959
959
  no_decision_flag: "no_decision_flag";
960
960
  config_invalid: "config_invalid";
961
961
  policy_invalid: "policy_invalid";
962
+ qa_unavailable: "qa_unavailable";
963
+ target_not_allowed: "target_not_allowed";
964
+ action_policy_denied: "action_policy_denied";
965
+ flow_invalid: "flow_invalid";
966
+ flow_step_failed: "flow_step_failed";
967
+ evidence_unavailable: "evidence_unavailable";
968
+ replay_failed: "replay_failed";
969
+ promotion_rejected: "promotion_rejected";
962
970
  capture_unreachable: "capture_unreachable";
963
971
  auth_injection_failed: "auth_injection_failed";
964
972
  capture_failed: "capture_failed";
@@ -1025,6 +1033,38 @@ declare const SURFACE_ERROR_DEFINITIONS: {
1025
1033
  readonly kind: "ConfigError";
1026
1034
  readonly exitCode: 1;
1027
1035
  };
1036
+ readonly qa_unavailable: {
1037
+ readonly kind: "RuntimeError";
1038
+ readonly exitCode: 1;
1039
+ };
1040
+ readonly target_not_allowed: {
1041
+ readonly kind: "ConfigError";
1042
+ readonly exitCode: 1;
1043
+ };
1044
+ readonly action_policy_denied: {
1045
+ readonly kind: "RuntimeError";
1046
+ readonly exitCode: 1;
1047
+ };
1048
+ readonly flow_invalid: {
1049
+ readonly kind: "ConfigError";
1050
+ readonly exitCode: 1;
1051
+ };
1052
+ readonly flow_step_failed: {
1053
+ readonly kind: "RuntimeError";
1054
+ readonly exitCode: 1;
1055
+ };
1056
+ readonly evidence_unavailable: {
1057
+ readonly kind: "StateError";
1058
+ readonly exitCode: 1;
1059
+ };
1060
+ readonly replay_failed: {
1061
+ readonly kind: "RuntimeError";
1062
+ readonly exitCode: 1;
1063
+ };
1064
+ readonly promotion_rejected: {
1065
+ readonly kind: "RuntimeError";
1066
+ readonly exitCode: 1;
1067
+ };
1028
1068
  readonly capture_unreachable: {
1029
1069
  readonly kind: "CaptureError";
1030
1070
  readonly exitCode: 1;
@@ -1171,6 +1211,14 @@ declare const SurfaceErrorSchema: z.ZodObject<{
1171
1211
  no_decision_flag: "no_decision_flag";
1172
1212
  config_invalid: "config_invalid";
1173
1213
  policy_invalid: "policy_invalid";
1214
+ qa_unavailable: "qa_unavailable";
1215
+ target_not_allowed: "target_not_allowed";
1216
+ action_policy_denied: "action_policy_denied";
1217
+ flow_invalid: "flow_invalid";
1218
+ flow_step_failed: "flow_step_failed";
1219
+ evidence_unavailable: "evidence_unavailable";
1220
+ replay_failed: "replay_failed";
1221
+ promotion_rejected: "promotion_rejected";
1174
1222
  capture_unreachable: "capture_unreachable";
1175
1223
  auth_injection_failed: "auth_injection_failed";
1176
1224
  capture_failed: "capture_failed";
@@ -2565,6 +2613,11 @@ interface PersistedArtifactRef {
2565
2613
  readonly path: string;
2566
2614
  readonly sha256: string;
2567
2615
  }
2616
+ interface QaSidecarRef {
2617
+ readonly id: string;
2618
+ readonly manifestDigest?: string;
2619
+ readonly path: string;
2620
+ }
2568
2621
  interface ArtifactWriter {
2569
2622
  writeArtifact(intent: PersistArtifactIntent): MaybePromise<Result<PersistedArtifactRef, SurfaceError>>;
2570
2623
  }
@@ -2662,4 +2715,4 @@ interface StateStore {
2662
2715
  writeArtifact(intent: PersistArtifactIntent): MaybePromise<Result<PersistedArtifactRef, SurfaceError>>;
2663
2716
  }
2664
2717
 
2665
- export { type EdgeErrorContext as $, type AppType as A, type Backlog as B, type Capture as C, type CliErrorEnvelope as D, type CliExitCode as E, CliExitCodeSchema as F, type ComponentMap as G, type ComponentMapEntry as H, type ConfidenceBand as I, ConfidenceBandSchema as J, type ConfidenceCutoffs as K, ConfidenceCutoffsLayerSchema as L, ConfidenceCutoffsSchema as M, ContrastHexSuggestedPatchSchema as N, type CreateBaselineInput as O, type CreateSurfaceErrorOptions as P, type CreateTrackedFindingInput as Q, DEFAULT_FINDINGS_POLICY as R, DEFAULT_SURFACE_CONFIG as S, type DegradationReport as T, type Depth as U, DepthSchema as V, type DiffableTrackedFinding as W, type Dimensions as X, DimensionsSchema as Y, type DomEvidence as Z, DomEvidenceSchema as _, AppTypeSchema as a, type ModelProvider as a$, type EvaluationConfig as a0, EvaluationConfigLayerSchema as a1, EvaluationConfigSchema as a2, type EvaluationMethod as a3, EvaluationMethodSchema as a4, type Evidence as a5, EvidenceSchema as a6, type ExportTarget as a7, ExportTargetSchema as a8, FRESHNESS_VOLATILITIES as a9, type GateResult as aA, type GroundingTool as aB, type IdentityAnchorKind as aC, IdentityAnchorKindSchema as aD, type IdentityDriftResult as aE, IdentityDriftResultSchema as aF, type IssueExport as aG, type IssueExportTarget as aH, type IssueExporter as aI, JUDGED_COVERAGE_UNAVAILABLE_MESSAGE as aJ, KNOWLEDGE_CATEGORIES as aK, type KnowledgeCategory as aL, type KnowledgeEntry as aM, type KnowledgeSource as aN, type Lens as aO, type LensContext as aP, type LocalBacklogRef as aQ, type Location as aR, LocationSchema as aS, type McpStructuredError as aT, type ModelAvailability as aU, ModelAvailabilitySchema as aV, type ModelCompletionAdapter as aW, type ModelLensSkip as aX, ModelLensSkipSchema as aY, type ModelPrompt as aZ, ModelPromptSchema as a_, type Finding as aa, type FindingDraft as ab, FindingDraftSchema as ac, type FindingIdentity as ad, type FindingIdentityAssignment as ae, FindingIdentityAssignmentSchema as af, type FindingIdentityCandidate as ag, FindingIdentityCandidateSchema as ah, FindingIdentitySchema as ai, FindingSchema as aj, type FindingStatus as ak, type FindingsEnvelope as al, FindingsEnvelopeSchema as am, type FindingsPolicy as an, FindingsPolicyLayerSchema as ao, FindingsPolicySchema as ap, type FrameworkAdapter as aq, type Freshness as ar, type FreshnessVolatility as as, type GateDisposition as at, type GateEvaluationContext as au, type GateEvaluator as av, type GatePolicy$1 as aw, type GatePolicy as ax, GatePolicyLayerSchema as ay, GatePolicySchema as az, type ApplyWaiversInput as b, type TargetVerification as b$, type ModelProviderConfig as b0, type ModelProviderConfigInput as b1, ModelProviderConfigSchema as b2, type ModelProviderId as b3, type ModelProviderResolution as b4, type ModelRequest as b5, ModelRequestSchema as b6, type ModelResponse as b7, ModelResponseSchema as b8, type PersistArtifactIntent as b9, SeverityCutoffsLayerSchema as bA, SeverityCutoffsSchema as bB, type SourceFileRef as bC, type StableFindingIdentityAssignment as bD, StableFindingIdentityAssignmentSchema as bE, StableIdentityDriftResultSchema as bF, type Stack as bG, StackSchema as bH, type StateStore as bI, type SuggestedPatch as bJ, SuggestedPatchSchema as bK, type SurfaceConfig as bL, type SurfaceConfigLayer as bM, SurfaceConfigLayerSchema as bN, type SurfaceConfigLayers as bO, SurfaceConfigLayersSchema as bP, SurfaceConfigSchema as bQ, type SurfaceError as bR, type SurfaceErrorCode as bS, SurfaceErrorCodeSchema as bT, type SurfaceErrorDefinition as bU, type SurfaceErrorKind as bV, SurfaceErrorKindSchema as bW, SurfaceErrorSchema as bX, type Target as bY, type TargetKind as bZ, TargetSizeSuggestedPatchSchema as b_, type PersistedArtifactRef as ba, type Preset as bb, PresetSchema as bc, type ProjectBacklogSnapshot as bd, type ProjectFindingSnapshot as be, type ProjectRunRecord as bf, type ProjectStateSnapshot as bg, type ProjectVerdictSnapshot as bh, type Rect as bi, RectSchema as bj, type RedactionRule as bk, RedactionRuleSchema as bl, type RelevanceQuery as bm, type Report as bn, type ReportFormat as bo, type ReportRenderer as bp, type ReportingConfig as bq, ReportingConfigLayerSchema as br, ReportingConfigSchema as bs, type Result as bt, SURFACE_ERROR_DEFINITIONS as bu, type ScreenshotRegionEvidence as bv, ScreenshotRegionEvidenceSchema as bw, type SeverityBand as bx, SeverityBandSchema as by, type SeverityCutoffs as bz, AriaAttributeSuggestedPatchSchema as c, type Theme as c0, type ToolResult as c1, type ToolResultEvidence as c2, ToolResultEvidenceSchema as c3, type TrackedFinding as c4, type TrackedFindingHistoryEntry as c5, type TrackedFindingTransition as c6, type TrackedFindingsDiff as c7, type TrackedFindingsDiffEntry as c8, type ValidationCheck as c9, scoreFinding as cA, synthesizeBacklog as cB, toCliErrorEnvelope as cC, toMcpError as cD, transitionTrackedFinding as cE, type Viewport$1 as ca, type Viewport as cb, type ViewportLabel as cc, ViewportSchema as cd, type Waiver as ce, applyWaiversToTrackedFindings as cf, assignFindingIdentities as cg, createBaseline as ch, createConfiguredModelProvider as ci, createSurfaceError as cj, createTrackedFinding as ck, createUnavailableModelProvider as cl, deriveFindingIdentity as cm, deriveFindingIdentityCandidate as cn, diffTrackedFindings as co, err as cp, exitCodeForSurfaceError as cq, identityInternalsForTesting as cr, isErr as cs, isOk as ct, isWaiverActive as cu, matchFindingIdentity as cv, modelSkipForLens as cw, ok as cx, resolveModelProviderConfig as cy, resolveSurfaceConfig as cz, type ArtifactWriter as d, type BacklogEntry as e, BacklogEntrySchema as f, BacklogSchema as g, type Baseline as h, type BrokenFindingIdentityAssignment as i, BrokenFindingIdentityAssignmentSchema as j, BrokenIdentityDriftResultSchema as k, type BuiltInCaptureBackendId as l, type BuiltInIssueExportTarget as m, type BuiltInReportFormat as n, type CaptureArtifact as o, type CaptureArtifactType as p, type CaptureBackend as q, type CaptureConfig as r, CaptureConfigLayerSchema as s, CaptureConfigSchema as t, type CaptureNetworkPolicy as u, type CaptureOptions as v, type CaptureStatus as w, type Citation as x, type CitedHeuristicEvidence as y, CitedHeuristicEvidenceSchema as z };
2718
+ export { type EdgeErrorContext as $, type AppType as A, type Backlog as B, type Capture as C, type CliErrorEnvelope as D, type CliExitCode as E, CliExitCodeSchema as F, type ComponentMap as G, type ComponentMapEntry as H, type ConfidenceBand as I, ConfidenceBandSchema as J, type ConfidenceCutoffs as K, ConfidenceCutoffsLayerSchema as L, ConfidenceCutoffsSchema as M, ContrastHexSuggestedPatchSchema as N, type CreateBaselineInput as O, type CreateSurfaceErrorOptions as P, type CreateTrackedFindingInput as Q, DEFAULT_FINDINGS_POLICY as R, DEFAULT_SURFACE_CONFIG as S, type DegradationReport as T, type Depth as U, DepthSchema as V, type DiffableTrackedFinding as W, type Dimensions as X, DimensionsSchema as Y, type DomEvidence as Z, DomEvidenceSchema as _, AppTypeSchema as a, type ModelProvider as a$, type EvaluationConfig as a0, EvaluationConfigLayerSchema as a1, EvaluationConfigSchema as a2, type EvaluationMethod as a3, EvaluationMethodSchema as a4, type Evidence as a5, EvidenceSchema as a6, type ExportTarget as a7, ExportTargetSchema as a8, FRESHNESS_VOLATILITIES as a9, type GateResult as aA, type GroundingTool as aB, type IdentityAnchorKind as aC, IdentityAnchorKindSchema as aD, type IdentityDriftResult as aE, IdentityDriftResultSchema as aF, type IssueExport as aG, type IssueExportTarget as aH, type IssueExporter as aI, JUDGED_COVERAGE_UNAVAILABLE_MESSAGE as aJ, KNOWLEDGE_CATEGORIES as aK, type KnowledgeCategory as aL, type KnowledgeEntry as aM, type KnowledgeSource as aN, type Lens as aO, type LensContext as aP, type LocalBacklogRef as aQ, type Location as aR, LocationSchema as aS, type McpStructuredError as aT, type ModelAvailability as aU, ModelAvailabilitySchema as aV, type ModelCompletionAdapter as aW, type ModelLensSkip as aX, ModelLensSkipSchema as aY, type ModelPrompt as aZ, ModelPromptSchema as a_, type Finding as aa, type FindingDraft as ab, FindingDraftSchema as ac, type FindingIdentity as ad, type FindingIdentityAssignment as ae, FindingIdentityAssignmentSchema as af, type FindingIdentityCandidate as ag, FindingIdentityCandidateSchema as ah, FindingIdentitySchema as ai, FindingSchema as aj, type FindingStatus as ak, type FindingsEnvelope as al, FindingsEnvelopeSchema as am, type FindingsPolicy as an, FindingsPolicyLayerSchema as ao, FindingsPolicySchema as ap, type FrameworkAdapter as aq, type Freshness as ar, type FreshnessVolatility as as, type GateDisposition as at, type GateEvaluationContext as au, type GateEvaluator as av, type GatePolicy as aw, type GatePolicy$1 as ax, GatePolicyLayerSchema as ay, GatePolicySchema as az, type ApplyWaiversInput as b, TargetSizeSuggestedPatchSchema as b$, type ModelProviderConfig as b0, type ModelProviderConfigInput as b1, ModelProviderConfigSchema as b2, type ModelProviderId as b3, type ModelProviderResolution as b4, type ModelRequest as b5, ModelRequestSchema as b6, type ModelResponse as b7, ModelResponseSchema as b8, type PersistArtifactIntent as b9, type SeverityCutoffs as bA, SeverityCutoffsLayerSchema as bB, SeverityCutoffsSchema as bC, type SourceFileRef as bD, type StableFindingIdentityAssignment as bE, StableFindingIdentityAssignmentSchema as bF, StableIdentityDriftResultSchema as bG, type Stack as bH, StackSchema as bI, type StateStore as bJ, type SuggestedPatch as bK, SuggestedPatchSchema as bL, type SurfaceConfig as bM, type SurfaceConfigLayer as bN, SurfaceConfigLayerSchema as bO, type SurfaceConfigLayers as bP, SurfaceConfigLayersSchema as bQ, SurfaceConfigSchema as bR, type SurfaceError as bS, type SurfaceErrorCode as bT, SurfaceErrorCodeSchema as bU, type SurfaceErrorDefinition as bV, type SurfaceErrorKind as bW, SurfaceErrorKindSchema as bX, SurfaceErrorSchema as bY, type Target as bZ, type TargetKind as b_, type PersistedArtifactRef as ba, type Preset as bb, PresetSchema as bc, type ProjectBacklogSnapshot as bd, type ProjectFindingSnapshot as be, type ProjectRunRecord as bf, type ProjectStateSnapshot as bg, type ProjectVerdictSnapshot as bh, type QaSidecarRef as bi, type Rect as bj, RectSchema as bk, type RedactionRule as bl, RedactionRuleSchema as bm, type RelevanceQuery as bn, type Report as bo, type ReportFormat as bp, type ReportRenderer as bq, type ReportingConfig as br, ReportingConfigLayerSchema as bs, ReportingConfigSchema as bt, type Result as bu, SURFACE_ERROR_DEFINITIONS as bv, type ScreenshotRegionEvidence as bw, ScreenshotRegionEvidenceSchema as bx, type SeverityBand as by, SeverityBandSchema as bz, AriaAttributeSuggestedPatchSchema as c, type TargetVerification as c0, type Theme as c1, type ToolResult as c2, type ToolResultEvidence as c3, ToolResultEvidenceSchema as c4, type TrackedFinding as c5, type TrackedFindingHistoryEntry as c6, type TrackedFindingTransition as c7, type TrackedFindingsDiff as c8, type TrackedFindingsDiffEntry as c9, resolveSurfaceConfig as cA, scoreFinding as cB, synthesizeBacklog as cC, toCliErrorEnvelope as cD, toMcpError as cE, transitionTrackedFinding as cF, type ValidationCheck as ca, type Viewport$1 as cb, type Viewport as cc, type ViewportLabel as cd, ViewportSchema as ce, type Waiver as cf, applyWaiversToTrackedFindings as cg, assignFindingIdentities as ch, createBaseline as ci, createConfiguredModelProvider as cj, createSurfaceError as ck, createTrackedFinding as cl, createUnavailableModelProvider as cm, deriveFindingIdentity as cn, deriveFindingIdentityCandidate as co, diffTrackedFindings as cp, err as cq, exitCodeForSurfaceError as cr, identityInternalsForTesting as cs, isErr as ct, isOk as cu, isWaiverActive as cv, matchFindingIdentity as cw, modelSkipForLens as cx, ok as cy, resolveModelProviderConfig as cz, type ArtifactWriter as d, type BacklogEntry as e, BacklogEntrySchema as f, BacklogSchema as g, type Baseline as h, type BrokenFindingIdentityAssignment as i, BrokenFindingIdentityAssignmentSchema as j, BrokenIdentityDriftResultSchema as k, type BuiltInCaptureBackendId as l, type BuiltInIssueExportTarget as m, type BuiltInReportFormat as n, type CaptureArtifact as o, type CaptureArtifactType as p, type CaptureBackend as q, type CaptureConfig as r, CaptureConfigLayerSchema as s, CaptureConfigSchema as t, type CaptureNetworkPolicy as u, type CaptureOptions as v, type CaptureStatus as w, type Citation as x, type CitedHeuristicEvidence as y, CitedHeuristicEvidenceSchema as z };