@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.
Files changed (53) hide show
  1. package/README.md +2 -0
  2. package/README.zh-CN.md +2 -0
  3. package/dist/acp-host/description.js +2 -3
  4. package/dist/acp-host/production-host.js +333 -258
  5. package/dist/auditor-soul.js +8 -1
  6. package/dist/diarist-contracts.js +2 -11
  7. package/dist/headless-host/description.js +3 -3
  8. package/dist/headless-host/production-host.js +340 -227
  9. package/dist/host-descriptions.js +3 -18
  10. package/dist/method-host-plugin/.claude-plugin/plugin.json +5 -0
  11. package/dist/method-host-plugin/skills/ak-cross-m-review/CONTEXT.md +48 -0
  12. package/dist/method-host-plugin/skills/ak-cross-m-review/LICENSE +21 -0
  13. package/dist/method-host-plugin/skills/ak-cross-m-review/SKILL.md +170 -0
  14. package/dist/method-host-plugin/skills/ak-cross-m-review/prompts/cmr-completeness.md +118 -0
  15. package/dist/method-host-plugin/skills/ak-cross-m-review/prompts/cmr-reviewer.md +128 -0
  16. package/dist/method-host-plugin/skills/ak-cross-m-review/provenance.json +41 -0
  17. package/dist/method-host-plugin/skills/diagnosing-bugs/SKILL.md +134 -0
  18. package/dist/method-host-plugin/skills/diagnosing-bugs/agents/openai.yaml +3 -0
  19. package/dist/method-host-plugin/skills/diagnosing-bugs/provenance.json +31 -0
  20. package/dist/method-host-plugin/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +41 -0
  21. package/dist/method-host-plugin/skills/resolving-merge-conflicts/SKILL.md +14 -0
  22. package/dist/method-host-plugin/skills/resolving-merge-conflicts/agents/openai.yaml +3 -0
  23. package/dist/method-host-plugin/skills/resolving-merge-conflicts/provenance.json +26 -0
  24. package/dist/method-host-plugin/skills/tdd/SKILL.md +38 -0
  25. package/dist/method-host-plugin/skills/tdd/agents/openai.yaml +3 -0
  26. package/dist/method-host-plugin/skills/tdd/mocking.md +59 -0
  27. package/dist/method-host-plugin/skills/tdd/provenance.json +36 -0
  28. package/dist/method-host-plugin/skills/tdd/tests.md +77 -0
  29. package/dist/public-cli/main.js +14 -21
  30. package/dist/session-opening-materials.js +17 -5
  31. package/dist/ticket-provenance-contracts.js +6 -25
  32. package/dist/ticket-provenance.js +223 -90
  33. package/extensions/role-runtime.ts +16 -6
  34. package/package.json +1 -1
  35. package/resources/method-host-plugin/.claude-plugin/plugin.json +5 -0
  36. package/scripts/build-package.mjs +6 -1
  37. package/src/acp-host/description.ts +2 -4
  38. package/src/acp-host/production-host.ts +0 -1
  39. package/src/auditor-soul.ts +10 -1
  40. package/src/diarist-contracts.ts +1 -19
  41. package/src/diarist-role.ts +3 -31
  42. package/src/diarist.ts +5 -19
  43. package/src/headless-host/description.ts +4 -3
  44. package/src/headless-host/role-turn-host.ts +27 -4
  45. package/src/host-descriptions.ts +3 -23
  46. package/src/host-native-method.ts +67 -0
  47. package/src/ledger-session-read.ts +1 -2
  48. package/src/role-envelope.ts +17 -47
  49. package/src/role-runtime-dependencies.ts +17 -2
  50. package/src/role-runtime.ts +14 -31
  51. package/src/session-opening-materials.ts +27 -11
  52. package/src/ticket-provenance-contracts.ts +11 -38
  53. package/src/ticket-provenance.ts +228 -109
@@ -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 joinPackageMaterials(materials);
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 (+ optional amendments); mechanical layer projects.
7
+ * #901: LLM submits bounds; the mechanical layer projects source bytes.
8
8
  */
9
- import { projectTicketProvenanceAmendments, projectTicketProvenanceSessions, } from "./ticket-provenance-contracts.js";
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/MCP off; auth still uses CODEX_HOME (official).
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.