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.
- package/package.json +1 -1
- package/src/server.js +12 -7
package/package.json
CHANGED
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
|
|
5205
|
-
//
|
|
5206
|
-
// so the in-tab agent's
|
|
5207
|
-
//
|
|
5208
|
-
//
|
|
5209
|
-
//
|
|
5210
|
-
|
|
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
|