@akagilnc/pi-workflow-roles 0.1.4422 → 0.1.4489
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 +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/acp-host/description.js +2 -3
- package/dist/acp-host/production-host.js +333 -258
- package/dist/auditor-soul.js +8 -1
- package/dist/diarist-contracts.js +2 -11
- package/dist/headless-host/description.js +3 -3
- package/dist/headless-host/production-host.js +340 -227
- package/dist/host-descriptions.js +3 -18
- package/dist/method-host-plugin/.claude-plugin/plugin.json +5 -0
- package/dist/method-host-plugin/skills/ak-cross-m-review/CONTEXT.md +48 -0
- package/dist/method-host-plugin/skills/ak-cross-m-review/LICENSE +21 -0
- package/dist/method-host-plugin/skills/ak-cross-m-review/SKILL.md +170 -0
- package/dist/method-host-plugin/skills/ak-cross-m-review/prompts/cmr-completeness.md +118 -0
- package/dist/method-host-plugin/skills/ak-cross-m-review/prompts/cmr-reviewer.md +128 -0
- package/dist/method-host-plugin/skills/ak-cross-m-review/provenance.json +41 -0
- package/dist/method-host-plugin/skills/diagnosing-bugs/SKILL.md +134 -0
- package/dist/method-host-plugin/skills/diagnosing-bugs/agents/openai.yaml +3 -0
- package/dist/method-host-plugin/skills/diagnosing-bugs/provenance.json +31 -0
- package/dist/method-host-plugin/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +41 -0
- package/dist/method-host-plugin/skills/resolving-merge-conflicts/SKILL.md +14 -0
- package/dist/method-host-plugin/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
- package/dist/method-host-plugin/skills/resolving-merge-conflicts/provenance.json +26 -0
- package/dist/method-host-plugin/skills/tdd/SKILL.md +38 -0
- package/dist/method-host-plugin/skills/tdd/agents/openai.yaml +3 -0
- package/dist/method-host-plugin/skills/tdd/mocking.md +59 -0
- package/dist/method-host-plugin/skills/tdd/provenance.json +36 -0
- package/dist/method-host-plugin/skills/tdd/tests.md +77 -0
- package/dist/public-cli/main.js +14 -21
- package/dist/session-opening-materials.js +17 -5
- package/dist/ticket-provenance-contracts.js +6 -25
- package/dist/ticket-provenance.js +223 -90
- package/extensions/role-runtime.ts +16 -6
- package/package.json +1 -1
- package/resources/method-host-plugin/.claude-plugin/plugin.json +5 -0
- package/scripts/build-package.mjs +6 -1
- package/src/acp-host/description.ts +2 -4
- package/src/acp-host/production-host.ts +0 -1
- package/src/auditor-soul.ts +10 -1
- package/src/diarist-contracts.ts +1 -19
- package/src/diarist-role.ts +3 -31
- package/src/diarist.ts +5 -19
- package/src/headless-host/description.ts +4 -3
- package/src/headless-host/role-turn-host.ts +27 -4
- package/src/host-descriptions.ts +3 -23
- package/src/host-native-method.ts +67 -0
- package/src/ledger-session-read.ts +1 -2
- package/src/role-envelope.ts +17 -47
- package/src/role-runtime-dependencies.ts +17 -2
- package/src/role-runtime.ts +14 -31
- package/src/session-opening-materials.ts +27 -11
- package/src/ticket-provenance-contracts.ts +11 -38
- package/src/ticket-provenance.ts +228 -109
package/dist/auditor-soul.js
CHANGED
|
@@ -66,9 +66,16 @@ export async function loadAuditorSoul(role) {
|
|
|
66
66
|
if (soul.trim().length === 0) {
|
|
67
67
|
throw new Error(`The ${role} auditor Soul is blank`);
|
|
68
68
|
}
|
|
69
|
-
return
|
|
69
|
+
return soul;
|
|
70
|
+
}
|
|
71
|
+
export function loadAuditorReferenceMaterials(role) {
|
|
72
|
+
const soulPath = auditorSoulRelativePath(role);
|
|
73
|
+
return joinPackageMaterials(AUDITOR_SESSION_MATERIALS[role].filter((path) => path !== soulPath));
|
|
70
74
|
}
|
|
71
75
|
/** Runtime loader: subject input decides which soul file to assemble. */
|
|
72
76
|
export async function loadAuditorSoulFromSubjectInput(raw) {
|
|
73
77
|
return loadAuditorSoul(resolveAuditorSubject(raw));
|
|
74
78
|
}
|
|
79
|
+
export function loadAuditorReferenceMaterialsFromSubjectInput(raw) {
|
|
80
|
+
return loadAuditorReferenceMaterials(resolveAuditorSubject(raw));
|
|
81
|
+
}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* Machine facts about the volume come from the mechanical reproject seam, never
|
|
5
5
|
* from model self-report (锚定宪法); this module owns the receipt shape only.
|
|
6
6
|
*
|
|
7
|
-
* #901: LLM submits bounds
|
|
7
|
+
* #901: LLM submits bounds; the mechanical layer projects source bytes.
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { projectTicketProvenanceSessions, } from "./ticket-provenance-contracts.js";
|
|
10
10
|
import { isSafePositiveTicketNumber, requireSafePositiveTicketNumber, } from "./run-ticket-number.js";
|
|
11
11
|
export const DIARIST_OUTPUT_TOOL_NAME = "ak_diarist_output";
|
|
12
12
|
export const DIARIST_ACCEPTED_TEXT = "起居郎回执已接受";
|
|
@@ -131,12 +131,3 @@ export function projectDiaristSessions(value) {
|
|
|
131
131
|
return [];
|
|
132
132
|
return projectTicketProvenanceSessions(raw);
|
|
133
133
|
}
|
|
134
|
-
/**
|
|
135
|
-
* Project optional amendments. Absent / non-array → empty (not a rejection).
|
|
136
|
-
*/
|
|
137
|
-
export function projectDiaristAmendments(value) {
|
|
138
|
-
const raw = value?.amendments;
|
|
139
|
-
if (raw === undefined)
|
|
140
|
-
return [];
|
|
141
|
-
return projectTicketProvenanceAmendments(raw);
|
|
142
|
-
}
|
|
@@ -30,6 +30,8 @@ export function headlessTurnArgs(options) {
|
|
|
30
30
|
description.jsonSchemaFlag,
|
|
31
31
|
JSON.stringify(options.jsonSchema),
|
|
32
32
|
];
|
|
33
|
+
if (options.pluginDir)
|
|
34
|
+
args.push("--plugin-dir", options.pluginDir);
|
|
33
35
|
if (options.mcpConfigPath !== undefined && options.mcpConfigPath !== "") {
|
|
34
36
|
args.push(description.mcpConfigFlag, options.mcpConfigPath);
|
|
35
37
|
}
|
|
@@ -321,9 +323,7 @@ export function codexTurnArgs(options) {
|
|
|
321
323
|
}
|
|
322
324
|
// JSONL event stream: thread_id + final agent_message + turn.completed/failed.
|
|
323
325
|
args.push("--json");
|
|
324
|
-
// Operator config/
|
|
325
|
-
// Project/system config and AGENTS.md have no official suppression switch.
|
|
326
|
-
args.push("--ignore-user-config", "--ignore-rules");
|
|
326
|
+
// Operator config/skills stay open (#922 host-native-loader). Auth uses CODEX_HOME.
|
|
327
327
|
const roots = (options.writableRoots ?? []).filter((root) => root !== "");
|
|
328
328
|
if (roots.length > 0) {
|
|
329
329
|
// Resume has no --add-dir; the config key keeps extra roots available on both paths.
|