Skip to content

fix(config): quiet IDE red marks on vite.config.ts + demo tsconfig#61

Merged
Luis85 merged 1 commit into
developfrom
fix/ide-red-marks-vite-tsconfig
Apr 24, 2026
Merged

fix(config): quiet IDE red marks on vite.config.ts + demo tsconfig#61
Luis85 merged 1 commit into
developfrom
fix/ide-red-marks-vite-tsconfig

Conversation

@Luis85
Copy link
Copy Markdown
Owner

@Luis85 Luis85 commented Apr 24, 2026

Summary

Two small IDE red-marks surfaced post-merge:

  • vite.config.tstest not typed on UserConfigExport. Switched defineConfig import to vitest/config (keeps Plugin from vite).
  • examples/nurture-pet/tsconfig.json — TS 7.0 deprecates baseUrl: ".". Dropped it; paths entries are already relative to the tsconfig, which is the fallback resolver root under moduleResolution: Bundler. No behaviour change.

Test plan

  • npm run typecheck green
  • npm run verify green (413 tests + build)
  • cd examples/nurture-pet && npx tsc --noEmit no longer emits the baseUrl deprecation (pre-existing js-son-agent ambient-module gaps remain — separate issue)

🤖 Generated with Claude Code

vite.config.ts: type `test` via `vitest/config`'s `defineConfig` so
TS resolves the vitest UserConfig overload ("Object literal may only
specify known properties, and 'test' does not exist in type
'UserConfigExport'"). `Plugin` still comes from `vite`.

examples/nurture-pet/tsconfig.json: drop `baseUrl: "."`. TS 7.0
deprecates it and the `paths` entries already use paths relative to
the tsconfig, which is what the resolver falls back to when baseUrl
is absent under `moduleResolution: Bundler`. No behaviour change.
@Luis85 Luis85 merged commit 0390614 into develop Apr 24, 2026
8 checks passed
@Luis85 Luis85 deleted the fix/ide-red-marks-vite-tsconfig branch April 24, 2026 14:30
Luis85 added a commit that referenced this pull request Apr 26, 2026
## Summary

Doc-audit pass over `docs/plans` + `docs/specs`. Three things land
together:

- **`docs/archive/{plans,specs}/`** — new home for plans whose roadmap
  rows have all shipped (or whose goals were folded into a successor)
  and specs whose design is now reflected in code. Includes a
  `README.md` explaining the policy; `CLAUDE.md` documents the
  convention.
- **`git mv` 23 plans + 3 specs into the archive.** The active live
  set is now the comprehensive polish-and-harden plan plus three
  specs (post-tfjs improvements, mvp-demo, vision), each with a
  refreshed status banner.
- **Refresh the live comprehensive plan** against current `develop`:
  - PR column updated for rows 16/19/20/3/4/22 (now shipped via
    PRs #91 / #98 / #104 / #110 / #113 / #111).
  - New "Post-roadmap follow-ups" section covers PRs #92#125
    (review-bot infra, tracker findings, demo + tfjs hotfixes,
    tooling).
  - Stale prose-baked counts dropped (size budgets now reference
    `package.json#size-limit` only).
  - Coverage-thresholds section gains a pointer to the sticky PR
    comment shipped in PR #124.

## Other doc fixes

- `README.md`: drop the unverifiable "Phase A milestones (M0–M15) are
  all green" claim — the milestones don't exist as documented IDs
  anywhere; replace with a pointer to the live polish plan.
- `vision.md`: refresh cadence note (was pinned to 2026-04-19 + "next
  review at 1.0").
- `2026-04-24-post-tfjs-improvements.md`: mark recommended-order items
  that have shipped (PRs #61, #76, #77, #83, #84, #91, #94, #96,
  #104, #113), link the active roadmap as the heir.
- `mvp-demo.md`: status banner explaining where active polish work is
  now tracked.

## Mechanical

- Update inline cross-refs in `CLAUDE.md`, `eslint.config.js`,
  `src/agent/{Agent,AgentModule}.ts`, `tests/unit/exports.test.ts`,
  and `docs/daily-reviews/2026-04-25.md` to point at the new
  `docs/archive/` paths so links keep resolving.

No code change beyond comment-path updates.

## Test plan

- [x] `npm run verify` green (`format:check` + `lint` + `typecheck` +
  `test` + `build` + `docs`). 523 tests pass; the 2 lint warnings
  are pre-existing (`CognitionPipeline.invokeSkillAction` complexity
  + `scoreFailure` param count) and on the ratchet menu.
- [x] `git ls-files docs/archive/` shows the moved files; renames are
  preserved (`git log --follow` works for any moved file).
- [ ] Codex review: clean, no blockers.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Luis Mendez <hallo@luis-mendez.de>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants