@agentsky/sky 3.48.1 → 3.49.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 (39) hide show
  1. package/dist/chunk-2H4W5ZKZ.js +34 -0
  2. package/dist/{chunk-W24YSGH4.js → chunk-2YUZZ5VG.js} +7 -856
  3. package/dist/{chunk-E7HNEQ7F.js → chunk-6LRSRXQI.js} +1 -1
  4. package/dist/{chunk-TIP2XS2L.js → chunk-7JFTEJ7B.js} +1 -1
  5. package/dist/chunk-BKNZQZZD.js +857 -0
  6. package/dist/chunk-CK7N635F.js +317 -0
  7. package/dist/{chunk-KHJRD4DR.js → chunk-HFWHVU72.js} +4 -3
  8. package/dist/{chunk-RVDXKUWH.js → chunk-HGL7TLNA.js} +20 -353
  9. package/dist/{chunk-X4DBI7R7.js → chunk-HNUY5PBQ.js} +62 -8
  10. package/dist/{chunk-OJ5ERABF.js → chunk-IO2N34S2.js} +1 -1
  11. package/dist/{chunk-LVHQILKX.js → chunk-JMGVHVOS.js} +27 -23
  12. package/dist/{chunk-H7KHMRUZ.js → chunk-QTE5OMZY.js} +7 -5
  13. package/dist/{chunk-NDVCYVW5.js → chunk-RVI7ZWR2.js} +5 -5
  14. package/dist/chunk-TGU7T4O7.js +1363 -0
  15. package/dist/{chunk-46I7RCQQ.js → chunk-UYBKORXA.js} +43 -24
  16. package/dist/chunk-YO2XUCCF.js +30 -0
  17. package/dist/{chunk-GDZSCISF.js → chunk-ZOXE2XNH.js} +4 -2
  18. package/dist/{compute-TCUMLDEK.js → compute-4MMGFJGE.js} +2 -2
  19. package/dist/compute-report-LIMMRQY3.js +43 -0
  20. package/dist/grok-bot-export-7LSTXWJW.js +57 -0
  21. package/dist/index.js +634 -1791
  22. package/dist/local-agents-O7PYSQGR.js +11 -0
  23. package/dist/{local-skills-EIUQL24E.js → local-skills-5LJST7EP.js} +9 -3
  24. package/dist/{local-skills-run-FSVTDDOW.js → local-skills-run-6SZJQSVF.js} +16 -10
  25. package/dist/mcp-register-XY4MR3ZZ.js +40 -0
  26. package/dist/mcp-serve-QROKKUJV.js +18 -0
  27. package/dist/{trace-GFC46TQC.js → trace-SJZ25T35.js} +4 -3
  28. package/dist/{trace-exclusions-JEGMUPWQ.js → trace-exclusions-IC6OA2ND.js} +3 -2
  29. package/dist/trace-handoff-CD5LOS7B.js +116 -0
  30. package/dist/{trace-library-4F57EGL7.js → trace-library-V23TEXG4.js} +14 -8
  31. package/dist/trace-privacy-DU3TL5EO.js +11 -0
  32. package/package.json +1 -1
  33. package/vendor/trace-collect/SOURCE.json +2 -1
  34. package/vendor/trace-collect/sources/_pii.mjs +56 -0
  35. package/vendor/trace-collect/sources/grok-bot.mjs +180 -0
  36. package/vendor/trace-collect/sources/index.mjs +4 -2
  37. package/vendor/trace-collect/sources/muse-agent.mjs +95 -0
  38. package/dist/compute-report-LC2OH2QJ.js +0 -39
  39. package/dist/mcp-serve-NQJZL7YP.js +0 -16
@@ -0,0 +1,34 @@
1
+ // src/local-agents.ts
2
+ import { existsSync } from "fs";
3
+ import { homedir } from "os";
4
+ import { join } from "path";
5
+ function localAgents(env = process.env, home = homedir()) {
6
+ const claude = env.CLAUDE_CONFIG_DIR || join(home, ".claude");
7
+ const codex = env.CODEX_HOME || join(home, ".codex");
8
+ const cursor = join(home, ".cursor");
9
+ const grok = env.GROK_HOME || join(home, ".grok");
10
+ return [
11
+ { id: "claude_code", name: "Claude Code", root: claude, skillsDir: join(claude, "skills") },
12
+ { id: "codex", name: "Codex", root: codex, skillsDir: join(codex, "skills") },
13
+ { id: "cursor", name: "Cursor", root: cursor, skillsDir: join(cursor, "skills") },
14
+ { id: "grok", name: "Grok", root: grok, skillsDir: join(grok, "skills") }
15
+ ];
16
+ }
17
+ function detectLocalAgents(env = process.env, home = homedir()) {
18
+ return localAgents(env, home).filter((agent) => existsSync(agent.root));
19
+ }
20
+ function selectLocalAgents(ids, env = process.env, home = homedir()) {
21
+ if (!ids?.length) return detectLocalAgents(env, home);
22
+ const known = localAgents(env, home);
23
+ return ids.map((id) => {
24
+ const agent = known.find((candidate) => candidate.id === id);
25
+ if (!agent) throw new Error(`unknown agent ${id} \u2014 expected ${known.map((candidate) => candidate.id).join(" | ")}`);
26
+ return agent;
27
+ });
28
+ }
29
+
30
+ export {
31
+ localAgents,
32
+ detectLocalAgents,
33
+ selectLocalAgents
34
+ };