ai-or-die 0.1.82 → 0.1.83

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/package.json +1 -1
  2. package/src/server.js +12 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-or-die",
3
- "version": "0.1.82",
3
+ "version": "0.1.83",
4
4
  "description": "Universal AI coding terminal — Claude, Copilot, Gemini & more in your browser",
5
5
  "main": "src/server.js",
6
6
  "bin": {
package/src/server.js CHANGED
@@ -5201,13 +5201,18 @@ class ClaudeCodeWebServer {
5201
5201
  if (sidecarPath) terminalExtraEnv.AIORDIE_CLAUDE_BIND = sidecarPath;
5202
5202
  }
5203
5203
 
5204
- // Artifact-review parity for the manual (non-fleet) claude tab: a normally
5205
- // started claude tab gets the same env trio that _controlStartAgent injects,
5206
- // so the in-tab agent's artifact_* tools activate standalone — no control
5207
- // plane required. Injected when auth is set OR --disable-auth (routes are
5208
- // public then), so the viewer works standalone. Token leak to nested
5209
- // children is blocked by github-router's STRIPPED_PARENT_ENV_KEYS.
5210
- const claudeArtifactEnv = toolName === 'claude' ? this._artifactEnvForSession(sessionId) : {};
5204
+ // Artifact-review parity for the manual (non-fleet) claude tab AND a
5205
+ // terminal tab where the user runs `github-router claude` themselves: both
5206
+ // get the env trio _controlStartAgent injects, so the in-tab agent's
5207
+ // artifact_* tools activate standalone no control plane required. For a
5208
+ // terminal tab the trio rides the shell env and the github-router PROXY
5209
+ // (which serves the artifact_* MCP tools) inherits it; the proxy strips
5210
+ // AIORDIE_TOKEN only from the claude CHILD it spawns, so a nested re-invoke
5211
+ // still can't hijack. Per-tab sessionId keeps multiple terminal claudes
5212
+ // isolated. Injected when auth is set OR --disable-auth (routes are public
5213
+ // then), so the viewer works standalone.
5214
+ const claudeArtifactEnv = (toolName === 'claude' || toolName === 'terminal')
5215
+ ? this._artifactEnvForSession(sessionId) : {};
5211
5216
 
5212
5217
  // Rendered-screen buffer so a refresh/reconnect can repaint the last
5213
5218
  // screen even when the session is idle and the raw outputBuffer is empty