@kontextmind/kxm 0.7.118 → 0.7.119
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/.claude-plugin/marketplace.json +1 -1
- package/package.json +1 -1
- package/plugins/kxm/.claude-plugin/plugin.json +1 -1
- package/plugins/kxm/dist/extension.js +24 -8
- package/plugins/kxm/dist/mcp-server.js +1 -1
- package/plugins/kxm/package.json +1 -1
- package/plugins/kxm/src/mcp-server.ts +1 -1
- package/plugins/kxm/src/providers/claude-bridge/register.ts +25 -9
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
|
|
3
3
|
"name": "kxm",
|
|
4
4
|
"displayName": "KXM",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.119",
|
|
6
6
|
"description": "Headless multi-agent orchestration, durable workflows, and a live operator dashboard for Pi and Claude Code",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "KontextMind",
|
|
@@ -36307,6 +36307,12 @@ function claudeBridgeConflictWarning(registered) {
|
|
|
36307
36307
|
);
|
|
36308
36308
|
}
|
|
36309
36309
|
function claudeBridgeRegistrationNotice(report, pi) {
|
|
36310
|
+
if (report?.warning) {
|
|
36311
|
+
return {
|
|
36312
|
+
message: boundedRegistrationWarning(report.warning),
|
|
36313
|
+
type: "warning"
|
|
36314
|
+
};
|
|
36315
|
+
}
|
|
36310
36316
|
const conflict = Boolean(report?.conflict) || (pi ? claudeBridgeStandaloneToolsPresent(pi) : false);
|
|
36311
36317
|
if (!conflict) return void 0;
|
|
36312
36318
|
return {
|
|
@@ -36325,14 +36331,24 @@ function registerClaudeBridgeProvider(pi) {
|
|
|
36325
36331
|
if (typeof pi.registerProvider !== "function") {
|
|
36326
36332
|
return { registered: false, conflict: false };
|
|
36327
36333
|
}
|
|
36328
|
-
|
|
36329
|
-
|
|
36330
|
-
|
|
36331
|
-
|
|
36332
|
-
|
|
36333
|
-
|
|
36334
|
-
|
|
36335
|
-
|
|
36334
|
+
try {
|
|
36335
|
+
pi.registerProvider(PROVIDER_ID2, {
|
|
36336
|
+
name: PROVIDER_NAME2,
|
|
36337
|
+
baseUrl: PROVIDER_ID2,
|
|
36338
|
+
apiKey: PROVIDER_ID2,
|
|
36339
|
+
api: CLAUDE_BRIDGE_API,
|
|
36340
|
+
models: registeredClaudeBridgeModels(),
|
|
36341
|
+
streamSimple: streamClaudeBridge
|
|
36342
|
+
});
|
|
36343
|
+
return { registered: true, conflict: false };
|
|
36344
|
+
} catch (error2) {
|
|
36345
|
+
const reason = error2 instanceof Error ? error2.message : String(error2);
|
|
36346
|
+
return {
|
|
36347
|
+
registered: false,
|
|
36348
|
+
conflict: false,
|
|
36349
|
+
warning: `kxm: claude-bridge provider registration failed (${reason}). Configure apiKey or ensure provider auth is valid.`
|
|
36350
|
+
};
|
|
36351
|
+
}
|
|
36336
36352
|
}
|
|
36337
36353
|
|
|
36338
36354
|
// plugins/kxm/src/diagnostics.ts
|
|
@@ -17313,7 +17313,7 @@ function sessionTokenFixHint(policy) {
|
|
|
17313
17313
|
}
|
|
17314
17314
|
|
|
17315
17315
|
// plugins/kxm/src/mcp-server.ts
|
|
17316
|
-
var VERSION = "0.7.
|
|
17316
|
+
var VERSION = "0.7.119";
|
|
17317
17317
|
var CONFIGURE_PLUGIN = "/plugin configure kxm@kxm";
|
|
17318
17318
|
var inbox = /* @__PURE__ */ new Map();
|
|
17319
17319
|
var notifiedInbox = /* @__PURE__ */ new Set();
|
package/plugins/kxm/package.json
CHANGED
|
@@ -11,7 +11,7 @@ import { deliverInboxNotification } from "./inbox.ts";
|
|
|
11
11
|
import type { HubEvent, MessageRecord } from "./protocol.ts";
|
|
12
12
|
import { sessionTokenFixHint } from "./session-token-hint.ts";
|
|
13
13
|
|
|
14
|
-
const VERSION = "0.7.
|
|
14
|
+
const VERSION = "0.7.119";
|
|
15
15
|
const CONFIGURE_PLUGIN = "/plugin configure kxm@kxm";
|
|
16
16
|
const inbox = new Map<string, MessageRecord>();
|
|
17
17
|
const notifiedInbox = new Set<string>();
|
|
@@ -92,6 +92,12 @@ export function claudeBridgeRegistrationNotice(
|
|
|
92
92
|
report: ClaudeBridgeRegistration | undefined,
|
|
93
93
|
pi?: object,
|
|
94
94
|
): { message: string; type: "warning" } | undefined {
|
|
95
|
+
if (report?.warning) {
|
|
96
|
+
return {
|
|
97
|
+
message: boundedRegistrationWarning(report.warning),
|
|
98
|
+
type: "warning",
|
|
99
|
+
};
|
|
100
|
+
}
|
|
95
101
|
const conflict = Boolean(report?.conflict) || (pi ? claudeBridgeStandaloneToolsPresent(pi) : false);
|
|
96
102
|
if (!conflict) return undefined;
|
|
97
103
|
return {
|
|
@@ -112,13 +118,23 @@ export function registerClaudeBridgeProvider(pi: ExtensionAPI): ClaudeBridgeRegi
|
|
|
112
118
|
return { registered: false, conflict: false };
|
|
113
119
|
}
|
|
114
120
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
try {
|
|
122
|
+
pi.registerProvider(PROVIDER_ID, {
|
|
123
|
+
name: PROVIDER_NAME,
|
|
124
|
+
baseUrl: PROVIDER_ID,
|
|
125
|
+
apiKey: PROVIDER_ID,
|
|
126
|
+
api: CLAUDE_BRIDGE_API,
|
|
127
|
+
models: registeredClaudeBridgeModels(),
|
|
128
|
+
streamSimple: streamClaudeBridge,
|
|
129
|
+
} as unknown as Parameters<ExtensionAPI["registerProvider"]>[1]);
|
|
130
|
+
|
|
131
|
+
return { registered: true, conflict: false };
|
|
132
|
+
} catch (error) {
|
|
133
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
134
|
+
return {
|
|
135
|
+
registered: false,
|
|
136
|
+
conflict: false,
|
|
137
|
+
warning: `kxm: claude-bridge provider registration failed (${reason}). Configure apiKey or ensure provider auth is valid.`,
|
|
138
|
+
};
|
|
139
|
+
}
|
|
124
140
|
}
|