optio-cursor 0.4.2__tar.gz → 0.4.3__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.
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/PKG-INFO +1 -1
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/pyproject.toml +1 -1
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/session.py +16 -1
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor.egg-info/PKG-INFO +1 -1
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/README.md +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/setup.cfg +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/__init__.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/account.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/conversation.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/conversation_listener.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/cred_watcher.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/fs_allowlist.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/host_actions.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/info.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/model_probe.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/models.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/prompt.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/seed_manifest.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/snapshots.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/types.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor/verify.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor.egg-info/SOURCES.txt +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor.egg-info/dependency_links.txt +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor.egg-info/requires.txt +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/src/optio_cursor.egg-info/top_level.txt +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_account.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_agent_info.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_caller_message_wiring.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_claustrum_triad.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_config.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_conversation.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_conversation_listener.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_cred_watcher.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_cursor_cache.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_file_download.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_file_upload.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_fs_allowlist.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_host_actions.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_import.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_input_wiring.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_model_probe.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_model_probe_wiring.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_models.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_on_resume_refresh.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_prompt.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_prompt_threading.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_sandbox_enforce.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_seed_manifest.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_session_conversation.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_session_encrypt.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_session_fs_isolation.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_session_lease.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_session_local.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_session_remote.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_session_resume.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_session_seed.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/tests/test_snapshots.py +0 -0
- {optio_cursor-0.4.2 → optio_cursor-0.4.3}/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.
|
|
3
|
+
Version: 0.4.3
|
|
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
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "optio-cursor"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.3"
|
|
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"
|
|
@@ -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.
|
|
3
|
+
Version: 0.4.3
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|