optio-opencode 0.6.5__tar.gz → 0.6.7__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 (70) hide show
  1. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/PKG-INFO +3 -3
  2. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/pyproject.toml +3 -3
  3. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/session.py +7 -1
  4. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode.egg-info/PKG-INFO +3 -3
  5. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode.egg-info/requires.txt +2 -2
  6. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_host_remote_resume.py +34 -0
  7. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_session_blob_hooks.py +1 -1
  8. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/README.md +0 -0
  9. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/setup.cfg +0 -0
  10. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/__init__.py +0 -0
  11. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/account.py +0 -0
  12. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/conversation.py +0 -0
  13. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/cred_watcher.py +0 -0
  14. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/fs_allowlist.py +0 -0
  15. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/host_actions.py +0 -0
  16. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/info.py +0 -0
  17. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/model_probe.py +0 -0
  18. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/prompt.py +0 -0
  19. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/providers/__init__.py +0 -0
  20. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/providers/anthropic.py +0 -0
  21. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/providers/deepseek.py +0 -0
  22. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/providers/openai.py +0 -0
  23. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/providers/xai.py +0 -0
  24. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/seed_manifest.py +0 -0
  25. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/snapshots.py +0 -0
  26. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/todos.py +0 -0
  27. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/types.py +0 -0
  28. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode/verify.py +0 -0
  29. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode.egg-info/SOURCES.txt +0 -0
  30. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode.egg-info/dependency_links.txt +0 -0
  31. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/src/optio_opencode.egg-info/top_level.txt +0 -0
  32. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_account.py +0 -0
  33. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_account_xai_apikey.py +0 -0
  34. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_agent_info.py +0 -0
  35. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_agent_sender_opencode.py +0 -0
  36. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_auto_start_prompt.py +0 -0
  37. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_claustrum.py +0 -0
  38. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_config_harmonization.py +0 -0
  39. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_conversation_config.py +0 -0
  40. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_conversation_driver.py +0 -0
  41. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_conversation_session.py +0 -0
  42. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_conversation_ui_model.py +0 -0
  43. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_conversation_ui_session.py +0 -0
  44. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_conversation_upload.py +0 -0
  45. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_cred_watcher.py +0 -0
  46. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_file_download.py +0 -0
  47. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_file_upload.py +0 -0
  48. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_host_actions.py +0 -0
  49. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_host_local.py +0 -0
  50. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_host_primitives_local.py +0 -0
  51. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_host_primitives_remote.py +0 -0
  52. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_host_resume.py +0 -0
  53. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_model_probe.py +0 -0
  54. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_model_probe_wiring.py +0 -0
  55. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_prompt.py +0 -0
  56. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_provider_deepseek.py +0 -0
  57. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_purge_seed.py +0 -0
  58. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_sanity.py +0 -0
  59. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_seed_config.py +0 -0
  60. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_session_hooks.py +0 -0
  61. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_session_local.py +0 -0
  62. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_session_remote.py +0 -0
  63. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_session_resume.py +0 -0
  64. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_session_seed.py +0 -0
  65. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_session_seed_saveback.py +0 -0
  66. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_smart_install.py +0 -0
  67. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_snapshots.py +0 -0
  68. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_todos.py +0 -0
  69. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_types.py +0 -0
  70. {optio_opencode-0.6.5 → optio_opencode-0.6.7}/tests/test_verify_seed.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: optio-opencode
3
- Version: 0.6.5
3
+ Version: 0.6.7
4
4
  Summary: Run opencode web as an optio task; local subprocess or remote via SSH.
5
5
  Author-email: Kristof Csillag <kristof.csillag@deai-labs.com>
6
6
  License-Expression: Apache-2.0
@@ -20,8 +20,8 @@ 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.7,>=0.6
24
- Requires-Dist: optio-host<0.4,>=0.3
23
+ Requires-Dist: optio-core<0.8,>=0.7
24
+ Requires-Dist: optio-host<0.5,>=0.4
25
25
  Requires-Dist: optio-agents<0.8,>=0.7
26
26
  Requires-Dist: optio-claudecode<0.8,>=0.7
27
27
  Requires-Dist: optio-codex<0.5,>=0.4
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "optio-opencode"
7
- version = "0.6.5"
7
+ version = "0.6.7"
8
8
  description = "Run opencode web as an optio task; local subprocess or remote via SSH."
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
@@ -26,10 +26,10 @@ classifiers = [
26
26
  "Framework :: AsyncIO",
27
27
  ]
28
28
  dependencies = [
29
- "optio-core>=0.6,<0.7",
29
+ "optio-core>=0.7,<0.8",
30
30
  # 0.1.1 introduces the bind_addr kwarg on Host.establish_tunnel —
31
31
  # required for OPTIO_WIDGET_TUNNEL_BIND to work.
32
- "optio-host>=0.3,<0.4",
32
+ "optio-host>=0.4,<0.5",
33
33
  "optio-agents>=0.7,<0.8",
34
34
  # The account meta-analyzer's per-provider handlers reuse the extracted
35
35
  # vendor map helpers (account_from_oauth_token / account_from_openai /
@@ -956,8 +956,14 @@ async def _capture_snapshot(
956
956
  session_blob_payload = encrypt(session_json)
957
957
  expected_len_payload = len(session_blob_payload)
958
958
 
959
+ # The capture-cap decision's one-line note (at most one per capture) has
960
+ # no process-log handle at the host layer, so it is forwarded here
961
+ # through ctx.report_progress, same as every other milestone line.
962
+ def _on_note(note: str, level: str) -> None:
963
+ ctx.report_progress(None, note, level=level)
964
+
959
965
  async with ctx.store_blob("workdir") as wwriter:
960
- async for chunk in host.archive_workdir(workdir_exclude):
966
+ async for chunk in host.archive_workdir(workdir_exclude, on_note=_on_note):
961
967
  await wwriter.write(chunk)
962
968
  workdir_blob_id = wwriter.file_id
963
969
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: optio-opencode
3
- Version: 0.6.5
3
+ Version: 0.6.7
4
4
  Summary: Run opencode web as an optio task; local subprocess or remote via SSH.
5
5
  Author-email: Kristof Csillag <kristof.csillag@deai-labs.com>
6
6
  License-Expression: Apache-2.0
@@ -20,8 +20,8 @@ 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.7,>=0.6
24
- Requires-Dist: optio-host<0.4,>=0.3
23
+ Requires-Dist: optio-core<0.8,>=0.7
24
+ Requires-Dist: optio-host<0.5,>=0.4
25
25
  Requires-Dist: optio-agents<0.8,>=0.7
26
26
  Requires-Dist: optio-claudecode<0.8,>=0.7
27
27
  Requires-Dist: optio-codex<0.5,>=0.4
@@ -1,5 +1,5 @@
1
- optio-core<0.7,>=0.6
2
- optio-host<0.4,>=0.3
1
+ optio-core<0.8,>=0.7
2
+ optio-host<0.5,>=0.4
3
3
  optio-agents<0.8,>=0.7
4
4
  optio-claudecode<0.8,>=0.7
5
5
  optio-codex<0.5,>=0.4
@@ -16,7 +16,9 @@ test cannot be wired through the SSH launch path.
16
16
 
17
17
  from __future__ import annotations
18
18
 
19
+ import io
19
20
  import json
21
+ import tarfile
20
22
 
21
23
  import pytest
22
24
  import pytest_asyncio
@@ -96,6 +98,38 @@ async def test_remote_archive_workdir_yields_chunks(remote_host: RemoteHost):
96
98
  assert len(b"".join(chunks)) > 0, "expected at least some tar bytes"
97
99
 
98
100
 
101
+ async def test_remote_archive_over_the_cap_leaves_out_the_listed_paths(
102
+ remote_host: RemoteHost, monkeypatch,
103
+ ):
104
+ """Over the capture cap, the archive succeeds on the sshd image's BusyBox
105
+ tar and leaves out exactly what regenerable.txt lists, taken literally."""
106
+ monkeypatch.setenv("OPTIO_WORKDIR_CAPTURE_MAX_MB", "1")
107
+ probe = await remote_host._conn.run("tar --version 2>&1 | head -1", check=False)
108
+ assert "busybox" in (probe.stdout or "").lower(), probe.stdout
109
+ setup = await remote_host._conn.run(
110
+ f"cd {remote_host.workdir} && mkdir -p big pkg/big 'build[1]' build1 && "
111
+ "head -c 2097152 /dev/zero > big/blob.bin && echo k > keep.txt && "
112
+ "echo p > pkg/big/p.txt && echo b > 'build[1]/b' && echo c > build1/c && "
113
+ "printf 'big\\nbuild[1]\\n' > regenerable.txt",
114
+ check=False,
115
+ )
116
+ assert setup.exit_status == 0, setup.stderr
117
+ notes: list[tuple[str, str]] = []
118
+
119
+ blob = b"".join([
120
+ chunk async for chunk in remote_host.archive_workdir(
121
+ exclude=[".git"], on_note=lambda note, level: notes.append((note, level)),
122
+ )
123
+ ])
124
+
125
+ with tarfile.open(fileobj=io.BytesIO(blob), mode="r:gz") as tf:
126
+ files = {m.name.removeprefix("./") for m in tf.getmembers() if m.isfile()}
127
+ assert files == {"keep.txt", "regenerable.txt", "pkg/big/p.txt", "build1/c"}
128
+ assert notes == [
129
+ ("workdir 2 MB (cap 1 MB): left out 2 paths listed in regenerable.txt", "info"),
130
+ ]
131
+
132
+
99
133
  async def test_remote_restore_workdir_empties_then_extracts(sshd):
100
134
  """archive from one workdir, restore into a second, verify content and staleness."""
101
135
  ssh = SSHConfig(
@@ -95,7 +95,7 @@ async def test_capture_writes_through_session_blob_encrypt(monkeypatch):
95
95
  fake_ctx.delete_blob = AsyncMock()
96
96
  fake_ctx.mark_has_saved_state = AsyncMock()
97
97
 
98
- async def _fake_archive(_excl):
98
+ async def _fake_archive(_excl, *, on_note=None):
99
99
  yield b"workdir-bytes"
100
100
  fake_host = MagicMock()
101
101
  fake_host.archive_workdir = _fake_archive
File without changes
File without changes