optio-cursor 0.4.2__tar.gz → 0.4.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/PKG-INFO +2 -2
  2. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/pyproject.toml +2 -2
  3. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/session.py +16 -1
  4. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor.egg-info/PKG-INFO +2 -2
  5. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor.egg-info/requires.txt +1 -1
  6. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/README.md +0 -0
  7. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/setup.cfg +0 -0
  8. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/__init__.py +0 -0
  9. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/account.py +0 -0
  10. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/conversation.py +0 -0
  11. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/conversation_listener.py +0 -0
  12. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/cred_watcher.py +0 -0
  13. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/fs_allowlist.py +0 -0
  14. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/host_actions.py +0 -0
  15. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/info.py +0 -0
  16. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/model_probe.py +0 -0
  17. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/models.py +0 -0
  18. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/prompt.py +0 -0
  19. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/seed_manifest.py +0 -0
  20. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/snapshots.py +0 -0
  21. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/types.py +0 -0
  22. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor/verify.py +0 -0
  23. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor.egg-info/SOURCES.txt +0 -0
  24. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor.egg-info/dependency_links.txt +0 -0
  25. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/src/optio_cursor.egg-info/top_level.txt +0 -0
  26. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_account.py +0 -0
  27. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_agent_info.py +0 -0
  28. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_caller_message_wiring.py +0 -0
  29. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_claustrum_triad.py +0 -0
  30. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_config.py +0 -0
  31. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_conversation.py +0 -0
  32. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_conversation_listener.py +0 -0
  33. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_cred_watcher.py +0 -0
  34. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_cursor_cache.py +0 -0
  35. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_file_download.py +0 -0
  36. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_file_upload.py +0 -0
  37. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_fs_allowlist.py +0 -0
  38. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_host_actions.py +0 -0
  39. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_import.py +0 -0
  40. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_input_wiring.py +0 -0
  41. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_model_probe.py +0 -0
  42. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_model_probe_wiring.py +0 -0
  43. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_models.py +0 -0
  44. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_on_resume_refresh.py +0 -0
  45. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_prompt.py +0 -0
  46. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_prompt_threading.py +0 -0
  47. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_sandbox_enforce.py +0 -0
  48. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_seed_manifest.py +0 -0
  49. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_session_conversation.py +0 -0
  50. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_session_encrypt.py +0 -0
  51. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_session_fs_isolation.py +0 -0
  52. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_session_lease.py +0 -0
  53. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_session_local.py +0 -0
  54. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_session_remote.py +0 -0
  55. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_session_resume.py +0 -0
  56. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_session_seed.py +0 -0
  57. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_snapshots.py +0 -0
  58. {optio_cursor-0.4.2 → optio_cursor-0.4.4}/tests/test_verify.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: optio-cursor
3
- Version: 0.4.2
3
+ Version: 0.4.4
4
4
  Summary: Run Cursor CLI (cursor-agent) as an optio task; local subprocess or remote via SSH; ttyd-served TUI iframe.
5
5
  Author-email: Kristof Csillag <kristof.csillag@deai-labs.com>
6
6
  License-Expression: Apache-2.0
@@ -20,7 +20,7 @@ Classifier: Topic :: Software Development :: Code Generators
20
20
  Classifier: Framework :: AsyncIO
21
21
  Requires-Python: >=3.11
22
22
  Description-Content-Type: text/markdown
23
- Requires-Dist: optio-core<0.5,>=0.4
23
+ Requires-Dist: optio-core<0.6,>=0.5
24
24
  Requires-Dist: optio-host<0.4,>=0.3
25
25
  Requires-Dist: optio-agents<0.7,>=0.6
26
26
  Requires-Dist: asyncssh>=2.14
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "optio-cursor"
7
- version = "0.4.2"
7
+ version = "0.4.4"
8
8
  description = "Run Cursor CLI (cursor-agent) as an optio task; local subprocess or remote via SSH; ttyd-served TUI iframe."
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
@@ -26,7 +26,7 @@ classifiers = [
26
26
  "Framework :: AsyncIO",
27
27
  ]
28
28
  dependencies = [
29
- "optio-core>=0.4,<0.5",
29
+ "optio-core>=0.5,<0.6",
30
30
  "optio-host>=0.3,<0.4",
31
31
  "optio-agents>=0.6,<0.7",
32
32
  "asyncssh>=2.14",
@@ -36,6 +36,7 @@ from optio_agents.account import EMPTY, accounts_to_metadata
36
36
  from optio_agents.fs_grants import fs_isolation_dirs
37
37
  from optio_agents.input_listener import serialized, start_input_listener
38
38
  from optio_agents.session_controls import model_control
39
+ from optio_agents.todos import TodoTracker, extract_acp_todo
39
40
  from optio_agents.uploads import materialize, upload_url_token
40
41
  from optio_agents.protocol.session import _SessionFailed, run_log_protocol_session
41
42
  from optio_host.host import Host, LocalHost, ProcessHandle, proc_wait
@@ -557,9 +558,10 @@ async def run_cursor_session(ctx: ProcessContext, config: CursorTaskConfig) -> N
557
558
  # Per-task conversation listener (conversation_ui only). Started in the
558
559
  # body after publish_result, torn down in the finally block.
559
560
  conv_listener: ConversationListener | None = None
561
+ todo_tracker: TodoTracker | None = None
560
562
 
561
563
  async def _conversation_body(host: Host, hook_ctx: HookContext) -> None:
562
- nonlocal launched_handle, cred_watch_task, conv_listener
564
+ nonlocal launched_handle, cred_watch_task, conv_listener, todo_tracker
563
565
 
564
566
  # Launch `cursor-agent [--model M] [--force] acp` directly (no
565
567
  # tmux/ttyd). --force is used only when no permission gate is wired,
@@ -697,6 +699,10 @@ async def run_cursor_session(ctx: ProcessContext, config: CursorTaskConfig) -> N
697
699
  "uploadUrl": upload_url,
698
700
  })
699
701
  ctx.report_progress(None, "Conversation UI is live")
702
+ todo_tracker = TodoTracker(extract_acp_todo, ctx)
703
+ todos_loaded = await todo_tracker.restore(host) if resuming else False
704
+ if not todos_loaded:
705
+ todo_tracker.arm(conversation)
700
706
 
701
707
  # Resume history backfill: the restored workdir carried cursor's
702
708
  # PRIOR on-disk ACP session, but this run's bootstrap minted a FRESH
@@ -756,6 +762,13 @@ async def run_cursor_session(ctx: ProcessContext, config: CursorTaskConfig) -> N
756
762
  # the live ring (which would lose it to the thought-chunk flood).
757
763
  await conversation.drain()
758
764
  conv_listener.end_replay()
765
+ if todos_loaded:
766
+ todo_tracker.arm(conversation)
767
+ else:
768
+ todo_tracker = TodoTracker(extract_acp_todo, ctx)
769
+ if resuming:
770
+ await todo_tracker.restore(host)
771
+ todo_tracker.arm(conversation)
759
772
 
760
773
  # Start the in-session credential watcher for a seeded session: it
761
774
  # saves back the rotated auth.json, and (when the seed is leased)
@@ -1005,6 +1018,8 @@ async def run_cursor_session(ctx: ProcessContext, config: CursorTaskConfig) -> N
1005
1018
  # launch). An interrupt before launch leaves it None — skip capture so
1006
1019
  # any prior good snapshot survives and hasSavedState is untouched.
1007
1020
  if config.supports_resume and launched_handle is not None:
1021
+ if todo_tracker is not None:
1022
+ await todo_tracker.save(host)
1008
1023
  try:
1009
1024
  await _capture_snapshot(
1010
1025
  ctx, host,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: optio-cursor
3
- Version: 0.4.2
3
+ Version: 0.4.4
4
4
  Summary: Run Cursor CLI (cursor-agent) as an optio task; local subprocess or remote via SSH; ttyd-served TUI iframe.
5
5
  Author-email: Kristof Csillag <kristof.csillag@deai-labs.com>
6
6
  License-Expression: Apache-2.0
@@ -20,7 +20,7 @@ Classifier: Topic :: Software Development :: Code Generators
20
20
  Classifier: Framework :: AsyncIO
21
21
  Requires-Python: >=3.11
22
22
  Description-Content-Type: text/markdown
23
- Requires-Dist: optio-core<0.5,>=0.4
23
+ Requires-Dist: optio-core<0.6,>=0.5
24
24
  Requires-Dist: optio-host<0.4,>=0.3
25
25
  Requires-Dist: optio-agents<0.7,>=0.6
26
26
  Requires-Dist: asyncssh>=2.14
@@ -1,4 +1,4 @@
1
- optio-core<0.5,>=0.4
1
+ optio-core<0.6,>=0.5
2
2
  optio-host<0.4,>=0.3
3
3
  optio-agents<0.7,>=0.6
4
4
  asyncssh>=2.14
File without changes
File without changes