@mcpc-tech/cli 0.1.42 → 0.1.43
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/bin/mcpc.cjs +10 -7
- package/bin/mcpc.mjs +10 -7
- package/package.json +1 -1
- package/types/src/config/loader.d.ts.map +1 -1
package/bin/mcpc.cjs
CHANGED
|
@@ -3402,6 +3402,13 @@ function applyModeOverride(config, mode) {
|
|
|
3402
3402
|
if (typeof agent === "string") return;
|
|
3403
3403
|
if (!agent.options) agent.options = {};
|
|
3404
3404
|
agent.options.mode = mode;
|
|
3405
|
+
if (mode === "ai_acp" && !agent.options.acpSettings) {
|
|
3406
|
+
agent.options.acpSettings = {
|
|
3407
|
+
command: "claude-code-acp",
|
|
3408
|
+
args: [],
|
|
3409
|
+
session: {}
|
|
3410
|
+
};
|
|
3411
|
+
}
|
|
3405
3412
|
});
|
|
3406
3413
|
return config;
|
|
3407
3414
|
}
|
|
@@ -10226,6 +10233,7 @@ var PluginManager = class {
|
|
|
10226
10233
|
/**
|
|
10227
10234
|
* Trigger registerAgentTool hook - allows plugins to register the main agent tool
|
|
10228
10235
|
* Returns true if any plugin handled the registration
|
|
10236
|
+
* Throws the original error if plugin fails (instead of swallowing it)
|
|
10229
10237
|
*/
|
|
10230
10238
|
async triggerRegisterAgentTool(context2) {
|
|
10231
10239
|
const registerPlugins = this.plugins.filter((p2) => p2.registerAgentTool && shouldApplyPlugin(p2, context2.mode));
|
|
@@ -10235,13 +10243,8 @@ var PluginManager = class {
|
|
|
10235
10243
|
const sortedPlugins = sortPluginsByOrder(registerPlugins).reverse();
|
|
10236
10244
|
for (const plugin of sortedPlugins) {
|
|
10237
10245
|
if (plugin.registerAgentTool) {
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
return true;
|
|
10241
|
-
} catch (error) {
|
|
10242
|
-
const errorMsg = error instanceof Error ? error.message : String(error);
|
|
10243
|
-
await this.logger.error(`Plugin "${plugin.name}" registerAgentTool failed: ${errorMsg}`);
|
|
10244
|
-
}
|
|
10246
|
+
await plugin.registerAgentTool(context2);
|
|
10247
|
+
return true;
|
|
10245
10248
|
}
|
|
10246
10249
|
}
|
|
10247
10250
|
return false;
|
package/bin/mcpc.mjs
CHANGED
|
@@ -3410,6 +3410,13 @@ function applyModeOverride(config, mode) {
|
|
|
3410
3410
|
if (typeof agent === "string") return;
|
|
3411
3411
|
if (!agent.options) agent.options = {};
|
|
3412
3412
|
agent.options.mode = mode;
|
|
3413
|
+
if (mode === "ai_acp" && !agent.options.acpSettings) {
|
|
3414
|
+
agent.options.acpSettings = {
|
|
3415
|
+
command: "claude-code-acp",
|
|
3416
|
+
args: [],
|
|
3417
|
+
session: {}
|
|
3418
|
+
};
|
|
3419
|
+
}
|
|
3413
3420
|
});
|
|
3414
3421
|
return config;
|
|
3415
3422
|
}
|
|
@@ -10233,6 +10240,7 @@ var PluginManager = class {
|
|
|
10233
10240
|
/**
|
|
10234
10241
|
* Trigger registerAgentTool hook - allows plugins to register the main agent tool
|
|
10235
10242
|
* Returns true if any plugin handled the registration
|
|
10243
|
+
* Throws the original error if plugin fails (instead of swallowing it)
|
|
10236
10244
|
*/
|
|
10237
10245
|
async triggerRegisterAgentTool(context2) {
|
|
10238
10246
|
const registerPlugins = this.plugins.filter((p2) => p2.registerAgentTool && shouldApplyPlugin(p2, context2.mode));
|
|
@@ -10242,13 +10250,8 @@ var PluginManager = class {
|
|
|
10242
10250
|
const sortedPlugins = sortPluginsByOrder(registerPlugins).reverse();
|
|
10243
10251
|
for (const plugin of sortedPlugins) {
|
|
10244
10252
|
if (plugin.registerAgentTool) {
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
return true;
|
|
10248
|
-
} catch (error) {
|
|
10249
|
-
const errorMsg = error instanceof Error ? error.message : String(error);
|
|
10250
|
-
await this.logger.error(`Plugin "${plugin.name}" registerAgentTool failed: ${errorMsg}`);
|
|
10251
|
-
}
|
|
10253
|
+
await plugin.registerAgentTool(context2);
|
|
10254
|
+
return true;
|
|
10252
10255
|
}
|
|
10253
10256
|
}
|
|
10254
10257
|
return false;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sources":["../../../src/config/loader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CC,GAED,cAAc,YAAY,0BAAiC;AAO3D,iBAAiB;EACf;;GAEC,GACD,OAAO,MAAM;EACb;;GAEC,GACD,UAAU,MAAM;EAChB;;GAEC,GACD;IACE,QAAQ,OAAO,MAAM,EAAE,OAAO;IAC9B,WAAW,OAAO,MAAM,EAAE,OAAO;;EAEnC;;GAEC,GACD,QAAQ;EACR;;;GAGC,GACD,SAAS,MAAM;;AAuZjB;;;CAGC,GACD,OAAO,iBAAe,cAAc,QAAQ,aAAa,IAAI;
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sources":["../../../src/config/loader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CC,GAED,cAAc,YAAY,0BAAiC;AAO3D,iBAAiB;EACf;;GAEC,GACD,OAAO,MAAM;EACb;;GAEC,GACD,UAAU,MAAM;EAChB;;GAEC,GACD;IACE,QAAQ,OAAO,MAAM,EAAE,OAAO;IAC9B,WAAW,OAAO,MAAM,EAAE,OAAO;;EAEnC;;GAEC,GACD,QAAQ;EACR;;;GAGC,GACD,SAAS,MAAM;;AAuZjB;;;CAGC,GACD,OAAO,iBAAe,cAAc,QAAQ,aAAa,IAAI;AAkQ7D;;CAEC,GACD,OAAO,iBAAS,eAAe,QAAQ,UAAU,GAAG,IAAI"}
|