@remixhq/claude-plugin 0.1.26 → 0.1.28
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/dist/hook-post-collab.cjs +14 -5
- package/dist/hook-post-collab.cjs.map +1 -1
- package/dist/hook-stop-collab.cjs +1142 -4403
- package/dist/hook-stop-collab.cjs.map +1 -1
- package/dist/hook-user-prompt.cjs +1142 -4403
- package/dist/hook-user-prompt.cjs.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp-server.cjs +15313 -34600
- package/dist/mcp-server.cjs.map +1 -1
- package/package.json +5 -3
- package/skills/runtime-env-secrets/SKILL.md +34 -0
- package/skills/runtime-targets-preview/SKILL.md +36 -0
- package/skills/sandbox-commands/SKILL.md +34 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remixhq/claude-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "Claude Code plugin for Remix collaboration workflows",
|
|
5
5
|
"homepage": "https://github.com/RemixDotOne/remix-claude-plugin",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,8 +38,10 @@
|
|
|
38
38
|
"prepack": "npm run build"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@remixhq/core": "^0.1.
|
|
42
|
-
"@remixhq/mcp": "^0.1.
|
|
41
|
+
"@remixhq/core": "^0.1.23",
|
|
42
|
+
"@remixhq/mcp": "^0.1.23",
|
|
43
|
+
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
44
|
+
"zod": "^3.25.76"
|
|
43
45
|
},
|
|
44
46
|
"devDependencies": {
|
|
45
47
|
"@types/node": "^25.4.0",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: runtime-env-secrets
|
|
3
|
+
description: Use when configuring, inspecting, troubleshooting, or explaining Remix runtime environment variables, secrets, .env materialization, Vault-backed values, secret redaction, or environment scope.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Runtime Env Secrets
|
|
7
|
+
|
|
8
|
+
Use this skill when the user asks about runtime env vars, secrets, missing variables in sandbox execution, `.env` behavior, Vault storage, redacted output, or environment-specific runtime configuration.
|
|
9
|
+
|
|
10
|
+
This skill is for secret and runtime environment workflows, not for running commands or previewing apps.
|
|
11
|
+
|
|
12
|
+
Mental model:
|
|
13
|
+
|
|
14
|
+
- Runtime env values are secrets by default.
|
|
15
|
+
- Secret values are write-only through the normal tools; list/read surfaces should return metadata, not values.
|
|
16
|
+
- Runtime execution materializes env values into the sandbox so runtime targets and sandbox commands can use them.
|
|
17
|
+
- Redacted output such as `[REDACTED]` is expected behavior, not evidence that the env is missing.
|
|
18
|
+
|
|
19
|
+
Recommended sequence:
|
|
20
|
+
|
|
21
|
+
1. Start with `remix_collab_env_list` to inspect names, scopes, and metadata without exposing values.
|
|
22
|
+
2. Resolve the intended project, repo fingerprint, target, and environment before changing anything.
|
|
23
|
+
3. Use `remix_collab_env_set` only when the user explicitly asks to create or rotate a value.
|
|
24
|
+
4. Use `remix_collab_env_delete` only when the user explicitly asks to remove a value.
|
|
25
|
+
5. If a preview, runtime target, or sandbox command cannot see an env var, inspect env metadata and the command's selected `environment` before rerunning.
|
|
26
|
+
|
|
27
|
+
Important rules:
|
|
28
|
+
|
|
29
|
+
- Never print, echo, summarize, or commit secret values.
|
|
30
|
+
- Do not ask the user to reveal a secret value unless setting or rotating it is the task.
|
|
31
|
+
- Do not use broad env-dump commands as a first debugging step. If an env check is needed, prefer checking one variable name at a time and expect redaction.
|
|
32
|
+
- Treat `environment=development` as the default unless the user or existing command explicitly chooses another environment.
|
|
33
|
+
- Generated sandbox `.env` files are runtime materialization artifacts. They should not be treated as source files or allowed to dirty collaboration change application.
|
|
34
|
+
- Prefer explaining scope and redaction behavior before assuming the backend failed to store a value.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: runtime-targets-preview
|
|
3
|
+
description: Use when detecting, editing, running, stopping, logging, troubleshooting, or previewing Remix runtime targets, web app previews, framework commands, readiness, ports, or E2B preview URLs.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Runtime Targets Preview
|
|
7
|
+
|
|
8
|
+
Use this skill when the user asks to run an app, preview a web UI, detect framework commands, edit runtime commands, inspect logs or status, stop or restart a server, or understand preview URLs.
|
|
9
|
+
|
|
10
|
+
This skill is for persistent runtime target lifecycle. It is not the collaboration recording path and should not be confused with app edit status.
|
|
11
|
+
|
|
12
|
+
Mental model:
|
|
13
|
+
|
|
14
|
+
- Runtime targets are saved command definitions such as install, dev, build, preview, test, and custom.
|
|
15
|
+
- Running a runtime target is explicit execution in the app sandbox.
|
|
16
|
+
- Web preview v1 exposes a temporary direct E2B sandbox port URL.
|
|
17
|
+
- Long-running targets need lifecycle handling: status, logs, restart, stop, and readiness.
|
|
18
|
+
|
|
19
|
+
Recommended sequence:
|
|
20
|
+
|
|
21
|
+
1. Start with `remix_collab_runtime_list` to see saved targets.
|
|
22
|
+
2. Use `remix_collab_runtime_status` and `remix_collab_runtime_logs` before changing commands when debugging.
|
|
23
|
+
3. Use `remix_collab_runtime_detect` as a dry run unless the user explicitly wants to save detected targets.
|
|
24
|
+
4. Use `remix_collab_runtime_set` only when the user intends to create or update a persistent command definition.
|
|
25
|
+
5. Use `remix_collab_runtime_run` to start or restart a target only after the target and app are clear.
|
|
26
|
+
6. Use `remix_collab_runtime_stop` for long-running targets that should release processes, ports, and locks.
|
|
27
|
+
|
|
28
|
+
Important rules:
|
|
29
|
+
|
|
30
|
+
- Do not treat a runtime target failure as collaboration app status failure unless the app status or worker logs directly say so.
|
|
31
|
+
- Do not use sandbox commands as a replacement for a persistent dev server or preview flow.
|
|
32
|
+
- Explain `Start` as running the target, `Restart` as replacing a running long-lived process, and `Stop` as terminating a long-running target.
|
|
33
|
+
- Prefer framework-specific host binding. For Next.js use `--hostname 0.0.0.0`, not `--host 0.0.0.0`.
|
|
34
|
+
- If a preview URL is returned without a scheme, normalize it mentally as `https://...`; direct E2B preview URLs are temporary.
|
|
35
|
+
- If ports, locks, or stale dev servers appear stuck, inspect status and logs, then stop or restart before changing the target command.
|
|
36
|
+
- Preserve the selected runtime `environment`; default to `development` only when none is specified.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: sandbox-commands
|
|
3
|
+
description: Use when running, reviewing, or troubleshooting arbitrary one-shot commands inside a Remix app sandbox, including command output, history, cwd, timeout, mutations, or sandbox diagnostics.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Sandbox Commands
|
|
7
|
+
|
|
8
|
+
Use this skill when the user wants to run an arbitrary one-shot shell command inside an app sandbox, inspect command output, rerun a previous command, view command history, or perform sandbox diagnostics.
|
|
9
|
+
|
|
10
|
+
This skill is for ad hoc command execution. It is not for persistent dev servers or web previews; use runtime targets for those.
|
|
11
|
+
|
|
12
|
+
Mental model:
|
|
13
|
+
|
|
14
|
+
- Sandbox commands run once in the app's E2B sandbox.
|
|
15
|
+
- They can mutate files, install tools, change runtime state, and dirty the app repository.
|
|
16
|
+
- Output is redacted, truncated, and persisted in command history.
|
|
17
|
+
- Defaults are `cwd=/home/user`, `environment=development`, and `timeoutMs=120000`.
|
|
18
|
+
|
|
19
|
+
Recommended sequence:
|
|
20
|
+
|
|
21
|
+
1. Use `remix_collab_sandbox_command_history` first when the user asks what ran before or refers to previous output.
|
|
22
|
+
2. Use `remix_collab_sandbox_command_run` for explicit one-shot diagnostics, tests, builds, file inspection, or tool checks.
|
|
23
|
+
3. Set `commandCwd` only when the command should run somewhere other than `/home/user`.
|
|
24
|
+
4. Set `timeoutMs` deliberately for commands expected to take longer than the default.
|
|
25
|
+
5. If the user wants a server to stay running or wants a preview URL, switch to runtime targets instead.
|
|
26
|
+
|
|
27
|
+
Important rules:
|
|
28
|
+
|
|
29
|
+
- Do not run destructive, broad, or state-changing commands unless the user clearly asked for them.
|
|
30
|
+
- Do not use local terminal commands when the user's intent is to inspect or modify the Remix app sandbox.
|
|
31
|
+
- Avoid env dumps and secret-printing commands. Backend redaction helps, but the agent should still minimize secret exposure.
|
|
32
|
+
- Treat missing output beyond the truncation marker as an output-size limit, not necessarily command failure.
|
|
33
|
+
- Use command history as the source of recent sandbox command context rather than guessing from chat memory.
|
|
34
|
+
- Explain that sandbox command mutations may affect later runtime targets or collaboration apply steps if they dirty the repo.
|