@1presence/bridge 0.29.0 → 0.30.0
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/dist/claude.js +10 -2
- package/package.json +1 -1
package/dist/claude.js
CHANGED
|
@@ -88,14 +88,22 @@ function spawnClaude(params) {
|
|
|
88
88
|
process.stderr.write(`[bridge:verbose] override md: ${(0, path_1.join)(BRIDGE_CWD, 'CLAUDE.md')}\n`);
|
|
89
89
|
process.stderr.write(`[bridge:verbose] system prompt: ${systemPromptPath}\n`);
|
|
90
90
|
process.stderr.write(`[bridge:verbose] mcp config: ${mcpConfigPath}\n`);
|
|
91
|
+
process.stderr.write(`[bridge:verbose] session id: ${presenceSessionId}\n`);
|
|
92
|
+
process.stderr.write(`[bridge:verbose] conversation: ${conversationId}\n`);
|
|
91
93
|
process.stderr.write(`[bridge:verbose] history turns: ${history.length}\n`);
|
|
92
94
|
}
|
|
93
95
|
// Debug transcript: lead with the user prompt for this turn (the clean
|
|
94
|
-
// message, before the gateway's ephemeral-context prefix), plus
|
|
96
|
+
// message, before the gateway's ephemeral-context prefix), plus the session
|
|
97
|
+
// id (correlates with the chat URL / Firestore session doc) and a hint at
|
|
95
98
|
// how much prior context is being replayed.
|
|
96
99
|
if (debug) {
|
|
97
100
|
const histNote = history.length ? ` (replaying ${history.length} prior turn${history.length === 1 ? '' : 's'})` : '';
|
|
98
|
-
debugBlock(`user${histNote}`, DEBUG_COLORS.user, text);
|
|
101
|
+
debugBlock(`user · session ${presenceSessionId}${histNote}`, DEBUG_COLORS.user, text);
|
|
102
|
+
}
|
|
103
|
+
else if (!verbose) {
|
|
104
|
+
// Default mode is quiet, but always surface the session id once per turn so
|
|
105
|
+
// it can be matched to the chat URL / Firestore session doc when debugging.
|
|
106
|
+
process.stderr.write(`[bridge] session ${presenceSessionId}\n`);
|
|
99
107
|
}
|
|
100
108
|
// tool_use_id → tool name, so a tool_result block (which only carries the id)
|
|
101
109
|
// can be labelled with the tool it answers in the debug transcript.
|