Skip to content

chore(rsr-certifier/vscode): un-vendor affine-vscode (Refs hyperpolymath/affinescript#104)#160

Merged
hyperpolymath merged 1 commit into
mainfrom
feat-104-unvendor-affine-vscode
May 21, 2026
Merged

chore(rsr-certifier/vscode): un-vendor affine-vscode (Refs hyperpolymath/affinescript#104)#160
hyperpolymath merged 1 commit into
mainfrom
feat-104-unvendor-affine-vscode

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

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

…perpolymath/affinescript#104)

Replace the in-tree 463-line copy of
`rsr-certifier/extensions/vscode/src/affine-vscode-adapter.cjs`
(verbatim copy of `packages/affine-vscode/mod.js` in
hyperpolymath/affinescript at issue #64 fork point) with the published
`@hyperpolymath/affine-vscode` npm package.

Concrete edits, all confined to `rhodium-standard-repositories/satellites/rsr-certifier/extensions/vscode/`:

  * package.json: add `@hyperpolymath/affine-vscode@^0.1.0` to `dependencies`.
  * src/index.cjs line 18: `require("./affine-vscode-adapter.cjs")` →
    `require("@hyperpolymath/affine-vscode")`. Comment block above also
    updated: "vendored" → "published @hyperpolymath/affine-vscode".
  * src/affine-vscode-adapter.cjs: deleted (-463 lines).

`out/extension.cjs` is unchanged — this extension uses the manual-wiring
pattern (`src/index.cjs` as the extension's `main`, calls the adapter
factory after requiring the compiled wasm shim), so only the entry-point
hand-written file needs touching.

# DRAFT — gated on hyperpolymath/affinescript#104 (npm first publish)

Do NOT merge until `npm view @hyperpolymath/affine-vscode` resolves. Until then
`npm install` here will 404. The PR is staged so the diff is reviewable in
isolation from the publish step.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hyperpolymath hyperpolymath marked this pull request as ready for review May 21, 2026 00:23
@hyperpolymath hyperpolymath merged commit 4f97da4 into main May 21, 2026
0 of 16 checks passed
@hyperpolymath hyperpolymath deleted the feat-104-unvendor-affine-vscode branch May 21, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant