@vypdev/copilot 3.10.8 → 3.10.10

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.
@@ -32572,6 +32572,16 @@ const ENGLISH_RECOVERY_CONTENT = Object.freeze({
32572
32572
  action: 'Inspect the original issue and the supported assessment protocol. The unchanged 8,000-code-point field limit must include every citation and a nonempty fact. Details: phase {phase}, reason {reason}, field {field}, requirement {requirementId}, original issue line {sourceLineId}. none means no verified identity is available. An identical retry cannot add capacity; preserve every requirement and verification gate when reviewing a supported protocol.',
32573
32573
  retainedState: 'Existing progress labels and published assessments were preserved. No partial result or passing verification is authorized.',
32574
32574
  }),
32575
+ 'progress-sdd-seed-unverified': Object.freeze({
32576
+ impact: 'Commit could not verify the selected SDD draft for this issue and head.',
32577
+ action: 'Check the draft markers and confirm the current selection and verified SDD publication on the linked branch, then rerun Commit.',
32578
+ retainedState: 'Existing progress was retained.',
32579
+ }),
32580
+ 'progress-batch-retained': Object.freeze({
32581
+ impact: 'Progress retained. Verified {verified} of {expected} batches. Complete evidence for the evaluated head is required.',
32582
+ action: 'Inspect the current run and requirement {requirementId}, batch {batch}, reason {reason}. Resolve missing or mismatched evidence and retry a complete assessment within the fixed budget.',
32583
+ retainedState: 'Existing progress labels and published assessments were preserved. No partial percentage was authorized.',
32584
+ }),
32575
32585
  'progress-scope-clause-limit': Object.freeze({
32576
32586
  impact: 'The complete human scope classification selected {observed} {clauseKind} lines; the supported limit is {limit}. Progress was not published.',
32577
32587
  action: 'Inspect the original human scope and classifier result at source {sourceLineId}, phase scope. A fresh valid classification may help; do not remove requirements, promote generated state or raise limits to pass. Genuine over-limit human scope requires a reviewed supported protocol.',
@@ -32778,6 +32788,16 @@ const SPANISH_RECOVERY_CONTENT = Object.freeze({
32778
32788
  action: 'Inspecciona la issue original y el protocolo de evaluación admitido. El límite fijo de 8,000 puntos de código por campo debe incluir cada cita y un dato no vacío. Detalles: fase {phase}, motivo {reason}, campo {field}, requisito {requirementId}, línea original de la issue {sourceLineId}. none indica que no hay una identidad verificada. Repetir el intento no añade capacidad; conserva todos los requisitos y controles de verificación al revisar un protocolo compatible.',
32779
32789
  retainedState: 'Se conservaron las etiquetas de progreso y las evaluaciones publicadas. No se autoriza un resultado parcial ni una verificación aprobada.',
32780
32790
  }),
32791
+ 'progress-sdd-seed-unverified': Object.freeze({
32792
+ impact: 'Commit no pudo verificar el borrador de SDD seleccionado para esta issue y revisión.',
32793
+ action: 'Comprueba los marcadores del borrador y confirma la selección y la publicación verificada del SDD en la rama vinculada. Después, vuelve a ejecutar Commit.',
32794
+ retainedState: 'Se conservó el progreso anterior.',
32795
+ }),
32796
+ 'progress-batch-retained': Object.freeze({
32797
+ impact: 'Progreso conservado. Se verificaron {verified} de {expected} lotes. Se exige evidencia completa de la revisión evaluada.',
32798
+ action: 'Inspecciona la ejecución y el requisito {requirementId}, lote {batch}, motivo {reason}. Resuelve la evidencia ausente o incompatible y repite la evaluación completa dentro del presupuesto fijo.',
32799
+ retainedState: 'Se conservaron las etiquetas y evaluaciones de progreso anteriores. No se autorizó un porcentaje parcial.',
32800
+ }),
32781
32801
  'progress-scope-clause-limit': Object.freeze({
32782
32802
  impact: 'La clasificación completa del alcance humano seleccionó {observed} líneas de tipo {clauseKind}; el límite admitido es {limit}. No se publicó el progreso.',
32783
32803
  action: 'Inspecciona el alcance humano original y la clasificación en la línea {sourceLineId}, fase scope. Una nueva clasificación válida puede ayudar; no elimines requisitos, conviertas estado generado en requisitos ni aumentes límites para aprobar. El alcance humano que excede el límite necesita un protocolo compatible revisado.',
@@ -33740,11 +33760,13 @@ exports.ENGLISH_PROGRESS_CAPACITY_LABELS = {
33740
33760
  capacityAggregateEnvelope: 'receipt envelope and minimum payload reservation', capacityMinimumFacts: 'minimum complete fact reservation',
33741
33761
  capacityUnitCount: 'evidence-unit count', capacityAggregateFacts: 'complete aggregate facts', capacityInvalidAllocation: 'invalid capacity allocation',
33742
33762
  capacitySourceUnitCount: 'source-unit count',
33763
+ capacityAssessmentSummary: 'progress summary field', capacityAssessmentRemaining: 'progress remaining field',
33743
33764
  capacityMaximumMeasurement: 'Measured or required: {observedCount} {unit}; maximum available: {supportedLimit} {unit} ({countKind}).',
33744
33765
  capacityMinimumMeasurement: 'Measured: {observedCount} {unit}; minimum required: {supportedLimit} {unit} ({countKind}).',
33745
33766
  capacityUnavailableMeasurement: 'Usage and applicable allocation are unavailable.',
33746
33767
  capacityContextUnavailable: 'Source and path-coverage context are unavailable.',
33747
33768
  capacitySourceLine: 'Original physical source line: {sourceLineId}.',
33769
+ capacityAssessmentContext: 'Complete inventory: {requirementCount} requirements. Batch: {batch}; requirement: {requirementId}. Batch 0 identifies complete reduction; none means no single requirement is attributed.',
33748
33770
  capacityManifestUnavailable: 'not available at this boundary', capacityNoPaths: 'no uncovered paths',
33749
33771
  capacityComparison: 'Pinned comparison: {baseSha} → {headSha}. Required-path inventory: {requiredPathsDigest}; source manifest: {manifestDigest}. Accepted progress path receipts: {reviewedPathCount}/{requiredPathCount}; uncovered: {uncoveredPathCount}. Receipt-path inventory: {reviewedPathsDigest}; uncovered-path inventory: {uncoveredPathsDigest}. Paths: {paths}.',
33750
33772
  };
@@ -33761,11 +33783,13 @@ exports.SPANISH_PROGRESS_CAPACITY_LABELS = {
33761
33783
  capacityAggregateEnvelope: 'envoltura de recibos y reserva mínima de contenido', capacityMinimumFacts: 'reserva mínima de hechos completos',
33762
33784
  capacityUnitCount: 'cantidad de unidades de evidencia', capacityAggregateFacts: 'hechos completos del agregado', capacityInvalidAllocation: 'asignación de capacidad no válida',
33763
33785
  capacitySourceUnitCount: 'cantidad de unidades de origen',
33786
+ capacityAssessmentSummary: 'campo de resumen del progreso', capacityAssessmentRemaining: 'campo de trabajo pendiente del progreso',
33764
33787
  capacityMaximumMeasurement: 'Medido o requerido: {observedCount} {unit}; máximo disponible: {supportedLimit} {unit} ({countKind}).',
33765
33788
  capacityMinimumMeasurement: 'Medido: {observedCount} {unit}; mínimo requerido: {supportedLimit} {unit} ({countKind}).',
33766
33789
  capacityUnavailableMeasurement: 'El uso y la asignación aplicable no están disponibles.',
33767
33790
  capacityContextUnavailable: 'El contexto de origen y cobertura de rutas no está disponible.',
33768
33791
  capacitySourceLine: 'Línea física de origen: {sourceLineId}.',
33792
+ capacityAssessmentContext: 'Inventario completo: {requirementCount} requisitos. Lote: {batch}; requisito: {requirementId}. El lote 0 identifica la reducción completa; none indica que no se atribuye a un único requisito.',
33769
33793
  capacityManifestUnavailable: 'no disponible en este límite', capacityNoPaths: 'ninguna ruta sin cubrir',
33770
33794
  capacityComparison: 'Comparación fijada: {baseSha} → {headSha}. Inventario de rutas requeridas: {requiredPathsDigest}; manifiesto de origen: {manifestDigest}. Recibos de rutas de progreso aceptados: {reviewedPathCount}/{requiredPathCount}; sin cubrir: {uncoveredPathCount}. Inventario de rutas con recibo: {reviewedPathsDigest}; inventario de rutas sin cubrir: {uncoveredPathsDigest}. Rutas: {paths}.',
33771
33795
  };
@@ -34005,6 +34029,7 @@ var _ApplicationError_cause;
34005
34029
  Object.defineProperty(exports, "__esModule", ({ value: true }));
34006
34030
  exports.ApplicationError = exports.APPLICATION_ERROR_METADATA = exports.APPLICATION_ERROR_RECOVERY_IDS = void 0;
34007
34031
  exports.isApplicationErrorCorrelationId = isApplicationErrorCorrelationId;
34032
+ const progress_batch_diagnostic_1 = __nccwpck_require__(9486);
34008
34033
  const branch_sync_publication_1 = __nccwpck_require__(7857);
34009
34034
  const framed_review_1 = __nccwpck_require__(3750);
34010
34035
  const progress_response_diagnostic_1 = __nccwpck_require__(6289);
@@ -34068,6 +34093,8 @@ exports.APPLICATION_ERROR_RECOVERY_IDS = Object.freeze([
34068
34093
  'progress-partition-length-invalid',
34069
34094
  'progress-assessment-capacity-exceeded',
34070
34095
  'progress-scope-clause-limit',
34096
+ 'progress-sdd-seed-unverified',
34097
+ 'progress-batch-retained',
34071
34098
  'progress-completion-recovery-exhausted',
34072
34099
  'stored-configuration-schema-missing',
34073
34100
  'stored-configuration-schema-unsupported',
@@ -34329,6 +34356,8 @@ const RECOVERY_VARIABLE_KEYS = Object.freeze({
34329
34356
  'progress-result-contract-invalid': Object.freeze(['phase', 'reason', 'field', 'requirementId', 'sourceLineId']),
34330
34357
  'progress-partition-length-invalid': Object.freeze(['partitionId', 'filePath', 'unitId', 'field', 'maximum', 'observed']),
34331
34358
  'progress-assessment-capacity-exceeded': Object.freeze(['phase', 'reason', 'field', 'requirementId', 'sourceLineId']),
34359
+ 'progress-batch-retained': Object.freeze(['reason', 'verified', 'expected', 'batch', 'requirementId']),
34360
+ 'progress-sdd-seed-unverified': Object.freeze([]),
34332
34361
  'progress-scope-clause-limit': Object.freeze(['clauseKind', 'observed', 'limit', 'sourceLineId']),
34333
34362
  'progress-completion-recovery-exhausted': Object.freeze(['reportedProgress', 'requirementCount', 'supportedCount', 'missingCount', 'unknownCount']),
34334
34363
  'deployment-publication-context-missing': Object.freeze([]),
@@ -34428,6 +34457,8 @@ function normalizeApplicationErrorRecovery(recovery) {
34428
34457
  && (!(0, progress_response_diagnostic_2.isProgressResponseDiagnosticFacts)(variables) || variables.phase !== 'assessment' || variables.reason !== 'assessment-text-limit')) {
34429
34458
  throw new TypeError('Progress assessment capacity diagnostic is invalid.');
34430
34459
  }
34460
+ if (recovery.id === 'progress-batch-retained' && !(0, progress_batch_diagnostic_1.isProgressBatchDiagnostic)(variables))
34461
+ throw new TypeError('Progress batch diagnostic is invalid.');
34431
34462
  if (recovery.id === 'progress-scope-clause-limit' && !(0, progress_response_diagnostic_1.isProgressScopeCapacityFacts)(variables))
34432
34463
  throw new TypeError('Progress scope capacity diagnostic is invalid.');
34433
34464
  if (recovery.id === 'progress-result-contract-invalid' && !(0, progress_response_diagnostic_2.isProgressResponseDiagnosticFacts)(variables))
@@ -37348,6 +37379,32 @@ function parsePositiveSafeInteger(value) {
37348
37379
  }
37349
37380
 
37350
37381
 
37382
+ /***/ }),
37383
+
37384
+ /***/ 9486:
37385
+ /***/ ((__unused_webpack_module, exports) => {
37386
+
37387
+ "use strict";
37388
+
37389
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
37390
+ exports.PROGRESS_BATCH_REASONS = void 0;
37391
+ exports.isProgressBatchDiagnostic = isProgressBatchDiagnostic;
37392
+ exports.PROGRESS_BATCH_REASONS = [
37393
+ 'source-coverage', 'scope-capacity', 'manifest-identity', 'batch-identity', 'receipt-coverage',
37394
+ 'evidence-identity', 'evidence-missing', 'receipt-conflict', 'call-budget', 'time-budget', 'aggregate-capacity',
37395
+ ];
37396
+ function isProgressBatchDiagnostic(value) {
37397
+ if (!value || typeof value !== 'object' || Array.isArray(value))
37398
+ return false;
37399
+ const facts = value;
37400
+ return Object.keys(facts).sort().join(',') === 'batch,expected,reason,requirementId,verified'
37401
+ && exports.PROGRESS_BATCH_REASONS.includes(facts.reason)
37402
+ && [facts.verified, facts.expected, facts.batch].every(count => Number.isSafeInteger(count) && count >= 0 && count <= 1024)
37403
+ && facts.verified <= facts.expected
37404
+ && typeof facts.requirementId === 'string' && /^(?:none|R[1-9]\d{0,5})$/u.test(facts.requirementId);
37405
+ }
37406
+
37407
+
37351
37408
  /***/ }),
37352
37409
 
37353
37410
  /***/ 364:
@@ -37423,6 +37480,8 @@ exports.PROGRESS_CAPACITY_DIMENSIONS = Object.freeze({
37423
37480
  'minimum-fact-bytes': rule(['aggregate'], 'bytes'),
37424
37481
  'evidence-unit-count': rule(['aggregate'], 'units', ['minimum']),
37425
37482
  'aggregate-fact-bytes': rule(['aggregate'], 'bytes'),
37483
+ 'assessment-summary-points': rule(['assessment', 'aggregate'], 'code-points'),
37484
+ 'assessment-remaining-points': rule(['assessment', 'aggregate'], 'code-points'),
37426
37485
  'invalid-allocation': rule(['input', 'source', 'scope', 'partition', 'aggregate', 'assessment'], 'bytes', ['unavailable']),
37427
37486
  });
37428
37487
  const record = (value) => value !== null && typeof value === 'object' && !Array.isArray(value);
@@ -37447,6 +37506,15 @@ function normalizeProgressCapacityContext(value) {
37447
37506
  return invalid();
37448
37507
  return Object.freeze({ kind: 'source-line', sourceLineId: value.sourceLineId });
37449
37508
  }
37509
+ if (value.kind === 'assessment') {
37510
+ if (!exact(value, ['kind', 'requirementCount', 'batch', 'requirementId'])
37511
+ || !count(value.requirementCount) || value.requirementCount < 1 || value.requirementCount > 256
37512
+ || !count(value.batch) || value.batch > value.requirementCount
37513
+ || !(value.requirementId === 'none' || (0, progress_response_diagnostic_1.isProgressRequirementId)(value.requirementId))
37514
+ || (value.batch === 0 && value.requirementId !== 'none'))
37515
+ return invalid();
37516
+ return Object.freeze({ kind: 'assessment', requirementCount: value.requirementCount, batch: value.batch, requirementId: value.requirementId });
37517
+ }
37450
37518
  if (value.kind !== 'comparison' || !exact(value, ['kind', 'baseSha', 'headSha', 'manifestDigest', 'requiredPathsDigest',
37451
37519
  'reviewedPathsDigest', 'uncoveredPathsDigest', 'requiredPathCount', 'reviewedPathCount', 'uncoveredPathCount', 'paths', 'sourceLineId'])
37452
37520
  || !oid(value.baseSha) || !oid(value.headSha) || !(value.manifestDigest === 'none' || digest(value.manifestDigest))
@@ -37485,6 +37553,9 @@ function normalizeProgressCapacityDiagnostic(value) {
37485
37553
  && (value.bound === 'minimum' ? value.observedCount >= value.supportedLimit : value.observedCount <= value.supportedLimit))
37486
37554
  return invalid();
37487
37555
  const context = normalizeProgressCapacityContext(value.context);
37556
+ if (context.kind === 'assessment' && (!['assessment-summary-points', 'assessment-remaining-points'].includes(dimension)
37557
+ || (value.phase === 'aggregate' ? context.batch !== 0 : context.batch === 0)))
37558
+ return invalid();
37488
37559
  const sourceLineId = context.kind === 'source-line' || context.kind === 'comparison' ? context.sourceLineId : 'none';
37489
37560
  if (sourceLineId !== 'none' && (value.phase !== 'scope'
37490
37561
  || !['source-line-count', 'source-line-points'].includes(dimension)))
@@ -37676,10 +37747,12 @@ exports.PROGRESS_RESPONSE_REASONS = Object.freeze({
37676
37747
  'partition-file-invalid', 'partition-unit-invalid', 'partition-facts-invalid']),
37677
37748
  assessment: Object.freeze([...schemaReasons, 'requirements-incomplete', 'progress-invalid', 'requirement-shape-invalid', 'requirement-id-invalid',
37678
37749
  'requirement-id-duplicate', 'scope-uncertain', 'requirement-status-invalid', 'requirement-evidence-invalid', 'requirement-summary-invalid',
37679
- 'requirement-remaining-invalid', 'requirement-evidence-mismatch', 'progress-completion-mismatch', 'assessment-text-limit']),
37750
+ 'requirement-remaining-invalid', 'requirement-remaining-null-required', 'requirement-remaining-string-required',
37751
+ 'requirement-remaining-blank', 'requirement-remaining-too-long',
37752
+ 'requirement-evidence-mismatch', 'progress-completion-mismatch', 'assessment-text-limit']),
37680
37753
  });
37681
37754
  const fieldPatterns = Object.freeze({
37682
- scope: /^\$(?:\.outputLocale|\.lines(?:\[(0|[1-9]\d{0,3})\](?:\.(?:id|kind))?)?)?$/u,
37755
+ scope: /^\$(?:\.outputLocale|\.lines(?:\[(0|[1-9]\d{0,3})\](?:\.(?:id|kind|sameAs))?)?)?$/u,
37683
37756
  partition: /^\$(?:\.outputLocale|\.partitionId|\.files(?:\[(0|[1-9]\d{0,3})\](?:\.(?:path|unitId|implemented|remaining))?)?)?$/u,
37684
37757
  assessment: /^\$(?:\.outputLocale|\.progress|\.requirements(?:\[(0|[1-9]\d{0,3})\](?:\.(?:id|status|evidence|summary|remaining))?)?)?$/u,
37685
37758
  });
@@ -37690,7 +37763,7 @@ function knownId(value, prefix, maximum) {
37690
37763
  const match = value.match(/^([RL])([1-9]\d{0,5})$/u);
37691
37764
  return match !== null && match[0] === value && match[1] === prefix && Number(match[2]) <= maximum;
37692
37765
  }
37693
- const isProgressRequirementId = (value) => knownId(value, 'R', 32);
37766
+ const isProgressRequirementId = (value) => knownId(value, 'R', agent_execution_plan_1.AGENT_PROMPT_MAX_BYTES + 1);
37694
37767
  exports.isProgressRequirementId = isProgressRequirementId;
37695
37768
  const isProgressSourceLineId = (value) => knownId(value, 'L', agent_execution_plan_1.AGENT_PROMPT_MAX_BYTES + 1);
37696
37769
  exports.isProgressSourceLineId = isProgressSourceLineId;