@superbfowle/bash-history-mcp-test 0.1.5 → 0.1.6
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/opencode.ts +14 -1
- package/package.json +20 -20
- package/server.ts +0 -0
package/opencode.ts
CHANGED
|
@@ -1,18 +1,31 @@
|
|
|
1
|
-
import type { Plugin } from "@
|
|
1
|
+
import type { Plugin } from "@odebugpencode-ai/plugin";
|
|
2
2
|
|
|
3
3
|
export const OpencodeBashHistoryPlugin: Plugin = async ({ client }) => {
|
|
4
|
+
console.log("BASH HISTORY zero-a");
|
|
5
|
+
await client.app.log({
|
|
6
|
+
service: "bash-history",
|
|
7
|
+
level: "info",
|
|
8
|
+
message: "Bash-history load",
|
|
9
|
+
extra: { input, output },
|
|
10
|
+
});
|
|
11
|
+
console.log("BASH HISTORY zero-b");
|
|
12
|
+
|
|
4
13
|
return {
|
|
5
14
|
"tool.execute.after": async (input, output) => {
|
|
15
|
+
console.log("BASH HISTORY run-a");
|
|
6
16
|
await client.app.log({
|
|
7
17
|
service: "bash-history",
|
|
8
18
|
level: "info",
|
|
9
19
|
message: "Bash-history debug",
|
|
10
20
|
extra: { input, output },
|
|
11
21
|
});
|
|
22
|
+
console.log("BASH HISTORY run-b");
|
|
23
|
+
console.log("BASH HISTORY", input, output);
|
|
12
24
|
|
|
13
25
|
if (input.tool !== "bash") {
|
|
14
26
|
return;
|
|
15
27
|
}
|
|
28
|
+
console.log("BASH HISTORY run-c");
|
|
16
29
|
|
|
17
30
|
try {
|
|
18
31
|
const command = output.metadata?.args?.command;
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
2
|
+
"name": "@superbfowle/bash-history-mcp-test",
|
|
3
|
+
"version": "0.1.6",
|
|
4
|
+
"module": "index.ts",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": "./cli.ts",
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"@types/bun": "latest"
|
|
9
|
+
},
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"typescript": "^5",
|
|
12
|
+
"@opencode-ai/plugin": "*"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@modelcontextprotocol/sdk": "^1.19.1"
|
|
16
|
+
},
|
|
17
|
+
"exports": {
|
|
18
|
+
".": "./index.ts",
|
|
19
|
+
"./opencode-plugin": "./opencode.ts"
|
|
20
|
+
}
|
|
21
|
+
}
|
package/server.ts
CHANGED
|
File without changes
|