holo-codex 0.1.0 → 0.1.2

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 (27) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +141 -75
  3. package/README.zh-CN.md +141 -75
  4. package/docs/release-checklist.md +39 -9
  5. package/package.json +4 -2
  6. package/plugins/autonomous-pr-loop/.codex-plugin/plugin.json +1 -1
  7. package/plugins/autonomous-pr-loop/.mcp.json +2 -4
  8. package/plugins/autonomous-pr-loop/core/cli.ts +89 -1
  9. package/plugins/autonomous-pr-loop/core/doctor.ts +35 -11
  10. package/plugins/autonomous-pr-loop/core/hook-diagnostics.ts +153 -0
  11. package/plugins/autonomous-pr-loop/core/hook-policy.ts +230 -23
  12. package/plugins/autonomous-pr-loop/core/local-install.ts +13 -19
  13. package/plugins/autonomous-pr-loop/core/storage.ts +5 -5
  14. package/plugins/autonomous-pr-loop/core/types.ts +2 -0
  15. package/plugins/autonomous-pr-loop/core/workflow-board.ts +78 -14
  16. package/plugins/autonomous-pr-loop/hooks/dist/permission-request.js +4 -4
  17. package/plugins/autonomous-pr-loop/hooks/dist/post-compact.js +4 -4
  18. package/plugins/autonomous-pr-loop/hooks/dist/post-tool-use.js +4 -4
  19. package/plugins/autonomous-pr-loop/hooks/dist/pre-compact.js +4 -4
  20. package/plugins/autonomous-pr-loop/hooks/dist/pre-tool-use.js +191 -27
  21. package/plugins/autonomous-pr-loop/hooks/dist/session-start.js +4 -4
  22. package/plugins/autonomous-pr-loop/hooks/dist/stop.js +4 -4
  23. package/plugins/autonomous-pr-loop/hooks/dist/user-prompt-submit.js +4 -4
  24. package/plugins/autonomous-pr-loop/hooks/hooks.json +1 -104
  25. package/plugins/autonomous-pr-loop/mcp-server/dist/index.js +10551 -0
  26. package/plugins/autonomous-pr-loop/mcp-server/src/index.ts +6 -3
  27. package/plugins/autonomous-pr-loop/package.json +1 -1
@@ -9,7 +9,6 @@ interface JsonRpcRequest {
9
9
  params?: unknown;
10
10
  }
11
11
 
12
- const repoRoot = resolveRepoRoot(process.env.AGENT_LOOP_REPO_ROOT ?? process.cwd());
13
12
  const rl = readline.createInterface({ input: process.stdin, crlfDelay: Infinity });
14
13
  let initialized = false;
15
14
 
@@ -35,7 +34,7 @@ async function handleLine(line: string): Promise<void> {
35
34
  respond(request.id, {
36
35
  protocolVersion: "2024-11-05",
37
36
  capabilities: { tools: {} },
38
- serverInfo: { name: "autonomous-pr-loop", version: "0.1.0" }
37
+ serverInfo: { name: "autonomous-pr-loop", version: "0.1.2" }
39
38
  });
40
39
  return;
41
40
  }
@@ -55,7 +54,7 @@ async function handleLine(line: string): Promise<void> {
55
54
  const params = isRecord(request.params) ? request.params : {};
56
55
  const name = typeof params.name === "string" ? params.name : "";
57
56
  const args = isRecord(params.arguments) ? params.arguments : {};
58
- const result = await callMcpTool(name, args, repoRoot);
57
+ const result = await callMcpTool(name, args, resolveMcpRepoRoot());
59
58
  respond(request.id, {
60
59
  content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
61
60
  structuredContent: result
@@ -82,6 +81,10 @@ function errorPayload(code: number, message: string): { code: number; message: s
82
81
  return { code, message };
83
82
  }
84
83
 
84
+ function resolveMcpRepoRoot(): string {
85
+ return resolveRepoRoot(process.env.AGENT_LOOP_REPO_ROOT ?? process.cwd());
86
+ }
87
+
85
88
  function isRecord(value: unknown): value is Record<string, unknown> {
86
89
  return typeof value === "object" && value !== null && !Array.isArray(value);
87
90
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autonomous-pr-loop",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "engines": {