@akagilnc/pi-workflow-roles 0.1.4528 → 0.1.4586

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.
@@ -14532,12 +14532,12 @@ var init_option_definitions = __esm({
14532
14532
  canonical: "--lens",
14533
14533
  aliases: [],
14534
14534
  valueMetavar: "completeness|correctness",
14535
- required: true,
14535
+ required: false,
14536
14536
  repeatable: false,
14537
14537
  form: "option",
14538
14538
  description: {
14539
- en: "Required single review lens: completeness or correctness (no default).",
14540
- zh: "\u5FC5\u586B\u5355 lens\uFF1Acompleteness \u6216 correctness\uFF08\u65E0\u9ED8\u8BA4\u503C\uFF09\u3002"
14539
+ en: "Optional single-lens override: completeness or correctness; omitted runs both in parallel.",
14540
+ zh: "\u53EF\u9009\u5355 lens \u8986\u76D6\uFF1Acompleteness \u6216 correctness\uFF1B\u7701\u7565\u65F6\u5E76\u884C\u8FD0\u884C\u4E24\u8F74\u3002"
14541
14541
  }
14542
14542
  },
14543
14543
  {
@@ -14743,9 +14743,9 @@ var init_option_definitions = __esm({
14743
14743
  },
14744
14744
  reviewer: {
14745
14745
  command: "reviewer",
14746
- summary: "Fixed-target single-lens review (completeness or correctness).",
14746
+ summary: "Fixed-target parallel two-lens review, with an optional single-lens override.",
14747
14747
  usage: [
14748
- "ak-role reviewer --base <revision> --lens completeness|correctness --authority-ref <ref> [options] <instruction>"
14748
+ "ak-role reviewer --base <revision> [--lens completeness|correctness] --authority-ref <ref> [options] <instruction>"
14749
14749
  ],
14750
14750
  examples: [
14751
14751
  'ak-role reviewer --base main --lens completeness --authority-ref docs/adr/0001.md "Review the branch."',
@@ -436,7 +436,7 @@ export function requireReviewerBaseRevision(value) {
436
436
  export function isReviewerLens(value) {
437
437
  return value === "completeness" || value === "correctness";
438
438
  }
439
- /** Public --lens enum; sole owner for parse + fresh admission. */
439
+ /** Admitted single-axis lens enum; public `--lens all` and bare omission are not admitted values. */
440
440
  export function requireReviewerLens(value) {
441
441
  const trimmed = (value ?? "").trim();
442
442
  if (!isReviewerLens(trimmed)) {
@@ -1952,7 +1952,7 @@ export function parseReviewerArgv(args) {
1952
1952
  continue;
1953
1953
  }
1954
1954
  if (taken.def.id === "lens") {
1955
- // Empty and other non-enum values share one message — do not borrow path helper.
1955
+ // Public override is single-axis only; omission stays undefined for the parallel branch.
1956
1956
  lens = requireReviewerLens(taken.value);
1957
1957
  continue;
1958
1958
  }
@@ -1968,13 +1968,13 @@ export function parseReviewerArgv(args) {
1968
1968
  }
1969
1969
  positional.push(token);
1970
1970
  }
1971
- // Unconditional required (--base/--lens/--authority-ref) from typed table (#342).
1971
+ // Base and authority are required; omitted lens selects the parallel two-axis mode.
1972
1972
  options.assertRequired();
1973
1973
  return {
1974
1974
  instruction: positional.join(" "),
1975
1975
  attachmentPaths,
1976
1976
  baseRevision: baseRevision,
1977
- lens: lens,
1977
+ ...(lens === undefined ? {} : { lens }),
1978
1978
  authorityRefs,
1979
1979
  ...(project === undefined ? {} : { project }),
1980
1980
  };
@@ -2019,6 +2019,9 @@ export async function admitReviewerInvocation(options) {
2019
2019
  baseRevision,
2020
2020
  lens,
2021
2021
  authorityRefs: [...authorityRefs],
2022
+ ...(options.correlationId === undefined
2023
+ ? {}
2024
+ : { correlationId: options.correlationId }),
2022
2025
  attachments: attachments.map((a) => ({
2023
2026
  provenancePath: a.provenancePath,
2024
2027
  frozenPath: a.frozenPath,
@@ -2047,6 +2050,9 @@ export async function admitReviewerInvocation(options) {
2047
2050
  baseRevision,
2048
2051
  lens,
2049
2052
  authorityRefs,
2053
+ ...(options.correlationId === undefined
2054
+ ? {}
2055
+ : { correlationId: options.correlationId }),
2050
2056
  };
2051
2057
  }
2052
2058
  /** Frozen Skill arg projection shared by initial and resume (never reverse-parsed). */