@polygraph/claude-plugin 0.4.22 → 0.4.24
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/.claude-plugin/plugin.json +1 -1
- package/.mcp.json +1 -1
- package/README.md +1 -1
- package/package.json +1 -1
- package/skills/polygraph/SKILL.md +9 -9
package/.mcp.json
CHANGED
package/README.md
CHANGED
|
@@ -119,7 +119,7 @@ For the strictest release flow, do not allow direct `npm publish` for the truste
|
|
|
119
119
|
## Learn More
|
|
120
120
|
|
|
121
121
|
- **[Polygraph](https://nx.dev/features/polygraph)** — Multi-repo coordination with Polygraph
|
|
122
|
-
- **[polygraph
|
|
122
|
+
- **[@polygraph/mcp](https://www.npmjs.com/package/@polygraph/mcp)** — The MCP server that powers Polygraph tools
|
|
123
123
|
- **[Nx AI Agent Skills](https://github.com/nrwl/nx-ai-agents-config)** — The main Nx AI agent skills repo
|
|
124
124
|
|
|
125
125
|
## License
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ Polygraph functionality is available via both MCP tools and CLI commands. Use wh
|
|
|
24
24
|
| `spawn_agent` | — | Start a new child task or send an explicit follow-up to an active task in another repository. Input: `{ sessionId, repo, instruction, context?, taskId? }`. Output: `{ taskId, message, status: 'delegated' }`. Pass the `taskId` returned by a prior call to route a follow-up message to a specific active task; omit to start a new child run. A session resume or reconstruction is read-only context restoration; after resuming, do not use `spawn_agent` to continue changes unless the user explicitly asks for changes. |
|
|
25
25
|
| `show_agent` | — | Poll flat per-child status for the session. Output: `{ children: PolygraphChildStatusItem[] }` where each item exposes `repositoryId`, `repoFullName`, `status`, `lastOutputLines`, `durationMs`, `instruction`, `agentType?`, `inputRequiredQuestion?`. `status` is an AcpRunStatus: `'created' \| 'in-progress' \| 'input-required' \| 'completed' \| 'failed' \| 'cancelled'` (British double-L on `'cancelled'`). `inputRequiredQuestion` is populated only when `status === 'input-required'`. |
|
|
26
26
|
| `stop_agent` | — | Cancel an in-progress child. Output: `{ taskId, state: 'cancelled', sessionPreserved: true, output, message }`. Because `sessionPreserved: true`, the preserved agent session can be restored later for context, but resume must wait for explicit user instructions before making changes. |
|
|
27
|
-
| `push_branch` | — | Push a local git branch to the remote repository |
|
|
27
|
+
| `push_branch` | — | Push a local git branch to the remote repository. Requires a session description. |
|
|
28
28
|
| `create_pr` | — | Create draft PRs with session metadata linking related PRs |
|
|
29
29
|
| `show_session` | `polygraph session show <id> [--details]` | Query status of the current session. Use details when session summary, repo IDs, PR URLs, and PR descriptions are needed. |
|
|
30
30
|
| `update_session_description` | `polygraph session update-description` | Set the current session description from a synthesized progress summary or user-provided text. This updates session metadata only; it does not require PR creation or mark-ready. |
|
|
@@ -67,9 +67,9 @@ After logging in (or if logged in but no org is selected), use `polygraph accoun
|
|
|
67
67
|
|
|
68
68
|
4. **Monitor child agents** - Use `show_agent` to poll progress and read the flat `children[]` array for each child's `status` and `lastOutputLines`.
|
|
69
69
|
5. **Stop child agents** (if needed) - Use `stop_agent` to cancel an in-progress child agent. The underlying agent session is preserved for later read-only context restoration; after a resume, wait for explicit user instructions before making changes.
|
|
70
|
-
6. **Push branches** - Use `push_branch` after making commits.
|
|
71
|
-
7. **Update session description**
|
|
72
|
-
8. **Create draft PRs** - Use `create_pr` to create linked draft PRs.
|
|
70
|
+
6. **Push branches** - Use `push_branch` after making commits. A required `description` must follow the Session Description Policy.
|
|
71
|
+
7. **Update session description** - Use `update_session_description` to update the session description; must follow the Session Description Policy. Independent of PR creation or mark-ready.
|
|
72
|
+
8. **Create draft PRs** - Use `create_pr` to create linked draft PRs. Always pass `description` following the Session Description Policy.
|
|
73
73
|
9. **Associate existing PRs** (optional) - Use `associate_pr` to link PRs created outside Polygraph.
|
|
74
74
|
10. **Query PR status** - Use `show_session` to check progress.
|
|
75
75
|
11. **Mark PRs ready** - Use `mark_pr_ready` when work is complete.
|
|
@@ -280,6 +280,7 @@ Once work is complete in a repository, push the branch using `push_branch`. This
|
|
|
280
280
|
- `sessionId` (required): The Polygraph session ID
|
|
281
281
|
- `repo` (required): Repository name or repository ID to push from
|
|
282
282
|
- `branch` (required): Branch name to push to remote
|
|
283
|
+
- `description` (required): A session description is required. Must follow the Session Description Policy.
|
|
283
284
|
|
|
284
285
|
```
|
|
285
286
|
push_branch(
|
|
@@ -293,9 +294,7 @@ push_branch(
|
|
|
293
294
|
|
|
294
295
|
`description` is user-facing Polygraph session context.
|
|
295
296
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
If you pass `description`, use the canonical structured format:
|
|
297
|
+
`description` is required for `push_branch`, `create_pr`, `associate_pr`, and `update_session_description`. (`mark_pr_ready` does not take a description.) Use the canonical structured format:
|
|
299
298
|
|
|
300
299
|
```text
|
|
301
300
|
Goal: <what the session is trying to accomplish>
|
|
@@ -329,7 +328,7 @@ Create PRs for all repositories at once using `create_pr`. PRs are created as dr
|
|
|
329
328
|
- `body` (required): PR description (session metadata is appended automatically)
|
|
330
329
|
- `branch` (required): Branch name that was pushed
|
|
331
330
|
- `targetRepository` (optional): Target GitHub repository for fork PR creation or registration, as `owner/repo`. Omit for same-repository PRs.
|
|
332
|
-
- `description` (
|
|
331
|
+
- `description` (required): Must follow the Session Description Policy.
|
|
333
332
|
|
|
334
333
|
**PR title format (applies to parent and child agents):**
|
|
335
334
|
|
|
@@ -515,7 +514,7 @@ Provide either a `prUrl` to associate a specific PR, or a `branch` name plus `re
|
|
|
515
514
|
- `prUrl` (optional): URL of an existing pull request to associate
|
|
516
515
|
- `branch` (optional): Branch name to find and associate PRs for
|
|
517
516
|
- `repo` (optional): Source repository for branch-based association. Required when using `branch` in a multi-repo session.
|
|
518
|
-
- `description` (
|
|
517
|
+
- `description` (required): Must follow the Session Description Policy.
|
|
519
518
|
|
|
520
519
|
```
|
|
521
520
|
associate_pr(
|
|
@@ -672,6 +671,7 @@ If the session has a description timeline, also display:
|
|
|
672
671
|
1. **Poll child status before proceeding** — Always verify child agents have reached a terminal `child.status` (`'completed'`, `'failed'`, or `'cancelled'`) via `show_agent` before pushing branches or creating PRs
|
|
673
672
|
1. **Link PRs in descriptions** - Reference related PRs in each PR body
|
|
674
673
|
1. **Keep PRs as drafts** until all repos are ready
|
|
674
|
+
1. **Always pass `description`** when calling `create_pr`, `associate_pr`, or `update_session_description` — it is required and must follow the Session Description Policy
|
|
675
675
|
1. **Test integration** before marking PRs ready
|
|
676
676
|
1. **Coordinate merge order** if there are deployment dependencies
|
|
677
677
|
|