Skip to content

task/007: Remove Node.js runtime fallback paths - #5

Merged
Igloczek merged 1 commit into
masterfrom
task/007-remove-node-runtime-fallbacks
Jun 30, 2026
Merged

Igloczek merged 1 commit into
masterfrom
task/007-remove-node-runtime-fallbacks

Conversation

@Igloczek

@Igloczek Igloczek commented Jun 30, 2026 •

Copy link
Copy Markdown
Collaborator

Implements tasks/007-remove-node-runtime-fallbacks.md from the ponytail audit backlog.

Goal

Assume Bun-only execution and delete branches that can never run.

Scope

  • src/server/process-helper.ts: keep Bun.spawn / Bun.spawnSync only; remove child_process fallbacks.
  • src/server/password-hash.ts: keep Bun.password only; remove scrypt/Node branches.
  • src/server/runtime.ts: simplify getRuntimeInfo() to Bun path only (or assert isBunRuntime()).
  • Remove redundant isBunRuntime() guards where server.ts already exits without Bun.

Acceptance criteria

  • No child_process.spawn / spawnSync imports remain in process-helper.ts.
  • password-hash.ts has no Node crypto scrypt fallback.
  • bun run test:backend passes (native-utils.test.ts included).
  • bun run build succeeds.

Depends on

Nothing.

Verification

bun run test:backend
bun run build
rg "child_process|spawnSync|generateScrypt|verifyScrypt" src/server

Audit reference

Finding #10 — Node.js runtime fallbacks.

@Igloczek

Copy link
Copy Markdown
Collaborator Author

/ponytail-review

Scope limited to three task files. Only dead-code removal; isBunRuntime() guard kept only where needed.

Lean already. Ship.

3 files changed, 39 insertions(+), 128 deletions(-)

@Igloczek
Igloczek force-pushed the task/007-remove-node-runtime-fallbacks branch from fd84208 to 744b830 Compare June 30, 2026 11:44
@Igloczek
Igloczek merged commit f8e87fc into master Jun 30, 2026
1 check passed
Igloczek added a commit that referenced this pull request Jun 30, 2026
Extract five independent sections from the 4,337-line EditMonitor page
into src/components/edit-monitor/ with props/events; no behavior change.

New components:
- EditMonitorHeartbeatSettings (interval, retries, timeout, resend)
- EditMonitorAdvanced (TLS, ping, redirects, status codes, etc.)
- EditMonitorNotifications (notification toggles + setup/edit events)
- EditMonitorWebsocketAuth (WebSocket authentication options)
- EditMonitorHttpOptions (HTTP method, body, headers, auth)
- EditMonitorGlobalpingHttpOptions (Globalping HTTP subtype options)

EditMonitor.vue reduced from 4,337 to 2,986 LOC.

Ponytail audit finding #5 — EditMonitor.vue monolith (phase 1).
@Igloczek
Igloczek deleted the task/007-remove-node-runtime-fallbacks branch June 30, 2026 12:58
Igloczek added a commit that referenced this pull request Aug 8, 2026
…backs

task/007: Remove Node.js runtime fallback paths
Igloczek added a commit that referenced this pull request Aug 8, 2026
Extract five independent sections from the 4,337-line EditMonitor page
into src/components/edit-monitor/ with props/events; no behavior change.

New components:
- EditMonitorHeartbeatSettings (interval, retries, timeout, resend)
- EditMonitorAdvanced (TLS, ping, redirects, status codes, etc.)
- EditMonitorNotifications (notification toggles + setup/edit events)
- EditMonitorWebsocketAuth (WebSocket authentication options)
- EditMonitorHttpOptions (HTTP method, body, headers, auth)
- EditMonitorGlobalpingHttpOptions (Globalping HTTP subtype options)

EditMonitor.vue reduced from 4,337 to 2,986 LOC.

Ponytail audit finding #5 — EditMonitor.vue monolith (phase 1).
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