@koriit/opencode-claude-bridge 0.1.8 → 0.1.10
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/index.ts +3 -0
- package/src/logger.ts +2 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koriit/opencode-claude-bridge",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "An OpenCode plugin that bridges enabled Claude Code plugins (commands, agents, skills, MCP, LSP) into OpenCode at runtime, namespaced so they never shadow your existing items.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/src/index.ts
CHANGED
|
@@ -51,6 +51,9 @@ export const server: Plugin = async (_input, options) => {
|
|
|
51
51
|
|
|
52
52
|
return {
|
|
53
53
|
config: async (cfg) => {
|
|
54
|
+
// TEMPORARY DIAGNOSTIC — remove before next release
|
|
55
|
+
process.stderr.write(`[ocb-debug] process.argv=${JSON.stringify(process.argv)}\n`)
|
|
56
|
+
process.stderr.write(`[ocb-debug] has --print-logs: ${process.argv.includes("--print-logs")}\n`)
|
|
54
57
|
const logger = createLogger(bridge.strict)
|
|
55
58
|
try {
|
|
56
59
|
// Replay parse-time validation warnings (strict-promotable).
|
package/src/logger.ts
CHANGED
|
@@ -26,12 +26,9 @@ export interface Logger {
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Internal output logger. Writes to process.stderr in OpenCode's structured
|
|
29
|
-
* log format
|
|
30
|
-
* behaviour.
|
|
29
|
+
* log format: `LEVEL ISO-timestamp +Xms service=opencode-claude-bridge <message>`
|
|
31
30
|
*
|
|
32
|
-
*
|
|
33
|
-
* the config hook because it fires during server bootstrap before the /log
|
|
34
|
-
* endpoint is ready. Direct stderr write is the safe, synchronous alternative.
|
|
31
|
+
* Gated on --print-logs to match OpenCode's own log-visibility behaviour.
|
|
35
32
|
*/
|
|
36
33
|
const log = (() => {
|
|
37
34
|
const enabled = process.argv.includes("--print-logs")
|