@mytechtoday/augment-extensions 3.1.2 → 3.3.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 (386) hide show
  1. package/AGENTS.md +127 -0
  2. package/README.md +1050 -32
  3. package/augment-extensions/coding-standards/java/CHANGELOG.md +12 -0
  4. package/augment-extensions/coding-standards/java/README.md +54 -0
  5. package/augment-extensions/coding-standards/java/examples/SearchRequest.java +13 -0
  6. package/augment-extensions/coding-standards/java/metadata.json +36 -0
  7. package/augment-extensions/coding-standards/java/module.json +35 -0
  8. package/augment-extensions/coding-standards/java/rules/language-and-api-design.md +45 -0
  9. package/augment-extensions/coding-standards/java/rules/reliability-and-concurrency.md +43 -0
  10. package/augment-extensions/coding-standards/java/rules/testing-tooling-and-security.md +39 -0
  11. package/augment-extensions/coding-standards/q/CHANGELOG.md +16 -0
  12. package/augment-extensions/coding-standards/q/README.md +53 -0
  13. package/augment-extensions/coding-standards/q/examples/ArrayAndTupleNamingConventions.qs +27 -0
  14. package/augment-extensions/coding-standards/q/examples/CallableAliasNamingConventions.qs +20 -0
  15. package/augment-extensions/coding-standards/q/examples/CircuitCompositionNamingConventions.qs +24 -0
  16. package/augment-extensions/coding-standards/q/examples/ConstantValueNamingConventions.qs +19 -0
  17. package/augment-extensions/coding-standards/q/examples/EntryPointAttributeNamingConventions.qs +17 -0
  18. package/augment-extensions/coding-standards/q/examples/FunctorApplicationInControlledCircuits.qs +84 -0
  19. package/augment-extensions/coding-standards/q/examples/FunctorSpecializationNamingConventions.qs +29 -0
  20. package/augment-extensions/coding-standards/q/examples/GenericTypeParameterNamingConventions.qs +20 -0
  21. package/augment-extensions/coding-standards/q/examples/HamiltonianOperatorNamingConventions.qs +24 -0
  22. package/augment-extensions/coding-standards/q/examples/MeasurementResultNamingConventions.qs +48 -0
  23. package/augment-extensions/coding-standards/q/examples/NamespaceNamingConventions.qs +30 -0
  24. package/augment-extensions/coding-standards/q/examples/OperationAndFunctionNamingConventions.qs +31 -0
  25. package/augment-extensions/coding-standards/q/examples/OracleCallableNamingConventions.qs +41 -0
  26. package/augment-extensions/coding-standards/q/examples/PauliBasisNamingConventions.qs +42 -0
  27. package/augment-extensions/coding-standards/q/examples/PauliOperatorNamingConventions.qs +24 -0
  28. package/augment-extensions/coding-standards/q/examples/QubitManagementAndTeleportation.qs +94 -0
  29. package/augment-extensions/coding-standards/q/examples/QubitNamingConventions.qs +53 -0
  30. package/augment-extensions/coding-standards/q/examples/QubitRegisterNamingConventions.qs +30 -0
  31. package/augment-extensions/coding-standards/q/examples/StateVectorNamingConventions.qs +23 -0
  32. package/augment-extensions/coding-standards/q/examples/UserDefinedTypeNamingConventions.qs +22 -0
  33. package/augment-extensions/coding-standards/q/examples/VariableAndParameterNamingConventions.qs +26 -0
  34. package/augment-extensions/coding-standards/q/examples/bell-state.qs +21 -0
  35. package/augment-extensions/coding-standards/q/metadata.json +38 -0
  36. package/augment-extensions/coding-standards/q/module.json +29 -0
  37. package/augment-extensions/coding-standards/q/rules/q-error-handling.md +143 -0
  38. package/augment-extensions/coding-standards/q/rules/q-naming-conventions.md +82 -0
  39. package/augment-extensions/coding-standards/q/rules/q-performance-optimization.md +10 -0
  40. package/augment-extensions/coding-standards/q/rules/q-qubit-management.md +10 -0
  41. package/augment-extensions/coding-standards/q/rules/q-security.md +10 -0
  42. package/augment-extensions/coding-standards/q/rules/q-standards.md +127 -0
  43. package/augment-extensions/coding-standards/q/rules/q-testing.md +10 -0
  44. package/augment-extensions/coding-standards/spring/CHANGELOG.md +12 -0
  45. package/augment-extensions/coding-standards/spring/README.md +61 -0
  46. package/augment-extensions/coding-standards/spring/examples/OrderController.java +40 -0
  47. package/augment-extensions/coding-standards/spring/metadata.json +39 -0
  48. package/augment-extensions/coding-standards/spring/module.json +38 -0
  49. package/augment-extensions/coding-standards/spring/rules/beans-configuration-and-boot.md +39 -0
  50. package/augment-extensions/coding-standards/spring/rules/data-testing-and-transactions.md +36 -0
  51. package/augment-extensions/coding-standards/spring/rules/production-operations.md +40 -0
  52. package/augment-extensions/coding-standards/spring/rules/web-apis-and-security.md +43 -0
  53. package/augment-extensions/visual-design/CHANGELOG.md +2 -2
  54. package/augment-extensions/visual-design/README.md +31 -8
  55. package/augment-extensions/visual-design/VERSION +1 -0
  56. package/augment-extensions/visual-design/__tests__/README.md +32 -18
  57. package/augment-extensions/visual-design/__tests__/guidance-contract.test.ts +355 -0
  58. package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +23 -5
  59. package/augment-extensions/visual-design/domains/other/dotnet-application.ts +1 -1
  60. package/augment-extensions/visual-design/domains/other/mobile-application.ts +3 -4
  61. package/augment-extensions/visual-design/domains/other/os-application.ts +1 -1
  62. package/augment-extensions/visual-design/domains/other/windows-platform.ts +1 -1
  63. package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +4 -4
  64. package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +10 -10
  65. package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +3 -3
  66. package/augment-extensions/visual-design/examples/README.md +2 -0
  67. package/augment-extensions/visual-design/examples/basic-usage.md +5 -3
  68. package/augment-extensions/visual-design/examples/vendor-comparison.md +2 -2
  69. package/augment-extensions/visual-design/guidelines/coverage-map.md +30 -0
  70. package/augment-extensions/visual-design/guidelines/design-levels.md +211 -0
  71. package/augment-extensions/visual-design/guidelines/index.md +5 -0
  72. package/augment-extensions/visual-design/metadata.json +26 -5
  73. package/augment-extensions/visual-design/module.json +39 -6
  74. package/augment-extensions/visual-design/rules/accessibility-and-color.md +51 -0
  75. package/augment-extensions/visual-design/rules/design-practice.md +55 -0
  76. package/augment-extensions/visual-design/rules/index.md +34 -0
  77. package/augment-extensions/visual-design/rules/platform-guidance.md +47 -0
  78. package/augment-extensions/visual-design/scripts/validate-guidance.cjs +233 -0
  79. package/augment-extensions/visual-design/skills/README.md +11 -0
  80. package/augment-extensions/visual-design/skills/design-brief.md +40 -0
  81. package/augment-extensions/visual-design/skills/design-review.md +38 -0
  82. package/augment-extensions/visual-design/skills/responsive-validation/SKILL.md +94 -0
  83. package/augment-extensions/visual-design/skills/responsive-validation/scripts/responsive-sweep.cjs +457 -0
  84. package/augment-extensions/visual-design/style-selector.ts +4 -4
  85. package/augment-extensions/visual-design/types.ts +101 -46
  86. package/augment-extensions/visual-design/visual-design-core.ts +8 -8
  87. package/augment-extensions/workflows/agent-engineering/README.md +67 -0
  88. package/augment-extensions/workflows/agent-engineering/examples/contracts.cjs +89 -0
  89. package/augment-extensions/workflows/agent-engineering/examples/demo.cjs +17 -0
  90. package/augment-extensions/workflows/agent-engineering/examples/evaluation-cases.json +7 -0
  91. package/augment-extensions/workflows/agent-engineering/examples/graphs.cjs +149 -0
  92. package/augment-extensions/workflows/agent-engineering/examples/loop.cjs +125 -0
  93. package/augment-extensions/workflows/agent-engineering/examples/recovery.cjs +51 -0
  94. package/augment-extensions/workflows/agent-engineering/examples/stub.cjs +11 -0
  95. package/augment-extensions/workflows/agent-engineering/examples/verify.cjs +21 -0
  96. package/augment-extensions/workflows/agent-engineering/module.json +24 -0
  97. package/augment-extensions/workflows/agent-engineering/rules/01-adoption.md +30 -0
  98. package/augment-extensions/workflows/agent-engineering/rules/02-agents.md +34 -0
  99. package/augment-extensions/workflows/agent-engineering/rules/03-contracts.md +34 -0
  100. package/augment-extensions/workflows/agent-engineering/rules/04-loops.md +39 -0
  101. package/augment-extensions/workflows/agent-engineering/rules/05-graphs.md +39 -0
  102. package/augment-extensions/workflows/agent-engineering/rules/06-improvement.md +38 -0
  103. package/augment-extensions/workflows/agent-engineering/schemas/contracts.schema.json +1 -0
  104. package/augment-extensions/workflows/agent-engineering/scripts/validate.cjs +32 -0
  105. package/augment-extensions/workflows/agent-engineering/sources.md +12 -0
  106. package/augment-extensions/workflows/agent-engineering/templates/agent.json +40 -0
  107. package/augment-extensions/workflows/agent-engineering/templates/check-tool.json +94 -0
  108. package/augment-extensions/workflows/agent-engineering/templates/evidence.json +29 -0
  109. package/augment-extensions/workflows/agent-engineering/templates/invocation.json +40 -0
  110. package/augment-extensions/workflows/agent-engineering/templates/node.json +27 -0
  111. package/augment-extensions/workflows/agent-engineering/templates/state.json +27 -0
  112. package/augment-extensions/workflows/agent-engineering/templates/task.json +40 -0
  113. package/augment-extensions/workflows/agent-engineering/templates/tool.json +52 -0
  114. package/augment-extensions/workflows/decision-layer/README.md +136 -0
  115. package/augment-extensions/workflows/decision-layer/examples/call-inventory.json +6 -0
  116. package/augment-extensions/workflows/decision-layer/examples/config.json +9 -0
  117. package/augment-extensions/workflows/decision-layer/examples/decision.json +13 -0
  118. package/augment-extensions/workflows/decision-layer/examples/labeled-cases.json +410 -0
  119. package/augment-extensions/workflows/decision-layer/examples/source.txt +3 -0
  120. package/augment-extensions/workflows/decision-layer/examples/task.json +8 -0
  121. package/augment-extensions/workflows/decision-layer/installation/package-lock.json +27 -0
  122. package/augment-extensions/workflows/decision-layer/installation/package.json +7 -0
  123. package/augment-extensions/workflows/decision-layer/installation/sources.json +18 -0
  124. package/augment-extensions/workflows/decision-layer/module.json +24 -0
  125. package/augment-extensions/workflows/decision-layer/rules/00-index.md +5 -0
  126. package/augment-extensions/workflows/decision-layer/rules/01-responsibilities.md +15 -0
  127. package/augment-extensions/workflows/decision-layer/rules/02-operation.md +13 -0
  128. package/augment-extensions/workflows/decision-layer/runtime/cli.cjs +70 -0
  129. package/augment-extensions/workflows/decision-layer/runtime/common.cjs +85 -0
  130. package/augment-extensions/workflows/decision-layer/runtime/contracts.d.ts +8 -0
  131. package/augment-extensions/workflows/decision-layer/runtime/decisions.cjs +198 -0
  132. package/augment-extensions/workflows/decision-layer/runtime/evaluate.cjs +61 -0
  133. package/augment-extensions/workflows/decision-layer/runtime/install.cjs +186 -0
  134. package/augment-extensions/workflows/decision-layer/runtime/integrations.cjs +64 -0
  135. package/augment-extensions/workflows/decision-layer/runtime/runner.cjs +201 -0
  136. package/augment-extensions/workflows/decision-layer/runtime/worker-child.cjs +15 -0
  137. package/augment-extensions/workflows/decision-layer/runtime/workers.cjs +15 -0
  138. package/augment-extensions/workflows/decision-layer/schemas/config.schema.json +27 -0
  139. package/augment-extensions/workflows/decision-layer/scripts/validate.cjs +16 -0
  140. package/augment-extensions/workflows/decision-layer/sources.md +25 -0
  141. package/cli/MODULES.md +804 -302
  142. package/cli/dist/__test_file-tracking.d.ts +2 -0
  143. package/cli/dist/__test_file-tracking.d.ts.map +1 -0
  144. package/cli/dist/__test_file-tracking.js +4 -0
  145. package/cli/dist/__test_file-tracking.js.map +1 -0
  146. package/cli/dist/adapters/banner.d.ts +62 -0
  147. package/cli/dist/adapters/banner.d.ts.map +1 -0
  148. package/cli/dist/adapters/banner.js +105 -0
  149. package/cli/dist/adapters/banner.js.map +1 -0
  150. package/cli/dist/adapters/claude-code.d.ts +13 -0
  151. package/cli/dist/adapters/claude-code.d.ts.map +1 -0
  152. package/cli/dist/adapters/claude-code.js +79 -0
  153. package/cli/dist/adapters/claude-code.js.map +1 -0
  154. package/cli/dist/adapters/copilot.d.ts +17 -0
  155. package/cli/dist/adapters/copilot.d.ts.map +1 -0
  156. package/cli/dist/adapters/copilot.js +81 -0
  157. package/cli/dist/adapters/copilot.js.map +1 -0
  158. package/cli/dist/adapters/cursor.d.ts +16 -0
  159. package/cli/dist/adapters/cursor.d.ts.map +1 -0
  160. package/cli/dist/adapters/cursor.js +99 -0
  161. package/cli/dist/adapters/cursor.js.map +1 -0
  162. package/cli/dist/adapters/index.d.ts +25 -0
  163. package/cli/dist/adapters/index.d.ts.map +1 -0
  164. package/cli/dist/adapters/index.js +59 -0
  165. package/cli/dist/adapters/index.js.map +1 -0
  166. package/cli/dist/adapters/types.d.ts +113 -0
  167. package/cli/dist/adapters/types.d.ts.map +1 -0
  168. package/cli/dist/adapters/types.js +13 -0
  169. package/cli/dist/adapters/types.js.map +1 -0
  170. package/cli/dist/adapters/windsurf.d.ts +14 -0
  171. package/cli/dist/adapters/windsurf.d.ts.map +1 -0
  172. package/cli/dist/adapters/windsurf.js +78 -0
  173. package/cli/dist/adapters/windsurf.js.map +1 -0
  174. package/cli/dist/analysis/ast-parser.d.ts.map +1 -1
  175. package/cli/dist/analysis/ast-parser.js +25 -9
  176. package/cli/dist/analysis/ast-parser.js.map +1 -1
  177. package/cli/dist/analysis/index.d.ts +1 -0
  178. package/cli/dist/analysis/index.d.ts.map +1 -1
  179. package/cli/dist/analysis/index.js +1 -0
  180. package/cli/dist/analysis/index.js.map +1 -1
  181. package/cli/dist/analysis/pattern-analyzer.d.ts +6 -0
  182. package/cli/dist/analysis/pattern-analyzer.d.ts.map +1 -0
  183. package/cli/dist/analysis/pattern-analyzer.js +100 -0
  184. package/cli/dist/analysis/pattern-analyzer.js.map +1 -0
  185. package/cli/dist/cli.js +67 -37
  186. package/cli/dist/cli.js.map +1 -1
  187. package/cli/dist/commands/code-analysis.d.ts.map +1 -1
  188. package/cli/dist/commands/code-analysis.js +22 -2
  189. package/cli/dist/commands/code-analysis.js.map +1 -1
  190. package/cli/dist/commands/decision.d.ts +4 -0
  191. package/cli/dist/commands/decision.d.ts.map +1 -0
  192. package/cli/dist/commands/decision.js +32 -0
  193. package/cli/dist/commands/decision.js.map +1 -0
  194. package/cli/dist/commands/export.d.ts +81 -0
  195. package/cli/dist/commands/export.d.ts.map +1 -0
  196. package/cli/dist/commands/export.js +334 -0
  197. package/cli/dist/commands/export.js.map +1 -0
  198. package/cli/dist/commands/gui-decision.d.ts +6 -0
  199. package/cli/dist/commands/gui-decision.d.ts.map +1 -0
  200. package/cli/dist/commands/gui-decision.js +189 -0
  201. package/cli/dist/commands/gui-decision.js.map +1 -0
  202. package/cli/dist/commands/gui-module-manager.d.ts +14 -0
  203. package/cli/dist/commands/gui-module-manager.d.ts.map +1 -0
  204. package/cli/dist/commands/gui-module-manager.js +326 -0
  205. package/cli/dist/commands/gui-module-manager.js.map +1 -0
  206. package/cli/dist/commands/gui.d.ts +5 -9
  207. package/cli/dist/commands/gui.d.ts.map +1 -1
  208. package/cli/dist/commands/gui.js +186 -231
  209. package/cli/dist/commands/gui.js.map +1 -1
  210. package/cli/dist/commands/init.d.ts +2 -0
  211. package/cli/dist/commands/init.d.ts.map +1 -1
  212. package/cli/dist/commands/init.js +84 -3
  213. package/cli/dist/commands/init.js.map +1 -1
  214. package/cli/dist/commands/lifecycle.d.ts +14 -0
  215. package/cli/dist/commands/lifecycle.d.ts.map +1 -0
  216. package/cli/dist/commands/lifecycle.js +463 -0
  217. package/cli/dist/commands/lifecycle.js.map +1 -0
  218. package/cli/dist/commands/link.d.ts +5 -0
  219. package/cli/dist/commands/link.d.ts.map +1 -1
  220. package/cli/dist/commands/link.js +137 -29
  221. package/cli/dist/commands/link.js.map +1 -1
  222. package/cli/dist/commands/list.js +2 -2
  223. package/cli/dist/commands/list.js.map +1 -1
  224. package/cli/dist/commands/mcp.d.ts +1 -2
  225. package/cli/dist/commands/mcp.d.ts.map +1 -1
  226. package/cli/dist/commands/mcp.js +20 -20
  227. package/cli/dist/commands/mcp.js.map +1 -1
  228. package/cli/dist/commands/module-management.d.ts +9 -0
  229. package/cli/dist/commands/module-management.d.ts.map +1 -0
  230. package/cli/dist/commands/module-management.js +420 -0
  231. package/cli/dist/commands/module-management.js.map +1 -0
  232. package/cli/dist/commands/search.js +1 -11
  233. package/cli/dist/commands/search.js.map +1 -1
  234. package/cli/dist/commands/self-remove.d.ts.map +1 -1
  235. package/cli/dist/commands/self-remove.js +98 -44
  236. package/cli/dist/commands/self-remove.js.map +1 -1
  237. package/cli/dist/commands/show.d.ts +1 -1
  238. package/cli/dist/commands/show.d.ts.map +1 -1
  239. package/cli/dist/commands/show.js +21 -10
  240. package/cli/dist/commands/show.js.map +1 -1
  241. package/cli/dist/commands/showCompleted.d.ts +1 -0
  242. package/cli/dist/commands/showCompleted.d.ts.map +1 -1
  243. package/cli/dist/commands/showCompleted.js +4 -3
  244. package/cli/dist/commands/showCompleted.js.map +1 -1
  245. package/cli/dist/commands/skill.d.ts +7 -1
  246. package/cli/dist/commands/skill.d.ts.map +1 -1
  247. package/cli/dist/commands/skill.js +79 -21
  248. package/cli/dist/commands/skill.js.map +1 -1
  249. package/cli/dist/commands/unlink.d.ts +2 -0
  250. package/cli/dist/commands/unlink.d.ts.map +1 -1
  251. package/cli/dist/commands/unlink.js +86 -44
  252. package/cli/dist/commands/unlink.js.map +1 -1
  253. package/cli/dist/commands/update.d.ts.map +1 -1
  254. package/cli/dist/commands/update.js +6 -16
  255. package/cli/dist/commands/update.js.map +1 -1
  256. package/cli/dist/commands/upgrade.d.ts +2 -0
  257. package/cli/dist/commands/upgrade.d.ts.map +1 -1
  258. package/cli/dist/commands/upgrade.js +22 -5
  259. package/cli/dist/commands/upgrade.js.map +1 -1
  260. package/cli/dist/commands/use.d.ts.map +1 -1
  261. package/cli/dist/commands/use.js +2 -68
  262. package/cli/dist/commands/use.js.map +1 -1
  263. package/cli/dist/core/compatibility-checker.d.ts +37 -1
  264. package/cli/dist/core/compatibility-checker.d.ts.map +1 -1
  265. package/cli/dist/core/compatibility-checker.js +133 -12
  266. package/cli/dist/core/compatibility-checker.js.map +1 -1
  267. package/cli/dist/gui/state/navigation-state.d.ts +20 -0
  268. package/cli/dist/gui/state/navigation-state.d.ts.map +1 -0
  269. package/cli/dist/gui/state/navigation-state.js +115 -0
  270. package/cli/dist/gui/state/navigation-state.js.map +1 -0
  271. package/cli/dist/gui/state/selection-state.d.ts +21 -0
  272. package/cli/dist/gui/state/selection-state.d.ts.map +1 -0
  273. package/cli/dist/gui/state/selection-state.js +117 -0
  274. package/cli/dist/gui/state/selection-state.js.map +1 -0
  275. package/cli/dist/lib/export-runner.d.ts +76 -0
  276. package/cli/dist/lib/export-runner.d.ts.map +1 -0
  277. package/cli/dist/lib/export-runner.js +111 -0
  278. package/cli/dist/lib/export-runner.js.map +1 -0
  279. package/cli/dist/lib/mcp-detection.d.ts +40 -0
  280. package/cli/dist/lib/mcp-detection.d.ts.map +1 -0
  281. package/cli/dist/lib/mcp-detection.js +167 -0
  282. package/cli/dist/lib/mcp-detection.js.map +1 -0
  283. package/cli/dist/lib/mirror-coordination.d.ts +57 -0
  284. package/cli/dist/lib/mirror-coordination.d.ts.map +1 -0
  285. package/cli/dist/lib/mirror-coordination.js +151 -0
  286. package/cli/dist/lib/mirror-coordination.js.map +1 -0
  287. package/cli/dist/lib/mirror-runner.d.ts +123 -0
  288. package/cli/dist/lib/mirror-runner.d.ts.map +1 -0
  289. package/cli/dist/lib/mirror-runner.js +579 -0
  290. package/cli/dist/lib/mirror-runner.js.map +1 -0
  291. package/cli/dist/lib/module-resolver.d.ts +65 -0
  292. package/cli/dist/lib/module-resolver.d.ts.map +1 -0
  293. package/cli/dist/lib/module-resolver.js +211 -0
  294. package/cli/dist/lib/module-resolver.js.map +1 -0
  295. package/cli/dist/lib/source-hash.d.ts +62 -0
  296. package/cli/dist/lib/source-hash.d.ts.map +1 -0
  297. package/cli/dist/lib/source-hash.js +99 -0
  298. package/cli/dist/lib/source-hash.js.map +1 -0
  299. package/cli/dist/types/coordination-export.d.ts +33 -0
  300. package/cli/dist/types/coordination-export.d.ts.map +1 -0
  301. package/cli/dist/types/coordination-export.js +28 -0
  302. package/cli/dist/types/coordination-export.js.map +1 -0
  303. package/cli/dist/types/gui.d.ts +4 -0
  304. package/cli/dist/types/gui.d.ts.map +1 -1
  305. package/cli/dist/types/lifecycle.d.ts +81 -0
  306. package/cli/dist/types/lifecycle.d.ts.map +1 -0
  307. package/cli/dist/types/lifecycle.js +3 -0
  308. package/cli/dist/types/lifecycle.js.map +1 -0
  309. package/cli/dist/utils/beads-sync.d.ts +4 -0
  310. package/cli/dist/utils/beads-sync.d.ts.map +1 -1
  311. package/cli/dist/utils/beads-sync.js.map +1 -1
  312. package/cli/dist/utils/catalog-sync.d.ts.map +1 -1
  313. package/cli/dist/utils/catalog-sync.js +41 -8
  314. package/cli/dist/utils/catalog-sync.js.map +1 -1
  315. package/cli/dist/utils/coordination-queries.d.ts +3 -0
  316. package/cli/dist/utils/coordination-queries.d.ts.map +1 -1
  317. package/cli/dist/utils/coordination-queries.js +2 -2
  318. package/cli/dist/utils/coordination-queries.js.map +1 -1
  319. package/cli/dist/utils/decision-runner.d.ts +18 -0
  320. package/cli/dist/utils/decision-runner.d.ts.map +1 -0
  321. package/cli/dist/utils/decision-runner.js +114 -0
  322. package/cli/dist/utils/decision-runner.js.map +1 -0
  323. package/cli/dist/utils/extensions-config.d.ts +29 -0
  324. package/cli/dist/utils/extensions-config.d.ts.map +1 -0
  325. package/cli/dist/utils/extensions-config.js +151 -0
  326. package/cli/dist/utils/extensions-config.js.map +1 -0
  327. package/cli/dist/utils/extractCommandHelp.d.ts +2 -2
  328. package/cli/dist/utils/extractCommandHelp.d.ts.map +1 -1
  329. package/cli/dist/utils/extractCommandHelp.js +10 -4
  330. package/cli/dist/utils/extractCommandHelp.js.map +1 -1
  331. package/cli/dist/utils/file-tracking.d.ts +4 -0
  332. package/cli/dist/utils/file-tracking.d.ts.map +1 -1
  333. package/cli/dist/utils/file-tracking.js +5 -5
  334. package/cli/dist/utils/file-tracking.js.map +1 -1
  335. package/cli/dist/utils/glob-match.d.ts +6 -0
  336. package/cli/dist/utils/glob-match.d.ts.map +1 -0
  337. package/cli/dist/utils/glob-match.js +8 -0
  338. package/cli/dist/utils/glob-match.js.map +1 -0
  339. package/cli/dist/utils/gui-helpers.d.ts.map +1 -1
  340. package/cli/dist/utils/gui-helpers.js +7 -3
  341. package/cli/dist/utils/gui-helpers.js.map +1 -1
  342. package/cli/dist/utils/inspection-cache.d.ts +8 -0
  343. package/cli/dist/utils/inspection-cache.d.ts.map +1 -1
  344. package/cli/dist/utils/inspection-cache.js +12 -0
  345. package/cli/dist/utils/inspection-cache.js.map +1 -1
  346. package/cli/dist/utils/inspection-handlers.d.ts.map +1 -1
  347. package/cli/dist/utils/inspection-handlers.js +230 -52
  348. package/cli/dist/utils/inspection-handlers.js.map +1 -1
  349. package/cli/dist/utils/install-rules.d.ts +15 -0
  350. package/cli/dist/utils/install-rules.d.ts.map +1 -1
  351. package/cli/dist/utils/install-rules.js +247 -0
  352. package/cli/dist/utils/install-rules.js.map +1 -1
  353. package/cli/dist/utils/interactive-prompt.d.ts +7 -0
  354. package/cli/dist/utils/interactive-prompt.d.ts.map +1 -0
  355. package/cli/dist/utils/interactive-prompt.js +41 -0
  356. package/cli/dist/utils/interactive-prompt.js.map +1 -0
  357. package/cli/dist/utils/lifecycle.d.ts +47 -0
  358. package/cli/dist/utils/lifecycle.d.ts.map +1 -0
  359. package/cli/dist/utils/lifecycle.js +841 -0
  360. package/cli/dist/utils/lifecycle.js.map +1 -0
  361. package/cli/dist/utils/mcp-integration.d.ts +24 -3
  362. package/cli/dist/utils/mcp-integration.d.ts.map +1 -1
  363. package/cli/dist/utils/mcp-integration.js +364 -151
  364. package/cli/dist/utils/mcp-integration.js.map +1 -1
  365. package/cli/dist/utils/module-system.d.ts +7 -0
  366. package/cli/dist/utils/module-system.d.ts.map +1 -1
  367. package/cli/dist/utils/module-system.js +137 -42
  368. package/cli/dist/utils/module-system.js.map +1 -1
  369. package/cli/dist/utils/modules-catalog.d.ts.map +1 -1
  370. package/cli/dist/utils/modules-catalog.js +5 -0
  371. package/cli/dist/utils/modules-catalog.js.map +1 -1
  372. package/cli/dist/utils/openspec-sync.d.ts +4 -0
  373. package/cli/dist/utils/openspec-sync.d.ts.map +1 -1
  374. package/cli/dist/utils/openspec-sync.js.map +1 -1
  375. package/cli/dist/utils/plugin-system.js +1 -1
  376. package/cli/dist/utils/plugin-system.js.map +1 -1
  377. package/cli/dist/utils/skill-system.d.ts +11 -0
  378. package/cli/dist/utils/skill-system.d.ts.map +1 -1
  379. package/cli/dist/utils/skill-system.js +101 -3
  380. package/cli/dist/utils/skill-system.js.map +1 -1
  381. package/cli/dist/utils/zip-archive.d.ts +25 -0
  382. package/cli/dist/utils/zip-archive.d.ts.map +1 -0
  383. package/cli/dist/utils/zip-archive.js +287 -0
  384. package/cli/dist/utils/zip-archive.js.map +1 -0
  385. package/modules.md +89 -6
  386. package/package.json +150 -135
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=__test_file-tracking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"__test_file-tracking.d.ts","sourceRoot":"","sources":["../src/__test_file-tracking.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ console.log('ok file-tracking');
4
+ //# sourceMappingURL=__test_file-tracking.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"__test_file-tracking.js","sourceRoot":"","sources":["../src/__test_file-tracking.ts"],"names":[],"mappings":";;AACA,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Shared banner + module-body rendering helpers for the per-tool adapters.
3
+ *
4
+ * The banner format is identical across Claude Code, Cursor, Windsurf, and
5
+ * Copilot so it lives in one place to keep adapter output deterministic and
6
+ * spec-compliant.
7
+ *
8
+ * See: openspec/specs/cross-platform/export-command.md (Output Structure)
9
+ */
10
+ import type { ExportMeta, ResolvedModule } from './types';
11
+ /** Line ending for every adapter, regardless of host OS. */
12
+ export declare const LF = "\n";
13
+ /**
14
+ * Render the standard banner. Five HTML comment lines per the spec, joined
15
+ * with LF and terminated with LF. Does NOT include the MCP snippet.
16
+ */
17
+ export declare function renderBanner(meta: ExportMeta): string;
18
+ /**
19
+ * Render the banner followed by the optional MCP snippet body when present.
20
+ * Returns just the header region; no trailing `---` separator or module
21
+ * heading. The runner is responsible for emitting inter-section separators.
22
+ */
23
+ export declare function renderHeaderRegion(meta: ExportMeta): string;
24
+ /**
25
+ * Standard footer line shared across all single-file aggregator outputs.
26
+ */
27
+ export declare function renderStandardFooter(): string;
28
+ /**
29
+ * Render the concatenated body for a module's rule files.
30
+ *
31
+ * - Files are emitted in the order supplied (resolver guarantees alphabetical
32
+ * `relativePath`).
33
+ * - Each file's content is preceded by a small HTML-comment marker recording
34
+ * its relative path. The marker is unobtrusive in rendered Markdown and
35
+ * preserves traceability without altering visible content.
36
+ * - Files are separated by a single blank line.
37
+ *
38
+ * Empty modules (no rule files) produce a placeholder note so the structure
39
+ * is still well-formed and auditable.
40
+ */
41
+ export declare function renderModuleBody(module: ResolvedModule): string;
42
+ /**
43
+ * Normalize a body string for inclusion in the aggregator:
44
+ *
45
+ * - Convert CRLF / CR to LF.
46
+ * - Trim trailing whitespace on the final line.
47
+ * - Guarantee a single trailing LF.
48
+ *
49
+ * Exported for tests; adapters delegate normalization to this function so
50
+ * every output ends in exactly one newline.
51
+ */
52
+ export declare function normalizeBody(text: string): string;
53
+ /**
54
+ * Section heading for a module, emitted by the runner between separator
55
+ * lines. Exported here so all adapters use the same heading shape.
56
+ */
57
+ export declare function renderModuleHeading(module: ResolvedModule): string;
58
+ /**
59
+ * Standard inter-section separator (`---`) terminated with LF.
60
+ */
61
+ export declare const SECTION_SEPARATOR: string;
62
+ //# sourceMappingURL=banner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../../src/adapters/banner.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE1D,4DAA4D;AAC5D,eAAO,MAAM,EAAE,OAAO,CAAC;AAEvB;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAUrD;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,GAAG,MAAM,CAO3D;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAK7C;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAS/D;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIlD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAElE;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,QAAa,CAAC"}
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ /**
3
+ * Shared banner + module-body rendering helpers for the per-tool adapters.
4
+ *
5
+ * The banner format is identical across Claude Code, Cursor, Windsurf, and
6
+ * Copilot so it lives in one place to keep adapter output deterministic and
7
+ * spec-compliant.
8
+ *
9
+ * See: openspec/specs/cross-platform/export-command.md (Output Structure)
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SECTION_SEPARATOR = exports.LF = void 0;
13
+ exports.renderBanner = renderBanner;
14
+ exports.renderHeaderRegion = renderHeaderRegion;
15
+ exports.renderStandardFooter = renderStandardFooter;
16
+ exports.renderModuleBody = renderModuleBody;
17
+ exports.normalizeBody = normalizeBody;
18
+ exports.renderModuleHeading = renderModuleHeading;
19
+ /** Line ending for every adapter, regardless of host OS. */
20
+ exports.LF = '\n';
21
+ /**
22
+ * Render the standard banner. Five HTML comment lines per the spec, joined
23
+ * with LF and terminated with LF. Does NOT include the MCP snippet.
24
+ */
25
+ function renderBanner(meta) {
26
+ const modulesList = meta.modules.map((m) => `${m.id}@${m.version}`).join(', ');
27
+ const lines = [
28
+ '<!-- GENERATED BY augx export - DO NOT EDIT -->',
29
+ `<!-- augx-version: ${meta.augxVersion} -->`,
30
+ `<!-- generated-at: ${meta.generatedAt} -->`,
31
+ `<!-- source-hash: ${meta.sourceHash} -->`,
32
+ `<!-- modules: ${modulesList} -->`,
33
+ ];
34
+ return lines.join(exports.LF) + exports.LF;
35
+ }
36
+ /**
37
+ * Render the banner followed by the optional MCP snippet body when present.
38
+ * Returns just the header region; no trailing `---` separator or module
39
+ * heading. The runner is responsible for emitting inter-section separators.
40
+ */
41
+ function renderHeaderRegion(meta) {
42
+ const banner = renderBanner(meta);
43
+ if (!meta.mcpSnippet) {
44
+ return banner;
45
+ }
46
+ // Blank line between banner and MCP snippet body.
47
+ return banner + exports.LF + normalizeBody(meta.mcpSnippet);
48
+ }
49
+ /**
50
+ * Standard footer line shared across all single-file aggregator outputs.
51
+ */
52
+ function renderStandardFooter() {
53
+ return ('<!-- End of augx-generated content. Canonical modules: augment-extensions/modules/ -->' +
54
+ exports.LF);
55
+ }
56
+ /**
57
+ * Render the concatenated body for a module's rule files.
58
+ *
59
+ * - Files are emitted in the order supplied (resolver guarantees alphabetical
60
+ * `relativePath`).
61
+ * - Each file's content is preceded by a small HTML-comment marker recording
62
+ * its relative path. The marker is unobtrusive in rendered Markdown and
63
+ * preserves traceability without altering visible content.
64
+ * - Files are separated by a single blank line.
65
+ *
66
+ * Empty modules (no rule files) produce a placeholder note so the structure
67
+ * is still well-formed and auditable.
68
+ */
69
+ function renderModuleBody(module) {
70
+ if (module.rulesFiles.length === 0) {
71
+ return `<!-- module ${module.id} has no rule files -->` + exports.LF;
72
+ }
73
+ const blocks = module.rulesFiles.map((file) => {
74
+ const marker = `<!-- file: ${file.relativePath} -->`;
75
+ return marker + exports.LF + normalizeBody(file.content);
76
+ });
77
+ return blocks.join(exports.LF);
78
+ }
79
+ /**
80
+ * Normalize a body string for inclusion in the aggregator:
81
+ *
82
+ * - Convert CRLF / CR to LF.
83
+ * - Trim trailing whitespace on the final line.
84
+ * - Guarantee a single trailing LF.
85
+ *
86
+ * Exported for tests; adapters delegate normalization to this function so
87
+ * every output ends in exactly one newline.
88
+ */
89
+ function normalizeBody(text) {
90
+ const lf = text.replace(/\r\n?/g, exports.LF);
91
+ const trimmed = lf.replace(/[ \t]+\n/g, '\n').replace(/\s+$/g, '');
92
+ return trimmed + exports.LF;
93
+ }
94
+ /**
95
+ * Section heading for a module, emitted by the runner between separator
96
+ * lines. Exported here so all adapters use the same heading shape.
97
+ */
98
+ function renderModuleHeading(module) {
99
+ return `## Module: ${module.id} (v${module.version})` + exports.LF;
100
+ }
101
+ /**
102
+ * Standard inter-section separator (`---`) terminated with LF.
103
+ */
104
+ exports.SECTION_SEPARATOR = '---' + exports.LF;
105
+ //# sourceMappingURL=banner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banner.js","sourceRoot":"","sources":["../../src/adapters/banner.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAWH,oCAUC;AAOD,gDAOC;AAKD,oDAKC;AAeD,4CASC;AAYD,sCAIC;AAMD,kDAEC;AAzFD,4DAA4D;AAC/C,QAAA,EAAE,GAAG,IAAI,CAAC;AAEvB;;;GAGG;AACH,SAAgB,YAAY,CAAC,IAAgB;IAC3C,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/E,MAAM,KAAK,GAAG;QACZ,iDAAiD;QACjD,sBAAsB,IAAI,CAAC,WAAW,MAAM;QAC5C,sBAAsB,IAAI,CAAC,WAAW,MAAM;QAC5C,qBAAqB,IAAI,CAAC,UAAU,MAAM;QAC1C,iBAAiB,WAAW,MAAM;KACnC,CAAC;IACF,OAAO,KAAK,CAAC,IAAI,CAAC,UAAE,CAAC,GAAG,UAAE,CAAC;AAC7B,CAAC;AAED;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,IAAgB;IACjD,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAClC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;QACrB,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,kDAAkD;IAClD,OAAO,MAAM,GAAG,UAAE,GAAG,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;AACtD,CAAC;AAED;;GAEG;AACH,SAAgB,oBAAoB;IAClC,OAAO,CACL,wFAAwF;QACxF,UAAE,CACH,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,gBAAgB,CAAC,MAAsB;IACrD,IAAI,MAAM,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACnC,OAAO,eAAe,MAAM,CAAC,EAAE,wBAAwB,GAAG,UAAE,CAAC;IAC/D,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAC5C,MAAM,MAAM,GAAG,cAAc,IAAI,CAAC,YAAY,MAAM,CAAC;QACrD,OAAO,MAAM,GAAG,UAAE,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,IAAI,CAAC,UAAE,CAAC,CAAC;AACzB,CAAC;AAED;;;;;;;;;GASG;AACH,SAAgB,aAAa,CAAC,IAAY;IACxC,MAAM,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAE,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;IACnE,OAAO,OAAO,GAAG,UAAE,CAAC;AACtB,CAAC;AAED;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,MAAsB;IACxD,OAAO,cAAc,MAAM,CAAC,EAAE,MAAM,MAAM,CAAC,OAAO,GAAG,GAAG,UAAE,CAAC;AAC7D,CAAC;AAED;;GAEG;AACU,QAAA,iBAAiB,GAAG,KAAK,GAAG,UAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Claude Code adapter.
3
+ *
4
+ * Aggregator output: `CLAUDE.md` at the project root.
5
+ * Mirror destination: `.claude/rules/<module>/` (directory; the runner
6
+ * preserves the module's source directory layout file-for-file).
7
+ *
8
+ * See: openspec/specs/cross-platform/export-command.md
9
+ * See: openspec/specs/cross-platform/mirror-hook.md
10
+ */
11
+ import type { ToolAdapter } from './types';
12
+ export declare const claudeCodeAdapter: ToolAdapter;
13
+ //# sourceMappingURL=claude-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude-code.d.ts","sourceRoot":"","sources":["../../src/adapters/claude-code.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAIV,WAAW,EACZ,MAAM,SAAS,CAAC;AAgBjB,eAAO,MAAM,iBAAiB,EAAE,WA0B/B,CAAC"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ /**
3
+ * Claude Code adapter.
4
+ *
5
+ * Aggregator output: `CLAUDE.md` at the project root.
6
+ * Mirror destination: `.claude/rules/<module>/` (directory; the runner
7
+ * preserves the module's source directory layout file-for-file).
8
+ *
9
+ * See: openspec/specs/cross-platform/export-command.md
10
+ * See: openspec/specs/cross-platform/mirror-hook.md
11
+ */
12
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ var desc = Object.getOwnPropertyDescriptor(m, k);
15
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
16
+ desc = { enumerable: true, get: function() { return m[k]; } };
17
+ }
18
+ Object.defineProperty(o, k2, desc);
19
+ }) : (function(o, m, k, k2) {
20
+ if (k2 === undefined) k2 = k;
21
+ o[k2] = m[k];
22
+ }));
23
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
24
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
25
+ }) : function(o, v) {
26
+ o["default"] = v;
27
+ });
28
+ var __importStar = (this && this.__importStar) || (function () {
29
+ var ownKeys = function(o) {
30
+ ownKeys = Object.getOwnPropertyNames || function (o) {
31
+ var ar = [];
32
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
33
+ return ar;
34
+ };
35
+ return ownKeys(o);
36
+ };
37
+ return function (mod) {
38
+ if (mod && mod.__esModule) return mod;
39
+ var result = {};
40
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
41
+ __setModuleDefault(result, mod);
42
+ return result;
43
+ };
44
+ })();
45
+ Object.defineProperty(exports, "__esModule", { value: true });
46
+ exports.claudeCodeAdapter = void 0;
47
+ const path = __importStar(require("path"));
48
+ const banner_1 = require("./banner");
49
+ /**
50
+ * Convert a canonical module id to a single path segment safe for filesystem
51
+ * and content use. Slashes become dashes so nested ids like
52
+ * `coding-standards/typescript` collapse to `coding-standards-typescript`.
53
+ */
54
+ function moduleIdToSegment(moduleId) {
55
+ return moduleId.replace(/\//g, '-');
56
+ }
57
+ exports.claudeCodeAdapter = {
58
+ id: 'claude-code',
59
+ exportPaths(projectRoot) {
60
+ return {
61
+ single: path.join(projectRoot, 'CLAUDE.md'),
62
+ };
63
+ },
64
+ mirrorPath(projectRoot, moduleId) {
65
+ // Directory destination; the runner walks `module.rulesFiles` to
66
+ // materialize individual files beneath this path.
67
+ return path.join(projectRoot, '.claude', 'rules', moduleIdToSegment(moduleId));
68
+ },
69
+ renderModule(module) {
70
+ return (0, banner_1.renderModuleBody)(module);
71
+ },
72
+ renderHeader(meta) {
73
+ return (0, banner_1.renderHeaderRegion)(meta);
74
+ },
75
+ renderFooter(_meta) {
76
+ return (0, banner_1.renderStandardFooter)();
77
+ },
78
+ };
79
+ //# sourceMappingURL=claude-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claude-code.js","sourceRoot":"","sources":["../../src/adapters/claude-code.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA6B;AAO7B,qCAIkB;AAElB;;;;GAIG;AACH,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACtC,CAAC;AAEY,QAAA,iBAAiB,GAAgB;IAC5C,EAAE,EAAE,aAAa;IAEjB,WAAW,CAAC,WAAmB;QAC7B,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC;SAC5C,CAAC;IACJ,CAAC;IAED,UAAU,CAAC,WAAmB,EAAE,QAAgB;QAC9C,iEAAiE;QACjE,kDAAkD;QAClD,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjF,CAAC;IAED,YAAY,CAAC,MAAsB;QACjC,OAAO,IAAA,yBAAgB,EAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,YAAY,CAAC,IAAgB;QAC3B,OAAO,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,YAAY,CAAC,KAAiB;QAC5B,OAAO,IAAA,6BAAoB,GAAE,CAAC;IAChC,CAAC;CACF,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * GitHub Copilot adapter.
3
+ *
4
+ * Aggregator output: `.github/copilot-instructions.md` at the project root.
5
+ * Mirror destination: `.github/instructions/augx-<module>.instructions.md`
6
+ * (one file per module).
7
+ *
8
+ * Copilot reads `.github/copilot-instructions.md` directly; no frontmatter
9
+ * is required, so the format mirrors Windsurf but with Copilot-specific
10
+ * paths.
11
+ *
12
+ * See: openspec/specs/cross-platform/export-command.md
13
+ * See: openspec/specs/cross-platform/mirror-hook.md
14
+ */
15
+ import type { ToolAdapter } from './types';
16
+ export declare const copilotAdapter: ToolAdapter;
17
+ //# sourceMappingURL=copilot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copilot.d.ts","sourceRoot":"","sources":["../../src/adapters/copilot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAIV,WAAW,EACZ,MAAM,SAAS,CAAC;AAejB,eAAO,MAAM,cAAc,EAAE,WAyB5B,CAAC"}
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ /**
3
+ * GitHub Copilot adapter.
4
+ *
5
+ * Aggregator output: `.github/copilot-instructions.md` at the project root.
6
+ * Mirror destination: `.github/instructions/augx-<module>.instructions.md`
7
+ * (one file per module).
8
+ *
9
+ * Copilot reads `.github/copilot-instructions.md` directly; no frontmatter
10
+ * is required, so the format mirrors Windsurf but with Copilot-specific
11
+ * paths.
12
+ *
13
+ * See: openspec/specs/cross-platform/export-command.md
14
+ * See: openspec/specs/cross-platform/mirror-hook.md
15
+ */
16
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ var desc = Object.getOwnPropertyDescriptor(m, k);
19
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
20
+ desc = { enumerable: true, get: function() { return m[k]; } };
21
+ }
22
+ Object.defineProperty(o, k2, desc);
23
+ }) : (function(o, m, k, k2) {
24
+ if (k2 === undefined) k2 = k;
25
+ o[k2] = m[k];
26
+ }));
27
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
28
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
29
+ }) : function(o, v) {
30
+ o["default"] = v;
31
+ });
32
+ var __importStar = (this && this.__importStar) || (function () {
33
+ var ownKeys = function(o) {
34
+ ownKeys = Object.getOwnPropertyNames || function (o) {
35
+ var ar = [];
36
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
37
+ return ar;
38
+ };
39
+ return ownKeys(o);
40
+ };
41
+ return function (mod) {
42
+ if (mod && mod.__esModule) return mod;
43
+ var result = {};
44
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
45
+ __setModuleDefault(result, mod);
46
+ return result;
47
+ };
48
+ })();
49
+ Object.defineProperty(exports, "__esModule", { value: true });
50
+ exports.copilotAdapter = void 0;
51
+ const path = __importStar(require("path"));
52
+ const banner_1 = require("./banner");
53
+ /**
54
+ * Convert a canonical module id to a single path segment safe for filesystem
55
+ * use within `.github/instructions/augx-<segment>.instructions.md`.
56
+ */
57
+ function moduleIdToSegment(moduleId) {
58
+ return moduleId.replace(/\//g, '-');
59
+ }
60
+ exports.copilotAdapter = {
61
+ id: 'copilot',
62
+ exportPaths(projectRoot) {
63
+ return {
64
+ single: path.join(projectRoot, '.github', 'copilot-instructions.md'),
65
+ };
66
+ },
67
+ mirrorPath(projectRoot, moduleId) {
68
+ const fileName = `augx-${moduleIdToSegment(moduleId)}.instructions.md`;
69
+ return path.join(projectRoot, '.github', 'instructions', fileName);
70
+ },
71
+ renderModule(module) {
72
+ return (0, banner_1.renderModuleBody)(module);
73
+ },
74
+ renderHeader(meta) {
75
+ return (0, banner_1.renderHeaderRegion)(meta);
76
+ },
77
+ renderFooter(_meta) {
78
+ return (0, banner_1.renderStandardFooter)();
79
+ },
80
+ };
81
+ //# sourceMappingURL=copilot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copilot.js","sourceRoot":"","sources":["../../src/adapters/copilot.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA6B;AAO7B,qCAIkB;AAElB;;;GAGG;AACH,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACtC,CAAC;AAEY,QAAA,cAAc,GAAgB;IACzC,EAAE,EAAE,SAAS;IAEb,WAAW,CAAC,WAAmB;QAC7B,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,yBAAyB,CAAC;SACrE,CAAC;IACJ,CAAC;IAED,UAAU,CAAC,WAAmB,EAAE,QAAgB;QAC9C,MAAM,QAAQ,GAAG,QAAQ,iBAAiB,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QACvE,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,QAAQ,CAAC,CAAC;IACrE,CAAC;IAED,YAAY,CAAC,MAAsB;QACjC,OAAO,IAAA,yBAAgB,EAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED,YAAY,CAAC,IAAgB;QAC3B,OAAO,IAAA,2BAAkB,EAAC,IAAI,CAAC,CAAC;IAClC,CAAC;IAED,YAAY,CAAC,KAAiB;QAC5B,OAAO,IAAA,6BAAoB,GAAE,CAAC;IAChC,CAAC;CACF,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Cursor adapter.
3
+ *
4
+ * Aggregator output: `.cursor/rules/augx.mdc` at the project root.
5
+ * Mirror destination: `.cursor/rules/augx-<module>.mdc` (one file per
6
+ * module).
7
+ *
8
+ * Cursor `.mdc` files require YAML frontmatter; the banner is emitted as
9
+ * HTML comments immediately after the closing `---` of the frontmatter.
10
+ *
11
+ * See: openspec/specs/cross-platform/export-command.md
12
+ * See: openspec/specs/cross-platform/mirror-hook.md
13
+ */
14
+ import type { ToolAdapter } from './types';
15
+ export declare const cursorAdapter: ToolAdapter;
16
+ //# sourceMappingURL=cursor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../src/adapters/cursor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAIV,WAAW,EACZ,MAAM,SAAS,CAAC;AA4BjB,eAAO,MAAM,aAAa,EAAE,WAmC3B,CAAC"}
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ /**
3
+ * Cursor adapter.
4
+ *
5
+ * Aggregator output: `.cursor/rules/augx.mdc` at the project root.
6
+ * Mirror destination: `.cursor/rules/augx-<module>.mdc` (one file per
7
+ * module).
8
+ *
9
+ * Cursor `.mdc` files require YAML frontmatter; the banner is emitted as
10
+ * HTML comments immediately after the closing `---` of the frontmatter.
11
+ *
12
+ * See: openspec/specs/cross-platform/export-command.md
13
+ * See: openspec/specs/cross-platform/mirror-hook.md
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
27
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
28
+ }) : function(o, v) {
29
+ o["default"] = v;
30
+ });
31
+ var __importStar = (this && this.__importStar) || (function () {
32
+ var ownKeys = function(o) {
33
+ ownKeys = Object.getOwnPropertyNames || function (o) {
34
+ var ar = [];
35
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
36
+ return ar;
37
+ };
38
+ return ownKeys(o);
39
+ };
40
+ return function (mod) {
41
+ if (mod && mod.__esModule) return mod;
42
+ var result = {};
43
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
44
+ __setModuleDefault(result, mod);
45
+ return result;
46
+ };
47
+ })();
48
+ Object.defineProperty(exports, "__esModule", { value: true });
49
+ exports.cursorAdapter = void 0;
50
+ const path = __importStar(require("path"));
51
+ const banner_1 = require("./banner");
52
+ /**
53
+ * Canonical Cursor `.mdc` frontmatter for the aggregator output. The block
54
+ * uses `---` delimiters and Cursor's `alwaysApply` flag to ensure the rules
55
+ * load on every editor session.
56
+ */
57
+ const CURSOR_FRONTMATTER = '---' + banner_1.LF +
58
+ "description: Augx aggregated rules" + banner_1.LF +
59
+ 'alwaysApply: true' + banner_1.LF +
60
+ '---' + banner_1.LF;
61
+ /**
62
+ * Convert a canonical module id to a single path segment safe for filesystem
63
+ * use within `.cursor/rules/augx-<segment>.mdc`.
64
+ */
65
+ function moduleIdToSegment(moduleId) {
66
+ return moduleId.replace(/\//g, '-');
67
+ }
68
+ exports.cursorAdapter = {
69
+ id: 'cursor',
70
+ exportPaths(projectRoot) {
71
+ return {
72
+ single: path.join(projectRoot, '.cursor', 'rules', 'augx.mdc'),
73
+ };
74
+ },
75
+ mirrorPath(projectRoot, moduleId) {
76
+ const fileName = `augx-${moduleIdToSegment(moduleId)}.mdc`;
77
+ return path.join(projectRoot, '.cursor', 'rules', fileName);
78
+ },
79
+ renderModule(module) {
80
+ return (0, banner_1.renderModuleBody)(module);
81
+ },
82
+ /**
83
+ * Cursor-specific header: YAML frontmatter precedes the standard banner.
84
+ * MCP snippet (when present) follows the banner, separated by a blank
85
+ * line, matching the layout used by the other adapters.
86
+ */
87
+ renderHeader(meta) {
88
+ const banner = (0, banner_1.renderBanner)(meta);
89
+ const head = CURSOR_FRONTMATTER + banner;
90
+ if (!meta.mcpSnippet) {
91
+ return head;
92
+ }
93
+ return head + banner_1.LF + (0, banner_1.normalizeBody)(meta.mcpSnippet);
94
+ },
95
+ renderFooter(_meta) {
96
+ return (0, banner_1.renderStandardFooter)();
97
+ },
98
+ };
99
+ //# sourceMappingURL=cursor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/adapters/cursor.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,2CAA6B;AAO7B,qCAMkB;AAElB;;;;GAIG;AACH,MAAM,kBAAkB,GACtB,KAAK,GAAG,WAAE;IACV,oCAAoC,GAAG,WAAE;IACzC,mBAAmB,GAAG,WAAE;IACxB,KAAK,GAAG,WAAE,CAAC;AAEb;;;GAGG;AACH,SAAS,iBAAiB,CAAC,QAAgB;IACzC,OAAO,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AACtC,CAAC;AAEY,QAAA,aAAa,GAAgB;IACxC,EAAE,EAAE,QAAQ;IAEZ,WAAW,CAAC,WAAmB;QAC7B,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC;SAC/D,CAAC;IACJ,CAAC;IAED,UAAU,CAAC,WAAmB,EAAE,QAAgB;QAC9C,MAAM,QAAQ,GAAG,QAAQ,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC;QAC3D,OAAO,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAC9D,CAAC;IAED,YAAY,CAAC,MAAsB;QACjC,OAAO,IAAA,yBAAgB,EAAC,MAAM,CAAC,CAAC;IAClC,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,IAAgB;QAC3B,MAAM,MAAM,GAAG,IAAA,qBAAY,EAAC,IAAI,CAAC,CAAC;QAClC,MAAM,IAAI,GAAG,kBAAkB,GAAG,MAAM,CAAC;QACzC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,IAAI,GAAG,WAAE,GAAG,IAAA,sBAAa,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACpD,CAAC;IAED,YAAY,CAAC,KAAiB;QAC5B,OAAO,IAAA,6BAAoB,GAAE,CAAC;IAChC,CAAC;CACF,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Adapter registry.
3
+ *
4
+ * Maps a `MirrorTool` id to its concrete `ToolAdapter` and exposes helpers
5
+ * for resolving `--target` values, including the special `all` keyword.
6
+ */
7
+ import type { MirrorTool } from '../types/coordination-export';
8
+ import type { ToolAdapter } from './types';
9
+ import { claudeCodeAdapter } from './claude-code';
10
+ import { cursorAdapter } from './cursor';
11
+ import { windsurfAdapter } from './windsurf';
12
+ import { copilotAdapter } from './copilot';
13
+ /** All adapters indexed by `MirrorTool` id. */
14
+ export declare const ADAPTERS: Readonly<Record<MirrorTool, ToolAdapter>>;
15
+ /** Ordered list of every adapter, alphabetical by id for deterministic loops. */
16
+ export declare function allAdapters(): ToolAdapter[];
17
+ /**
18
+ * Resolve a user-supplied `--target` value into the concrete adapter list.
19
+ * Accepts a single tool id, a comma-separated list, or the keyword `all`.
20
+ *
21
+ * @throws if any token is not a valid tool id (caller maps this to exit 1).
22
+ */
23
+ export declare function resolveTargets(rawTarget: string): ToolAdapter[];
24
+ export { claudeCodeAdapter, cursorAdapter, windsurfAdapter, copilotAdapter };
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,+CAA+C;AAC/C,eAAO,MAAM,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,CAK7D,CAAC;AAEH,iFAAiF;AACjF,wBAAgB,WAAW,IAAI,WAAW,EAAE,CAE3C;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,EAAE,CAsB/D;AAED,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * Adapter registry.
4
+ *
5
+ * Maps a `MirrorTool` id to its concrete `ToolAdapter` and exposes helpers
6
+ * for resolving `--target` values, including the special `all` keyword.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.copilotAdapter = exports.windsurfAdapter = exports.cursorAdapter = exports.claudeCodeAdapter = exports.ADAPTERS = void 0;
10
+ exports.allAdapters = allAdapters;
11
+ exports.resolveTargets = resolveTargets;
12
+ const coordination_export_1 = require("../types/coordination-export");
13
+ const claude_code_1 = require("./claude-code");
14
+ Object.defineProperty(exports, "claudeCodeAdapter", { enumerable: true, get: function () { return claude_code_1.claudeCodeAdapter; } });
15
+ const cursor_1 = require("./cursor");
16
+ Object.defineProperty(exports, "cursorAdapter", { enumerable: true, get: function () { return cursor_1.cursorAdapter; } });
17
+ const windsurf_1 = require("./windsurf");
18
+ Object.defineProperty(exports, "windsurfAdapter", { enumerable: true, get: function () { return windsurf_1.windsurfAdapter; } });
19
+ const copilot_1 = require("./copilot");
20
+ Object.defineProperty(exports, "copilotAdapter", { enumerable: true, get: function () { return copilot_1.copilotAdapter; } });
21
+ /** All adapters indexed by `MirrorTool` id. */
22
+ exports.ADAPTERS = Object.freeze({
23
+ 'claude-code': claude_code_1.claudeCodeAdapter,
24
+ cursor: cursor_1.cursorAdapter,
25
+ windsurf: windsurf_1.windsurfAdapter,
26
+ copilot: copilot_1.copilotAdapter,
27
+ });
28
+ /** Ordered list of every adapter, alphabetical by id for deterministic loops. */
29
+ function allAdapters() {
30
+ return [...coordination_export_1.MIRROR_TOOLS].sort().map((id) => exports.ADAPTERS[id]);
31
+ }
32
+ /**
33
+ * Resolve a user-supplied `--target` value into the concrete adapter list.
34
+ * Accepts a single tool id, a comma-separated list, or the keyword `all`.
35
+ *
36
+ * @throws if any token is not a valid tool id (caller maps this to exit 1).
37
+ */
38
+ function resolveTargets(rawTarget) {
39
+ const trimmed = rawTarget.trim();
40
+ if (trimmed.length === 0) {
41
+ throw new Error('Empty --target value.');
42
+ }
43
+ if (trimmed === 'all') {
44
+ return allAdapters();
45
+ }
46
+ const tokens = trimmed
47
+ .split(',')
48
+ .map((t) => t.trim())
49
+ .filter((t) => t.length > 0);
50
+ const adapters = [];
51
+ for (const token of tokens) {
52
+ if (!(0, coordination_export_1.isMirrorTool)(token)) {
53
+ throw new Error(`Unknown --target value: ${token}. Valid: ${coordination_export_1.MIRROR_TOOLS.join(', ')}, all.`);
54
+ }
55
+ adapters.push(exports.ADAPTERS[token]);
56
+ }
57
+ return adapters;
58
+ }
59
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAmBH,kCAEC;AAQD,wCAsBC;AAhDD,sEAA0E;AAE1E,+CAAkD;AAgDzC,kGAhDA,+BAAiB,OAgDA;AA/C1B,qCAAyC;AA+Cb,8FA/CnB,sBAAa,OA+CmB;AA9CzC,yCAA6C;AA8CF,gGA9ClC,0BAAe,OA8CkC;AA7C1D,uCAA2C;AA6CiB,+FA7CnD,wBAAc,OA6CmD;AA3C1E,+CAA+C;AAClC,QAAA,QAAQ,GAA8C,MAAM,CAAC,MAAM,CAAC;IAC/E,aAAa,EAAE,+BAAiB;IAChC,MAAM,EAAE,sBAAa;IACrB,QAAQ,EAAE,0BAAe;IACzB,OAAO,EAAE,wBAAc;CACxB,CAAC,CAAC;AAEH,iFAAiF;AACjF,SAAgB,WAAW;IACzB,OAAO,CAAC,GAAG,kCAAY,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,gBAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,SAAiB;IAC9C,MAAM,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;IACjC,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC3C,CAAC;IACD,IAAI,OAAO,KAAK,KAAK,EAAE,CAAC;QACtB,OAAO,WAAW,EAAE,CAAC;IACvB,CAAC;IACD,MAAM,MAAM,GAAG,OAAO;SACnB,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;SACpB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC/B,MAAM,QAAQ,GAAkB,EAAE,CAAC;IACnC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,CAAC,IAAA,kCAAY,EAAC,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,IAAI,KAAK,CACb,2BAA2B,KAAK,YAAY,kCAAY,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAC5E,CAAC;QACJ,CAAC;QACD,QAAQ,CAAC,IAAI,CAAC,gBAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IACjC,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}