opencode-magi 0.0.0-dev-20260520102910 → 0.0.0-dev-20260520103801
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/commands.js +0 -12
- package/dist/github/commands.js +1 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/commands.js
CHANGED
|
@@ -3,10 +3,6 @@ export const MAGI_COMMANDS = {
|
|
|
3
3
|
description: "Clear inactive Magi runs, sessions, worktrees, and outputs",
|
|
4
4
|
template: "Call the `magi_clear` tool.",
|
|
5
5
|
},
|
|
6
|
-
"magi:cancel": {
|
|
7
|
-
description: "Cancel a Magi background run",
|
|
8
|
-
template: [`Call the \`magi_cancel\` tool.`, "Selector: $ARGUMENTS"].join("\n"),
|
|
9
|
-
},
|
|
10
6
|
"magi:merge": {
|
|
11
7
|
description: "Review and merge pull requests with Magi",
|
|
12
8
|
template: [`Call the \`magi_merge\` tool.`, "PR: $ARGUMENTS"].join("\n"),
|
|
@@ -19,14 +15,6 @@ export const MAGI_COMMANDS = {
|
|
|
19
15
|
description: "Review pull requests with Magi",
|
|
20
16
|
template: [`Call the \`magi_review\` tool.`, "PR: $ARGUMENTS"].join("\n"),
|
|
21
17
|
},
|
|
22
|
-
"magi:output": {
|
|
23
|
-
description: "Show Magi run output artifacts",
|
|
24
|
-
template: [`Call the \`magi_output\` tool.`, "Selector: $ARGUMENTS"].join("\n"),
|
|
25
|
-
},
|
|
26
|
-
"magi:status": {
|
|
27
|
-
description: "Show Magi background run status",
|
|
28
|
-
template: [`Call the \`magi_status\` tool.`, "Selector: $ARGUMENTS"].join("\n"),
|
|
29
|
-
},
|
|
30
18
|
"magi:validate": {
|
|
31
19
|
description: "Validate Magi config",
|
|
32
20
|
template: "Call the `magi_validate` tool.",
|
package/dist/github/commands.js
CHANGED
|
@@ -155,7 +155,7 @@ export async function fetchIssueComments(exec, repository, issue, limit = 50) {
|
|
|
155
155
|
})) ?? []);
|
|
156
156
|
}
|
|
157
157
|
export async function fetchRelatedPullRequests(exec, repository, issue) {
|
|
158
|
-
const query = `query($owner: String!, $repo: String!, $issue: Int!) { repository(owner: $owner, name: $repo) { issue(number: $issue) { timelineItems(first: 50, itemTypes: [CONNECTED_EVENT, CROSS_REFERENCED_EVENT]) { nodes { __typename ... on ConnectedEvent { subject { __typename ... on PullRequest { number title url state mergedAt body author { login } } } } ... on CrossReferencedEvent { source { __typename ... on PullRequest { number title url state mergedAt body author { login } } } } } } } } }
|
|
158
|
+
const query = `query($owner: String!, $repo: String!, $issue: Int!) { repository(owner: $owner, name: $repo) { issue(number: $issue) { timelineItems(first: 50, itemTypes: [CONNECTED_EVENT, CROSS_REFERENCED_EVENT]) { nodes { __typename ... on ConnectedEvent { subject { __typename ... on PullRequest { number title url state mergedAt body author { login } } } } ... on CrossReferencedEvent { source { __typename ... on PullRequest { number title url state mergedAt body author { login } } } } } } } } }`;
|
|
159
159
|
const raw = await exec(`gh api${ghHostOption(repository)} graphql -f query=${shellQuote(query)} -F owner=${shellQuote(repository.github.owner)} -F repo=${shellQuote(repository.github.repo)} -F issue=${issue}`);
|
|
160
160
|
const data = JSON.parse(raw);
|
|
161
161
|
const prs = new Map();
|
package/dist/index.js
CHANGED
|
@@ -469,7 +469,10 @@ export const MagiPlugin = async ({ client, directory }) => {
|
|
|
469
469
|
},
|
|
470
470
|
}),
|
|
471
471
|
magi_cancel: tool({
|
|
472
|
-
description:
|
|
472
|
+
description: [
|
|
473
|
+
"Cancel a Magi background run by runId, PR, or issue.",
|
|
474
|
+
INTERNAL_FOLLOW_UP_TOOL_NOTE,
|
|
475
|
+
].join(" "),
|
|
473
476
|
args: {
|
|
474
477
|
runId: tool.schema.string().optional(),
|
|
475
478
|
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-
|
|
3
|
+
"version": "0.0.0-dev-20260520103801",
|
|
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>",
|