@automaton-labs/aib 0.0.2 → 0.0.4
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 +2 -2
- package/dist/commands/config-command.js +1 -3
- package/dist/commands/config-output.js +8 -0
- package/dist/commands/init-workspace.js +1 -3
- package/dist/commands/inspect-tree.js +3 -3
- package/dist/commands/reveal-command.js +5 -0
- package/dist/commands/sync-command.js +2 -2
- package/dist/config/local-config.js +3 -3
- package/dist/config/resolve-command-alias.js +1 -1
- package/dist/config/tsconfig-discovery.js +1 -0
- package/dist/config/workspace-root.js +3 -3
- package/dist/config/workspace-state.js +1 -1
- package/dist/dsl/aib-dsl.js +1 -1
- package/dist/help/bootstrap.md +21 -11
- package/dist/help/docs/first-setup.md +277 -0
- package/dist/help/docs/inspect.tree.md +8 -6
- package/dist/help/docs/patterns.md +12 -3
- package/dist/help/dsl/bootstrap.md +21 -11
- package/dist/help/dsl/docs/first-setup.md +277 -0
- package/dist/help/dsl/docs/inspect.tree.md +8 -6
- package/dist/help/dsl/docs/patterns.md +12 -3
- package/dist/help/dsl/full.md +21 -11
- package/dist/help/dsl/topics/first-setup.md +275 -0
- package/dist/help/dsl/topics/inspect.tree.md +8 -6
- package/dist/help/dsl/topics/patterns.md +12 -3
- package/dist/help/full.md +21 -11
- package/dist/help/help-meta.json +11 -7
- package/dist/help/index.md +6 -0
- package/dist/help/json/bootstrap.md +21 -11
- package/dist/help/json/docs/first-setup.md +277 -0
- package/dist/help/json/docs/inspect.tree.md +8 -6
- package/dist/help/json/docs/patterns.md +12 -3
- package/dist/help/json/full.md +21 -11
- package/dist/help/json/topics/first-setup.md +275 -0
- package/dist/help/json/topics/inspect.tree.md +8 -6
- package/dist/help/json/topics/patterns.md +12 -3
- package/dist/help/topics/first-setup.md +275 -0
- package/dist/help/topics/inspect.tree.md +8 -6
- package/dist/help/topics/patterns.md +12 -3
- package/dist/runtime/run-command.js +1 -1
- package/extension/vscode-refactor-bridge-extension.vsix +0 -0
- package/package.json +1 -1
- package/runtimes/launcher/win-x64/aib.exe +0 -0
- package/scripts/install-windows-launcher.cjs +1 -0
- package/scripts/postinstall.cjs +5 -4
- package/scripts/provision-runtime.cjs +160 -24
|
@@ -154,10 +154,19 @@ shortestAlias rewrite to the shortest valid alias specifier
|
|
|
154
154
|
preferAlias:
|
|
155
155
|
@shared/* prefer one alias pattern when several aliases can resolve the same file
|
|
156
156
|
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
AIB has four config exclude fields:
|
|
158
|
+
inspect.graph.exclude
|
|
159
|
+
inspect.tree.files.exclude
|
|
160
|
+
inspect.tree.onlyDirs.exclude
|
|
161
|
+
sync.tsconfig.exclude
|
|
159
162
|
|
|
160
|
-
|
|
163
|
+
For all of them, node_modules, .git, dist, build, out, and .tmp are skipped by default.
|
|
164
|
+
|
|
165
|
+
Use config excludes for generated files, backups, local copies, nested workspaces, seed projects, or other repository-specific noise.
|
|
166
|
+
|
|
167
|
+
Graph excludes affect graph counts, hubs, entrypoints, leaves, edges, imports, importedBy, and saved graph files.
|
|
168
|
+
Tree excludes affect directory/file discovery output.
|
|
169
|
+
Tsconfig excludes affect which TypeScript configs AIB syncs and watches.
|
|
161
170
|
|
|
162
171
|
Leave feedback while working.
|
|
163
172
|
|
package/dist/help/dsl/full.md
CHANGED
|
@@ -177,10 +177,19 @@ shortestAlias rewrite to the shortest valid alias specifier
|
|
|
177
177
|
preferAlias:
|
|
178
178
|
@shared/* prefer one alias pattern when several aliases can resolve the same file
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
AIB has four config exclude fields:
|
|
181
|
+
inspect.graph.exclude
|
|
182
|
+
inspect.tree.files.exclude
|
|
183
|
+
inspect.tree.onlyDirs.exclude
|
|
184
|
+
sync.tsconfig.exclude
|
|
185
|
+
|
|
186
|
+
For all of them, node_modules, .git, dist, build, out, and .tmp are skipped by default.
|
|
187
|
+
|
|
188
|
+
Use config excludes for generated files, backups, local copies, nested workspaces, seed projects, or other repository-specific noise.
|
|
189
|
+
|
|
190
|
+
Graph excludes affect graph counts, hubs, entrypoints, leaves, edges, imports, importedBy, and saved graph files.
|
|
191
|
+
Tree excludes affect directory/file discovery output.
|
|
192
|
+
Tsconfig excludes affect which TypeScript configs AIB syncs and watches.
|
|
184
193
|
|
|
185
194
|
Leave feedback while working.
|
|
186
195
|
|
|
@@ -640,24 +649,25 @@ Inspect Tree
|
|
|
640
649
|
Use tree to list a compact directory layout.
|
|
641
650
|
It is useful before focused inspect when you know the area but not the exact file.
|
|
642
651
|
|
|
643
|
-
node_modules, .git, dist, build, out, and .tmp are skipped by default.
|
|
644
|
-
|
|
645
652
|
Controls:
|
|
646
|
-
scope, depth, minDepth, limit,
|
|
653
|
+
scope, depth, minDepth, limit, only, exclude, onlyDirs, ned, nec
|
|
647
654
|
|
|
648
655
|
Specific:
|
|
649
656
|
depth max nesting depth; depth=N
|
|
650
657
|
minDepth hide shallower paths; minDepth=N
|
|
651
658
|
onlyDirs show directories only; +onlyDirs
|
|
652
|
-
|
|
653
|
-
|
|
659
|
+
only keep only matching files/dirs; only=[...]
|
|
660
|
+
exclude skip matching files/dirs; exclude=[...]
|
|
661
|
+
ned no-default-exclude; show paths hidden by built-in excludes; +ned
|
|
662
|
+
nec no-config-exclude; ignore inspect.tree.*.exclude from aib.json; +nec
|
|
654
663
|
|
|
655
664
|
Run:
|
|
656
665
|
aib inspect --stdin
|
|
657
666
|
|
|
658
667
|
Input:
|
|
659
|
-
tree src depth=4 +onlyDirs limit=200
|
|
660
|
-
tree @svc depth=3
|
|
668
|
+
tree src depth=4 +onlyDirs limit=200 +ned +nec
|
|
669
|
+
tree @svc depth=3 only=["**/*.ts"] exclude=["**/*.test.ts","**/* copy.ts"]
|
|
670
|
+
tree src depth=3 only=["src/services/**"] limit=80
|
|
661
671
|
|
|
662
672
|
Inspect Duplicates
|
|
663
673
|
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
Use this when the user asks you to set up AIB for a repository.
|
|
2
|
+
|
|
3
|
+
If you have not loaded the current bootstrap, run:
|
|
4
|
+
aib help bootstrap
|
|
5
|
+
|
|
6
|
+
1. Detect existing setup
|
|
7
|
+
|
|
8
|
+
Run:
|
|
9
|
+
|
|
10
|
+
aib config
|
|
11
|
+
|
|
12
|
+
If AIB reports that no config exists, continue to initialization.
|
|
13
|
+
|
|
14
|
+
If config exists:
|
|
15
|
+
- verify that root is the intended repository root;
|
|
16
|
+
- keep existing settings if they are still valid and useful;
|
|
17
|
+
- only add missing project-specific aliases, rules, or excludes;
|
|
18
|
+
- do not regenerate aib.json.
|
|
19
|
+
|
|
20
|
+
If config resolves from a parent directory, verify that this is intentional.
|
|
21
|
+
Do not continue setup inside a nested worktree or copied project if AIB is using the parent repository config.
|
|
22
|
+
|
|
23
|
+
2. Initialize if missing
|
|
24
|
+
|
|
25
|
+
From the repository root, run:
|
|
26
|
+
|
|
27
|
+
aib init --session-dir .tmp/aib
|
|
28
|
+
|
|
29
|
+
Use the output to check:
|
|
30
|
+
- root is the intended repository root;
|
|
31
|
+
- config is <root>/aib.json;
|
|
32
|
+
- sessionDir is set;
|
|
33
|
+
- cleanup/deletion/runtime TTLs are shown;
|
|
34
|
+
- not set includes the setup sections that still need decisions.
|
|
35
|
+
|
|
36
|
+
Do not create sessions yet.
|
|
37
|
+
|
|
38
|
+
3. Configure repository-specific behavior
|
|
39
|
+
|
|
40
|
+
Edit aib.json directly.
|
|
41
|
+
|
|
42
|
+
Keep existing settings if they are still valid and useful.
|
|
43
|
+
Update settings that are stale, noisy, too broad, or no longer match the repository.
|
|
44
|
+
|
|
45
|
+
Use not set as the checklist for the setup sections below.
|
|
46
|
+
|
|
47
|
+
4. Configure path aliases
|
|
48
|
+
|
|
49
|
+
Run:
|
|
50
|
+
|
|
51
|
+
aib reveal tsaliases
|
|
52
|
+
|
|
53
|
+
Use this to see existing tsconfig paths and baseUrl values.
|
|
54
|
+
They can reveal stable work areas, but they are not a list to copy.
|
|
55
|
+
|
|
56
|
+
Add pathAliases for long paths that are likely to appear repeatedly in AIB requests.
|
|
57
|
+
Prefer aliases for real work areas, package roots, or deep directories.
|
|
58
|
+
|
|
59
|
+
A good alias:
|
|
60
|
+
- saves meaningful path tokens;
|
|
61
|
+
- points to a stable work area;
|
|
62
|
+
- is easy to recognize later.
|
|
63
|
+
|
|
64
|
+
A bad alias:
|
|
65
|
+
- duplicates a short path like "src": "src";
|
|
66
|
+
- points to a rarely used folder;
|
|
67
|
+
- mirrors the directory tree without a workflow reason.
|
|
68
|
+
|
|
69
|
+
Having 20-30 good aliases is fine for a large repo or monorepo.
|
|
70
|
+
|
|
71
|
+
Example:
|
|
72
|
+
|
|
73
|
+
"pathAliases": {
|
|
74
|
+
"wstore": "apps/web/src/shared/store",
|
|
75
|
+
"wapi": "apps/web/src/shared/api",
|
|
76
|
+
"whooks": "apps/web/src/shared/utils/hooks",
|
|
77
|
+
"pmail": "packages/email/src",
|
|
78
|
+
"putils": "packages/utils/src",
|
|
79
|
+
"arules": "docs/agent/rules"
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
5. Configure import rules
|
|
83
|
+
|
|
84
|
+
Set importRules to the import style this repository should use after move/modulePlan mutations.
|
|
85
|
+
|
|
86
|
+
If the repository has one style, use one broad rule:
|
|
87
|
+
|
|
88
|
+
"importRules": [
|
|
89
|
+
{
|
|
90
|
+
"scope": ".",
|
|
91
|
+
"specifier": "shortest",
|
|
92
|
+
"ending": "auto",
|
|
93
|
+
"builtin": "node",
|
|
94
|
+
"unusedImports": "remove"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
Use scoped rules only when areas differ by style, for example packages use aliases but scripts use relative imports:
|
|
99
|
+
|
|
100
|
+
"importRules": [
|
|
101
|
+
{
|
|
102
|
+
"scope": "packages",
|
|
103
|
+
"specifier": "shortest",
|
|
104
|
+
"ending": "auto",
|
|
105
|
+
"builtin": "node",
|
|
106
|
+
"unusedImports": "remove"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"scope": "scripts",
|
|
110
|
+
"specifier": "relative",
|
|
111
|
+
"ending": "auto",
|
|
112
|
+
"builtin": "node",
|
|
113
|
+
"unusedImports": "remove"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
|
|
117
|
+
Use the most specific scope that matches the real convention.
|
|
118
|
+
Do not add scoped rules just because directories exist.
|
|
119
|
+
|
|
120
|
+
6. Configure import normalization
|
|
121
|
+
|
|
122
|
+
Add importNormalize only for cleanup commands the agent is likely to run more than once.
|
|
123
|
+
|
|
124
|
+
Use it when the repo has a clear normalization target:
|
|
125
|
+
|
|
126
|
+
"importNormalize": [
|
|
127
|
+
{
|
|
128
|
+
"scope": "src",
|
|
129
|
+
"to": "shortestAlias",
|
|
130
|
+
"preferAlias": "@/*",
|
|
131
|
+
"exclude": [
|
|
132
|
+
"src/generated",
|
|
133
|
+
"src/**/dist"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"scope": "scripts",
|
|
138
|
+
"to": "relative",
|
|
139
|
+
"exclude": [
|
|
140
|
+
"scripts/**/*.cjs",
|
|
141
|
+
"scripts/**/*.mjs"
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
|
|
146
|
+
Choose scopes from real repo conventions.
|
|
147
|
+
Do not copy importRules into importNormalize automatically.
|
|
148
|
+
Leave it unset if normalization is not a repeated workflow.
|
|
149
|
+
|
|
150
|
+
7. Configure tree and graph excludes
|
|
151
|
+
|
|
152
|
+
Add excludes for noise the repository is known to contain.
|
|
153
|
+
|
|
154
|
+
Use tree excludes for what the agent should not see while mapping folders.
|
|
155
|
+
Use graph excludes for files that should not affect graph counts, hubs, entrypoints, leaves, edges, or saved graph views.
|
|
156
|
+
|
|
157
|
+
Built-in excludes already skip common noise such as node_modules, .git, dist, build, out, and .tmp.
|
|
158
|
+
Add config excludes for repository-specific noise.
|
|
159
|
+
|
|
160
|
+
For example, if the user often creates hard-copy directories or backup files before risky edits, those copies can make tree and graph output noisy.
|
|
161
|
+
Exclude them explicitly:
|
|
162
|
+
|
|
163
|
+
"inspect.tree.onlyDirs.exclude": [
|
|
164
|
+
"**/*copy",
|
|
165
|
+
"**/*copy/**"
|
|
166
|
+
],
|
|
167
|
+
"inspect.tree.files.exclude": [
|
|
168
|
+
"**/* copy.ts",
|
|
169
|
+
"**/*.generated.ts"
|
|
170
|
+
],
|
|
171
|
+
"inspect.graph.exclude": [
|
|
172
|
+
"**/* copy.ts",
|
|
173
|
+
"**/*.generated.ts",
|
|
174
|
+
"src/generated/**"
|
|
175
|
+
]
|
|
176
|
+
|
|
177
|
+
Prefer narrow patterns for known noise:
|
|
178
|
+
- generated files;
|
|
179
|
+
- local copy/backup folders;
|
|
180
|
+
- build artifacts not already skipped by defaults;
|
|
181
|
+
- vendored or checked-in output.
|
|
182
|
+
|
|
183
|
+
These are common cases, not mandatory rules.
|
|
184
|
+
If the repository needs one of these areas for reasoning or mutation impact checks, do not exclude it.
|
|
185
|
+
|
|
186
|
+
Do not exclude broad source areas to make output smaller.
|
|
187
|
+
If output is too large, use scope, depth, limit, graph view, or graph toggles first.
|
|
188
|
+
|
|
189
|
+
8. Configure TypeScript config discovery
|
|
190
|
+
|
|
191
|
+
Check which TypeScript configs AIB will sync and watch:
|
|
192
|
+
|
|
193
|
+
aib reveal tsconfigs +all
|
|
194
|
+
|
|
195
|
+
If output includes nested workspaces, seed projects, snapshots, backups, copied apps, or other non-primary projects, exclude them:
|
|
196
|
+
|
|
197
|
+
"sync.tsconfig.exclude": [
|
|
198
|
+
"dev-seed/**",
|
|
199
|
+
"snapshots/**"
|
|
200
|
+
]
|
|
201
|
+
|
|
202
|
+
Do not exclude real package/app configs just to reduce output.
|
|
203
|
+
|
|
204
|
+
After editing aib.json, run:
|
|
205
|
+
|
|
206
|
+
aib sync
|
|
207
|
+
|
|
208
|
+
Then check again:
|
|
209
|
+
|
|
210
|
+
aib reveal tsconfigs +all
|
|
211
|
+
|
|
212
|
+
Visible tsconfigs should describe the active project surface.
|
|
213
|
+
Excluded tsconfigs should be things the agent should not use for setup decisions.
|
|
214
|
+
|
|
215
|
+
Use +nec only when you need to compare visible configs with config-excluded configs:
|
|
216
|
+
|
|
217
|
+
aib reveal tsconfigs +nec
|
|
218
|
+
|
|
219
|
+
9. Sync and verify
|
|
220
|
+
|
|
221
|
+
After all aib.json edits, run:
|
|
222
|
+
|
|
223
|
+
aib sync
|
|
224
|
+
|
|
225
|
+
If sync fails, fix aib.json and rerun sync.
|
|
226
|
+
|
|
227
|
+
Check the final config summary:
|
|
228
|
+
|
|
229
|
+
aib config
|
|
230
|
+
|
|
231
|
+
Run one compact tree batch using important aliases:
|
|
232
|
+
|
|
233
|
+
aib inspect --stdin
|
|
234
|
+
|
|
235
|
+
Input:
|
|
236
|
+
tree @<important-alias> depth=3 +onlyDirs limit=80
|
|
237
|
+
tree @<another-important-alias> depth=3 +onlyDirs limit=80
|
|
238
|
+
|
|
239
|
+
Check final TypeScript config discovery:
|
|
240
|
+
|
|
241
|
+
aib reveal tsconfigs
|
|
242
|
+
|
|
243
|
+
Confirm:
|
|
244
|
+
- aliases resolve;
|
|
245
|
+
- obvious tree noise is hidden;
|
|
246
|
+
- visible tsconfigs match the active project surface;
|
|
247
|
+
- config sections are set intentionally.
|
|
248
|
+
|
|
249
|
+
10. Note operational constraints
|
|
250
|
+
|
|
251
|
+
Before reporting back, identify any constraints the user should know.
|
|
252
|
+
|
|
253
|
+
Worktrees:
|
|
254
|
+
AIB resolves config from the nearest parent aib.json.
|
|
255
|
+
If the repository uses nested copied projects or worktrees inside the repo root, AIB may resolve the parent config.
|
|
256
|
+
Do not set up AIB inside nested worktrees that should behave as independent repositories.
|
|
257
|
+
Independent worktrees should live outside the main repo root or have their own intended aib.json boundary.
|
|
258
|
+
|
|
259
|
+
TTL:
|
|
260
|
+
Sessions and managed runtime are cleaned up after inactivity according to aib config session.
|
|
261
|
+
Tell the user if you changed these defaults or left them as-is.
|
|
262
|
+
|
|
263
|
+
Watchers:
|
|
264
|
+
AIB watches aib.json and visible tsconfig files after sync.
|
|
265
|
+
If config changes are not reflected, run aib sync.
|
|
266
|
+
|
|
267
|
+
11. Report to user
|
|
268
|
+
|
|
269
|
+
Report:
|
|
270
|
+
- whether AIB config already existed or was initialized;
|
|
271
|
+
- which aliases were added and why;
|
|
272
|
+
- which importRules/importNormalize settings were added or intentionally left unset;
|
|
273
|
+
- which tree/graph/tsconfig excludes were added;
|
|
274
|
+
- whether sync and verification passed;
|
|
275
|
+
- any worktree, TTL, watcher, or tsconfig discovery constraints the user should know.
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
Use tree to list a compact directory layout.
|
|
2
2
|
It is useful before focused inspect when you know the area but not the exact file.
|
|
3
3
|
|
|
4
|
-
node_modules, .git, dist, build, out, and .tmp are skipped by default.
|
|
5
|
-
|
|
6
4
|
Controls:
|
|
7
|
-
scope, depth, minDepth, limit,
|
|
5
|
+
scope, depth, minDepth, limit, only, exclude, onlyDirs, ned, nec
|
|
8
6
|
|
|
9
7
|
Specific:
|
|
10
8
|
depth max nesting depth; depth=N
|
|
11
9
|
minDepth hide shallower paths; minDepth=N
|
|
12
10
|
onlyDirs show directories only; +onlyDirs
|
|
13
|
-
|
|
11
|
+
only only matching files/dirs; only=[...]
|
|
12
|
+
exclude skip matching files/dirs; exclude=[...]
|
|
13
|
+
ned no-default-exclude; ignore built-in excludes; +ned
|
|
14
|
+
nec no-config-exclude; ignore aib.json tree excludes; +nec
|
|
14
15
|
|
|
15
16
|
Run:
|
|
16
17
|
aib inspect --stdin
|
|
17
18
|
|
|
18
19
|
Input:
|
|
19
|
-
tree src depth=4 +onlyDirs limit=200
|
|
20
|
-
tree @svc depth=3
|
|
20
|
+
tree src depth=4 +onlyDirs limit=200 +ned +nec
|
|
21
|
+
tree @svc depth=3 only=["**/*.ts"] exclude=["**/*.test.ts","**/* copy.ts"]
|
|
22
|
+
tree src depth=3 only=["src/services/**"] limit=80
|
|
@@ -152,10 +152,19 @@ shortestAlias rewrite to the shortest valid alias specifier
|
|
|
152
152
|
preferAlias:
|
|
153
153
|
@shared/* prefer one alias pattern when several aliases can resolve the same file
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
AIB has four config exclude fields:
|
|
156
|
+
inspect.graph.exclude
|
|
157
|
+
inspect.tree.files.exclude
|
|
158
|
+
inspect.tree.onlyDirs.exclude
|
|
159
|
+
sync.tsconfig.exclude
|
|
157
160
|
|
|
158
|
-
|
|
161
|
+
For all of them, node_modules, .git, dist, build, out, and .tmp are skipped by default.
|
|
162
|
+
|
|
163
|
+
Use config excludes for generated files, backups, local copies, nested workspaces, seed projects, or other repository-specific noise.
|
|
164
|
+
|
|
165
|
+
Graph excludes affect graph counts, hubs, entrypoints, leaves, edges, imports, importedBy, and saved graph files.
|
|
166
|
+
Tree excludes affect directory/file discovery output.
|
|
167
|
+
Tsconfig excludes affect which TypeScript configs AIB syncs and watches.
|
|
159
168
|
|
|
160
169
|
Leave feedback while working.
|
|
161
170
|
|
package/dist/help/full.md
CHANGED
|
@@ -177,10 +177,19 @@ shortestAlias rewrite to the shortest valid alias specifier
|
|
|
177
177
|
preferAlias:
|
|
178
178
|
@shared/* prefer one alias pattern when several aliases can resolve the same file
|
|
179
179
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
AIB has four config exclude fields:
|
|
181
|
+
inspect.graph.exclude
|
|
182
|
+
inspect.tree.files.exclude
|
|
183
|
+
inspect.tree.onlyDirs.exclude
|
|
184
|
+
sync.tsconfig.exclude
|
|
185
|
+
|
|
186
|
+
For all of them, node_modules, .git, dist, build, out, and .tmp are skipped by default.
|
|
187
|
+
|
|
188
|
+
Use config excludes for generated files, backups, local copies, nested workspaces, seed projects, or other repository-specific noise.
|
|
189
|
+
|
|
190
|
+
Graph excludes affect graph counts, hubs, entrypoints, leaves, edges, imports, importedBy, and saved graph files.
|
|
191
|
+
Tree excludes affect directory/file discovery output.
|
|
192
|
+
Tsconfig excludes affect which TypeScript configs AIB syncs and watches.
|
|
184
193
|
|
|
185
194
|
Leave feedback while working.
|
|
186
195
|
|
|
@@ -640,24 +649,25 @@ Inspect Tree
|
|
|
640
649
|
Use tree to list a compact directory layout.
|
|
641
650
|
It is useful before focused inspect when you know the area but not the exact file.
|
|
642
651
|
|
|
643
|
-
node_modules, .git, dist, build, out, and .tmp are skipped by default.
|
|
644
|
-
|
|
645
652
|
Controls:
|
|
646
|
-
scope, depth, minDepth, limit,
|
|
653
|
+
scope, depth, minDepth, limit, only, exclude, onlyDirs, ned, nec
|
|
647
654
|
|
|
648
655
|
Specific:
|
|
649
656
|
depth max nesting depth; depth=N
|
|
650
657
|
minDepth hide shallower paths; minDepth=N
|
|
651
658
|
onlyDirs show directories only; +onlyDirs
|
|
652
|
-
|
|
653
|
-
|
|
659
|
+
only keep only matching files/dirs; only=[...]
|
|
660
|
+
exclude skip matching files/dirs; exclude=[...]
|
|
661
|
+
ned no-default-exclude; show paths hidden by built-in excludes; +ned
|
|
662
|
+
nec no-config-exclude; ignore inspect.tree.*.exclude from aib.json; +nec
|
|
654
663
|
|
|
655
664
|
Run:
|
|
656
665
|
aib inspect --stdin
|
|
657
666
|
|
|
658
667
|
Input:
|
|
659
|
-
tree src depth=4 +onlyDirs limit=200
|
|
660
|
-
tree @svc depth=3
|
|
668
|
+
tree src depth=4 +onlyDirs limit=200 +ned +nec
|
|
669
|
+
tree @svc depth=3 only=["**/*.ts"] exclude=["**/*.test.ts","**/* copy.ts"]
|
|
670
|
+
tree src depth=3 only=["src/services/**"] limit=80
|
|
661
671
|
|
|
662
672
|
Inspect Duplicates
|
|
663
673
|
|
package/dist/help/help-meta.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"helpVersion": "0.1.0",
|
|
4
|
-
"generatedAt": "2026-05-
|
|
5
|
-
"sourceCommit": "
|
|
6
|
-
"contentHash": "sha256:
|
|
4
|
+
"generatedAt": "2026-05-25T15:50:58+03:00",
|
|
5
|
+
"sourceCommit": "d81ed9b",
|
|
6
|
+
"contentHash": "sha256:78fb61b48b619be94f6a1461ed221736190f510e4f09a18dfd2e3a877500e835",
|
|
7
7
|
"topics": {
|
|
8
8
|
"help-format": {
|
|
9
9
|
"contentHash": "sha256:771a21ea7d2818812f9cedc17183c62c74975d0d04267b015c08c086488b03d5",
|
|
@@ -13,13 +13,17 @@
|
|
|
13
13
|
"contentHash": "sha256:e9c53461377826c660b9c79b6f6b88c21c37899cf6c97e90acccc56ef8bb9ce2",
|
|
14
14
|
"docsHash": "sha256:b029006c90a1809532b8de49dee9f0bb0f0fc9fd97543159a81be81a66b8a2f6"
|
|
15
15
|
},
|
|
16
|
+
"first-setup": {
|
|
17
|
+
"contentHash": "sha256:77617a6c3bc3f335e42142240522ed1a204d640d5fe46a20f21be9ef1c1823b2",
|
|
18
|
+
"docsHash": "sha256:4a85dd189d5cf66ca4e5c74e20a591a82990080299279ccf0d5bf013d6995046"
|
|
19
|
+
},
|
|
16
20
|
"dsl": {
|
|
17
21
|
"contentHash": "sha256:2256703eb851fe0c6deaed62cbfa8b7a651f42a028c25c5ee68351ae173b4c55",
|
|
18
22
|
"docsHash": "sha256:c62461472e8312429d46005d5a50fa2ba449318ee652e887047df60eb6fe5a46"
|
|
19
23
|
},
|
|
20
24
|
"patterns": {
|
|
21
|
-
"contentHash": "sha256:
|
|
22
|
-
"docsHash": "sha256:
|
|
25
|
+
"contentHash": "sha256:e3d6df223c5647c7b93c15a902aee92b6ce0c4031028e6014136c5fa5d9260d2",
|
|
26
|
+
"docsHash": "sha256:23cf1a65f924e1c8ea98e89c907946128e8a62bdc10067a8d7c8ff666bc3c58d"
|
|
23
27
|
},
|
|
24
28
|
"session": {
|
|
25
29
|
"contentHash": "sha256:c2a231e53defb09e165649d101d31a3797a3ee7a02d892b194f0c2e4805f9b4d",
|
|
@@ -102,8 +106,8 @@
|
|
|
102
106
|
"docsHash": "sha256:2912898abad7c64b3e8f5669a86a70249c4d2fe742aaf3bd9b662cbaa1225a23"
|
|
103
107
|
},
|
|
104
108
|
"inspect.tree": {
|
|
105
|
-
"contentHash": "sha256:
|
|
106
|
-
"docsHash": "sha256:
|
|
109
|
+
"contentHash": "sha256:db064a9b7ddc8ba2530fadc7aebf214d0cf9551f2fc771b113cbd4b4511254d1",
|
|
110
|
+
"docsHash": "sha256:91c81dae81527cc7e1ddce28810540543a19487a49294402787d384c7abd4a9d"
|
|
107
111
|
},
|
|
108
112
|
"inspect.duplicates": {
|
|
109
113
|
"contentHash": "sha256:08b6216d3c4ccd2460befec53559451b34af7157f2742b026bfe2a6babda1033",
|
package/dist/help/index.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
- Docs help-format: [File](<docs/help-format.md>)
|
|
7
7
|
- Help basics: [File](<topics/basics.md>)
|
|
8
8
|
- Docs basics: [File](<docs/basics.md>)
|
|
9
|
+
- Help first-setup: [File](<topics/first-setup.md>)
|
|
10
|
+
- Docs first-setup: [File](<docs/first-setup.md>)
|
|
9
11
|
- Help dsl: [File](<topics/dsl.md>)
|
|
10
12
|
- Docs dsl: [File](<docs/dsl.md>)
|
|
11
13
|
- Help patterns: [File](<topics/patterns.md>)
|
|
@@ -61,6 +63,8 @@
|
|
|
61
63
|
- json Docs help-format: [File](<json/docs/help-format.md>)
|
|
62
64
|
- json Help basics: [File](<json/topics/basics.md>)
|
|
63
65
|
- json Docs basics: [File](<json/docs/basics.md>)
|
|
66
|
+
- json Help first-setup: [File](<json/topics/first-setup.md>)
|
|
67
|
+
- json Docs first-setup: [File](<json/docs/first-setup.md>)
|
|
64
68
|
- json Help dsl: [File](<json/topics/dsl.md>)
|
|
65
69
|
- json Docs dsl: [File](<json/docs/dsl.md>)
|
|
66
70
|
- json Help patterns: [File](<json/topics/patterns.md>)
|
|
@@ -116,6 +120,8 @@
|
|
|
116
120
|
- dsl Docs help-format: [File](<dsl/docs/help-format.md>)
|
|
117
121
|
- dsl Help basics: [File](<dsl/topics/basics.md>)
|
|
118
122
|
- dsl Docs basics: [File](<dsl/docs/basics.md>)
|
|
123
|
+
- dsl Help first-setup: [File](<dsl/topics/first-setup.md>)
|
|
124
|
+
- dsl Docs first-setup: [File](<dsl/docs/first-setup.md>)
|
|
119
125
|
- dsl Help dsl: [File](<dsl/topics/dsl.md>)
|
|
120
126
|
- dsl Docs dsl: [File](<dsl/docs/dsl.md>)
|
|
121
127
|
- dsl Help patterns: [File](<dsl/topics/patterns.md>)
|
|
@@ -178,10 +178,19 @@ shortestAlias rewrite to the shortest valid alias specifier
|
|
|
178
178
|
preferAlias:
|
|
179
179
|
@shared/* prefer one alias pattern when several aliases can resolve the same file
|
|
180
180
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
181
|
+
AIB has four config exclude fields:
|
|
182
|
+
inspect.graph.exclude
|
|
183
|
+
inspect.tree.files.exclude
|
|
184
|
+
inspect.tree.onlyDirs.exclude
|
|
185
|
+
sync.tsconfig.exclude
|
|
186
|
+
|
|
187
|
+
For all of them, node_modules, .git, dist, build, out, and .tmp are skipped by default.
|
|
188
|
+
|
|
189
|
+
Use config excludes for generated files, backups, local copies, nested workspaces, seed projects, or other repository-specific noise.
|
|
190
|
+
|
|
191
|
+
Graph excludes affect graph counts, hubs, entrypoints, leaves, edges, imports, importedBy, and saved graph files.
|
|
192
|
+
Tree excludes affect directory/file discovery output.
|
|
193
|
+
Tsconfig excludes affect which TypeScript configs AIB syncs and watches.
|
|
185
194
|
|
|
186
195
|
Leave feedback while working.
|
|
187
196
|
|
|
@@ -744,24 +753,25 @@ Inspect Tree
|
|
|
744
753
|
Use tree to list a compact directory layout.
|
|
745
754
|
It is useful before focused inspect when you know the area but not the exact file.
|
|
746
755
|
|
|
747
|
-
node_modules, .git, dist, build, out, and .tmp are skipped by default.
|
|
748
|
-
|
|
749
756
|
Controls:
|
|
750
|
-
scope, depth, minDepth, limit,
|
|
757
|
+
scope, depth, minDepth, limit, only, exclude, onlyDirs, ned, nec
|
|
751
758
|
|
|
752
759
|
Specific:
|
|
753
760
|
depth max nesting depth; depth=N
|
|
754
761
|
minDepth hide shallower paths; minDepth=N
|
|
755
762
|
onlyDirs show directories only; +onlyDirs
|
|
756
|
-
|
|
757
|
-
|
|
763
|
+
only keep only matching files/dirs; only=[...]
|
|
764
|
+
exclude skip matching files/dirs; exclude=[...]
|
|
765
|
+
ned no-default-exclude; show paths hidden by built-in excludes; +ned
|
|
766
|
+
nec no-config-exclude; ignore inspect.tree.*.exclude from aib.json; +nec
|
|
758
767
|
|
|
759
768
|
Run:
|
|
760
769
|
aib inspect --stdin
|
|
761
770
|
|
|
762
771
|
Input:
|
|
763
|
-
tree src depth=4 +onlyDirs limit=200
|
|
764
|
-
tree @svc depth=3
|
|
772
|
+
tree src depth=4 +onlyDirs limit=200 +ned +nec
|
|
773
|
+
tree @svc depth=3 only=["**/*.ts"] exclude=["**/*.test.ts","**/* copy.ts"]
|
|
774
|
+
tree src depth=3 only=["src/services/**"] limit=80
|
|
765
775
|
|
|
766
776
|
Inspect Duplicates
|
|
767
777
|
|