@automaton-labs/aib 0.0.7 → 0.0.8

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 (477) hide show
  1. package/README.md +36 -257
  2. package/config/agent-dx-policy.default.json +31 -0
  3. package/config/control-plane-client.default.json +3 -0
  4. package/dist/agent-dx/agent-dx.js +805 -0
  5. package/dist/agent-dx/presentation.js +32 -0
  6. package/dist/alias-advisor/analyze.js +982 -0
  7. package/dist/alias-advisor/exact-text-cost.js +74 -0
  8. package/dist/alias-advisor/lexical.js +240 -0
  9. package/dist/alias-advisor/model.js +2 -0
  10. package/dist/alias-advisor/path-identity.js +49 -0
  11. package/dist/alias-advisor/ranking.js +171 -0
  12. package/dist/alias-advisor/token-estimator.js +85 -0
  13. package/dist/bin/aib.js +5 -1
  14. package/dist/bin/cli.js +811 -4
  15. package/dist/commands/add-missing-imports-preview-cache.js +99 -2
  16. package/dist/commands/add-missing-imports.js +241 -2
  17. package/dist/commands/apply-module-plan.js +1319 -3
  18. package/dist/commands/background-command.js +378 -2
  19. package/dist/commands/captured-input.js +74 -1
  20. package/dist/commands/config-command.js +314 -2
  21. package/dist/commands/config-output.js +357 -10
  22. package/dist/commands/control-plane-command.js +183 -1
  23. package/dist/commands/declaration-command.js +1209 -7
  24. package/dist/commands/declaration-execution-cache.js +79 -1
  25. package/dist/commands/declaration-format.js +221 -1
  26. package/dist/commands/declaration-preview-cache.js +114 -2
  27. package/dist/commands/diagnostics-command.js +70 -3
  28. package/dist/commands/doctor.js +137 -3
  29. package/dist/commands/execution-command.js +117 -1
  30. package/dist/commands/exports-star-collapse-command.js +178 -0
  31. package/dist/commands/exports-star-command.js +252 -0
  32. package/dist/commands/exports-star-preview-cache.js +84 -0
  33. package/dist/commands/feedback-command.js +176 -3
  34. package/dist/commands/file-move-to-dir-execution-cache.js +92 -1
  35. package/dist/commands/file-move-to-dir-preview-cache.js +125 -2
  36. package/dist/commands/file-move-to-dir-worker.js +54 -0
  37. package/dist/commands/file-move-to-dir.js +1073 -5
  38. package/dist/commands/file-mutation-runtime.js +102 -1
  39. package/dist/commands/file-mutation-worker-apply.js +180 -0
  40. package/dist/commands/file-refactor-batch-execution-cache.js +90 -1
  41. package/dist/commands/file-refactor-batch-preview-cache.js +125 -2
  42. package/dist/commands/file-refactor-batch-worker.js +54 -0
  43. package/dist/commands/file-refactor-batch.js +1154 -5
  44. package/dist/commands/file-rename-execution-cache.js +92 -1
  45. package/dist/commands/file-rename-preview-cache.js +125 -2
  46. package/dist/commands/file-rename-worker.js +54 -0
  47. package/dist/commands/file-rename.js +1053 -5
  48. package/dist/commands/file-text-edit-executor.js +205 -0
  49. package/dist/commands/find-importers.js +52 -1
  50. package/dist/commands/find-unused-imports.js +55 -1
  51. package/dist/commands/generate-docs-command.js +244 -6
  52. package/dist/commands/help-command.js +460 -7
  53. package/dist/commands/import-specifier-policy.js +391 -0
  54. package/dist/commands/imports-command.js +68 -1
  55. package/dist/commands/imports-rebase.js +1138 -0
  56. package/dist/commands/init-skill-usage.js +92 -3
  57. package/dist/commands/init-workspace.js +30 -1
  58. package/dist/commands/inspect-alias-candidates.js +413 -0
  59. package/dist/commands/inspect-cycles.js +811 -5
  60. package/dist/commands/inspect-direct-usages.js +98 -0
  61. package/dist/commands/inspect-duplicates-format.js +229 -0
  62. package/dist/commands/inspect-format-primitives.js +127 -0
  63. package/dist/commands/inspect-format.js +1590 -18
  64. package/dist/commands/inspect-graph.js +1553 -9
  65. package/dist/commands/inspect-imports.js +339 -2
  66. package/dist/commands/inspect-mixed-format.js +524 -0
  67. package/dist/commands/inspect-module-plan-format.js +216 -0
  68. package/dist/commands/inspect-module-plan-serialization.js +402 -0
  69. package/dist/commands/inspect-reference-path-format.js +157 -0
  70. package/dist/commands/inspect-request-values.js +599 -0
  71. package/dist/commands/inspect-selector-kind.js +21 -0
  72. package/dist/commands/inspect-selector.js +50 -0
  73. package/dist/commands/inspect-symbol-format.js +90 -0
  74. package/dist/commands/inspect-topology.js +435 -0
  75. package/dist/commands/inspect-tree.js +827 -5
  76. package/dist/commands/inspect-usages-detail.js +793 -0
  77. package/dist/commands/inspect-usages-evidence.js +31 -0
  78. package/dist/commands/inspect-usages-format.js +367 -0
  79. package/dist/commands/inspect.js +1450 -16
  80. package/dist/commands/internal-command.js +64 -0
  81. package/dist/commands/json-file-input.js +60 -1
  82. package/dist/commands/module-plan-cache.js +156 -2
  83. package/dist/commands/module-plan-standalone.js +208 -0
  84. package/dist/commands/module-plan-timeout.js +77 -1
  85. package/dist/commands/move-preview-cache.js +101 -2
  86. package/dist/commands/mutate-aggregate-output.js +996 -0
  87. package/dist/commands/mutate-child-execution.js +374 -0
  88. package/dist/commands/mutate-command.js +1394 -0
  89. package/dist/commands/mutate-declaration-output.js +313 -0
  90. package/dist/commands/mutate-domain-adapters.js +638 -0
  91. package/dist/commands/mutate-execution-cache.js +114 -0
  92. package/dist/commands/mutate-execution-status.js +598 -0
  93. package/dist/commands/mutate-failure-output.js +531 -0
  94. package/dist/commands/mutate-file-view.js +151 -0
  95. package/dist/commands/mutate-object-output.js +91 -0
  96. package/dist/commands/mutate-output-values.js +97 -0
  97. package/dist/commands/mutate-preview-cache.js +86 -0
  98. package/dist/commands/mutate-response-replay.js +153 -0
  99. package/dist/commands/mutate-result-projection.js +818 -0
  100. package/dist/commands/mutation-eta.js +28 -0
  101. package/dist/commands/mutation-execution-cache.js +140 -3
  102. package/dist/commands/mutation-recovery-journal.js +195 -0
  103. package/dist/commands/normalize-imports.js +1120 -4
  104. package/dist/commands/object-pack-command.js +546 -0
  105. package/dist/commands/object-pack-preview-cache.js +88 -0
  106. package/dist/commands/observability-command.js +47 -3
  107. package/dist/commands/ota-command.js +403 -2
  108. package/dist/commands/print-config.js +10 -1
  109. package/dist/commands/quick-read.js +1113 -11
  110. package/dist/commands/refactor-batch-builder.js +265 -1
  111. package/dist/commands/refactor-batch-execution-cache.js +85 -1
  112. package/dist/commands/refactor-batch-preview-cache.js +96 -2
  113. package/dist/commands/refactor-batch.js +461 -4
  114. package/dist/commands/rename-entities.js +794 -4
  115. package/dist/commands/rename-execution-cache.js +49 -1
  116. package/dist/commands/rename-input.js +22 -1
  117. package/dist/commands/rename-polling-policy.js +68 -0
  118. package/dist/commands/rename-preview-cache.js +96 -2
  119. package/dist/commands/result-view.js +993 -7
  120. package/dist/commands/reveal-command.js +445 -5
  121. package/dist/commands/selector-suggestions.js +93 -0
  122. package/dist/commands/session-workspace.js +1836 -31
  123. package/dist/commands/shared.js +2 -1
  124. package/dist/commands/skills-command.js +315 -0
  125. package/dist/commands/sync-command.js +59 -2
  126. package/dist/commands/worker-command.js +173 -1
  127. package/dist/commands/workspace-cache.js +55 -1
  128. package/dist/config/defaults.js +26 -1
  129. package/dist/config/env-vars.js +77 -1
  130. package/dist/config/glob-match.js +44 -1
  131. package/dist/config/import-rules.js +165 -1
  132. package/dist/config/local-config.js +293 -3
  133. package/dist/config/mutation-comments.js +51 -1
  134. package/dist/config/path-aliases.js +165 -1
  135. package/dist/config/path-display.js +84 -1
  136. package/dist/config/product-storage.js +37 -1
  137. package/dist/config/request-env.js +21 -0
  138. package/dist/config/request-routing-context.js +23 -0
  139. package/dist/config/resolve-command-alias.js +74 -1
  140. package/dist/config/resolve.js +24 -1
  141. package/dist/config/tsconfig-discovery.js +113 -1
  142. package/dist/config/typescript-preferences.js +131 -0
  143. package/dist/config/workspace-root.js +310 -3
  144. package/dist/config/workspace-state.js +254 -1
  145. package/dist/content/content-bundle.js +88 -1
  146. package/dist/diagnostics/module-plan-timeline.js +75 -2
  147. package/dist/diagnostics/readiness-text.js +45 -8
  148. package/dist/dsl/aib-dsl.js +838 -1
  149. package/dist/dsl/declaration-dsl.js +264 -1
  150. package/dist/dsl/file-move-to-dir-dsl.js +123 -1
  151. package/dist/dsl/file-refactor-batch-dsl.js +203 -1
  152. package/dist/dsl/file-rename-dsl.js +135 -1
  153. package/dist/dsl/mutate-dsl.js +746 -0
  154. package/dist/help/bootstrap.bash.md +176 -341
  155. package/dist/help/bootstrap.md +175 -340
  156. package/dist/help/bootstrap.pwsh.md +176 -341
  157. package/dist/help/docs/basics.md +1 -1
  158. package/dist/help/docs/config-setup.import-normalize.md +65 -65
  159. package/dist/help/docs/config-setup.import-rules.md +6 -5
  160. package/dist/help/docs/first-setup.md +6 -5
  161. package/dist/help/docs/help-protocol.md +4 -3
  162. package/dist/help/docs/import.base.md +38 -0
  163. package/dist/help/docs/import.rebase.md +85 -0
  164. package/dist/help/docs/inspect.aliasCandidates.md +39 -0
  165. package/dist/help/docs/inspect.code.md +1 -7
  166. package/dist/help/docs/inspect.file.md +10 -19
  167. package/dist/help/docs/inspect.graph.md +3 -17
  168. package/dist/help/{dsl/docs/inspect.md → docs/inspect.shared.md} +13 -12
  169. package/dist/help/docs/modulePlan.md +24 -28
  170. package/dist/help/docs/move.md +19 -22
  171. package/dist/help/{dsl/topics/file.move.md → docs/moveToDir.md} +36 -34
  172. package/dist/help/docs/mutate.mixed.md +34 -0
  173. package/dist/help/docs/mutation.shared.md +55 -0
  174. package/dist/help/docs/patterns.md +3 -12
  175. package/dist/help/docs/qr.md +12 -6
  176. package/dist/help/docs/quick-map.md +36 -24
  177. package/dist/help/docs/recipe.file-layout.md +10 -10
  178. package/dist/help/docs/recipe.import-boundary.md +92 -0
  179. package/dist/help/docs/recipe.safe-artifact-probing.md +68 -0
  180. package/dist/help/docs/recipe.unfamiliar-area.md +64 -0
  181. package/dist/help/docs/recipes.md +20 -0
  182. package/dist/help/docs/rename.md +19 -27
  183. package/dist/help/docs/renameFile.md +36 -0
  184. package/dist/help/docs/rules.md +26 -0
  185. package/dist/help/dsl/bootstrap.bash.md +176 -341
  186. package/dist/help/dsl/bootstrap.md +175 -340
  187. package/dist/help/dsl/bootstrap.pwsh.md +176 -341
  188. package/dist/help/dsl/docs/basics.md +1 -1
  189. package/dist/help/dsl/docs/config-setup.import-normalize.md +65 -65
  190. package/dist/help/dsl/docs/config-setup.import-rules.md +6 -5
  191. package/dist/help/dsl/docs/first-setup.md +6 -5
  192. package/dist/help/dsl/docs/help-protocol.md +4 -3
  193. package/dist/help/dsl/docs/import.base.md +38 -0
  194. package/dist/help/dsl/docs/import.rebase.md +85 -0
  195. package/dist/help/dsl/docs/inspect.aliasCandidates.md +39 -0
  196. package/dist/help/dsl/docs/inspect.code.md +1 -7
  197. package/dist/help/dsl/docs/inspect.file.md +10 -19
  198. package/dist/help/dsl/docs/inspect.graph.md +3 -17
  199. package/dist/help/{docs/inspect.md → dsl/docs/inspect.shared.md} +13 -12
  200. package/dist/help/dsl/docs/modulePlan.md +24 -28
  201. package/dist/help/dsl/docs/move.md +19 -22
  202. package/dist/help/{topics/file.move.md → dsl/docs/moveToDir.md} +36 -34
  203. package/dist/help/dsl/docs/mutate.mixed.md +34 -0
  204. package/dist/help/dsl/docs/mutation.shared.md +55 -0
  205. package/dist/help/dsl/docs/patterns.md +3 -12
  206. package/dist/help/dsl/docs/qr.md +12 -6
  207. package/dist/help/dsl/docs/quick-map.md +36 -24
  208. package/dist/help/dsl/docs/recipe.file-layout.md +10 -10
  209. package/dist/help/dsl/docs/recipe.import-boundary.md +92 -0
  210. package/dist/help/dsl/docs/recipe.safe-artifact-probing.md +68 -0
  211. package/dist/help/dsl/docs/recipe.unfamiliar-area.md +64 -0
  212. package/dist/help/dsl/docs/recipes.md +20 -0
  213. package/dist/help/dsl/docs/rename.md +19 -27
  214. package/dist/help/dsl/docs/renameFile.md +36 -0
  215. package/dist/help/dsl/docs/rules.md +26 -0
  216. package/dist/help/dsl/full.md +175 -340
  217. package/dist/help/dsl/help-index.md +48 -43
  218. package/dist/help/dsl/snippets/agents.md +2 -2
  219. package/dist/help/dsl/tokens/qr.inline.examples.md +1 -1
  220. package/dist/help/dsl/topics/basics.md +1 -1
  221. package/dist/help/dsl/topics/config-setup.import-normalize.md +65 -65
  222. package/dist/help/dsl/topics/config-setup.import-rules.md +6 -5
  223. package/dist/help/dsl/topics/first-setup.md +6 -5
  224. package/dist/help/dsl/topics/help-protocol.md +4 -3
  225. package/dist/help/dsl/topics/import.base.md +36 -0
  226. package/dist/help/dsl/topics/import.rebase.md +83 -0
  227. package/dist/help/dsl/topics/inspect.aliasCandidates.md +37 -0
  228. package/dist/help/dsl/topics/inspect.code.md +1 -7
  229. package/dist/help/dsl/topics/inspect.file.md +10 -19
  230. package/dist/help/dsl/topics/inspect.graph.md +3 -17
  231. package/dist/help/dsl/topics/{inspect.md → inspect.shared.md} +13 -12
  232. package/dist/help/dsl/topics/modulePlan.md +21 -26
  233. package/dist/help/dsl/topics/move.md +17 -18
  234. package/dist/help/{docs/file.move.md → dsl/topics/moveToDir.md} +33 -35
  235. package/dist/help/dsl/topics/mutate.mixed.md +32 -0
  236. package/dist/help/dsl/topics/mutation.shared.md +53 -0
  237. package/dist/help/dsl/topics/patterns.md +3 -12
  238. package/dist/help/dsl/topics/qr.md +12 -6
  239. package/dist/help/dsl/topics/quick-map.md +36 -24
  240. package/dist/help/dsl/topics/recipe.file-layout.md +10 -10
  241. package/dist/help/dsl/topics/recipe.import-boundary.md +90 -0
  242. package/dist/help/dsl/topics/recipe.safe-artifact-probing.md +66 -0
  243. package/dist/help/dsl/topics/recipe.unfamiliar-area.md +62 -0
  244. package/dist/help/dsl/topics/recipes.md +18 -0
  245. package/dist/help/dsl/topics/rename.md +15 -15
  246. package/dist/help/dsl/topics/renameFile.md +34 -0
  247. package/dist/help/dsl/topics/rules.md +24 -0
  248. package/dist/help/full.md +175 -340
  249. package/dist/help/help-index.md +48 -43
  250. package/dist/help/help-meta.json +98 -48
  251. package/dist/help/index.md +52 -20
  252. package/dist/help/snippets/agents.md +2 -2
  253. package/dist/help/tokens/qr.inline.examples.md +1 -1
  254. package/dist/help/topics/basics.md +1 -1
  255. package/dist/help/topics/config-setup.import-normalize.md +65 -65
  256. package/dist/help/topics/config-setup.import-rules.md +6 -5
  257. package/dist/help/topics/first-setup.md +6 -5
  258. package/dist/help/topics/help-protocol.md +4 -3
  259. package/dist/help/topics/import.base.md +36 -0
  260. package/dist/help/topics/import.rebase.md +83 -0
  261. package/dist/help/topics/inspect.aliasCandidates.md +37 -0
  262. package/dist/help/topics/inspect.code.md +1 -7
  263. package/dist/help/topics/inspect.file.md +10 -19
  264. package/dist/help/topics/inspect.graph.md +3 -17
  265. package/dist/help/topics/{inspect.md → inspect.shared.md} +13 -12
  266. package/dist/help/topics/modulePlan.md +21 -26
  267. package/dist/help/topics/move.md +17 -18
  268. package/dist/help/{dsl/docs/file.move.md → topics/moveToDir.md} +33 -35
  269. package/dist/help/topics/mutate.mixed.md +32 -0
  270. package/dist/help/topics/mutation.shared.md +53 -0
  271. package/dist/help/topics/patterns.md +3 -12
  272. package/dist/help/topics/qr.md +12 -6
  273. package/dist/help/topics/quick-map.md +36 -24
  274. package/dist/help/topics/recipe.file-layout.md +10 -10
  275. package/dist/help/topics/recipe.import-boundary.md +90 -0
  276. package/dist/help/topics/recipe.safe-artifact-probing.md +66 -0
  277. package/dist/help/topics/recipe.unfamiliar-area.md +62 -0
  278. package/dist/help/topics/recipes.md +18 -0
  279. package/dist/help/topics/rename.md +15 -15
  280. package/dist/help/topics/renameFile.md +34 -0
  281. package/dist/help/topics/rules.md +24 -0
  282. package/dist/host/capabilities.js +56 -1
  283. package/dist/imports/standalone-import-analysis.js +602 -0
  284. package/dist/imports/standalone-import-model.js +2 -0
  285. package/dist/imports/standalone-import-process.js +66 -0
  286. package/dist/imports/standalone-import-worker.js +27 -0
  287. package/dist/imports/standalone-ts-project.js +147 -0
  288. package/dist/inspect/inspect-duplicates-service.js +526 -0
  289. package/dist/inspect/inspect-reverse-module-closure.js +338 -0
  290. package/dist/inspect/inspect-source-ranges.js +82 -0
  291. package/dist/inspect/inspect-source-shape.js +649 -0
  292. package/dist/inspect/standalone-inspect-analysis.js +319 -0
  293. package/dist/inspect/standalone-inspect-model.js +9 -0
  294. package/dist/inspect/standalone-inspect-process.js +55 -0
  295. package/dist/inspect/standalone-inspect-usages.js +274 -0
  296. package/dist/inspect/standalone-inspect-worker.js +13 -0
  297. package/dist/metrics/central-metrics.js +101 -2
  298. package/dist/mutation/concrete-edit-plan.js +157 -0
  299. package/dist/mutation/exports-star-collapse-preview.js +361 -0
  300. package/dist/mutation/exports-star-expand-apply.js +373 -0
  301. package/dist/mutation/exports-star-expand-preview.js +807 -0
  302. package/dist/mutation/file-impact-scan.js +182 -0
  303. package/dist/mutation/file-mutation-discovery.js +674 -0
  304. package/dist/mutation/file-mutation-eta.js +99 -0
  305. package/dist/mutation/file-mutation-standalone-apply.js +584 -0
  306. package/dist/mutation/file-mutation-standalone-planner.js +500 -0
  307. package/dist/mutation/file-mutation-tsserver-session.js +473 -0
  308. package/dist/mutation/mutation-estimate.js +45 -0
  309. package/dist/mutation/mutation-plan.js +467 -0
  310. package/dist/mutation/object-mutation-foundation.js +2 -0
  311. package/dist/mutation/object-mutation-partition.js +148 -0
  312. package/dist/mutation/object-pack-semantic-apply.js +507 -0
  313. package/dist/mutation/object-pack-semantic-preview.js +984 -0
  314. package/dist/mutation/object-unpack-semantic-preview.js +993 -0
  315. package/dist/mutation/package-manifest-impact.js +176 -0
  316. package/dist/mutation/rename-owner-worker-child.js +37 -0
  317. package/dist/mutation/rename-owner-worker.js +122 -0
  318. package/dist/mutation/runtime-cycle-query.js +66 -0
  319. package/dist/mutation/semantic-execution-progress.js +63 -0
  320. package/dist/mutation/semantic-export-index.js +474 -0
  321. package/dist/mutation/semantic-impact-scan.js +434 -0
  322. package/dist/mutation/semantic-model.js +2 -0
  323. package/dist/mutation/semantic-move-best-effort-planner.js +209 -0
  324. package/dist/mutation/semantic-move-config-worker-child.js +61 -0
  325. package/dist/mutation/semantic-move-config-worker.js +449 -0
  326. package/dist/mutation/semantic-move-declarations.js +94 -0
  327. package/dist/mutation/semantic-move-metrics.js +119 -0
  328. package/dist/mutation/semantic-move-model.js +2 -0
  329. package/dist/mutation/semantic-move-owner-authority.js +122 -0
  330. package/dist/mutation/semantic-move-owner-candidates.js +300 -0
  331. package/dist/mutation/semantic-move-owner-divergence-harness.js +474 -0
  332. package/dist/mutation/semantic-move-owner-divergence-runner.js +162 -0
  333. package/dist/mutation/semantic-move-plan-hash.js +56 -0
  334. package/dist/mutation/semantic-move-policy.js +360 -0
  335. package/dist/mutation/semantic-move-process.js +218 -0
  336. package/dist/mutation/semantic-move-provider-diagnostics.js +27 -0
  337. package/dist/mutation/semantic-move-standalone-engine.js +919 -0
  338. package/dist/mutation/semantic-move-standalone-planner.js +1553 -0
  339. package/dist/mutation/semantic-move-transaction.js +639 -0
  340. package/dist/mutation/semantic-mutation-engine.js +478 -0
  341. package/dist/mutation/semantic-mutation-runtime.js +521 -0
  342. package/dist/mutation/semantic-planner-retry.js +26 -0
  343. package/dist/mutation/semantic-program-roots.js +69 -0
  344. package/dist/mutation/semantic-rename-commonjs.js +229 -0
  345. package/dist/mutation/semantic-rename-config-worker-child.js +46 -0
  346. package/dist/mutation/semantic-rename-config-worker.js +498 -0
  347. package/dist/mutation/semantic-rename-locations.js +192 -0
  348. package/dist/mutation/semantic-rename-model.js +2 -0
  349. package/dist/mutation/semantic-rename-process.js +210 -0
  350. package/dist/mutation/semantic-rename-standalone-engine.js +302 -0
  351. package/dist/mutation/semantic-rename-standalone-planner.js +567 -0
  352. package/dist/mutation/semantic-rename-transaction.js +333 -0
  353. package/dist/mutation/semantic-unused-import-cleanup.js +248 -0
  354. package/dist/mutation/semantic-worker-retry.js +40 -0
  355. package/dist/mutation/semantic-workspace.js +804 -0
  356. package/dist/mutation/targeted-import-canonicalizer.js +359 -0
  357. package/dist/observability/config.js +206 -1
  358. package/dist/observability/context.js +59 -1
  359. package/dist/observability/failure-snapshot.js +124 -2
  360. package/dist/observability/recent.js +63 -2
  361. package/dist/payloads/read-stdin-json.js +212 -1
  362. package/dist/rg-wrapper/core.js +714 -6
  363. package/dist/rg-wrapper/options.js +125 -1
  364. package/dist/rtk-wrapper/core.js +144 -2
  365. package/dist/rtk-wrapper/git-safety.js +203 -0
  366. package/dist/rtk-wrapper/output-adapter.js +106 -0
  367. package/dist/runtime/buffered-process.js +114 -0
  368. package/dist/runtime/bundled-node.js +97 -1
  369. package/dist/runtime/command-lifecycle.js +2 -0
  370. package/dist/runtime/input-source.js +238 -1
  371. package/dist/runtime/node-cli-identity.js +37 -0
  372. package/dist/runtime/run-command.js +191 -1
  373. package/dist/selectors/parse-entities.js +84 -1
  374. package/dist/semantic/semantic-context-pool.js +830 -0
  375. package/dist/semantic/semantic-context-provider.js +416 -0
  376. package/dist/semantic/semantic-resident-admission.js +38 -0
  377. package/dist/semantic/semantic-worker-child.js +40 -0
  378. package/dist/semantic/semantic-worker-manager.js +460 -0
  379. package/dist/semantic/semantic-worker-protocol.js +2 -0
  380. package/dist/semantic/semantic-worker-runtime.js +38 -0
  381. package/dist/semantic/workspace-semantic-context-pools.js +136 -0
  382. package/dist/session/client.js +359 -1
  383. package/dist/session/daemon-state.js +185 -2
  384. package/dist/session/external-tool-coordinator.js +88 -0
  385. package/dist/session/external-tool-request.js +52 -0
  386. package/dist/session/lane-owner.js +116 -0
  387. package/dist/session/paths.js +71 -1
  388. package/dist/session/runtime-lifecycle.js +225 -0
  389. package/dist/session/runtime-shutdown.js +95 -0
  390. package/dist/session/server.js +1194 -7
  391. package/dist/session/session-health.js +27 -0
  392. package/dist/shared/agent-text.js +29 -1
  393. package/dist/shared/errors.js +496 -30
  394. package/dist/shared/event-loop.js +6 -1
  395. package/dist/shared/hints.js +37 -1
  396. package/dist/shared/metrics.js +43 -1
  397. package/dist/shared/presentation.js +69 -4
  398. package/dist/shared/stdin-examples.js +77 -1
  399. package/dist/shared/stdout.js +6 -2
  400. package/dist/shared/types.js +23 -1
  401. package/dist/tool-runtime/runtime-tools.js +120 -1
  402. package/dist/topology/availability.js +663 -0
  403. package/dist/topology/cache.js +130 -0
  404. package/dist/topology/candidates.js +372 -0
  405. package/dist/topology/core.js +903 -0
  406. package/dist/topology/dependency-snapshot.js +189 -0
  407. package/dist/topology/model.js +2 -0
  408. package/dist/topology/scope.js +100 -0
  409. package/dist/topology/ts-oracle-batch.js +529 -0
  410. package/dist/topology/ts-oracle-host.js +69 -0
  411. package/dist/topology/ts-oracle-model.js +2 -0
  412. package/dist/topology/ts-oracle.js +224 -0
  413. package/dist/topology/tsconfig-loader.js +105 -0
  414. package/dist/topology/workspace-project-index.js +542 -0
  415. package/dist/tracing/config.js +192 -2
  416. package/dist/tracing/failure-summary.js +100 -0
  417. package/dist/tracing/trace.js +318 -5
  418. package/dist/tsc-wrapper/core.js +697 -0
  419. package/dist/workers/control-plane/aib-control-plane-worker.cjs +32 -32
  420. package/dist/workers/control-plane/client-config.default.json +3 -3
  421. package/dist/workers/lexical-worker-child.js +27 -0
  422. package/dist/workers/lexical-worker-manager.js +394 -0
  423. package/dist/workers/lexical-worker-protocol.js +2 -0
  424. package/dist/workers/lexical-worker-runtime.js +25 -0
  425. package/dist/workers/owned-one-shot-process.js +115 -0
  426. package/dist/workers/product-storage.js +23 -1
  427. package/dist/workers/registry.js +241 -1
  428. package/package.json +8 -13
  429. package/scripts/postinstall.cjs +29 -29
  430. package/scripts/provision-runtime.cjs +411 -459
  431. package/dist/client/http-client.js +0 -1
  432. package/dist/client/transport-options.js +0 -1
  433. package/dist/client/websocket-client.js +0 -1
  434. package/dist/commands/entity-resolution.js +0 -1
  435. package/dist/commands/file-command.js +0 -1
  436. package/dist/commands/host-command.js +0 -1
  437. package/dist/commands/inspect-symbol-query.js +0 -1
  438. package/dist/commands/list-instances.js +0 -1
  439. package/dist/commands/module-plan-command.js +0 -1
  440. package/dist/commands/move-command.js +0 -1
  441. package/dist/commands/move-to-file.js +0 -2
  442. package/dist/commands/ping.js +0 -1
  443. package/dist/commands/refactor-command.js +0 -1
  444. package/dist/commands/rename-command.js +0 -1
  445. package/dist/commands/runtime-command.js +0 -4
  446. package/dist/commands/runtime-info.js +0 -1
  447. package/dist/commands/validate-module-plan.js +0 -2
  448. package/dist/compatibility/policy.js +0 -1
  449. package/dist/config/auto-start-ide.js +0 -1
  450. package/dist/discovery/registry.js +0 -1
  451. package/dist/discovery/select-instance.js +0 -1
  452. package/dist/help/docs/file.rename.md +0 -35
  453. package/dist/help/docs/mutation.md +0 -60
  454. package/dist/help/docs/refactor.batch.md +0 -44
  455. package/dist/help/dsl/docs/file.rename.md +0 -35
  456. package/dist/help/dsl/docs/mutation.md +0 -60
  457. package/dist/help/dsl/docs/refactor.batch.md +0 -44
  458. package/dist/help/dsl/topics/file.rename.md +0 -33
  459. package/dist/help/dsl/topics/mutation.md +0 -58
  460. package/dist/help/dsl/topics/refactor.batch.md +0 -33
  461. package/dist/help/topics/file.rename.md +0 -33
  462. package/dist/help/topics/mutation.md +0 -58
  463. package/dist/help/topics/refactor.batch.md +0 -33
  464. package/dist/ide-launch/common.cjs +0 -162
  465. package/dist/managed-host/extension-vsix-resolver.js +0 -1
  466. package/dist/managed-host/manage-serve-web-host.cjs +0 -141
  467. package/dist/managed-host/serve-web-autostart.js +0 -1
  468. package/dist/managed-host/serve-web-host.cjs +0 -2115
  469. package/dist/runtime/managed-runtime-provisioning.js +0 -1
  470. package/dist/shared/diagnostic-catalog.js +0 -1
  471. package/dist/shared/diagnostics.js +0 -1
  472. package/dist/shared/operations.js +0 -1
  473. package/dist/shared/protocol.js +0 -1
  474. package/dist/shared/routes.js +0 -1
  475. package/extension/vscode-refactor-bridge-extension.vsix +0 -0
  476. package/runtimes/launcher/linux-x64/aib +0 -0
  477. package/runtimes/launcher/win-x64/aib.exe +0 -0
@@ -1,44 +1,49 @@
1
- Run as: aib help <topic...>
2
-
3
- Start here if this is your first AIB pass:
4
- bootstrap
5
-
6
- Always after context compaction:
7
- aib help help-protocol quick-map
8
- aib config aliases
9
-
10
- Help conventions:
11
- help-format
12
-
13
- Refresh workflow model:
14
- basics patterns
15
-
16
- Core focused topics:
17
- session
18
- prefs
19
- selectors
20
- dsl
21
- inspect
22
- mutation
23
-
24
- Feature topics:
25
- inspect.file
26
- inspect.imports
27
- inspect.exports
28
- inspect.members
29
- inspect.code
30
- inspect.deps
31
- inspect.usages
32
- inspect.graph
33
- inspect.tree
34
- inspect.duplicates
35
- inspect.cycles
36
- rename
37
- move
38
- modulePlan
39
- refactor.batch
40
- imports.normalize
41
- view
42
- qr
43
- rg
1
+ Run as: aib help <topic...>
2
+
3
+ Start here if this is your first AIB pass:
4
+ bootstrap
5
+
6
+ Always after context compaction:
7
+ aib help help-protocol quick-map recipes rules
8
+ aib config aliases
9
+
10
+ Help conventions:
11
+ help-format
12
+
13
+ Refresh workflow model:
14
+ basics patterns
15
+
16
+ Core focused topics:
17
+ session
18
+ rules
19
+ selectors
20
+ dsl
21
+ inspect.shared
22
+ mutation.shared
23
+ recipes
24
+
25
+ Feature topics:
26
+ inspect.file
27
+ inspect.imports
28
+ inspect.exports
29
+ inspect.members
30
+ inspect.code
31
+ inspect.deps
32
+ inspect.usages
33
+ inspect.graph
34
+ inspect.tree
35
+ inspect.aliasCandidates
36
+ inspect.duplicates
37
+ inspect.cycles
38
+ rename
39
+ move
40
+ moveToDir
41
+ renameFile
42
+ mutate.mixed
43
+ modulePlan
44
+ import.rebase
45
+ imports.normalize
46
+ view
47
+ qr
48
+ rg
44
49
  reveal
@@ -1,37 +1,41 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "helpVersion": "0.1.0",
4
- "generatedAt": "2026-06-11T13:27:23+03:00",
5
- "sourceCommit": "f3bddf34",
6
- "contentHash": "sha256:3d73b26f64e061560b920add21f1ff74187b93f8adab6044c69a6d2ae436e534",
4
+ "generatedAt": "2026-07-19T22:17:11+03:00",
5
+ "sourceCommit": "def0b5c5",
6
+ "contentHash": "sha256:147abf680d58c3b4d2624fb4a9cf3893a7cca28310446d7925d68283b03b255a",
7
7
  "topics": {
8
8
  "help-format": {
9
9
  "contentHash": "sha256:b1a0a6ca2a5ac2e61285854e8dd3c951a329073f139ccca50ebe519c2ca0484e",
10
10
  "docsHash": "sha256:44a26ac23ba47f1cff5cedcf61bba16df2d3403db01cf73627da02a3eff0986e"
11
11
  },
12
12
  "help-protocol": {
13
- "contentHash": "sha256:4d31b0ac5d262f8cbe0da0d883324723efa869a0a0e8edc588795872db47b885",
14
- "docsHash": "sha256:acb61b3f7b1cab9fecf82042c88b90bef28922093a9372f0f6829a4f7e1653d0"
13
+ "contentHash": "sha256:ffad525ca26ac24f7d80e07c75c10943e35789d261f11c64dd4835ecf27f8312",
14
+ "docsHash": "sha256:6bfde3e500e79bdf975a5864a3434c7d228cc3b042c5186279703b15e2e20a30"
15
15
  },
16
16
  "quick-map": {
17
- "contentHash": "sha256:54ccf688bacd8d37841070bb3a3330d17db1a109757612ca6a953530906db81c",
18
- "docsHash": "sha256:10b48450656617df4e0efe51d1b89330f1d5c5cd9fdf9ab90feecec6cea52065"
17
+ "contentHash": "sha256:4e5725ef19aa3d9468f0ccb0a52aecde9f3fc605b11f6ff86d38d9f3bfd1889a",
18
+ "docsHash": "sha256:b9a92518a96b95edc7d6475f9f07aafb2ddf31b30b26242a65eb6a562b4222ca"
19
+ },
20
+ "rules": {
21
+ "contentHash": "sha256:5871420f7523cc06c39d96ed361ef18174e4dd3cbaced0a8600d720df675ad76",
22
+ "docsHash": "sha256:4e3060b71b5926e114be04d207790abb14b01bdf1e3fb5faaf304ba8602ff95e"
19
23
  },
20
24
  "basics": {
21
- "contentHash": "sha256:e9c53461377826c660b9c79b6f6b88c21c37899cf6c97e90acccc56ef8bb9ce2",
22
- "docsHash": "sha256:b029006c90a1809532b8de49dee9f0bb0f0fc9fd97543159a81be81a66b8a2f6"
25
+ "contentHash": "sha256:dbda7e409b83d50b12e2e56472472170b25610d63ea8fbfa720d087bdf2f44a0",
26
+ "docsHash": "sha256:1df59df1e4da9762cfd78f4e44ab5c10c159dfb2dbe5206ae602bec3c1b0d0d4"
23
27
  },
24
28
  "first-setup": {
25
- "contentHash": "sha256:ed33d8bd8c404bcd7c83a775578a284d70f1097c5270f0490de378cf5e2c4758",
26
- "docsHash": "sha256:e46fb5382e626766f38baf4151c09baf340e3896242c9beac7b0670282ce7d9d"
29
+ "contentHash": "sha256:118c8889e53caae9a83bf47b191adaa752f860c1be1c90abe6cd73c01fffd859",
30
+ "docsHash": "sha256:2b287ae4a4c6572159db63942fe09b523ede5859cb818df2042cf310d24b0a8c"
27
31
  },
28
32
  "config-setup.import-rules": {
29
- "contentHash": "sha256:f4825e8842a86fa7d15301bf9745ecead828d47191b3e5c390c2d9fa36fc367a",
30
- "docsHash": "sha256:8a7a52ae8b93fe82ad04f6ccd03b521d1b4ce655e1152a0fd91d8a81f77c2ec5"
33
+ "contentHash": "sha256:1d4a2478b6c7089f2c6208dcd696f8e9af6ab5fd88649311bb8ebf41283c477e",
34
+ "docsHash": "sha256:b8e71b46112d31c89102c3a64e9412f05915fbbf5ff2eef59c1739a8e71d5f51"
31
35
  },
32
36
  "config-setup.import-normalize": {
33
- "contentHash": "sha256:55ca60276bf7d81202b88b83773d7432c3dbc130758e784ef574105058976cfc",
34
- "docsHash": "sha256:ddeca97d7053c85992dad118894f56a35a79fd0a95a7558a47965102b28dfec3"
37
+ "contentHash": "sha256:257a9ec29169fb94bb6f2026ed591a0d284a28d4618399ff1cb725c2e6308782",
38
+ "docsHash": "sha256:4ae11442f7b6182fd3f92ffa8fb38690a8658664c6ddb0ec27c41d39ff255eee"
35
39
  },
36
40
  "config-setup.aliases": {
37
41
  "contentHash": "sha256:15a461a8c37a0793864338f84a30614c082217dcd195a1d396c1548a05a75c8e",
@@ -50,8 +54,8 @@
50
54
  "docsHash": "sha256:735401d4b8845b0d54f1151395f07fc1144b4370690ffd80f5ee40ae83a00d2c"
51
55
  },
52
56
  "patterns": {
53
- "contentHash": "sha256:2725e71c1162cd8db8ec0847bf050cc005b582878a3a170601780399b8cf115d",
54
- "docsHash": "sha256:f93ff64ba4cbe34c001ac36b6f6208a05a31e0e9040ee46bcc0cfc0f0044b58f"
57
+ "contentHash": "sha256:12fd63674a32f54c988ce64e060b78ac1a6cc6caf53150e8f7448d59533d5882",
58
+ "docsHash": "sha256:48c04c7d0e134116a58f38453170196957747f0f33841f21a10209e41a82b21c"
55
59
  },
56
60
  "session": {
57
61
  "contentHash": "sha256:f91f49c531f30b0590e6a711dd906b0debcc8a66dabf2999fce43612072826bb",
@@ -66,8 +70,8 @@
66
70
  "docsHash": "sha256:3cfd022c10ad50634b4daca32ac5511146f32af3b66b632582914b106e8b9619"
67
71
  },
68
72
  "qr": {
69
- "contentHash": "sha256:700050d6a62553e12c35c8acb9e4b47471feeef82bb61a7612e953e81f0eb5bd",
70
- "docsHash": "sha256:a0b5d09f2c8b191bfc161402bda58820e93a302048a3c43aedb52281dc1fb020"
73
+ "contentHash": "sha256:31ab2f8e7b30025bb4a19cda81e42056a0e900f23795834ce076933c713c8298",
74
+ "docsHash": "sha256:7124c6cbf2bccf5615dc197fdc2305ccfabd0f4fd31eb6d7d428167e2f7c6004"
71
75
  },
72
76
  "rg": {
73
77
  "contentHash": "sha256:c91568738b7942f1586bfa698265e9886052f084a694d14d3eb3ae6282060c25",
@@ -81,49 +85,73 @@
81
85
  "contentHash": "sha256:b8897c49113766bd0762cc1f09478418f9228686acba60a853a82f63d4f4939b",
82
86
  "docsHash": "sha256:75f83ac3defc745931e1899819456b19c0663c99b8ffd1930416716b2f029309"
83
87
  },
84
- "mutation": {
85
- "contentHash": "sha256:c46b878b05eec0db95664c148e2c2b82a1bc541ee843cecdfc4fbe0a24bdab2a",
86
- "docsHash": "sha256:239e932b33bda72f6d6b37b53aaa9e4fcd5cd1cc09c5f0ef5633262781e1859c"
88
+ "mutation.shared": {
89
+ "contentHash": "sha256:a89a81978d27d97f3c87726cb5a91e2574b2169b8a9aaef4bd5f5763ed2ac2b7",
90
+ "docsHash": "sha256:405381e2ccbbed86e353d7b3553b709f790ddc91392d68439f3a25807d62d3f7"
87
91
  },
88
92
  "rename": {
89
- "contentHash": "sha256:c1a2694179915bb3a8b1fb2cedf1c61e3a3d6ed68ed262acb01705151b1c757d",
90
- "docsHash": "sha256:b2752a5867b51d0cfbbdd494f7a49712cc5b2f0417c6610d73b1bf5b611d8ff7"
93
+ "contentHash": "sha256:c527d5b768468b2a4fc03908362632daa15f13810c3bc196456e556e0479e52d",
94
+ "docsHash": "sha256:35ccaee7bf51f2ef2cc01dc33d1d465b39dad15c62401fb38a4e84c97078a1a2"
91
95
  },
92
96
  "move": {
93
- "contentHash": "sha256:98f724a6f995a7c95a3619361b6ece39bede336e94ac3559be1d7fcb80422a54",
94
- "docsHash": "sha256:39cae1c7bef61d1a7531c984367b5a15ae1d9e1d3f0acb9c34b12b08d78b3a35"
97
+ "contentHash": "sha256:ef95ff2597abe09954c05a3a4ad324ca82c1e2dcc5576af994e82fc6240cd4d3",
98
+ "docsHash": "sha256:ec563acf784d398d1961349ab2ded49ad9191448725b373c87e636e7f9a7ab26"
95
99
  },
96
100
  "modulePlan": {
97
- "contentHash": "sha256:4159fc3912060b92c9d8e402efb22f830f0a2aa2cc52548cf4d19353cdfc1dbb",
98
- "docsHash": "sha256:31b77f8ca94acf5a6c134a780523b5594bb4e0520a5d5844e714898cb7eae2d6"
101
+ "contentHash": "sha256:a5ac78deaa93d6df1207d44fdf48533b2c365fe311b9ce848485d24f2a3e5b41",
102
+ "docsHash": "sha256:0194f416e7ba216643ddb22c0d7fa89b8b8b7a5e5ea7f830498747f7a696e9d1"
103
+ },
104
+ "mutate.mixed": {
105
+ "contentHash": "sha256:d3571ad65083d2c43267111d2d044c96431a20162ff2187d6a6a38046f31a925",
106
+ "docsHash": "sha256:c8b6f6ce5fa5b3c49a1233b623c0ba5acc01933baad695f1e84f1901ae97031c"
99
107
  },
100
- "refactor.batch": {
101
- "contentHash": "sha256:9e169d6a8b45d468dae0fea26315454a0b11ee4bbb72c71a83d54c8aa38f6a75",
102
- "docsHash": "sha256:e7c87c2c3851d69f3648ea421639bf8e06f8b803549abe1b6520c21bf1af01a4"
108
+ "moveToDir": {
109
+ "contentHash": "sha256:9c0e7a4e9a88a99be92c99bfa29df535b4eac6e42e2b49caeb0c2a3aab342e10",
110
+ "docsHash": "sha256:1ad6edcc0da41c79064256059d12309a4dcd7ec71e9d264ab495e8fa6cf429e5"
103
111
  },
104
- "file.move": {
105
- "contentHash": "sha256:be35bc1795afd46035be9783203949e7f706171b9c624c0143ad4e9fa30801b4",
106
- "docsHash": "sha256:05eab7aef652576651946c93b0d13966f560aea70921991f7b75001844deb101"
112
+ "renameFile": {
113
+ "contentHash": "sha256:f948399464164fae8c06798dc54882e263f8b8f107b1780d39f234da52753e92",
114
+ "docsHash": "sha256:c2b9371f2ec4e7e23c7263264753a9e5a8a37f1609be3ef4bada107d56719651"
107
115
  },
108
- "file.rename": {
109
- "contentHash": "sha256:7fef39e4e0cabf29353b8482879e5b02d4734d7cac16feba93f3a2dd8743d6bd",
110
- "docsHash": "sha256:41800cf762cf08589854772cac0b4919f81e153fd0c7e5747dd8c07e309d424a"
116
+ "recipes": {
117
+ "contentHash": "sha256:45f6bde6b3b499cbf3d83dfe9736a52d189a862c0a3e3d714d387721f50e073e",
118
+ "docsHash": "sha256:2857ebe0e40d522261228654e24a2dd6ae041b1ac0eb9a39ee730727e3b5706d"
111
119
  },
112
120
  "recipe.file-layout": {
113
- "contentHash": "sha256:c0c5986a60fd49b1db6948b90b51adbe417df4b82cc96d6ed91d1ef06fde66d4",
114
- "docsHash": "sha256:07362762cf88857745380c14989e69565d6f06bc5fdb12bf79169e1875c2e325"
121
+ "contentHash": "sha256:2781f734ed162e240175e38a26ee82745232888311cf5cc9886a6b535f219271",
122
+ "docsHash": "sha256:533ba664b42af5afd60f6ee7c952613ac43f400cf1b8e66bdb38bb998beb385d"
123
+ },
124
+ "recipe.import-boundary": {
125
+ "contentHash": "sha256:148d0a094e269c5087867b3ad35ad0ba9af6657978ed32ae45d69c4d102f1184",
126
+ "docsHash": "sha256:6b67c6d833243ea1108f92ea796d200e7f2c5850f4a0fa8fd5241a19a80f9f5f"
127
+ },
128
+ "recipe.unfamiliar-area": {
129
+ "contentHash": "sha256:c4f28cf150a429ffb0146c79e819e42d6666812cb9fd82f092bd6e7cb728abfd",
130
+ "docsHash": "sha256:8dfce4f4d483e37f2f3cf0d3a2b0ec29562937a28d9a093a1af8c2440949f534"
131
+ },
132
+ "recipe.safe-artifact-probing": {
133
+ "contentHash": "sha256:21d0cd84dd7ed8fbc6fe4cf34befc32efe694ae1dee2d2883b2189dbfa6976e0",
134
+ "docsHash": "sha256:72029c983e8c73624067cbf1a37568e8d139ba110b4b9d5f2408b070d4035911"
115
135
  },
116
136
  "imports.normalize": {
117
137
  "contentHash": "sha256:e0f3e6720307cfff1b68db1a6125e222f9798f1e29c5bcec3aab069acf1ba940",
118
138
  "docsHash": "sha256:21f8143b5f840ded4bb124ff17106dcc5a80b9131381c09f95a86c438f95a965"
119
139
  },
120
- "inspect": {
121
- "contentHash": "sha256:b6726ec8dd39f75c5a83f0026bf2d354e3da6b38a60cf404f65a4ca690c48f66",
122
- "docsHash": "sha256:53b027f1444d3386d6d952ed1ecec10ae67fdfd2ca22b657411990703e00da18"
140
+ "import.base": {
141
+ "contentHash": "sha256:59f37222b0b267203e6e9fcabe15be5e1c0df06a422783e220c706073190b6ab",
142
+ "docsHash": "sha256:7717c0f727cdaa932109277ba79fe013efac61ed6509fff4c2f723951db31600"
143
+ },
144
+ "import.rebase": {
145
+ "contentHash": "sha256:4cfbc2764f44b34713b8391d5c5d5be5d305b0c59e87eaf8c15e758576bc0b05",
146
+ "docsHash": "sha256:2de70575d7a8c3e3bf89ebba6f003d7c88df3887c125ae357b28edc8bf718a7e"
147
+ },
148
+ "inspect.shared": {
149
+ "contentHash": "sha256:3b6f188a4b6eecc343f93613e6c9dc570d95dc5c855fe9adb573555263eb7a93",
150
+ "docsHash": "sha256:0b02c9bce1fbf0e8af6100a9e9a0a93ebb6494517439b477fc006ab6d278269a"
123
151
  },
124
152
  "inspect.file": {
125
- "contentHash": "sha256:837462936cbe9190275e86eb80553a92d18a562b72257cb6dea26e651d7d4f31",
126
- "docsHash": "sha256:bfbcad0c5b1e23be01795b57a94fe9118480b85d6e30dcc0e5c9368e3098de88"
153
+ "contentHash": "sha256:fc8e9d2f1382da147a313c8b619592e7355575bbfdea2ff354f54bb0f1ea17bb",
154
+ "docsHash": "sha256:b1ef88e471b473d183ae8aab1729ee1d340110ddfb9232158029248663dac146"
127
155
  },
128
156
  "inspect.imports": {
129
157
  "contentHash": "sha256:cbd03ab54f1373727cc6f62cf4140eb081e417c3cd9705c76aabb83e42954a7e",
@@ -138,8 +166,8 @@
138
166
  "docsHash": "sha256:1157d2721c1ec09e5ee92ec5c8f94bd621ff0d4b9cbb76fbf6de22d08def22b0"
139
167
  },
140
168
  "inspect.code": {
141
- "contentHash": "sha256:5d171649777387b0ed0b32d8638406be2c06748956d14edd5c3281a5f418ec6e",
142
- "docsHash": "sha256:eff10029d356db3e7fcf22726a19223fb07f01bb340b4b281f9a56cbaa2e3b5a"
169
+ "contentHash": "sha256:10557da3f692dcdca2d00bae2ed5d72b69fa3ab753a4d766e6bbbbaf64c80d1b",
170
+ "docsHash": "sha256:fd05f42fb487c1fcd3dcc60485338f0de96ff9c66a017aaf4368b4725efd2470"
143
171
  },
144
172
  "inspect.deps": {
145
173
  "contentHash": "sha256:d7e17ad4d37f085073a0843ecdb893de2dccfd2e9ade79ddd50670530c002fea",
@@ -150,13 +178,17 @@
150
178
  "docsHash": "sha256:9b82674122c986159ca0ec82d89e4b382d0ed786b66a1cc3c9dd4f5f93bfef47"
151
179
  },
152
180
  "inspect.graph": {
153
- "contentHash": "sha256:a7d4792c063f8244b84579c9dc5a847755653092a9026010c87bfa0bbbafdd60",
154
- "docsHash": "sha256:2bda09bfcec9645bb2227fb8fca8f03a02a78c6b94118ab2ad5bd1e946d33c3f"
181
+ "contentHash": "sha256:da8ececaabe778f2fb288c5d5bb26d1b21cb54da1adbde9c00d49c0bf07314ee",
182
+ "docsHash": "sha256:ad98b65afbcf234a7b8090f7f29aa11a1bed277255d87d6a71ad71f6ac05b6ca"
155
183
  },
156
184
  "inspect.tree": {
157
185
  "contentHash": "sha256:db064a9b7ddc8ba2530fadc7aebf214d0cf9551f2fc771b113cbd4b4511254d1",
158
186
  "docsHash": "sha256:91c81dae81527cc7e1ddce28810540543a19487a49294402787d384c7abd4a9d"
159
187
  },
188
+ "inspect.aliasCandidates": {
189
+ "contentHash": "sha256:832c83527abe3e26a88793322be871c0b96f0add8a5d6226376e07d660e48301",
190
+ "docsHash": "sha256:3eb52f184a744cbee796977ac6d718b8e1c06cc5b9f78570d110596f16a4a95b"
191
+ },
160
192
  "inspect.duplicates": {
161
193
  "contentHash": "sha256:08b6216d3c4ccd2460befec53559451b34af7157f2742b026bfe2a6babda1033",
162
194
  "docsHash": "sha256:4b57e3557cf4fdfbc7e13a1ebc1a27be2fbfd9f6d828f2807c1097f722bc5e25"
@@ -165,5 +197,23 @@
165
197
  "contentHash": "sha256:429bd6fa5b91e66516264ad1dab6cf09cf5446e1ea547d342f1d4abb71b94526",
166
198
  "docsHash": "sha256:f7cc3dc73f6aa4cde94b0cc206520568b242abe16453b69f045baa20a8c37146"
167
199
  }
200
+ },
201
+ "skills": {
202
+ "recipe.unfamiliar-area": {
203
+ "target": "codex",
204
+ "name": "aib-unfamiliar-area",
205
+ "description": "Use when entering a codebase or when about to debug, modify, or extend code in an unfamiliar area.",
206
+ "topic": "recipe.unfamiliar-area",
207
+ "body": "When you do not already have enough recipe context to follow the workflow, read and use:\n\naib help recipe.unfamiliar-area\n\nIf the workflow is already in context, continue from it without rereading.",
208
+ "contentHash": "sha256:d61a78dd07211fa0362941ce2ad7a1f68b165257bf0dc830358288a72c2e9f1d"
209
+ },
210
+ "recipe.safe-artifact-probing": {
211
+ "target": "codex",
212
+ "name": "aib-safe-artifact-probing",
213
+ "description": "Use before probing generated, bundled, minified, dependency/vendor, lock/patch, or huge-line artifacts with tools or runtimes.",
214
+ "topic": "recipe.safe-artifact-probing",
215
+ "body": "When you do not already have enough recipe context to follow the workflow, read and use:\n\naib help recipe.safe-artifact-probing\n\nIf the workflow is already in context, continue from it without rereading.",
216
+ "contentHash": "sha256:c79fde3bc3a8c3630000f50820a9309ec5f67284a2977ac9f462884118395d72"
217
+ }
168
218
  }
169
219
  }
@@ -16,6 +16,8 @@
16
16
  - Docs help-protocol: [File](<docs/help-protocol.md>)
17
17
  - Help quick-map: [File](<topics/quick-map.md>)
18
18
  - Docs quick-map: [File](<docs/quick-map.md>)
19
+ - Help rules: [File](<topics/rules.md>)
20
+ - Docs rules: [File](<docs/rules.md>)
19
21
  - Help basics: [File](<topics/basics.md>)
20
22
  - Docs basics: [File](<docs/basics.md>)
21
23
  - Help first-setup: [File](<topics/first-setup.md>)
@@ -48,26 +50,38 @@
48
50
  - Docs reveal: [File](<docs/reveal.md>)
49
51
  - Help selectors: [File](<topics/selectors.md>)
50
52
  - Docs selectors: [File](<docs/selectors.md>)
51
- - Help mutation: [File](<topics/mutation.md>)
52
- - Docs mutation: [File](<docs/mutation.md>)
53
+ - Help mutation.shared: [File](<topics/mutation.shared.md>)
54
+ - Docs mutation.shared: [File](<docs/mutation.shared.md>)
53
55
  - Help rename: [File](<topics/rename.md>)
54
56
  - Docs rename: [File](<docs/rename.md>)
55
57
  - Help move: [File](<topics/move.md>)
56
58
  - Docs move: [File](<docs/move.md>)
57
59
  - Help modulePlan: [File](<topics/modulePlan.md>)
58
60
  - Docs modulePlan: [File](<docs/modulePlan.md>)
59
- - Help refactor.batch: [File](<topics/refactor.batch.md>)
60
- - Docs refactor.batch: [File](<docs/refactor.batch.md>)
61
- - Help file.move: [File](<topics/file.move.md>)
62
- - Docs file.move: [File](<docs/file.move.md>)
63
- - Help file.rename: [File](<topics/file.rename.md>)
64
- - Docs file.rename: [File](<docs/file.rename.md>)
61
+ - Help mutate.mixed: [File](<topics/mutate.mixed.md>)
62
+ - Docs mutate.mixed: [File](<docs/mutate.mixed.md>)
63
+ - Help moveToDir: [File](<topics/moveToDir.md>)
64
+ - Docs moveToDir: [File](<docs/moveToDir.md>)
65
+ - Help renameFile: [File](<topics/renameFile.md>)
66
+ - Docs renameFile: [File](<docs/renameFile.md>)
67
+ - Help recipes: [File](<topics/recipes.md>)
68
+ - Docs recipes: [File](<docs/recipes.md>)
65
69
  - Help recipe.file-layout: [File](<topics/recipe.file-layout.md>)
66
70
  - Docs recipe.file-layout: [File](<docs/recipe.file-layout.md>)
71
+ - Help recipe.import-boundary: [File](<topics/recipe.import-boundary.md>)
72
+ - Docs recipe.import-boundary: [File](<docs/recipe.import-boundary.md>)
73
+ - Help recipe.unfamiliar-area: [File](<topics/recipe.unfamiliar-area.md>)
74
+ - Docs recipe.unfamiliar-area: [File](<docs/recipe.unfamiliar-area.md>)
75
+ - Help recipe.safe-artifact-probing: [File](<topics/recipe.safe-artifact-probing.md>)
76
+ - Docs recipe.safe-artifact-probing: [File](<docs/recipe.safe-artifact-probing.md>)
67
77
  - Help imports.normalize: [File](<topics/imports.normalize.md>)
68
78
  - Docs imports.normalize: [File](<docs/imports.normalize.md>)
69
- - Help inspect: [File](<topics/inspect.md>)
70
- - Docs inspect: [File](<docs/inspect.md>)
79
+ - Help import.base: [File](<topics/import.base.md>)
80
+ - Docs import.base: [File](<docs/import.base.md>)
81
+ - Help import.rebase: [File](<topics/import.rebase.md>)
82
+ - Docs import.rebase: [File](<docs/import.rebase.md>)
83
+ - Help inspect.shared: [File](<topics/inspect.shared.md>)
84
+ - Docs inspect.shared: [File](<docs/inspect.shared.md>)
71
85
  - Help inspect.file: [File](<topics/inspect.file.md>)
72
86
  - Docs inspect.file: [File](<docs/inspect.file.md>)
73
87
  - Help inspect.imports: [File](<topics/inspect.imports.md>)
@@ -86,6 +100,8 @@
86
100
  - Docs inspect.graph: [File](<docs/inspect.graph.md>)
87
101
  - Help inspect.tree: [File](<topics/inspect.tree.md>)
88
102
  - Docs inspect.tree: [File](<docs/inspect.tree.md>)
103
+ - Help inspect.aliasCandidates: [File](<topics/inspect.aliasCandidates.md>)
104
+ - Docs inspect.aliasCandidates: [File](<docs/inspect.aliasCandidates.md>)
89
105
  - Help inspect.duplicates: [File](<topics/inspect.duplicates.md>)
90
106
  - Docs inspect.duplicates: [File](<docs/inspect.duplicates.md>)
91
107
  - Help inspect.cycles: [File](<topics/inspect.cycles.md>)
@@ -107,6 +123,8 @@
107
123
  - dsl Docs help-protocol: [File](<dsl/docs/help-protocol.md>)
108
124
  - dsl Help quick-map: [File](<dsl/topics/quick-map.md>)
109
125
  - dsl Docs quick-map: [File](<dsl/docs/quick-map.md>)
126
+ - dsl Help rules: [File](<dsl/topics/rules.md>)
127
+ - dsl Docs rules: [File](<dsl/docs/rules.md>)
110
128
  - dsl Help basics: [File](<dsl/topics/basics.md>)
111
129
  - dsl Docs basics: [File](<dsl/docs/basics.md>)
112
130
  - dsl Help first-setup: [File](<dsl/topics/first-setup.md>)
@@ -139,26 +157,38 @@
139
157
  - dsl Docs reveal: [File](<dsl/docs/reveal.md>)
140
158
  - dsl Help selectors: [File](<dsl/topics/selectors.md>)
141
159
  - dsl Docs selectors: [File](<dsl/docs/selectors.md>)
142
- - dsl Help mutation: [File](<dsl/topics/mutation.md>)
143
- - dsl Docs mutation: [File](<dsl/docs/mutation.md>)
160
+ - dsl Help mutation.shared: [File](<dsl/topics/mutation.shared.md>)
161
+ - dsl Docs mutation.shared: [File](<dsl/docs/mutation.shared.md>)
144
162
  - dsl Help rename: [File](<dsl/topics/rename.md>)
145
163
  - dsl Docs rename: [File](<dsl/docs/rename.md>)
146
164
  - dsl Help move: [File](<dsl/topics/move.md>)
147
165
  - dsl Docs move: [File](<dsl/docs/move.md>)
148
166
  - dsl Help modulePlan: [File](<dsl/topics/modulePlan.md>)
149
167
  - dsl Docs modulePlan: [File](<dsl/docs/modulePlan.md>)
150
- - dsl Help refactor.batch: [File](<dsl/topics/refactor.batch.md>)
151
- - dsl Docs refactor.batch: [File](<dsl/docs/refactor.batch.md>)
152
- - dsl Help file.move: [File](<dsl/topics/file.move.md>)
153
- - dsl Docs file.move: [File](<dsl/docs/file.move.md>)
154
- - dsl Help file.rename: [File](<dsl/topics/file.rename.md>)
155
- - dsl Docs file.rename: [File](<dsl/docs/file.rename.md>)
168
+ - dsl Help mutate.mixed: [File](<dsl/topics/mutate.mixed.md>)
169
+ - dsl Docs mutate.mixed: [File](<dsl/docs/mutate.mixed.md>)
170
+ - dsl Help moveToDir: [File](<dsl/topics/moveToDir.md>)
171
+ - dsl Docs moveToDir: [File](<dsl/docs/moveToDir.md>)
172
+ - dsl Help renameFile: [File](<dsl/topics/renameFile.md>)
173
+ - dsl Docs renameFile: [File](<dsl/docs/renameFile.md>)
174
+ - dsl Help recipes: [File](<dsl/topics/recipes.md>)
175
+ - dsl Docs recipes: [File](<dsl/docs/recipes.md>)
156
176
  - dsl Help recipe.file-layout: [File](<dsl/topics/recipe.file-layout.md>)
157
177
  - dsl Docs recipe.file-layout: [File](<dsl/docs/recipe.file-layout.md>)
178
+ - dsl Help recipe.import-boundary: [File](<dsl/topics/recipe.import-boundary.md>)
179
+ - dsl Docs recipe.import-boundary: [File](<dsl/docs/recipe.import-boundary.md>)
180
+ - dsl Help recipe.unfamiliar-area: [File](<dsl/topics/recipe.unfamiliar-area.md>)
181
+ - dsl Docs recipe.unfamiliar-area: [File](<dsl/docs/recipe.unfamiliar-area.md>)
182
+ - dsl Help recipe.safe-artifact-probing: [File](<dsl/topics/recipe.safe-artifact-probing.md>)
183
+ - dsl Docs recipe.safe-artifact-probing: [File](<dsl/docs/recipe.safe-artifact-probing.md>)
158
184
  - dsl Help imports.normalize: [File](<dsl/topics/imports.normalize.md>)
159
185
  - dsl Docs imports.normalize: [File](<dsl/docs/imports.normalize.md>)
160
- - dsl Help inspect: [File](<dsl/topics/inspect.md>)
161
- - dsl Docs inspect: [File](<dsl/docs/inspect.md>)
186
+ - dsl Help import.base: [File](<dsl/topics/import.base.md>)
187
+ - dsl Docs import.base: [File](<dsl/docs/import.base.md>)
188
+ - dsl Help import.rebase: [File](<dsl/topics/import.rebase.md>)
189
+ - dsl Docs import.rebase: [File](<dsl/docs/import.rebase.md>)
190
+ - dsl Help inspect.shared: [File](<dsl/topics/inspect.shared.md>)
191
+ - dsl Docs inspect.shared: [File](<dsl/docs/inspect.shared.md>)
162
192
  - dsl Help inspect.file: [File](<dsl/topics/inspect.file.md>)
163
193
  - dsl Docs inspect.file: [File](<dsl/docs/inspect.file.md>)
164
194
  - dsl Help inspect.imports: [File](<dsl/topics/inspect.imports.md>)
@@ -177,6 +207,8 @@
177
207
  - dsl Docs inspect.graph: [File](<dsl/docs/inspect.graph.md>)
178
208
  - dsl Help inspect.tree: [File](<dsl/topics/inspect.tree.md>)
179
209
  - dsl Docs inspect.tree: [File](<dsl/docs/inspect.tree.md>)
210
+ - dsl Help inspect.aliasCandidates: [File](<dsl/topics/inspect.aliasCandidates.md>)
211
+ - dsl Docs inspect.aliasCandidates: [File](<dsl/docs/inspect.aliasCandidates.md>)
180
212
  - dsl Help inspect.duplicates: [File](<dsl/topics/inspect.duplicates.md>)
181
213
  - dsl Docs inspect.duplicates: [File](<dsl/docs/inspect.duplicates.md>)
182
214
  - dsl Help inspect.cycles: [File](<dsl/topics/inspect.cycles.md>)
@@ -10,5 +10,5 @@ Use {{docsPath}} when working with TS/JS code.
10
10
  Help fallback:
11
11
  For TS/JS code work, use aib. Start with {{docsPath}}. If local docs are not enough, run `aib help bootstrap`.
12
12
 
13
- Refactor-focused:
14
- When changing TS/JS code, use aib for semantic discovery, usages, graph, rename, move, and modulePlan. Start with {{docsPath}}.
13
+ Refactor-focused:
14
+ When changing TS/JS code, use aib for semantic discovery, usages, graph, and mutate DSL. Start with {{docsPath}}.
@@ -1,2 +1,2 @@
1
1
  Inline:
2
- aib qr @scripts/a.txt h=80 @scripts/b.py o=300 l=50 @logs/app.log all
2
+ aib qr @svc/users.ts s=3:42,66:84,92 @scripts/a.txt h=80 @scripts/b.py r=300:50,500 .prettierrc all
@@ -8,5 +8,5 @@ Prefer batch DSL instead of one-off inline calls.
8
8
  One request can inspect/mutate several files/entities and save reusable artifacts when supported.
9
9
  Use one-off commands only for small checks/changes.
10
10
 
11
- For mutations, aib asks TS/IDE refactors to update affected references and imports.
11
+ For mutations, aib asks TypeScript semantic refactors to update affected references and imports.
12
12
  After a successful mutation, do not manually patch the same imports unless aib reports a follow-up or the build/checks show a real issue.
@@ -1,18 +1,18 @@
1
- Configure import normalization intent.
2
-
3
- importNormalize defines default normalization rules for explicit aib imports normalize commands.
4
- Use it before broad or important import cleanup so the scope, target style, preferred alias, and excludes are stored in aib.json instead of repeated in command arguments.
5
-
6
- It does not run automatically during move/modulePlan.
7
- Use importRules for mutation-time import cleanup.
8
-
9
- Set importNormalize when the intended cleanup has project meaning:
10
- - adopting a new tsconfig alias across a project area;
11
- - converting an area to aliases;
12
- - converting scripts/tools or extracted modules to relative imports;
13
- - excluding generated or bundled output from normalization.
14
-
15
- For tiny one-file checks, inline options are fine.
1
+ Configure import normalization intent.
2
+
3
+ importNormalize defines default normalization rules for explicit aib imports normalize commands.
4
+ Use it before broad or important import cleanup so the scope, target style, preferred alias, and excludes are stored in aib.json instead of repeated in command arguments.
5
+
6
+ It does not run automatically during move/modulePlan.
7
+ Use importRules for mutation-time import cleanup.
8
+
9
+ Set importNormalize when the intended cleanup has project meaning:
10
+ - adopting a new tsconfig alias across a project area;
11
+ - converting an area to aliases;
12
+ - converting scripts/tools or extracted modules to relative imports;
13
+ - excluding generated or bundled output from normalization.
14
+
15
+ For tiny one-file checks, inline options are fine.
16
16
  Before wider cleanup, put the intended rule in config and preview the smallest useful scope.
17
17
 
18
18
  Fields:
@@ -29,56 +29,56 @@ shortestAlias rewrite to the shortest valid alias specifier
29
29
  preferAlias:
30
30
  @shared/* prefer one alias pattern when several aliases can resolve the same file
31
31
 
32
- Alias cleanup:
33
-
34
- "importNormalize": [
35
- {
36
- "scope": "src",
37
- "to": "shortestAlias",
38
- "preferAlias": "@/*",
39
- "exclude": [
40
- "src/generated",
41
- "src/**/dist"
42
- ]
43
- }
32
+ Alias cleanup:
33
+
34
+ "importNormalize": [
35
+ {
36
+ "scope": "src",
37
+ "to": "shortestAlias",
38
+ "preferAlias": "@/*",
39
+ "exclude": [
40
+ "src/generated",
41
+ "src/**/dist"
42
+ ]
43
+ }
44
+ ]
45
+
46
+ Relative cleanup for scripts/tools:
47
+
48
+ "importNormalize": [
49
+ {
50
+ "scope": "scripts",
51
+ "to": "relative",
52
+ "exclude": [
53
+ "scripts/**/*.cjs",
54
+ "scripts/**/*.mjs"
55
+ ]
56
+ }
44
57
  ]
45
58
 
46
- Relative cleanup for scripts/tools:
47
-
48
- "importNormalize": [
49
- {
50
- "scope": "scripts",
51
- "to": "relative",
52
- "exclude": [
53
- "scripts/**/*.cjs",
54
- "scripts/**/*.mjs"
55
- ]
56
- }
57
- ]
58
-
59
- If you have not just checked config rules, run:
60
-
61
- aib config rules
62
-
63
- After editing aib.json, run:
64
-
65
- aib sync
66
-
67
- Then preview the smallest useful scope before applying:
68
-
69
- aib imports normalize preview <scope>
70
-
71
- Preview shows counts, sample import rewrites, a planId, and the apply command.
72
- It does not change project files.
73
-
74
- If preview changes imports outside the intended area, narrow scope or add exclude.
75
-
76
- If preview does not use the expected alias, check tsconfig aliases:
77
-
78
- aib reveal tsaliases
79
-
80
- If the config and aliases look correct but preview still looks stale or strange, run:
81
-
82
- aib sync
83
-
59
+ If you have not just checked config rules, run:
60
+
61
+ aib config rules
62
+
63
+ After editing aib.json, run:
64
+
65
+ aib sync
66
+
67
+ Then preview the smallest useful scope before applying:
68
+
69
+ aib imports normalize preview <scope>
70
+
71
+ Preview shows counts, sample import rewrites, a planId, and the apply command.
72
+ It does not change project files.
73
+
74
+ If preview changes imports outside the intended area, narrow scope or add exclude.
75
+
76
+ If preview does not use the expected alias, check tsconfig aliases:
77
+
78
+ aib reveal tsaliases
79
+
80
+ If the config and aliases look correct but preview still looks stale or strange, run:
81
+
82
+ aib sync
83
+
84
84
  Then preview again.
@@ -7,11 +7,12 @@ Check current config:
7
7
 
8
8
  aib config rules
9
9
 
10
- importRules control imports created or expanded by move/modulePlan mutation cleanup.
11
- They do not rewrite the whole project.
12
-
13
- AIB starts from IDE/TS import preferences.
14
- For mutation cleanup, matching importRules in aib.json take priority.
10
+ importRules control imports created or expanded by move/modulePlan mutation cleanup.
11
+ They do not rewrite the whole project.
12
+
13
+ A non-empty importRules block in aib.json is the complete AIB import-style authority.
14
+ Omitted fields keep TypeScript/AIB defaults; they are not filled from editor settings.
15
+ When importRules is empty, AIB may reuse explicit workspace-local IDE/TS preferences.
15
16
  Do not assume IDE/TS defaults match the repo style.
16
17
 
17
18
  Fields: