@bugzy-ai/bugzy 1.6.0 → 1.7.0

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/index.js CHANGED
@@ -7356,6 +7356,7 @@ var TOOL_STRINGS = {
7356
7356
  INVOKE_TEST_DEBUGGER_FIXER: '**DELEGATE TO SUBAGENT**: Use the Task tool with `subagent_type: "test-debugger-fixer"` to delegate debugging.\nThe agent will analyze failures and fix test code. Include error details and test path in the prompt.',
7357
7357
  INVOKE_TEST_CODE_GENERATOR: '**DELEGATE TO SUBAGENT**: Use the Task tool with `subagent_type: "test-code-generator"` to delegate code generation.\nThe agent will create Playwright tests and Page Objects. Include test case files in the prompt.',
7358
7358
  INVOKE_TEAM_COMMUNICATOR: '**DELEGATE TO SUBAGENT**: Use the Task tool with `subagent_type: "team-communicator"` to send team notifications.\nThe agent will post to Slack/Teams/Email. Include message content and context in the prompt.',
7359
+ INLINE_TEAM_COMMUNICATOR: "**TEAM COMMUNICATION**: Read `.claude/agents/team-communicator.md` and follow its instructions to communicate with the team.\nUse the tools and guidelines specified in that file within this context. Do NOT spawn a sub-agent.",
7359
7360
  INVOKE_ISSUE_TRACKER: '**DELEGATE TO SUBAGENT**: Use the Task tool with `subagent_type: "issue-tracker"` to create/update issues.\nThe agent will interact with Jira. Include bug details and classification in the prompt.',
7360
7361
  INVOKE_DOCUMENTATION_RESEARCHER: '**DELEGATE TO SUBAGENT**: Use the Task tool with `subagent_type: "documentation-researcher"` to search docs.\nThe agent will search Notion/Confluence. Include search query and context in the prompt.'
7361
7362
  },
@@ -7364,6 +7365,7 @@ var TOOL_STRINGS = {
7364
7365
  INVOKE_TEST_DEBUGGER_FIXER: 'Run the test-debugger-fixer agent:\n```bash\ncursor-agent -p "$(cat .cursor/agents/test-debugger-fixer.md)" --output-format text\n```',
7365
7366
  INVOKE_TEST_CODE_GENERATOR: 'Run the test-code-generator agent:\n```bash\ncursor-agent -p "$(cat .cursor/agents/test-code-generator.md)" --output-format text\n```',
7366
7367
  INVOKE_TEAM_COMMUNICATOR: 'Run the team-communicator agent:\n```bash\ncursor-agent -p "$(cat .cursor/agents/team-communicator.md)" --output-format text\n```',
7368
+ INLINE_TEAM_COMMUNICATOR: "**TEAM COMMUNICATION**: Read `.cursor/agents/team-communicator.md` and follow its instructions to communicate with the team.\nUse the tools and guidelines specified in that file within this context.",
7367
7369
  INVOKE_ISSUE_TRACKER: 'Run the issue-tracker agent:\n```bash\ncursor-agent -p "$(cat .cursor/agents/issue-tracker.md)" --output-format text\n```',
7368
7370
  INVOKE_DOCUMENTATION_RESEARCHER: 'Run the documentation-researcher agent:\n```bash\ncursor-agent -p "$(cat .cursor/agents/documentation-researcher.md)" --output-format text\n```'
7369
7371
  },
@@ -7372,6 +7374,7 @@ var TOOL_STRINGS = {
7372
7374
  INVOKE_TEST_DEBUGGER_FIXER: 'Run the test-debugger-fixer agent:\n```bash\ncodex -p "$(cat .codex/agents/test-debugger-fixer.md)"\n```',
7373
7375
  INVOKE_TEST_CODE_GENERATOR: 'Run the test-code-generator agent:\n```bash\ncodex -p "$(cat .codex/agents/test-code-generator.md)"\n```',
7374
7376
  INVOKE_TEAM_COMMUNICATOR: 'Run the team-communicator agent:\n```bash\ncodex -p "$(cat .codex/agents/team-communicator.md)"\n```',
7377
+ INLINE_TEAM_COMMUNICATOR: "**TEAM COMMUNICATION**: Read `.codex/agents/team-communicator.md` and follow its instructions to communicate with the team.\nUse the tools and guidelines specified in that file within this context.",
7375
7378
  INVOKE_ISSUE_TRACKER: 'Run the issue-tracker agent:\n```bash\ncodex -p "$(cat .codex/agents/issue-tracker.md)"\n```',
7376
7379
  INVOKE_DOCUMENTATION_RESEARCHER: 'Run the documentation-researcher agent:\n```bash\ncodex -p "$(cat .codex/agents/documentation-researcher.md)"\n```'
7377
7380
  }
@@ -7387,7 +7390,7 @@ function getToolString(toolId, key) {
7387
7390
  }
7388
7391
  return value;
7389
7392
  }
7390
- function replaceInvocationPlaceholders(content, toolId) {
7393
+ function replaceInvocationPlaceholders(content, toolId, isLocal = false) {
7391
7394
  let result = content;
7392
7395
  const keys = [
7393
7396
  "INVOKE_TEST_RUNNER",
@@ -7399,7 +7402,8 @@ function replaceInvocationPlaceholders(content, toolId) {
7399
7402
  ];
7400
7403
  for (const key of keys) {
7401
7404
  const placeholder = `{{${key}}}`;
7402
- const replacement = getToolString(toolId, key);
7405
+ const replacementKey = isLocal && key === "INVOKE_TEAM_COMMUNICATOR" ? "INLINE_TEAM_COMMUNICATOR" : key;
7406
+ const replacement = getToolString(toolId, replacementKey);
7403
7407
  result = result.replace(new RegExp(placeholder, "g"), replacement);
7404
7408
  }
7405
7409
  return result;
@@ -7437,7 +7441,7 @@ async function generateCommands(subagents, tool = DEFAULT_TOOL) {
7437
7441
  const template = TASK_TEMPLATES[slug];
7438
7442
  try {
7439
7443
  const taskDef = buildTaskDefinition(slug, projectSubAgents);
7440
- const processedContent = replaceInvocationPlaceholders(taskDef.content, tool);
7444
+ const processedContent = replaceInvocationPlaceholders(taskDef.content, tool, true);
7441
7445
  const content = formatCommandMarkdown(taskDef.frontmatter, processedContent, toolProfile.commandFrontmatter);
7442
7446
  const fileName = `${outputSlug}${toolProfile.commandExtension}`;
7443
7447
  const filePath = path7.join(commandsDir, fileName);
@@ -7452,7 +7456,7 @@ ${template.description}
7452
7456
 
7453
7457
  **Note**: This task requires additional subagents to be configured.`;
7454
7458
  const frontmatter = template.frontmatter;
7455
- const processedContent = replaceInvocationPlaceholders(fallbackContent, tool);
7459
+ const processedContent = replaceInvocationPlaceholders(fallbackContent, tool, true);
7456
7460
  const content = formatCommandMarkdown(frontmatter, processedContent, toolProfile.commandFrontmatter);
7457
7461
  const fileName = `${outputSlug}${toolProfile.commandExtension}`;
7458
7462
  const filePath = path7.join(commandsDir, fileName);