Skip to content

Commit 17b76c9

Browse files
committed
fix: sqlite
1 parent 46448a9 commit 17b76c9

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"anysphere.cursorpyright",
44
"charliermarsh.ruff",
55
"ms-python.python",
6-
"editorconfig.editorconfig"
6+
"editorconfig.editorconfig",
7+
"qwtel.sqlite-viewer"
78
]
89
}

context_use/cli/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,12 @@ def _prepare(self, cfg: Config, args: argparse.Namespace) -> Config:
373373

374374

375375
class EphemeralApiCommand(ContextCommand, ABC):
376-
"""Command that always runs with an in-memory store and an OpenAI API key.
376+
"""Command that always runs with an SQLite store and an OpenAI API key.
377377
378378
Intended for zero-config preview flows (e.g. ``quickstart``) where no
379379
database is needed or desired.
380380
381-
``_prepare`` unconditionally sets ``store_provider = "memory"`` and then
381+
``_prepare`` unconditionally sets ``store_provider = "sqlite"`` and then
382382
calls ``ensure_api_key``, which prompts interactively when no key is
383383
configured (unlike :class:`PersistentApiCommand` which exits with an
384384
error).
@@ -387,7 +387,7 @@ class EphemeralApiCommand(ContextCommand, ABC):
387387
llm_mode: ClassVar[str] = "sync"
388388

389389
def _prepare(self, cfg: Config, args: argparse.Namespace) -> Config:
390-
cfg.store_provider = "memory"
390+
cfg.store_provider = "sqlite"
391391
cfg.ensure_dirs()
392392
ensure_api_key(cfg)
393393
return cfg

0 commit comments

Comments
 (0)