@possumtech/rummy 0.2.1 → 0.2.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/.env.example CHANGED
@@ -6,7 +6,7 @@ PORT=3044
6
6
 
7
7
  RUMMY_DB_PATH=./rummy.db
8
8
  # SQLite mmap size in MB
9
- RUMMY_MMAP_MB=256
9
+ # RUMMY_MMAP_MB=1024
10
10
 
11
11
  # Agent Loop Limits
12
12
  RUMMY_MAX_TURNS=99
@@ -32,17 +32,17 @@ RUMMY_HTTP_REFERER=https://github.com/possumtech/rummy
32
32
  # RUMMY_X_TITLE shows your app name in OpenRouter dashboards/rankings
33
33
  RUMMY_X_TITLE=RUMMY
34
34
 
35
- OLLAMA_BASE_URL="http://127.0.0.1:11434"
35
+ # OLLAMA_BASE_URL="http://127.0.0.1:11434"
36
36
 
37
37
  # OPENAI_BASE_URL="http://127.0.0.1:11434"
38
38
  # OPENAI_API_KEY=
39
39
 
40
- XAI_BASE_URL="https://api.x.ai/v1/responses"
40
+ # XAI_BASE_URL="https://api.x.ai/v1/responses"
41
41
  # XAI_API_KEY=""
42
42
 
43
43
  # Model Aliases (Optional)
44
- RUMMY_MODEL_g420="x.ai/grok-4.20-reasoning-latest"
45
- RUMMY_MODEL_grok="x.ai/grok-4-1-fast-reasoning-latest"
44
+ # RUMMY_MODEL_g420="x.ai/grok-4.20-reasoning-latest"
45
+ # RUMMY_MODEL_grok="x.ai/grok-4-1-fast-reasoning-latest"
46
46
 
47
47
  # Necessary for automated testing
48
48
  # RUMMY_TEST_MODEL=grok
@@ -50,6 +50,7 @@ RUMMY_MODEL_grok="x.ai/grok-4-1-fast-reasoning-latest"
50
50
  # Web Search
51
51
  # RUMMY_SEARXNG_URL="http://127.0.0.1:8888"
52
52
 
53
- # External plugins (npm packages with register() export)
53
+ # required for web fetch and search
54
54
  # RUMMY_PLUGIN_WEB="@possumtech/rummy.web"
55
+ # required for git repo and repomap/symbol functionality
55
56
  # RUMMY_PLUGIN_REPO="@possumtech/rummy.repo"
package/bin/rummy.js ADDED
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { existsSync, mkdirSync } from "node:fs";
4
+ import { join, dirname } from "node:path";
5
+ import { fileURLToPath } from "node:url";
6
+ import { homedir } from "node:os";
7
+
8
+ const __dirname = dirname(fileURLToPath(import.meta.url));
9
+ const packageRoot = join(__dirname, "..");
10
+
11
+ // Resolve RUMMY_HOME
12
+ const rummyHome = process.env.RUMMY_HOME || join(homedir(), ".rummy");
13
+ process.env.RUMMY_HOME = rummyHome;
14
+
15
+ // Bootstrap ~/.rummy if needed
16
+ if (!existsSync(rummyHome)) {
17
+ mkdirSync(rummyHome, { recursive: true });
18
+ console.log(`[RUMMY] Created ${rummyHome}`);
19
+ }
20
+ for (const dir of ["plugins", "skills", "personas"]) {
21
+ const path = join(rummyHome, dir);
22
+ if (!existsSync(path)) mkdirSync(path, { recursive: true });
23
+ }
24
+
25
+ // Load defaults from .env.example, then user overrides from ~/.rummy/.env
26
+ process.loadEnvFile(join(packageRoot, ".env.example"));
27
+ const userEnv = join(rummyHome, ".env");
28
+ if (existsSync(userEnv)) process.loadEnvFile(userEnv);
29
+
30
+ // Start service
31
+ await import(join(packageRoot, "service.js"));
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@possumtech/rummy",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Relational Unknowns Memory Management Yoke",
5
5
  "keywords": [
6
6
  "llm"
7
7
  ],
8
+ "bin": {
9
+ "rummy": "./bin/rummy.js"
10
+ },
8
11
  "publishConfig": {
9
12
  "access": "public"
10
13
  },