Commit efcab80
refactor(core): audit @pretable/core public surface; rename GridCore* → Pretable* (#110)
* docs(spec): tier 1 sub-project A — PR 2 (@pretable/core audit) design
Renames GridCore* → Pretable* at source in @pretable-internal/grid-core
and layout-core; collapses @pretable/core's types.ts; replaces
PretableGrid's Omit<> leak with an explicit interface; bundledPackages
update so api-extractor inlines the renamed types in core.api.md.
Headless docs/examples are explicitly deferred per memory.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* docs(plan): tier 1 sub-project A — PR 2 (core audit) implementation plan
9 tasks: layout-core rename, grid-core rename (+ renderer-dom), explicit
PretableGrid interface, react import update, public_api.ts with TSDoc +
@public, api-extractor config update, regenerate .api.md files, README,
gates+PR.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* refactor(layout-core): rename LayoutSpan → PretableRowRange
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* refactor(grid-core): rename GridCore* → Pretable* at source
Engine-level types now use Pretable* names directly. Internal-only
GridCoreStore renamed to PretableEngine to distinguish from the public
PretableGrid interface (defined separately in @pretable/core).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* refactor(core): explicit PretableGrid interface; collapse types.ts
Replaces extends Omit<GridCoreStore<TRow>, 'options'> with an explicit
interface listing every method/property pretable promises. types.ts
becomes a re-export shell from the renamed engine types. Also re-exports
PretableRowRange via grid-core (which already bridges layout-core), and
updates core/index.ts to export PretableGrid from pretable-grid.ts.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* refactor(react): rename import aliases for renamed core types
types.ts imports core's PretableColumn as PretableBaseColumn to
disambiguate from react's own PretableColumn. index.ts re-exports
PretableColumn as PretableCoreColumn so react's public surface is
unchanged — PR 3 will revisit the surface during the react audit.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* feat(core): hand-curated public_api.ts with @public TSDoc tags
Adds @public TSDoc tags to every symbol exported through
@pretable/core's public surface, plus @internal tags on engine-only
symbols (PretableEngine, PretableFrame, deriveSelectedRows,
rangeContainsCell, layout-core's planning types). index.ts collapses to
a single re-export from public_api.ts.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* chore(api): bundle internal packages; flip missing-release-tag to warning
bundledPackages now inlines @pretable-internal/grid-core and
@pretable-internal/layout-core into each report so renamed types appear
self-contained. ae-missing-release-tag was 'none' for the PR 1 baseline;
flips to 'warning' now that core is fully tagged — provides coverage
visibility for PRs 3-5 without failing CI.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* chore(api): regenerate .api.md; revert release-tag flip and silence unresolved-link
core.api.md: zero ae-forgotten-export warnings; every public symbol
annotated @public; PretableGrid is a flat interface.
react.api.md: mechanical rename diff (Pretable* names inlined).
api-extractor.base.json: ae-missing-release-tag stays at "none" (the
spec's flip-to-warning broke api:check — non-local mode treats warnings
as fatal, opposite of what the spec assumed). ae-unresolved-link
silenced because cross-package {@link createGrid} can't resolve in
bundled reports. Tag flip will land in PR 5 once react/ui/stream-adapter
are tagged.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* docs(core): add per-package README; correct spec on api-extractor warnings
README mentions headless support; full docs/examples deferred per
project_headless_engine_docs_deferred.md memory.
Spec correction: api-extractor's non-local mode treats warnings as
fatal, so ae-missing-release-tag stays at "none" until PR 5. Also
silences ae-unresolved-link for cross-package TSDoc refs.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* chore: prettier reformat spec/plan/grid-core barrel
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent a63886d commit efcab80
23 files changed
Lines changed: 2102 additions & 377 deletions
File tree
- docs/superpowers
- plans
- specs
- packages
- core
- src
- grid-core/src
- __tests__
- layout-core/src
- react
- src
- renderer-dom/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
Lines changed: 1122 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 186 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments