@automaton-labs/aib 0.0.5 → 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.
- package/dist/bin/cli.js +4 -2
- package/dist/commands/apply-module-plan.js +3 -3
- package/dist/commands/background-command.js +2 -0
- package/dist/commands/captured-input.js +1 -2
- package/dist/commands/config-command.js +2 -1
- package/dist/commands/config-output.js +10 -8
- package/dist/commands/control-plane-command.js +1 -0
- package/dist/commands/declaration-command.js +7 -0
- package/dist/commands/declaration-execution-cache.js +1 -0
- package/dist/commands/declaration-format.js +1 -0
- package/dist/commands/declaration-preview-cache.js +2 -0
- package/dist/commands/doctor.js +3 -1
- package/dist/commands/execution-command.js +1 -1
- package/dist/commands/file-command.js +1 -0
- package/dist/commands/file-move-to-dir-execution-cache.js +1 -0
- package/dist/commands/file-move-to-dir-preview-cache.js +2 -0
- package/dist/commands/file-move-to-dir.js +5 -0
- package/dist/commands/file-mutation-runtime.js +1 -0
- package/dist/commands/file-refactor-batch-execution-cache.js +1 -0
- package/dist/commands/file-refactor-batch-preview-cache.js +2 -0
- package/dist/commands/file-refactor-batch.js +5 -0
- package/dist/commands/file-rename-execution-cache.js +1 -0
- package/dist/commands/file-rename-preview-cache.js +2 -0
- package/dist/commands/file-rename.js +5 -0
- package/dist/commands/help-command.js +5 -5
- package/dist/commands/host-command.js +1 -0
- package/dist/commands/inspect-cycles.js +3 -3
- package/dist/commands/inspect-format.js +15 -15
- package/dist/commands/inspect-tree.js +2 -2
- package/dist/commands/inspect.js +12 -12
- package/dist/commands/move-to-file.js +2 -2
- package/dist/commands/ota-command.js +2 -0
- package/dist/commands/quick-read.js +8 -8
- package/dist/commands/refactor-batch.js +4 -4
- package/dist/commands/rename-entities.js +4 -4
- package/dist/commands/result-view.js +6 -5
- package/dist/commands/session-workspace.js +7 -7
- package/dist/commands/worker-command.js +1 -0
- package/dist/config/defaults.js +1 -1
- package/dist/config/env-vars.js +1 -1
- package/dist/config/path-aliases.js +1 -1
- package/dist/config/resolve-command-alias.js +1 -1
- package/dist/config/workspace-root.js +3 -3
- package/dist/content/content-bundle.js +1 -1
- package/dist/dsl/aib-dsl.js +1 -1
- package/dist/dsl/declaration-dsl.js +1 -0
- package/dist/dsl/file-move-to-dir-dsl.js +1 -0
- package/dist/dsl/file-refactor-batch-dsl.js +1 -0
- package/dist/dsl/file-rename-dsl.js +1 -0
- package/dist/help/bootstrap.bash.md +907 -0
- package/dist/help/bootstrap.md +105 -144
- package/dist/help/{json/bootstrap.md → bootstrap.pwsh.md} +216 -397
- package/dist/help/docs/dsl.md +4 -3
- package/dist/help/docs/file.move.md +46 -0
- package/dist/help/docs/file.rename.md +35 -0
- package/dist/help/docs/help-format.md +4 -7
- package/dist/help/docs/inspect.code.md +5 -5
- package/dist/help/docs/inspect.deps.md +7 -7
- package/dist/help/docs/inspect.file.md +2 -1
- package/dist/help/docs/inspect.graph.md +3 -3
- package/dist/help/docs/inspect.md +5 -5
- package/dist/help/docs/mutation.md +23 -13
- package/dist/help/docs/patterns.md +1 -5
- package/dist/help/docs/qr.md +7 -22
- package/dist/help/docs/quick-map.md +1 -0
- package/dist/help/docs/recipe.file-layout.md +15 -0
- package/dist/help/docs/rg.md +22 -0
- package/dist/help/docs/selectors.md +3 -2
- package/dist/help/docs/session.md +1 -1
- package/dist/help/dsl/bootstrap.bash.md +907 -0
- package/dist/help/dsl/bootstrap.md +105 -144
- package/dist/help/{json/full.md → dsl/bootstrap.pwsh.md} +216 -397
- package/dist/help/dsl/docs/dsl.md +4 -3
- package/dist/help/dsl/docs/file.move.md +46 -0
- package/dist/help/dsl/docs/file.rename.md +35 -0
- package/dist/help/dsl/docs/help-format.md +4 -7
- package/dist/help/dsl/docs/inspect.code.md +5 -5
- package/dist/help/dsl/docs/inspect.deps.md +7 -7
- package/dist/help/dsl/docs/inspect.file.md +2 -1
- package/dist/help/dsl/docs/inspect.graph.md +3 -3
- package/dist/help/dsl/docs/inspect.md +5 -5
- package/dist/help/dsl/docs/mutation.md +23 -13
- package/dist/help/dsl/docs/patterns.md +1 -5
- package/dist/help/dsl/docs/qr.md +7 -22
- package/dist/help/dsl/docs/quick-map.md +1 -0
- package/dist/help/dsl/docs/recipe.file-layout.md +15 -0
- package/dist/help/dsl/docs/rg.md +22 -0
- package/dist/help/dsl/docs/selectors.md +3 -2
- package/dist/help/dsl/docs/session.md +1 -1
- package/dist/help/dsl/full.md +105 -144
- package/dist/help/dsl/help-index.md +44 -0
- package/dist/help/dsl/tokens/qr.inline.examples.md +2 -0
- package/dist/help/dsl/tokens/stdin.examples.bash.md +8 -0
- package/dist/help/dsl/tokens/stdin.examples.pwsh.md +8 -0
- package/dist/help/dsl/tokens/stdin.examples.with-qr.bash.md +12 -0
- package/dist/help/dsl/tokens/stdin.examples.with-qr.pwsh.md +12 -0
- package/dist/help/dsl/topics/dsl.md +4 -3
- package/dist/help/dsl/topics/file.move.md +44 -0
- package/dist/help/dsl/topics/file.rename.md +33 -0
- package/dist/help/dsl/topics/help-format.md +4 -7
- package/dist/help/dsl/topics/inspect.code.md +5 -5
- package/dist/help/dsl/topics/inspect.deps.md +7 -7
- package/dist/help/dsl/topics/inspect.file.md +2 -1
- package/dist/help/dsl/topics/inspect.graph.md +3 -3
- package/dist/help/dsl/topics/inspect.md +5 -5
- package/dist/help/dsl/topics/mutation.md +23 -13
- package/dist/help/dsl/topics/patterns.md +1 -5
- package/dist/help/dsl/topics/qr.md +7 -22
- package/dist/help/dsl/topics/quick-map.md +1 -0
- package/dist/help/dsl/topics/recipe.file-layout.md +13 -0
- package/dist/help/dsl/topics/rg.md +20 -0
- package/dist/help/dsl/topics/selectors.md +3 -2
- package/dist/help/dsl/topics/session.md +1 -1
- package/dist/help/full.md +105 -144
- package/dist/help/help-index.md +44 -0
- package/dist/help/help-meta.json +45 -29
- package/dist/help/index.md +32 -75
- package/dist/help/tokens/qr.inline.examples.md +2 -0
- package/dist/help/tokens/stdin.examples.bash.md +8 -0
- package/dist/help/tokens/stdin.examples.pwsh.md +8 -0
- package/dist/help/tokens/stdin.examples.with-qr.bash.md +12 -0
- package/dist/help/tokens/stdin.examples.with-qr.pwsh.md +12 -0
- package/dist/help/topics/dsl.md +4 -3
- package/dist/help/topics/file.move.md +44 -0
- package/dist/help/topics/file.rename.md +33 -0
- package/dist/help/topics/help-format.md +4 -7
- package/dist/help/topics/inspect.code.md +5 -5
- package/dist/help/topics/inspect.deps.md +7 -7
- package/dist/help/topics/inspect.file.md +2 -1
- package/dist/help/topics/inspect.graph.md +3 -3
- package/dist/help/topics/inspect.md +5 -5
- package/dist/help/topics/mutation.md +23 -13
- package/dist/help/topics/patterns.md +1 -5
- package/dist/help/topics/qr.md +7 -22
- package/dist/help/topics/quick-map.md +1 -0
- package/dist/help/topics/recipe.file-layout.md +13 -0
- package/dist/help/topics/rg.md +20 -0
- package/dist/help/topics/selectors.md +3 -2
- package/dist/help/topics/session.md +1 -1
- package/dist/host/capabilities.js +1 -0
- package/dist/ide-launch/common.cjs +162 -162
- package/dist/managed-host/extension-vsix-resolver.js +1 -1
- package/dist/managed-host/manage-serve-web-host.cjs +141 -141
- package/dist/managed-host/serve-web-autostart.js +1 -1
- package/dist/managed-host/serve-web-host.cjs +1985 -1660
- package/dist/observability/config.js +1 -1
- package/dist/payloads/read-stdin-json.js +1 -1
- package/dist/rg-wrapper/core.js +6 -0
- package/dist/rg-wrapper/options.js +1 -0
- package/dist/rtk-wrapper/core.js +2 -0
- package/dist/runtime/input-source.js +1 -1
- package/dist/runtime/managed-runtime-provisioning.js +1 -1
- package/dist/runtime/run-command.js +1 -1
- package/dist/selectors/parse-entities.js +1 -1
- package/dist/session/daemon-state.js +2 -0
- package/dist/session/server.js +7 -6
- package/dist/shared/errors.js +14 -13
- package/dist/shared/operations.js +1 -1
- package/dist/shared/protocol.js +1 -1
- package/dist/shared/routes.js +1 -1
- package/dist/shared/stdin-examples.js +1 -0
- package/dist/shared/types.js +1 -1
- package/dist/tool-runtime/runtime-tools.js +1 -0
- package/dist/tracing/trace.js +5 -3
- package/dist/workers/control-plane/aib-control-plane-worker.cjs +80 -0
- package/dist/workers/control-plane/client-config.default.json +3 -0
- package/dist/workers/product-storage.js +1 -0
- package/dist/workers/registry.js +1 -0
- package/extension/vscode-refactor-bridge-extension.vsix +0 -0
- package/package.json +6 -4
- package/runtimes/launcher/linux-x64/aib +0 -0
- package/runtimes/launcher/win-x64/aib.exe +0 -0
- package/runtimes/tools/rg/darwin-arm64/rg +0 -0
- package/runtimes/tools/rg/darwin-x64/rg +0 -0
- package/runtimes/tools/rg/linux-arm64/rg +0 -0
- package/runtimes/tools/rg/linux-x64/rg +0 -0
- package/runtimes/tools/rg/manifest.json +36 -0
- package/runtimes/tools/rg/win32-x64/rg.exe +0 -0
- package/runtimes/tools/rtk/darwin-arm64/rtk +0 -0
- package/runtimes/tools/rtk/darwin-x64/rtk +0 -0
- package/runtimes/tools/rtk/linux-arm64/rtk +0 -0
- package/runtimes/tools/rtk/linux-x64/rtk +0 -0
- package/runtimes/tools/rtk/manifest.json +36 -0
- package/runtimes/tools/rtk/win32-x64/rtk.exe +0 -0
- package/scripts/provision-runtime.cjs +25 -1
- package/dist/help/json/docs/basics.md +0 -15
- package/dist/help/json/docs/config-setup.aliases.md +0 -56
- package/dist/help/json/docs/config-setup.excludes.md +0 -45
- package/dist/help/json/docs/config-setup.import-normalize.md +0 -86
- package/dist/help/json/docs/config-setup.import-rules.md +0 -96
- package/dist/help/json/docs/config-setup.tsconfigs.md +0 -33
- package/dist/help/json/docs/dsl.md +0 -25
- package/dist/help/json/docs/first-setup.md +0 -292
- package/dist/help/json/docs/help-format.md +0 -12
- package/dist/help/json/docs/help-protocol.md +0 -26
- package/dist/help/json/docs/imports.normalize.md +0 -47
- package/dist/help/json/docs/inspect.code.md +0 -41
- package/dist/help/json/docs/inspect.cycles.md +0 -38
- package/dist/help/json/docs/inspect.deps.md +0 -46
- package/dist/help/json/docs/inspect.duplicates.md +0 -65
- package/dist/help/json/docs/inspect.exports.md +0 -40
- package/dist/help/json/docs/inspect.file.md +0 -38
- package/dist/help/json/docs/inspect.graph.md +0 -139
- package/dist/help/json/docs/inspect.imports.md +0 -15
- package/dist/help/json/docs/inspect.md +0 -88
- package/dist/help/json/docs/inspect.members.md +0 -32
- package/dist/help/json/docs/inspect.tree.md +0 -32
- package/dist/help/json/docs/inspect.usages.md +0 -61
- package/dist/help/json/docs/modulePlan.md +0 -73
- package/dist/help/json/docs/move.md +0 -56
- package/dist/help/json/docs/mutation.md +0 -65
- package/dist/help/json/docs/patterns.md +0 -76
- package/dist/help/json/docs/prefs.md +0 -40
- package/dist/help/json/docs/qr.md +0 -37
- package/dist/help/json/docs/quick-map.md +0 -30
- package/dist/help/json/docs/refactor.batch.md +0 -72
- package/dist/help/json/docs/rename.md +0 -47
- package/dist/help/json/docs/reveal.md +0 -30
- package/dist/help/json/docs/selectors.md +0 -23
- package/dist/help/json/docs/session.md +0 -77
- package/dist/help/json/docs/view.md +0 -30
- package/dist/help/json/snippets/agents.md +0 -14
- package/dist/help/json/topics/basics.md +0 -13
- package/dist/help/json/topics/config-setup.aliases.md +0 -54
- package/dist/help/json/topics/config-setup.excludes.md +0 -43
- package/dist/help/json/topics/config-setup.import-normalize.md +0 -84
- package/dist/help/json/topics/config-setup.import-rules.md +0 -94
- package/dist/help/json/topics/config-setup.tsconfigs.md +0 -31
- package/dist/help/json/topics/dsl.md +0 -23
- package/dist/help/json/topics/first-setup.md +0 -290
- package/dist/help/json/topics/help-format.md +0 -10
- package/dist/help/json/topics/help-protocol.md +0 -24
- package/dist/help/json/topics/imports.normalize.md +0 -45
- package/dist/help/json/topics/inspect.code.md +0 -39
- package/dist/help/json/topics/inspect.cycles.md +0 -36
- package/dist/help/json/topics/inspect.deps.md +0 -44
- package/dist/help/json/topics/inspect.duplicates.md +0 -37
- package/dist/help/json/topics/inspect.exports.md +0 -38
- package/dist/help/json/topics/inspect.file.md +0 -36
- package/dist/help/json/topics/inspect.graph.md +0 -137
- package/dist/help/json/topics/inspect.imports.md +0 -13
- package/dist/help/json/topics/inspect.md +0 -86
- package/dist/help/json/topics/inspect.members.md +0 -30
- package/dist/help/json/topics/inspect.tree.md +0 -22
- package/dist/help/json/topics/inspect.usages.md +0 -59
- package/dist/help/json/topics/modulePlan.md +0 -60
- package/dist/help/json/topics/move.md +0 -46
- package/dist/help/json/topics/mutation.md +0 -63
- package/dist/help/json/topics/patterns.md +0 -74
- package/dist/help/json/topics/prefs.md +0 -38
- package/dist/help/json/topics/qr.md +0 -35
- package/dist/help/json/topics/quick-map.md +0 -28
- package/dist/help/json/topics/refactor.batch.md +0 -61
- package/dist/help/json/topics/rename.md +0 -42
- package/dist/help/json/topics/reveal.md +0 -28
- package/dist/help/json/topics/selectors.md +0 -21
- package/dist/help/json/topics/session.md +0 -59
- package/dist/help/json/topics/view.md +0 -28
package/dist/help/help-meta.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"helpVersion": "0.1.0",
|
|
4
|
-
"generatedAt": "2026-
|
|
5
|
-
"sourceCommit": "
|
|
6
|
-
"contentHash": "sha256:
|
|
4
|
+
"generatedAt": "2026-06-11T13:27:23+03:00",
|
|
5
|
+
"sourceCommit": "f3bddf34",
|
|
6
|
+
"contentHash": "sha256:3d73b26f64e061560b920add21f1ff74187b93f8adab6044c69a6d2ae436e534",
|
|
7
7
|
"topics": {
|
|
8
8
|
"help-format": {
|
|
9
|
-
"contentHash": "sha256:
|
|
10
|
-
"docsHash": "sha256:
|
|
9
|
+
"contentHash": "sha256:b1a0a6ca2a5ac2e61285854e8dd3c951a329073f139ccca50ebe519c2ca0484e",
|
|
10
|
+
"docsHash": "sha256:44a26ac23ba47f1cff5cedcf61bba16df2d3403db01cf73627da02a3eff0986e"
|
|
11
11
|
},
|
|
12
12
|
"help-protocol": {
|
|
13
13
|
"contentHash": "sha256:4d31b0ac5d262f8cbe0da0d883324723efa869a0a0e8edc588795872db47b885",
|
|
14
14
|
"docsHash": "sha256:acb61b3f7b1cab9fecf82042c88b90bef28922093a9372f0f6829a4f7e1653d0"
|
|
15
15
|
},
|
|
16
16
|
"quick-map": {
|
|
17
|
-
"contentHash": "sha256:
|
|
18
|
-
"docsHash": "sha256:
|
|
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:
|
|
50
|
-
"docsHash": "sha256:
|
|
49
|
+
"contentHash": "sha256:82f02bf159829432c04993e05ea578ea9f40e28bb9904a41f99cccc409deaf6d",
|
|
50
|
+
"docsHash": "sha256:735401d4b8845b0d54f1151395f07fc1144b4370690ffd80f5ee40ae83a00d2c"
|
|
51
51
|
},
|
|
52
52
|
"patterns": {
|
|
53
|
-
"contentHash": "sha256:
|
|
54
|
-
"docsHash": "sha256:
|
|
53
|
+
"contentHash": "sha256:2725e71c1162cd8db8ec0847bf050cc005b582878a3a170601780399b8cf115d",
|
|
54
|
+
"docsHash": "sha256:f93ff64ba4cbe34c001ac36b6f6208a05a31e0e9040ee46bcc0cfc0f0044b58f"
|
|
55
55
|
},
|
|
56
56
|
"session": {
|
|
57
|
-
"contentHash": "sha256:
|
|
58
|
-
"docsHash": "sha256:
|
|
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:
|
|
70
|
-
"docsHash": "sha256:
|
|
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:
|
|
78
|
-
"docsHash": "sha256:
|
|
81
|
+
"contentHash": "sha256:b8897c49113766bd0762cc1f09478418f9228686acba60a853a82f63d4f4939b",
|
|
82
|
+
"docsHash": "sha256:75f83ac3defc745931e1899819456b19c0663c99b8ffd1930416716b2f029309"
|
|
79
83
|
},
|
|
80
84
|
"mutation": {
|
|
81
|
-
"contentHash": "sha256:
|
|
82
|
-
"docsHash": "sha256:
|
|
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:
|
|
106
|
-
"docsHash": "sha256:
|
|
121
|
+
"contentHash": "sha256:b6726ec8dd39f75c5a83f0026bf2d354e3da6b38a60cf404f65a4ca690c48f66",
|
|
122
|
+
"docsHash": "sha256:53b027f1444d3386d6d952ed1ecec10ae67fdfd2ca22b657411990703e00da18"
|
|
107
123
|
},
|
|
108
124
|
"inspect.file": {
|
|
109
|
-
"contentHash": "sha256:
|
|
110
|
-
"docsHash": "sha256:
|
|
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:
|
|
126
|
-
"docsHash": "sha256:
|
|
141
|
+
"contentHash": "sha256:5d171649777387b0ed0b32d8638406be2c06748956d14edd5c3281a5f418ec6e",
|
|
142
|
+
"docsHash": "sha256:eff10029d356db3e7fcf22726a19223fb07f01bb340b4b281f9a56cbaa2e3b5a"
|
|
127
143
|
},
|
|
128
144
|
"inspect.deps": {
|
|
129
|
-
"contentHash": "sha256:
|
|
130
|
-
"docsHash": "sha256:
|
|
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:
|
|
138
|
-
"docsHash": "sha256:
|
|
153
|
+
"contentHash": "sha256:a7d4792c063f8244b84579c9dc5a847755653092a9026010c87bfa0bbbafdd60",
|
|
154
|
+
"docsHash": "sha256:2bda09bfcec9645bb2227fb8fca8f03a02a78c6b94118ab2ad5bd1e946d33c3f"
|
|
139
155
|
},
|
|
140
156
|
"inspect.tree": {
|
|
141
157
|
"contentHash": "sha256:db064a9b7ddc8ba2530fadc7aebf214d0cf9551f2fc771b113cbd4b4511254d1",
|
package/dist/help/index.md
CHANGED
|
@@ -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>)
|
package/dist/help/topics/dsl.md
CHANGED
|
@@ -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
|
-
|
|
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.
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
Inline commands below omit the aib prefix.
|
|
2
2
|
Run them as: aib <command>
|
|
3
3
|
|
|
4
|
-
Stdin examples show command and input separately to avoid shell-specific syntax.
|
|
5
|
-
Stdin Run lines include the aib prefix to avoid confusion.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
@'
|
|
9
|
-
<input>
|
|
10
|
-
'@ | aib <command> --stdin
|
|
4
|
+
Stdin examples show command and input separately to avoid shell-specific syntax.
|
|
5
|
+
Stdin Run lines include the aib prefix to avoid confusion.
|
|
6
|
+
|
|
7
|
+
{{stdin.examples}}
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
|
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
|
|
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
|