@mycompbox/compbox-mcp 1.12.0 → 1.14.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/index.js +8 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -81,7 +81,7 @@ function isJobStatus(value) {
|
|
|
81
81
|
function isTurnRole(value) {
|
|
82
82
|
return TURN_ROLES.includes(value);
|
|
83
83
|
}
|
|
84
|
-
var MACHINE_STATUSES, JOB_TYPES, JOB_STATUSES, TURN_ROLES;
|
|
84
|
+
var MACHINE_STATUSES, JOB_TYPES, JOB_STATUSES, TURN_ROLES, START_EXECUTION_KINDS;
|
|
85
85
|
var init_mailbox = __esm({
|
|
86
86
|
"../shared/dist/types/mailbox.js"() {
|
|
87
87
|
"use strict";
|
|
@@ -100,6 +100,7 @@ var init_mailbox = __esm({
|
|
|
100
100
|
"failed"
|
|
101
101
|
];
|
|
102
102
|
TURN_ROLES = ["agent", "user"];
|
|
103
|
+
START_EXECUTION_KINDS = ["plan", "orchestrate"];
|
|
103
104
|
}
|
|
104
105
|
});
|
|
105
106
|
|
|
@@ -592,6 +593,7 @@ __export(dist_exports, {
|
|
|
592
593
|
MACHINE_STATUSES: () => MACHINE_STATUSES,
|
|
593
594
|
MODEL_CATALOG: () => MODEL_CATALOG,
|
|
594
595
|
PXPIPE_DEFAULT_PROXY_URL: () => PXPIPE_DEFAULT_PROXY_URL,
|
|
596
|
+
START_EXECUTION_KINDS: () => START_EXECUTION_KINDS,
|
|
595
597
|
SUMMARY_MAX: () => SUMMARY_MAX,
|
|
596
598
|
SessionEventType: () => SessionEventType,
|
|
597
599
|
TURN_ROLES: () => TURN_ROLES,
|
|
@@ -10735,7 +10737,7 @@ function registerAllTools(server2) {
|
|
|
10735
10737
|
var CANONICAL_TOOL_PREFIX = "compbox__";
|
|
10736
10738
|
var LEGACY_ALIAS_PREFIX = "spectree__";
|
|
10737
10739
|
function rewriteLegacyToolCall(message) {
|
|
10738
|
-
if ("method" in message && message.method === "tools/call" && "params" in message &&
|
|
10740
|
+
if ("method" in message && message.method === "tools/call" && "params" in message && typeof message.params === "object") {
|
|
10739
10741
|
const params = message.params;
|
|
10740
10742
|
const name = params.name;
|
|
10741
10743
|
if (typeof name === "string" && name.startsWith(LEGACY_ALIAS_PREFIX)) {
|
|
@@ -10759,7 +10761,9 @@ function withLegacyToolCallRewrite(transport) {
|
|
|
10759
10761
|
set(target, prop, value, receiver) {
|
|
10760
10762
|
if (prop === "onmessage" && typeof value === "function") {
|
|
10761
10763
|
const handler = value;
|
|
10762
|
-
const wrapped = (message, extra) =>
|
|
10764
|
+
const wrapped = (message, extra) => {
|
|
10765
|
+
handler(rewriteLegacyToolCall(message), extra);
|
|
10766
|
+
};
|
|
10763
10767
|
target.onmessage = wrapped;
|
|
10764
10768
|
return true;
|
|
10765
10769
|
}
|
|
@@ -10772,7 +10776,7 @@ function withLegacyToolCallRewrite(transport) {
|
|
|
10772
10776
|
var SERVER_NAME = "compbox-mcp";
|
|
10773
10777
|
function resolveServerVersion() {
|
|
10774
10778
|
if (true) {
|
|
10775
|
-
return "1.
|
|
10779
|
+
return "1.14.0";
|
|
10776
10780
|
}
|
|
10777
10781
|
const require2 = createRequire(import.meta.url);
|
|
10778
10782
|
for (const candidate of ["../package.json", "./package.json"]) {
|