Skip to content

feat(detector): add inspect surfaces, content-gate modes, and CLI refactors#54

Merged
dev-pi2pie merged 34 commits into
mainfrom
dev
Mar 25, 2026
Merged

feat(detector): add inspect surfaces, content-gate modes, and CLI refactors#54
dev-pi2pie merged 34 commits into
mainfrom
dev

Conversation

@dev-pi2pie

Copy link
Copy Markdown
Owner

Summary

  • add a first-class word-counter inspect command for detector diagnosis with pipeline and engine views
  • add detector-subpath inspect APIs and exported inspect/debug types under @dev-pi2pie/word-counter/detector
  • add configurable detector contentGate modes: default, strict, loose, and off
  • align library inspect defaults with the documented WASM pipeline behavior
  • add inspect batch support for repeated --path inputs, directory expansion, section selection, and JSON/standard output modes
  • refactor detector/window-resolution logic into focused modules for policy, engine execution, window resolution, inspect shaping, and pre-segmentation
  • refactor batch aggregation and path resolution into smaller modules while preserving CLI behavior
  • add lint/format configs for oxlint and oxfmt

Details

  • introduce route-aware detector policies for Latin and Hani handling, including eligibility thresholds, content-gate evaluation, corroboration rules, and borrowed Japanese context for mixed Hani windows
  • preserve existing counting behavior while threading contentGate configuration through CLI, detector-subpath runtime APIs, inspect output, debug summaries, and detector evidence
  • extend CJS and package exports to cover the new detector inspect/debug surface
  • update README, schema docs, research docs, plans, and job records for the new inspect/content-gate contracts

Testing

  • add broad regression coverage for:
    • inspect command behavior
    • detector policy behavior
    • detector inspect library API
    • detector counting/runtime entrypoints
    • batch output and path resolution
    • package types and CJS interop
  • verified with targeted Bun test suites across inspect, detector, batch-output, path-resolution, package-types, and compatibility coverage

@dev-pi2pie dev-pi2pie self-assigned this Mar 25, 2026
@dev-pi2pie dev-pi2pie added documentation Improvements or additions to documentation enhancement New feature or request feature labels Mar 25, 2026
@dev-pi2pie dev-pi2pie merged commit c769248 into main Mar 25, 2026
1 check passed
@dev-pi2pie dev-pi2pie deleted the dev branch March 25, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant