@context-use/openclaw-memory 0.1.0-beta.109

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.
@@ -0,0 +1,96 @@
1
+ // package.json
2
+ var package_default = {
3
+ name: "@context-use/openclaw-memory",
4
+ version: "0.1.0-beta.109",
5
+ description: "Context Use as OpenClaw's sole durable personal memory",
6
+ type: "module",
7
+ license: "MIT",
8
+ bin: {
9
+ "context-use-openclaw": "./pkg/dist/bootstrap.js"
10
+ },
11
+ openclaw: {
12
+ extensions: [
13
+ "./dist/index.js"
14
+ ]
15
+ },
16
+ scripts: {
17
+ "check:types": "bun run --bun tsc",
18
+ test: "bun test test",
19
+ "test:e2e": "bun run pack:release && bun run scripts/e2e.ts",
20
+ "test:published": "bun run scripts/e2e.ts --published",
21
+ "pack:release": "bun run build:plugin && bun run scripts/pack.ts",
22
+ "build:plugin": "bun run scripts/build.ts"
23
+ },
24
+ peerDependencies: {
25
+ openclaw: ">=2026.9.4"
26
+ },
27
+ devDependencies: {
28
+ "@repo/browser-testing": "workspace:*",
29
+ "@repo/typescript-config": "workspace:*",
30
+ "@types/proper-lockfile": "^4.1.4",
31
+ "@types/semver": "^7.8.0",
32
+ openclaw: "2026.9.4",
33
+ typescript: "catalog:"
34
+ },
35
+ dependencies: {
36
+ "@modelcontextprotocol/client": "^2",
37
+ "proper-lockfile": "^4.1.2",
38
+ semver: "^7.8.5",
39
+ typebox: "^1",
40
+ zod: "^4.4.3"
41
+ },
42
+ private: true,
43
+ engines: {
44
+ node: "^24.16.0 || >=26.1.0"
45
+ },
46
+ peerDependenciesMeta: {
47
+ openclaw: {
48
+ optional: true
49
+ }
50
+ },
51
+ repository: {
52
+ type: "git",
53
+ url: "git+https://github.com/massimoalbarello/context-use.git",
54
+ directory: "packages/openclaw-memory"
55
+ },
56
+ homepage: "https://github.com/massimoalbarello/context-use",
57
+ bugs: {
58
+ url: "https://github.com/massimoalbarello/context-use/issues"
59
+ },
60
+ publishConfig: {
61
+ access: "public",
62
+ tag: "beta"
63
+ },
64
+ exports: {
65
+ "./setup-prompt": "./src/setup-prompt.ts"
66
+ }
67
+ };
68
+
69
+ // src/setup-prompt.ts
70
+ var OPENCLAW_PACKAGE = `${package_default.name}@${package_default.publishConfig.tag}`;
71
+ var OPENCLAW_NPM_URL = `https://www.npmjs.com/package/${package_default.name}`;
72
+ var OPENCLAW_REQUIREMENT = package_default.peerDependencies.openclaw;
73
+ var OPENCLAW_INSTALL_COMMAND = `npx --yes ${OPENCLAW_PACKAGE}`;
74
+ function openclawConnectCommand(serverUrl) {
75
+ return `${OPENCLAW_INSTALL_COMMAND} connect '${serverUrl.replaceAll("'", "'\\''")}'`;
76
+ }
77
+ function openclawSetupPrompt(serverUrl) {
78
+ return `Install Context Use as my sole durable personal memory in this OpenClaw agent. Keep my conversations separate.
79
+
80
+ Check openclaw --version first (requires ${OPENCLAW_REQUIREMENT}), then run:
81
+ ${openclawConnectCommand(serverUrl)}
82
+
83
+ Follow the plugin's instructions: give me the authorization URL and ask me to return the final localhost redirect URL. When I send it back, finish connecting. Let the plugin manage configuration and gateway refresh.
84
+
85
+ After authorization, verify openclaw context-use status. If connected and authenticated, confirm that setup is complete and tell me to start a new session with /new so the memory tools become available.`;
86
+ }
87
+ var OPENCLAW_REMOVAL_PROMPT = `Remove the Context Use memory plugin using ${OPENCLAW_INSTALL_COMMAND} remove in this OpenClaw profile. This also works if authorization was never completed or the plugin is disabled. Let the plugin restore its configuration changes, clear its credentials and refresh the gateway. Preserve my remote memories and conversation history. Verify that a fresh conversation uses the restored memory provider.`;
88
+ export {
89
+ OPENCLAW_INSTALL_COMMAND,
90
+ OPENCLAW_NPM_URL,
91
+ OPENCLAW_PACKAGE,
92
+ OPENCLAW_REMOVAL_PROMPT,
93
+ OPENCLAW_REQUIREMENT,
94
+ openclawConnectCommand,
95
+ openclawSetupPrompt
96
+ };