@superbfowle/bash-history-mcp-test 0.1.5 → 0.1.7
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 +16 -3
- package/package.json +1 -1
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("atuin load zero-a");
|
|
5
|
+
await client.app.log({
|
|
6
|
+
service: "atuin-history",
|
|
7
|
+
level: "info",
|
|
8
|
+
message: "atuin history load",
|
|
9
|
+
extra: { input, output },
|
|
10
|
+
});
|
|
11
|
+
console.log("atuin load zero-b");
|
|
12
|
+
|
|
4
13
|
return {
|
|
5
14
|
"tool.execute.after": async (input, output) => {
|
|
15
|
+
console.log("atuin history run-a");
|
|
6
16
|
await client.app.log({
|
|
7
|
-
service: "
|
|
17
|
+
service: "atuin-history",
|
|
8
18
|
level: "info",
|
|
9
|
-
message: "
|
|
19
|
+
message: "atuin-history run",
|
|
10
20
|
extra: { input, output },
|
|
11
21
|
});
|
|
22
|
+
console.log("atuin history run-b");
|
|
23
|
+
console.log("atuin history", input, output);
|
|
12
24
|
|
|
13
25
|
if (input.tool !== "bash") {
|
|
14
26
|
return;
|
|
15
27
|
}
|
|
28
|
+
console.log("atuin history run-c");
|
|
16
29
|
|
|
17
30
|
try {
|
|
18
31
|
const command = output.metadata?.args?.command;
|