deliberaide-cli 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.
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/PKG-INFO +1 -1
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/__init__.py +1 -1
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/copilot_chat.py +13 -2
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli.egg-info/PKG-INFO +1 -1
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/setup.py +1 -1
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/README.md +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/__main__.py +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/core/__init__.py +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/core/manifest.py +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/core/session.py +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/deliberaide_cli.py +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/route_manifest.json +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/utils/__init__.py +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/utils/api_backend.py +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/utils/formatting.py +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli/utils/repl_skin.py +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli.egg-info/SOURCES.txt +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli.egg-info/dependency_links.txt +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli.egg-info/entry_points.txt +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli.egg-info/requires.txt +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli.egg-info/top_level.txt +0 -0
- {deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/setup.cfg +0 -0
|
@@ -380,7 +380,10 @@ def install_copilot_commands(root: click.Group) -> None:
|
|
|
380
380
|
root.add_command(group)
|
|
381
381
|
|
|
382
382
|
@click.command("chat")
|
|
383
|
-
@click.option("--text",
|
|
383
|
+
@click.option("--text", default=None, help="The message to send. Alternatively --text-file.")
|
|
384
|
+
@click.option("--text-file", type=click.Path(exists=True, dir_okay=False), default=None,
|
|
385
|
+
help="Read the message from a UTF-8 file instead of --text; use this for long or "
|
|
386
|
+
"quote-heavy messages, which shells (PowerShell especially) mangle as arguments.")
|
|
384
387
|
@click.option("--conversation-id", default=None, help="Existing conversation; omit to let the server create one.")
|
|
385
388
|
@click.option("--discussion-id", "discussion_ids", multiple=True, help="Discussion scope; repeat for several. Defaults to the conversation's scope.")
|
|
386
389
|
@click.option("--project-id", default=None)
|
|
@@ -406,7 +409,8 @@ def install_copilot_commands(root: click.Group) -> None:
|
|
|
406
409
|
@click.pass_obj
|
|
407
410
|
def copilot_chat(
|
|
408
411
|
runtime: Any,
|
|
409
|
-
text: str,
|
|
412
|
+
text: str | None,
|
|
413
|
+
text_file: str | None,
|
|
410
414
|
conversation_id: str | None,
|
|
411
415
|
discussion_ids: tuple[str, ...],
|
|
412
416
|
project_id: str | None,
|
|
@@ -425,6 +429,13 @@ def install_copilot_commands(root: click.Group) -> None:
|
|
|
425
429
|
dry_run: bool,
|
|
426
430
|
) -> None:
|
|
427
431
|
"""Send one Co-Pilot message over the WebSocket, exactly like the web app, and stream the turn."""
|
|
432
|
+
if (text is None) == (text_file is None):
|
|
433
|
+
raise click.UsageError("Give exactly one of --text or --text-file.")
|
|
434
|
+
if text_file is not None:
|
|
435
|
+
from pathlib import Path
|
|
436
|
+
text = Path(text_file).read_text(encoding="utf-8").strip()
|
|
437
|
+
if not text:
|
|
438
|
+
raise click.UsageError(f"--text-file {text_file} is empty.")
|
|
428
439
|
if detach:
|
|
429
440
|
hold_seconds = 0.0
|
|
430
441
|
org_headers = _org_header(runtime, x_organisation_id)
|
|
@@ -7,7 +7,7 @@ LONG_DESCRIPTION = (Path(__file__).parent / "deliberaide_cli" / "README.md").rea
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name="deliberaide-cli",
|
|
10
|
-
version="0.1.
|
|
10
|
+
version="0.1.7",
|
|
11
11
|
description="Stateful, agent-native CLI for the deliberAIde v2 API",
|
|
12
12
|
long_description=LONG_DESCRIPTION,
|
|
13
13
|
long_description_content_type="text/markdown",
|
|
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
|
{deliberaide_cli-0.1.6 → deliberaide_cli-0.1.7}/deliberaide_cli.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|