summaryrefslogtreecommitdiff
path: root/lua/99/state.lua
diff options
context:
space:
mode:
authortheprimeagain <the.primeagen@gmail.com>2026-02-28 08:29:50 -0700
committertheprimeagain <the.primeagen@gmail.com>2026-02-28 08:29:50 -0700
commit06b6a3aef56a49b6af1b2dbd990a2e8df0f93a76 (patch)
tree7a2560b395278c801124426d4ff67d122ec79dd7 /lua/99/state.lua
parent79efd670b87057583315fc5c53367c9b37e32247 (diff)
downloada4-06b6a3aef56a49b6af1b2dbd990a2e8df0f93a76.tar.xz
a4-06b6a3aef56a49b6af1b2dbd990a2e8df0f93a76.zip
broken: tracking is almost complete other than testing... the testing is
broken and vibe coded
Diffstat (limited to 'lua/99/state.lua')
-rw-r--r--lua/99/state.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/99/state.lua b/lua/99/state.lua
index 3a262b1..7d94c07 100644
--- a/lua/99/state.lua
+++ b/lua/99/state.lua
@@ -59,10 +59,10 @@ local function get_tmp_dir(oos)
end
--- @param opts _99.Options
---- @return _99.StateProps | nil
+--- @return _99.State.Tracking.Serialized | nil
local function read_state_from_tmp(opts)
local state_file = utils.named_tmp_file(get_tmp_dir(opts), _99_STATE_FILE)
- return utils.read_file_json_safe(state_file) --[[@as _99.StateProps]]
+ return utils.read_file_json_safe(state_file) --[[@as _99.State.Tracking.Serialized]]
end
--- @param opts _99.Options
@@ -81,7 +81,7 @@ function State.new(opts)
_99_state.prompts = require("99.prompt-settings")
local previous = read_state_from_tmp(opts)
- _99_state.tracking = Tracking.new(_99_state)
+ _99_state.tracking = Tracking.new(_99_state, previous)
return _99_state
end