@kisev/memomatic 1.0.0-dev.47.gcb218d104bc4 → 1.0.0-dev.49.gf74dc1d4e538

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.
Files changed (2) hide show
  1. package/dist/cli.js +6 -0
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ import { readFileSync } from "node:fs";
2
3
  import { openMemomatic, rebuildIndex, searchMemory } from "./service.js";
3
4
  import { runDream } from "./dream.js";
4
5
  import { processInbox, withRunLock } from "./inbox.js";
@@ -35,6 +36,11 @@ async function main() {
35
36
  process.stdout.write(await handleMcpRequest({ id: 1, method: "tools/list" }));
36
37
  return;
37
38
  }
39
+ if (command === "--version") {
40
+ const { version } = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
41
+ process.stdout.write(`${version}\n`);
42
+ return;
43
+ }
38
44
  const context = await openMemomatic();
39
45
  try {
40
46
  if (command === "dream" || command === "process") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kisev/memomatic",
3
- "version": "1.0.0-dev.47.gcb218d104bc4",
3
+ "version": "1.0.0-dev.49.gf74dc1d4e538",
4
4
  "description": "Personal learning memory for agents: tiered Markdown corpus, rebuildable index, dream sweep.",
5
5
  "homepage": "https://github.com/kisev/skills#readme",
6
6
  "bugs": {
@@ -34,7 +34,7 @@
34
34
  "pack:check": "node test/pack-allowlist.mjs"
35
35
  },
36
36
  "dependencies": {
37
- "@kisev/safe-fs": "1.0.0-dev.47.gcb218d104bc4"
37
+ "@kisev/safe-fs": "1.0.0-dev.49.gf74dc1d4e538"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/node": "22.15.30",