Skip to content

Commit 366bc57

Browse files
hyperpolymathclaude
andcommitted
docs: update STATE.scm with migration results, close #28
Record completed migration of 719 deprecated Js.* API calls across 76 tracked src/ files. Update critical-next-actions to reflect remaining work (untracked dirs). Also migrate Js.Global.setTimeout -> setTimeout in Audio.res. Closes #28. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d7f0be1 commit 366bc57

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

.machine_readable/STATE.scm

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
;; SPDX-License-Identifier: PMPL-1.0-or-later
2-
(state (metadata (version "1.8.0") (last-updated "2026-03-01") (status active))
2+
(state (metadata (version "1.9.0") (last-updated "2026-03-02") (status active))
33
(project-context
44
(name "idaptik")
55
(purpose "Asymmetric co-op stealth puzzle-platformer and adaptive game engine ecosystem")
@@ -16,14 +16,25 @@
1616
(component "idaptik-developers" (status "active") (completion 85) (description "Developer portal — 17 ADRs (incl. coprocessor spec), white paper, TUI mockups"))
1717
(component "containers" (status "active") (completion 95) (description "2 services (game + sync) in podman-compose.yml; Dragonfly removed 2026-02-27 (ETS handles caching); Chainguard nginx on 8080; Elixir/Phoenix sync on 4000")))
1818
;; idaptiky/ deleted 2026-02-27 — legacy artefact, code migrated to vm/ + dlc/
19+
(completed-migrations
20+
(migration "issue-28" "2026-03-02" "Deprecated Js.* API migration (tracked src/ only)"
21+
(items
22+
(item "KeyboardNav.res utility extracted from 5 duplicated %raw blocks")
23+
(item "Js.Dict → Dict (36 files)")
24+
(item "Js.Math → Math (33 files, 118 occurrences)")
25+
(item "Js.String2 → String (21 files, 107 occurrences)")
26+
(item "Js.Array2 → Array (31 occurrences)")
27+
(item "Js.Json → JSON (DLCLoader.res, 53 occurrences)")
28+
(item "Js.Float → Float, Js.Console → Console (14 files, 35 occurrences)")
29+
(item "Js.Global.setTimeout → setTimeout (Audio.res)")
30+
(item "Chapel removed from CreditsScreen"))))
1931
(critical-next-actions
2032
(action "Level Architect MVP: implement level data model (14 Idris2 ABI modules) — see plan file")
2133
(action "Game balance: play-test levels; tune guard spawn rates and alert thresholds in LevelConfig.res")
22-
(action "Sonnet: migrate 1,723 deprecated Js.* API calls to @rescript/core equivalents")
23-
(action "Sonnet: extract duplicated %raw keyboard handler blocks (5 files) to shared utility")
24-
(action "Sonnet: migrate 24 getExn/parseExn calls in vm/idaptiky to SafeFloat/SafeJson")
34+
(action "Commit vm/, shared/, main-game/ dirs then migrate remaining deprecated APIs (Belt.Array.getExn, State.res rewrite)")
2535
(action "Axiom.jl: consolidate 2,857-line abstract.jl into 4+ focused files — see TODO-URGENT-COPROCESSOR-CONSOLIDATION.md"))
2636
(recent-changes
37+
(change "2026-03-02" "ISSUE-28-MIGRATION: Migrated 719 deprecated Js.* API calls across 76 tracked src/ files to @rescript/core equivalents (Js.Dict→Dict, Js.Math→Math, Js.String2→String, Js.Array2→Array, Js.Json→JSON, Js.Float→Float, Js.Console→Console, Js.Global→global); extracted KeyboardNav.res utility from 5 duplicated %raw blocks; removed Chapel from credits; 12 small commits, all pushed immediately; build clean (0 errors)")
2738
(change "2026-03-01" "PANIC-ATTACK-AUDIT: 65 real findings (3 CRITICAL, 17 HIGH, 33 MEDIUM, 12 LOW) + 5 false positives across 116,148 LOC. Fixed: Rust edition 2024→2021 (escape-hatch + main-game/src-tauri); idaptik-level-architect→idaptik-ums rename in 15+ docs/configs; Justfile test-all expanded (shared/dlc/ums/escape-hatch); || true removed from test-game; CONTRIBUTING.md updated; Trustfile paths corrected; LOOSE-ENDS.md Zig solver status corrected; containers/sync-server Containerfile paths fixed; CODEOWNERS + SECURITY.md + .containerignore updated")
2839
(change "2026-02-27" "OPUS-SESSION-2: Coprocessor consolidation (10 individual files→3: Coprocessor_Compute.res [Maths+Vector+Tensor+Physics], Coprocessor_Security.res [Crypto+Neural+Quantum+Audio+Graphics], Coprocessor_IO.res [unchanged]); 36 stale copies deleted across build dirs; Kernel_Crypto.res and Kernel_Quantum.res comments updated; Coprocessor_Backends.res rewritten to use nested module paths")
2940
(change "2026-02-27" "OPUS-SESSION-2: Deleted 5 AI-generated multiplayer hype files (pata_orchestrator.ex, consensus_core.ex, bonding_handler.ex, pressure_monitor.ex, control_channel.ex); removed Resilience Core from application.ex; removed control:* channel from user_socket.ex")

src/engine/audio/Audio.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module BGM = {
2424
| Some(current) =>
2525
let _ = Motion.animate(current, {"volume": 0.0}, {duration: 1.0, ease: "linear"})
2626
let _ = await Promise.make((resolve, _) => {
27-
let _ = Js.Global.setTimeout(() => {
27+
let _ = setTimeout(() => {
2828
PixiSound.Sound.stop(current)
2929
resolve()
3030
}, 1000)

0 commit comments

Comments
 (0)