@phren/cli 0.0.44 → 0.0.46
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/README.md +19 -0
- package/mcp/dist/cli-hooks-stop.js +2 -2
- package/mcp/dist/entrypoint.js +4 -1
- package/mcp/dist/generated/memory-ui-graph.browser.js +1 -1
- package/mcp/dist/link/doctor.js +43 -0
- package/mcp/dist/memory-ui-graph.runtime.js +1 -1
- package/mcp/dist/shared/index.js +52 -7
- package/mcp/dist/status.js +27 -0
- package/mcp/dist/ui/data.js +80 -54
- package/mcp/dist/ui/server.js +24 -4
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -49,6 +49,25 @@ Init detects your tools, registers MCP servers, and installs lifecycle hooks. Af
|
|
|
49
49
|
|
|
50
50
|
To add a project later, run `phren add` from that directory. To browse what phren knows, run `phren` to open the interactive shell.
|
|
51
51
|
|
|
52
|
+
## Team stores
|
|
53
|
+
|
|
54
|
+
Phren supports shared team knowledge repos alongside your personal store. A team store is a separate git repo that multiple people push to. Findings, tasks, and skills saved there are visible to everyone on the team.
|
|
55
|
+
|
|
56
|
+
Create a team store:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
phren team init my-team --remote git@github.com:org/phren-team.git
|
|
60
|
+
phren team add-project my-team my-project
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Join an existing team store:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
phren team join git@github.com:org/phren-team.git
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Each team store syncs independently. Run `phren team list` to see all registered stores.
|
|
70
|
+
|
|
52
71
|
---
|
|
53
72
|
|
|
54
73
|
MIT License. Made by [Ala Arab](https://github.com/alaarab).
|
|
@@ -492,8 +492,8 @@ export async function handleHookStop() {
|
|
|
492
492
|
for (const store of otherStores) {
|
|
493
493
|
if (!fs.existsSync(store.path) || !fs.existsSync(path.join(store.path, ".git")))
|
|
494
494
|
continue;
|
|
495
|
-
if (store.role === "team") {
|
|
496
|
-
// Team stores: stage team-safe files, commit, and push
|
|
495
|
+
if (store.role === "team" && store.sync !== "pull-only") {
|
|
496
|
+
// Team stores with managed-git sync: stage team-safe files, commit, and push
|
|
497
497
|
try {
|
|
498
498
|
const storeStatus = await runBestEffortGit(["status", "--porcelain"], store.path);
|
|
499
499
|
if (storeStatus.ok && storeStatus.output) {
|
package/mcp/dist/entrypoint.js
CHANGED
|
@@ -19,9 +19,12 @@ const HELP_TEXT = `phren - persistent knowledge for your agents
|
|
|
19
19
|
phren tasks Cross-project task view
|
|
20
20
|
phren graph Fragment knowledge graph
|
|
21
21
|
|
|
22
|
+
phren store list List registered stores
|
|
23
|
+
phren team init <name> Create a team store
|
|
24
|
+
|
|
22
25
|
phren help <topic> Detailed help for a topic
|
|
23
26
|
|
|
24
|
-
Topics: projects, skills, hooks, config, maintain, setup, env, all
|
|
27
|
+
Topics: projects, skills, hooks, config, maintain, setup, stores, team, env, all
|
|
25
28
|
`;
|
|
26
29
|
const HELP_TOPICS = {
|
|
27
30
|
projects: `Projects:
|