@devenius/junamis-skills 0.0.0-stage → 1.1.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 (311) hide show
  1. package/CHANGELOG.md +150 -0
  2. package/LICENSE +21 -0
  3. package/README.md +231 -2
  4. package/SECURITY.md +81 -0
  5. package/bin/junamis-skills.js +7 -0
  6. package/dist/cli.d.ts +59 -0
  7. package/dist/cli.d.ts.map +1 -0
  8. package/dist/cli.js +564 -0
  9. package/dist/cli.js.map +1 -0
  10. package/dist/color.d.ts +40 -0
  11. package/dist/color.d.ts.map +1 -0
  12. package/dist/color.js +55 -0
  13. package/dist/color.js.map +1 -0
  14. package/dist/design/atomic.d.ts +4 -0
  15. package/dist/design/atomic.d.ts.map +1 -0
  16. package/dist/design/atomic.js +14 -0
  17. package/dist/design/atomic.js.map +1 -0
  18. package/dist/design/bootstrap.d.ts +23 -0
  19. package/dist/design/bootstrap.d.ts.map +1 -0
  20. package/dist/design/bootstrap.js +411 -0
  21. package/dist/design/bootstrap.js.map +1 -0
  22. package/dist/design/cli.d.ts +86 -0
  23. package/dist/design/cli.d.ts.map +1 -0
  24. package/dist/design/cli.js +425 -0
  25. package/dist/design/cli.js.map +1 -0
  26. package/dist/design/delta.d.ts +45 -0
  27. package/dist/design/delta.d.ts.map +1 -0
  28. package/dist/design/delta.js +557 -0
  29. package/dist/design/delta.js.map +1 -0
  30. package/dist/design/drift.d.ts +26 -0
  31. package/dist/design/drift.d.ts.map +1 -0
  32. package/dist/design/drift.js +341 -0
  33. package/dist/design/drift.js.map +1 -0
  34. package/dist/design/errors.d.ts +25 -0
  35. package/dist/design/errors.d.ts.map +1 -0
  36. package/dist/design/errors.js +30 -0
  37. package/dist/design/errors.js.map +1 -0
  38. package/dist/design/events.d.ts +18 -0
  39. package/dist/design/events.d.ts.map +1 -0
  40. package/dist/design/events.js +44 -0
  41. package/dist/design/events.js.map +1 -0
  42. package/dist/design/fingerprint.d.ts +10 -0
  43. package/dist/design/fingerprint.d.ts.map +1 -0
  44. package/dist/design/fingerprint.js +66 -0
  45. package/dist/design/fingerprint.js.map +1 -0
  46. package/dist/design/index-gen.d.ts +16 -0
  47. package/dist/design/index-gen.d.ts.map +1 -0
  48. package/dist/design/index-gen.js +94 -0
  49. package/dist/design/index-gen.js.map +1 -0
  50. package/dist/design/schema.d.ts +54 -0
  51. package/dist/design/schema.d.ts.map +1 -0
  52. package/dist/design/schema.js +408 -0
  53. package/dist/design/schema.js.map +1 -0
  54. package/dist/design/yaml.d.ts +12 -0
  55. package/dist/design/yaml.d.ts.map +1 -0
  56. package/dist/design/yaml.js +264 -0
  57. package/dist/design/yaml.js.map +1 -0
  58. package/dist/external.d.ts +61 -0
  59. package/dist/external.d.ts.map +1 -0
  60. package/dist/external.js +426 -0
  61. package/dist/external.js.map +1 -0
  62. package/dist/guide.d.ts +17 -0
  63. package/dist/guide.d.ts.map +1 -0
  64. package/dist/guide.js +219 -0
  65. package/dist/guide.js.map +1 -0
  66. package/dist/index.d.ts +2 -0
  67. package/dist/index.d.ts.map +1 -0
  68. package/dist/index.js +7 -0
  69. package/dist/index.js.map +1 -0
  70. package/dist/install-external.d.ts +3 -0
  71. package/dist/install-external.d.ts.map +1 -0
  72. package/dist/install-external.js +37 -0
  73. package/dist/install-external.js.map +1 -0
  74. package/dist/library-install.d.ts +39 -0
  75. package/dist/library-install.d.ts.map +1 -0
  76. package/dist/library-install.js +663 -0
  77. package/dist/library-install.js.map +1 -0
  78. package/dist/orchestrator/boot.d.ts +3 -0
  79. package/dist/orchestrator/boot.d.ts.map +1 -0
  80. package/dist/orchestrator/boot.js +515 -0
  81. package/dist/orchestrator/boot.js.map +1 -0
  82. package/dist/orchestrator/cli.d.ts +37 -0
  83. package/dist/orchestrator/cli.d.ts.map +1 -0
  84. package/dist/orchestrator/cli.js +563 -0
  85. package/dist/orchestrator/cli.js.map +1 -0
  86. package/dist/orchestrator/commands.d.ts +46 -0
  87. package/dist/orchestrator/commands.d.ts.map +1 -0
  88. package/dist/orchestrator/commands.js +752 -0
  89. package/dist/orchestrator/commands.js.map +1 -0
  90. package/dist/orchestrator/compaction.d.ts +21 -0
  91. package/dist/orchestrator/compaction.d.ts.map +1 -0
  92. package/dist/orchestrator/compaction.js +93 -0
  93. package/dist/orchestrator/compaction.js.map +1 -0
  94. package/dist/orchestrator/drift.d.ts +11 -0
  95. package/dist/orchestrator/drift.d.ts.map +1 -0
  96. package/dist/orchestrator/drift.js +181 -0
  97. package/dist/orchestrator/drift.js.map +1 -0
  98. package/dist/orchestrator/errors.d.ts +52 -0
  99. package/dist/orchestrator/errors.d.ts.map +1 -0
  100. package/dist/orchestrator/errors.js +96 -0
  101. package/dist/orchestrator/errors.js.map +1 -0
  102. package/dist/orchestrator/frontmatter.d.ts +6 -0
  103. package/dist/orchestrator/frontmatter.d.ts.map +1 -0
  104. package/dist/orchestrator/frontmatter.js +50 -0
  105. package/dist/orchestrator/frontmatter.js.map +1 -0
  106. package/dist/orchestrator/fsx.d.ts +45 -0
  107. package/dist/orchestrator/fsx.d.ts.map +1 -0
  108. package/dist/orchestrator/fsx.js +295 -0
  109. package/dist/orchestrator/fsx.js.map +1 -0
  110. package/dist/orchestrator/handoff.d.ts +8 -0
  111. package/dist/orchestrator/handoff.d.ts.map +1 -0
  112. package/dist/orchestrator/handoff.js +246 -0
  113. package/dist/orchestrator/handoff.js.map +1 -0
  114. package/dist/orchestrator/hash.d.ts +10 -0
  115. package/dist/orchestrator/hash.d.ts.map +1 -0
  116. package/dist/orchestrator/hash.js +65 -0
  117. package/dist/orchestrator/hash.js.map +1 -0
  118. package/dist/orchestrator/journal.d.ts +35 -0
  119. package/dist/orchestrator/journal.d.ts.map +1 -0
  120. package/dist/orchestrator/journal.js +163 -0
  121. package/dist/orchestrator/journal.js.map +1 -0
  122. package/dist/orchestrator/lease.d.ts +31 -0
  123. package/dist/orchestrator/lease.d.ts.map +1 -0
  124. package/dist/orchestrator/lease.js +175 -0
  125. package/dist/orchestrator/lease.js.map +1 -0
  126. package/dist/orchestrator/plan.d.ts +27 -0
  127. package/dist/orchestrator/plan.d.ts.map +1 -0
  128. package/dist/orchestrator/plan.js +240 -0
  129. package/dist/orchestrator/plan.js.map +1 -0
  130. package/dist/orchestrator/report.d.ts +49 -0
  131. package/dist/orchestrator/report.d.ts.map +1 -0
  132. package/dist/orchestrator/report.js +244 -0
  133. package/dist/orchestrator/report.js.map +1 -0
  134. package/dist/orchestrator/state.d.ts +43 -0
  135. package/dist/orchestrator/state.d.ts.map +1 -0
  136. package/dist/orchestrator/state.js +369 -0
  137. package/dist/orchestrator/state.js.map +1 -0
  138. package/dist/orchestrator/store.d.ts +42 -0
  139. package/dist/orchestrator/store.d.ts.map +1 -0
  140. package/dist/orchestrator/store.js +202 -0
  141. package/dist/orchestrator/store.js.map +1 -0
  142. package/dist/orchestrator/test-hooks.d.ts +5 -0
  143. package/dist/orchestrator/test-hooks.d.ts.map +1 -0
  144. package/dist/orchestrator/test-hooks.js +31 -0
  145. package/dist/orchestrator/test-hooks.js.map +1 -0
  146. package/dist/orchestrator/time.d.ts +11 -0
  147. package/dist/orchestrator/time.d.ts.map +1 -0
  148. package/dist/orchestrator/time.js +38 -0
  149. package/dist/orchestrator/time.js.map +1 -0
  150. package/dist/paths.d.ts +9 -0
  151. package/dist/paths.d.ts.map +1 -0
  152. package/dist/paths.js +42 -0
  153. package/dist/paths.js.map +1 -0
  154. package/dist/pinned-source.d.ts +13 -0
  155. package/dist/pinned-source.d.ts.map +1 -0
  156. package/dist/pinned-source.js +238 -0
  157. package/dist/pinned-source.js.map +1 -0
  158. package/dist/reconcile/cli.d.ts +17 -0
  159. package/dist/reconcile/cli.d.ts.map +1 -0
  160. package/dist/reconcile/cli.js +171 -0
  161. package/dist/reconcile/cli.js.map +1 -0
  162. package/dist/reconcile/detectors.d.ts +29 -0
  163. package/dist/reconcile/detectors.d.ts.map +1 -0
  164. package/dist/reconcile/detectors.js +294 -0
  165. package/dist/reconcile/detectors.js.map +1 -0
  166. package/dist/reconcile/manifest.d.ts +11 -0
  167. package/dist/reconcile/manifest.d.ts.map +1 -0
  168. package/dist/reconcile/manifest.js +118 -0
  169. package/dist/reconcile/manifest.js.map +1 -0
  170. package/dist/reconcile/queue.d.ts +3 -0
  171. package/dist/reconcile/queue.d.ts.map +1 -0
  172. package/dist/reconcile/queue.js +723 -0
  173. package/dist/reconcile/queue.js.map +1 -0
  174. package/dist/reconcile/score.d.ts +19 -0
  175. package/dist/reconcile/score.d.ts.map +1 -0
  176. package/dist/reconcile/score.js +58 -0
  177. package/dist/reconcile/score.js.map +1 -0
  178. package/dist/scripts/check-opencode-config.d.ts +12 -0
  179. package/dist/scripts/check-opencode-config.d.ts.map +1 -0
  180. package/dist/scripts/check-opencode-config.js +216 -0
  181. package/dist/scripts/check-opencode-config.js.map +1 -0
  182. package/dist/scripts/check-pack.d.ts +3 -0
  183. package/dist/scripts/check-pack.d.ts.map +1 -0
  184. package/dist/scripts/check-pack.js +74 -0
  185. package/dist/scripts/check-pack.js.map +1 -0
  186. package/dist/scripts/check-pins.d.ts +9 -0
  187. package/dist/scripts/check-pins.d.ts.map +1 -0
  188. package/dist/scripts/check-pins.js +65 -0
  189. package/dist/scripts/check-pins.js.map +1 -0
  190. package/dist/scripts/check-security.d.ts +3 -0
  191. package/dist/scripts/check-security.d.ts.map +1 -0
  192. package/dist/scripts/check-security.js +47 -0
  193. package/dist/scripts/check-security.js.map +1 -0
  194. package/dist/scripts/check-skills-lock.d.ts +7 -0
  195. package/dist/scripts/check-skills-lock.d.ts.map +1 -0
  196. package/dist/scripts/check-skills-lock.js +36 -0
  197. package/dist/scripts/check-skills-lock.js.map +1 -0
  198. package/dist/scripts/check-skills-sync.d.ts +7 -0
  199. package/dist/scripts/check-skills-sync.d.ts.map +1 -0
  200. package/dist/scripts/check-skills-sync.js +146 -0
  201. package/dist/scripts/check-skills-sync.js.map +1 -0
  202. package/dist/scripts/check-yaml.d.ts +3 -0
  203. package/dist/scripts/check-yaml.d.ts.map +1 -0
  204. package/dist/scripts/check-yaml.js +41 -0
  205. package/dist/scripts/check-yaml.js.map +1 -0
  206. package/dist/scripts/publish-npm.d.ts +3 -0
  207. package/dist/scripts/publish-npm.d.ts.map +1 -0
  208. package/dist/scripts/publish-npm.js +67 -0
  209. package/dist/scripts/publish-npm.js.map +1 -0
  210. package/dist/scripts/release-check.d.ts +3 -0
  211. package/dist/scripts/release-check.d.ts.map +1 -0
  212. package/dist/scripts/release-check.js +97 -0
  213. package/dist/scripts/release-check.js.map +1 -0
  214. package/dist/scripts/support.d.ts +41 -0
  215. package/dist/scripts/support.d.ts.map +1 -0
  216. package/dist/scripts/support.js +78 -0
  217. package/dist/scripts/support.js.map +1 -0
  218. package/dist/targets/claude.d.ts +4 -0
  219. package/dist/targets/claude.d.ts.map +1 -0
  220. package/dist/targets/claude.js +42 -0
  221. package/dist/targets/claude.js.map +1 -0
  222. package/dist/targets/cline.d.ts +4 -0
  223. package/dist/targets/cline.d.ts.map +1 -0
  224. package/dist/targets/cline.js +39 -0
  225. package/dist/targets/cline.js.map +1 -0
  226. package/dist/targets/cursor.d.ts +4 -0
  227. package/dist/targets/cursor.d.ts.map +1 -0
  228. package/dist/targets/cursor.js +40 -0
  229. package/dist/targets/cursor.js.map +1 -0
  230. package/dist/targets/index.d.ts +4 -0
  231. package/dist/targets/index.d.ts.map +1 -0
  232. package/dist/targets/index.js +11 -0
  233. package/dist/targets/index.js.map +1 -0
  234. package/dist/targets/opencode.d.ts +4 -0
  235. package/dist/targets/opencode.d.ts.map +1 -0
  236. package/dist/targets/opencode.js +48 -0
  237. package/dist/targets/opencode.js.map +1 -0
  238. package/dist/targets/windsurf.d.ts +4 -0
  239. package/dist/targets/windsurf.d.ts.map +1 -0
  240. package/dist/targets/windsurf.js +41 -0
  241. package/dist/targets/windsurf.js.map +1 -0
  242. package/dist/types/common.d.ts +193 -0
  243. package/dist/types/common.d.ts.map +1 -0
  244. package/dist/types/common.js +6 -0
  245. package/dist/types/common.js.map +1 -0
  246. package/dist/types/design.d.ts +185 -0
  247. package/dist/types/design.d.ts.map +1 -0
  248. package/dist/types/design.js +3 -0
  249. package/dist/types/design.js.map +1 -0
  250. package/dist/types/guards.d.ts +13 -0
  251. package/dist/types/guards.d.ts.map +1 -0
  252. package/dist/types/guards.js +64 -0
  253. package/dist/types/guards.js.map +1 -0
  254. package/dist/types/handoff.d.ts +29 -0
  255. package/dist/types/handoff.d.ts.map +1 -0
  256. package/dist/types/handoff.js +3 -0
  257. package/dist/types/handoff.js.map +1 -0
  258. package/dist/types/index.d.ts +7 -0
  259. package/dist/types/index.d.ts.map +1 -0
  260. package/dist/types/index.js +11 -0
  261. package/dist/types/index.js.map +1 -0
  262. package/dist/types/orchestrator.d.ts +414 -0
  263. package/dist/types/orchestrator.d.ts.map +1 -0
  264. package/dist/types/orchestrator.js +4 -0
  265. package/dist/types/orchestrator.js.map +1 -0
  266. package/dist/types/reconcile.d.ts +160 -0
  267. package/dist/types/reconcile.d.ts.map +1 -0
  268. package/dist/types/reconcile.js +3 -0
  269. package/dist/types/reconcile.js.map +1 -0
  270. package/docs/RECONCILE.md +505 -0
  271. package/docs/design/_schema.md +506 -0
  272. package/junamis-skills.yml +328 -0
  273. package/library/EXTERNAL.md +35 -0
  274. package/library/HANDOFF.md +93 -0
  275. package/library/RESUME.md +429 -0
  276. package/library/SAFETY.md +83 -0
  277. package/library/agents/context-keeper.md +41 -0
  278. package/library/agents/frontend.md +43 -0
  279. package/library/agents/maintainer.md +44 -0
  280. package/library/agents/nestjs.md +40 -0
  281. package/library/agents/nextjs.md +40 -0
  282. package/library/agents/operator.md +42 -0
  283. package/library/agents/orchestrator.md +313 -0
  284. package/library/agents/researcher.md +40 -0
  285. package/library/agents/reviewer.md +40 -0
  286. package/library/skills/db-migrate/SKILL.md +50 -0
  287. package/library/skills/decision-record/SKILL.md +74 -0
  288. package/library/skills/dependency-upgrade/SKILL.md +57 -0
  289. package/library/skills/deploy-verify/SKILL.md +51 -0
  290. package/library/skills/document/SKILL.md +51 -0
  291. package/library/skills/env-doctor/SKILL.md +65 -0
  292. package/library/skills/frontend/SKILL.md +63 -0
  293. package/library/skills/handoff/SKILL.md +79 -0
  294. package/library/skills/incident-response/SKILL.md +69 -0
  295. package/library/skills/nestjs/SKILL.md +49 -0
  296. package/library/skills/nextjs/SKILL.md +48 -0
  297. package/library/skills/perf-budget/SKILL.md +62 -0
  298. package/library/skills/refactor-safely/SKILL.md +48 -0
  299. package/library/skills/release-prep/SKILL.md +75 -0
  300. package/library/skills/research/SKILL.md +66 -0
  301. package/library/skills/rollback/SKILL.md +49 -0
  302. package/library/skills/route/SKILL.md +107 -0
  303. package/library/skills/route-external/SKILL.md +67 -0
  304. package/library/skills/security-audit/SKILL.md +64 -0
  305. package/library/skills/skill-author/SKILL.md +49 -0
  306. package/opencode.json +5906 -0
  307. package/package.json +88 -4
  308. package/scripts/design-registry.mjs +7 -0
  309. package/scripts/orchestrator-state.mjs +7 -0
  310. package/scripts/reconcile.mjs +7 -0
  311. package/skills-lock.json +197 -0
@@ -0,0 +1,78 @@
1
+ // Shared helpers for the development checks that ship in `scripts/`.
2
+ //
3
+ // Every check is compiled to `dist/scripts/` and run through a thin launcher in
4
+ // `scripts/`. A launcher passes in the still-JavaScript runtime modules a check
5
+ // depends on, so that boundary is untyped: whatever crosses it starts as
6
+ // `unknown` here and is narrowed with the guards from `src/types/`.
7
+ //
8
+ // These shapes are private to the dev tooling. `src/types/` stays the public
9
+ // package contract and is not widened for files a consumer never imports.
10
+ import { readFile } from "node:fs/promises";
11
+ import { dirname, resolve } from "node:path";
12
+ import { fileURLToPath } from "node:url";
13
+ import { isRecord, isString, parseJsonUnknown } from "../types/index.js";
14
+ /** Repository root: two levels above a compiled `dist/scripts` module. */
15
+ export const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..", "..");
16
+ /**
17
+ * `Array.isArray` narrows to `any[]`. This guard stops at `unknown[]` so a
18
+ * caller never inherits an implicit `any` element.
19
+ */
20
+ export function isUnknownArray(value) {
21
+ return Array.isArray(value);
22
+ }
23
+ /** Read and parse a JSON file without trusting the result. */
24
+ export async function readJsonFile(path) {
25
+ const raw = await readFile(path, "utf8");
26
+ const parsed = parseJsonUnknown(raw);
27
+ if (!parsed.ok)
28
+ throw new Error(`${path} is not valid JSON: ${parsed.error.message}`);
29
+ return parsed.value;
30
+ }
31
+ export async function readSkillsLock(path) {
32
+ let raw;
33
+ try {
34
+ raw = await readFile(path, "utf8");
35
+ }
36
+ catch {
37
+ throw new Error(`missing ${path}`);
38
+ }
39
+ const parsed = parseJsonUnknown(raw);
40
+ if (!parsed.ok)
41
+ throw new Error(`skills-lock.json is not valid JSON: ${parsed.error.message}`);
42
+ const lock = parsed.value;
43
+ if (!isRecord(lock) || !isRecord(lock["skills"])) {
44
+ throw new Error("skills-lock.json must contain a skills object");
45
+ }
46
+ return { version: lock["version"], skills: lock["skills"] };
47
+ }
48
+ /** Narrow the result of the injected `groupLock` before a check reads it. */
49
+ export function lockGroups(value) {
50
+ if (!isUnknownArray(value))
51
+ throw new Error("lock groups must be an array");
52
+ return value.map((group) => {
53
+ if (!isRecord(group))
54
+ throw new Error("invalid lock group");
55
+ const source = group["source"];
56
+ const ref = group["ref"];
57
+ const skills = group["skills"];
58
+ if (!isString(source) || !isString(ref) || !isUnknownArray(skills)) {
59
+ throw new Error("invalid lock group");
60
+ }
61
+ return {
62
+ source,
63
+ ref,
64
+ skills: skills.map((skill) => {
65
+ if (!isRecord(skill))
66
+ throw new Error("invalid locked skill");
67
+ const name = skill["name"];
68
+ const skillPath = skill["skillPath"];
69
+ const treeSha = skill["treeSha"];
70
+ if (!isString(name) || !isString(skillPath) || !isString(treeSha)) {
71
+ throw new Error("invalid locked skill");
72
+ }
73
+ return { name, skillPath, treeSha };
74
+ }),
75
+ };
76
+ });
77
+ }
78
+ //# sourceMappingURL=support.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"support.js","sourceRoot":"","sources":["../../src/scripts/support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CAAC,CAAC;QACxC,CAAC;QAED,OAAO;YACL,MAAM;YACN,GAAG;YACH,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;gBAC3B,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;oBAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;gBAC9D,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;gBAC3B,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC;gBACrC,MAAM,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;gBACjC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC;oBAClE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;gBAC1C,CAAC;gBACD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;YACtC,CAAC,CAAC;SACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { TargetAdapter } from "../types/index.js";
2
+ declare const claude: TargetAdapter;
3
+ export default claude;
4
+ //# sourceMappingURL=claude.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/targets/claude.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,QAAA,MAAM,MAAM,EAAE,aAkCb,CAAC;eAEa,MAAM"}
@@ -0,0 +1,42 @@
1
+ import { existsSync } from "node:fs";
2
+ import { homedir } from "node:os";
3
+ import { join } from "node:path";
4
+ import { canonicalAgentsDir } from "../paths.js";
5
+ // Verified against https://code.claude.com/docs/en/sub-agents
6
+ const claude = {
7
+ id: "claude",
8
+ label: "Claude Code",
9
+ globalSkillsDir() {
10
+ return join(homedir(), ".claude", "skills");
11
+ },
12
+ // This target has one skills directory: library and external skills share it.
13
+ librarySkillsDir() {
14
+ return join(homedir(), ".claude", "skills");
15
+ },
16
+ // Canonical agent definitions live under the shared config root.
17
+ libraryAgentsCanonicalDir() {
18
+ return canonicalAgentsDir("global");
19
+ },
20
+ // Subagent definitions: ~/.claude/agents/<name>.md (name and description are required)
21
+ libraryAgentsDir() {
22
+ return join(homedir(), ".claude", "agents");
23
+ },
24
+ projectSkillsDir(projectDir) {
25
+ return join(projectDir, ".claude", "skills");
26
+ },
27
+ projectLibrarySkillsDir(projectDir) {
28
+ return join(projectDir, ".claude", "skills");
29
+ },
30
+ projectLibraryAgentsCanonicalDir(projectDir) {
31
+ return canonicalAgentsDir("project", projectDir);
32
+ },
33
+ projectAgentsDir(projectDir) {
34
+ return join(projectDir, ".claude", "agents");
35
+ },
36
+ libraryAgentFormat: "claude",
37
+ detect() {
38
+ return existsSync(join(homedir(), ".claude"));
39
+ },
40
+ };
41
+ export default claude;
42
+ //# sourceMappingURL=claude.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude.js","sourceRoot":"","sources":["../../src/targets/claude.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,8DAA8D;AAC9D,MAAM,MAAM,GAAkB;IAC5B,EAAE,EAAE,QAAQ;IACZ,KAAK,EAAE,aAAa;IACpB,eAAe;QACb,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,8EAA8E;IAC9E,gBAAgB;QACd,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,iEAAiE;IACjE,yBAAyB;QACvB,OAAO,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IACD,uFAAuF;IACvF,gBAAgB;QACd,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,gBAAgB,CAAC,UAAkB;QACjC,OAAO,IAAI,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC;IACD,uBAAuB,CAAC,UAAkB;QACxC,OAAO,IAAI,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC;IACD,gCAAgC,CAAC,UAAkB;QACjD,OAAO,kBAAkB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IACnD,CAAC;IACD,gBAAgB,CAAC,UAAkB;QACjC,OAAO,IAAI,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC;IACD,kBAAkB,EAAE,QAAQ;IAC5B,MAAM;QACJ,OAAO,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC;IAChD,CAAC;CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { TargetAdapter } from "../types/index.js";
2
+ declare const cline: TargetAdapter;
3
+ export default cline;
4
+ //# sourceMappingURL=cline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cline.d.ts","sourceRoot":"","sources":["../../src/targets/cline.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,QAAA,MAAM,KAAK,EAAE,aAgCZ,CAAC;eAEa,KAAK"}
@@ -0,0 +1,39 @@
1
+ import { existsSync } from "node:fs";
2
+ import { homedir } from "node:os";
3
+ import { join } from "node:path";
4
+ import { canonicalAgentsDir } from "../paths.js";
5
+ const cline = {
6
+ id: "cline",
7
+ label: "Cline",
8
+ globalSkillsDir() {
9
+ return join(homedir(), ".cline", "skills");
10
+ },
11
+ // This target has one skills directory: library and external skills share it.
12
+ librarySkillsDir() {
13
+ return join(homedir(), ".cline", "skills");
14
+ },
15
+ libraryAgentsCanonicalDir() {
16
+ return canonicalAgentsDir("global");
17
+ },
18
+ libraryAgentsDir() {
19
+ return join(homedir(), ".cline", "agents");
20
+ },
21
+ projectSkillsDir(projectDir) {
22
+ return join(projectDir, ".cline", "skills");
23
+ },
24
+ projectLibrarySkillsDir(projectDir) {
25
+ return join(projectDir, ".cline", "skills");
26
+ },
27
+ projectLibraryAgentsCanonicalDir(projectDir) {
28
+ return canonicalAgentsDir("project", projectDir);
29
+ },
30
+ projectAgentsDir(projectDir) {
31
+ return join(projectDir, ".cline", "agents");
32
+ },
33
+ libraryAgentFormat: "claude",
34
+ detect() {
35
+ return existsSync(join(homedir(), ".cline"));
36
+ },
37
+ };
38
+ export default cline;
39
+ //# sourceMappingURL=cline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cline.js","sourceRoot":"","sources":["../../src/targets/cline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,MAAM,KAAK,GAAkB;IAC3B,EAAE,EAAE,OAAO;IACX,KAAK,EAAE,OAAO;IACd,eAAe;QACb,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;IACD,8EAA8E;IAC9E,gBAAgB;QACd,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;IACD,yBAAyB;QACvB,OAAO,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IACD,gBAAgB;QACd,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC7C,CAAC;IACD,gBAAgB,CAAC,UAAkB;QACjC,OAAO,IAAI,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,uBAAuB,CAAC,UAAkB;QACxC,OAAO,IAAI,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,gCAAgC,CAAC,UAAkB;QACjD,OAAO,kBAAkB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IACnD,CAAC;IACD,gBAAgB,CAAC,UAAkB;QACjC,OAAO,IAAI,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,kBAAkB,EAAE,QAAQ;IAC5B,MAAM;QACJ,OAAO,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC/C,CAAC;CACF,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { TargetAdapter } from "../types/index.js";
2
+ declare const cursor: TargetAdapter;
3
+ export default cursor;
4
+ //# sourceMappingURL=cursor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../src/targets/cursor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,QAAA,MAAM,MAAM,EAAE,aAgCb,CAAC;eAEa,MAAM"}
@@ -0,0 +1,40 @@
1
+ import { existsSync } from "node:fs";
2
+ import { homedir } from "node:os";
3
+ import { join } from "node:path";
4
+ import { canonicalAgentsDir } from "../paths.js";
5
+ // Best-effort paths; verify against the agent's current documentation before relying on them.
6
+ const cursor = {
7
+ id: "cursor",
8
+ label: "Cursor",
9
+ globalSkillsDir() {
10
+ return join(homedir(), ".cursor", "skills");
11
+ },
12
+ // This target has one skills directory: library and external skills share it.
13
+ librarySkillsDir() {
14
+ return join(homedir(), ".cursor", "skills");
15
+ },
16
+ libraryAgentsCanonicalDir() {
17
+ return canonicalAgentsDir("global");
18
+ },
19
+ libraryAgentsDir() {
20
+ return join(homedir(), ".cursor", "agents");
21
+ },
22
+ projectSkillsDir(projectDir) {
23
+ return join(projectDir, ".cursor", "skills");
24
+ },
25
+ projectLibrarySkillsDir(projectDir) {
26
+ return join(projectDir, ".cursor", "skills");
27
+ },
28
+ projectLibraryAgentsCanonicalDir(projectDir) {
29
+ return canonicalAgentsDir("project", projectDir);
30
+ },
31
+ projectAgentsDir(projectDir) {
32
+ return join(projectDir, ".cursor", "agents");
33
+ },
34
+ libraryAgentFormat: "claude",
35
+ detect() {
36
+ return existsSync(join(homedir(), ".cursor"));
37
+ },
38
+ };
39
+ export default cursor;
40
+ //# sourceMappingURL=cursor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/targets/cursor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,8FAA8F;AAC9F,MAAM,MAAM,GAAkB;IAC5B,EAAE,EAAE,QAAQ;IACZ,KAAK,EAAE,QAAQ;IACf,eAAe;QACb,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,8EAA8E;IAC9E,gBAAgB;QACd,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,yBAAyB;QACvB,OAAO,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IACtC,CAAC;IACD,gBAAgB;QACd,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IACD,gBAAgB,CAAC,UAAkB;QACjC,OAAO,IAAI,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC;IACD,uBAAuB,CAAC,UAAkB;QACxC,OAAO,IAAI,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC;IACD,gCAAgC,CAAC,UAAkB;QACjD,OAAO,kBAAkB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;IACnD,CAAC;IACD,gBAAgB,CAAC,UAAkB;QACjC,OAAO,IAAI,CAAC,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC;IACD,kBAAkB,EAAE,QAAQ;IAC5B,MAAM;QACJ,OAAO,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC;IAChD,CAAC;CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { TargetAdapter } from "../types/index.js";
2
+ export declare const targets: readonly TargetAdapter[];
3
+ export declare function getTarget(id: string): TargetAdapter | null;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/targets/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,eAAO,MAAM,OAAO,EAAE,SAAS,aAAa,EAAgD,CAAC;AAE7F,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAE1D"}
@@ -0,0 +1,11 @@
1
+ import claude from "./claude.js";
2
+ import cline from "./cline.js";
3
+ import cursor from "./cursor.js";
4
+ import opencode from "./opencode.js";
5
+ import windsurf from "./windsurf.js";
6
+ // Registered targets. Add a new agent by creating its file and listing it here.
7
+ export const targets = [opencode, claude, cursor, windsurf, cline];
8
+ export function getTarget(id) {
9
+ return targets.find((t) => t.id === id) ?? null;
10
+ }
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/targets/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,QAAQ,MAAM,eAAe,CAAC;AAGrC,gFAAgF;AAChF,MAAM,CAAC,MAAM,OAAO,GAA6B,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAE7F,MAAM,UAAU,SAAS,CAAC,EAAU;IAClC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC;AAClD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { TargetAdapter } from "../types/index.js";
2
+ declare const opencode: TargetAdapter;
3
+ export default opencode;
4
+ //# sourceMappingURL=opencode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opencode.d.ts","sourceRoot":"","sources":["../../src/targets/opencode.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,QAAA,MAAM,QAAQ,EAAE,aAwCf,CAAC;eAEa,QAAQ"}
@@ -0,0 +1,48 @@
1
+ import { existsSync } from "node:fs";
2
+ import { homedir } from "node:os";
3
+ import { join } from "node:path";
4
+ import { canonicalAgentsDir, internalSkillsDir } from "../paths.js";
5
+ // Verified against https://opencode.ai/docs/skills and https://opencode.ai/docs/agents
6
+ const opencode = {
7
+ id: "opencode",
8
+ label: "OpenCode",
9
+ // External skills (skillsio -g --agent opencode) land here.
10
+ globalSkillsDir() {
11
+ return join(homedir(), ".agents", "skills");
12
+ },
13
+ // Internal (library) skills live apart from external skills so the two can be
14
+ // managed and resolved independently. They are nested under the config root:
15
+ // ~/.config/junamis/skills/skills/<name>/SKILL.md
16
+ librarySkillsDir() {
17
+ return internalSkillsDir("global");
18
+ },
19
+ // Canonical agent definitions, shared by every target and linked into each
20
+ // target's agents directory.
21
+ libraryAgentsCanonicalDir() {
22
+ return canonicalAgentsDir("global");
23
+ },
24
+ // Markdown agent definitions: ~/.config/opencode/agents/<name>.md (symlinks
25
+ // to the canonical files in libraryAgentsCanonicalDir()).
26
+ libraryAgentsDir() {
27
+ return join(homedir(), ".config", "opencode", "agents");
28
+ },
29
+ projectSkillsDir(projectDir) {
30
+ return join(projectDir, ".agents", "skills");
31
+ },
32
+ projectLibrarySkillsDir(projectDir) {
33
+ return internalSkillsDir("project", projectDir);
34
+ },
35
+ projectLibraryAgentsCanonicalDir(projectDir) {
36
+ return canonicalAgentsDir("project", projectDir);
37
+ },
38
+ projectAgentsDir(projectDir) {
39
+ return join(projectDir, ".opencode", "agents");
40
+ },
41
+ // OpenCode passes unknown frontmatter keys to the model provider, so only these are written.
42
+ libraryAgentFormat: "opencode",
43
+ detect() {
44
+ return existsSync(join(homedir(), ".config", "opencode"));
45
+ },
46
+ };
47
+ export default opencode;
48
+ //# sourceMappingURL=opencode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opencode.js","sourceRoot":"","sources":["../../src/targets/opencode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,kBAAkB,EA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apter } from "../types/index.js";
2
+ declare const windsurf: TargetAdapter;
3
+ export default windsurf;
4
+ //# sourceMappingURL=windsurf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"windsurf.d.ts","sourceRoot":"","sources":["../../src/targets/windsurf.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,QAAA,MAAM,QAAQ,EAAE,aAkCf,CAAC;eAEa,QAAQ"}
@@ -0,0 +1,41 @@
1
+ import { existsSync } from "node:fs";
2
+ import { homedir } from "node:os";
3
+ import { join } from "node:path";
4
+ import { canonicalAgentsDir } from "../paths.js";
5
+ const windsurf = {
6
+ id: "windsurf",
7
+ label: "Windsurf / Devin",
8
+ globalSkillsDir() {
9
+ return join(homedir(), ".codeium", "windsurf", "skills");
10
+ },
11
+ // This target has one skills directory: library and external skills share it.
12
+ librarySkillsDir() {
13
+ return join(homedir(), ".codeium", "windsurf", "skills");
14
+ },
15
+ libraryAgentsCanonicalDir() {
16
+ return canonicalAgentsDir("global");
17
+ },
18
+ libraryAgentsDir() {
19
+ return join(homedir(), ".config", "devin", "agents");
20
+ },
21
+ projectSkillsDir(projectDir) {
22
+ return join(projectDir, ".windsurf", "skills");
23
+ },
24
+ projectLibrarySkillsDir(projectDir) {
25
+ return join(projectDir, ".windsurf", "skills");
26
+ },
27
+ projectLibraryAgentsCanonicalDir(projectDir) {
28
+ return canonicalAgentsDir("project", projectDir);
29
+ },
30
+ projectAgentsDir(projectDir) {
31
+ return join(projectDir, ".devin", "agents");
32
+ },
33
+ libraryAgentFormat: "claude",
34
+ detect() {
35
+ return existsSync(join(homedir(), ".codeium", "windsurf"))
36
+ || existsSync(join(homedir(), ".config", "devin"))
37
+ || existsSync(join(homedir(), ".windsurf"));
38
+ },
39
+ };
40
+ export default windsurf;
41
+ //# sourceMappingURL=windsurf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"windsurf.js","sourceRoot":"","sources":["../../src/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EAAE,UAAU,CAAC,CAAC;eACrD,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;eAC/C,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC;IAChD,CAAC;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,193 @@
1
+ export type JsonPrimitive = string | number | boolean | null;
2
+ export type JsonValue = JsonPrimitive | JsonValue[] | {
3
+ [key: string]: JsonValue;
4
+ };
5
+ /**
6
+ * A JSON object. Use this only for data that has already been serialized.
7
+ * Untrusted input is `unknown` and must pass a guard in `guards.ts` first.
8
+ */
9
+ export interface JsonObject {
10
+ readonly [key: string]: JsonValue;
11
+ }
12
+ /** A success or failure value. Errors carry a plain, serializable shape. */
13
+ export type Result<T, E = ErrorLike> = {
14
+ readonly ok: true;
15
+ readonly value: T;
16
+ } | {
17
+ readonly ok: false;
18
+ readonly error: E;
19
+ };
20
+ export type Severity = "critical" | "high" | "medium" | "low";
21
+ export type Priority = "p0" | "p1" | "p2" | "p3";
22
+ export type LifecycleStatus = "active" | "draft" | "deprecated" | "needs_review";
23
+ /** The subset of an Error that survives a JSON boundary. */
24
+ export interface ErrorLike {
25
+ readonly name: string;
26
+ readonly message: string;
27
+ readonly code?: string;
28
+ readonly detail?: unknown;
29
+ readonly cause?: unknown;
30
+ }
31
+ /** Where an install lands: the shared global root, or the project's own root. */
32
+ export type InstallScope = "global" | "project";
33
+ /** A scope selector that may also mean "both install scopes". */
34
+ export type ScopeSelection = InstallScope | "all";
35
+ /** The frontmatter layout a target expects for agent definitions. */
36
+ export type AgentFormat = "opencode" | "claude";
37
+ /**
38
+ * One agent-specific install adapter. `src/targets/` is the only place that
39
+ * knows these paths; every other module goes through this interface.
40
+ */
41
+ export interface TargetAdapter {
42
+ readonly id: string;
43
+ readonly label: string;
44
+ readonly libraryAgentFormat: AgentFormat;
45
+ globalSkillsDir(): string;
46
+ librarySkillsDir(): string;
47
+ libraryAgentsCanonicalDir(): string;
48
+ libraryAgentsDir(): string;
49
+ projectSkillsDir(projectDir: string): string;
50
+ projectLibrarySkillsDir(projectDir: string): string;
51
+ projectLibraryAgentsCanonicalDir(projectDir: string): string;
52
+ projectAgentsDir(projectDir: string): string;
53
+ detect(): boolean;
54
+ }
55
+ /** The manifest, config, and directory state reported for one scope. */
56
+ export interface StatusLocation {
57
+ readonly scope: InstallScope;
58
+ readonly skillsDir: string;
59
+ readonly librarySkillsDir: string;
60
+ readonly canonicalAgentsDir: string;
61
+ readonly agentsDir: string;
62
+ readonly manifestPath: string;
63
+ }
64
+ /** The marker `.junamis/junamis-skills.json` that records the guide write. */
65
+ export interface GuideMarker {
66
+ readonly guide: string;
67
+ readonly version: string;
68
+ readonly writtenAt: string;
69
+ }
70
+ /** What `writeGuide` did on this run. */
71
+ export type GuideStatus = "created" | "exists" | "kept-user-file";
72
+ export interface GuideResult {
73
+ readonly status: GuideStatus;
74
+ readonly path: string;
75
+ readonly version: string;
76
+ }
77
+ /** A library agent definition rendered from `library/agents/<name>.md`. */
78
+ export interface GuideAgent {
79
+ readonly name: string;
80
+ readonly description: string;
81
+ readonly skills: readonly string[];
82
+ }
83
+ /** One `skills-lock.json` entry as the guide lists it. */
84
+ export interface LockedSkillSummary {
85
+ readonly name: string;
86
+ readonly source: string;
87
+ readonly license: string;
88
+ }
89
+ export interface GuideInput {
90
+ readonly version: string;
91
+ readonly library: readonly string[];
92
+ readonly agents: readonly GuideAgent[];
93
+ readonly locked: readonly LockedSkillSummary[];
94
+ }
95
+ /** A skill pinned in `skills-lock.json`, after validation. */
96
+ export interface PinnedSourceSkill {
97
+ readonly name: string;
98
+ readonly skillPath: string;
99
+ readonly treeSha: string;
100
+ }
101
+ export type LockedSkill = PinnedSourceSkill;
102
+ /** One source and commit, with the skills pinned to it. */
103
+ export interface PinnedSource {
104
+ readonly source: string;
105
+ readonly ref: string;
106
+ readonly skills: readonly PinnedSourceSkill[];
107
+ }
108
+ /** Every skill pinned to the same source and commit, installed in one call. */
109
+ export type LockGroup = PinnedSource;
110
+ /** The minimum a skill needs for an on-disk existence check. */
111
+ export interface SkillRef {
112
+ readonly name: string;
113
+ readonly skillPath: string;
114
+ }
115
+ /** Existing skills are reported as conflicts and never overwritten. */
116
+ export interface SkillPartition<T extends SkillRef = SkillRef> {
117
+ readonly available: T[];
118
+ readonly conflicts: Array<T & {
119
+ readonly path: string;
120
+ }>;
121
+ }
122
+ /** The tally `installExternal` returns and `init` reports. */
123
+ export interface ExternalInstallResult {
124
+ readonly groups: number;
125
+ readonly installed: number;
126
+ readonly skipped: number;
127
+ readonly failed: number;
128
+ }
129
+ /** A prepared, verified local checkout of one pinned source. */
130
+ export interface PreparedCheckout {
131
+ readonly path: string;
132
+ cleanup(): Promise<void>;
133
+ }
134
+ /** One file the library installer will write. */
135
+ export interface LibraryFile {
136
+ readonly path: string;
137
+ readonly content: Buffer;
138
+ }
139
+ /** A planned file with the hash of its content. */
140
+ export interface PlannedFile extends LibraryFile {
141
+ readonly sha256: string;
142
+ }
143
+ /** A canonical agent definition linked into a target's agents directory. */
144
+ export interface PlannedLink {
145
+ readonly path: string;
146
+ readonly target: string;
147
+ }
148
+ /**
149
+ * The plan is an array of files. `files` and `links` are also exposed as
150
+ * non-enumerable properties so callers may treat the plan as an object.
151
+ */
152
+ export interface LibraryPlan extends Array<PlannedFile> {
153
+ readonly files: readonly PlannedFile[];
154
+ readonly links: readonly PlannedLink[];
155
+ }
156
+ /** A file list that may also carry the plan's link list. */
157
+ export type LibraryFileList = readonly PlannedFile[] & {
158
+ readonly links?: readonly PlannedLink[];
159
+ };
160
+ /** One recorded file in `installed/library-<agent>.json`. */
161
+ export interface LibraryManifestEntry {
162
+ readonly path: string;
163
+ readonly sha256: string;
164
+ }
165
+ /** The install manifest. Only `files` is contract: the rest is descriptive. */
166
+ export interface LibraryManifest {
167
+ readonly agent?: string;
168
+ readonly version?: string;
169
+ readonly installedAt?: string;
170
+ readonly files: readonly LibraryManifestEntry[];
171
+ }
172
+ /** One action the library installer reports for `--dry-run` and summaries. */
173
+ export interface LibraryAction {
174
+ readonly path: string;
175
+ readonly action: string;
176
+ readonly target?: string;
177
+ }
178
+ /** The result of `applyLibraryInstall`. */
179
+ export interface LibraryInstallResult {
180
+ readonly ok: boolean;
181
+ readonly actions: readonly LibraryAction[];
182
+ readonly linkActions: readonly LibraryAction[];
183
+ readonly conflicts: readonly string[];
184
+ readonly stale: readonly string[];
185
+ readonly dryRun?: boolean;
186
+ readonly warnings?: readonly string[];
187
+ }
188
+ /** An agent entry parsed from `library/agents/<name>.md` frontmatter. */
189
+ export interface AgentDefinition {
190
+ readonly fields: Readonly<Record<string, string>>;
191
+ readonly body: string;
192
+ }
193
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AAE7D,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,SAAS,EAAE,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AAEnF;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAED,4EAA4E;AAC5E,MAAM,MAAM,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,IAC/B;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAA;CAAE,GACxC;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC;AAE9C,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAA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AQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,2CAA2C;AAC3C,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,CAAC;IAC3C,QAAQ,CAAC,WAAW,EAAE,SAAS,aAAa,EAAE,CAAC;IAC/C,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACvC;AAED,yEAAyE;AACzE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB"}
@@ -0,0 +1,6 @@
1
+ // Shared primitives used by every contract in this package.
2
+ //
3
+ // These types are the single vocabulary for JSON input, results, and the
4
+ // severity/priority/lifecycle words the contracts already use in prose.
5
+ export {};
6
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,EAAE;AACF,yEAAyE;AACzE,wEAAwE"}