@vypdev/copilot 3.10.6 → 3.10.7

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.
@@ -1,3 +1,4 @@
1
+ import { type ProgressResponseDiagnosticFacts } from '../../domain/progress_response_diagnostic';
1
2
  import { type ProgressBinaryEvidenceFacts } from '../../domain/progress_binary_evidence_diagnostic';
2
3
  import { type IssueWorkflowDiagnosticFacts } from '../../domain/issue_workflow_diagnostic';
3
4
  import { type ChangeSizeReconciliationFacts } from '../../domain/change_size_reconciliation';
@@ -7,9 +8,10 @@ import { type ClosedIssueReconciliationFacts } from '../../domain/closed_issue_r
7
8
  import { type ApprovalEvidenceDiagnostic } from '../../domain/approval_evidence_diagnostic';
8
9
  import { type BranchSyncValidationCode } from '../../domain/branch_sync_validation';
9
10
  import { type BranchSyncVerificationFailure } from '../../domain/verification_failure';
11
+ import { type BranchSyncCatalogDiagnostic } from '../../domain/branch_sync_catalog_diagnostic';
10
12
  export type ApplicationErrorKind = 'configuration' | 'authorization' | 'provider' | 'agent' | 'validation' | 'workflow' | 'unknown';
11
13
  export type ApplicationErrorCode = 'configuration.invalid' | 'configuration.unsupported' | 'authorization.denied' | 'authorization.credential-invalid' | 'provider.not-found' | 'provider.conflict' | 'provider.rate-limited' | 'provider.unavailable' | 'provider.contract-invalid' | 'agent.policy-rejected' | 'agent.failed' | 'locale.output-invalid' | 'locale.translation-failed' | 'validation.invalid-input' | 'validation.evidence-too-large' | 'validation.evidence-unavailable' | 'workflow.invalid-event' | 'workflow.stale' | 'workflow.cancelled' | 'workflow.failed' | 'workflow.presentation-pending' | 'timeout' | 'unexpected';
12
- export declare const APPLICATION_ERROR_RECOVERY_IDS: readonly ["comment-command-length", "comment-command-name-missing", "comment-command-name-unknown", "comment-command-argument-count", "comment-command-arguments-unexpected", "comment-command-arguments-missing", "comment-command-finding-quoting", "comment-command-review-format", "comment-command-review-effort", "comment-command-review-boolean", "comment-command-review-option", "comment-command-sync-option", "comment-command-sync-parent", "pull-request-link-restored", "pull-request-link-base-retained", "pull-request-link-reference-retained", "pull-request-link-base-and-reference-retained", "managed-branch-enrichment-failed", "inactivity-explanation-failed", "bugbot-review-blocks-pending", "branch-sync-agent-disabled", "branch-sync-fixer-unavailable", "branch-sync-resolution-invalid", "branch-sync-verification-failed", "sdd-draft-size-exceeded", "sdd-catalog-unsupported-profile", "sdd-catalog-format-invalid", "sdd-draft-format-invalid", "sdd-draft-case-identity-invalid", "sdd-draft-case-budget-invalid", "sdd-draft-requirement-mapping-invalid", "sdd-draft-repository-path-invalid", "deployment-publication-context-missing", "workspace-changes-rejected", "closed-issue-reconciliation-failed", "approval-evidence-read-failed", "change-size-reconciliation-failed", "issue-workflow-admission-blocked", "progress-binary-evidence-unavailable", "stored-configuration-schema-missing", "stored-configuration-schema-unsupported", "stored-configuration-invalid"];
14
+ export declare const APPLICATION_ERROR_RECOVERY_IDS: readonly ["comment-command-length", "comment-command-name-missing", "comment-command-name-unknown", "comment-command-argument-count", "comment-command-arguments-unexpected", "comment-command-arguments-missing", "comment-command-finding-quoting", "comment-command-review-format", "comment-command-review-effort", "comment-command-review-boolean", "comment-command-review-option", "comment-command-sync-option", "comment-command-sync-parent", "pull-request-link-restored", "pull-request-link-base-retained", "pull-request-link-reference-retained", "pull-request-link-base-and-reference-retained", "managed-branch-enrichment-failed", "inactivity-explanation-failed", "bugbot-review-blocks-pending", "branch-sync-agent-disabled", "branch-sync-fixer-unavailable", "branch-sync-resolution-invalid", "branch-sync-verification-failed", "branch-sync-catalog-incompatible", "sdd-draft-size-exceeded", "sdd-catalog-unsupported-profile", "sdd-catalog-format-invalid", "sdd-catalog-missing-trusted-source", "sdd-draft-format-invalid", "sdd-draft-case-identity-invalid", "sdd-draft-case-budget-invalid", "sdd-draft-requirement-mapping-invalid", "sdd-draft-repository-path-invalid", "deployment-publication-context-missing", "workspace-changes-rejected", "closed-issue-reconciliation-failed", "approval-evidence-read-failed", "change-size-reconciliation-failed", "issue-workflow-admission-blocked", "progress-binary-evidence-unavailable", "progress-result-contract-invalid", "stored-configuration-schema-missing", "stored-configuration-schema-unsupported", "stored-configuration-invalid"];
13
15
  export type ApplicationErrorRecoveryId = typeof APPLICATION_ERROR_RECOVERY_IDS[number];
14
16
  interface ApplicationErrorRecoveryVariables extends Readonly<Record<CopilotCommandValidationReason, Readonly<{
15
17
  command: CopilotCommandName;
@@ -32,6 +34,7 @@ interface ApplicationErrorRecoveryVariables extends Readonly<Record<CopilotComma
32
34
  readonly 'change-size-reconciliation-failed': ChangeSizeReconciliationFacts;
33
35
  readonly 'issue-workflow-admission-blocked': IssueWorkflowDiagnosticFacts;
34
36
  readonly 'progress-binary-evidence-unavailable': ProgressBinaryEvidenceFacts;
37
+ readonly 'progress-result-contract-invalid': ProgressResponseDiagnosticFacts;
35
38
  readonly 'pull-request-link-restored': Readonly<Record<string, never>>;
36
39
  readonly 'pull-request-link-base-retained': Readonly<Record<string, never>>;
37
40
  readonly 'pull-request-link-reference-retained': Readonly<Record<string, never>>;
@@ -56,9 +59,13 @@ interface ApplicationErrorRecoveryVariables extends Readonly<Record<CopilotComma
56
59
  command: '/copilot sync-branch';
57
60
  }>;
58
61
  readonly 'branch-sync-verification-failed': BranchSyncVerificationFailure;
62
+ readonly 'branch-sync-catalog-incompatible': BranchSyncCatalogDiagnostic & Readonly<{
63
+ abort: 'completed' | 'unverified';
64
+ }>;
59
65
  readonly 'sdd-draft-size-exceeded': Readonly<Record<string, never>>;
60
66
  readonly 'sdd-catalog-unsupported-profile': Readonly<Record<string, never>>;
61
67
  readonly 'sdd-catalog-format-invalid': Readonly<Record<string, never>>;
68
+ readonly 'sdd-catalog-missing-trusted-source': Readonly<Record<string, never>>;
62
69
  readonly 'sdd-draft-format-invalid': Readonly<Record<string, never>>;
63
70
  readonly 'sdd-draft-case-identity-invalid': Readonly<Record<string, never>>;
64
71
  readonly 'sdd-draft-case-budget-invalid': Readonly<Record<string, never>>;
@@ -0,0 +1,24 @@
1
+ /** Closed compatibility facts; catalog values never become public operands. */
2
+ export declare const BRANCH_SYNC_CATALOG_MAX_BYTES: number;
3
+ export declare const BRANCH_SYNC_CATALOG_PROFILES: readonly ["sdk-v1", "legacy-evidence", "native", "ambiguous", "unknown"];
4
+ export declare const BRANCH_SYNC_CATALOG_PHASES: readonly ["workspace-boundary", "catalog-file-boundary", "metadata-json", "metadata-conflict-markers", "metadata-shape", "profile-compatibility", "evidence-shape", "evidence-path-boundary", "catalog-contract", "index-output"];
5
+ export declare const SDK_CATALOG_PATH_FIELDS: readonly ["specs", "workflows", "entrypoints", "code", "tests", "documentation"];
6
+ export declare const BRANCH_SYNC_CATALOG_FIELDS: readonly ["catalog", "version", "capabilities", "$schema", "specs", "workflows", "entrypoints", "code", "tests", "documentation", "id", "title", "status", "scope", "owner", "lastVerified", "evidence", "specification"];
7
+ export type BranchSyncCatalogProfile = typeof BRANCH_SYNC_CATALOG_PROFILES[number];
8
+ export type BranchSyncCatalogPhase = typeof BRANCH_SYNC_CATALOG_PHASES[number];
9
+ export type BranchSyncCatalogField = typeof BRANCH_SYNC_CATALOG_FIELDS[number];
10
+ export interface BranchSyncCatalogDiagnostic {
11
+ readonly phase: BranchSyncCatalogPhase;
12
+ readonly profile: BranchSyncCatalogProfile;
13
+ readonly field: BranchSyncCatalogField;
14
+ /** Zero is document scope; positive positions identify one capability. */
15
+ readonly capabilityNumber: number;
16
+ }
17
+ export declare function isBranchSyncCatalogDiagnostic(value: unknown): value is BranchSyncCatalogDiagnostic;
18
+ export declare function catalogDiagnostic(phase: BranchSyncCatalogPhase, profile?: BranchSyncCatalogProfile, field?: BranchSyncCatalogField, capabilityNumber?: number): BranchSyncCatalogDiagnostic;
19
+ export declare class BranchSyncCatalogFailure extends Error {
20
+ readonly diagnostic: BranchSyncCatalogDiagnostic;
21
+ constructor(diagnostic: BranchSyncCatalogDiagnostic);
22
+ }
23
+ /** Classifies dialect/array shape only; the bundled validator still owns full SDK conformance. */
24
+ export declare function classifyBranchSyncCatalog(value: unknown): BranchSyncCatalogDiagnostic;
@@ -0,0 +1,26 @@
1
+ export declare const PROGRESS_RESPONSE_PHASES: readonly ["scope", "partition", "assessment"];
2
+ export type ProgressResponsePhase = typeof PROGRESS_RESPONSE_PHASES[number];
3
+ export declare const PROGRESS_RESPONSE_REASONS: Readonly<{
4
+ scope: readonly ["json-invalid", "schema-type", "schema-enum", "schema-string-short", "schema-string-long", "schema-number-finite", "schema-number-min", "schema-number-max", "schema-array-short", "schema-array-long", "schema-required", "schema-additional", "response-not-object", "output-locale-missing", "output-locale-invalid", "output-locale-mismatch", "response-shape-invalid", "scope-incomplete", "scope-entry-invalid", "scope-source-id-invalid", "scope-source-id-duplicate", "scope-classification-invalid", "scope-clause-limit", "scope-no-requirements", "scope-budget"];
5
+ partition: readonly ["json-invalid", "schema-type", "schema-enum", "schema-string-short", "schema-string-long", "schema-number-finite", "schema-number-min", "schema-number-max", "schema-array-short", "schema-array-long", "schema-required", "schema-additional", "response-not-object", "output-locale-missing", "output-locale-invalid", "output-locale-mismatch", "response-shape-invalid", "partition-shape-invalid", "partition-id-invalid", "partition-files-incomplete", "partition-file-invalid", "partition-unit-invalid", "partition-facts-invalid"];
6
+ assessment: readonly ["json-invalid", "schema-type", "schema-enum", "schema-string-short", "schema-string-long", "schema-number-finite", "schema-number-min", "schema-number-max", "schema-array-short", "schema-array-long", "schema-required", "schema-additional", "response-not-object", "output-locale-missing", "output-locale-invalid", "output-locale-mismatch", "response-shape-invalid", "requirements-incomplete", "progress-invalid", "requirement-shape-invalid", "requirement-id-invalid", "requirement-id-duplicate", "scope-uncertain", "requirement-status-invalid", "requirement-evidence-invalid", "requirement-summary-invalid", "requirement-remaining-invalid", "requirement-evidence-mismatch", "progress-completion-mismatch", "assessment-text-limit"];
7
+ }>;
8
+ export type ProgressResponseReason = typeof PROGRESS_RESPONSE_REASONS[ProgressResponsePhase][number];
9
+ export type ProgressResponseDiagnosticFacts = Readonly<{
10
+ phase: ProgressResponsePhase;
11
+ reason: ProgressResponseReason;
12
+ field: string;
13
+ requirementId: string;
14
+ sourceLineId: string;
15
+ }>;
16
+ export declare const isProgressRequirementId: (value: unknown) => value is string;
17
+ export declare const isProgressSourceLineId: (value: unknown) => value is string;
18
+ export declare function isProgressResponseField(phase: ProgressResponsePhase, value: unknown): value is string;
19
+ /** Unknown model keys and oversized locations never become operator field names. */
20
+ export declare function safeProgressResponseField(phase: ProgressResponsePhase, value: unknown): string;
21
+ export declare function isProgressResponseDiagnosticFacts(value: unknown): value is ProgressResponseDiagnosticFacts;
22
+ /** Carries bounded completed-output facts, never a raw output or exception cause. */
23
+ export declare class ProgressResponseContractFailure extends Error {
24
+ readonly facts: ProgressResponseDiagnosticFacts;
25
+ constructor(facts: ProgressResponseDiagnosticFacts);
26
+ }