@mcpc-tech/cli 0.1.41 → 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 +13 -9
- package/bin/mcpc.mjs +14 -10
- package/package.json +2 -1
- package/types/src/config/loader.d.ts.map +1 -1
package/bin/mcpc.cjs
CHANGED
|
@@ -2940,6 +2940,7 @@ Available skills: ${available.join(", ")}` : "\n\nNo skills available.";
|
|
|
2940
2940
|
|
|
2941
2941
|
// __mcpc__cli_latest/node_modules/@mcpc/cli/src/defaults.js
|
|
2942
2942
|
var import_plugin_code_execution = require("@mcpc-tech/plugin-code-execution");
|
|
2943
|
+
var import_plugin_markdown_loader = require("@mcpc-tech/plugin-markdown-loader");
|
|
2943
2944
|
var import_node_path5 = require("node:path");
|
|
2944
2945
|
var import_node_process2 = __toESM(require("node:process"), 1);
|
|
2945
2946
|
var DEFAULT_SKILLS_PATHS = [
|
|
@@ -2949,7 +2950,7 @@ var DEFAULT_CODE_EXECUTION_TIMEOUT = 3e5;
|
|
|
2949
2950
|
function getGlobalPlugins(skillsPaths) {
|
|
2950
2951
|
const resolvedPaths = skillsPaths.map((p2) => (0, import_node_path5.resolve)(import_node_process2.default.cwd(), p2));
|
|
2951
2952
|
return [
|
|
2952
|
-
|
|
2953
|
+
(0, import_plugin_markdown_loader.markdownLoaderPlugin)(),
|
|
2953
2954
|
createSkillsPlugin({
|
|
2954
2955
|
paths: resolvedPaths
|
|
2955
2956
|
})
|
|
@@ -2971,7 +2972,7 @@ function getDefaultAgents() {
|
|
|
2971
2972
|
description: "",
|
|
2972
2973
|
plugins: [
|
|
2973
2974
|
createLargeResultPlugin({}),
|
|
2974
|
-
import_plugin_code_execution.
|
|
2975
|
+
(0, import_plugin_code_execution.createCodeExecutionPlugin)()
|
|
2975
2976
|
],
|
|
2976
2977
|
options: {
|
|
2977
2978
|
mode: "code_execution"
|
|
@@ -3401,6 +3402,13 @@ function applyModeOverride(config, mode) {
|
|
|
3401
3402
|
if (typeof agent === "string") return;
|
|
3402
3403
|
if (!agent.options) agent.options = {};
|
|
3403
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
|
+
}
|
|
3404
3412
|
});
|
|
3405
3413
|
return config;
|
|
3406
3414
|
}
|
|
@@ -10225,6 +10233,7 @@ var PluginManager = class {
|
|
|
10225
10233
|
/**
|
|
10226
10234
|
* Trigger registerAgentTool hook - allows plugins to register the main agent tool
|
|
10227
10235
|
* Returns true if any plugin handled the registration
|
|
10236
|
+
* Throws the original error if plugin fails (instead of swallowing it)
|
|
10228
10237
|
*/
|
|
10229
10238
|
async triggerRegisterAgentTool(context2) {
|
|
10230
10239
|
const registerPlugins = this.plugins.filter((p2) => p2.registerAgentTool && shouldApplyPlugin(p2, context2.mode));
|
|
@@ -10234,13 +10243,8 @@ var PluginManager = class {
|
|
|
10234
10243
|
const sortedPlugins = sortPluginsByOrder(registerPlugins).reverse();
|
|
10235
10244
|
for (const plugin of sortedPlugins) {
|
|
10236
10245
|
if (plugin.registerAgentTool) {
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
return true;
|
|
10240
|
-
} catch (error) {
|
|
10241
|
-
const errorMsg = error instanceof Error ? error.message : String(error);
|
|
10242
|
-
await this.logger.error(`Plugin "${plugin.name}" registerAgentTool failed: ${errorMsg}`);
|
|
10243
|
-
}
|
|
10246
|
+
await plugin.registerAgentTool(context2);
|
|
10247
|
+
return true;
|
|
10244
10248
|
}
|
|
10245
10249
|
}
|
|
10246
10250
|
return false;
|
package/bin/mcpc.mjs
CHANGED
|
@@ -2947,7 +2947,8 @@ Available skills: ${available.join(", ")}` : "\n\nNo skills available.";
|
|
|
2947
2947
|
}
|
|
2948
2948
|
|
|
2949
2949
|
// __mcpc__cli_latest/node_modules/@mcpc/cli/src/defaults.js
|
|
2950
|
-
import {
|
|
2950
|
+
import { createCodeExecutionPlugin } from "@mcpc-tech/plugin-code-execution";
|
|
2951
|
+
import { markdownLoaderPlugin } from "@mcpc-tech/plugin-markdown-loader";
|
|
2951
2952
|
import { resolve as resolve3 } from "node:path";
|
|
2952
2953
|
import process3 from "node:process";
|
|
2953
2954
|
var DEFAULT_SKILLS_PATHS = [
|
|
@@ -2957,7 +2958,7 @@ var DEFAULT_CODE_EXECUTION_TIMEOUT = 3e5;
|
|
|
2957
2958
|
function getGlobalPlugins(skillsPaths) {
|
|
2958
2959
|
const resolvedPaths = skillsPaths.map((p2) => resolve3(process3.cwd(), p2));
|
|
2959
2960
|
return [
|
|
2960
|
-
|
|
2961
|
+
markdownLoaderPlugin(),
|
|
2961
2962
|
createSkillsPlugin({
|
|
2962
2963
|
paths: resolvedPaths
|
|
2963
2964
|
})
|
|
@@ -2979,7 +2980,7 @@ function getDefaultAgents() {
|
|
|
2979
2980
|
description: "",
|
|
2980
2981
|
plugins: [
|
|
2981
2982
|
createLargeResultPlugin({}),
|
|
2982
|
-
|
|
2983
|
+
createCodeExecutionPlugin()
|
|
2983
2984
|
],
|
|
2984
2985
|
options: {
|
|
2985
2986
|
mode: "code_execution"
|
|
@@ -3409,6 +3410,13 @@ function applyModeOverride(config, mode) {
|
|
|
3409
3410
|
if (typeof agent === "string") return;
|
|
3410
3411
|
if (!agent.options) agent.options = {};
|
|
3411
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
|
+
}
|
|
3412
3420
|
});
|
|
3413
3421
|
return config;
|
|
3414
3422
|
}
|
|
@@ -10232,6 +10240,7 @@ var PluginManager = class {
|
|
|
10232
10240
|
/**
|
|
10233
10241
|
* Trigger registerAgentTool hook - allows plugins to register the main agent tool
|
|
10234
10242
|
* Returns true if any plugin handled the registration
|
|
10243
|
+
* Throws the original error if plugin fails (instead of swallowing it)
|
|
10235
10244
|
*/
|
|
10236
10245
|
async triggerRegisterAgentTool(context2) {
|
|
10237
10246
|
const registerPlugins = this.plugins.filter((p2) => p2.registerAgentTool && shouldApplyPlugin(p2, context2.mode));
|
|
@@ -10241,13 +10250,8 @@ var PluginManager = class {
|
|
|
10241
10250
|
const sortedPlugins = sortPluginsByOrder(registerPlugins).reverse();
|
|
10242
10251
|
for (const plugin of sortedPlugins) {
|
|
10243
10252
|
if (plugin.registerAgentTool) {
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
return true;
|
|
10247
|
-
} catch (error) {
|
|
10248
|
-
const errorMsg = error instanceof Error ? error.message : String(error);
|
|
10249
|
-
await this.logger.error(`Plugin "${plugin.name}" registerAgentTool failed: ${errorMsg}`);
|
|
10250
|
-
}
|
|
10253
|
+
await plugin.registerAgentTool(context2);
|
|
10254
|
+
return true;
|
|
10251
10255
|
}
|
|
10252
10256
|
}
|
|
10253
10257
|
return false;
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcpc-tech/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
4
4
|
"homepage": "https://jsr.io/@mcpc/cli",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@hono/zod-openapi": "^0.19.2",
|
|
7
7
|
"@mcpc-tech/plugin-code-execution": "^0.0.8",
|
|
8
|
+
"@mcpc-tech/plugin-markdown-loader": "^0.0.7",
|
|
8
9
|
"@modelcontextprotocol/sdk": "^1.8.0",
|
|
9
10
|
"zod": "^3.24.2",
|
|
10
11
|
"@ai-sdk/provider": "^2.0.0",
|
|
@@ -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"}
|