@automaton-labs/aib 0.0.6 → 0.0.7

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 (247) hide show
  1. package/dist/bin/cli.js +4 -2
  2. package/dist/commands/apply-module-plan.js +3 -3
  3. package/dist/commands/background-command.js +2 -0
  4. package/dist/commands/captured-input.js +1 -2
  5. package/dist/commands/config-command.js +2 -2
  6. package/dist/commands/config-output.js +10 -10
  7. package/dist/commands/control-plane-command.js +1 -0
  8. package/dist/commands/declaration-command.js +7 -0
  9. package/dist/commands/declaration-execution-cache.js +1 -0
  10. package/dist/commands/declaration-format.js +1 -0
  11. package/dist/commands/declaration-preview-cache.js +2 -0
  12. package/dist/commands/doctor.js +3 -2
  13. package/dist/commands/execution-command.js +1 -1
  14. package/dist/commands/file-command.js +1 -0
  15. package/dist/commands/file-move-to-dir-execution-cache.js +1 -0
  16. package/dist/commands/file-move-to-dir-preview-cache.js +2 -0
  17. package/dist/commands/file-move-to-dir.js +5 -0
  18. package/dist/commands/file-mutation-runtime.js +1 -0
  19. package/dist/commands/file-refactor-batch-execution-cache.js +1 -0
  20. package/dist/commands/file-refactor-batch-preview-cache.js +2 -0
  21. package/dist/commands/file-refactor-batch.js +5 -0
  22. package/dist/commands/file-rename-execution-cache.js +1 -0
  23. package/dist/commands/file-rename-preview-cache.js +2 -0
  24. package/dist/commands/file-rename.js +5 -0
  25. package/dist/commands/help-command.js +5 -5
  26. package/dist/commands/host-command.js +1 -0
  27. package/dist/commands/inspect-cycles.js +3 -3
  28. package/dist/commands/inspect-format.js +15 -15
  29. package/dist/commands/inspect-tree.js +2 -2
  30. package/dist/commands/inspect.js +12 -12
  31. package/dist/commands/move-to-file.js +2 -2
  32. package/dist/commands/ota-command.js +2 -0
  33. package/dist/commands/quick-read.js +4 -4
  34. package/dist/commands/refactor-batch.js +4 -4
  35. package/dist/commands/rename-entities.js +4 -4
  36. package/dist/commands/result-view.js +6 -5
  37. package/dist/commands/worker-command.js +1 -0
  38. package/dist/config/defaults.js +1 -1
  39. package/dist/config/env-vars.js +1 -1
  40. package/dist/config/path-aliases.js +1 -1
  41. package/dist/config/resolve-command-alias.js +1 -1
  42. package/dist/content/content-bundle.js +1 -1
  43. package/dist/dsl/aib-dsl.js +1 -1
  44. package/dist/dsl/declaration-dsl.js +1 -0
  45. package/dist/dsl/file-move-to-dir-dsl.js +1 -0
  46. package/dist/dsl/file-refactor-batch-dsl.js +1 -0
  47. package/dist/dsl/file-rename-dsl.js +1 -0
  48. package/dist/help/{json/bootstrap.md → bootstrap.bash.md} +214 -392
  49. package/dist/help/bootstrap.md +101 -137
  50. package/dist/help/{json/full.md → bootstrap.pwsh.md} +214 -392
  51. package/dist/help/docs/dsl.md +4 -3
  52. package/dist/help/docs/file.move.md +46 -0
  53. package/dist/help/docs/file.rename.md +35 -0
  54. package/dist/help/docs/inspect.code.md +5 -5
  55. package/dist/help/docs/inspect.deps.md +7 -7
  56. package/dist/help/docs/inspect.file.md +2 -1
  57. package/dist/help/docs/inspect.graph.md +3 -3
  58. package/dist/help/docs/inspect.md +5 -5
  59. package/dist/help/docs/mutation.md +23 -13
  60. package/dist/help/docs/patterns.md +1 -5
  61. package/dist/help/docs/qr.md +7 -22
  62. package/dist/help/docs/quick-map.md +1 -0
  63. package/dist/help/docs/recipe.file-layout.md +15 -0
  64. package/dist/help/docs/rg.md +22 -0
  65. package/dist/help/docs/selectors.md +3 -2
  66. package/dist/help/docs/session.md +1 -1
  67. package/dist/help/dsl/bootstrap.bash.md +907 -0
  68. package/dist/help/dsl/bootstrap.md +101 -137
  69. package/dist/help/dsl/bootstrap.pwsh.md +907 -0
  70. package/dist/help/dsl/docs/dsl.md +4 -3
  71. package/dist/help/dsl/docs/file.move.md +46 -0
  72. package/dist/help/dsl/docs/file.rename.md +35 -0
  73. package/dist/help/dsl/docs/inspect.code.md +5 -5
  74. package/dist/help/dsl/docs/inspect.deps.md +7 -7
  75. package/dist/help/dsl/docs/inspect.file.md +2 -1
  76. package/dist/help/dsl/docs/inspect.graph.md +3 -3
  77. package/dist/help/dsl/docs/inspect.md +5 -5
  78. package/dist/help/dsl/docs/mutation.md +23 -13
  79. package/dist/help/dsl/docs/patterns.md +1 -5
  80. package/dist/help/dsl/docs/qr.md +7 -22
  81. package/dist/help/dsl/docs/quick-map.md +1 -0
  82. package/dist/help/dsl/docs/recipe.file-layout.md +15 -0
  83. package/dist/help/dsl/docs/rg.md +22 -0
  84. package/dist/help/dsl/docs/selectors.md +3 -2
  85. package/dist/help/dsl/docs/session.md +1 -1
  86. package/dist/help/dsl/full.md +101 -137
  87. package/dist/help/dsl/help-index.md +44 -0
  88. package/dist/help/dsl/tokens/qr.inline.examples.md +2 -0
  89. package/dist/help/dsl/tokens/stdin.examples.bash.md +8 -0
  90. package/dist/help/dsl/tokens/stdin.examples.pwsh.md +8 -0
  91. package/dist/help/dsl/tokens/stdin.examples.with-qr.bash.md +12 -0
  92. package/dist/help/dsl/tokens/stdin.examples.with-qr.pwsh.md +12 -0
  93. package/dist/help/dsl/topics/dsl.md +4 -3
  94. package/dist/help/dsl/topics/file.move.md +44 -0
  95. package/dist/help/dsl/topics/file.rename.md +33 -0
  96. package/dist/help/dsl/topics/inspect.code.md +5 -5
  97. package/dist/help/dsl/topics/inspect.deps.md +7 -7
  98. package/dist/help/dsl/topics/inspect.file.md +2 -1
  99. package/dist/help/dsl/topics/inspect.graph.md +3 -3
  100. package/dist/help/dsl/topics/inspect.md +5 -5
  101. package/dist/help/dsl/topics/mutation.md +23 -13
  102. package/dist/help/dsl/topics/patterns.md +1 -5
  103. package/dist/help/dsl/topics/qr.md +7 -22
  104. package/dist/help/dsl/topics/quick-map.md +1 -0
  105. package/dist/help/dsl/topics/recipe.file-layout.md +13 -0
  106. package/dist/help/dsl/topics/rg.md +20 -0
  107. package/dist/help/dsl/topics/selectors.md +3 -2
  108. package/dist/help/dsl/topics/session.md +1 -1
  109. package/dist/help/full.md +101 -137
  110. package/dist/help/help-index.md +44 -0
  111. package/dist/help/help-meta.json +43 -27
  112. package/dist/help/index.md +32 -75
  113. package/dist/help/tokens/qr.inline.examples.md +2 -0
  114. package/dist/help/tokens/stdin.examples.bash.md +8 -0
  115. package/dist/help/tokens/stdin.examples.pwsh.md +8 -0
  116. package/dist/help/tokens/stdin.examples.with-qr.bash.md +12 -0
  117. package/dist/help/tokens/stdin.examples.with-qr.pwsh.md +12 -0
  118. package/dist/help/topics/dsl.md +4 -3
  119. package/dist/help/topics/file.move.md +44 -0
  120. package/dist/help/topics/file.rename.md +33 -0
  121. package/dist/help/topics/inspect.code.md +5 -5
  122. package/dist/help/topics/inspect.deps.md +7 -7
  123. package/dist/help/topics/inspect.file.md +2 -1
  124. package/dist/help/topics/inspect.graph.md +3 -3
  125. package/dist/help/topics/inspect.md +5 -5
  126. package/dist/help/topics/mutation.md +23 -13
  127. package/dist/help/topics/patterns.md +1 -5
  128. package/dist/help/topics/qr.md +7 -22
  129. package/dist/help/topics/quick-map.md +1 -0
  130. package/dist/help/topics/recipe.file-layout.md +13 -0
  131. package/dist/help/topics/rg.md +20 -0
  132. package/dist/help/topics/selectors.md +3 -2
  133. package/dist/help/topics/session.md +1 -1
  134. package/dist/host/capabilities.js +1 -0
  135. package/dist/ide-launch/common.cjs +162 -162
  136. package/dist/managed-host/extension-vsix-resolver.js +1 -1
  137. package/dist/managed-host/manage-serve-web-host.cjs +141 -141
  138. package/dist/managed-host/serve-web-autostart.js +1 -1
  139. package/dist/managed-host/serve-web-host.cjs +1781 -1570
  140. package/dist/payloads/read-stdin-json.js +1 -1
  141. package/dist/rg-wrapper/core.js +6 -0
  142. package/dist/rg-wrapper/options.js +1 -0
  143. package/dist/rtk-wrapper/core.js +2 -0
  144. package/dist/runtime/input-source.js +1 -1
  145. package/dist/runtime/run-command.js +1 -1
  146. package/dist/selectors/parse-entities.js +1 -1
  147. package/dist/session/daemon-state.js +2 -0
  148. package/dist/session/server.js +7 -8
  149. package/dist/shared/operations.js +1 -1
  150. package/dist/shared/protocol.js +1 -1
  151. package/dist/shared/routes.js +1 -1
  152. package/dist/shared/stdin-examples.js +1 -3
  153. package/dist/shared/types.js +1 -1
  154. package/dist/tool-runtime/runtime-tools.js +1 -0
  155. package/dist/workers/control-plane/aib-control-plane-worker.cjs +80 -0
  156. package/dist/workers/control-plane/client-config.default.json +3 -0
  157. package/dist/workers/product-storage.js +1 -0
  158. package/dist/workers/registry.js +1 -0
  159. package/extension/vscode-refactor-bridge-extension.vsix +0 -0
  160. package/package.json +6 -4
  161. package/runtimes/launcher/linux-x64/aib +0 -0
  162. package/runtimes/launcher/win-x64/aib.exe +0 -0
  163. package/runtimes/tools/rg/darwin-arm64/rg +0 -0
  164. package/runtimes/tools/rg/darwin-x64/rg +0 -0
  165. package/runtimes/tools/rg/linux-arm64/rg +0 -0
  166. package/runtimes/tools/rg/linux-x64/rg +0 -0
  167. package/runtimes/tools/rg/manifest.json +36 -0
  168. package/runtimes/tools/rg/win32-x64/rg.exe +0 -0
  169. package/runtimes/tools/rtk/darwin-arm64/rtk +0 -0
  170. package/runtimes/tools/rtk/darwin-x64/rtk +0 -0
  171. package/runtimes/tools/rtk/linux-arm64/rtk +0 -0
  172. package/runtimes/tools/rtk/linux-x64/rtk +0 -0
  173. package/runtimes/tools/rtk/manifest.json +36 -0
  174. package/runtimes/tools/rtk/win32-x64/rtk.exe +0 -0
  175. package/dist/help/json/docs/basics.md +0 -15
  176. package/dist/help/json/docs/config-setup.aliases.md +0 -56
  177. package/dist/help/json/docs/config-setup.excludes.md +0 -45
  178. package/dist/help/json/docs/config-setup.import-normalize.md +0 -86
  179. package/dist/help/json/docs/config-setup.import-rules.md +0 -96
  180. package/dist/help/json/docs/config-setup.tsconfigs.md +0 -33
  181. package/dist/help/json/docs/dsl.md +0 -25
  182. package/dist/help/json/docs/first-setup.md +0 -292
  183. package/dist/help/json/docs/help-format.md +0 -9
  184. package/dist/help/json/docs/help-protocol.md +0 -26
  185. package/dist/help/json/docs/imports.normalize.md +0 -47
  186. package/dist/help/json/docs/inspect.code.md +0 -41
  187. package/dist/help/json/docs/inspect.cycles.md +0 -38
  188. package/dist/help/json/docs/inspect.deps.md +0 -46
  189. package/dist/help/json/docs/inspect.duplicates.md +0 -65
  190. package/dist/help/json/docs/inspect.exports.md +0 -40
  191. package/dist/help/json/docs/inspect.file.md +0 -38
  192. package/dist/help/json/docs/inspect.graph.md +0 -139
  193. package/dist/help/json/docs/inspect.imports.md +0 -15
  194. package/dist/help/json/docs/inspect.md +0 -88
  195. package/dist/help/json/docs/inspect.members.md +0 -32
  196. package/dist/help/json/docs/inspect.tree.md +0 -32
  197. package/dist/help/json/docs/inspect.usages.md +0 -61
  198. package/dist/help/json/docs/modulePlan.md +0 -73
  199. package/dist/help/json/docs/move.md +0 -56
  200. package/dist/help/json/docs/mutation.md +0 -65
  201. package/dist/help/json/docs/patterns.md +0 -76
  202. package/dist/help/json/docs/prefs.md +0 -40
  203. package/dist/help/json/docs/qr.md +0 -37
  204. package/dist/help/json/docs/quick-map.md +0 -30
  205. package/dist/help/json/docs/refactor.batch.md +0 -72
  206. package/dist/help/json/docs/rename.md +0 -47
  207. package/dist/help/json/docs/reveal.md +0 -30
  208. package/dist/help/json/docs/selectors.md +0 -23
  209. package/dist/help/json/docs/session.md +0 -77
  210. package/dist/help/json/docs/view.md +0 -30
  211. package/dist/help/json/snippets/agents.md +0 -14
  212. package/dist/help/json/topics/basics.md +0 -13
  213. package/dist/help/json/topics/config-setup.aliases.md +0 -54
  214. package/dist/help/json/topics/config-setup.excludes.md +0 -43
  215. package/dist/help/json/topics/config-setup.import-normalize.md +0 -84
  216. package/dist/help/json/topics/config-setup.import-rules.md +0 -94
  217. package/dist/help/json/topics/config-setup.tsconfigs.md +0 -31
  218. package/dist/help/json/topics/dsl.md +0 -23
  219. package/dist/help/json/topics/first-setup.md +0 -290
  220. package/dist/help/json/topics/help-format.md +0 -7
  221. package/dist/help/json/topics/help-protocol.md +0 -24
  222. package/dist/help/json/topics/imports.normalize.md +0 -45
  223. package/dist/help/json/topics/inspect.code.md +0 -39
  224. package/dist/help/json/topics/inspect.cycles.md +0 -36
  225. package/dist/help/json/topics/inspect.deps.md +0 -44
  226. package/dist/help/json/topics/inspect.duplicates.md +0 -37
  227. package/dist/help/json/topics/inspect.exports.md +0 -38
  228. package/dist/help/json/topics/inspect.file.md +0 -36
  229. package/dist/help/json/topics/inspect.graph.md +0 -137
  230. package/dist/help/json/topics/inspect.imports.md +0 -13
  231. package/dist/help/json/topics/inspect.md +0 -86
  232. package/dist/help/json/topics/inspect.members.md +0 -30
  233. package/dist/help/json/topics/inspect.tree.md +0 -22
  234. package/dist/help/json/topics/inspect.usages.md +0 -59
  235. package/dist/help/json/topics/modulePlan.md +0 -60
  236. package/dist/help/json/topics/move.md +0 -46
  237. package/dist/help/json/topics/mutation.md +0 -63
  238. package/dist/help/json/topics/patterns.md +0 -74
  239. package/dist/help/json/topics/prefs.md +0 -38
  240. package/dist/help/json/topics/qr.md +0 -35
  241. package/dist/help/json/topics/quick-map.md +0 -28
  242. package/dist/help/json/topics/refactor.batch.md +0 -61
  243. package/dist/help/json/topics/rename.md +0 -42
  244. package/dist/help/json/topics/reveal.md +0 -28
  245. package/dist/help/json/topics/selectors.md +0 -21
  246. package/dist/help/json/topics/session.md +0 -59
  247. package/dist/help/json/topics/view.md +0 -28
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "helpVersion": "0.1.0",
4
- "generatedAt": "2026-05-30T02:39:54+03:00",
5
- "sourceCommit": "e42cd68",
6
- "contentHash": "sha256:c1e6c894a137b4b22612357c4b35458b5ea5d4de808efb9a495c77752b599e72",
4
+ "generatedAt": "2026-06-11T13:27:23+03:00",
5
+ "sourceCommit": "f3bddf34",
6
+ "contentHash": "sha256:3d73b26f64e061560b920add21f1ff74187b93f8adab6044c69a6d2ae436e534",
7
7
  "topics": {
8
8
  "help-format": {
9
9
  "contentHash": "sha256:b1a0a6ca2a5ac2e61285854e8dd3c951a329073f139ccca50ebe519c2ca0484e",
@@ -14,8 +14,8 @@
14
14
  "docsHash": "sha256:acb61b3f7b1cab9fecf82042c88b90bef28922093a9372f0f6829a4f7e1653d0"
15
15
  },
16
16
  "quick-map": {
17
- "contentHash": "sha256:522cd4651c58b08b97c8bbec7e3e452372552d4d86ae772368fa3d0922b446c4",
18
- "docsHash": "sha256:6b6b5ae3ff604b3fafa5ed42638e6c8eb75bbef9b6f34e38011c9ec6fab5acb5"
17
+ "contentHash": "sha256:54ccf688bacd8d37841070bb3a3330d17db1a109757612ca6a953530906db81c",
18
+ "docsHash": "sha256:10b48450656617df4e0efe51d1b89330f1d5c5cd9fdf9ab90feecec6cea52065"
19
19
  },
20
20
  "basics": {
21
21
  "contentHash": "sha256:e9c53461377826c660b9c79b6f6b88c21c37899cf6c97e90acccc56ef8bb9ce2",
@@ -46,16 +46,16 @@
46
46
  "docsHash": "sha256:9121c86188fc193ff597f1a8a4ed46ebda9b78dfacdb27682cc5462526db6e0f"
47
47
  },
48
48
  "dsl": {
49
- "contentHash": "sha256:2256703eb851fe0c6deaed62cbfa8b7a651f42a028c25c5ee68351ae173b4c55",
50
- "docsHash": "sha256:c62461472e8312429d46005d5a50fa2ba449318ee652e887047df60eb6fe5a46"
49
+ "contentHash": "sha256:82f02bf159829432c04993e05ea578ea9f40e28bb9904a41f99cccc409deaf6d",
50
+ "docsHash": "sha256:735401d4b8845b0d54f1151395f07fc1144b4370690ffd80f5ee40ae83a00d2c"
51
51
  },
52
52
  "patterns": {
53
- "contentHash": "sha256:67d2534ff617252b5cde3dd4c7f29c969846b39b3a7b602b8235b2e63e8a67b0",
54
- "docsHash": "sha256:4dc30610a735543d4e772772197e0b20abd658ac89104d8aeab08a9750e20285"
53
+ "contentHash": "sha256:2725e71c1162cd8db8ec0847bf050cc005b582878a3a170601780399b8cf115d",
54
+ "docsHash": "sha256:f93ff64ba4cbe34c001ac36b6f6208a05a31e0e9040ee46bcc0cfc0f0044b58f"
55
55
  },
56
56
  "session": {
57
- "contentHash": "sha256:c2a231e53defb09e165649d101d31a3797a3ee7a02d892b194f0c2e4805f9b4d",
58
- "docsHash": "sha256:fd1704519e94cb546c9a269bc305a6b15027213de4ca3a7272a091de601b1e5c"
57
+ "contentHash": "sha256:f91f49c531f30b0590e6a711dd906b0debcc8a66dabf2999fce43612072826bb",
58
+ "docsHash": "sha256:ed3e807531068e43f1d11769c86bbcace94f3f72af203819273dc2ca148b6fe2"
59
59
  },
60
60
  "prefs": {
61
61
  "contentHash": "sha256:088db6ae3ec56b27a5ed6857ea8379f24628d7b33064240493e2dbff4bb3f204",
@@ -66,20 +66,24 @@
66
66
  "docsHash": "sha256:3cfd022c10ad50634b4daca32ac5511146f32af3b66b632582914b106e8b9619"
67
67
  },
68
68
  "qr": {
69
- "contentHash": "sha256:de451f914b7d8f137d4cc00d7ba04b8e348667f0dddfc254e534359420d8db7b",
70
- "docsHash": "sha256:fb3fd59d272b5e59335c691092e8bb4e8eab6cdaa0296e0a64693e2d87b15668"
69
+ "contentHash": "sha256:700050d6a62553e12c35c8acb9e4b47471feeef82bb61a7612e953e81f0eb5bd",
70
+ "docsHash": "sha256:a0b5d09f2c8b191bfc161402bda58820e93a302048a3c43aedb52281dc1fb020"
71
+ },
72
+ "rg": {
73
+ "contentHash": "sha256:c91568738b7942f1586bfa698265e9886052f084a694d14d3eb3ae6282060c25",
74
+ "docsHash": "sha256:87336138d798100d7e16507f0e156dad06b92804cc557524d1dec0a6264ccc2e"
71
75
  },
72
76
  "reveal": {
73
77
  "contentHash": "sha256:789b91ca51c7c56e95eafafa3eb736a8bc6feb70e13cb71daa37828df0d2df52",
74
78
  "docsHash": "sha256:d44d0594ce5676ef38545f6663b81fa2b948fc0575121577f2bacd3810aee838"
75
79
  },
76
80
  "selectors": {
77
- "contentHash": "sha256:36ce875c11c453378e70402fd7d62ac5b6177259052fc64e603e435dd1f82eb9",
78
- "docsHash": "sha256:2252e2b47cd4152a821feff309d969f29a7711a875ddc99dbb565e8e477ffa52"
81
+ "contentHash": "sha256:b8897c49113766bd0762cc1f09478418f9228686acba60a853a82f63d4f4939b",
82
+ "docsHash": "sha256:75f83ac3defc745931e1899819456b19c0663c99b8ffd1930416716b2f029309"
79
83
  },
80
84
  "mutation": {
81
- "contentHash": "sha256:ef5e839fd31a5e4ad52e07288015a84ce5955f65fc4b53a29524a41d5730876a",
82
- "docsHash": "sha256:74f63f6848ed70f2574f5f4df2c32c54961306bd92be43a2fa58b5305fa15ef6"
85
+ "contentHash": "sha256:c46b878b05eec0db95664c148e2c2b82a1bc541ee843cecdfc4fbe0a24bdab2a",
86
+ "docsHash": "sha256:239e932b33bda72f6d6b37b53aaa9e4fcd5cd1cc09c5f0ef5633262781e1859c"
83
87
  },
84
88
  "rename": {
85
89
  "contentHash": "sha256:c1a2694179915bb3a8b1fb2cedf1c61e3a3d6ed68ed262acb01705151b1c757d",
@@ -97,17 +101,29 @@
97
101
  "contentHash": "sha256:9e169d6a8b45d468dae0fea26315454a0b11ee4bbb72c71a83d54c8aa38f6a75",
98
102
  "docsHash": "sha256:e7c87c2c3851d69f3648ea421639bf8e06f8b803549abe1b6520c21bf1af01a4"
99
103
  },
104
+ "file.move": {
105
+ "contentHash": "sha256:be35bc1795afd46035be9783203949e7f706171b9c624c0143ad4e9fa30801b4",
106
+ "docsHash": "sha256:05eab7aef652576651946c93b0d13966f560aea70921991f7b75001844deb101"
107
+ },
108
+ "file.rename": {
109
+ "contentHash": "sha256:7fef39e4e0cabf29353b8482879e5b02d4734d7cac16feba93f3a2dd8743d6bd",
110
+ "docsHash": "sha256:41800cf762cf08589854772cac0b4919f81e153fd0c7e5747dd8c07e309d424a"
111
+ },
112
+ "recipe.file-layout": {
113
+ "contentHash": "sha256:c0c5986a60fd49b1db6948b90b51adbe417df4b82cc96d6ed91d1ef06fde66d4",
114
+ "docsHash": "sha256:07362762cf88857745380c14989e69565d6f06bc5fdb12bf79169e1875c2e325"
115
+ },
100
116
  "imports.normalize": {
101
117
  "contentHash": "sha256:e0f3e6720307cfff1b68db1a6125e222f9798f1e29c5bcec3aab069acf1ba940",
102
118
  "docsHash": "sha256:21f8143b5f840ded4bb124ff17106dcc5a80b9131381c09f95a86c438f95a965"
103
119
  },
104
120
  "inspect": {
105
- "contentHash": "sha256:10d65d517d0da8645ca9a6a13f27a160212c8a0921481e8692900c94470f6a43",
106
- "docsHash": "sha256:9ca12072995fecabe132d146b214b8f4b334cb6bc670e13c806240ab130fe7e7"
121
+ "contentHash": "sha256:b6726ec8dd39f75c5a83f0026bf2d354e3da6b38a60cf404f65a4ca690c48f66",
122
+ "docsHash": "sha256:53b027f1444d3386d6d952ed1ecec10ae67fdfd2ca22b657411990703e00da18"
107
123
  },
108
124
  "inspect.file": {
109
- "contentHash": "sha256:f7ca0d010d47a36258048d26ef220c1c537d99cb18443225d41ff953687a9a79",
110
- "docsHash": "sha256:a7292898353ec1f4fc95accef0e5ce10b8803a135f8bbac4df6a49b4285b4758"
125
+ "contentHash": "sha256:837462936cbe9190275e86eb80553a92d18a562b72257cb6dea26e651d7d4f31",
126
+ "docsHash": "sha256:bfbcad0c5b1e23be01795b57a94fe9118480b85d6e30dcc0e5c9368e3098de88"
111
127
  },
112
128
  "inspect.imports": {
113
129
  "contentHash": "sha256:cbd03ab54f1373727cc6f62cf4140eb081e417c3cd9705c76aabb83e42954a7e",
@@ -122,20 +138,20 @@
122
138
  "docsHash": "sha256:1157d2721c1ec09e5ee92ec5c8f94bd621ff0d4b9cbb76fbf6de22d08def22b0"
123
139
  },
124
140
  "inspect.code": {
125
- "contentHash": "sha256:f2c584ff0e7251c70edee908e3f0916d8a5bb0f583d4761de0e16f9d847999fd",
126
- "docsHash": "sha256:dc4b50240dadc8bd5a5781261fdc77b9d44cd77ed3e0ec9c93f05e7d2544f58e"
141
+ "contentHash": "sha256:5d171649777387b0ed0b32d8638406be2c06748956d14edd5c3281a5f418ec6e",
142
+ "docsHash": "sha256:eff10029d356db3e7fcf22726a19223fb07f01bb340b4b281f9a56cbaa2e3b5a"
127
143
  },
128
144
  "inspect.deps": {
129
- "contentHash": "sha256:902a40156ace923ef27e09e3793e259362d7a3a07b4c406741e4cc777655a951",
130
- "docsHash": "sha256:22e4f7b230f32fd91a22ef07ba82078578a9435cb1d73ac4bd91fad124313d2a"
145
+ "contentHash": "sha256:d7e17ad4d37f085073a0843ecdb893de2dccfd2e9ade79ddd50670530c002fea",
146
+ "docsHash": "sha256:7838d535db9fb4fbd9e7d334905cceae869d3ff34688044467969cdab2b26974"
131
147
  },
132
148
  "inspect.usages": {
133
149
  "contentHash": "sha256:2f047d01e9acfbf9b51bcdb3442a8efbae0e02e1fedc1cdcf903f4b59c851921",
134
150
  "docsHash": "sha256:9b82674122c986159ca0ec82d89e4b382d0ed786b66a1cc3c9dd4f5f93bfef47"
135
151
  },
136
152
  "inspect.graph": {
137
- "contentHash": "sha256:1a0257ab6e699e930a9a4f77b7b258fc29ef73b83d0352faecb06beea7db9629",
138
- "docsHash": "sha256:2912898abad7c64b3e8f5669a86a70249c4d2fe742aaf3bd9b662cbaa1225a23"
153
+ "contentHash": "sha256:a7d4792c063f8244b84579c9dc5a847755653092a9026010c87bfa0bbbafdd60",
154
+ "docsHash": "sha256:2bda09bfcec9645bb2227fb8fca8f03a02a78c6b94118ab2ad5bd1e946d33c3f"
139
155
  },
140
156
  "inspect.tree": {
141
157
  "contentHash": "sha256:db064a9b7ddc8ba2530fadc7aebf214d0cf9551f2fc771b113cbd4b4511254d1",
@@ -2,6 +2,14 @@
2
2
 
3
3
  - Full: [File](<full.md>)
4
4
  - Bootstrap: [File](<bootstrap.md>)
5
+ - Help index: [File](<help-index.md>)
6
+ - Bootstrap pwsh: [File](<bootstrap.pwsh.md>)
7
+ - Bootstrap bash: [File](<bootstrap.bash.md>)
8
+ - Token qr.inline.examples.md: [File](<tokens/qr.inline.examples.md>)
9
+ - Token stdin.examples.bash.md: [File](<tokens/stdin.examples.bash.md>)
10
+ - Token stdin.examples.pwsh.md: [File](<tokens/stdin.examples.pwsh.md>)
11
+ - Token stdin.examples.with-qr.bash.md: [File](<tokens/stdin.examples.with-qr.bash.md>)
12
+ - Token stdin.examples.with-qr.pwsh.md: [File](<tokens/stdin.examples.with-qr.pwsh.md>)
5
13
  - Help help-format: [File](<topics/help-format.md>)
6
14
  - Docs help-format: [File](<docs/help-format.md>)
7
15
  - Help help-protocol: [File](<topics/help-protocol.md>)
@@ -34,6 +42,8 @@
34
42
  - Docs view: [File](<docs/view.md>)
35
43
  - Help qr: [File](<topics/qr.md>)
36
44
  - Docs qr: [File](<docs/qr.md>)
45
+ - Help rg: [File](<topics/rg.md>)
46
+ - Docs rg: [File](<docs/rg.md>)
37
47
  - Help reveal: [File](<topics/reveal.md>)
38
48
  - Docs reveal: [File](<docs/reveal.md>)
39
49
  - Help selectors: [File](<topics/selectors.md>)
@@ -48,6 +58,12 @@
48
58
  - Docs modulePlan: [File](<docs/modulePlan.md>)
49
59
  - Help refactor.batch: [File](<topics/refactor.batch.md>)
50
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>)
65
+ - Help recipe.file-layout: [File](<topics/recipe.file-layout.md>)
66
+ - Docs recipe.file-layout: [File](<docs/recipe.file-layout.md>)
51
67
  - Help imports.normalize: [File](<topics/imports.normalize.md>)
52
68
  - Docs imports.normalize: [File](<docs/imports.normalize.md>)
53
69
  - Help inspect: [File](<topics/inspect.md>)
@@ -75,83 +91,16 @@
75
91
  - Help inspect.cycles: [File](<topics/inspect.cycles.md>)
76
92
  - Docs inspect.cycles: [File](<docs/inspect.cycles.md>)
77
93
  - Snippets agents: [File](<snippets/agents.md>)
78
- - json Full: [File](<json/full.md>)
79
- - json Bootstrap: [File](<json/bootstrap.md>)
80
- - json Help help-format: [File](<json/topics/help-format.md>)
81
- - json Docs help-format: [File](<json/docs/help-format.md>)
82
- - json Help help-protocol: [File](<json/topics/help-protocol.md>)
83
- - json Docs help-protocol: [File](<json/docs/help-protocol.md>)
84
- - json Help quick-map: [File](<json/topics/quick-map.md>)
85
- - json Docs quick-map: [File](<json/docs/quick-map.md>)
86
- - json Help basics: [File](<json/topics/basics.md>)
87
- - json Docs basics: [File](<json/docs/basics.md>)
88
- - json Help first-setup: [File](<json/topics/first-setup.md>)
89
- - json Docs first-setup: [File](<json/docs/first-setup.md>)
90
- - json Help config-setup.import-rules: [File](<json/topics/config-setup.import-rules.md>)
91
- - json Docs config-setup.import-rules: [File](<json/docs/config-setup.import-rules.md>)
92
- - json Help config-setup.import-normalize: [File](<json/topics/config-setup.import-normalize.md>)
93
- - json Docs config-setup.import-normalize: [File](<json/docs/config-setup.import-normalize.md>)
94
- - json Help config-setup.aliases: [File](<json/topics/config-setup.aliases.md>)
95
- - json Docs config-setup.aliases: [File](<json/docs/config-setup.aliases.md>)
96
- - json Help config-setup.excludes: [File](<json/topics/config-setup.excludes.md>)
97
- - json Docs config-setup.excludes: [File](<json/docs/config-setup.excludes.md>)
98
- - json Help config-setup.tsconfigs: [File](<json/topics/config-setup.tsconfigs.md>)
99
- - json Docs config-setup.tsconfigs: [File](<json/docs/config-setup.tsconfigs.md>)
100
- - json Help dsl: [File](<json/topics/dsl.md>)
101
- - json Docs dsl: [File](<json/docs/dsl.md>)
102
- - json Help patterns: [File](<json/topics/patterns.md>)
103
- - json Docs patterns: [File](<json/docs/patterns.md>)
104
- - json Help session: [File](<json/topics/session.md>)
105
- - json Docs session: [File](<json/docs/session.md>)
106
- - json Help prefs: [File](<json/topics/prefs.md>)
107
- - json Docs prefs: [File](<json/docs/prefs.md>)
108
- - json Help view: [File](<json/topics/view.md>)
109
- - json Docs view: [File](<json/docs/view.md>)
110
- - json Help qr: [File](<json/topics/qr.md>)
111
- - json Docs qr: [File](<json/docs/qr.md>)
112
- - json Help reveal: [File](<json/topics/reveal.md>)
113
- - json Docs reveal: [File](<json/docs/reveal.md>)
114
- - json Help selectors: [File](<json/topics/selectors.md>)
115
- - json Docs selectors: [File](<json/docs/selectors.md>)
116
- - json Help mutation: [File](<json/topics/mutation.md>)
117
- - json Docs mutation: [File](<json/docs/mutation.md>)
118
- - json Help rename: [File](<json/topics/rename.md>)
119
- - json Docs rename: [File](<json/docs/rename.md>)
120
- - json Help move: [File](<json/topics/move.md>)
121
- - json Docs move: [File](<json/docs/move.md>)
122
- - json Help modulePlan: [File](<json/topics/modulePlan.md>)
123
- - json Docs modulePlan: [File](<json/docs/modulePlan.md>)
124
- - json Help refactor.batch: [File](<json/topics/refactor.batch.md>)
125
- - json Docs refactor.batch: [File](<json/docs/refactor.batch.md>)
126
- - json Help imports.normalize: [File](<json/topics/imports.normalize.md>)
127
- - json Docs imports.normalize: [File](<json/docs/imports.normalize.md>)
128
- - json Help inspect: [File](<json/topics/inspect.md>)
129
- - json Docs inspect: [File](<json/docs/inspect.md>)
130
- - json Help inspect.file: [File](<json/topics/inspect.file.md>)
131
- - json Docs inspect.file: [File](<json/docs/inspect.file.md>)
132
- - json Help inspect.imports: [File](<json/topics/inspect.imports.md>)
133
- - json Docs inspect.imports: [File](<json/docs/inspect.imports.md>)
134
- - json Help inspect.exports: [File](<json/topics/inspect.exports.md>)
135
- - json Docs inspect.exports: [File](<json/docs/inspect.exports.md>)
136
- - json Help inspect.members: [File](<json/topics/inspect.members.md>)
137
- - json Docs inspect.members: [File](<json/docs/inspect.members.md>)
138
- - json Help inspect.code: [File](<json/topics/inspect.code.md>)
139
- - json Docs inspect.code: [File](<json/docs/inspect.code.md>)
140
- - json Help inspect.deps: [File](<json/topics/inspect.deps.md>)
141
- - json Docs inspect.deps: [File](<json/docs/inspect.deps.md>)
142
- - json Help inspect.usages: [File](<json/topics/inspect.usages.md>)
143
- - json Docs inspect.usages: [File](<json/docs/inspect.usages.md>)
144
- - json Help inspect.graph: [File](<json/topics/inspect.graph.md>)
145
- - json Docs inspect.graph: [File](<json/docs/inspect.graph.md>)
146
- - json Help inspect.tree: [File](<json/topics/inspect.tree.md>)
147
- - json Docs inspect.tree: [File](<json/docs/inspect.tree.md>)
148
- - json Help inspect.duplicates: [File](<json/topics/inspect.duplicates.md>)
149
- - json Docs inspect.duplicates: [File](<json/docs/inspect.duplicates.md>)
150
- - json Help inspect.cycles: [File](<json/topics/inspect.cycles.md>)
151
- - json Docs inspect.cycles: [File](<json/docs/inspect.cycles.md>)
152
- - json Snippets agents: [File](<json/snippets/agents.md>)
153
94
  - dsl Full: [File](<dsl/full.md>)
154
95
  - dsl Bootstrap: [File](<dsl/bootstrap.md>)
96
+ - dsl Help index: [File](<dsl/help-index.md>)
97
+ - dsl Bootstrap pwsh: [File](<dsl/bootstrap.pwsh.md>)
98
+ - dsl Bootstrap bash: [File](<dsl/bootstrap.bash.md>)
99
+ - dsl Token qr.inline.examples.md: [File](<dsl/tokens/qr.inline.examples.md>)
100
+ - dsl Token stdin.examples.bash.md: [File](<dsl/tokens/stdin.examples.bash.md>)
101
+ - dsl Token stdin.examples.pwsh.md: [File](<dsl/tokens/stdin.examples.pwsh.md>)
102
+ - dsl Token stdin.examples.with-qr.bash.md: [File](<dsl/tokens/stdin.examples.with-qr.bash.md>)
103
+ - dsl Token stdin.examples.with-qr.pwsh.md: [File](<dsl/tokens/stdin.examples.with-qr.pwsh.md>)
155
104
  - dsl Help help-format: [File](<dsl/topics/help-format.md>)
156
105
  - dsl Docs help-format: [File](<dsl/docs/help-format.md>)
157
106
  - dsl Help help-protocol: [File](<dsl/topics/help-protocol.md>)
@@ -184,6 +133,8 @@
184
133
  - dsl Docs view: [File](<dsl/docs/view.md>)
185
134
  - dsl Help qr: [File](<dsl/topics/qr.md>)
186
135
  - dsl Docs qr: [File](<dsl/docs/qr.md>)
136
+ - dsl Help rg: [File](<dsl/topics/rg.md>)
137
+ - dsl Docs rg: [File](<dsl/docs/rg.md>)
187
138
  - dsl Help reveal: [File](<dsl/topics/reveal.md>)
188
139
  - dsl Docs reveal: [File](<dsl/docs/reveal.md>)
189
140
  - dsl Help selectors: [File](<dsl/topics/selectors.md>)
@@ -198,6 +149,12 @@
198
149
  - dsl Docs modulePlan: [File](<dsl/docs/modulePlan.md>)
199
150
  - dsl Help refactor.batch: [File](<dsl/topics/refactor.batch.md>)
200
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>)
156
+ - dsl Help recipe.file-layout: [File](<dsl/topics/recipe.file-layout.md>)
157
+ - dsl Docs recipe.file-layout: [File](<dsl/docs/recipe.file-layout.md>)
201
158
  - dsl Help imports.normalize: [File](<dsl/topics/imports.normalize.md>)
202
159
  - dsl Docs imports.normalize: [File](<dsl/docs/imports.normalize.md>)
203
160
  - dsl Help inspect: [File](<dsl/topics/inspect.md>)
@@ -0,0 +1,2 @@
1
+ Inline:
2
+ aib qr @scripts/a.txt h=80 @scripts/b.py o=300 l=50 @logs/app.log all
@@ -0,0 +1,8 @@
1
+ Bash/Zsh:
2
+ aib <command> --stdin <<'EOF'
3
+ <input>
4
+ EOF
5
+
6
+ aib inspect --stdin <<'EOF'
7
+ tree . +onlyDirs limit=20
8
+ EOF
@@ -0,0 +1,8 @@
1
+ PowerShell:
2
+ @'
3
+ <input>
4
+ '@ | aib <command> --stdin
5
+
6
+ @'
7
+ tree . +onlyDirs limit=20
8
+ '@ | aib inspect --stdin
@@ -0,0 +1,12 @@
1
+ Bash/Zsh:
2
+ aib <command> --stdin <<'EOF'
3
+ <input>
4
+ EOF
5
+
6
+ aib inspect --stdin <<'EOF'
7
+ tree . +onlyDirs limit=20
8
+ EOF
9
+
10
+ aib qr --stdin <<'EOF'
11
+ qr package.json h=20
12
+ EOF
@@ -0,0 +1,12 @@
1
+ PowerShell:
2
+ @'
3
+ <input>
4
+ '@ | aib <command> --stdin
5
+
6
+ @'
7
+ tree . +onlyDirs limit=20
8
+ '@ | aib inspect --stdin
9
+
10
+ @'
11
+ qr package.json h=20
12
+ '@ | aib qr --stdin
@@ -8,9 +8,10 @@ DSL request model:
8
8
  - For one-off file operations, pass the path directly.
9
9
 
10
10
  Syntax:
11
- @file <path> default file
12
- @source <path> default sourceFile for mutations
13
- op arg arg key=value request
11
+ @file <path> default file
12
+ @source <path> default sourceFile for mutations
13
+ @base <dir> default base dir for file mutations
14
+ op arg arg key=value request
14
15
  +flag boolean true
15
16
  -flag boolean false
16
17
  >name save reusable artifact when supported
@@ -0,0 +1,44 @@
1
+ Modes: preview/apply or execute.
2
+ Use execute for routine changes.
3
+ Use preview/apply when learning a mutation command or inspecting a large multi-step request before writing files.
4
+
5
+ file move moves whole files into target directories.
6
+ Missing target directories are created automatically.
7
+
8
+ Use it when the filesystem layout is the intent.
9
+
10
+ Move to directory:
11
+ file move toDir preview --stdin
12
+ file move toDir execute --stdin
13
+ file move toDir apply <previewId>
14
+
15
+ Use preview/apply when you want to inspect planned file moves before writing files.
16
+ Use execute when you want to write immediately.
17
+
18
+ Run:
19
+ aib file move toDir execute --stdin
20
+
21
+ Input:
22
+ @base src/svc
23
+ moveToDir facade: ../services/fileA.ts fileB.ts
24
+ moveToDir ../core/services: fileC.ts classes/main/fileD.ts
25
+
26
+ How this resolves:
27
+ ../services/fileA.ts resolves to src/services/fileA.ts
28
+ fileB.ts resolves to src/svc/fileB.ts
29
+ facade resolves to src/svc/facade
30
+ ../core/services resolves to src/core/services
31
+ moved files keep their basename, not their source subdirectory
32
+
33
+ Resulting files:
34
+ src/svc/facade/fileA.ts
35
+ src/svc/facade/fileB.ts
36
+ src/core/services/fileC.ts
37
+ src/core/services/fileD.ts
38
+
39
+ Rules:
40
+ - @base sets the base directory for source files and target directories.
41
+ - source file paths resolve from @base; cwd-relative paths are accepted when the @base path does not exist.
42
+ - target directories resolve from @base.
43
+ - source paths and target directories may use `..`.
44
+ - file move supports files, not directories.
@@ -0,0 +1,33 @@
1
+ Modes: preview/apply or execute.
2
+ Use execute for routine changes.
3
+ Use preview/apply when learning a mutation command or inspecting a large multi-step request before writing files.
4
+
5
+ file rename renames whole files.
6
+
7
+ Rename files:
8
+ file rename preview --stdin
9
+ file rename execute --stdin
10
+ file rename apply <previewId>
11
+
12
+ Use preview/apply when you want to inspect planned file renames before writing files.
13
+ Use execute when you want to write immediately.
14
+
15
+ Run:
16
+ aib file rename execute --stdin
17
+
18
+ Input:
19
+ @base src
20
+ rename svc/ws-cli.ts->cli.ts svc/ws-command.ts->command.ts
21
+ rename svc/core/opt-build.ts->builder.ts
22
+
23
+ How this resolves:
24
+ - source files resolve from @base;
25
+ - target names without a directory stay beside each source file.
26
+
27
+ Rules:
28
+ - @base sets the base directory for source files.
29
+ - source file paths resolve from @base; cwd-relative paths are accepted when the @base path does not exist.
30
+ - target names without a directory stay beside each source file.
31
+ - target paths with a directory resolve from @base.
32
+ - source paths and target paths may use `..`.
33
+ - file rename supports files, not directories.
@@ -2,7 +2,7 @@ Use code to fetch exact declarations or members.
2
2
  It returns focused code without reading the whole file.
3
3
 
4
4
  Good for:
5
- - reading a known function, class, method, or declaration
5
+ - reading a known function, class, method, declaration, `default`, or `IIFE#N`
6
6
  - fetching several related code blocks in one request
7
7
  - keeping context focused on code needed for the current task
8
8
 
@@ -19,9 +19,9 @@ Use -ranges for source without ranges.
19
19
  Prefs:
20
20
  inspect.code.maxNonEmptyLines
21
21
 
22
- Run:
23
- aib inspect --stdin
24
-
22
+ Run:
23
+ aib inspect --stdin
24
+
25
25
  Input:
26
26
  code @svc/service.ts Service.{render,reset} normalize
27
- code @svc/serviceB.ts ServiceB.{constructor}
27
+ code @svc/serviceB.ts ServiceB.{constructor} default IIFE#1
@@ -1,18 +1,18 @@
1
1
  Use deps to see what one entity depends on inside its file.
2
2
  It separates type-only dependencies from runtime value dependencies.
3
3
 
4
- Good for:
5
- - checking what a symbol may need when moved or extracted
6
- - spotting nearby types, constants, or helpers tied to one entity
7
- - deciding whether one symbol is standalone or tied to nearby declarations
4
+ Good for:
5
+ - checking what a symbol may need when moved or extracted
6
+ - spotting nearby types, constants, or helpers tied to one entity
7
+ - deciding whether one symbol is standalone or tied to nearby declarations
8
8
  - debugging mutation failures caused by local dependency shape
9
9
 
10
10
  Controls:
11
11
  file, entity, entities, parent
12
12
 
13
- Run:
14
- aib inspect --stdin
15
-
13
+ Run:
14
+ aib inspect --stdin
15
+
16
16
  Input:
17
17
  deps @svc/service.ts entities=[createService,normalize,Service.{render,reset}]
18
18
  deps @svc/serviceB.ts ServiceB.{constructor} getConfig
@@ -3,8 +3,9 @@ Exported declarations are marked in the output.
3
3
  It shows what lives in the file before you decide whether to read code.
4
4
 
5
5
  Good for:
6
- - mapping an unfamiliar file
6
+ - mapping a file
7
7
  - listing top-level declarations
8
+ - seeing default exports, decorators, IIFEs, and runtime calls
8
9
  - checking whether a file contains real declarations or mostly re-exports
9
10
 
10
11
  Do not add limit just in case.
@@ -35,7 +35,7 @@ scope=src creates a broad reusable map for src.
35
35
  scope=src/services is cheaper for local work.
36
36
  scope=[src/services,src/components] compares known areas without mapping all src.
37
37
 
38
- After you understand which graph sections matter, hide the rest with flags or prefs.
38
+ After you understand which graph sections matter, hide the rest with flags.
39
39
  Graph can be noisy; shape it for the current task.
40
40
 
41
41
  Controls:
@@ -59,8 +59,8 @@ graph from=aib:graph:services-graph focus=[@svc/users.ts,@svc/admins.ts] +symbol
59
59
  Focus saved graph later:
60
60
  inspect graph --from-file aib:graph:services-graph --focus @svc/messages.ts --focus @svc/posts.ts --symbol-usage
61
61
 
62
- Inline graph focus can add focus and symbolUsage.
63
- Use DSL, request files, or prefs to hide sections such as edges/hubs/entrypoints/leaves.
62
+ Inline graph focus can add focus and symbolUsage.
63
+ Use DSL or request flags to hide sections such as edges/hubs/entrypoints/leaves.
64
64
 
65
65
  Specialized graph command:
66
66
  Run:
@@ -26,16 +26,16 @@ local import cycles cycles
26
26
  Prefer one batch DSL request for related questions.
27
27
 
28
28
  Batch example:
29
-
30
- Run:
31
- aib inspect --stdin
32
-
29
+
30
+ Run:
31
+ aib inspect --stdin
32
+
33
33
  Input:
34
34
  @file @svc/service.ts
35
35
  file
36
36
  file @svc/serviceB.ts
37
37
  members Service
38
- code entities=[Service.{render,reset},normalize]
38
+ code entities=[Service.{render,reset},normalize,default,IIFE#1]
39
39
  code @svc/serviceC.ts ServiceC -ranges
40
40
  usages target=@svc/service.ts normalize scope=src detail=loc
41
41
  duplicates scope=src/scripts detail=sum limit=20
@@ -1,19 +1,29 @@
1
- Mutation commands change code through TS/IDE refactors.
2
- Successful mutations update affected references and imports.
3
-
1
+ Mutation commands change code and files through TS/IDE-backed operations.
2
+ Successful mutations update affected references and imports.
3
+
4
+ Semantic mutations change TypeScript symbols/declarations.
5
+ File mutations change file layout.
6
+
4
7
  After a successful mutation, do not manually patch the same imports unless aib reports a follow-up or checks show a real issue.
5
8
 
6
- If move/modulePlan imports do not match the repo style, run:
9
+ If mutation imports do not match the repo style, run:
7
10
  aib help config-setup.import-rules
8
11
 
9
- AIB mutations are designed to reduce manual checking.
10
- Your job is to express the intent in DSL.
11
- AIB's job is to convert that intent into code changes.
12
-
13
- Do not read all changed files just because a mutation touched them.
14
- That defeats the purpose of using AIB for mechanical refactors.
15
-
16
- If the command succeeds, the requested mechanical change was applied.
12
+ AIB mutations are designed to reduce manual checking.
13
+ Your job is to express the intent in DSL.
14
+ AIB's job is to convert that intent into code changes.
15
+
16
+ Choose the mutation by intent:
17
+ rename - rename TypeScript symbols
18
+ move toFile - move TypeScript declarations into one file
19
+ modulePlan - split one source file into several modules
20
+ file move toDir - move whole files into directories
21
+ file rename - rename whole files.
22
+
23
+ Do not read all changed files just because a mutation touched them.
24
+ That defeats the purpose of using AIB for mechanical refactors.
25
+
26
+ If the command succeeds, the requested mechanical change was applied.
17
27
  After failure or partial success, use the output to decide the next request.
18
28
 
19
29
  When running mutation commands, set the harness timeout to 3 minutes.
@@ -26,7 +36,7 @@ preview inspect planned edits, then apply by id
26
36
  apply write a previewed change
27
37
  execute write immediately
28
38
 
29
- Use execute for routine rename/move/modulePlan requests.
39
+ Use execute for routine requests.
30
40
 
31
41
  Use preview/apply when you are learning a mutation command, or when one request contains a large multi-step change that you want to inspect before writing files.
32
42
  Typical examples: a huge modulePlan or refactor batch.
@@ -8,7 +8,7 @@ Use normal text search when the question is just text.
8
8
 
9
9
  For a first pass in a new codebase, map directories before reading files:
10
10
 
11
- tree src depth=5 +onlyDirs limit=200
11
+ aib inspect tree src --depth 5 --only-dirs --limit 200
12
12
 
13
13
  Start compact for broad scans.
14
14
  Use summary, locations, or local graph views first when output could be large.
@@ -18,10 +18,6 @@ If output hides data and shows `view: aib:res_<id>`, use `aib view ...` to fetch
18
18
  Compact output is a starting point, not a substitute for needed code.
19
19
  Fetch exact code when correctness depends on implementation details.
20
20
 
21
- Use prefs when the current phase repeats the same output shape.
22
- Turn details off when they stop helping.
23
- Turn them back on when they matter.
24
-
25
21
  Use @file only when several following operations share the same file.
26
22
  For independent one-off file requests, pass the path directly:
27
23
  file @svc/a.ts
@@ -9,27 +9,12 @@ For focused text reads, prefer qr over cat/Get-Content/type, especially when ali
9
9
  Use shell reads only when piping into shell tooling or qr is unavailable.
10
10
 
11
11
  Controls:
12
- -h N head; first N lines
13
- -t N tail; last N lines
14
- -o N offset; starting line, 1-based
15
- -l N limit; line count for offset reads
16
- -a all; whole file
12
+ h=N head; first N lines
13
+ t=N tail; last N lines
14
+ o=N l=N range; starting line and line count
15
+ all whole file
17
16
 
18
- If no window is provided, qr uses -h 80.
19
- If -a is present, it wins over other window flags.
17
+ If no window is provided, qr uses h=80.
18
+ If all is present, it wins over other window flags.
20
19
 
21
- Run:
22
- aib qr --stdin
23
-
24
- Input:
25
- qr @scripts/a.txt h=80
26
- qr @scripts/b.py o=300 l=50
27
- qr @scripts/c.md t=120
28
- qr @logs/app.log all
29
-
30
- Inline:
31
- aib qr @scripts/a.txt -h 80
32
- aib qr @scripts/b.py -o 300 -l 50
33
- aib qr @logs/app.log -a
34
-
35
- Use stdin for several reads.
20
+ {{qr.inline.examples}}