toon-memory 1.1.1 → 1.1.2
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/dist/cli/setup.js +1 -1
- package/package.json +8 -3
- package/src/cli/setup.ts +3 -1
package/dist/cli/setup.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createInterface } from "readline";
|
|
|
6
6
|
import { createRequire } from "module";
|
|
7
7
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
8
|
const projectRoot = process.cwd();
|
|
9
|
-
const sourceDir = join(__dirname, "..", "src");
|
|
9
|
+
const sourceDir = join(__dirname, "..", "..", "src");
|
|
10
10
|
const HOME = process.env.HOME || process.env.USERPROFILE || "~";
|
|
11
11
|
try {
|
|
12
12
|
createRequire(import.meta.url).resolve("@toon-format/toon");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toon-memory",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Persistent memory system for AI coding agents using TOON format (40% fewer tokens than JSON)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
"build": "npm run build:mcp && npm run build:cli",
|
|
21
21
|
"build:mcp": "esbuild src/mcp/server.ts --bundle --platform=node --format=esm --outfile=mcp/server.js",
|
|
22
22
|
"build:cli": "esbuild src/cli/setup.ts --platform=node --format=esm --outfile=dist/cli/setup.js && esbuild src/cli/toon-memory.ts --platform=node --format=esm --outfile=dist/cli/toon-memory.js",
|
|
23
|
-
"
|
|
23
|
+
"test": "vitest run",
|
|
24
|
+
"test:watch": "vitest",
|
|
25
|
+
"prepublishOnly": "npm run build && npm test"
|
|
24
26
|
},
|
|
25
27
|
"dependencies": {
|
|
26
28
|
"@modelcontextprotocol/server": "^2.0.0-beta.3",
|
|
@@ -28,7 +30,10 @@
|
|
|
28
30
|
"zod": "^4.4.3"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
31
|
-
"
|
|
33
|
+
"@types/node": "^26.1.1",
|
|
34
|
+
"esbuild": "^0.25.0",
|
|
35
|
+
"typescript": "^7.0.2",
|
|
36
|
+
"vitest": "^4.1.10"
|
|
32
37
|
},
|
|
33
38
|
"keywords": [
|
|
34
39
|
"opencode",
|
package/src/cli/setup.ts
CHANGED
|
@@ -7,7 +7,9 @@ import { createRequire } from "module"
|
|
|
7
7
|
|
|
8
8
|
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
9
9
|
const projectRoot = process.cwd()
|
|
10
|
-
|
|
10
|
+
// When compiled to dist/cli/, src is at ../../src
|
|
11
|
+
// When running directly from src/cli/, src is at ../src
|
|
12
|
+
const sourceDir = join(__dirname, "..", "..", "src")
|
|
11
13
|
const HOME = process.env.HOME || process.env.USERPROFILE || "~"
|
|
12
14
|
|
|
13
15
|
interface Agent {
|