EANCH-WP-0001 T05: umbrella cutover complete + pure subpath exports
Add ./selectors and ./types subpath exports so node-env consumers get a pdfjs-free entry (the umbrella roundtrip test uses them). Update README status to 'extracted; umbrella consumes this package'. Mark T05 done; record the blocker as resolved. Umbrella verified green (typecheck, 95 tests, build) at citation-evidence@d145148. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
d5c5155df8
commit
f32b500f44
3 changed files with 24 additions and 10 deletions
20
README.md
20
README.md
|
|
@ -13,13 +13,17 @@ turns annotations from static marks into durable, reopenable source references.
|
||||||
|
|
||||||
See `SCOPE.md` for the boundary and `INTENT.md` for the long-range intent.
|
See `SCOPE.md` for the boundary and `INTENT.md` for the long-range intent.
|
||||||
|
|
||||||
## Status: extracting from the umbrella
|
## Status: extracted; umbrella consumes this package
|
||||||
|
|
||||||
The concrete anchor slice currently lives upstream in
|
The anchor slice has been extracted from the umbrella and now lives here.
|
||||||
[`../citation-evidence/src/anchor/`](../citation-evidence/src/anchor/). Workplan
|
`citation-evidence` consumes it as `@citation-evidence/evidence-anchor`
|
||||||
`EANCH-WP-0001` moves it here as a standalone TypeScript package, wires the
|
(`link:../evidence-anchor`); its former `src/anchor/` directory is gone and the
|
||||||
umbrella to consume this package, and verifies the round-trip. Shared-contract
|
`@anchor` alias is retired. Shared-contract changes still happen in the umbrella
|
||||||
changes still happen in the umbrella (`citation-evidence/wiki/`), not here.
|
(`citation-evidence/wiki/`), not here.
|
||||||
|
|
||||||
|
Remaining anchor work beyond this MVP slice (stale/orphan semantics, fuzzy
|
||||||
|
re-anchoring, HTML/Markdown selectors, promoting the PDF spike to a production
|
||||||
|
adapter) is tracked as follow-on work — see `workplans/`.
|
||||||
|
|
||||||
## Install model
|
## Install model
|
||||||
|
|
||||||
|
|
@ -34,7 +38,7 @@ aliases.
|
||||||
|
|
||||||
```text
|
```text
|
||||||
src/
|
src/
|
||||||
index.ts public entrypoint — pure surface only
|
index.ts public entrypoint — full barrel (core + pdf)
|
||||||
types.ts adapter-side types: SelectionCapture,
|
types.ts adapter-side types: SelectionCapture,
|
||||||
ResolvedAnchorTarget, AnchorResolution,
|
ResolvedAnchorTarget, AnchorResolution,
|
||||||
HighlightRenderOptions, DocumentViewerAdapter
|
HighlightRenderOptions, DocumentViewerAdapter
|
||||||
|
|
@ -79,7 +83,7 @@ import {
|
||||||
resolveSelectors,
|
resolveSelectors,
|
||||||
type DocumentViewerAdapter,
|
type DocumentViewerAdapter,
|
||||||
type AnchorResolution,
|
type AnchorResolution,
|
||||||
} from "evidence-anchor";
|
} from "@citation-evidence/evidence-anchor";
|
||||||
```
|
```
|
||||||
|
|
||||||
Resolution is explicit about uncertainty — `AnchorResolution.status` is one of
|
Resolution is explicit about uncertainty — `AnchorResolution.status` is one of
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "evidence-anchor",
|
"name": "@citation-evidence/evidence-anchor",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Selector creation, resolution, re-anchoring, and highlight/scroll contracts for the citation-evidence ecosystem.",
|
"description": "Selector creation, resolution, re-anchoring, and highlight/scroll contracts for the citation-evidence ecosystem.",
|
||||||
|
|
@ -18,6 +18,8 @@
|
||||||
],
|
],
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
|
"./selectors": "./src/selectors/index.ts",
|
||||||
|
"./types": "./src/types.ts",
|
||||||
"./pdf": "./src/pdf/index.ts"
|
"./pdf": "./src/pdf/index.ts"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -276,7 +276,7 @@ implementation remains behind `DocumentViewerAdapter`.
|
||||||
|
|
||||||
```task
|
```task
|
||||||
id: EANCH-WP-0001-T05
|
id: EANCH-WP-0001-T05
|
||||||
status: progress
|
status: done
|
||||||
priority: high
|
priority: high
|
||||||
depends_on: [T03, T04]
|
depends_on: [T03, T04]
|
||||||
state_hub_task_id: "2fd9bd62-5d79-49b5-aee7-45e0a37313ba"
|
state_hub_task_id: "2fd9bd62-5d79-49b5-aee7-45e0a37313ba"
|
||||||
|
|
@ -285,6 +285,14 @@ state_hub_task_id: "2fd9bd62-5d79-49b5-aee7-45e0a37313ba"
|
||||||
Replace the umbrella repo's internal anchor slice with a dependency on this
|
Replace the umbrella repo's internal anchor slice with a dependency on this
|
||||||
repo.
|
repo.
|
||||||
|
|
||||||
|
> **RESOLVED (2026-07-08).** The parallel `evidence-source` extraction landed
|
||||||
|
> (`citation-evidence@4ede979`), leaving `main` clean. The cutover was then
|
||||||
|
> executed and verified: umbrella typecheck + 95 tests + production build all
|
||||||
|
> green (`citation-evidence@d145148`). Package published as
|
||||||
|
> `@citation-evidence/evidence-anchor` with `.`, `./selectors`, `./types`, and
|
||||||
|
> `./pdf` exports; node-env consumers use the pure subpaths. Original blocker
|
||||||
|
> context retained below.
|
||||||
|
>
|
||||||
> **BLOCKED (2026-07-08, ralph loop iteration).** Extraction T01–T04 are
|
> **BLOCKED (2026-07-08, ralph loop iteration).** Extraction T01–T04 are
|
||||||
> complete, committed, and verified green in `evidence-anchor` (30 tests,
|
> complete, committed, and verified green in `evidence-anchor` (30 tests,
|
||||||
> typecheck, lint). T05 was **not** attempted because the umbrella
|
> typecheck, lint). T05 was **not** attempted because the umbrella
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue