Skip to content

v0.7.0

Choose a tag to compare

@frap129 frap129 released this 22 Aug 17:39
· 104 commits to main since this release

57 commits | 42 files changed

Features

  • feat: deliver pending hook injections via system transform
  • feat: add tool.execute.after handler for PostToolUse hooks
  • feat: wire PreToolUse hook evaluation into tool.execute.before
  • feat: add pendingHookInjections to SessionState
  • feat: add rule-hooks evaluation module
  • feat: parse hooks frontmatter for PreToolUse/PostToolUse triggers

Bug Fixes

  • fix: consolidate multiple system messages into single string for model compatibility
  • fix(bun-compat): achieve 100% pass rate by eliminating vi.mock and adding dependency injection
  • fix: improve error consistency, fix cross-module imports, and update tests
  • fix(deps): align @OpenTui versions in manifest with lock file (0.1.93→0.1.97)
  • fix(deps): remove redundant @types/minimatch
  • fix(deps): add @opentui/* as optional peerDependencies
  • fix(deps): remove duplicated @opentui/* and solid-js from devDependencies
  • fix(active-rules-state): throw on invalid sessionId to align with getStateFilePath
  • fix(message-context): strictly require role === user in extractLatestUserPrompt
  • fix(tests): eliminate flaky concurrent-writes test by awaiting write promises
  • fix: narrow sessionID type in onSystemTransform
  • fix: add fetch-depth 0 to beta release workflow
  • fix: global block scan and deduplicate rule content per hook evaluation
  • fix: check PreToolUse block before any queuing or side-effects
  • fix: clone pendingHookInjections in snapshot() to prevent mutation leaks

Documentation

  • docs(utils): explicitly document internal modules not re-exported by facade
  • docs(utils): clarify barrel file as intentional public API facade
  • docs: add hook-based triggers to README features and architecture
  • docs: add hook-based rule triggers documentation

Refactoring

  • refactor(error-consistency): add await to write call, fix type duplication, document exception contracts
  • refactor: fix convention drift, naming, and AI debt across 10 files
  • refactor(tui): consolidate loadRules and deduplicate metadata display in SidebarContent
  • refactor(rule-filter): extract repeated condition checks into evaluateConditionChecks helper
  • refactor: extend utils.ts facade for TUI needs and update cross-package imports
  • refactor: extract shared hasConditions to rule-metadata and deduplicate callers
  • refactor(runtime): add completion audit log for hook side-effects
  • refactor(runtime): replace as any cast with typed OpenCodeClient interface
  • refactor: standardize I/O boundary error returns to null instead of undefined
  • refactor(active-rules-state): remove fire-and-forget catch so callers can handle errors
  • refactor(runtime-context): move debugLog and projectDirectory into BuildFilterContextOptions
  • refactor: extract shared logWarning helper and remove redundant guard
  • refactor: remove pass-through wrappers createSessionStore and extractUserPromptFromParts

Tests

  • test: add edge case tests for array system message consolidation
  • test: verify hook run side-effect execution
  • test: verify PreToolUse block: true throws and prevents execution
  • test: add explicit test for PreToolUse excluding PostToolUse hooks
  • test: correct rule-hooks test expectations to match regex semantics

Build & CI

  • build: Allow builds for aube
  • build: switch to NodeNext module resolution for strict ESM enforcement

Styles

  • style(tui): add .js extension to cross-package imports from src
  • style(active-rules-state): rename sessionId to sessionID to match convention
  • style: add node: prefix to all Node built-in module imports
  • style: add .js extension to local imports in active-rules-state and rule-discovery
  • style(test-fixtures): rename duplicate section headers to be unique
  • style: remove restating comments in rule-discovery, rule-metadata, and active-rules-state