@remixhq/claude-plugin 0.1.17 → 0.1.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remixhq/claude-plugin",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "Claude Code plugin for Remix collaboration workflows",
5
5
  "homepage": "https://github.com/RemixDotOne/remix-claude-plugin",
6
6
  "license": "MIT",
@@ -31,8 +31,8 @@
31
31
  "prepack": "npm run build"
32
32
  },
33
33
  "dependencies": {
34
- "@remixhq/core": "^0.1.12",
35
- "@remixhq/mcp": "^0.1.12"
34
+ "@remixhq/core": "^0.1.13",
35
+ "@remixhq/mcp": "^0.1.13"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^25.4.0",
@@ -28,6 +28,7 @@ Recommended sequence:
28
28
  Important rules:
29
29
 
30
30
  - In a bound repo, treat the app as the default anchor for scope reasoning.
31
+ - When the user asks for an app dashboard URL and the `appId` is known, answer with `https://dashboard.remix.one/apps/<appId>`.
31
32
  - Do not assume the bound app's project or organization is readable just because the app is readable.
32
33
  - Treat warnings on cwd-derived results as meaningful partial context, not as failure.
33
34
  - If cwd inference cannot safely resolve a broader scope, prefer the app-level answer and explain the boundary.
@@ -19,17 +19,19 @@ Recommended sequence:
19
19
  - `app_outgoing` for requests opened from this app
20
20
  - `app_related_visible` for all open visible requests where this app is source or target
21
21
  2. Use `remix_collab_view_merge_request` to inspect the request.
22
- 3. Request bounded diff output first. Only request a larger diff if needed to answer the review task accurately.
23
- 4. If approval is requested:
22
+ 3. If the current repo reports `await_finalize`, use `remix_collab_drain_finalize_queue`, then re-check `remix_collab_status` before request-merge or target-mutating approval flows.
23
+ 4. Request bounded diff output first. Only request a larger diff if needed to answer the review task accurately.
24
+ 5. If approval is requested:
24
25
  - use `remix_collab_approve_remote` when local target repo sync is not needed
25
26
  - use `remix_collab_approve_and_sync_target` only when you are in the correct target repo context and the user wants local sync too
26
- 5. Use `remix_collab_reject` when the correct outcome is rejection.
27
+ 6. Use `remix_collab_reject` when the correct outcome is rejection.
27
28
 
28
29
  Important rules:
29
30
 
30
31
  - In a bound repo, use Remix review tools as the default path for MR handling.
31
32
  - Choose an explicit queue instead of treating merge requests as one broad inbox.
32
33
  - Do not treat raw `git merge` as the way Remix merge requests are approved or applied.
34
+ - Do not assume a successful `remix_collab_finalize_turn` already created a remote change step; drain and re-check when status reports `await_finalize`.
33
35
  - If approval would mutate the local target repo, explain that before applying it.
34
36
  - If the repo context is unclear, stay in remote-only review mode until the target repo is confirmed.
35
37
  - Before the final response, use `remix_collab_finalize_turn` to record the completed review turn.
@@ -14,6 +14,7 @@ Canonical rules:
14
14
  - Historical intent questions go to Remix memory before raw git history.
15
15
  - Raw git mutation is not the normal collaboration path in a bound repo.
16
16
  - Before the final response, you must record exactly one completed turn with `remix_collab_finalize_turn`.
17
+ - `remix_collab_finalize_turn` is queued only. It captures the local boundary first; a remote change step does not exist yet until the finalize queue drains.
17
18
  - The recording call must include the exact user prompt and your final assistant response.
18
19
  - Do not finish the response before recording the completed turn.
19
20
  - Prefer preview tools before apply tools whenever both exist.
@@ -28,14 +29,15 @@ Follow this order:
28
29
  3. Prefer preview tools before apply tools:
29
30
  - `remix_collab_sync_preview` before `remix_collab_sync_apply`
30
31
  - `remix_collab_reconcile_preview` before `remix_collab_reconcile_apply`
31
- 4. Prefer Remix merge request tools over raw git merge flows for collaboration review work.
32
- 5. When you need historical context, hidden intent, failed attempts, merge/reconcile lineage, or pre-change risk context, check Remix memory before falling back to broader repo exploration:
32
+ 4. If status reports `await_finalize`, use `remix_collab_drain_finalize_queue`, then re-check `remix_collab_status` before merge-related or recovery flows.
33
+ 5. Prefer Remix merge request tools over raw git merge flows for collaboration review work.
34
+ 6. When you need historical context, hidden intent, failed attempts, merge/reconcile lineage, or pre-change risk context, check Remix memory before falling back to broader repo exploration:
33
35
  - `remix_collab_memory_summary`
34
36
  - `remix_collab_memory_search`
35
37
  - `remix_collab_memory_timeline`
36
- 6. Only call `remix_collab_memory_change_step_diff` after you already have a specific `changeStepId`.
37
- 7. Use raw git history only after Remix memory has narrowed the relevant change, or when the user explicitly asks for exact commit, blame, ancestry, or patch-level detail.
38
- 8. Before the final response, call `remix_collab_finalize_turn`.
38
+ 7. Only call `remix_collab_memory_change_step_diff` after you already have a specific `changeStepId`.
39
+ 8. Use raw git history only after Remix memory has narrowed the relevant change, or when the user explicitly asks for exact commit, blame, ancestry, or patch-level detail.
40
+ 9. Before the final response, call `remix_collab_finalize_turn`.
39
41
 
40
42
  After switching branches:
41
43
 
@@ -51,6 +53,7 @@ Important rules:
51
53
  - In a bound repo, do not use raw git `commit`, `push`, `pull`, `merge`, `rebase`, or `reset` for ordinary Remix collaboration work.
52
54
  - In a bound repo, do not start why/history/failed-attempt questions with raw git `log`, `show`, `blame`, or `diff`; start with Remix memory reads instead.
53
55
  - In a bound repo, do not finish the response before recording the completed turn yourself.
56
+ - Do not treat a successful `remix_collab_finalize_turn` call as proof that the turn is already available for merge-request or remote-history workflows. Drain and re-check when status reports `await_finalize`.
54
57
  - After the final recording call, avoid further repo mutations unless you intend to record another final turn.
55
58
  - Use raw git reads only when the task is clearly about exact repository facts or a separate GitHub-only branch workflow rather than Remix state.
56
59
  - When viewing merge requests, request bounded diff output first and only ask for more detail if needed.
@@ -1,32 +1,31 @@
1
1
  ---
2
- name: submit-change-step
3
- description: Use when code edits are complete in a Remix-bound repo and the work should be recorded as a Remix change step.
2
+ name: finalize-turn-workflow
3
+ description: Use when code edits or review work are complete in a Remix-bound repo and the turn should be recorded with `remix_collab_finalize_turn`.
4
4
  ---
5
5
 
6
- # Submit Remix Change Step
6
+ # Finalize A Remix Turn
7
7
 
8
- Use this skill after edits are complete and the task should be captured as the final recorded turn in a Remix-bound repo.
8
+ Use this skill after edits or review work are complete and the task should be captured as the final recorded turn in a Remix-bound repo.
9
9
 
10
- This skill is specifically about what `remix_collab_finalize_turn` needs to record the completed work correctly.
10
+ This skill is specifically about the queued-finalize model behind `remix_collab_finalize_turn`.
11
11
 
12
12
  Workflow:
13
13
 
14
14
  1. Run `remix_collab_status` first to confirm the repo is bound and inspect current warnings.
15
- 2. Use `remix_collab_finalize_turn` before the final response, with the exact user prompt and your final assistant response.
16
- 3. Let `remix_collab_finalize_turn` choose the changed-turn path from the live worktree by default.
17
- 4. Provide an explicit external diff only when the task requires recording a diff that is not present in the current worktree.
15
+ 2. If status recommends `await_finalize`, do not record again and do not request a merge yet. Use `remix_collab_drain_finalize_queue`, then re-check `remix_collab_status`.
16
+ 3. When the repo is ready, use `remix_collab_finalize_turn` before the final response, with the exact user prompt and your final assistant response.
17
+ 4. Treat `remix_collab_finalize_turn` as capturing the local workspace boundary and queueing remote processing, not as immediate proof that a remote change step already exists.
18
18
 
19
19
  Important behavior:
20
20
 
21
21
  - `remix_collab_finalize_turn` is the authoritative recording path for completed work instead of raw git commit or push.
22
- - When the diff comes from the live worktree, Remix may discard tracked changes and captured untracked paths locally as part of auto-sync.
23
- - When the diff comes from an external source, automatic local discard+sync is skipped because the external diff may not match the current worktree.
24
- - The resulting git commit is created on the Remix side first and appears in the local repo after sync or auto-sync.
25
- - Surface these side effects clearly to the user when they matter.
22
+ - `remix_collab_finalize_turn` is queued only. A remote change step does not exist yet until the finalize queue drains successfully.
23
+ - A successful finalize call means local capture and queueing succeeded. It does not mean merge-request or remote-history workflows can assume the turn is already materialized remotely.
24
+ - If `remix_collab_status` reports `await_finalize`, use `remix_collab_drain_finalize_queue` and re-check status before merge-related or recovery flows.
26
25
  - If the user wants to understand current repo state before recording, re-run `remix_collab_status`.
27
26
  - Do not make further repo mutations after the final recording call unless you intend to record another completed turn.
28
- - If `remix_collab_finalize_turn` reports that the change step succeeded remotely but local sync failed, do not retry finalize immediately.
29
- - In that recovery case, treat the tool's `recommendedNextActions` and `error.hint` as authoritative, starting with `remix_collab_status`, then `remix_collab_sync_preview`, then `remix_collab_sync_apply` when appropriate.
30
- - If the error surfaces a preserved diff backup path, mention it explicitly and preserve it as the fallback recovery artifact while you repair local sync state.
27
+ - Do not retry finalize immediately just because a remote record is not visible yet; queue drain is the next step, not a second finalize.
28
+ - If finalize or drain returns `recommendedNextActions` or an `error.hint`, treat those as authoritative and lead with `remix_collab_status` before broader recovery work.
29
+ - If the tool surfaces a preserved local recovery artifact, mention it explicitly and keep it available while you repair repo state.
31
30
 
32
- Use external diff input only when the task explicitly requires it. Otherwise prefer the current worktree.
31
+ Use the live worktree as the source of truth for finalized work. If the repo is not ready, fix the preflight state first rather than trying to bypass it.