Skip to content

chore(vscode-ext): migrate vsce -> @vscode/vsce; correct build status#61

Merged
hyperpolymath merged 1 commit into
mainfrom
chore/vscode-ext-vsce-rename
May 18, 2026
Merged

chore(vscode-ext): migrate vsce -> @vscode/vsce; correct build status#61
hyperpolymath merged 1 commit into
mainfrom
chore/vscode-ext-vsce-rename

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

Follow-up to #58/#60. With the source fixed (#60) the extension compiles; vsce package then failed because the repo pins the deprecated vsce 2.15.0, which predates .cjs-entrypoint support (it looks for src/index.cjs.js).

Changes

Honest limitation

I could not produce the .vsix in this environment: WSL's npm registry is unreachable, so @vscode/vsce can't be npm installed here. The repo is now correct for packaging on CI or any registry-reachable host; the artifact build itself must happen there.

Refs affinescript#35

🤖 Generated with Claude Code

`vsce` 2.15.0 (the deprecated package) predates `.cjs`-entrypoint
support, so `vsce package` failed looking for `src/index.cjs.js`.
Migrated devDependency to the renamed, maintained `@vscode/vsce` ^3.2.0
(same `vsce` binary, so the `package` script is unchanged).

Also corrected the README "Status" block, which #58 left stale: the
extension DOES compile and the affinescript Vscode stdlib bindings DO
type-check on affinescript main (#35 P2 effectively complete) — the only
real bug was my-lang's own extension.affine (fixed in #60). Documented
that packaging needs a registry-reachable env (WSL npm is unreachable
here, so package/publish must run on CI or a non-WSL host) and that
`.vsix` packaging needs no Azure PAT (only `vsce publish` does).

Refs affinescript#35

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hyperpolymath hyperpolymath merged commit 0caa014 into main May 18, 2026
10 of 11 checks passed
@hyperpolymath hyperpolymath deleted the chore/vscode-ext-vsce-rename branch May 18, 2026 10:36
@github-actions
Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 35 issues detected

Severity Count
🔴 Critical 6
🟠 High 11
🟡 Medium 18

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "Issue in quality.yml",
    "type": "missing_workflow",
    "file": "quality.yml",
    "action": "create",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Issue in security-policy.yml",
    "type": "missing_workflow",
    "file": "security-policy.yml",
    "action": "create",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Action hyperpolymath/standards/.github/workflows/governance-reusable.yml@main needs attention",
    "type": "unpinned_action",
    "file": "governance.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "unwrap_or(0) with dangerous default (1 occurrences, CWE-754)",
    "type": "unwrap_dangerous_default",
    "file": "/home/runner/work/my-lang/my-lang/_exploratory/me-scaffolding/crates/parser/src/lib.rs",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "critical"
  },
  {
    "reason": "expect() in hot path (80 occurrences, CWE-754)",
    "type": "expect_in_hot_path",
    "file": "/home/runner/work/my-lang/my-lang/_exploratory/me-scaffolding/crates/parser/src/lib.rs",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "unwrap() without prior check -- DoS via panic (1 occurrences, CWE-754)",
    "type": "unwrap_without_check",
    "file": "/home/runner/work/my-lang/my-lang/my-ssg/src/generator.rs",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "high"
  },
  {
    "reason": "expect() in hot path (5 occurrences, CWE-754)",
    "type": "expect_in_hot_path",
    "file": "/home/runner/work/my-lang/my-lang/crates/my-mir/src/lib.rs",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "medium"
  },
  {
    "reason": "unwrap() without prior check -- DoS via panic (26 occurrences, CWE-754)",
    "type": "unwrap_without_check",
    "file": "/home/runner/work/my-lang/my-lang/crates/my-fmt/src/lib.rs",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "high"
  },
  {
    "reason": "unwrap() without prior check -- DoS via panic (1 occurrences, CWE-754)",
    "type": "unwrap_without_check",
    "file": "/home/runner/work/my-lang/my-lang/crates/my-hir/src/lib.rs",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "high"
  },
  {
    "reason": "unwrap() without prior check -- DoS via panic (3 occurrences, CWE-754)",
    "type": "unwrap_without_check",
    "file": "/home/runner/work/my-lang/my-lang/crates/my-llvm/src/lib.rs",
    "action": "flag",
    "rule_module": "code_safety",
    "severity": "high"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

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