@phren/cli 0.3.22 → 0.3.24
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/bridge/agent-hooks.js +48 -8
- package/dist/bridge/conductor-context.d.ts +7 -0
- package/dist/bridge/conductor-context.js +48 -0
- package/dist/bridge/hook-fast.d.ts +2 -0
- package/dist/bridge/hook-fast.js +20 -1
- package/dist/bridge/server-launch.js +3 -30
- package/dist/bridge/server-routes.js +67 -45
- package/dist/bridge-hook.mjs +488 -401
- package/dist/generated/memory-ui-graph.browser.js +57 -57
- package/dist/init/init-uninstall.js +1 -0
- package/dist/init/setup.js +11 -0
- package/dist/init/teardown.js +1 -0
- package/dist/link/link.js +2 -0
- package/dist/link/refresh.js +1 -1
- package/dist/memory-ui-graph.runtime.js +57 -57
- package/dist/modules/registry.js +1 -1
- package/dist/skill/files.js +7 -1
- package/package.json +1 -1
- package/plugins/opencode/phren-transcript.js +28 -0
|
@@ -77,6 +77,7 @@ function agentSkillDirs() {
|
|
|
77
77
|
path.join(home, ".cursor", "skills"),
|
|
78
78
|
path.join(home, ".copilot", "skills"),
|
|
79
79
|
path.join(home, ".codex", "skills"),
|
|
80
|
+
path.join(home, ".agents", "skills"),
|
|
80
81
|
];
|
|
81
82
|
}
|
|
82
83
|
// Remove skill symlinks that resolve inside phrenPath. Only touches symlinks, never regular files.
|
package/dist/init/setup.js
CHANGED
|
@@ -269,6 +269,17 @@ function ensureGeneratedSkillArtifacts(phrenPath, preferredHome) {
|
|
|
269
269
|
catch (err) {
|
|
270
270
|
debugLog(`ensureGeneratedSkillArtifacts: global skill mirror sync failed: ${errorMessage(err)}`);
|
|
271
271
|
}
|
|
272
|
+
// The standard user skill directory is how Codex discovers folder skills.
|
|
273
|
+
const nativeSkillsDir = path.join(preferredHome, ".agents", "skills");
|
|
274
|
+
const hadNativeSkillsDir = fs.existsSync(nativeSkillsDir);
|
|
275
|
+
try {
|
|
276
|
+
syncScopeSkillsToDir(phrenPath, "global", nativeSkillsDir);
|
|
277
|
+
if (!hadNativeSkillsDir)
|
|
278
|
+
created.push("~/.agents/skills/");
|
|
279
|
+
}
|
|
280
|
+
catch (err) {
|
|
281
|
+
debugLog(`ensureGeneratedSkillArtifacts: native skill mirror sync failed: ${errorMessage(err)}`);
|
|
282
|
+
}
|
|
272
283
|
const copilotSkillsDir = path.join(preferredHome, ".copilot", "skills");
|
|
273
284
|
const hadCopilotSkillsDir = fs.existsSync(copilotSkillsDir);
|
|
274
285
|
if (isCopilotInstalled()) {
|
package/dist/init/teardown.js
CHANGED
package/dist/link/link.js
CHANGED
|
@@ -248,6 +248,8 @@ function linkGlobal(phrenPath, tools, caps) {
|
|
|
248
248
|
log(" global skills -> ~/.claude/skills/");
|
|
249
249
|
const skillsDir = homePath(".claude", "skills");
|
|
250
250
|
syncScopeSkillsToDir(phrenPath, "global", skillsDir);
|
|
251
|
+
log(" global skills -> ~/.agents/skills/");
|
|
252
|
+
syncScopeSkillsToDir(phrenPath, "global", homePath(".agents", "skills"));
|
|
251
253
|
if (tools.has("copilot")) {
|
|
252
254
|
const copilotSkillsDir = homePath(".copilot", "skills");
|
|
253
255
|
log(" global skills -> ~/.copilot/skills/");
|
package/dist/link/refresh.js
CHANGED
|
@@ -10,7 +10,7 @@ import { syncScopeSkillsToDir } from "../skill/files.js";
|
|
|
10
10
|
export function refreshLinkedContext(phrenPath, profile) {
|
|
11
11
|
const caps = resolveManagementCapabilities(phrenPath);
|
|
12
12
|
if (caps.installSkillLinks) {
|
|
13
|
-
for (const tool of [".claude", ".copilot"]) {
|
|
13
|
+
for (const tool of [".claude", ".agents", ".copilot"]) {
|
|
14
14
|
const dir = homePath(tool, "skills");
|
|
15
15
|
if (fs.existsSync(path.join(path.dirname(dir), "skill-manifest.json")))
|
|
16
16
|
syncScopeSkillsToDir(phrenPath, "global", dir);
|