feat: pin sessions to workspace revisions
This commit is contained in:
@@ -175,6 +175,8 @@ def new_cmd(
|
||||
provider: str = typer.Option(None, "--provider", help="Provider LLM (es. zai, anthropic)."),
|
||||
model: str = typer.Option(None, "--model", help="Modello LLM (es. glm-5.2)."),
|
||||
thinking: str = typer.Option(None, "--thinking", help="Livello di thinking (es. medium)."),
|
||||
workspace_id: str = typer.Option(None, "--workspace-id", help="Workspace canonico risolto dal backend."),
|
||||
workspace_revision: str = typer.Option(None, "--workspace-revision", help="Commit immutabile del workspace."),
|
||||
name: str = typer.Option(None, "--name", help="Nome descrittivo della sessione."),
|
||||
json_out: bool = typer.Option(False, "--json", help="Emetti JSON puro {\"id\": ...} su stdout."),
|
||||
config: Path = CONFIG_OPT,
|
||||
@@ -185,6 +187,7 @@ def new_cmd(
|
||||
cfg = _load_config_or_exit(config)
|
||||
manifest = new_session_manifest(question, cfg.database,
|
||||
provider=provider, model=model, thinking=thinking,
|
||||
workspace_id=workspace_id, workspace_revision=workspace_revision,
|
||||
name=name or _extract_name(question))
|
||||
repository = session_repository(cfg)
|
||||
repository.create(manifest)
|
||||
|
||||
Reference in New Issue
Block a user