@vanillagreen/pi-claude-bridge 1.0.3 → 1.0.5
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/bundle/index.js +10 -2
- package/package.json +1 -2
- package/src/index.ts +9 -2
- package/CHANGELOG.md +0 -12
package/bundle/index.js
CHANGED
|
@@ -33843,7 +33843,14 @@ function mapToolName(name, customToolNameToPi) {
|
|
|
33843
33843
|
const mapped = customToolNameToPi.get(name) ?? customToolNameToPi.get(normalized);
|
|
33844
33844
|
if (mapped) return mapped;
|
|
33845
33845
|
}
|
|
33846
|
-
|
|
33846
|
+
for (const prefix of [
|
|
33847
|
+
MCP_TOOL_PREFIX,
|
|
33848
|
+
`mcp__${MCP_SERVER_NAME.replace(/-/g, "_")}__`,
|
|
33849
|
+
`mcp/${MCP_SERVER_NAME}/`,
|
|
33850
|
+
`mcp/${MCP_SERVER_NAME.replace(/-/g, "_")}/`
|
|
33851
|
+
]) {
|
|
33852
|
+
if (normalized.startsWith(prefix)) return normalized.slice(prefix.length);
|
|
33853
|
+
}
|
|
33847
33854
|
return name;
|
|
33848
33855
|
}
|
|
33849
33856
|
var SDK_KEY_RENAMES = {
|
|
@@ -34434,5 +34441,6 @@ function index_default(pi) {
|
|
|
34434
34441
|
export {
|
|
34435
34442
|
CLAUDE_BRIDGE_TOOL_ISOLATION,
|
|
34436
34443
|
DISALLOWED_BUILTIN_TOOLS,
|
|
34437
|
-
index_default as default
|
|
34444
|
+
index_default as default,
|
|
34445
|
+
mapToolName
|
|
34438
34446
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vanillagreen/pi-claude-bridge",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Pi provider bridge that runs Claude Code through the Claude Agent SDK, with opt-in forwarding for Pi prompt context.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -127,7 +127,6 @@
|
|
|
127
127
|
"bundle/",
|
|
128
128
|
"src/",
|
|
129
129
|
"assets/",
|
|
130
|
-
"CHANGELOG.md",
|
|
131
130
|
"LICENSE",
|
|
132
131
|
"README.md",
|
|
133
132
|
"package.json"
|
package/src/index.ts
CHANGED
|
@@ -426,7 +426,7 @@ function syncSharedSession(
|
|
|
426
426
|
|
|
427
427
|
// --- Provider helpers: tool name mapping ---
|
|
428
428
|
|
|
429
|
-
function mapToolName(name: string, customToolNameToPi?: Map<string, string>): string {
|
|
429
|
+
export function mapToolName(name: string, customToolNameToPi?: Map<string, string>): string {
|
|
430
430
|
const normalized = name.toLowerCase();
|
|
431
431
|
const builtin = SDK_TO_PI_TOOL_NAME[normalized];
|
|
432
432
|
if (builtin) return builtin;
|
|
@@ -434,7 +434,14 @@ function mapToolName(name: string, customToolNameToPi?: Map<string, string>): st
|
|
|
434
434
|
const mapped = customToolNameToPi.get(name) ?? customToolNameToPi.get(normalized);
|
|
435
435
|
if (mapped) return mapped;
|
|
436
436
|
}
|
|
437
|
-
|
|
437
|
+
for (const prefix of [
|
|
438
|
+
MCP_TOOL_PREFIX,
|
|
439
|
+
`mcp__${MCP_SERVER_NAME.replace(/-/g, "_")}__`,
|
|
440
|
+
`mcp/${MCP_SERVER_NAME}/`,
|
|
441
|
+
`mcp/${MCP_SERVER_NAME.replace(/-/g, "_")}/`,
|
|
442
|
+
]) {
|
|
443
|
+
if (normalized.startsWith(prefix)) return normalized.slice(prefix.length);
|
|
444
|
+
}
|
|
438
445
|
return name;
|
|
439
446
|
}
|
|
440
447
|
|
package/CHANGELOG.md
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## 1.0.0
|
|
4
|
-
|
|
5
|
-
Initial vstack fork of `elidickinson/pi-claude-bridge`.
|
|
6
|
-
|
|
7
|
-
- Registers Claude Code as a Pi provider via `claude-bridge/*` models.
|
|
8
|
-
- Removes the upstream AskClaude tool; this package is provider-only.
|
|
9
|
-
- Adds vstack extension-manager settings.
|
|
10
|
-
- Adds opt-in forwarding for `APPEND_SYSTEM.md` and recognized Pi `before_agent_start` prompt hooks (`pi-agents-tmux`, `pi-task-panel`, `pi-caveman`).
|
|
11
|
-
- Keeps upstream provider fixes for session sync/rebuild, compact recovery, abort recovery, ID-based tool-result matching, skills forwarding, strict MCP config, cloud MCP suppression, and Opus thinking display.
|
|
12
|
-
- Pins and bundles Claude Agent SDK `0.2.128`, with auto-detection of the local `claude` executable for vstack installs without `node_modules`.
|