@kontextmind/kxm 0.7.197 → 0.7.198
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/CHANGELOG.md +8 -1
- package/package.json +1 -1
- package/plugins/kxm/.claude-plugin/plugin.json +1 -1
- package/plugins/kxm/dist/mcp-server.js +1 -1
- package/plugins/kxm/dist/runtime-supervisor.js +3 -2
- package/plugins/kxm/dist/runtime.js +3 -2
- package/plugins/kxm/package.json +1 -1
- package/plugins/kxm/src/mcp-server.ts +1 -1
- package/plugins/kxm/src/route-fallback.ts +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -714,12 +714,19 @@ All notable user-facing changes are documented here. The project follows [Semant
|
|
|
714
714
|
|
|
715
715
|
### Fixed
|
|
716
716
|
|
|
717
|
+
- **A rate-limit response that mentions abort can still fall back.**
|
|
718
|
+
`classifyRouteFailure` treated any text containing `abort` as cancellation
|
|
719
|
+
before it read HTTP 429, so an opted-in role did not walk. Status 429, 408,
|
|
720
|
+
413, 500, 502, 503, and 504 are classified first. `AbortError`,
|
|
721
|
+
`process_aborted`, and an explicit cancellation stay cancelled.
|
|
722
|
+
`tool_policy` is its own class instead of `policy_refusal`. Neither class
|
|
723
|
+
walks.
|
|
724
|
+
|
|
717
725
|
- **`kxm suggest` matches workflow keywords as whole words.**
|
|
718
726
|
A substring match sent "guide" and "build" to the feature workflow because
|
|
719
727
|
they contain `ui`, "author" to vulnerability remediation because it contains
|
|
720
728
|
`auth`, and "change" to bug-fix because it contains `hang`. Hyphenated
|
|
721
729
|
keywords such as `circuit-breaker` still match as one token.
|
|
722
|
-
|
|
723
730
|
- **A first run says what to do next when Git or the hub is missing.**
|
|
724
731
|
`kxm init` outside a Git worktree still exits 1 with `git_root_required` and
|
|
725
732
|
now says to run `git init`, then `kxm init` again. `kxm hub view` adds
|
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.198",
|
|
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",
|
|
@@ -25462,7 +25462,7 @@ function sessionTokenFixHint(policy) {
|
|
|
25462
25462
|
}
|
|
25463
25463
|
|
|
25464
25464
|
// plugins/kxm/src/mcp-server.ts
|
|
25465
|
-
var VERSION = "0.7.
|
|
25465
|
+
var VERSION = "0.7.198";
|
|
25466
25466
|
var CONFIGURE_PLUGIN = "/plugin configure kxm@kxm";
|
|
25467
25467
|
var inbox = /* @__PURE__ */ new Map();
|
|
25468
25468
|
var notifiedInbox = /* @__PURE__ */ new Set();
|
|
@@ -25216,10 +25216,10 @@ function classifyRouteFailure(input) {
|
|
|
25216
25216
|
class: failureClass,
|
|
25217
25217
|
walkable: WALKABLE_CLASSES.includes(failureClass)
|
|
25218
25218
|
});
|
|
25219
|
-
if (name === "aborterror" || /\b(?:user_cancelled|cancelled|cancellation)\b/.test(text) || code === "process_aborted"
|
|
25219
|
+
if (name === "aborterror" || /\b(?:user_cancelled|cancelled|cancellation)\b/.test(text) || code === "process_aborted") {
|
|
25220
25220
|
return result("cancelled");
|
|
25221
25221
|
}
|
|
25222
|
-
if (/policy_refusal|content_policy|
|
|
25222
|
+
if (/policy_refusal|content_policy|usage policy|safety/.test(text) || text.includes("policy refusal")) {
|
|
25223
25223
|
return result("policy_refusal");
|
|
25224
25224
|
}
|
|
25225
25225
|
if (code.includes("not_authenticated") || /unauthori[sz]ed|authentication|invalid api key|auth_failed|\bauth\b/.test(text) || status === 401 || status === 403) {
|
|
@@ -25249,6 +25249,7 @@ function classifyRouteFailure(input) {
|
|
|
25249
25249
|
if (status === 500 || status === 503 || /provider_unavailable|model unavailable|service unavailable|overloaded|model_not_found|no available model/.test(text)) {
|
|
25250
25250
|
return result("provider_unavailable");
|
|
25251
25251
|
}
|
|
25252
|
+
if (text.includes("abort")) return result("cancelled");
|
|
25252
25253
|
return result("unknown");
|
|
25253
25254
|
}
|
|
25254
25255
|
function parseFallbackPolicy(value) {
|
|
@@ -25960,10 +25960,10 @@ function classifyRouteFailure(input) {
|
|
|
25960
25960
|
class: failureClass,
|
|
25961
25961
|
walkable: WALKABLE_CLASSES.includes(failureClass)
|
|
25962
25962
|
});
|
|
25963
|
-
if (name === "aborterror" || /\b(?:user_cancelled|cancelled|cancellation)\b/.test(text) || code === "process_aborted"
|
|
25963
|
+
if (name === "aborterror" || /\b(?:user_cancelled|cancelled|cancellation)\b/.test(text) || code === "process_aborted") {
|
|
25964
25964
|
return result("cancelled");
|
|
25965
25965
|
}
|
|
25966
|
-
if (/policy_refusal|content_policy|
|
|
25966
|
+
if (/policy_refusal|content_policy|usage policy|safety/.test(text) || text.includes("policy refusal")) {
|
|
25967
25967
|
return result("policy_refusal");
|
|
25968
25968
|
}
|
|
25969
25969
|
if (code.includes("not_authenticated") || /unauthori[sz]ed|authentication|invalid api key|auth_failed|\bauth\b/.test(text) || status === 401 || status === 403) {
|
|
@@ -25993,6 +25993,7 @@ function classifyRouteFailure(input) {
|
|
|
25993
25993
|
if (status === 500 || status === 503 || /provider_unavailable|model unavailable|service unavailable|overloaded|model_not_found|no available model/.test(text)) {
|
|
25994
25994
|
return result("provider_unavailable");
|
|
25995
25995
|
}
|
|
25996
|
+
if (text.includes("abort")) return result("cancelled");
|
|
25996
25997
|
return result("unknown");
|
|
25997
25998
|
}
|
|
25998
25999
|
function parseFallbackPolicy(value) {
|
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.198";
|
|
15
15
|
const CONFIGURE_PLUGIN = "/plugin configure kxm@kxm";
|
|
16
16
|
const inbox = new Map<string, MessageRecord>();
|
|
17
17
|
const notifiedInbox = new Set<string>();
|
|
@@ -116,10 +116,10 @@ export function classifyRouteFailure(input: {
|
|
|
116
116
|
walkable: (WALKABLE_CLASSES as readonly string[]).includes(failureClass),
|
|
117
117
|
});
|
|
118
118
|
|
|
119
|
-
if (name === "aborterror" || /\b(?:user_cancelled|cancelled|cancellation)\b/.test(text) || code === "process_aborted"
|
|
119
|
+
if (name === "aborterror" || /\b(?:user_cancelled|cancelled|cancellation)\b/.test(text) || code === "process_aborted") {
|
|
120
120
|
return result("cancelled");
|
|
121
121
|
}
|
|
122
|
-
if (/policy_refusal|content_policy|
|
|
122
|
+
if (/policy_refusal|content_policy|usage policy|safety/.test(text) || text.includes("policy refusal")) {
|
|
123
123
|
return result("policy_refusal");
|
|
124
124
|
}
|
|
125
125
|
if (code.includes("not_authenticated") || /unauthori[sz]ed|authentication|invalid api key|auth_failed|\bauth\b/.test(text) || status === 401 || status === 403) {
|
|
@@ -156,6 +156,9 @@ export function classifyRouteFailure(input: {
|
|
|
156
156
|
) {
|
|
157
157
|
return result("provider_unavailable");
|
|
158
158
|
}
|
|
159
|
+
// After the status classes. A 429 body that says the request was aborted is
|
|
160
|
+
// still a rate limit and may walk. A bare abort, with no walkable status, stays cancelled.
|
|
161
|
+
if (text.includes("abort")) return result("cancelled");
|
|
159
162
|
return result("unknown");
|
|
160
163
|
}
|
|
161
164
|
|