@erclx/aitk 3.8.0 → 3.10.0

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Overview
4
4
 
5
- The base layer covers every project the toolkit scaffolds, whatever language sits on top. It ships formatting, spelling, shell linting, conventional commits, git hooks, CI, and three maintenance scripts. Every other stack extends it, so a decision made here is one every stack inherits.
5
+ The base layer covers every project the toolkit scaffolds, whatever language sits on top. It ships formatting, spelling, shell linting, conventional commits, git hooks, CI, and one maintenance script. Every other stack extends it, so a decision made here is one every stack inherits.
6
6
 
7
7
  A repository with several language roots layers this stack once at the root and skips it per subtree, since git honors only one `core.hooksPath` and a re-dropped husky silently breaks. `docs/target-projects.md` carries the recipe.
8
8
 
@@ -18,7 +18,7 @@ Golden config files live in `tooling/base/configs/` and are copied into the targ
18
18
  - `.github/workflows/verify.yml`: runs on pull requests targeting `main` and on `workflow_dispatch`.
19
19
  - `.github/pull_request_template.md`: `## Summary`, `## Key Changes`, `## Technical Context`, `## Testing`.
20
20
  - `.vscode/extensions.json` and `.vscode/settings.json`: editor wiring for Prettier, cspell, shfmt, and shellcheck.
21
- - `scripts/verify.sh`, `scripts/clean.sh`, `scripts/update.sh`: the maintenance entry points behind `check`, `clean`, and `update`.
21
+ - `scripts/verify.sh`: the maintenance entry point behind `check`.
22
22
 
23
23
  ## What ships as user-owned seeds
24
24
 
@@ -86,13 +86,13 @@ Sticky negative knowledge. Do not relearn.
86
86
 
87
87
  ## CLI
88
88
 
89
- | Script | What it does |
90
- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
91
- | `bun run check` | Full verification suite via `scripts/verify.sh`. Runs `format` first to auto-fix drifted code, then asserts. Honors `VERIFY_NESTED=true` to suppress timeline boundaries when another script calls it. |
92
- | `bun run check:format` | Asserts prettier and shfmt formatting without writing |
93
- | `bun run check:spell` | Runs cspell across every file, with context on failures |
94
- | `bun run check:shell` | Runs shellcheck at warning severity |
95
- | `bun run format` | Writes prettier and shfmt formatting in place |
96
- | `bun run prepare` | Initializes husky hooks, run automatically on `bun install` |
97
- | `bun run clean` | Removes `node_modules/`, clears the bun cache, reinstalls fresh |
98
- | `bun run update` | Runs `bun update --interactive`, then `verify.sh` with `VERIFY_NESTED=true` |
89
+ | Script | What it does |
90
+ | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
91
+ | `bun run check` | Repairs a checkout via `scripts/verify.sh`. Honors `VERIFY_NESTED=true` to suppress timeline boundaries when another script calls it. |
92
+ | `bun run check:format` | Asserts prettier and shfmt formatting without writing |
93
+ | `bun run check:spell` | Runs cspell across every file, with context on failures |
94
+ | `bun run check:shell` | Runs shellcheck at warning severity |
95
+ | `bun run format` | Writes prettier and shfmt formatting in place |
96
+ | `bun run prepare` | Initializes husky hooks, run automatically on `bun install` |
97
+
98
+ `bun run check` repairs a checkout rather than gating one. It runs `format` first to auto-fix drifted code, then asserts only what the formatters could not fix. The pull request workflow calls `check:format`, `check:spell`, and `check:shell` directly, and those three are the gate.
@@ -21,12 +21,10 @@ Owns how the project runs on a developer machine: installing the toolchain, the
21
21
 
22
22
  ## Scripts
23
23
 
24
- | Command | Purpose |
25
- | ---------------- | ---------------------------------------------------- |
26
- | `bun run check` | Full verification. Auto-formats, then asserts clean. |
27
- | `bun run format` | Auto-fix prettier and shfmt formatting. |
28
- | `bun run clean` | Wipe `node_modules/`, clear bun cache, reinstall. |
29
- | `bun run update` | Interactive `bun update` followed by verification. |
24
+ | Command | Purpose |
25
+ | ---------------- | ------------------------------------------------------------------------------ |
26
+ | `bun run check` | Repairs locally. Auto-formats, then asserts what the formatters could not fix. |
27
+ | `bun run format` | Auto-fix prettier and shfmt formatting. |
30
28
 
31
29
  ## Shell scripts
32
30
 
@@ -1,45 +0,0 @@
1
- #!/bin/bash
2
- set -e
3
- set -o pipefail
4
-
5
- GREEN='\033[0;32m'
6
- RED='\033[0;31m'
7
- WHITE='\033[1;37m'
8
- GREY='\033[0;90m'
9
- NC='\033[0m'
10
-
11
- log_info() { echo -e "${GREY}│${NC} ${GREEN}✓${NC} $1"; }
12
- log_error() {
13
- echo -e "${GREY}│${NC} ${RED}✗${NC} $1"
14
- exit 1
15
- }
16
- log_step() { echo -e "${GREY}│${NC}\n${GREY}├${NC} ${WHITE}$1${NC}"; }
17
- log_rem() { echo -e "${GREY}│${NC} ${RED}-${NC} $1"; }
18
-
19
- check_dependencies() {
20
- command -v bun >/dev/null 2>&1 || log_error "bun is not installed"
21
- }
22
-
23
- main() {
24
- check_dependencies
25
-
26
- echo -e "${GREY}┌${NC}"
27
-
28
- echo -e "${GREY}├${NC} ${WHITE}Cleaning artifacts${NC}"
29
- rm -rf node_modules
30
-
31
- log_rem "node_modules/"
32
-
33
- log_step "Cleaning cache"
34
- bun pm cache rm
35
- log_info "Package manager cache cleared"
36
-
37
- log_step "Rehydrating project"
38
- bun install
39
- log_info "Dependencies installed"
40
-
41
- echo -e "${GREY}└${NC}\n"
42
- echo -e "${GREEN}✓ Clean complete${NC}"
43
- }
44
-
45
- main "$@"
@@ -1,49 +0,0 @@
1
- #!/bin/bash
2
- set -e
3
- set -o pipefail
4
-
5
- GREEN='\033[0;32m'
6
- YELLOW='\033[0;33m'
7
- RED='\033[0;31m'
8
- WHITE='\033[1;37m'
9
- GREY='\033[0;90m'
10
- NC='\033[0m'
11
-
12
- log_info() { echo -e "${GREY}│${NC} ${GREEN}✓${NC} $1"; }
13
- log_warn() { echo -e "${GREY}│${NC} ${YELLOW}!${NC} $1"; }
14
- log_error() {
15
- echo -e "${GREY}│${NC} ${RED}✗${NC} $1"
16
- exit 1
17
- }
18
- log_step() { echo -e "${GREY}│${NC}\n${GREY}├${NC} ${WHITE}$1${NC}"; }
19
-
20
- pipe_output() { while IFS= read -r line; do echo -e "${GREY}│${NC} $line"; done; }
21
-
22
- check_dependencies() {
23
- command -v bun >/dev/null 2>&1 || log_error "bun is not installed"
24
- }
25
-
26
- main() {
27
- SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
28
-
29
- check_dependencies
30
-
31
- echo -e "${GREY}┌${NC}"
32
-
33
- echo -e "${GREY}├${NC} ${WHITE}Interactive dependency update${NC}"
34
- echo -e "${GREY}│${NC}"
35
- bun update --interactive
36
-
37
- log_step "Verifying project health"
38
- if [ -f "$SCRIPT_DIR/verify.sh" ]; then
39
- VERIFY_NESTED=true "$SCRIPT_DIR/verify.sh"
40
- log_info "All checks passed"
41
- else
42
- log_warn "Verification script not found, skipping."
43
- fi
44
-
45
- echo -e "${GREY}└${NC}\n"
46
- echo -e "${GREEN}✓ Update complete${NC}"
47
- }
48
-
49
- main "$@"