@phren/cli 0.1.10 → 0.1.12
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/hooks-session.js +47 -8
- package/dist/cli/team.js +12 -0
- package/dist/cli-hooks-git.js +9 -2
- package/dist/cli-hooks-stop.js +11 -23
- package/dist/generated/memory-ui-graph.browser.js +23 -22
- package/dist/governance/rbac.d.ts +1 -1
- package/dist/governance/rbac.js +1 -0
- package/dist/init/setup.js +3 -2
- package/dist/memory-ui-graph.runtime.js +23 -22
- package/dist/tools/ops.js +39 -3
- package/dist/tools/tasks.js +29 -1
- package/package.json +9 -9
- package/starter/global/CLAUDE.md +9 -0
- package/LICENSE +0 -21
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* The actor is read from the PHREN_ACTOR env var (falls back to open if unset).
|
|
18
18
|
*/
|
|
19
|
-
type RbacAction = "add_finding" | "remove_finding" | "edit_finding" | "complete_task" | "add_task" | "remove_task" | "update_task" | "manage_config";
|
|
19
|
+
type RbacAction = "add_finding" | "remove_finding" | "edit_finding" | "complete_task" | "add_task" | "remove_task" | "update_task" | "pin_task" | "manage_config";
|
|
20
20
|
/**
|
|
21
21
|
* Convenience wrapper: returns a permission-denied MCP error string,
|
|
22
22
|
* or null if the action is allowed.
|
package/dist/governance/rbac.js
CHANGED
package/dist/init/setup.js
CHANGED
|
@@ -303,8 +303,9 @@ function repairGlobalClaudeSymlink(phrenPath) {
|
|
|
303
303
|
const target = path.resolve(path.dirname(dest), fs.readlinkSync(dest));
|
|
304
304
|
if (target === path.resolve(src))
|
|
305
305
|
return false; // already correct
|
|
306
|
-
// Stale symlink pointing elsewhere — managed by phren, safe to replace
|
|
307
|
-
|
|
306
|
+
// Stale symlink pointing elsewhere — managed by phren, safe to replace.
|
|
307
|
+
// Match .phren dirs and phren-created links (test runs use /tmp/phren-*/global/CLAUDE.md)
|
|
308
|
+
if (target.includes(".phren") || target.endsWith("global/CLAUDE.md"))
|
|
308
309
|
fs.unlinkSync(dest);
|
|
309
310
|
else
|
|
310
311
|
return false; // not ours, don't touch
|