F2: region-anchored threads on @cline/sdk (Feature #4) #5
Reference in New Issue
Block a user
Delete Branch "feat/f2-region-anchored-threads"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Implements F2 (#4) — region-anchored discussion threads on the POC skeleton (#2), per
vscode-cowriting-plugin-content/specs/coauthoring-inner-loop.md(§7.2 SLICE-1..5).src/model.ts— versioned artifact schema (sharedanchors/provenanceprimitives,schemaVersion, emptyattributions/proposalsextension points for F3/F4 — INV-4) + stable, sorted serialization (INV-2).src/store.ts—CoauthorStoreload/save of.threads/<doc>.jsonsidecars.src/anchorer.ts— hybrid anchoring:buildFingerprint, resolution ladder (exact-unique → context-disambiguated → lineHint tiebreak → orphaned, never guesses — INV-1/INV-3), live offsetshift.src/threadController.tswires Store + Anchorer + vscode-freesrc/threadModel.tstovscode.comments(create-on-selection, reply, resolve, render);package.jsoncontributes the commands/menus;extension.tsreturns a test API.FileSystemWatcherexternal re-anchor (with self-write guard) + orphaned-thread surface; decision logic locked by unit tests.@vscode/test-electronhost E2E across create → reply → resolve → persist → reload → re-anchor → orphan.No live
@cline/sdkturn and no credentials in F2 (INV-5);cline.tsuntouched.Test Plan
npm test— 24 vitest unit tests green (schema, store, anchorer, thread mutations, re-anchor decisions, + existing SDK driver).npm run typecheck— clean.npm run build—out/extension.cjsbuilds.npm run test:e2e— 4 host E2E tests green against VS Code 1.124.0.Plan:
docs/superpowers/plans/2026-06-10-f2-region-anchored-threads.md.🤖 Generated with Claude Code