Commit 4f97da4
chore(rsr-certifier/vscode): un-vendor affine-vscode (Refs hyperpolymath/affinescript#104) (#160)
## Summary
- Replace the 463-line in-tree copy of
`rsr-certifier/extensions/vscode/src/affine-vscode-adapter.cjs` with a
`require("@hyperpolymath/affine-vscode")` against the published npm
package.
- `src/index.cjs` line 18 swap + accompanying comment-block update.
- `out/extension.cjs` is unchanged — this extension uses the
manual-wiring pattern (`src/index.cjs` as the extension's `main`), so
only the hand-written entry-point needs touching, not the
AffineScript-compiled wasm shim.
## DRAFT — gated on hyperpolymath/affinescript#104
This PR cannot be marked ready-for-review until the package is on npm.
Current state of affinescript#104:
| Acceptance criterion | Status |
|---|---|
| `package.json` shape, peer deps, `repository.directory` | ✅ on
`affinescript/main` |
| CI tag-driven publish | ✅ `affine-vscode-publish.yml` on
`affinescript/main` |
| README documents npm-install as primary | ✅ on `affinescript/main`
(tightened in hyperpolymath/affinescript#316) |
| `npm view @hyperpolymath/affine-vscode` resolves | ❌ owner action:
create npm org `hyperpolymath`, add `NPM_TOKEN` secret to affinescript
repo, push tag `affine-vscode-v0.1.0` |
| my-lang + standards un-vendored | 🟡 **this PR** (DRAFT) + companion
DRAFT in hyperpolymath/my-lang#66 |
## Test plan
After hyperpolymath/affinescript#104 lands the first publish:
- [ ] `npm install` in
`rhodium-standard-repositories/satellites/rsr-certifier/extensions/vscode/`
resolves the new dep
- [ ] Loading the extension in a fresh VS Code instance: `activate` runs
without error, `rsr.checkCompliance` is registered, `deactivate` tears
down cleanly
- [ ] Mark this PR ready-for-review, then merge
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent af8423c commit 4f97da4
3 files changed
Lines changed: 4 additions & 466 deletions
File tree
- rhodium-standard-repositories/satellites/rsr-certifier/extensions/vscode
- src
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
0 commit comments