| refactor(ink): inline ink runtime as workspace package (#1947)
Was a stub src/vendor/ink/index.d.ts plus an empty index.js (the
real runtime arrived obfuscated, source unreachable). Moving the
source into packages/ink as a workspace dep gives consumers real
types and makes the runtime editable in-repo.
API migrations forced by the new stricter types:
- Text/Box color is a typed union now (ansi:<name> | #hex |
rgb() | ansi256()); bare ansi names get the ansi: prefix
- dimColor → dim; Text's bold/dim discriminated union relaxed
so the two can coexist (terminals collapse them anyway)
- ThemeTokens fields typed as Color so theme-derived values flow
through helpers / props without manual casts
Markdown OSC 8 hyperlinks switch from <Transform> (a shim that
silently ignored the transform prop, breaking Ctrl+click hyperlinks)
to <Link url>, which uses ink's existing ink-link plumbing.
Dropped dead shims: Transform, useAnimation (zero callers after
the markdown rewrite).
Comment-policy pass on the new package: stripped 638 multi-line
essay block comments to 1-line summaries to match the repo rules.
Co-authored-by: reasonix <reasonix@deepseek.com> | 2 天前 |