@orquentra/codebuddy 2.5.0 → 2.6.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.
Files changed (89) hide show
  1. package/CLAUDE_CODEX.md +6 -4
  2. package/README.md +8 -0
  3. package/WORKFLOW.md +5 -5
  4. package/dist/{chunk-JDZ3VK26.js → chunk-2XDPKFUW.js} +114 -823
  5. package/dist/chunk-2XDPKFUW.js.map +1 -0
  6. package/dist/{chunk-QDBDYCM2.js → chunk-5FW3PMNP.js} +2 -2
  7. package/dist/{chunk-776EQXDV.js → chunk-5KZY6OTG.js} +82 -5
  8. package/dist/chunk-5KZY6OTG.js.map +1 -0
  9. package/dist/{chunk-UFZD3JAA.js → chunk-5MQOE4J6.js} +3 -3
  10. package/dist/chunk-5UH3BEQR.js +32 -0
  11. package/dist/chunk-5UH3BEQR.js.map +1 -0
  12. package/dist/{chunk-ROQTT5ZO.js → chunk-B6CO63SQ.js} +8 -7
  13. package/dist/chunk-B6CO63SQ.js.map +1 -0
  14. package/dist/chunk-CSRD5OQA.js +79 -0
  15. package/dist/chunk-CSRD5OQA.js.map +1 -0
  16. package/dist/{chunk-PYLH4MH5.js → chunk-FJOTP632.js} +1 -1
  17. package/dist/{chunk-3XYQGFPB.js → chunk-IBLJOHJL.js} +16 -3
  18. package/dist/chunk-IBLJOHJL.js.map +1 -0
  19. package/dist/chunk-IMFUYEZA.js +1607 -0
  20. package/dist/chunk-IMFUYEZA.js.map +1 -0
  21. package/dist/{chunk-CQPCHMBS.js → chunk-J2EAZ4MA.js} +21 -8
  22. package/dist/chunk-J2EAZ4MA.js.map +1 -0
  23. package/dist/{chunk-KYK6RPAJ.js → chunk-JFDRBPYF.js} +2 -2
  24. package/dist/{chunk-JMWJ7V6Y.js → chunk-JPHJBCZB.js} +2 -2
  25. package/dist/{chunk-JMWJ7V6Y.js.map → chunk-JPHJBCZB.js.map} +1 -1
  26. package/dist/{chunk-L5AYZC3F.js → chunk-NERKZSSE.js} +7 -7
  27. package/dist/{chunk-PCE4STAY.js → chunk-OWWCDRXW.js} +5 -5
  28. package/dist/{chunk-WHZSVY2L.js → chunk-QBDJXGG5.js} +2 -2
  29. package/dist/{chunk-Z5QB367W.js → chunk-R7CD6EXS.js} +367 -1798
  30. package/dist/chunk-R7CD6EXS.js.map +1 -0
  31. package/dist/{chunk-6MKEIDX5.js → chunk-RAJJSCIP.js} +2 -2
  32. package/dist/chunk-S6VEG4S2.js +991 -0
  33. package/dist/chunk-S6VEG4S2.js.map +1 -0
  34. package/dist/{chunk-4BYGTEJT.js → chunk-XBJQKCLU.js} +2 -2
  35. package/dist/cli/index.js +14 -3
  36. package/dist/cli/index.js.map +1 -1
  37. package/dist/{cloud-GP6G3EAK.js → cloud-7WM3YLI4.js} +3 -3
  38. package/dist/{codebuddy-DM-i0Fu5.d.ts → codebuddy-B_pCaQrV.d.ts} +22 -2
  39. package/dist/{config-KFEHLV6W.js → config-DEVHUDIU.js} +3 -3
  40. package/dist/docker-autostart-KDME7TVC.js +12 -0
  41. package/dist/index.d.ts +4 -2
  42. package/dist/index.js +22 -18
  43. package/dist/langgraph/index.d.ts +1 -1
  44. package/dist/lean-command-HTQCPH76.js +15 -0
  45. package/dist/local-5MZURLCZ.js +17 -0
  46. package/dist/{main-BDVQAGAS.js → main-MTBQZGJV.js} +333 -219
  47. package/dist/main-MTBQZGJV.js.map +1 -0
  48. package/dist/{memory-4RGVLPKG.js → memory-KIC5FJVW.js} +4 -4
  49. package/dist/{operations-EQGOFCBD.js → operations-POCHY3WR.js} +8 -7
  50. package/dist/postgres-docker-QQZQ2ABK.js +16 -0
  51. package/dist/{pretool-command-MQQ2UNQM.js → pretool-command-AX6JXP25.js} +3 -3
  52. package/dist/{rerank-3P3C2UHN.js → rerank-5QZ3PNUW.js} +4 -4
  53. package/dist/runtime-CUBOOPZO.js +43 -0
  54. package/dist/runtime-CUBOOPZO.js.map +1 -0
  55. package/dist/stdio-HOV4P3DQ.js +12 -0
  56. package/dist/stdio-HOV4P3DQ.js.map +1 -0
  57. package/dist/{summaries-ZBV5IN7Y.js → summaries-SB5L2TSW.js} +6 -6
  58. package/dist/summaries-SB5L2TSW.js.map +1 -0
  59. package/dist/{zvec-MAPSJQSR.js → zvec-MSRKT7IV.js} +3 -3
  60. package/dist/zvec-MSRKT7IV.js.map +1 -0
  61. package/package.json +7 -10
  62. package/dist/chunk-3XYQGFPB.js.map +0 -1
  63. package/dist/chunk-776EQXDV.js.map +0 -1
  64. package/dist/chunk-CQPCHMBS.js.map +0 -1
  65. package/dist/chunk-JDZ3VK26.js.map +0 -1
  66. package/dist/chunk-ROQTT5ZO.js.map +0 -1
  67. package/dist/chunk-Z5QB367W.js.map +0 -1
  68. package/dist/lean-command-DA4ZNKG3.js +0 -15
  69. package/dist/local-3NGNESNB.js +0 -13
  70. package/dist/main-BDVQAGAS.js.map +0 -1
  71. /package/dist/{chunk-QDBDYCM2.js.map → chunk-5FW3PMNP.js.map} +0 -0
  72. /package/dist/{chunk-UFZD3JAA.js.map → chunk-5MQOE4J6.js.map} +0 -0
  73. /package/dist/{chunk-PYLH4MH5.js.map → chunk-FJOTP632.js.map} +0 -0
  74. /package/dist/{chunk-KYK6RPAJ.js.map → chunk-JFDRBPYF.js.map} +0 -0
  75. /package/dist/{chunk-L5AYZC3F.js.map → chunk-NERKZSSE.js.map} +0 -0
  76. /package/dist/{chunk-PCE4STAY.js.map → chunk-OWWCDRXW.js.map} +0 -0
  77. /package/dist/{chunk-WHZSVY2L.js.map → chunk-QBDJXGG5.js.map} +0 -0
  78. /package/dist/{chunk-6MKEIDX5.js.map → chunk-RAJJSCIP.js.map} +0 -0
  79. /package/dist/{chunk-4BYGTEJT.js.map → chunk-XBJQKCLU.js.map} +0 -0
  80. /package/dist/{cloud-GP6G3EAK.js.map → cloud-7WM3YLI4.js.map} +0 -0
  81. /package/dist/{config-KFEHLV6W.js.map → config-DEVHUDIU.js.map} +0 -0
  82. /package/dist/{lean-command-DA4ZNKG3.js.map → docker-autostart-KDME7TVC.js.map} +0 -0
  83. /package/dist/{local-3NGNESNB.js.map → lean-command-HTQCPH76.js.map} +0 -0
  84. /package/dist/{operations-EQGOFCBD.js.map → local-5MZURLCZ.js.map} +0 -0
  85. /package/dist/{memory-4RGVLPKG.js.map → memory-KIC5FJVW.js.map} +0 -0
  86. /package/dist/{pretool-command-MQQ2UNQM.js.map → operations-POCHY3WR.js.map} +0 -0
  87. /package/dist/{summaries-ZBV5IN7Y.js.map → postgres-docker-QQZQ2ABK.js.map} +0 -0
  88. /package/dist/{zvec-MAPSJQSR.js.map → pretool-command-AX6JXP25.js.map} +0 -0
  89. /package/dist/{rerank-3P3C2UHN.js.map → rerank-5QZ3PNUW.js.map} +0 -0
package/CLAUDE_CODEX.md CHANGED
@@ -266,8 +266,8 @@ Create `.mcp.json`:
266
266
  "args": ["serve"],
267
267
  "env": {
268
268
  "DATABASE_URL": "postgres://codebuddy:codebuddy@localhost:5432/codebuddy",
269
- "HF_TOKEN": "hf_your_token",
270
- "CODEBUDDY_NAMESPACE": "your-project"
269
+ "CODEBUDDY_NAMESPACE": "your-project",
270
+ "CODEBUDDY_PROJECT_ROOT": "/absolute/path/to/your-project"
271
271
  }
272
272
  }
273
273
  }
@@ -338,7 +338,7 @@ args = ["serve"]
338
338
  [mcp_servers."codebuddy-your-project".env]
339
339
  CODEBUDDY_NAMESPACE = "your-project"
340
340
  DATABASE_URL = "postgres://codebuddy:codebuddy@localhost:5432/codebuddy"
341
- HF_TOKEN = "hf_your_token"
341
+ CODEBUDDY_PROJECT_ROOT = "/absolute/path/to/your-project"
342
342
  ```
343
343
 
344
344
  Restart Codex after installing or changing an MCP entry.
@@ -413,7 +413,9 @@ codebuddy migrate
413
413
  If Claude Code does not show CodeBuddy tools:
414
414
 
415
415
  - confirm `.mcp.json` is in the project root
416
- - confirm `HF_TOKEN`, `DATABASE_URL`, and `CODEBUDDY_NAMESPACE`
416
+ - confirm `DATABASE_URL`, `CODEBUDDY_NAMESPACE`, and that the server starts in (or
417
+ `CODEBUDDY_PROJECT_ROOT` points to) a folder with `.codebuddy/config.json`.
418
+ `HF_TOKEN` is needed only for `provider.type: "huggingface"`.
417
419
  - restart Claude Code
418
420
 
419
421
  If Codex does not show CodeBuddy tools:
package/README.md CHANGED
@@ -20,6 +20,14 @@ The setup wizard configures the project and agent integration. Project context
20
20
  works without a database; semantic memory recall optionally uses PostgreSQL
21
21
  with pgvector and a local Hugging Face embedding model (no token needed).
22
22
 
23
+ Run setup inside the project you want CodeBuddy to read. Claude Desktop
24
+ registration saves that folder's absolute path, so restarting the desktop app
25
+ does not change which project is indexed. `serve` requires an initialized
26
+ project (`.codebuddy/config.json`) and refuses filesystem roots and home folders.
27
+ Older desktop registrations without a project path can be repaired by running
28
+ `codebuddy claude install` from the initialized project folder, then restarting
29
+ Claude Desktop.
30
+
23
31
  ## What it does
24
32
 
25
33
  - **Task context:** relevant files, symbols, code excerpts, nearby dependencies,
package/WORKFLOW.md CHANGED
@@ -12,7 +12,7 @@ CodeBuddy is a shared notebook for AI agents.
12
12
  - Embeddings are prepared in the background so related memories can be found later.
13
13
  - When an agent asks a question, CodeBuddy picks the most useful memories that fit inside the token budget.
14
14
  - Agents can share facts with other agents through namespaces.
15
- - The CLI helps you see whether the database, Hugging Face models, and memory index are healthy.
15
+ - The CLI helps you see whether the database, the embedding model (local by default), and memory index are healthy (`codebuddy doctor`, `codebuddy models`).
16
16
 
17
17
  ## Graphical Flow
18
18
 
@@ -38,7 +38,7 @@ CodeBuddy Core
38
38
  |
39
39
  +--> In-process embedding worker
40
40
  | |
41
- | +--> Hugging Face resilience layer
41
+ | +--> embedding provider (local model by default; Hugging Face or OpenRouter optional)
42
42
  | | |
43
43
  | | +--> retry/backoff
44
44
  | | +--> cold-start wait
@@ -71,7 +71,7 @@ Planner packs best items under token budget
71
71
  5. In one transaction, it writes the memory row and creates an embedding row with `status=pending`.
72
72
  6. For facts and summaries, it also writes a Markdown file.
73
73
  7. If the same content or idempotency key already exists, it returns the original ID with `deduplicated: true`.
74
- 8. After the transaction, the in-process worker asks Hugging Face for embeddings.
74
+ 8. After the transaction, the in-process worker asks the embedding provider (the local model by default) for embeddings.
75
75
  9. The embedding row becomes `ready` or `failed`.
76
76
 
77
77
  ## Migration And Recovery Flow
@@ -130,7 +130,7 @@ source delete ---> B remains
130
130
  - database connection
131
131
  - `pgvector` extension
132
132
  - vector index health
133
- - Hugging Face model reachability
133
+ - embedding model readiness (`codebuddy models`)
134
134
  - gated model errors
135
135
  - cold vs warm model state
136
136
  - rate-limit pressure
@@ -140,7 +140,7 @@ source delete ---> B remains
140
140
 
141
141
  ## Why Async Embeddings Matter
142
142
 
143
- Hugging Face free-tier models can be cold or rate-limited. CodeBuddy should not block a memory write just because a model needs time to wake up. It stores the memory first, marks the embedding as pending, and lets recall use recency until vectors are ready.
143
+ A hosted embedding API can be cold or rate-limited, and the local model downloads once on first use. CodeBuddy should not block a memory write just because a model needs time to wake up. It stores the memory first, marks the embedding as pending, and lets recall use recency until vectors are ready.
144
144
 
145
145
  ## What The User Sees
146
146