opencode-magi 0.0.0-dev-20260519091322 → 0.0.0-dev-20260519091916

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 (2) hide show
  1. package/dist/index.js +17 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16,6 +16,7 @@ import { MagiRunManager } from "./orchestrator/run-manager";
16
16
  const execAsync = promisify(nodeExec);
17
17
  const GLOBAL_CONFIG_PATH = join(homedir(), ".config", "opencode", "magi.json");
18
18
  const PROJECT_CONFIG_PATH = join(".opencode", "magi.json");
19
+ const INTERNAL_FOLLOW_UP_TOOL_NOTE = "Assistant-facing follow-up tool. Use it yourself when needed; do not suggest this tool name to users.";
19
20
  function createExec(defaultCwd) {
20
21
  return async (command, options) => {
21
22
  const { stdout } = await execAsync(command, {
@@ -266,7 +267,10 @@ export const MagiPlugin = async ({ client, directory }) => {
266
267
  },
267
268
  tool: {
268
269
  magi_merge: tool({
269
- description: "Start background Magi merge runs for one or more GitHub pull requests with configured Magi agents.",
270
+ description: [
271
+ "Start background Magi merge runs for one or more GitHub pull requests with configured Magi agents.",
272
+ "After starting, monitor progress yourself when useful; do not tell users to call follow-up tools by name.",
273
+ ].join(" "),
270
274
  args: {
271
275
  prs: tool.schema.string(),
272
276
  dryRun: tool.schema.boolean().optional(),
@@ -299,7 +303,10 @@ export const MagiPlugin = async ({ client, directory }) => {
299
303
  },
300
304
  }),
301
305
  magi_review: tool({
302
- description: "Start background Magi review runs for one or more GitHub pull requests and post the reviews.",
306
+ description: [
307
+ "Start background Magi review runs for one or more GitHub pull requests and post the reviews.",
308
+ "After starting, monitor progress yourself when useful; do not tell users to call follow-up tools by name.",
309
+ ].join(" "),
303
310
  args: {
304
311
  prs: tool.schema.string(),
305
312
  dryRun: tool.schema.boolean().optional(),
@@ -331,7 +338,10 @@ export const MagiPlugin = async ({ client, directory }) => {
331
338
  },
332
339
  }),
333
340
  magi_status: tool({
334
- description: "Show Magi background run status. Optionally filter by runId or PR and wait for completion.",
341
+ description: [
342
+ "Show Magi background run status. Optionally filter by runId or PR and wait for completion.",
343
+ INTERNAL_FOLLOW_UP_TOOL_NOTE,
344
+ ].join(" "),
335
345
  args: {
336
346
  runId: tool.schema.string().optional(),
337
347
  pr: tool.schema.string().optional(),
@@ -355,7 +365,10 @@ export const MagiPlugin = async ({ client, directory }) => {
355
365
  },
356
366
  }),
357
367
  magi_output: tool({
358
- description: "Show artifacts and details for a Magi background run by runId or PR, optionally for a single reviewer.",
368
+ description: [
369
+ "Show artifacts and details for a Magi background run by runId or PR, optionally for a single reviewer.",
370
+ INTERNAL_FOLLOW_UP_TOOL_NOTE,
371
+ ].join(" "),
359
372
  args: {
360
373
  runId: tool.schema.string().optional(),
361
374
  pr: tool.schema.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-magi",
3
- "version": "0.0.0-dev-20260519091322",
3
+ "version": "0.0.0-dev-20260519091916",
4
4
  "description": "Multi-agent PR review and merge orchestration plugin for OpenCode.",
5
5
  "license": "MIT",
6
6
  "author": "Hirotomo Yamada <hirotomo.yamada@avap.co.jp>",