@specship/specship-darwin-arm64 0.29.0 → 0.30.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 (289) hide show
  1. package/bin/specship +1 -1
  2. package/lib/dist/.claude-plugin/plugin.json +15 -3
  3. package/lib/dist/activation/cheatsheet.d.ts +10 -7
  4. package/lib/dist/activation/cheatsheet.d.ts.map +1 -1
  5. package/lib/dist/activation/cheatsheet.js +21 -5
  6. package/lib/dist/activation/cheatsheet.js.map +1 -1
  7. package/lib/dist/activation/hook-output.d.ts +75 -2
  8. package/lib/dist/activation/hook-output.d.ts.map +1 -1
  9. package/lib/dist/activation/hook-output.js +114 -3
  10. package/lib/dist/activation/hook-output.js.map +1 -1
  11. package/lib/dist/activation/search-intercept.d.ts +20 -7
  12. package/lib/dist/activation/search-intercept.d.ts.map +1 -1
  13. package/lib/dist/activation/search-intercept.js +27 -5
  14. package/lib/dist/activation/search-intercept.js.map +1 -1
  15. package/lib/dist/activation/steering.d.ts +7 -4
  16. package/lib/dist/activation/steering.d.ts.map +1 -1
  17. package/lib/dist/activation/steering.js +10 -8
  18. package/lib/dist/activation/steering.js.map +1 -1
  19. package/lib/dist/agents/detect.d.ts +32 -0
  20. package/lib/dist/agents/detect.d.ts.map +1 -0
  21. package/lib/dist/agents/detect.js +54 -0
  22. package/lib/dist/agents/detect.js.map +1 -0
  23. package/lib/dist/agents/recent-project.d.ts +18 -0
  24. package/lib/dist/agents/recent-project.d.ts.map +1 -0
  25. package/lib/dist/agents/recent-project.js +92 -0
  26. package/lib/dist/agents/recent-project.js.map +1 -0
  27. package/lib/dist/analytics/canonical-tools.d.ts +23 -0
  28. package/lib/dist/analytics/canonical-tools.d.ts.map +1 -0
  29. package/lib/dist/analytics/canonical-tools.js +36 -0
  30. package/lib/dist/analytics/canonical-tools.js.map +1 -0
  31. package/lib/dist/analytics/canonical-tools.json +16 -0
  32. package/lib/dist/analytics/specship-impact.d.ts +3 -2
  33. package/lib/dist/analytics/specship-impact.d.ts.map +1 -1
  34. package/lib/dist/analytics/specship-impact.js +6 -4
  35. package/lib/dist/analytics/specship-impact.js.map +1 -1
  36. package/lib/dist/bin/specship.js +215 -170
  37. package/lib/dist/bin/specship.js.map +1 -1
  38. package/lib/dist/bin/uninstall.js +2 -2
  39. package/lib/dist/bin/uninstall.js.map +1 -1
  40. package/lib/dist/claudemd/audit.d.ts +12 -3
  41. package/lib/dist/claudemd/audit.d.ts.map +1 -1
  42. package/lib/dist/claudemd/audit.js +65 -22
  43. package/lib/dist/claudemd/audit.js.map +1 -1
  44. package/lib/dist/commands/specship/spec.md +9 -0
  45. package/lib/dist/db/migrations.d.ts +1 -1
  46. package/lib/dist/db/migrations.d.ts.map +1 -1
  47. package/lib/dist/db/migrations.js +18 -4
  48. package/lib/dist/db/migrations.js.map +1 -1
  49. package/lib/dist/db/schema.sql +8 -0
  50. package/lib/dist/db/spec-queries.d.ts +13 -1
  51. package/lib/dist/db/spec-queries.d.ts.map +1 -1
  52. package/lib/dist/db/spec-queries.js +21 -0
  53. package/lib/dist/db/spec-queries.js.map +1 -1
  54. package/lib/dist/enforce/changed-files.d.ts +7 -0
  55. package/lib/dist/enforce/changed-files.d.ts.map +1 -1
  56. package/lib/dist/enforce/changed-files.js +17 -0
  57. package/lib/dist/enforce/changed-files.js.map +1 -1
  58. package/lib/dist/enforce/enforce.d.ts +35 -1
  59. package/lib/dist/enforce/enforce.d.ts.map +1 -1
  60. package/lib/dist/enforce/enforce.js +66 -2
  61. package/lib/dist/enforce/enforce.js.map +1 -1
  62. package/lib/dist/extraction/index.d.ts +50 -4
  63. package/lib/dist/extraction/index.d.ts.map +1 -1
  64. package/lib/dist/extraction/index.js +105 -13
  65. package/lib/dist/extraction/index.js.map +1 -1
  66. package/lib/dist/extraction/parse-warnings.d.ts +16 -0
  67. package/lib/dist/extraction/parse-warnings.d.ts.map +1 -0
  68. package/lib/dist/extraction/parse-warnings.js +30 -0
  69. package/lib/dist/extraction/parse-warnings.js.map +1 -0
  70. package/lib/dist/extraction/tree-sitter.d.ts +27 -0
  71. package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
  72. package/lib/dist/extraction/tree-sitter.js +168 -1
  73. package/lib/dist/extraction/tree-sitter.js.map +1 -1
  74. package/lib/dist/health/smoke-check.js +1 -1
  75. package/lib/dist/health/smoke-check.js.map +1 -1
  76. package/lib/dist/hooks/hooks.json +16 -1
  77. package/lib/dist/index.d.ts +63 -3
  78. package/lib/dist/index.d.ts.map +1 -1
  79. package/lib/dist/index.js +235 -9
  80. package/lib/dist/index.js.map +1 -1
  81. package/lib/dist/installer/agent-record.d.ts +80 -0
  82. package/lib/dist/installer/agent-record.d.ts.map +1 -0
  83. package/lib/dist/installer/agent-record.js +351 -0
  84. package/lib/dist/installer/agent-record.js.map +1 -0
  85. package/lib/dist/installer/auto-migrate.d.ts +56 -0
  86. package/lib/dist/installer/auto-migrate.d.ts.map +1 -0
  87. package/lib/dist/installer/auto-migrate.js +328 -0
  88. package/lib/dist/installer/auto-migrate.js.map +1 -0
  89. package/lib/dist/installer/index.d.ts +37 -8
  90. package/lib/dist/installer/index.d.ts.map +1 -1
  91. package/lib/dist/installer/index.js +156 -46
  92. package/lib/dist/installer/index.js.map +1 -1
  93. package/lib/dist/installer/install-defaults.d.ts +4 -3
  94. package/lib/dist/installer/install-defaults.d.ts.map +1 -1
  95. package/lib/dist/installer/install-defaults.js +6 -5
  96. package/lib/dist/installer/install-defaults.js.map +1 -1
  97. package/lib/dist/installer/{config-writer.d.ts → targets/claude-config-writer.d.ts} +1 -1
  98. package/lib/dist/installer/targets/claude-config-writer.d.ts.map +1 -0
  99. package/lib/dist/installer/{config-writer.js → targets/claude-config-writer.js} +7 -6
  100. package/lib/dist/installer/targets/claude-config-writer.js.map +1 -0
  101. package/lib/dist/installer/targets/claude-projects.d.ts +9 -0
  102. package/lib/dist/installer/targets/claude-projects.d.ts.map +1 -0
  103. package/lib/dist/installer/targets/claude-projects.js +151 -0
  104. package/lib/dist/installer/targets/claude-projects.js.map +1 -0
  105. package/lib/dist/installer/targets/claude.d.ts +28 -1
  106. package/lib/dist/installer/targets/claude.d.ts.map +1 -1
  107. package/lib/dist/installer/targets/claude.js +39 -20
  108. package/lib/dist/installer/targets/claude.js.map +1 -1
  109. package/lib/dist/installer/targets/feature-parity.d.ts +28 -0
  110. package/lib/dist/installer/targets/feature-parity.d.ts.map +1 -0
  111. package/lib/dist/installer/targets/feature-parity.js +32 -0
  112. package/lib/dist/installer/targets/feature-parity.js.map +1 -0
  113. package/lib/dist/installer/{gemini-commands.d.ts → targets/gemini-commands.d.ts} +7 -3
  114. package/lib/dist/installer/targets/gemini-commands.d.ts.map +1 -0
  115. package/lib/dist/installer/{gemini-commands.js → targets/gemini-commands.js} +35 -14
  116. package/lib/dist/installer/targets/gemini-commands.js.map +1 -0
  117. package/lib/dist/installer/targets/gemini-projects.d.ts +11 -0
  118. package/lib/dist/installer/targets/gemini-projects.d.ts.map +1 -0
  119. package/lib/dist/installer/targets/gemini-projects.js +84 -0
  120. package/lib/dist/installer/targets/gemini-projects.js.map +1 -0
  121. package/lib/dist/installer/targets/gemini.d.ts +94 -8
  122. package/lib/dist/installer/targets/gemini.d.ts.map +1 -1
  123. package/lib/dist/installer/targets/gemini.js +392 -33
  124. package/lib/dist/installer/targets/gemini.js.map +1 -1
  125. package/lib/dist/installer/targets/registry.d.ts +8 -1
  126. package/lib/dist/installer/targets/registry.d.ts.map +1 -1
  127. package/lib/dist/installer/targets/registry.js +14 -5
  128. package/lib/dist/installer/targets/registry.js.map +1 -1
  129. package/lib/dist/installer/targets/shared.d.ts +44 -1
  130. package/lib/dist/installer/targets/shared.d.ts.map +1 -1
  131. package/lib/dist/installer/targets/shared.js +130 -3
  132. package/lib/dist/installer/targets/shared.js.map +1 -1
  133. package/lib/dist/installer/targets/types.d.ts +23 -1
  134. package/lib/dist/installer/targets/types.d.ts.map +1 -1
  135. package/lib/dist/jira/auto-publish.d.ts +22 -2
  136. package/lib/dist/jira/auto-publish.d.ts.map +1 -1
  137. package/lib/dist/jira/auto-publish.js +54 -9
  138. package/lib/dist/jira/auto-publish.js.map +1 -1
  139. package/lib/dist/jira/board-first.d.ts +15 -2
  140. package/lib/dist/jira/board-first.d.ts.map +1 -1
  141. package/lib/dist/jira/board-first.js +16 -0
  142. package/lib/dist/jira/board-first.js.map +1 -1
  143. package/lib/dist/jira/ci-publish.d.ts +72 -0
  144. package/lib/dist/jira/ci-publish.d.ts.map +1 -0
  145. package/lib/dist/jira/ci-publish.js +162 -0
  146. package/lib/dist/jira/ci-publish.js.map +1 -0
  147. package/lib/dist/jira/publish.d.ts +23 -0
  148. package/lib/dist/jira/publish.d.ts.map +1 -1
  149. package/lib/dist/jira/publish.js +0 -0
  150. package/lib/dist/jira/publish.js.map +1 -1
  151. package/lib/dist/jira/regression-pack.d.ts.map +1 -1
  152. package/lib/dist/jira/regression-pack.js +7 -1
  153. package/lib/dist/jira/regression-pack.js.map +1 -1
  154. package/lib/dist/jira/repo-config.d.ts.map +1 -1
  155. package/lib/dist/jira/repo-config.js +8 -0
  156. package/lib/dist/jira/repo-config.js.map +1 -1
  157. package/lib/dist/jira/types.d.ts +8 -0
  158. package/lib/dist/jira/types.d.ts.map +1 -1
  159. package/lib/dist/jira/types.js.map +1 -1
  160. package/lib/dist/knowledge/enforce.d.ts.map +1 -1
  161. package/lib/dist/knowledge/enforce.js +6 -1
  162. package/lib/dist/knowledge/enforce.js.map +1 -1
  163. package/lib/dist/mcp/jira-tools.d.ts +5 -0
  164. package/lib/dist/mcp/jira-tools.d.ts.map +1 -1
  165. package/lib/dist/mcp/jira-tools.js +59 -4
  166. package/lib/dist/mcp/jira-tools.js.map +1 -1
  167. package/lib/dist/mcp/proxy.d.ts.map +1 -1
  168. package/lib/dist/mcp/proxy.js +2 -1
  169. package/lib/dist/mcp/proxy.js.map +1 -1
  170. package/lib/dist/mcp/server-instructions.d.ts +16 -10
  171. package/lib/dist/mcp/server-instructions.d.ts.map +1 -1
  172. package/lib/dist/mcp/server-instructions.js +69 -20
  173. package/lib/dist/mcp/server-instructions.js.map +1 -1
  174. package/lib/dist/mcp/session.d.ts +11 -0
  175. package/lib/dist/mcp/session.d.ts.map +1 -1
  176. package/lib/dist/mcp/session.js +43 -1
  177. package/lib/dist/mcp/session.js.map +1 -1
  178. package/lib/dist/mcp/tools.d.ts.map +1 -1
  179. package/lib/dist/mcp/tools.js +8 -0
  180. package/lib/dist/mcp/tools.js.map +1 -1
  181. package/lib/dist/reflect/apply.d.ts +2 -2
  182. package/lib/dist/reflect/apply.d.ts.map +1 -1
  183. package/lib/dist/reflect/apply.js +6 -5
  184. package/lib/dist/reflect/apply.js.map +1 -1
  185. package/lib/dist/reflect/miner.d.ts.map +1 -1
  186. package/lib/dist/reflect/miner.js +28 -15
  187. package/lib/dist/reflect/miner.js.map +1 -1
  188. package/lib/dist/reflect/session-outcomes.d.ts.map +1 -1
  189. package/lib/dist/reflect/session-outcomes.js +8 -3
  190. package/lib/dist/reflect/session-outcomes.js.map +1 -1
  191. package/lib/dist/reflect/targets.d.ts.map +1 -1
  192. package/lib/dist/reflect/targets.js +25 -5
  193. package/lib/dist/reflect/targets.js.map +1 -1
  194. package/lib/dist/reflect/types.d.ts +7 -0
  195. package/lib/dist/reflect/types.d.ts.map +1 -1
  196. package/lib/dist/resolution/spec-link-resolver.d.ts +14 -2
  197. package/lib/dist/resolution/spec-link-resolver.d.ts.map +1 -1
  198. package/lib/dist/resolution/spec-link-resolver.js +13 -3
  199. package/lib/dist/resolution/spec-link-resolver.js.map +1 -1
  200. package/lib/dist/server/canonical-tools.js +50 -0
  201. package/lib/dist/server/cli.js +2 -2
  202. package/lib/dist/server/host-profiles.js +39 -0
  203. package/lib/dist/server/ingest/index.js +2 -1
  204. package/lib/dist/server/ingest/ingestor.js +195 -76
  205. package/lib/dist/server/ingest/project-paths.js +8 -2
  206. package/lib/dist/server/ingest/recorded-projects.js +43 -0
  207. package/lib/dist/server/ingest/specship-classify.js +7 -2
  208. package/lib/dist/server/ingest/transcripts/claude-jsonl.js +54 -0
  209. package/lib/dist/server/ingest/transcripts/claude.js +64 -0
  210. package/lib/dist/server/ingest/transcripts/gemini.js +469 -0
  211. package/lib/dist/server/ingest/transcripts/index.js +14 -0
  212. package/lib/dist/server/ingest/{parser.js → transcripts/shared.js} +3 -49
  213. package/lib/dist/server/ingest/transcripts/types.js +4 -0
  214. package/lib/dist/server/ingest/watcher.js +31 -30
  215. package/lib/dist/server/routes/claude.js +27 -10
  216. package/lib/dist/server/routes/graph.js +64 -3
  217. package/lib/dist/server/routes/mcp.js +57 -15
  218. package/lib/dist/server/routes/memory.js +54 -35
  219. package/lib/dist/server/routes/projects.js +78 -7
  220. package/lib/dist/server/routes/spec.js +125 -0
  221. package/lib/dist/server/server.js +8 -2
  222. package/lib/dist/skills/spec-author/SKILL.md +1 -1
  223. package/lib/dist/skills/spec-author/references/gap-questions.md +1 -1
  224. package/lib/dist/spec-lint/lint.d.ts +26 -1
  225. package/lib/dist/spec-lint/lint.d.ts.map +1 -1
  226. package/lib/dist/spec-lint/lint.js +96 -7
  227. package/lib/dist/spec-lint/lint.js.map +1 -1
  228. package/lib/dist/sync/worktree.d.ts +48 -0
  229. package/lib/dist/sync/worktree.d.ts.map +1 -1
  230. package/lib/dist/sync/worktree.js +109 -0
  231. package/lib/dist/sync/worktree.js.map +1 -1
  232. package/lib/dist/ui/assets/bricolage-latin-C23fTOVi.woff2 +0 -0
  233. package/lib/dist/ui/assets/bricolage-latin-ext-B82pxkPf.woff2 +0 -0
  234. package/lib/dist/ui/assets/index-54vorjyq.css +1 -0
  235. package/lib/dist/ui/assets/index-BZQonCVb.js +52 -0
  236. package/lib/dist/ui/assets/space-grotesk-latin-DPT1xrvW.woff2 +0 -0
  237. package/lib/dist/ui/assets/space-grotesk-latin-ext-wJGaI8U0.woff2 +0 -0
  238. package/lib/dist/ui/index.html +2 -2
  239. package/lib/dist/update/updater.d.ts +6 -0
  240. package/lib/dist/update/updater.d.ts.map +1 -1
  241. package/lib/dist/update/updater.js +13 -1
  242. package/lib/dist/update/updater.js.map +1 -1
  243. package/lib/dist/workflows/agents/claude.d.ts +9 -0
  244. package/lib/dist/workflows/agents/claude.d.ts.map +1 -1
  245. package/lib/dist/workflows/agents/claude.js +22 -3
  246. package/lib/dist/workflows/agents/claude.js.map +1 -1
  247. package/lib/dist/workflows/agents/gemini-version.d.ts +18 -0
  248. package/lib/dist/workflows/agents/gemini-version.d.ts.map +1 -0
  249. package/lib/dist/workflows/agents/gemini-version.js +81 -0
  250. package/lib/dist/workflows/agents/gemini-version.js.map +1 -0
  251. package/lib/dist/workflows/agents/gemini.d.ts +1 -1
  252. package/lib/dist/workflows/agents/gemini.d.ts.map +1 -1
  253. package/lib/dist/workflows/agents/gemini.js +12 -2
  254. package/lib/dist/workflows/agents/gemini.js.map +1 -1
  255. package/lib/dist/workflows/agents/index.d.ts +2 -0
  256. package/lib/dist/workflows/agents/index.d.ts.map +1 -1
  257. package/lib/dist/workflows/agents/index.js +5 -0
  258. package/lib/dist/workflows/agents/index.js.map +1 -1
  259. package/lib/dist/workflows/agents/types.d.ts +13 -0
  260. package/lib/dist/workflows/agents/types.d.ts.map +1 -1
  261. package/lib/dist/workflows/agents/types.js.map +1 -1
  262. package/lib/dist/workflows/condition-evaluator.d.ts +8 -0
  263. package/lib/dist/workflows/condition-evaluator.d.ts.map +1 -1
  264. package/lib/dist/workflows/condition-evaluator.js +7 -0
  265. package/lib/dist/workflows/condition-evaluator.js.map +1 -1
  266. package/lib/dist/workflows/defaults/claude-design-implement.yaml +11 -11
  267. package/lib/dist/workflows/defaults/spec-author.yaml +9 -9
  268. package/lib/dist/workflows/defaults/spec-fix.yaml +8 -8
  269. package/lib/dist/workflows/defaults/spec-implement.yaml +38 -23
  270. package/lib/dist/workflows/defaults/spec-relink.yaml +5 -5
  271. package/lib/dist/workflows/defaults/spec-verify.yaml +3 -3
  272. package/lib/dist/workflows/executor.d.ts +7 -0
  273. package/lib/dist/workflows/executor.d.ts.map +1 -1
  274. package/lib/dist/workflows/executor.js +22 -5
  275. package/lib/dist/workflows/executor.js.map +1 -1
  276. package/lib/node_modules/.package-lock.json +1 -1
  277. package/lib/package.json +3 -2
  278. package/package.json +1 -1
  279. package/lib/dist/installer/config-writer.d.ts.map +0 -1
  280. package/lib/dist/installer/config-writer.js.map +0 -1
  281. package/lib/dist/installer/gemini-commands.d.ts.map +0 -1
  282. package/lib/dist/installer/gemini-commands.js.map +0 -1
  283. package/lib/dist/ui/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  284. package/lib/dist/ui/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  285. package/lib/dist/ui/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  286. package/lib/dist/ui/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  287. package/lib/dist/ui/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  288. package/lib/dist/ui/assets/index-BzuUWUAE.js +0 -50
  289. package/lib/dist/ui/assets/index-ezwX2EfG.css +0 -1
@@ -105,6 +105,7 @@ exports.geminiCommandTarget = geminiCommandTarget;
105
105
  exports.geminiCommandSet = geminiCommandSet;
106
106
  const fs = __importStar(require("fs"));
107
107
  const path = __importStar(require("path"));
108
+ const hook_output_1 = require("../../activation/hook-output");
108
109
  /** First line of every TOML we write — uninstall/overwrite only touch files carrying it. */
109
110
  exports.GEMINI_COMMAND_HEADER_MARKER = '# Generated by specship install — REQ-GEMINI-005.';
110
111
  /** Gemini's argument placeholder (gemini-cli 0.28.0 SHORTHAND_ARGS_PLACEHOLDER). */
@@ -117,7 +118,7 @@ const REWRITES = [
117
118
  // Claude's argument placeholder → Gemini's.
118
119
  [/\$ARGUMENTS\b/g, exports.GEMINI_ARGS_PLACEHOLDER],
119
120
  // Gemini exposes MCP tools by bare name.
120
- [/\bmcp__specship__(\w+)/g, '$1'],
121
+ [new RegExp(`\\b${hook_output_1.CLAUDE_CODE_TRAITS.toolPrefix}(\\w+)`, 'g'), '$1'],
121
122
  // Claude built-in tool names → Gemini built-in tool names.
122
123
  [/`AskUserQuestion`/g, 'the `ask_user` tool'],
123
124
  [/`Write`/g, '`write_file`'],
@@ -130,15 +131,23 @@ const REWRITES = [
130
131
  /Follow the \*\*`designer-loop` skill\*\* \(`~\/\.claude\/skills\/designer-loop\/SKILL\.md`\)\s*—\s*it is the authority\. In brief:/g,
131
132
  'Run the taste loop inline:',
132
133
  ],
133
- // The design-md skill is a Claude skills-dir asset too; Gemini users drive
134
- // the same `specship design` CLI directly (DESIGNMD-DOC).
134
+ // `claude mcp add` → the verified Gemini equivalent.
135
+ [/\bclaude mcp add\b/g, 'gemini mcp add'],
136
+ // The running agent's memory file is Gemini's (REQ-AGENTSWITCH-014.A3).
137
+ [new RegExp(`\\b${hook_output_1.CLAUDE_CODE_TRAITS.memoryFile.replace('.', '\\.')}\\b`, 'g'), hook_output_1.GEMINI_CLI_TRAITS.memoryFile],
138
+ ];
139
+ /**
140
+ * Applied only when the `design-md` skill is NOT installed for Gemini (older
141
+ * Gemini CLI): point at the `specship design` CLI the skill drives instead.
142
+ * Since REQ-AGENTSWITCH-005 a supported Gemini gets the skill itself, and the
143
+ * reference is kept (REQ-AGENTSWITCH-014.A2).
144
+ */
145
+ const NO_DESIGN_MD_SKILL_REWRITES = [
135
146
  [/; follow the \*\*`design-md` skill\*\*\)/g, ')'],
136
147
  [
137
- /To capture or refresh a design reference without authoring a spec, use that skill directly\./g,
148
+ /To capture or\s+refresh a design reference without authoring a spec, use that skill directly\./g,
138
149
  'To refresh it after the design changes, re-run `specship design extract <sources> --update specs/<slug>/design.md`, then `specship design check`.',
139
150
  ],
140
- // `claude mcp add` → the verified Gemini equivalent.
141
- [/\bclaude mcp add\b/g, 'gemini mcp add'],
142
151
  ];
143
152
  /**
144
153
  * Constructs that have no Gemini equivalent (or that Gemini would interpret
@@ -149,7 +158,7 @@ const CLAUDE_ONLY_MARKERS = [
149
158
  [/specship-explorer/, 'the specship-explorer subagent'],
150
159
  [/\bsubagent_type\b|`Task`|`Agent`|\bTask tool\b/, 'Claude subagent dispatch'],
151
160
  [/\bAskUserQuestion\b|\bTodoWrite\b/, 'a Claude-only built-in tool'],
152
- [/\.claude\/(skills|agents|commands)\b|`[\w-]+` skill\b/, 'a Claude skill/agent asset'],
161
+ [/\.claude\/(skills|agents|commands)\b/, 'a Claude skill/agent asset'],
153
162
  [/\bclaude mcp\b/, 'the `claude mcp` CLI'],
154
163
  [/\$ARGUMENTS\b/, 'an unrewritten $ARGUMENTS'],
155
164
  [/!\{/, "Gemini's `!{…}` shell-injection trigger"],
@@ -220,28 +229,40 @@ function tomlMultiline(body) {
220
229
  : `"""\n${escapeTomlBasic(text, true)}"""`;
221
230
  }
222
231
  /** Apply the Claude → Gemini rewrites to a command body. */
223
- function rewriteForGemini(body) {
224
- return REWRITES.reduce((acc, [pattern, replacement]) => acc.replace(pattern, replacement), body);
232
+ function rewriteForGemini(body, opts = {}) {
233
+ const rules = (opts.skills ?? []).includes('design-md') ? REWRITES : [...REWRITES, ...NO_DESIGN_MD_SKILL_REWRITES];
234
+ return rules.reduce((acc, [pattern, replacement]) => acc.replace(pattern, replacement), body);
235
+ }
236
+ /** A `name` skill reference to a skill the Gemini install does not provide. */
237
+ function missingSkillReference(prompt, skills) {
238
+ for (const m of prompt.matchAll(/`([\w-]+)` skill\b/g)) {
239
+ if (!skills.includes(m[1]))
240
+ return m[1];
241
+ }
242
+ return null;
225
243
  }
226
244
  /**
227
245
  * Render one Claude command markdown file into Gemini CLI TOML. Throws
228
246
  * `GeminiCommandUnsupported` when the body still depends on Claude-only
229
247
  * machinery after the rewrites.
230
248
  */
231
- function renderGeminiCommand(markdownSource, sourceName = 'command') {
249
+ function renderGeminiCommand(markdownSource, sourceName = 'command', opts = {}) {
232
250
  const { meta, body } = parseCommandMarkdown(markdownSource);
233
- const prompt = rewriteForGemini(body);
251
+ const prompt = rewriteForGemini(body, opts);
234
252
  for (const [pattern, reason] of CLAUDE_ONLY_MARKERS) {
235
253
  if (pattern.test(prompt))
236
254
  throw new GeminiCommandUnsupported(reason);
237
255
  }
256
+ const missing = missingSkillReference(prompt, opts.skills ?? []);
257
+ if (missing)
258
+ throw new GeminiCommandUnsupported(`the \`${missing}\` skill`);
238
259
  const lines = [
239
260
  exports.GEMINI_COMMAND_HEADER_MARKER,
240
261
  `# Rendered from commands/${sourceName}; edits here are overwritten on reinstall.`,
241
262
  '',
242
263
  ];
243
264
  if (meta.description)
244
- lines.push(`description = "${escapeTomlBasic(meta.description, false)}"`);
265
+ lines.push(`description = "${escapeTomlBasic(rewriteForGemini(meta.description, opts), false)}"`);
245
266
  lines.push(`prompt = ${tomlMultiline(prompt)}`, '');
246
267
  return lines.join('\n');
247
268
  }
@@ -254,12 +275,12 @@ function geminiCommandTarget(source) {
254
275
  * Claude target copies from). Never throws for an unsupported command — it
255
276
  * comes back with `excluded` set so the caller can surface a note.
256
277
  */
257
- function geminiCommandSet(commandsDir, names) {
278
+ function geminiCommandSet(commandsDir, names, opts = {}) {
258
279
  return names.map((source) => {
259
280
  const target = geminiCommandTarget(source);
260
281
  const markdown = fs.readFileSync(path.join(commandsDir, source), 'utf-8');
261
282
  try {
262
- return { source, target, toml: renderGeminiCommand(markdown, source) };
283
+ return { source, target, toml: renderGeminiCommand(markdown, source, opts) };
263
284
  }
264
285
  catch (err) {
265
286
  if (err instanceof GeminiCommandUnsupported)
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gemini-commands.js","sourceRoot":"","sources":["../../../src/installer/targets/gemini-commands.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoFH,oDAeC;AAyBD,sCAOC;AAGD,4CAGC;AAeD,kDAgBC;AAeD,kDAEC;AAOD,4CAWC;AAzM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O,EAAE,OAAO,CAAC,CAAC;AAC1C,CAAC;AAED;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,WAAmB,EAAE,KAAwB,EAAE,OAA4B,EAAE;IAC5G,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QAC1B,MAAM,MAAM,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;QAC3C,MAAM,QAAQ,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC;QAC1E,IAAI,CAAC;YACH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC;QAC/E,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,GAAG,YAAY,wBAAwB;gBAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;YAC9F,MAAM,GAAG,CAAC;QACZ,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Gemini CLI's recently used projects (REQ-AGENTSWITCH-019.A1). From 0.33.0
3
+ * Gemini keeps a registry, `~/.gemini/projects.json` =
4
+ * `{ projects: { <root>: <short id> } }`, and writes sessions under
5
+ * `~/.gemini/tmp/<short id>/chats/` (DOM-SPECSHIP-009). Earlier versions name
6
+ * the folder by a hash that cannot be turned back into a path, so those
7
+ * projects come only from SpecShip's install record.
8
+ */
9
+ import type { RecentProject } from './types';
10
+ export declare function geminiRecentProjects(home: string): RecentProject[];
11
+ //# sourceMappingURL=gemini-projects.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gemini-projects.d.ts","sourceRoot":"","sources":["../../../src/installer/targets/gemini-projects.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,CA0BlE"}
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ /**
3
+ * Gemini CLI's recently used projects (REQ-AGENTSWITCH-019.A1). From 0.33.0
4
+ * Gemini keeps a registry, `~/.gemini/projects.json` =
5
+ * `{ projects: { <root>: <short id> } }`, and writes sessions under
6
+ * `~/.gemini/tmp/<short id>/chats/` (DOM-SPECSHIP-009). Earlier versions name
7
+ * the folder by a hash that cannot be turned back into a path, so those
8
+ * projects come only from SpecShip's install record.
9
+ */
10
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ var desc = Object.getOwnPropertyDescriptor(m, k);
13
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
14
+ desc = { enumerable: true, get: function() { return m[k]; } };
15
+ }
16
+ Object.defineProperty(o, k2, desc);
17
+ }) : (function(o, m, k, k2) {
18
+ if (k2 === undefined) k2 = k;
19
+ o[k2] = m[k];
20
+ }));
21
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
22
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
23
+ }) : function(o, v) {
24
+ o["default"] = v;
25
+ });
26
+ var __importStar = (this && this.__importStar) || (function () {
27
+ var ownKeys = function(o) {
28
+ ownKeys = Object.getOwnPropertyNames || function (o) {
29
+ var ar = [];
30
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
31
+ return ar;
32
+ };
33
+ return ownKeys(o);
34
+ };
35
+ return function (mod) {
36
+ if (mod && mod.__esModule) return mod;
37
+ var result = {};
38
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
39
+ __setModuleDefault(result, mod);
40
+ return result;
41
+ };
42
+ })();
43
+ Object.defineProperty(exports, "__esModule", { value: true });
44
+ exports.geminiRecentProjects = geminiRecentProjects;
45
+ const fs = __importStar(require("fs"));
46
+ const path = __importStar(require("path"));
47
+ const hook_output_1 = require("../../activation/hook-output");
48
+ function geminiRecentProjects(home) {
49
+ const dir = path.join(home, hook_output_1.GEMINI_CLI_TRAITS.configDir);
50
+ let projects = {};
51
+ try {
52
+ const parsed = JSON.parse(fs.readFileSync(path.join(dir, 'projects.json'), 'utf8'));
53
+ if (parsed.projects && typeof parsed.projects === 'object')
54
+ projects = parsed.projects;
55
+ }
56
+ catch {
57
+ return [];
58
+ }
59
+ const out = [];
60
+ for (const [root, id] of Object.entries(projects)) {
61
+ if (!path.isAbsolute(root))
62
+ continue;
63
+ let lastTouched = 0;
64
+ if (typeof id === 'string' && id && !id.includes('/') && !id.includes('\\')) {
65
+ const chats = path.join(dir, 'tmp', id, 'chats');
66
+ try {
67
+ for (const f of fs.readdirSync(chats, { withFileTypes: true })) {
68
+ if (!f.isFile())
69
+ continue;
70
+ try {
71
+ const st = fs.statSync(path.join(chats, f.name));
72
+ if (st.mtimeMs > lastTouched)
73
+ lastTouched = st.mtimeMs;
74
+ }
75
+ catch { /* ignore */ }
76
+ }
77
+ }
78
+ catch { /* no sessions yet */ }
79
+ }
80
+ out.push({ root, lastTouched });
81
+ }
82
+ return out;
83
+ }
84
+ //# sourceMappingURL=gemini-projects.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gemini-projects.js","sourceRoot":"","sources":["../../../src/installer/targets/gemini-projects.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOH,oDA0BC;AA/BD,uCAAyB;AACzB,2CAA6B;AAC7B,8DAAiE;AAGjE,SAAgB,oBAAoB,CAAC,IAAY;IAC/C,MAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,+BAAiB,CAAC,SAAS,CAAC,C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,CAAC;wBACjD,IAAI,EAAE,CAAC,OAAO,GAAG,WAAW;4BAAE,WAAW,GAAG,EAAE,CAAC,OAAO,CAAC;oBACzD,CAAC;oBAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC;gBAC1B,CAAC;YACH,CAAC;YAAC,MAAM,CAAC,CAAC,qBAAqB,CAAC,CAAC;QACnC,CAAC;QACD,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;IAClC,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -7,8 +7,9 @@
7
7
  * slash commands rendered into Gemini TOML from the same
8
8
  * `commands/specship/*.md` sources the Claude target copies (REQ-GEMINI-005,
9
9
  * see `../gemini-commands.ts` for the verified format + per-command
10
- * decisions). What still has no Gemini equivalent (the `specship-explorer`
11
- * subagent, the status line, the permissions list) is left unwritten and
10
+ * decisions), plus the skills and the explorer subagent when the installed
11
+ * Gemini CLI supports them (REQ-AGENTSWITCH-005). What still has no Gemini
12
+ * equivalent (the status line, the permissions list) is left unwritten and
12
13
  * named in `notes` rather than half-installed (REQ-GEMINI-006).
13
14
  *
14
15
  * The target IS registered in `targets/registry.ts`, but a plain
@@ -30,6 +31,8 @@
30
31
  * - locations: global `~/.gemini/settings.json` (Storage.getGlobalSettingsPath),
31
32
  * project `<cwd>/.gemini/settings.json` (Storage.getWorkspaceSettingsPath).
32
33
  */
34
+ import type { RecentProject } from './types';
35
+ import { geminiMcpToolName, geminiVersionSupports, probeGeminiVersion } from '../../workflows/agents/gemini-version';
33
36
  import { AgentTarget, DetectionResult, InstallOptions, Location, WriteResult } from './types';
34
37
  /** Gemini CLI's settings file for this location. */
35
38
  export declare function settingsPath(loc: Location): string;
@@ -58,6 +61,37 @@ export declare function removeGeminiSddEntry(loc: Location): WriteResult['files'
58
61
  * (REQ-GEMINI-003.A2, parity with REQ-INTEG-001.A3).
59
62
  */
60
63
  export declare function writeGeminiMcpEntry(loc: Location, integrations?: string[]): WriteResult['files'][number];
64
+ /**
65
+ * Point Gemini CLI at the user's own CLAUDE.md instead of copying it
66
+ * (REQ-AGENTSWITCH-009): add its file name to `context.fileName`, keeping
67
+ * every name the user already listed in their order and keeping Gemini's
68
+ * default (`GEMINI.md`) when the setting was unset. The CLAUDE.md file itself
69
+ * is never opened for writing.
70
+ *
71
+ * Local scope writes nothing — and records nothing — when the project has
72
+ * no CLAUDE.md. Global scope always adds the name: Gemini CLI resolves a
73
+ * bare context file name in `~/.gemini/` and in each project's directories
74
+ * (gemini-cli-core `memoryDiscovery`, verified against 0.28.0), so the
75
+ * user-wide setting is what makes Gemini read every project's own CLAUDE.md.
76
+ * It never reaches `~/.claude/CLAUDE.md` — the capability note says so.
77
+ * Idempotent: a re-run that finds the name already listed reports
78
+ * `unchanged`.
79
+ *
80
+ * Returns the file result (null when there was nothing to point at) and the
81
+ * names this call put into `context.fileName` that were not in it before.
82
+ */
83
+ export declare function writeGeminiContextFilesEntry(loc: Location): {
84
+ file: WriteResult['files'][number] | null;
85
+ added: string[];
86
+ };
87
+ /**
88
+ * Inverse of `writeGeminiContextFilesEntry` (REQ-AGENTSWITCH-009.A4): drop
89
+ * only the names SpecShip recorded as added; every name the user listed
90
+ * stays. With no recorded list (record lost or rebuilt) the setting is left
91
+ * untouched — conservative by design. Removing the last name deletes
92
+ * `context.fileName`, and `context` when that leaves it empty.
93
+ */
94
+ export declare function removeGeminiContextFilesEntry(loc: Location, added: readonly string[] | null): WriteResult['files'][number] | null;
61
95
  /**
62
96
  * Gemini CLI's custom-commands dir for this location (verified against
63
97
  * gemini-cli 0.28.0 `Storage.getUserCommandsDir` / `getProjectCommandsDir`):
@@ -76,7 +110,7 @@ export declare function geminiCommandsDir(loc: Location): string;
76
110
  * `commandsSourceDir` defaults to the packaged `commands/` dir — the same
77
111
  * one the Claude target copies from.
78
112
  */
79
- export declare function writeGeminiCommandsEntries(loc: Location, includeGovernance?: boolean, commandsSourceDir?: string): {
113
+ export declare function writeGeminiCommandsEntries(loc: Location, includeGovernance?: boolean, commandsSourceDir?: string, skills?: readonly string[]): {
80
114
  files: WriteResult['files'];
81
115
  notes: string[];
82
116
  };
@@ -88,6 +122,13 @@ export declare function writeGeminiCommandsEntries(loc: Location, includeGoverna
88
122
  * that leaves it empty.
89
123
  */
90
124
  export declare function removeGeminiCommandsEntries(loc: Location): WriteResult['files'];
125
+ /**
126
+ * Gemini CLI loads a project's GEMINI.md, hooks, skills, subagents and MCP
127
+ * servers only in a folder the user has trusted — on by default from 0.33.0.
128
+ * Every Gemini install and switch names that gate in one line, and SpecShip
129
+ * never writes Gemini's trustedFolders.json itself (REQ-AGENTSWITCH-018.A4).
130
+ */
131
+ export declare const GEMINI_FOLDER_TRUST_NOTE: string;
91
132
  /** Write the default (retrieval + sync + cheatsheet) hook set. */
92
133
  export declare function writeGeminiHooksEntry(loc: Location): WriteResult['files'][number];
93
134
  /** Write the governance-tier SDD nudge hook. */
@@ -113,9 +154,51 @@ export declare function writeGeminiPolicyEntry(): WriteResult['files'][number];
113
154
  * untouched; the admin policies dir is never written or read.
114
155
  */
115
156
  export declare function removeGeminiPolicyEntry(): WriteResult['files'][number];
157
+ export { geminiMcpToolName, geminiVersionSupports, probeGeminiVersion };
158
+ /** The Gemini CLI version these surfaces were verified against. */
159
+ export declare const GEMINI_MIN_SKILLS = "0.28.0";
160
+ export declare const GEMINI_MIN_AGENTS = "0.28.0";
161
+ /** First Gemini CLI release with subagents on by default (`experimental.enableAgents`, REQ-AGENTSWITCH-018.A6). */
162
+ export declare const GEMINI_AGENTS_ON_BY_DEFAULT = "0.36.0";
163
+ /** Gemini CLI's skills dir for this location (same scope as `settingsPath`). */
164
+ export declare function geminiSkillsDir(loc: Location): string;
165
+ /** Gemini CLI's subagents dir for this location. */
166
+ export declare function geminiAgentsDir(loc: Location): string;
167
+ /**
168
+ * Write SpecShip's skills (`spec-author`, `design-md`) under Gemini's skills
169
+ * dir (REQ-AGENTSWITCH-005.A1). Same file list as the Claude target, so the
170
+ * two installs cannot diverge. Sibling user skills are never touched.
171
+ */
172
+ /** Marks a skill directory as written by SpecShip, so install and uninstall touch only their own. */
173
+ export declare const GEMINI_SKILL_MARKER_FILE = ".specship-installed";
174
+ export declare function writeGeminiSkillsEntries(loc: Location): WriteResult['files'];
175
+ /**
176
+ * Inverse of `writeGeminiSkillsEntries`: delete exactly the files we ship,
177
+ * then prune the per-skill directories left empty. A user skill — or a user
178
+ * file inside one of our skill dirs — survives.
179
+ */
180
+ export declare function removeGeminiSkillsEntries(loc: Location): WriteResult['files'];
181
+ /** Body marker identifying an agent file a SpecShip install wrote. */
182
+ export declare const GEMINI_AGENT_MARKER = "<!-- Written by specship install \u2014 REQ-AGENTSWITCH-005 -->";
183
+ /**
184
+ * Render the shipped `agents/specship-explorer.md` as a Gemini subagent
185
+ * (REQ-AGENTSWITCH-005.A2). Frontmatter is rebuilt with only keys Gemini's
186
+ * strict schema accepts — `model: inherit` is dropped (Gemini would read it as
187
+ * a model id) — and `tools` becomes a YAML array of the installed Gemini CLI's
188
+ * MCP tool names (REQ-AGENTSWITCH-018).
189
+ * The body names tools by their bare Gemini name. No `mcp__specship__` survives.
190
+ */
191
+ export declare function renderGeminiExplorerAgent(source?: string): string;
192
+ /** Write the explorer subagent under Gemini's agents dir. Never overwrites a user file. */
193
+ export declare function writeGeminiAgentsEntry(loc: Location): WriteResult['files'][number];
194
+ /** Inverse of `writeGeminiAgentsEntry`: removes the file only if it carries our marker. */
195
+ export declare function removeGeminiAgentsEntry(loc: Location): WriteResult['files'][number];
116
196
  export declare class GeminiCliTarget implements AgentTarget {
117
197
  readonly id: "gemini";
118
- readonly displayName = "Gemini CLI";
198
+ readonly traits: import("../../activation/hook-output").HostTraits;
199
+ readonly displayName: string;
200
+ recentProjects(home: string): RecentProject[];
201
+ readonly switchNote: string;
119
202
  readonly docsUrl = "https://google-gemini.github.io/gemini-cli/docs/cli/configuration.html";
120
203
  supportsLocation(_loc: Location): boolean;
121
204
  /**
@@ -126,11 +209,13 @@ export declare class GeminiCliTarget implements AgentTarget {
126
209
  detect(loc: Location): DetectionResult;
127
210
  /**
128
211
  * Writes the MCP entry, GEMINI.md steering, hooks, the rendered slash
129
- * commands and (with `--trust`) the policy TOML. `autoAllow` and
212
+ * commands and (with `trust`) the policy TOML. `autoAllow` and
130
213
  * `installStatusLine` are accepted and IGNORED — Gemini CLI has no
131
- * permissions list or status line to write them to, and faking one would be
132
- * worse than the note (REQ-GEMINI-006). Nothing under `.claude/` is ever
133
- * touched (REQ-GEMINI-006.A2).
214
+ * permissions list or status line to write them to; auto-allow arrives as
215
+ * `trust` (from `--trust`, or a switch carrying a Claude install's
216
+ * auto-allow over, REQ-AGENTSWITCH-010.A3), and the status line is named
217
+ * as unavailable in the notes (REQ-GEMINI-006, REQ-AGENTSWITCH-010.A4).
218
+ * Nothing under `.claude/` is ever touched (REQ-GEMINI-006.A2).
134
219
  */
135
220
  install(loc: Location, opts: InstallOptions): WriteResult;
136
221
  /**
@@ -145,6 +230,7 @@ export declare class GeminiCliTarget implements AgentTarget {
145
230
  * touches nothing on disk (REQ-GEMINI-001.A1).
146
231
  */
147
232
  printConfig(loc: Location): string;
233
+ locationHint(loc: Location): string;
148
234
  describePaths(loc: Location): string[];
149
235
  }
150
236
  export declare const geminiTarget: GeminiCliTarget;
@@ -1 +1 @@
1
- {"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../../src/installer/targets/gemini.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAKH,OAAO,EACL,WAAW,EACX,eAAe,EACf,cAAc,EACd,QAAQ,EACR,WAAW,EACZ,MAAM,SAAS,CAAC;AAyBjB,oDAAoD;AACpD,wBAAgB,YAAY,CAAC,GAAG,EAAE,QAAQ,GAAG,MAAM,CAIlD;AAcD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,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