@selvakumaresra/specship 0.1.2 → 0.1.3

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 (576) hide show
  1. package/package.json +8 -3
  2. package/scripts/sync-shim-version.mjs +64 -0
  3. package/dist/bin/node-version-check.d.ts +0 -37
  4. package/dist/bin/node-version-check.d.ts.map +0 -1
  5. package/dist/bin/node-version-check.js +0 -79
  6. package/dist/bin/node-version-check.js.map +0 -1
  7. package/dist/bin/specship.d.ts +0 -25
  8. package/dist/bin/specship.d.ts.map +0 -1
  9. package/dist/bin/specship.js +0 -2018
  10. package/dist/bin/specship.js.map +0 -1
  11. package/dist/bin/uninstall.d.ts +0 -13
  12. package/dist/bin/uninstall.d.ts.map +0 -1
  13. package/dist/bin/uninstall.js +0 -35
  14. package/dist/bin/uninstall.js.map +0 -1
  15. package/dist/context/formatter.d.ts +0 -30
  16. package/dist/context/formatter.d.ts.map +0 -1
  17. package/dist/context/formatter.js +0 -263
  18. package/dist/context/formatter.js.map +0 -1
  19. package/dist/context/index.d.ts +0 -119
  20. package/dist/context/index.d.ts.map +0 -1
  21. package/dist/context/index.js +0 -1289
  22. package/dist/context/index.js.map +0 -1
  23. package/dist/context/markers.d.ts +0 -19
  24. package/dist/context/markers.d.ts.map +0 -1
  25. package/dist/context/markers.js +0 -22
  26. package/dist/context/markers.js.map +0 -1
  27. package/dist/db/index.d.ts +0 -101
  28. package/dist/db/index.d.ts.map +0 -1
  29. package/dist/db/index.js +0 -276
  30. package/dist/db/index.js.map +0 -1
  31. package/dist/db/migrations.d.ts +0 -44
  32. package/dist/db/migrations.d.ts.map +0 -1
  33. package/dist/db/migrations.js +0 -427
  34. package/dist/db/migrations.js.map +0 -1
  35. package/dist/db/queries.d.ts +0 -357
  36. package/dist/db/queries.d.ts.map +0 -1
  37. package/dist/db/queries.js +0 -1504
  38. package/dist/db/queries.js.map +0 -1
  39. package/dist/db/schema.sql +0 -410
  40. package/dist/db/spec-queries.d.ts +0 -101
  41. package/dist/db/spec-queries.d.ts.map +0 -1
  42. package/dist/db/spec-queries.js +0 -675
  43. package/dist/db/spec-queries.js.map +0 -1
  44. package/dist/db/sqlite-adapter.d.ts +0 -65
  45. package/dist/db/sqlite-adapter.d.ts.map +0 -1
  46. package/dist/db/sqlite-adapter.js +0 -214
  47. package/dist/db/sqlite-adapter.js.map +0 -1
  48. package/dist/directory.d.ts +0 -57
  49. package/dist/directory.d.ts.map +0 -1
  50. package/dist/directory.js +0 -253
  51. package/dist/directory.js.map +0 -1
  52. package/dist/errors.d.ts +0 -136
  53. package/dist/errors.d.ts.map +0 -1
  54. package/dist/errors.js +0 -219
  55. package/dist/errors.js.map +0 -1
  56. package/dist/extraction/dfm-extractor.d.ts +0 -31
  57. package/dist/extraction/dfm-extractor.d.ts.map +0 -1
  58. package/dist/extraction/dfm-extractor.js +0 -151
  59. package/dist/extraction/dfm-extractor.js.map +0 -1
  60. package/dist/extraction/generated-detection.d.ts +0 -30
  61. package/dist/extraction/generated-detection.d.ts.map +0 -1
  62. package/dist/extraction/generated-detection.js +0 -80
  63. package/dist/extraction/generated-detection.js.map +0 -1
  64. package/dist/extraction/grammars.d.ts +0 -100
  65. package/dist/extraction/grammars.d.ts.map +0 -1
  66. package/dist/extraction/grammars.js +0 -426
  67. package/dist/extraction/grammars.js.map +0 -1
  68. package/dist/extraction/index.d.ts +0 -138
  69. package/dist/extraction/index.d.ts.map +0 -1
  70. package/dist/extraction/index.js +0 -1394
  71. package/dist/extraction/index.js.map +0 -1
  72. package/dist/extraction/languages/c-cpp.d.ts +0 -4
  73. package/dist/extraction/languages/c-cpp.d.ts.map +0 -1
  74. package/dist/extraction/languages/c-cpp.js +0 -171
  75. package/dist/extraction/languages/c-cpp.js.map +0 -1
  76. package/dist/extraction/languages/csharp.d.ts +0 -3
  77. package/dist/extraction/languages/csharp.d.ts.map +0 -1
  78. package/dist/extraction/languages/csharp.js +0 -73
  79. package/dist/extraction/languages/csharp.js.map +0 -1
  80. package/dist/extraction/languages/dart.d.ts +0 -3
  81. package/dist/extraction/languages/dart.d.ts.map +0 -1
  82. package/dist/extraction/languages/dart.js +0 -192
  83. package/dist/extraction/languages/dart.js.map +0 -1
  84. package/dist/extraction/languages/go.d.ts +0 -3
  85. package/dist/extraction/languages/go.d.ts.map +0 -1
  86. package/dist/extraction/languages/go.js +0 -74
  87. package/dist/extraction/languages/go.js.map +0 -1
  88. package/dist/extraction/languages/index.d.ts +0 -10
  89. package/dist/extraction/languages/index.d.ts.map +0 -1
  90. package/dist/extraction/languages/index.js +0 -51
  91. package/dist/extraction/languages/index.js.map +0 -1
  92. package/dist/extraction/languages/java.d.ts +0 -3
  93. package/dist/extraction/languages/java.d.ts.map +0 -1
  94. package/dist/extraction/languages/java.js +0 -70
  95. package/dist/extraction/languages/java.js.map +0 -1
  96. package/dist/extraction/languages/javascript.d.ts +0 -3
  97. package/dist/extraction/languages/javascript.d.ts.map +0 -1
  98. package/dist/extraction/languages/javascript.js +0 -90
  99. package/dist/extraction/languages/javascript.js.map +0 -1
  100. package/dist/extraction/languages/kotlin.d.ts +0 -3
  101. package/dist/extraction/languages/kotlin.d.ts.map +0 -1
  102. package/dist/extraction/languages/kotlin.js +0 -259
  103. package/dist/extraction/languages/kotlin.js.map +0 -1
  104. package/dist/extraction/languages/lua.d.ts +0 -3
  105. package/dist/extraction/languages/lua.d.ts.map +0 -1
  106. package/dist/extraction/languages/lua.js +0 -150
  107. package/dist/extraction/languages/lua.js.map +0 -1
  108. package/dist/extraction/languages/luau.d.ts +0 -3
  109. package/dist/extraction/languages/luau.d.ts.map +0 -1
  110. package/dist/extraction/languages/luau.js +0 -37
  111. package/dist/extraction/languages/luau.js.map +0 -1
  112. package/dist/extraction/languages/objc.d.ts +0 -3
  113. package/dist/extraction/languages/objc.d.ts.map +0 -1
  114. package/dist/extraction/languages/objc.js +0 -133
  115. package/dist/extraction/languages/objc.js.map +0 -1
  116. package/dist/extraction/languages/pascal.d.ts +0 -3
  117. package/dist/extraction/languages/pascal.d.ts.map +0 -1
  118. package/dist/extraction/languages/pascal.js +0 -66
  119. package/dist/extraction/languages/pascal.js.map +0 -1
  120. package/dist/extraction/languages/php.d.ts +0 -3
  121. package/dist/extraction/languages/php.d.ts.map +0 -1
  122. package/dist/extraction/languages/php.js +0 -107
  123. package/dist/extraction/languages/php.js.map +0 -1
  124. package/dist/extraction/languages/python.d.ts +0 -3
  125. package/dist/extraction/languages/python.d.ts.map +0 -1
  126. package/dist/extraction/languages/python.js +0 -56
  127. package/dist/extraction/languages/python.js.map +0 -1
  128. package/dist/extraction/languages/ruby.d.ts +0 -3
  129. package/dist/extraction/languages/ruby.d.ts.map +0 -1
  130. package/dist/extraction/languages/ruby.js +0 -114
  131. package/dist/extraction/languages/ruby.js.map +0 -1
  132. package/dist/extraction/languages/rust.d.ts +0 -3
  133. package/dist/extraction/languages/rust.d.ts.map +0 -1
  134. package/dist/extraction/languages/rust.js +0 -109
  135. package/dist/extraction/languages/rust.js.map +0 -1
  136. package/dist/extraction/languages/scala.d.ts +0 -3
  137. package/dist/extraction/languages/scala.d.ts.map +0 -1
  138. package/dist/extraction/languages/scala.js +0 -139
  139. package/dist/extraction/languages/scala.js.map +0 -1
  140. package/dist/extraction/languages/swift.d.ts +0 -3
  141. package/dist/extraction/languages/swift.d.ts.map +0 -1
  142. package/dist/extraction/languages/swift.js +0 -91
  143. package/dist/extraction/languages/swift.js.map +0 -1
  144. package/dist/extraction/languages/typescript.d.ts +0 -3
  145. package/dist/extraction/languages/typescript.d.ts.map +0 -1
  146. package/dist/extraction/languages/typescript.js +0 -129
  147. package/dist/extraction/languages/typescript.js.map +0 -1
  148. package/dist/extraction/liquid-extractor.d.ts +0 -52
  149. package/dist/extraction/liquid-extractor.d.ts.map +0 -1
  150. package/dist/extraction/liquid-extractor.js +0 -313
  151. package/dist/extraction/liquid-extractor.js.map +0 -1
  152. package/dist/extraction/mybatis-extractor.d.ts +0 -48
  153. package/dist/extraction/mybatis-extractor.d.ts.map +0 -1
  154. package/dist/extraction/mybatis-extractor.js +0 -198
  155. package/dist/extraction/mybatis-extractor.js.map +0 -1
  156. package/dist/extraction/parse-worker.d.ts +0 -8
  157. package/dist/extraction/parse-worker.d.ts.map +0 -1
  158. package/dist/extraction/parse-worker.js +0 -94
  159. package/dist/extraction/parse-worker.js.map +0 -1
  160. package/dist/extraction/specs/markdown-spec-extractor.d.ts +0 -59
  161. package/dist/extraction/specs/markdown-spec-extractor.d.ts.map +0 -1
  162. package/dist/extraction/specs/markdown-spec-extractor.js +0 -327
  163. package/dist/extraction/specs/markdown-spec-extractor.js.map +0 -1
  164. package/dist/extraction/specs/types.d.ts +0 -39
  165. package/dist/extraction/specs/types.d.ts.map +0 -1
  166. package/dist/extraction/specs/types.js +0 -8
  167. package/dist/extraction/specs/types.js.map +0 -1
  168. package/dist/extraction/svelte-extractor.d.ts +0 -56
  169. package/dist/extraction/svelte-extractor.d.ts.map +0 -1
  170. package/dist/extraction/svelte-extractor.js +0 -272
  171. package/dist/extraction/svelte-extractor.js.map +0 -1
  172. package/dist/extraction/tree-sitter-helpers.d.ts +0 -28
  173. package/dist/extraction/tree-sitter-helpers.d.ts.map +0 -1
  174. package/dist/extraction/tree-sitter-helpers.js +0 -103
  175. package/dist/extraction/tree-sitter-helpers.js.map +0 -1
  176. package/dist/extraction/tree-sitter-types.d.ts +0 -193
  177. package/dist/extraction/tree-sitter-types.d.ts.map +0 -1
  178. package/dist/extraction/tree-sitter-types.js +0 -10
  179. package/dist/extraction/tree-sitter-types.js.map +0 -1
  180. package/dist/extraction/tree-sitter.d.ts +0 -317
  181. package/dist/extraction/tree-sitter.d.ts.map +0 -1
  182. package/dist/extraction/tree-sitter.js +0 -3092
  183. package/dist/extraction/tree-sitter.js.map +0 -1
  184. package/dist/extraction/vue-extractor.d.ts +0 -51
  185. package/dist/extraction/vue-extractor.d.ts.map +0 -1
  186. package/dist/extraction/vue-extractor.js +0 -251
  187. package/dist/extraction/vue-extractor.js.map +0 -1
  188. package/dist/extraction/wasm/tree-sitter-lua.wasm +0 -0
  189. package/dist/extraction/wasm/tree-sitter-luau.wasm +0 -0
  190. package/dist/extraction/wasm/tree-sitter-pascal.wasm +0 -0
  191. package/dist/extraction/wasm/tree-sitter-scala.wasm +0 -0
  192. package/dist/extraction/wasm-runtime-flags.d.ts +0 -38
  193. package/dist/extraction/wasm-runtime-flags.d.ts.map +0 -1
  194. package/dist/extraction/wasm-runtime-flags.js +0 -106
  195. package/dist/extraction/wasm-runtime-flags.js.map +0 -1
  196. package/dist/graph/index.d.ts +0 -8
  197. package/dist/graph/index.d.ts.map +0 -1
  198. package/dist/graph/index.js +0 -13
  199. package/dist/graph/index.js.map +0 -1
  200. package/dist/graph/queries.d.ts +0 -106
  201. package/dist/graph/queries.d.ts.map +0 -1
  202. package/dist/graph/queries.js +0 -366
  203. package/dist/graph/queries.js.map +0 -1
  204. package/dist/graph/traversal.d.ts +0 -127
  205. package/dist/graph/traversal.d.ts.map +0 -1
  206. package/dist/graph/traversal.js +0 -531
  207. package/dist/graph/traversal.js.map +0 -1
  208. package/dist/index.d.ts +0 -551
  209. package/dist/index.d.ts.map +0 -1
  210. package/dist/index.js +0 -1165
  211. package/dist/index.js.map +0 -1
  212. package/dist/installer/config-writer.d.ts +0 -28
  213. package/dist/installer/config-writer.d.ts.map +0 -1
  214. package/dist/installer/config-writer.js +0 -91
  215. package/dist/installer/config-writer.js.map +0 -1
  216. package/dist/installer/index.d.ts +0 -87
  217. package/dist/installer/index.d.ts.map +0 -1
  218. package/dist/installer/index.js +0 -409
  219. package/dist/installer/index.js.map +0 -1
  220. package/dist/installer/instructions-template.d.ts +0 -18
  221. package/dist/installer/instructions-template.d.ts.map +0 -1
  222. package/dist/installer/instructions-template.js +0 -21
  223. package/dist/installer/instructions-template.js.map +0 -1
  224. package/dist/installer/targets/claude.d.ts +0 -88
  225. package/dist/installer/targets/claude.d.ts.map +0 -1
  226. package/dist/installer/targets/claude.js +0 -582
  227. package/dist/installer/targets/claude.js.map +0 -1
  228. package/dist/installer/targets/registry.d.ts +0 -19
  229. package/dist/installer/targets/registry.d.ts.map +0 -1
  230. package/dist/installer/targets/registry.js +0 -31
  231. package/dist/installer/targets/registry.js.map +0 -1
  232. package/dist/installer/targets/shared.d.ts +0 -62
  233. package/dist/installer/targets/shared.d.ts.map +0 -1
  234. package/dist/installer/targets/shared.js +0 -207
  235. package/dist/installer/targets/shared.js.map +0 -1
  236. package/dist/installer/targets/types.d.ts +0 -76
  237. package/dist/installer/targets/types.d.ts.map +0 -1
  238. package/dist/installer/targets/types.js +0 -12
  239. package/dist/installer/targets/types.js.map +0 -1
  240. package/dist/isolation/worktree.d.ts +0 -65
  241. package/dist/isolation/worktree.d.ts.map +0 -1
  242. package/dist/isolation/worktree.js +0 -231
  243. package/dist/isolation/worktree.js.map +0 -1
  244. package/dist/mcp/daemon-paths.d.ts +0 -46
  245. package/dist/mcp/daemon-paths.d.ts.map +0 -1
  246. package/dist/mcp/daemon-paths.js +0 -125
  247. package/dist/mcp/daemon-paths.js.map +0 -1
  248. package/dist/mcp/daemon.d.ts +0 -161
  249. package/dist/mcp/daemon.d.ts.map +0 -1
  250. package/dist/mcp/daemon.js +0 -403
  251. package/dist/mcp/daemon.js.map +0 -1
  252. package/dist/mcp/engine.d.ts +0 -105
  253. package/dist/mcp/engine.d.ts.map +0 -1
  254. package/dist/mcp/engine.js +0 -270
  255. package/dist/mcp/engine.js.map +0 -1
  256. package/dist/mcp/index.d.ts +0 -112
  257. package/dist/mcp/index.d.ts.map +0 -1
  258. package/dist/mcp/index.js +0 -477
  259. package/dist/mcp/index.js.map +0 -1
  260. package/dist/mcp/proxy.d.ts +0 -81
  261. package/dist/mcp/proxy.d.ts.map +0 -1
  262. package/dist/mcp/proxy.js +0 -510
  263. package/dist/mcp/proxy.js.map +0 -1
  264. package/dist/mcp/server-instructions.d.ts +0 -18
  265. package/dist/mcp/server-instructions.d.ts.map +0 -1
  266. package/dist/mcp/server-instructions.js +0 -77
  267. package/dist/mcp/server-instructions.js.map +0 -1
  268. package/dist/mcp/session.d.ts +0 -77
  269. package/dist/mcp/session.d.ts.map +0 -1
  270. package/dist/mcp/session.js +0 -294
  271. package/dist/mcp/session.js.map +0 -1
  272. package/dist/mcp/spec-tools.d.ts +0 -39
  273. package/dist/mcp/spec-tools.d.ts.map +0 -1
  274. package/dist/mcp/spec-tools.js +0 -326
  275. package/dist/mcp/spec-tools.js.map +0 -1
  276. package/dist/mcp/tools.d.ts +0 -404
  277. package/dist/mcp/tools.d.ts.map +0 -1
  278. package/dist/mcp/tools.js +0 -3066
  279. package/dist/mcp/tools.js.map +0 -1
  280. package/dist/mcp/transport.d.ts +0 -188
  281. package/dist/mcp/transport.d.ts.map +0 -1
  282. package/dist/mcp/transport.js +0 -343
  283. package/dist/mcp/transport.js.map +0 -1
  284. package/dist/mcp/version.d.ts +0 -19
  285. package/dist/mcp/version.d.ts.map +0 -1
  286. package/dist/mcp/version.js +0 -71
  287. package/dist/mcp/version.js.map +0 -1
  288. package/dist/resolution/callback-synthesizer.d.ts +0 -10
  289. package/dist/resolution/callback-synthesizer.d.ts.map +0 -1
  290. package/dist/resolution/callback-synthesizer.js +0 -1300
  291. package/dist/resolution/callback-synthesizer.js.map +0 -1
  292. package/dist/resolution/frameworks/cargo-workspace.d.ts +0 -18
  293. package/dist/resolution/frameworks/cargo-workspace.d.ts.map +0 -1
  294. package/dist/resolution/frameworks/cargo-workspace.js +0 -225
  295. package/dist/resolution/frameworks/cargo-workspace.js.map +0 -1
  296. package/dist/resolution/frameworks/csharp.d.ts +0 -8
  297. package/dist/resolution/frameworks/csharp.d.ts.map +0 -1
  298. package/dist/resolution/frameworks/csharp.js +0 -241
  299. package/dist/resolution/frameworks/csharp.js.map +0 -1
  300. package/dist/resolution/frameworks/drupal.d.ts +0 -51
  301. package/dist/resolution/frameworks/drupal.d.ts.map +0 -1
  302. package/dist/resolution/frameworks/drupal.js +0 -367
  303. package/dist/resolution/frameworks/drupal.js.map +0 -1
  304. package/dist/resolution/frameworks/expo-modules.d.ts +0 -3
  305. package/dist/resolution/frameworks/expo-modules.d.ts.map +0 -1
  306. package/dist/resolution/frameworks/expo-modules.js +0 -143
  307. package/dist/resolution/frameworks/expo-modules.js.map +0 -1
  308. package/dist/resolution/frameworks/express.d.ts +0 -8
  309. package/dist/resolution/frameworks/express.d.ts.map +0 -1
  310. package/dist/resolution/frameworks/express.js +0 -308
  311. package/dist/resolution/frameworks/express.js.map +0 -1
  312. package/dist/resolution/frameworks/fabric.d.ts +0 -3
  313. package/dist/resolution/frameworks/fabric.d.ts.map +0 -1
  314. package/dist/resolution/frameworks/fabric.js +0 -354
  315. package/dist/resolution/frameworks/fabric.js.map +0 -1
  316. package/dist/resolution/frameworks/go.d.ts +0 -8
  317. package/dist/resolution/frameworks/go.d.ts.map +0 -1
  318. package/dist/resolution/frameworks/go.js +0 -161
  319. package/dist/resolution/frameworks/go.js.map +0 -1
  320. package/dist/resolution/frameworks/index.d.ts +0 -48
  321. package/dist/resolution/frameworks/index.d.ts.map +0 -1
  322. package/dist/resolution/frameworks/index.js +0 -161
  323. package/dist/resolution/frameworks/index.js.map +0 -1
  324. package/dist/resolution/frameworks/java.d.ts +0 -8
  325. package/dist/resolution/frameworks/java.d.ts.map +0 -1
  326. package/dist/resolution/frameworks/java.js +0 -504
  327. package/dist/resolution/frameworks/java.js.map +0 -1
  328. package/dist/resolution/frameworks/laravel.d.ts +0 -13
  329. package/dist/resolution/frameworks/laravel.d.ts.map +0 -1
  330. package/dist/resolution/frameworks/laravel.js +0 -257
  331. package/dist/resolution/frameworks/laravel.js.map +0 -1
  332. package/dist/resolution/frameworks/nestjs.d.ts +0 -26
  333. package/dist/resolution/frameworks/nestjs.d.ts.map +0 -1
  334. package/dist/resolution/frameworks/nestjs.js +0 -698
  335. package/dist/resolution/frameworks/nestjs.js.map +0 -1
  336. package/dist/resolution/frameworks/play.d.ts +0 -19
  337. package/dist/resolution/frameworks/play.d.ts.map +0 -1
  338. package/dist/resolution/frameworks/play.js +0 -111
  339. package/dist/resolution/frameworks/play.js.map +0 -1
  340. package/dist/resolution/frameworks/python.d.ts +0 -10
  341. package/dist/resolution/frameworks/python.d.ts.map +0 -1
  342. package/dist/resolution/frameworks/python.js +0 -396
  343. package/dist/resolution/frameworks/python.js.map +0 -1
  344. package/dist/resolution/frameworks/react-native.d.ts +0 -3
  345. package/dist/resolution/frameworks/react-native.d.ts.map +0 -1
  346. package/dist/resolution/frameworks/react-native.js +0 -360
  347. package/dist/resolution/frameworks/react-native.js.map +0 -1
  348. package/dist/resolution/frameworks/react.d.ts +0 -8
  349. package/dist/resolution/frameworks/react.d.ts.map +0 -1
  350. package/dist/resolution/frameworks/react.js +0 -365
  351. package/dist/resolution/frameworks/react.js.map +0 -1
  352. package/dist/resolution/frameworks/ruby.d.ts +0 -8
  353. package/dist/resolution/frameworks/ruby.d.ts.map +0 -1
  354. package/dist/resolution/frameworks/ruby.js +0 -302
  355. package/dist/resolution/frameworks/ruby.js.map +0 -1
  356. package/dist/resolution/frameworks/rust.d.ts +0 -8
  357. package/dist/resolution/frameworks/rust.d.ts.map +0 -1
  358. package/dist/resolution/frameworks/rust.js +0 -304
  359. package/dist/resolution/frameworks/rust.js.map +0 -1
  360. package/dist/resolution/frameworks/svelte.d.ts +0 -9
  361. package/dist/resolution/frameworks/svelte.d.ts.map +0 -1
  362. package/dist/resolution/frameworks/svelte.js +0 -249
  363. package/dist/resolution/frameworks/svelte.js.map +0 -1
  364. package/dist/resolution/frameworks/swift-objc.d.ts +0 -37
  365. package/dist/resolution/frameworks/swift-objc.d.ts.map +0 -1
  366. package/dist/resolution/frameworks/swift-objc.js +0 -252
  367. package/dist/resolution/frameworks/swift-objc.js.map +0 -1
  368. package/dist/resolution/frameworks/swift.d.ts +0 -10
  369. package/dist/resolution/frameworks/swift.d.ts.map +0 -1
  370. package/dist/resolution/frameworks/swift.js +0 -400
  371. package/dist/resolution/frameworks/swift.js.map +0 -1
  372. package/dist/resolution/frameworks/vue.d.ts +0 -9
  373. package/dist/resolution/frameworks/vue.d.ts.map +0 -1
  374. package/dist/resolution/frameworks/vue.js +0 -306
  375. package/dist/resolution/frameworks/vue.js.map +0 -1
  376. package/dist/resolution/go-module.d.ts +0 -26
  377. package/dist/resolution/go-module.d.ts.map +0 -1
  378. package/dist/resolution/go-module.js +0 -78
  379. package/dist/resolution/go-module.js.map +0 -1
  380. package/dist/resolution/import-resolver.d.ts +0 -68
  381. package/dist/resolution/import-resolver.d.ts.map +0 -1
  382. package/dist/resolution/import-resolver.js +0 -1275
  383. package/dist/resolution/import-resolver.js.map +0 -1
  384. package/dist/resolution/index.d.ts +0 -117
  385. package/dist/resolution/index.d.ts.map +0 -1
  386. package/dist/resolution/index.js +0 -895
  387. package/dist/resolution/index.js.map +0 -1
  388. package/dist/resolution/lru-cache.d.ts +0 -24
  389. package/dist/resolution/lru-cache.d.ts.map +0 -1
  390. package/dist/resolution/lru-cache.js +0 -62
  391. package/dist/resolution/lru-cache.js.map +0 -1
  392. package/dist/resolution/name-matcher.d.ts +0 -32
  393. package/dist/resolution/name-matcher.d.ts.map +0 -1
  394. package/dist/resolution/name-matcher.js +0 -596
  395. package/dist/resolution/name-matcher.js.map +0 -1
  396. package/dist/resolution/path-aliases.d.ts +0 -68
  397. package/dist/resolution/path-aliases.d.ts.map +0 -1
  398. package/dist/resolution/path-aliases.js +0 -238
  399. package/dist/resolution/path-aliases.js.map +0 -1
  400. package/dist/resolution/spec-link-resolver.d.ts +0 -103
  401. package/dist/resolution/spec-link-resolver.d.ts.map +0 -1
  402. package/dist/resolution/spec-link-resolver.js +0 -259
  403. package/dist/resolution/spec-link-resolver.js.map +0 -1
  404. package/dist/resolution/strip-comments.d.ts +0 -27
  405. package/dist/resolution/strip-comments.d.ts.map +0 -1
  406. package/dist/resolution/strip-comments.js +0 -441
  407. package/dist/resolution/strip-comments.js.map +0 -1
  408. package/dist/resolution/swift-objc-bridge.d.ts +0 -134
  409. package/dist/resolution/swift-objc-bridge.d.ts.map +0 -1
  410. package/dist/resolution/swift-objc-bridge.js +0 -256
  411. package/dist/resolution/swift-objc-bridge.js.map +0 -1
  412. package/dist/resolution/types.d.ts +0 -216
  413. package/dist/resolution/types.d.ts.map +0 -1
  414. package/dist/resolution/types.js +0 -8
  415. package/dist/resolution/types.js.map +0 -1
  416. package/dist/resolution/workspace-packages.d.ts +0 -48
  417. package/dist/resolution/workspace-packages.d.ts.map +0 -1
  418. package/dist/resolution/workspace-packages.js +0 -208
  419. package/dist/resolution/workspace-packages.js.map +0 -1
  420. package/dist/search/query-parser.d.ts +0 -57
  421. package/dist/search/query-parser.d.ts.map +0 -1
  422. package/dist/search/query-parser.js +0 -177
  423. package/dist/search/query-parser.js.map +0 -1
  424. package/dist/search/query-utils.d.ts +0 -71
  425. package/dist/search/query-utils.d.ts.map +0 -1
  426. package/dist/search/query-utils.js +0 -380
  427. package/dist/search/query-utils.js.map +0 -1
  428. package/dist/server/cli.js +0 -152
  429. package/dist/server/index.js +0 -12
  430. package/dist/server/ingest/index.js +0 -18
  431. package/dist/server/ingest/ingestor.js +0 -406
  432. package/dist/server/ingest/parser.js +0 -104
  433. package/dist/server/ingest/pricing.js +0 -78
  434. package/dist/server/ingest/types.js +0 -9
  435. package/dist/server/ingest/watcher.js +0 -77
  436. package/dist/server/package.json +0 -3
  437. package/dist/server/project-registry.js +0 -101
  438. package/dist/server/routes/claude.js +0 -480
  439. package/dist/server/routes/graph.js +0 -149
  440. package/dist/server/routes/memory.js +0 -272
  441. package/dist/server/routes/projects.js +0 -197
  442. package/dist/server/routes/spec.js +0 -105
  443. package/dist/server/routes/status.js +0 -35
  444. package/dist/server/routes/workflow.js +0 -184
  445. package/dist/server/server.js +0 -206
  446. package/dist/server/static-handler.js +0 -87
  447. package/dist/sync/git-hooks.d.ts +0 -45
  448. package/dist/sync/git-hooks.d.ts.map +0 -1
  449. package/dist/sync/git-hooks.js +0 -225
  450. package/dist/sync/git-hooks.js.map +0 -1
  451. package/dist/sync/index.d.ts +0 -19
  452. package/dist/sync/index.d.ts.map +0 -1
  453. package/dist/sync/index.js +0 -35
  454. package/dist/sync/index.js.map +0 -1
  455. package/dist/sync/watch-policy.d.ts +0 -48
  456. package/dist/sync/watch-policy.d.ts.map +0 -1
  457. package/dist/sync/watch-policy.js +0 -124
  458. package/dist/sync/watch-policy.js.map +0 -1
  459. package/dist/sync/watcher.d.ts +0 -283
  460. package/dist/sync/watcher.d.ts.map +0 -1
  461. package/dist/sync/watcher.js +0 -606
  462. package/dist/sync/watcher.js.map +0 -1
  463. package/dist/sync/worktree.d.ts +0 -54
  464. package/dist/sync/worktree.d.ts.map +0 -1
  465. package/dist/sync/worktree.js +0 -137
  466. package/dist/sync/worktree.js.map +0 -1
  467. package/dist/types.d.ts +0 -623
  468. package/dist/types.d.ts.map +0 -1
  469. package/dist/types.js +0 -108
  470. package/dist/types.js.map +0 -1
  471. package/dist/ui/glyphs.d.ts +0 -42
  472. package/dist/ui/glyphs.d.ts.map +0 -1
  473. package/dist/ui/glyphs.js +0 -78
  474. package/dist/ui/glyphs.js.map +0 -1
  475. package/dist/ui/shimmer-progress.d.ts +0 -11
  476. package/dist/ui/shimmer-progress.d.ts.map +0 -1
  477. package/dist/ui/shimmer-progress.js +0 -90
  478. package/dist/ui/shimmer-progress.js.map +0 -1
  479. package/dist/ui/shimmer-worker.d.ts +0 -2
  480. package/dist/ui/shimmer-worker.d.ts.map +0 -1
  481. package/dist/ui/shimmer-worker.js +0 -118
  482. package/dist/ui/shimmer-worker.js.map +0 -1
  483. package/dist/ui/types.d.ts +0 -17
  484. package/dist/ui/types.d.ts.map +0 -1
  485. package/dist/ui/types.js +0 -3
  486. package/dist/ui/types.js.map +0 -1
  487. package/dist/utils.d.ts +0 -205
  488. package/dist/utils.d.ts.map +0 -1
  489. package/dist/utils.js +0 -549
  490. package/dist/utils.js.map +0 -1
  491. package/dist/web/chunk-2YZXEHZ2.js +0 -1
  492. package/dist/web/chunk-3GIC555L.js +0 -18
  493. package/dist/web/chunk-3IIIGRMT.js +0 -1
  494. package/dist/web/chunk-47QYKLE5.js +0 -1
  495. package/dist/web/chunk-4LHBWWP7.js +0 -1
  496. package/dist/web/chunk-4OAZLD5W.js +0 -1
  497. package/dist/web/chunk-5OQKAJAE.js +0 -1
  498. package/dist/web/chunk-7B525GKQ.js +0 -1
  499. package/dist/web/chunk-BPDXCOOZ.js +0 -1
  500. package/dist/web/chunk-DT37HTZB.js +0 -1
  501. package/dist/web/chunk-EIMUHJND.js +0 -1
  502. package/dist/web/chunk-FTESTUEO.js +0 -1
  503. package/dist/web/chunk-GLJZV6MU.js +0 -1
  504. package/dist/web/chunk-I7LS67U5.js +0 -1
  505. package/dist/web/chunk-L4TVIPSR.js +0 -1
  506. package/dist/web/chunk-MASCULC2.js +0 -1
  507. package/dist/web/chunk-MW7ICSRM.js +0 -1
  508. package/dist/web/chunk-OI5VP2A3.js +0 -1
  509. package/dist/web/chunk-RA6EBF6I.js +0 -1
  510. package/dist/web/chunk-RP3WU5Y6.js +0 -1
  511. package/dist/web/chunk-RQDRMTXN.js +0 -1
  512. package/dist/web/chunk-TQMT6UDU.js +0 -1
  513. package/dist/web/chunk-U7IYOV7T.js +0 -1
  514. package/dist/web/chunk-UE227MWF.js +0 -1
  515. package/dist/web/chunk-WV573J4K.js +0 -1
  516. package/dist/web/chunk-WVCKOJZL.js +0 -4
  517. package/dist/web/chunk-XZKLVPHE.js +0 -1
  518. package/dist/web/chunk-ZABKKHJ3.js +0 -1
  519. package/dist/web/favicon-16.png +0 -0
  520. package/dist/web/favicon-180.png +0 -0
  521. package/dist/web/favicon-32.png +0 -0
  522. package/dist/web/favicon-512.png +0 -0
  523. package/dist/web/favicon-small.svg +0 -15
  524. package/dist/web/favicon.ico +0 -0
  525. package/dist/web/favicon.svg +0 -20
  526. package/dist/web/index.html +0 -145
  527. package/dist/web/main-RI5CO5Z4.js +0 -1
  528. package/dist/web/styles-CYN7IKT4.css +0 -1
  529. package/dist/workflows/condition-evaluator.d.ts +0 -75
  530. package/dist/workflows/condition-evaluator.d.ts.map +0 -1
  531. package/dist/workflows/condition-evaluator.js +0 -282
  532. package/dist/workflows/condition-evaluator.js.map +0 -1
  533. package/dist/workflows/defaults/index.d.ts +0 -26
  534. package/dist/workflows/defaults/index.d.ts.map +0 -1
  535. package/dist/workflows/defaults/index.js +0 -94
  536. package/dist/workflows/defaults/index.js.map +0 -1
  537. package/dist/workflows/defaults/spec-fix.yaml +0 -110
  538. package/dist/workflows/defaults/spec-implement.yaml +0 -150
  539. package/dist/workflows/defaults/spec-relink.yaml +0 -81
  540. package/dist/workflows/defaults/spec-verify.yaml +0 -51
  541. package/dist/workflows/discovery.d.ts +0 -46
  542. package/dist/workflows/discovery.d.ts.map +0 -1
  543. package/dist/workflows/discovery.js +0 -193
  544. package/dist/workflows/discovery.js.map +0 -1
  545. package/dist/workflows/executor.d.ts +0 -83
  546. package/dist/workflows/executor.d.ts.map +0 -1
  547. package/dist/workflows/executor.js +0 -623
  548. package/dist/workflows/executor.js.map +0 -1
  549. package/dist/workflows/runners/approval.d.ts +0 -18
  550. package/dist/workflows/runners/approval.d.ts.map +0 -1
  551. package/dist/workflows/runners/approval.js +0 -34
  552. package/dist/workflows/runners/approval.js.map +0 -1
  553. package/dist/workflows/runners/bash.d.ts +0 -13
  554. package/dist/workflows/runners/bash.d.ts.map +0 -1
  555. package/dist/workflows/runners/bash.js +0 -143
  556. package/dist/workflows/runners/bash.js.map +0 -1
  557. package/dist/workflows/runners/cancel.d.ts +0 -10
  558. package/dist/workflows/runners/cancel.d.ts.map +0 -1
  559. package/dist/workflows/runners/cancel.js +0 -19
  560. package/dist/workflows/runners/cancel.js.map +0 -1
  561. package/dist/workflows/runners/prompt.d.ts +0 -28
  562. package/dist/workflows/runners/prompt.d.ts.map +0 -1
  563. package/dist/workflows/runners/prompt.js +0 -212
  564. package/dist/workflows/runners/prompt.js.map +0 -1
  565. package/dist/workflows/runners/script.d.ts +0 -17
  566. package/dist/workflows/runners/script.d.ts.map +0 -1
  567. package/dist/workflows/runners/script.js +0 -155
  568. package/dist/workflows/runners/script.js.map +0 -1
  569. package/dist/workflows/runners/types.d.ts +0 -51
  570. package/dist/workflows/runners/types.d.ts.map +0 -1
  571. package/dist/workflows/runners/types.js +0 -13
  572. package/dist/workflows/runners/types.js.map +0 -1
  573. package/dist/workflows/schemas/workflow.d.ts +0 -166
  574. package/dist/workflows/schemas/workflow.d.ts.map +0 -1
  575. package/dist/workflows/schemas/workflow.js +0 -437
  576. package/dist/workflows/schemas/workflow.js.map +0 -1
@@ -1,582 +0,0 @@
1
- "use strict";
2
- /**
3
- * Claude Code target. Writes:
4
- *
5
- * - MCP server entry to `~/.claude.json` (global = user scope, loads
6
- * in every project) or `./.mcp.json` (local = project scope, the
7
- * file Claude Code actually reads for a single project). See the
8
- * scope table at https://code.claude.com/docs/en/mcp.
9
- * - Permissions to `~/.claude/settings.json` (global) or
10
- * `./.claude/settings.json` (local), gated on `autoAllow`.
11
- * - Instructions to `~/.claude/CLAUDE.md` (global) or
12
- * `./.claude/CLAUDE.md` (local).
13
- *
14
- * Earlier versions wrote the local MCP entry to `./.claude.json` — a
15
- * file Claude Code never reads — so the server silently never loaded
16
- * until the user manually renamed it to `.mcp.json` (issue #207). We
17
- * now write `./.mcp.json` and migrate any stale `./.claude.json` entry
18
- * out of the way on install and uninstall.
19
- */
20
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- var desc = Object.getOwnPropertyDescriptor(m, k);
23
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
24
- desc = { enumerable: true, get: function() { return m[k]; } };
25
- }
26
- Object.defineProperty(o, k2, desc);
27
- }) : (function(o, m, k, k2) {
28
- if (k2 === undefined) k2 = k;
29
- o[k2] = m[k];
30
- }));
31
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
32
- Object.defineProperty(o, "default", { enumerable: true, value: v });
33
- }) : function(o, v) {
34
- o["default"] = v;
35
- });
36
- var __importStar = (this && this.__importStar) || (function () {
37
- var ownKeys = function(o) {
38
- ownKeys = Object.getOwnPropertyNames || function (o) {
39
- var ar = [];
40
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
41
- return ar;
42
- };
43
- return ownKeys(o);
44
- };
45
- return function (mod) {
46
- if (mod && mod.__esModule) return mod;
47
- var result = {};
48
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
49
- __setModuleDefault(result, mod);
50
- return result;
51
- };
52
- })();
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- exports.claudeTarget = void 0;
55
- exports.writeMcpEntry = writeMcpEntry;
56
- exports.cleanupLegacyHooks = cleanupLegacyHooks;
57
- exports.cleanupCurrentHooks = cleanupCurrentHooks;
58
- exports.writePermissionsEntry = writePermissionsEntry;
59
- exports.removeInstructionsEntry = removeInstructionsEntry;
60
- exports.writeHooksEntry = writeHooksEntry;
61
- exports.writeCommandsEntries = writeCommandsEntries;
62
- exports.writeAgentsEntries = writeAgentsEntries;
63
- exports.removeCommandsEntries = removeCommandsEntries;
64
- exports.removeAgentsEntries = removeAgentsEntries;
65
- const fs = __importStar(require("fs"));
66
- const path = __importStar(require("path"));
67
- const os = __importStar(require("os"));
68
- const shared_1 = require("./shared");
69
- const instructions_template_1 = require("../instructions-template");
70
- function configDir(loc) {
71
- return loc === 'global'
72
- ? path.join(os.homedir(), '.claude')
73
- : path.join(process.cwd(), '.claude');
74
- }
75
- function mcpJsonPath(loc) {
76
- // global → ~/.claude.json (user scope: visible in every project).
77
- // local → ./.mcp.json (project scope: the ONLY project-level MCP
78
- // file Claude Code reads — NOT ./.claude.json, which it ignores).
79
- return loc === 'global'
80
- ? path.join(os.homedir(), '.claude.json')
81
- : path.join(process.cwd(), '.mcp.json');
82
- }
83
- /**
84
- * Where pre-#207 installers wrote the local MCP entry. Claude Code
85
- * never reads a project-level `./.claude.json`, so we migrate the
86
- * specship entry out of it on install and strip it on uninstall.
87
- * Only the project-local path is legacy — global `~/.claude.json` is
88
- * the correct user-scope location and is left untouched.
89
- */
90
- function legacyLocalMcpPath() {
91
- return path.join(process.cwd(), '.claude.json');
92
- }
93
- function settingsJsonPath(loc) {
94
- return path.join(configDir(loc), 'settings.json');
95
- }
96
- function instructionsPath(loc) {
97
- return path.join(configDir(loc), 'CLAUDE.md');
98
- }
99
- function commandsDir(loc) {
100
- return path.join(configDir(loc), 'commands');
101
- }
102
- function agentsDir(loc) {
103
- return path.join(configDir(loc), 'agents');
104
- }
105
- /**
106
- * Plugin-asset source dir at the package root — same `commands/`,
107
- * `agents/`, `hooks/` directories that ship the plugin manifest path.
108
- * Resolves identically from `src/installer/targets/claude.ts` (dev /
109
- * test) and `dist/installer/targets/claude.js` (installed npm package).
110
- */
111
- function packageAssetPath(...segments) {
112
- return path.join(__dirname, '..', '..', '..', ...segments);
113
- }
114
- /** Slash commands the installer copies into Claude's commands dir. */
115
- const SHIPPED_COMMANDS = [
116
- 'cg-sync.md',
117
- 'cg-trace.md',
118
- 'cg-explore.md',
119
- 'cg-impact.md',
120
- // Spec-layer commands (v5):
121
- 'cg-spec.md',
122
- 'cg-implement.md',
123
- 'cg-drifted.md',
124
- 'cg-fix.md',
125
- 'cg-relink.md',
126
- ];
127
- /** Subagents the installer copies into Claude's agents dir. */
128
- const SHIPPED_AGENTS = ['specship-explorer.md'];
129
- /** The PostToolUse + SessionStart hooks the installer writes. */
130
- const SPECSHIP_HOOKS = [
131
- {
132
- event: 'PostToolUse',
133
- matcher: 'Edit|Write|MultiEdit',
134
- hook: { type: 'command', command: 'specship sync --quiet', async: true },
135
- },
136
- {
137
- event: 'SessionStart',
138
- matcher: 'startup|resume',
139
- hook: { type: 'command', command: 'specship sync --quiet' },
140
- },
141
- ];
142
- class ClaudeCodeTarget {
143
- id = 'claude';
144
- displayName = 'Claude Code';
145
- docsUrl = 'https://docs.claude.com/en/docs/claude-code';
146
- supportsLocation(_loc) {
147
- return true;
148
- }
149
- detect(loc) {
150
- const mcpPath = mcpJsonPath(loc);
151
- const config = (0, shared_1.readJsonFile)(mcpPath);
152
- const alreadyConfigured = !!config.mcpServers?.specship;
153
- // For "installed" we infer from the existence of either the dir
154
- // (global) or the project marker file (local). Cheap and avoids
155
- // shelling out to `claude --version`.
156
- const installed = loc === 'global'
157
- ? fs.existsSync(configDir(loc)) || fs.existsSync(mcpPath)
158
- : fs.existsSync(mcpPath) || fs.existsSync(configDir(loc));
159
- return { installed, alreadyConfigured, configPath: mcpPath };
160
- }
161
- install(loc, opts) {
162
- const files = [];
163
- // 1. MCP server entry
164
- files.push(writeMcpEntry(loc));
165
- // 1b. Migrate away any stale ./.claude.json left by a pre-#207
166
- // local install, so the project isn't left with two competing
167
- // (one dead) MCP configs.
168
- if (loc === 'local') {
169
- const migrated = cleanupLegacyLocalMcp();
170
- if (migrated)
171
- files.push(migrated);
172
- }
173
- // 2. Permissions (only when autoAllow)
174
- if (opts.autoAllow) {
175
- files.push(writePermissionsEntry(loc));
176
- }
177
- // 2b. Strip stale auto-sync hooks left by a pre-0.8 install. Those
178
- // versions wrote `specship mark-dirty` / `sync-if-dirty` hooks to
179
- // settings.json; both subcommands are gone from the CLI, so the
180
- // Stop hook now fails every turn with "unknown command
181
- // 'sync-if-dirty'". Cleaning up on install makes an upgrade
182
- // self-healing. Only surfaced when something was actually removed.
183
- const hookCleanup = cleanupLegacyHooks(loc);
184
- if (hookCleanup.action === 'removed')
185
- files.push(hookCleanup);
186
- // 2c. Write the current auto-sync hooks (PostToolUse + SessionStart
187
- // running `specship sync --quiet`). Gated on autoAllow — same
188
- // posture as the permissions list since both auto-execute commands
189
- // without prompting. Idempotent: re-running with identical hooks
190
- // already in settings.json returns 'unchanged'.
191
- if (opts.autoAllow) {
192
- files.push(writeHooksEntry(loc));
193
- }
194
- // 3. CLAUDE.md instructions — no longer written. The specship
195
- // usage guidance now ships solely in the MCP server's `initialize`
196
- // response (see `mcp/server-instructions.ts`), which Claude Code
197
- // surfaces in the system prompt automatically. Writing it into
198
- // CLAUDE.md as well meant the agent read the same playbook twice
199
- // every turn (issue #529). Strip any block a previous install left
200
- // behind so an upgrade self-heals — same idiom as the hook cleanup.
201
- const instrCleanup = removeInstructionsEntry(loc);
202
- if (instrCleanup.action === 'removed')
203
- files.push(instrCleanup);
204
- // 4. Slash commands + the specship-explorer subagent. NOT gated on
205
- // autoAllow — these only execute when the user / agent invokes them
206
- // explicitly. Copies the same .md files that ship for the plugin
207
- // install path, so the two flows can't drift apart.
208
- for (const f of writeCommandsEntries(loc))
209
- files.push(f);
210
- for (const f of writeAgentsEntries(loc))
211
- files.push(f);
212
- return { files };
213
- }
214
- uninstall(loc) {
215
- const files = [];
216
- // 1. MCP server entry
217
- const mcpPath = mcpJsonPath(loc);
218
- const config = (0, shared_1.readJsonFile)(mcpPath);
219
- if (config.mcpServers?.specship) {
220
- delete config.mcpServers.specship;
221
- if (Object.keys(config.mcpServers).length === 0) {
222
- delete config.mcpServers;
223
- }
224
- (0, shared_1.writeJsonFile)(mcpPath, config);
225
- files.push({ path: mcpPath, action: 'removed' });
226
- }
227
- else {
228
- files.push({ path: mcpPath, action: 'not-found' });
229
- }
230
- // 1b. Also strip the specship entry from a legacy ./.claude.json
231
- // so uninstall fully reverses a pre-#207 local install.
232
- if (loc === 'local') {
233
- const migrated = cleanupLegacyLocalMcp();
234
- if (migrated)
235
- files.push(migrated);
236
- }
237
- // 2. Permissions
238
- const settingsPath = settingsJsonPath(loc);
239
- const settings = (0, shared_1.readJsonFile)(settingsPath);
240
- if (Array.isArray(settings.permissions?.allow)) {
241
- const before = settings.permissions.allow.length;
242
- settings.permissions.allow = settings.permissions.allow.filter((p) => !p.startsWith('mcp__specship__'));
243
- if (settings.permissions.allow.length !== before) {
244
- if (settings.permissions.allow.length === 0) {
245
- delete settings.permissions.allow;
246
- }
247
- if (Object.keys(settings.permissions).length === 0) {
248
- delete settings.permissions;
249
- }
250
- (0, shared_1.writeJsonFile)(settingsPath, settings);
251
- files.push({ path: settingsPath, action: 'removed' });
252
- }
253
- else {
254
- files.push({ path: settingsPath, action: 'not-found' });
255
- }
256
- }
257
- else {
258
- files.push({ path: settingsPath, action: 'not-found' });
259
- }
260
- // 2b. Strip auto-sync hooks the installer wrote — both the
261
- // current `specship sync --quiet` form (writeHooksEntry) and the
262
- // legacy `mark-dirty`/`sync-if-dirty` forms (pre-0.8). Two passes
263
- // so each predicate stays narrow and we never accidentally strip a
264
- // user-written hook.
265
- const currentCleanup = cleanupCurrentHooks(loc);
266
- if (currentCleanup.action === 'removed')
267
- files.push(currentCleanup);
268
- const legacyCleanup = cleanupLegacyHooks(loc);
269
- if (legacyCleanup.action === 'removed')
270
- files.push(legacyCleanup);
271
- // 3. Instructions — strip the legacy SpecShip block if present.
272
- files.push(removeInstructionsEntry(loc));
273
- // 4. Slash commands + subagent — remove our shipped files; sibling
274
- // user-written .md files in the same dir are left untouched.
275
- for (const f of removeCommandsEntries(loc))
276
- files.push(f);
277
- for (const f of removeAgentsEntries(loc))
278
- files.push(f);
279
- return { files };
280
- }
281
- printConfig(loc) {
282
- const target = mcpJsonPath(loc);
283
- const snippet = JSON.stringify({ mcpServers: { specship: (0, shared_1.getMcpServerConfig)() } }, null, 2);
284
- return `# Add to ${target}\n\n${snippet}\n`;
285
- }
286
- describePaths(loc) {
287
- return [
288
- mcpJsonPath(loc),
289
- settingsJsonPath(loc),
290
- instructionsPath(loc),
291
- ...SHIPPED_COMMANDS.map((f) => path.join(commandsDir(loc), f)),
292
- ...SHIPPED_AGENTS.map((f) => path.join(agentsDir(loc), f)),
293
- ];
294
- }
295
- }
296
- /**
297
- * Per-file write helpers, exported so the legacy `config-writer.ts`
298
- * shim can call only the named operation (writeMcpConfig writes ONLY
299
- * the MCP entry, etc.) instead of `claudeTarget.install()` which
300
- * writes all three files. Without this split the shims silently
301
- * cause side effects callers don't expect.
302
- */
303
- function writeMcpEntry(loc) {
304
- const file = mcpJsonPath(loc);
305
- const existing = (0, shared_1.readJsonFile)(file);
306
- const before = existing.mcpServers?.specship;
307
- const after = (0, shared_1.getMcpServerConfig)();
308
- if ((0, shared_1.jsonDeepEqual)(before, after)) {
309
- // Already exactly what we'd write — preserve byte-identical file.
310
- return { path: file, action: 'unchanged' };
311
- }
312
- // 'created' here means: the file itself did not exist before this
313
- // write. A pre-existing MCP JSON file (`~/.claude.json` globally,
314
- // `./.mcp.json` locally) containing other MCP servers (no
315
- // `specship` key) is 'updated', not 'created' — we're adding an
316
- // entry to a file that was already there. Codex uses a different
317
- // idiom (empty-content => 'created') because its config.toml is
318
- // ours alone to manage.
319
- const action = before ? 'updated' : (fs.existsSync(file) ? 'updated' : 'created');
320
- if (!existing.mcpServers)
321
- existing.mcpServers = {};
322
- existing.mcpServers.specship = after;
323
- (0, shared_1.writeJsonFile)(file, existing);
324
- return { path: file, action };
325
- }
326
- /**
327
- * Strip the specship entry from a legacy project-local
328
- * `./.claude.json` (written by pre-#207 installers, which Claude Code
329
- * never read). Surgical: only our `specship` key is removed; sibling
330
- * MCP servers and any unrelated keys are preserved, and the file is
331
- * deleted only when removal leaves it completely empty. Returns the
332
- * file action for reporting, or `null` when there's nothing to migrate.
333
- */
334
- function cleanupLegacyLocalMcp() {
335
- const file = legacyLocalMcpPath();
336
- if (!fs.existsSync(file))
337
- return null;
338
- const config = (0, shared_1.readJsonFile)(file);
339
- if (!config.mcpServers?.specship)
340
- return null;
341
- delete config.mcpServers.specship;
342
- if (Object.keys(config.mcpServers).length === 0)
343
- delete config.mcpServers;
344
- if (Object.keys(config).length === 0) {
345
- try {
346
- fs.unlinkSync(file);
347
- }
348
- catch { /* ignore */ }
349
- }
350
- else {
351
- (0, shared_1.writeJsonFile)(file, config);
352
- }
353
- return { path: file, action: 'removed' };
354
- }
355
- /**
356
- * True when a Claude Code hook `command` is one of the **pre-0.8**
357
- * specship auto-sync hooks: `specship mark-dirty` (PostToolUse) /
358
- * `specship sync-if-dirty` (Stop). Both subcommands have since been
359
- * removed from the CLI, so the Stop hook fails every turn with
360
- * "unknown command 'sync-if-dirty'" — stripping them on install
361
- * (self-heal on upgrade) is what keeps the upgrade quiet. Local builds
362
- * also wrote the npx form, which still contains the `specship
363
- * <subcommand>` substring; the substring match covers both. Sibling
364
- * user hooks (e.g. GitKraken's `gk ai hook run`) match nothing here.
365
- *
366
- * The **current** auto-sync hook form (`specship sync --quiet`) is
367
- * NOT matched here — install writes those and would re-strip its own
368
- * work if this predicate covered them. The uninstall flow uses
369
- * `isCurrentSpecshipHookCommand` for those, on top of this one.
370
- */
371
- function isLegacySpecshipHookCommand(command) {
372
- if (typeof command !== 'string')
373
- return false;
374
- return (command.includes('specship mark-dirty') ||
375
- command.includes('specship sync-if-dirty'));
376
- }
377
- /**
378
- * True when a hook `command` is one of the auto-sync hooks
379
- * `writeHooksEntry` writes in this release (`specship sync --quiet`).
380
- * Uninstall-only — install must NOT match these or it would destroy
381
- * the entries it just wrote.
382
- */
383
- function isCurrentSpecshipHookCommand(command) {
384
- if (typeof command !== 'string')
385
- return false;
386
- return SPECSHIP_HOOKS.some(({ hook }) => command === hook.command);
387
- }
388
- /**
389
- * Strip specship hook commands matched by `predicate` from Claude
390
- * `settings.json`. Surgical at the individual-command level: only
391
- * matched entries are dropped, so a sibling hook sharing a matcher
392
- * group (or the Stop event) survives. Matcher groups are pruned only
393
- * once their `hooks` array is empty, events only once they have no
394
- * groups left, and `hooks` itself only once every event is gone — and
395
- * none of that runs unless we actually removed a command, so a
396
- * settings.json with no matching hooks is left byte-for-byte untouched
397
- * and reported `unchanged`.
398
- */
399
- function stripHooksMatching(loc, predicate) {
400
- const file = settingsJsonPath(loc);
401
- if (!fs.existsSync(file))
402
- return { path: file, action: 'not-found' };
403
- const settings = (0, shared_1.readJsonFile)(file);
404
- const hooks = settings.hooks;
405
- if (!hooks || typeof hooks !== 'object' || Array.isArray(hooks)) {
406
- return { path: file, action: 'unchanged' };
407
- }
408
- let removedAny = false;
409
- for (const event of Object.keys(hooks)) {
410
- const groups = hooks[event];
411
- if (!Array.isArray(groups))
412
- continue;
413
- for (const group of groups) {
414
- if (!group || !Array.isArray(group.hooks))
415
- continue;
416
- const before = group.hooks.length;
417
- group.hooks = group.hooks.filter((h) => !predicate(h?.command));
418
- if (group.hooks.length !== before)
419
- removedAny = true;
420
- }
421
- }
422
- if (!removedAny)
423
- return { path: file, action: 'unchanged' };
424
- for (const event of Object.keys(hooks)) {
425
- const groups = hooks[event];
426
- if (!Array.isArray(groups))
427
- continue;
428
- hooks[event] = groups.filter((g) => !(g && Array.isArray(g.hooks) && g.hooks.length === 0));
429
- if (hooks[event].length === 0)
430
- delete hooks[event];
431
- }
432
- if (Object.keys(hooks).length === 0)
433
- delete settings.hooks;
434
- (0, shared_1.writeJsonFile)(file, settings);
435
- return { path: file, action: 'removed' };
436
- }
437
- /**
438
- * Remove stale **pre-0.8** specship auto-sync hooks
439
- * (`specship mark-dirty` / `specship sync-if-dirty`) from Claude
440
- * `settings.json`. Safe to call from both `install` (self-heal on
441
- * upgrade) and `uninstall`. Exported so it can be unit-tested directly.
442
- */
443
- function cleanupLegacyHooks(loc) {
444
- return stripHooksMatching(loc, isLegacySpecshipHookCommand);
445
- }
446
- /**
447
- * Remove the current-release auto-sync hooks (`specship sync --quiet`)
448
- * written by `writeHooksEntry`. Uninstall-only — install would
449
- * destroy its own write if this ran there.
450
- */
451
- function cleanupCurrentHooks(loc) {
452
- return stripHooksMatching(loc, isCurrentSpecshipHookCommand);
453
- }
454
- function writePermissionsEntry(loc) {
455
- const file = settingsJsonPath(loc);
456
- const settings = (0, shared_1.readJsonFile)(file);
457
- const created = !fs.existsSync(file);
458
- if (!settings.permissions)
459
- settings.permissions = {};
460
- if (!Array.isArray(settings.permissions.allow))
461
- settings.permissions.allow = [];
462
- const want = (0, shared_1.getSpecShipPermissions)();
463
- const before = [...settings.permissions.allow];
464
- for (const perm of want) {
465
- if (!settings.permissions.allow.includes(perm)) {
466
- settings.permissions.allow.push(perm);
467
- }
468
- }
469
- if ((0, shared_1.jsonDeepEqual)(before, settings.permissions.allow) && !created) {
470
- return { path: file, action: 'unchanged' };
471
- }
472
- (0, shared_1.writeJsonFile)(file, settings);
473
- return { path: file, action: created ? 'created' : 'updated' };
474
- }
475
- /**
476
- * Strip the marker-delimited SpecShip block from CLAUDE.md if a prior
477
- * install wrote one. Specship no longer maintains an instructions file
478
- * (issue #529) — the MCP server's `initialize` instructions are the
479
- * single source of truth — so both install (self-heal on upgrade) and
480
- * uninstall call this. `removeMarkedSection` returns `not-found`/`kept`
481
- * when there's nothing to strip; the install caller drops those from
482
- * the report so a fresh install stays quiet.
483
- */
484
- function removeInstructionsEntry(loc) {
485
- const file = instructionsPath(loc);
486
- const action = (0, shared_1.removeMarkedSection)(file, instructions_template_1.SPECSHIP_SECTION_START, instructions_template_1.SPECSHIP_SECTION_END);
487
- return { path: file, action };
488
- }
489
- /**
490
- * Write specship's auto-sync hooks into Claude `settings.json`. Merges
491
- * idempotently into any user-defined hooks: a matcher group sharing our
492
- * exact matcher string is reused; sibling matchers / events / events are
493
- * untouched. Returns `unchanged` when our two hook commands are already
494
- * present byte-for-byte in the right places.
495
- *
496
- * Gated by `install()` on `autoAllow` — same posture as the permissions
497
- * list. The matching uninstall lives in `cleanupLegacyHooks` (whose
498
- * matcher predicate covers BOTH the new `specship sync --quiet` form
499
- * and the legacy `specship mark-dirty`/`sync-if-dirty` forms).
500
- */
501
- function writeHooksEntry(loc) {
502
- const file = settingsJsonPath(loc);
503
- const created = !fs.existsSync(file);
504
- const settings = (0, shared_1.readJsonFile)(file);
505
- const beforeJson = JSON.stringify(settings);
506
- if (!settings.hooks || typeof settings.hooks !== 'object' || Array.isArray(settings.hooks)) {
507
- settings.hooks = {};
508
- }
509
- for (const { event, matcher, hook } of SPECSHIP_HOOKS) {
510
- if (!Array.isArray(settings.hooks[event]))
511
- settings.hooks[event] = [];
512
- let group = settings.hooks[event].find((g) => g && g.matcher === matcher);
513
- if (!group) {
514
- group = { matcher, hooks: [] };
515
- settings.hooks[event].push(group);
516
- }
517
- if (!Array.isArray(group.hooks))
518
- group.hooks = [];
519
- // Idempotent: skip if a command-equal entry is already there.
520
- if (!group.hooks.some((h) => h && h.command === hook.command)) {
521
- group.hooks.push({ ...hook });
522
- }
523
- }
524
- const afterJson = JSON.stringify(settings);
525
- if (beforeJson === afterJson && !created) {
526
- return { path: file, action: 'unchanged' };
527
- }
528
- (0, shared_1.writeJsonFile)(file, settings);
529
- return { path: file, action: created ? 'created' : 'updated' };
530
- }
531
- /**
532
- * Copy our shipped slash commands (commands/cg-*.md) into the user's
533
- * commands dir (~/.claude/commands/ globally, ./.claude/commands/
534
- * locally). Per-file idempotent: a destination with identical bytes is
535
- * reported `unchanged`. Sibling user-written .md files in the same dir
536
- * are never touched.
537
- */
538
- function writeCommandsEntries(loc) {
539
- return SHIPPED_COMMANDS.map((name) => copyAsset(packageAssetPath('commands', name), path.join(commandsDir(loc), name)));
540
- }
541
- /**
542
- * Copy our shipped subagent (agents/specship-explorer.md) into the
543
- * user's agents dir. Same idempotency contract as writeCommandsEntries.
544
- */
545
- function writeAgentsEntries(loc) {
546
- return SHIPPED_AGENTS.map((name) => copyAsset(packageAssetPath('agents', name), path.join(agentsDir(loc), name)));
547
- }
548
- /**
549
- * Inverse of writeCommandsEntries: delete each cg-*.md we shipped, if
550
- * present. A file the user replaced with their own content is still
551
- * removed — match the existing uninstall posture for files specship
552
- * owns (the user can re-add their version after).
553
- */
554
- function removeCommandsEntries(loc) {
555
- return SHIPPED_COMMANDS.map((name) => removeFile(path.join(commandsDir(loc), name)));
556
- }
557
- /** Inverse of writeAgentsEntries. */
558
- function removeAgentsEntries(loc) {
559
- return SHIPPED_AGENTS.map((name) => removeFile(path.join(agentsDir(loc), name)));
560
- }
561
- function copyAsset(src, dest) {
562
- const body = fs.readFileSync(src, 'utf-8');
563
- if (fs.existsSync(dest)) {
564
- const existing = fs.readFileSync(dest, 'utf-8');
565
- if (existing === body)
566
- return { path: dest, action: 'unchanged' };
567
- fs.mkdirSync(path.dirname(dest), { recursive: true });
568
- fs.writeFileSync(dest, body);
569
- return { path: dest, action: 'updated' };
570
- }
571
- fs.mkdirSync(path.dirname(dest), { recursive: true });
572
- fs.writeFileSync(dest, body);
573
- return { path: dest, action: 'created' };
574
- }
575
- function removeFile(p) {
576
- if (!fs.existsSync(p))
577
- return { path: p, action: 'not-found' };
578
- fs.unlinkSync(p);
579
- return { path: p, action: 'removed' };
580
- }
581
- exports.claudeTarget = new ClaudeCodeTarget();
582
- //# sourceMappingURL=claude.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"claude.js","sourceRoot":"","sources":["../../../src/installer/targets/claude.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiRH,sCAsBC;AAsHD,gDAEC;AAOD,kDAEC;AAED,sDAoBC;AAWD,0DAIC;AAcD,0CA+BC;AASD,oDAEC;AAMD,gDAEC;AAQD,sDAEC;AAGD,kDAEC;AA1hBD,uCAAyB;AACzB,2CAA6B;AAC7B,uCAAyB;AAQzB,qCAOkB;AAClB,oEAGkC;AAElC,SAAS,SAAS,CAAC,GAAa;IAC9B,OAAO,GAAG,KAAK,QAAQ;QACrB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC;QACpC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,CAAC,CAAC;AAC1C,CAAC;AACD,SAAS,WAAW,CAAC,GAAa;IAChC,kEAAkE;IAClE,kEAAkE;IAClE,kEAAkE;IAClE,OAAO,GAAG,KAAK,QAAQ;QACrB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,cAAc,CAAC;QACzC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OA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CAAC,aAAa,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC7B,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAC3C,CAAC;AAED,SAAS,UAAU,CAAC,CAAS;IAC3B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;IAC/D,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACjB,OAAO,EAAE,IAAI,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AACxC,CAAC;AAEY,QAAA,YAAY,GAAgB,IAAI,gBAAgB,EAAE,CAAC"}
@@ -1,19 +0,0 @@
1
- /**
2
- * Registry of supported agent targets.
3
- *
4
- * Currently Claude-only. The interface is preserved so re-adding another
5
- * agent is one new file in `targets/` plus one entry below.
6
- */
7
- import { AgentTarget, Location, TargetId } from './types';
8
- export declare const ALL_TARGETS: readonly AgentTarget[];
9
- export declare function getTarget(id: string): AgentTarget | undefined;
10
- export declare function listTargetIds(): TargetId[];
11
- /**
12
- * Run `detect()` for every target at the given location. Returns the
13
- * registry zipped with detection results.
14
- */
15
- export declare function detectAll(loc: Location): Array<{
16
- target: AgentTarget;
17
- detection: ReturnType<AgentTarget['detect']>;
18
- }>;
19
- //# sourceMappingURL=registry.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/installer/targets/registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAG1D,eAAO,MAAM,WAAW,EAAE,SAAS,WAAW,EAAkC,CAAC;AAEjF,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAE7D;AAED,wBAAgB,aAAa,IAAI,QAAQ,EAAE,CAE1C;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC9C,MAAM,EAAE,WAAW,CAAC;IACpB,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;CAC9C,CAAC,CAKD"}
@@ -1,31 +0,0 @@
1
- "use strict";
2
- /**
3
- * Registry of supported agent targets.
4
- *
5
- * Currently Claude-only. The interface is preserved so re-adding another
6
- * agent is one new file in `targets/` plus one entry below.
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.ALL_TARGETS = void 0;
10
- exports.getTarget = getTarget;
11
- exports.listTargetIds = listTargetIds;
12
- exports.detectAll = detectAll;
13
- const claude_1 = require("./claude");
14
- exports.ALL_TARGETS = Object.freeze([claude_1.claudeTarget]);
15
- function getTarget(id) {
16
- return exports.ALL_TARGETS.find((t) => t.id === id);
17
- }
18
- function listTargetIds() {
19
- return exports.ALL_TARGETS.map((t) => t.id);
20
- }
21
- /**
22
- * Run `detect()` for every target at the given location. Returns the
23
- * registry zipped with detection results.
24
- */
25
- function detectAll(loc) {
26
- return exports.ALL_TARGETS.map((target) => ({
27
- target,
28
- detection: target.detect(loc),
29
- }));
30
- }
31
- //# sourceMappingURL=registry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../../src/installer/targets/registry.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAOH,8BAEC;AAED,sCAEC;AAMD,8BAQC;AAxBD,qCAAwC;AAE3B,QAAA,WAAW,GAA2B,MAAM,CAAC,MAAM,CAAC,CAAC,qBAAY,CAAC,CAAC,CAAC;AAEjF,SAAgB,SAAS,CAAC,EAAU;IAClC,OAAO,mBAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,aAAa;IAC3B,OAAO,mBAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACtC,CAAC;AAED;;;GAGG;AACH,SAAgB,SAAS,CAAC,GAAa;IAIrC,OAAO,mBAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAClC,MAAM;QACN,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC;KAC9B,CAAC,CAAC,CAAC;AACN,CAAC"}