Skip to content

feat(ts): convert hooks, MCP, and plugins to TypeScript (Phase 4) - #60

Merged
graphanov merged 1 commit into
mainfrom
forge/issue-52-hooks-mcp-plugins-typescript
Jun 29, 2026
Merged

feat(ts): convert hooks, MCP, and plugins to TypeScript (Phase 4)#60
graphanov merged 1 commit into
mainfrom
forge/issue-52-hooks-mcp-plugins-typescript

Conversation

@graphanov

Copy link
Copy Markdown
Owner

Summary

Scope

  • 15 source modules renamed .js -> .ts with full type annotations from src/types/index.ts (no any types). 3 test files updated to import from dist/ (matching the Phase 3 pattern). No runtime behavior changes.

Out of scope

Verification

  • npm run typecheck -> pass (strict: true); npm run build -> pass; npm run test -> 445/445 pass; node bin/lazyglm.js --version -> lazyglm 0.1.4; npm pack --dry-run -> correct contents (58 files); smoke doctor -> 10 plugins + 7 skills loaded

Risk

  • low — pure type-safety conversion, no behavioral changes

Linked issue

Closes #52

Authority boundary

john-lomein did not merge, publish, release, dispatch workflows, change settings, force-push, rewrite history, or touch secrets.

Convert 15 modules from .js to .ts following the Phase 3 pattern:
- src/hooks/engine.js, src/hooks/schema.js
- src/mcp/config.js
- src/plugins/* (11 modules)
- src/skills/index.js

All new .ts files use types from src/types/index.ts (no any types).
Tests import from dist/ (pretest builds before test runs).

Verification:
- npm run typecheck: pass (strict: true)
- npm run build: pass
- npm run test: 445/445 pass
- node bin/lazyglm.js --version: pass
- npm pack --dry-run: correct contents

Closes #52
@graphanov

Copy link
Copy Markdown
Owner Author

@codex review

@graphanov

Copy link
Copy Markdown
Owner Author

Status: draft PR verified; marking ready for review.

Evidence:

  • mergeable=MERGEABLE, mergeStateStatus=CLEAN; ci=SUCCESS; 0 unresolved review threads; git diff --check clean; node --test test/*.test.mjs -> 445 pass 0 fail; npm run typecheck -> clean; npm run build -> clean

Next: independent review on this head (codex trigger already pending from owner)

@graphanov
graphanov marked this pull request as ready for review June 29, 2026 13:15
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 221ec9f72f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@graphanov
graphanov merged commit 8c6ca4e into main Jun 29, 2026
1 check passed
@graphanov
graphanov deleted the forge/issue-52-hooks-mcp-plugins-typescript branch June 29, 2026 15:51
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.

Phase 4: Convert hooks, MCP, and plugins to TypeScript (.js → .ts)

1 participant