@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.
- package/README.md +3 -2
- package/README.zh-CN.md +4 -3
- package/dist/acp-host/production-host.js +854 -111
- package/dist/headless-host/production-host.js +850 -107
- package/dist/migrate-book-topology.js +5 -5
- package/dist/public-cli/invocation.js +10 -4
- package/dist/public-cli/main.js +733 -239
- package/dist/public-cli/option-definitions.js +5 -5
- package/dist/public-cli/post-admission.js +23 -8
- package/dist/public-cli/reviewer-run.js +339 -0
- package/dist/public-cli/terminal.js +9 -0
- package/dist/public-cli/turn-request.js +1 -1
- package/dist/public-role-summons.js +348 -16
- package/package.json +1 -1
- package/src/host-contracts.ts +0 -1
- package/src/public-cli/invocation.ts +19 -9
- package/src/public-cli/option-definitions.ts +5 -5
- package/src/public-cli/post-admission.ts +39 -9
- package/src/public-cli/reviewer-run.ts +238 -53
- package/src/public-cli/settlement.ts +0 -1
- package/src/public-cli/terminal.ts +27 -0
- package/src/public-cli/turn-request.ts +7 -1
- package/src/public-role-summons.ts +510 -17
- package/src/reviewer-role.ts +1 -2
- package/src/role-runtime.ts +2 -2
|
@@ -14532,12 +14532,12 @@ var init_option_definitions = __esm({
|
|
|
14532
14532
|
canonical: "--lens",
|
|
14533
14533
|
aliases: [],
|
|
14534
14534
|
valueMetavar: "completeness|correctness",
|
|
14535
|
-
required:
|
|
14535
|
+
required: false,
|
|
14536
14536
|
repeatable: false,
|
|
14537
14537
|
form: "option",
|
|
14538
14538
|
description: {
|
|
14539
|
-
en: "
|
|
14540
|
-
zh: "\
|
|
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
|
|
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
|
-
/**
|
|
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
|
-
//
|
|
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
|
-
//
|
|
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). */
|