@superbfowle/bash-history-mcp-test 0.1.0 → 0.1.1
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.ts +1 -24
- package/package.json +20 -16
- package/server.ts +0 -0
package/index.ts
CHANGED
|
@@ -5,12 +5,6 @@
|
|
|
5
5
|
* Adds bash commands to atuin history
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { realpath } from "node:fs/promises";
|
|
9
|
-
import { fileURLToPath } from "node:url";
|
|
10
|
-
import { dirname } from "node:path";
|
|
11
|
-
|
|
12
|
-
export { OpencodeBashHistoryPlugin } from "./opencode.ts";
|
|
13
|
-
|
|
14
8
|
interface ToolInput {
|
|
15
9
|
command: string;
|
|
16
10
|
description?: string;
|
|
@@ -75,21 +69,4 @@ async function main() {
|
|
|
75
69
|
}
|
|
76
70
|
}
|
|
77
71
|
|
|
78
|
-
|
|
79
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
80
|
-
const __dirname = dirname(__filename);
|
|
81
|
-
|
|
82
|
-
try {
|
|
83
|
-
const resolvedMainPath = await realpath(process.argv[1]);
|
|
84
|
-
|
|
85
|
-
// Early guard return if not being run as main module
|
|
86
|
-
if (resolvedMainPath !== __filename) {
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
// Only call main if we are the main module
|
|
91
|
-
await main();
|
|
92
|
-
} catch {}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
runIfMain();
|
|
72
|
+
main();
|
package/package.json
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
"name": "@superbfowle/bash-history-mcp-test",
|
|
3
|
+
"version": "0.1.1",
|
|
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
|