@fancyboi999/open-tag-daemon 0.3.0 → 0.4.0

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 (2) hide show
  1. package/dist/cli.mjs +24 -5
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -5649,9 +5649,28 @@ async function readSkillsDir(dir, sourcePath) {
5649
5649
  }
5650
5650
  return out;
5651
5651
  }
5652
- async function listSkills(agentId) {
5653
- const global = await readSkillsDir(path11.join(os3.homedir(), ".claude", "skills"), "~/.claude/skills");
5654
- const workspace = await readSkillsDir(path11.join(DATA_DIR2, agentId, ".claude", "skills"), "<workspace>/.claude/skills");
5652
+ var HOME = os3.homedir();
5653
+ var UNIVERSAL_SKILLS = { dir: path11.join(HOME, ".agents", "skills"), label: "~/.agents/skills" };
5654
+ var PROVIDER_HOME_SKILLS = {
5655
+ claude: { dir: path11.join(HOME, ".claude", "skills"), label: "~/.claude/skills" },
5656
+ codex: { dir: path11.join(process.env.CODEX_HOME || path11.join(HOME, ".codex"), "skills"), label: "~/.codex/skills" },
5657
+ copilot: { dir: path11.join(HOME, ".copilot", "skills"), label: "~/.copilot/skills" },
5658
+ opencode: { dir: path11.join(HOME, ".config", "opencode", "skills"), label: "~/.config/opencode/skills" },
5659
+ cursor: { dir: path11.join(HOME, ".cursor", "skills"), label: "~/.cursor/skills" },
5660
+ pi: { dir: path11.join(HOME, ".pi", "agent", "skills"), label: "~/.pi/agent/skills" }
5661
+ };
5662
+ var PROVIDER_WS_DIR = { claude: ".claude", codex: ".codex", copilot: ".copilot", opencode: ".opencode", cursor: ".cursor", pi: ".pi" };
5663
+ function skillRootsFor(runtime, agentId) {
5664
+ const home = PROVIDER_HOME_SKILLS[runtime];
5665
+ const global = home ? [home, UNIVERSAL_SKILLS] : [UNIVERSAL_SKILLS];
5666
+ const wsName = PROVIDER_WS_DIR[runtime];
5667
+ const workspace = wsName ? { dir: path11.join(DATA_DIR2, agentId, wsName, "skills"), label: `<workspace>/${wsName}/skills` } : null;
5668
+ return { global, workspace };
5669
+ }
5670
+ async function listSkills(agentId, runtime = "claude") {
5671
+ const roots = skillRootsFor(runtime, agentId);
5672
+ const global = (await Promise.all(roots.global.map((r) => readSkillsDir(r.dir, r.label)))).flat();
5673
+ const workspace = roots.workspace ? await readSkillsDir(roots.workspace.dir, roots.workspace.label) : [];
5655
5674
  return { global, workspace };
5656
5675
  }
5657
5676
  async function readWorkspaceFile(agentId, rel) {
@@ -5916,7 +5935,7 @@ conn = new Connection(serverUrl, apiKey, (msg) => {
5916
5935
  void readWorkspaceFile(msg.agentId, msg.path ?? "").then((r) => conn.send({ type: "workspace:file_content", requestId: msg.requestId, agentId: msg.agentId, ...r }));
5917
5936
  break;
5918
5937
  case "agent:skills:list":
5919
- void listSkills(msg.agentId).then((r) => conn.send({ type: "skills:list", requestId: msg.requestId, agentId: msg.agentId, ...r }));
5938
+ void listSkills(msg.agentId, msg.runtime).then((r) => conn.send({ type: "skills:list", requestId: msg.requestId, agentId: msg.agentId, ...r }));
5920
5939
  break;
5921
5940
  case "probe-models":
5922
5941
  void listModels(msg.runtime ?? "").then((models) => conn.send({ type: "models", requestId: msg.requestId, runtime: msg.runtime, models })).catch((e) => conn.send({ type: "models", requestId: msg.requestId, runtime: msg.runtime, models: null, error: String(e?.message ?? e) }));
@@ -5935,7 +5954,7 @@ conn = new Connection(serverUrl, apiKey, (msg) => {
5935
5954
  runningAgents: mgr.running(),
5936
5955
  hostname: os4.hostname(),
5937
5956
  os: `${os4.platform()} ${os4.arch()}`,
5938
- daemonVersion: "0.3.0",
5957
+ daemonVersion: "0.4.0",
5939
5958
  machineId: readMachineId()
5940
5959
  // Stable identity: empty on first connection; server sends it back via ready:ack for persistence.
5941
5960
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fancyboi999/open-tag-daemon",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "open-tag compute-plane daemon — connect any machine to an open-tag server so its agents run there. No repo clone needed.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",