fix(memory-claudemem): align with moltbot plugin conventions
- Use MoltbotPluginApi type (not ClawdbotPluginApi which doesn't exist) - Update package.json to use @moltbot/ namespace - Add moltbot.extensions array to package.json - Update version to match moltbot versioning scheme
This commit is contained in:
parent
e5fa404640
commit
bf0b184b57
@ -6,7 +6,7 @@
|
|||||||
* to ensure proper UI broadcasts and consistency with Claude Code.
|
* to ensure proper UI broadcasts and consistency with Claude Code.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { ClawdbotPluginApi } from "clawdbot/plugin-sdk";
|
import type { MoltbotPluginApi } from "clawdbot/plugin-sdk";
|
||||||
import { writeFile, readdir, stat, mkdir } from "fs/promises";
|
import { writeFile, readdir, stat, mkdir } from "fs/promises";
|
||||||
import { join, basename } from "path";
|
import { join, basename } from "path";
|
||||||
import { homedir, tmpdir } from "os";
|
import { homedir, tmpdir } from "os";
|
||||||
@ -170,7 +170,7 @@ function callHookFireAndForget(hookName: string, data: Record<string, unknown>):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function (api: ClawdbotPluginApi) {
|
export default function (api: MoltbotPluginApi) {
|
||||||
const userConfig = api.pluginConfig as Partial<ClaudeMemConfig>;
|
const userConfig = api.pluginConfig as Partial<ClaudeMemConfig>;
|
||||||
|
|
||||||
// Check for custom worker path first (for manual installs)
|
// Check for custom worker path first (for manual installs)
|
||||||
|
|||||||
@ -1,13 +1,17 @@
|
|||||||
{
|
{
|
||||||
"name": "@clawdbot/memory-claudemem",
|
"name": "@moltbot/memory-claudemem",
|
||||||
"version": "0.0.1",
|
"version": "2026.1.28-beta.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "index.ts",
|
"description": "Moltbot claude-mem memory integration plugin",
|
||||||
"dependencies": {},
|
"moltbot": {
|
||||||
"devDependencies": {
|
"extensions": [
|
||||||
"clawdbot": "workspace:*"
|
"./index.ts"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"clawdbot": "*"
|
"moltbot": ">=2026.1.26"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"moltbot": "workspace:*"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user