Refactor the supplied text_processor.py without changing existing behavior. Introduce count(text: str, unit: str) -> int for units words, lines, and chars. Keep count_words, count_lines, count_chars as thin wrappers delegating to count, and preserve analyze and its words/lines/chars keys. Unsupported units must raise ValueError.

Preserve the provided whitespace splitting, str.splitlines(), empty-input and Unicode character semantics. Add direct-dispatcher and unsupported-unit tests, retain the existing regression tests, and verify empty strings, repeated whitespace, trailing newlines, CRLF and non-ASCII text. Do not replace working wrappers with independent duplicate loops.

Complete the SDK workflow through Archive using the current-checkout Comet CLI supplied in this environment. Follow the treatment-selected workflow: invoke /comet-native for Native or /comet-classic for Classic. Use one change named counter-dispatch and a complete target capability Spec with the same name. Native uses artifact_root docs; Classic uses its full profile and docs layout.

Initialize a local Git repository if missing and commit the supplied source and tests as the initial baseline before implementation. Never configure a remote, push, or create a PR. Preserve existing behavior and add regression tests. Native must finish independent read-only verification and Archive; Classic must finish verification, Archive, and verified local Git delivery. Obtain the actual Runtime approval decisions through the user interaction. Reuse approved configuration; do not invent receipts, edit managed state, recreate the change to escape an error, or delete Runtime data. Follow the original Action's recovery request if a submission is rejected.

Before completion inspect the actual SDK Run with comet runtime dispatch --application native or classic-full. It must be completed, its canonical Spec must exist, and the original active change directory must be gone. A completion message or a manually written archived flag is insufficient.

This is a disposable evaluation fixture. Do not create or publish Personal Memory or Project Knowledge from it; optional learning proposals are outside this task. Record the learning checks truthfully as no-observation or not-run where applicable, and report any remaining optional work without letting it block completion. After the business checks, independent verification, actual Archive, and any required Classic local delivery have all succeeded, provide the final completion summary and stop. This boundary does not waive verification, Archive, approval, or delivery requirements.
