@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
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
Read:
|
|
2
|
-
qr quick reads: ts, js, cmd, sh, json, log, txt, etc.
|
|
3
|
-
view hidden/truncated output
|
|
4
|
-
|
|
5
|
-
Inspect:
|
|
6
|
-
file
|
|
7
|
-
imports
|
|
8
|
-
exports
|
|
9
|
-
members
|
|
10
|
-
code
|
|
11
|
-
deps
|
|
12
|
-
usages
|
|
13
|
-
graph
|
|
14
|
-
tree
|
|
15
|
-
duplicates
|
|
16
|
-
cycles
|
|
17
|
-
|
|
18
|
-
Mutate:
|
|
19
|
-
rename
|
|
20
|
-
move
|
|
21
|
-
modulePlan
|
|
22
|
-
refactor batch
|
|
23
|
-
imports normalize
|
|
24
|
-
|
|
25
|
-
Other:
|
|
26
|
-
config
|
|
27
|
-
prefs
|
|
28
|
-
reveal tsconfig and tsconfig alias discovery
|
|
@@ -1,61 +0,0 @@
|
|
|
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
|
-
If a name is ambiguous, use selectors.
|
|
6
|
-
Run help selectors to refresh selector syntax.
|
|
7
|
-
|
|
8
|
-
refactor batch runs related mutation requests together.
|
|
9
|
-
Use it when one workflow needs ordered steps, such as rename plus move.
|
|
10
|
-
|
|
11
|
-
Use modulePlan when the main intent is only to split one large file into target modules.
|
|
12
|
-
Use refactor batch when the split also includes coordinated renames or mixed mutation steps.
|
|
13
|
-
|
|
14
|
-
refactor batch preview --stdin
|
|
15
|
-
refactor batch execute --stdin
|
|
16
|
-
refactor batch apply --stdin
|
|
17
|
-
|
|
18
|
-
Use preview/apply when you want to inspect a large mixed plan before writing files.
|
|
19
|
-
Use execute when you want to write immediately.
|
|
20
|
-
Use --from with captured input handles when rerunning edited large batches.
|
|
21
|
-
|
|
22
|
-
Example: rename and move in one request
|
|
23
|
-
|
|
24
|
-
Run:
|
|
25
|
-
aib refactor batch execute --stdin
|
|
26
|
-
|
|
27
|
-
Input:
|
|
28
|
-
{
|
|
29
|
-
"sourceFile": "src/service.ts",
|
|
30
|
-
"requests": [
|
|
31
|
-
{
|
|
32
|
-
"op": "rename",
|
|
33
|
-
"renames": {
|
|
34
|
-
"oldHelper": "newHelper",
|
|
35
|
-
"oldType": "newType"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"op": "move",
|
|
40
|
-
"targetFile": "src/service.helpers.ts",
|
|
41
|
-
"entities": ["newHelper"]
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"op": "move",
|
|
45
|
-
"targetFile": "src/service.types.ts",
|
|
46
|
-
"entities": ["newType"]
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
If a large or partial refactor batch fails, edit the captured input file and rerun with --from.
|
|
52
|
-
For small one-off refactor requests, write a corrected request instead.
|
|
53
|
-
|
|
54
|
-
Latest refactor input:
|
|
55
|
-
<session-dir>/inputs/refactor/_last.json
|
|
56
|
-
|
|
57
|
-
Handle:
|
|
58
|
-
aib:input:refactor:last
|
|
59
|
-
|
|
60
|
-
Example:
|
|
61
|
-
refactor batch execute --from aib:input:refactor:last
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
If a name is ambiguous, use selectors.
|
|
6
|
-
Run help selectors to refresh selector syntax.
|
|
7
|
-
|
|
8
|
-
Rename is for semantic symbol renames.
|
|
9
|
-
It follows TypeScript references.
|
|
10
|
-
It is not plain-text replacement.
|
|
11
|
-
|
|
12
|
-
Single rename:
|
|
13
|
-
rename preview <file> <entity> <newName>
|
|
14
|
-
rename execute <file> <entity> <newName>
|
|
15
|
-
rename apply <previewId>
|
|
16
|
-
|
|
17
|
-
Use preview/apply when you want to inspect the planned change before writing files.
|
|
18
|
-
Use execute when you want to write immediately.
|
|
19
|
-
|
|
20
|
-
Run:
|
|
21
|
-
aib rename execute --stdin
|
|
22
|
-
|
|
23
|
-
Input:
|
|
24
|
-
{
|
|
25
|
-
"file": "src/service.ts",
|
|
26
|
-
"renames": {
|
|
27
|
-
"oldName": "newName",
|
|
28
|
-
"OldService": "NewService"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
If a large rename request fails, edit the captured input file and rerun with --from.
|
|
33
|
-
For small one-off rename requests, write a corrected request instead.
|
|
34
|
-
|
|
35
|
-
Latest rename input:
|
|
36
|
-
<session-dir>/inputs/rename/_last.json
|
|
37
|
-
|
|
38
|
-
Handle:
|
|
39
|
-
aib:input:rename:last
|
|
40
|
-
|
|
41
|
-
Example:
|
|
42
|
-
rename preview --from aib:input:rename:last
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
Use reveal to inspect TypeScript config discovery used by AIB.
|
|
2
|
-
|
|
3
|
-
Reveal is for config/setup diagnosis.
|
|
4
|
-
Use it when aliases, sync, imports normalize, or tsconfig excludes depend on which tsconfig files AIB sees.
|
|
5
|
-
|
|
6
|
-
Commands:
|
|
7
|
-
aib reveal tsconfigs
|
|
8
|
-
aib reveal tsaliases
|
|
9
|
-
|
|
10
|
-
tsconfigs shows visible TypeScript configs and config-excluded configs.
|
|
11
|
-
tsaliases shows baseUrl, paths, extends, inherited paths, duplicated inherited paths, and overridden inherited paths.
|
|
12
|
-
|
|
13
|
-
Controls:
|
|
14
|
-
all show all output instead of compact output
|
|
15
|
-
nec no config excludes; ignore sync.tsconfig.exclude
|
|
16
|
-
ned no default excludes
|
|
17
|
-
limit max visible groups/items before + N more
|
|
18
|
-
|
|
19
|
-
Examples:
|
|
20
|
-
aib reveal tsconfigs
|
|
21
|
-
aib reveal tsconfigs +all
|
|
22
|
-
aib reveal tsconfigs +nec limit=20
|
|
23
|
-
aib reveal tsaliases
|
|
24
|
-
aib reveal tsaliases +all
|
|
25
|
-
aib reveal tsaliases +nec
|
|
26
|
-
|
|
27
|
-
Use tsconfigs before tuning sync.tsconfig.exclude.
|
|
28
|
-
Use tsaliases before creating AIB pathAliases or configuring import normalization.
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
Selectors identify symbols when names are ambiguous.
|
|
2
|
-
Use plain names when they are unambiguous.
|
|
3
|
-
Use selectors when aib reports ambiguity or when different symbol kinds share a name.
|
|
4
|
-
|
|
5
|
-
Example:
|
|
6
|
-
type WsOptions
|
|
7
|
-
class WsOptions
|
|
8
|
-
|
|
9
|
-
If aib needs the exact entity, use:
|
|
10
|
-
t-WsOptions
|
|
11
|
-
c-WsOptions
|
|
12
|
-
|
|
13
|
-
Selectors list:
|
|
14
|
-
f-name function
|
|
15
|
-
c-Name class
|
|
16
|
-
i-Name interface
|
|
17
|
-
t-Name type
|
|
18
|
-
v-name variable
|
|
19
|
-
e-Name enum
|
|
20
|
-
m-name method, usually with parent in JSON
|
|
21
|
-
p-name property, usually with parent in JSON
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
Start by creating or selecting your session.
|
|
2
|
-
Create it once, then reuse it.
|
|
3
|
-
Do not create a new session for every command or subtask.
|
|
4
|
-
|
|
5
|
-
Session stores captured inputs, saved outputs, aliases, and prefs.
|
|
6
|
-
|
|
7
|
-
Prefer short session names:
|
|
8
|
-
aa, tr, qa, a2
|
|
9
|
-
|
|
10
|
-
Create:
|
|
11
|
-
session init --name <name>
|
|
12
|
-
|
|
13
|
-
Follow the command output.
|
|
14
|
-
If aib says multiple sessions exist, use the session you created explicitly:
|
|
15
|
-
aib -s <name> <command>
|
|
16
|
-
|
|
17
|
-
Or bind this shell:
|
|
18
|
-
AIB=<name>
|
|
19
|
-
|
|
20
|
-
If you want to prune session inputs/outputs, use:
|
|
21
|
-
session clear
|
|
22
|
-
|
|
23
|
-
After clear, keep using the same session.
|
|
24
|
-
|
|
25
|
-
Check:
|
|
26
|
-
session status
|
|
27
|
-
|
|
28
|
-
Handles:
|
|
29
|
-
Commands may return handles for hidden output or reusable indexes.
|
|
30
|
-
|
|
31
|
-
Hidden output:
|
|
32
|
-
aib:res_<id>
|
|
33
|
-
|
|
34
|
-
Use view to fetch only the hidden part without repeating the original request:
|
|
35
|
-
aib view aib:res_<id>
|
|
36
|
-
|
|
37
|
-
Reusable indexes:
|
|
38
|
-
aib:usages:<name>
|
|
39
|
-
aib:graph:<name>
|
|
40
|
-
|
|
41
|
-
Usages and graph handles store computed indexes.
|
|
42
|
-
Use them with --from-file to focus or expand the saved result:
|
|
43
|
-
|
|
44
|
-
inspect usages --from-file aib:usages:service-usages --focus createService --detail code
|
|
45
|
-
inspect graph --from-file aib:graph:services-graph --focus src/service.ts
|
|
46
|
-
|
|
47
|
-
Escape hatch for latest mutation status/result:
|
|
48
|
-
aib execution status last
|
|
49
|
-
|
|
50
|
-
Prefs are stored in the session.
|
|
51
|
-
Use prefs when you want repeated CLI behavior without repeating request fields.
|
|
52
|
-
|
|
53
|
-
Set several prefs:
|
|
54
|
-
session prefs set inspect.graph.hubs false inspect.graph.leaves false
|
|
55
|
-
|
|
56
|
-
Show current overrides:
|
|
57
|
-
session prefs get
|
|
58
|
-
|
|
59
|
-
See help prefs for the full list.
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
AIB keeps large outputs compact.
|
|
2
|
-
When part of a result is hidden, output may include:
|
|
3
|
-
|
|
4
|
-
view: aib:res_<id>
|
|
5
|
-
|
|
6
|
-
Use view to fetch the hidden part without repeating what you already saw.
|
|
7
|
-
|
|
8
|
-
When a batch has several hidden results of the same kind, output may include:
|
|
9
|
-
|
|
10
|
-
view all code: aib:res_<id>
|
|
11
|
-
view all members: aib:res_<id>
|
|
12
|
-
|
|
13
|
-
A `view all` handle covers hidden parts from all results of that kind.
|
|
14
|
-
|
|
15
|
-
For code views, narrow what you fetch:
|
|
16
|
-
only show only these hidden code entities
|
|
17
|
-
except show all hidden code except these entities
|
|
18
|
-
|
|
19
|
-
Run:
|
|
20
|
-
aib view --stdin
|
|
21
|
-
|
|
22
|
-
Input:
|
|
23
|
-
view aib:res_<id_1> only=[ClassA.{bigA,bigB},bigQ,ClassB.bigB]
|
|
24
|
-
view aib:res_<id_2> except=[ClassC.bigC]
|
|
25
|
-
|
|
26
|
-
Inline:
|
|
27
|
-
aib view aib:res_<id_1> --only bigQ --only "ClassA.{bigA,bigB}"
|
|
28
|
-
aib view aib:res_<id_2> --except ClassB.bigB --except ClassC.bigC
|