Skip to content

fix(smoke): align with sdk_demo_backend spec#5

Merged
Taure merged 1 commit into
mainfrom
fix/sdk-smoke-spec
May 1, 2026
Merged

fix(smoke): align with sdk_demo_backend spec#5
Taure merged 1 commit into
mainfrom
fix/sdk-smoke-spec

Conversation

@Taure
Copy link
Copy Markdown
Contributor

@Taure Taure commented May 1, 2026

Summary

Bring the smoke test in line with the canonical Asobi SDK smoke spec at widgrensit/sdk_demo_backend SMOKE.md.

  • Default URL http://localhost:8080 -> http://localhost:8084.
  • Match mode "smoke" -> "demo".
  • Header comments reference widgrensit/sdk_demo_backend instead of the retired asobi-test-harness.
  • Scenario 3 now captures x_initial from the first observed match.state, sends one match.input {move_x: 1, move_y: 0}, and asserts a subsequent state shows players[A].x > x_initial + 10. The previous x == 1 literal check would trivially pass against sdk_demo_backend, where players spawn at random x in [50, 700].
  • .github/workflows/smoke.yml clones widgrensit/sdk_demo_backend and runs docker compose up -d, matching the reference workflow snippet in SMOKE.md.

Test plan

  • npm run build passes.
  • tsx loads smoke_tests/smoke.ts (it begins polling the backend).
  • CI smoke job passes against sdk_demo_backend.

Bring the smoke test in line with the canonical Asobi SDK smoke spec at
widgrensit/sdk_demo_backend (SMOKE.md):

- Default URL http://localhost:8080 -> http://localhost:8084
- Match mode "smoke" -> "demo"
- Header refs asobi-test-harness -> widgrensit/sdk_demo_backend
- Scenario 3: capture x_initial from the first match.state, send
  {move_x: 1, move_y: 0}, then assert a subsequent state has
  x > x_initial + 10. Replaces the literal x == 1 check, which would
  trivially pass against sdk_demo_backend's random spawn x in [50, 700].
- CI workflow now clones widgrensit/sdk_demo_backend and runs
  docker compose up -d, matching the reference snippet in SMOKE.md.
@Taure Taure merged commit cca073d into main May 1, 2026
2 of 3 checks passed
@Taure Taure deleted the fix/sdk-smoke-spec branch May 1, 2026 17:10
Taure added a commit that referenced this pull request May 2, 2026
Rewrites the README so it reflects what asobi-js actually is — a thin transport client for the asobi protocol — and drops the broad feature-table claims (worlds, terrain, voting, economy, leaderboards, etc.) that overstated coverage.

Changes:
- Add Scope and Status sections; mark typed REST helpers as deprecated for v1.0
- Replace REST-heavy quickstart with a WebSocket-only example using `AsobiWebSocket`
- Add API reference block for `AsobiWebSocket`
- Move engine/framework integrations (Phaser/Three/Pixi) to opt-in `examples/` rather than bundled exports
- Remove the Features matrix that promised full coverage of unstable subsystems

Rebase note: this PR was rebased onto main after #4/#5/#7/#8 landed. The README conflict was resolved by keeping the PR's narrowed-scope structure (Scope/Status/API/adapters sections, no Features table) while preserving main's factual updates that don't conflict with the narrowing: the Node 22+ header, the @widgrensit/asobi package name, the "Run a backend first" section pointing at sdk_demo_backend on :8084, the Browser usage section, and the canonical link to the WebSocket protocol guide. The PR's deletion of the Features matrix and REST-flavoured quickstart was preserved — that deletion is the whole point of the PR.

No code change. Code refactor follows in a separate PR.
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