@cardor/agent-harness-kit 1.5.0 → 1.5.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.
package/dist/cli.js CHANGED
@@ -67,7 +67,7 @@ function mergeClaudeSettingsJson(filePath) {
67
67
  };
68
68
  writeFileSync2(filePath, JSON.stringify(merged, null, 2) + "\n", "utf8");
69
69
  }
70
- var MCP_PERMISSIONS = [
70
+ var MCP_CLAUDE_PERMISSIONS = [
71
71
  "mcp__agent-harness-kit__actions_start",
72
72
  "mcp__agent-harness-kit__actions_write",
73
73
  "mcp__agent-harness-kit__actions_complete",
@@ -96,7 +96,7 @@ function mergeClaudeSettingsLocalJson(filePath) {
96
96
  const existingPermissions = existing.permissions ?? {};
97
97
  const existingAllow = existingPermissions.allow ?? [];
98
98
  const existingServers = existing.enabledMcpjsonServers ?? [];
99
- const mergedAllow = Array.from(/* @__PURE__ */ new Set([...existingAllow, ...MCP_PERMISSIONS]));
99
+ const mergedAllow = Array.from(/* @__PURE__ */ new Set([...existingAllow, ...MCP_CLAUDE_PERMISSIONS]));
100
100
  const mergedServers = Array.from(/* @__PURE__ */ new Set([...existingServers, "agent-harness-kit"]));
101
101
  const merged = {
102
102
  ...existing,
@@ -491,47 +491,8 @@ function agentReviewerToml(vars) {
491
491
  const { description, body } = stripFrontmatter(loadAgentTemplate("reviewer", vars));
492
492
  return toCodexToml("reviewer", description, body, "read-only");
493
493
  }
494
- var CLAUDE_CODE_MCP_TOOLS = {
495
- lead: [
496
- // 'mcp__agent-harness-kit__actions.start',
497
- // 'mcp__agent-harness-kit__actions.write',
498
- // 'mcp__agent-harness-kit__actions.complete',
499
- // 'mcp__agent-harness-kit__actions.get',
500
- // 'mcp__agent-harness-kit__actions.record_tool',
501
- // 'mcp__agent-harness-kit__tasks.get',
502
- // 'mcp__agent-harness-kit__tasks.claim',
503
- // 'mcp__agent-harness-kit__tasks.update',
504
- // 'mcp__agent-harness-kit__tasks.add',
505
- ],
506
- explorer: [
507
- // 'mcp__agent-harness-kit__actions.start',
508
- // 'mcp__agent-harness-kit__actions.write',
509
- // 'mcp__agent-harness-kit__actions.complete',
510
- // 'mcp__agent-harness-kit__actions.get',
511
- // 'mcp__agent-harness-kit__actions.record_tool',
512
- // 'mcp__agent-harness-kit__docs.search',
513
- ],
514
- builder: [
515
- // 'mcp__agent-harness-kit__actions.start',
516
- // 'mcp__agent-harness-kit__actions.write',
517
- // 'mcp__agent-harness-kit__actions.complete',
518
- // 'mcp__agent-harness-kit__actions.get',
519
- // 'mcp__agent-harness-kit__actions.record_tool',
520
- // 'mcp__agent-harness-kit__actions.record_file',
521
- ],
522
- reviewer: [
523
- // 'mcp__agent-harness-kit__actions.start',
524
- // 'mcp__agent-harness-kit__actions.write',
525
- // 'mcp__agent-harness-kit__actions.complete',
526
- // 'mcp__agent-harness-kit__actions.get',
527
- // 'mcp__agent-harness-kit__actions.record_tool',
528
- // 'mcp__agent-harness-kit__tasks.acceptance.update',
529
- // 'mcp__agent-harness-kit__tasks.update',
530
- ]
531
- };
532
- function translateFrontmatterForClaudeCode(md, agentName) {
533
- const mcpTools = CLAUDE_CODE_MCP_TOOLS[agentName] ?? [];
534
- const mcpLines = mcpTools.map((t) => ` - ${t}`).join("\n");
494
+ function translateFrontmatterForClaudeCode(md, _agentName) {
495
+ const mcpLines = MCP_CLAUDE_PERMISSIONS.map((t) => ` - ${t}`).join("\n");
535
496
  return md.replace(/(tools:\n(?: - (?!mcp__)[^\n]+\n)+)/, (match) => {
536
497
  const trimmed = match.trimEnd();
537
498
  return `${trimmed}