optio-opencode 0.1.6__tar.gz → 0.1.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.
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/PKG-INFO +1 -1
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/pyproject.toml +1 -1
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode/seed_manifest.py +3 -3
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode/session.py +9 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode.egg-info/PKG-INFO +1 -1
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/README.md +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/setup.cfg +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode/__init__.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode/host_actions.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode/prompt.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode/snapshots.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode/types.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode.egg-info/SOURCES.txt +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode.egg-info/dependency_links.txt +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode.egg-info/requires.txt +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode.egg-info/top_level.txt +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_host_actions.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_host_local.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_host_primitives_local.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_host_primitives_remote.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_host_remote_resume.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_host_resume.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_prompt.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_purge_seed.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_sanity.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_seed_config.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_session_blob_hooks.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_session_hooks.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_session_local.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_session_remote.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_session_resume.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_session_seed.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_smart_install.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_snapshots.py +0 -0
- {optio_opencode-0.1.6 → optio_opencode-0.1.7}/tests/test_types.py +0 -0
|
@@ -32,7 +32,7 @@ OPENCODE_SEED_MANIFEST = seeds.SeedManifest(
|
|
|
32
32
|
async def delete_seed(store, seed_id: str):
|
|
33
33
|
"""Delete an opencode seed doc; returns its GridFS blobId (or None).
|
|
34
34
|
|
|
35
|
-
Takes an optio store binding (``optio.
|
|
35
|
+
Takes an optio store binding (``optio.mongo_store`` — exposes ``db`` and
|
|
36
36
|
``prefix``) as-is, so consuming apps hand over the whole namespace handle
|
|
37
37
|
instead of threading db+prefix (or knowing the collection suffix). The
|
|
38
38
|
caller still removes the returned blob from GridFS.
|
|
@@ -44,14 +44,14 @@ async def delete_seed(store, seed_id: str):
|
|
|
44
44
|
|
|
45
45
|
async def list_seeds(store) -> list[dict]:
|
|
46
46
|
"""List opencode seeds as [{seedId, createdAt}, ...]. Takes an optio store
|
|
47
|
-
binding (``optio.
|
|
47
|
+
binding (``optio.mongo_store``) as-is."""
|
|
48
48
|
return await seeds.list_seeds(store.db, prefix=store.prefix, suffix=OPENCODE_SEED_SUFFIX)
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
async def purge_seed(store, seed_id: str):
|
|
52
52
|
"""Purge an opencode seed (doc + its GridFS blob) in one call.
|
|
53
53
|
|
|
54
|
-
Takes an optio store binding (``optio.
|
|
54
|
+
Takes an optio store binding (``optio.mongo_store``) as-is, per the Shared-
|
|
55
55
|
contracts surface. Mirrors `optio_claudecode.purge_seed`; both are thin
|
|
56
56
|
re-exports of the `optio_agents.seeds.purge_seed` engine, which expunges
|
|
57
57
|
the seed doc and its GridFS blob and raises KeyError if absent.
|
|
@@ -305,6 +305,15 @@ async def run_opencode_session(ctx: ProcessContext, config: OpencodeTaskConfig)
|
|
|
305
305
|
"iframeSrc": f"{{widgetProxyUrl}}{_workdir_b64}/session/{session_id}",
|
|
306
306
|
"localStorageOverrides": {
|
|
307
307
|
"opencode.settings.dat:defaultServerUrl": "{widgetProxyUrl}",
|
|
308
|
+
# Start with the review/diff panel collapsed. opencode defaults
|
|
309
|
+
# it OPEN (layout store `review.panelOpened ?? true`), eating
|
|
310
|
+
# the right half of the iframe with a panel that is useless in
|
|
311
|
+
# this embedded context. The persist layer deep-merges this
|
|
312
|
+
# partial blob into the layout defaults, so only panelOpened is
|
|
313
|
+
# forced false; the operator can still toggle it open per
|
|
314
|
+
# session. (UI-state key — if opencode renames the `layout`
|
|
315
|
+
# store it silently reverts to default-open.)
|
|
316
|
+
"opencode.global.dat:layout": '{"review": {"panelOpened": false}}',
|
|
308
317
|
},
|
|
309
318
|
})
|
|
310
319
|
ctx.report_progress(None, "opencode is live")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{optio_opencode-0.1.6 → optio_opencode-0.1.7}/src/optio_opencode.egg-info/dependency_links.txt
RENAMED
|
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
|