@hanhnd/agent-kit 1.0.10 → 1.0.12

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.
@@ -21150,9 +21150,10 @@ function taskSlug(task) {
21150
21150
  function initAgentLog(workspaceRoot, slug, agent) {
21151
21151
  const logsDir = path3.join(workspaceRoot, ".agent-kit", "logs", "agents");
21152
21152
  fs2.mkdirSync(logsDir, { recursive: true });
21153
- const logFile = path3.join(logsDir, `delegate-${slug}.log`);
21153
+ const now = (/* @__PURE__ */ new Date()).toISOString();
21154
+ const logFile = path3.join(logsDir, `delegate-${now}-${slug}.log`);
21154
21155
  const header = `Agent: ${agent}
21155
- Date: ${(/* @__PURE__ */ new Date()).toISOString()}
21156
+ Date: ${now}
21156
21157
  ${"\u2500".repeat(60)}
21157
21158
 
21158
21159
  `;
@@ -21165,7 +21166,7 @@ ${"\u2500".repeat(60)}
21165
21166
  function registerAgentTools(server2) {
21166
21167
  server2.tool(
21167
21168
  "kit_trigger_agent",
21168
- "Delegate a task to an external agent CLI (gemini or claude). The task can be a direct message or a path to a handoff file (.agent-kit/handoffs/plans/plan-xyz.md). Falls back to the other agent CLI if the requested one is not installed.",
21169
+ "!Important: Trigger only when user explicitly asks to delegate a task to an external agent CLI (gemini or claude). The task can be a direct message or a path to a handoff file (.agent-kit/handoffs/plans/plan-xyz.md). Falls back to the other agent CLI if the requested one is not installed.",
21169
21170
  {
21170
21171
  agent: external_exports.enum(["gemini", "claude"]).describe('The agent CLI to invoke: "gemini" or "claude"'),
21171
21172
  task: external_exports.string().describe(
@@ -33,8 +33,9 @@ function taskSlug(task) {
33
33
  function initAgentLog(workspaceRoot, slug, agent) {
34
34
  const logsDir = path.join(workspaceRoot, '.agent-kit', 'logs', 'agents');
35
35
  fs.mkdirSync(logsDir, { recursive: true });
36
- const logFile = path.join(logsDir, `delegate-${slug}.log`);
37
- const header = `Agent: ${agent}\nDate: ${new Date().toISOString()}\n${'─'.repeat(60)}\n\n`;
36
+ const now = new Date().toISOString();
37
+ const logFile = path.join(logsDir, `delegate-${now}-${slug}.log`);
38
+ const header = `Agent: ${agent}\nDate: ${now}\n${'─'.repeat(60)}\n\n`;
38
39
  fs.writeFileSync(logFile, header, 'utf-8');
39
40
  const logStream = fs.createWriteStream(logFile, { flags: 'a' });
40
41
  logStream.on('error', () => { });
@@ -50,7 +51,7 @@ export function registerAgentTools(server) {
50
51
  // Auto-detects if task is a file path and reads it as context.
51
52
  // Falls back to the alternate agent if requested one is missing.
52
53
  // ═══════════════════════════════════════════════════════════════
53
- server.tool('kit_trigger_agent', 'Delegate a task to an external agent CLI (gemini or claude). The task can be a direct message or a path to a handoff file (.agent-kit/handoffs/plans/plan-xyz.md). Falls back to the other agent CLI if the requested one is not installed.', {
54
+ server.tool('kit_trigger_agent', '!Important: Trigger only when user explicitly asks to delegate a task to an external agent CLI (gemini or claude). The task can be a direct message or a path to a handoff file (.agent-kit/handoffs/plans/plan-xyz.md). Falls back to the other agent CLI if the requested one is not installed.', {
54
55
  agent: z.enum(['gemini', 'claude']).describe('The agent CLI to invoke: "gemini" or "claude"'),
55
56
  task: z
56
57
  .string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanhnd/agent-kit",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Super Engineer - Team of AI Agents for software development (Claude Code Plugin)",
5
5
  "type": "module",
6
6
  "main": "dist/kit-server.js",