deepvista-cli 1.1.0__tar.gz → 1.2.0__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.
- deepvista_cli-1.2.0/.release-please-manifest.json +3 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/CHANGELOG.md +7 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/PKG-INFO +4 -1
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/README.md +3 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/skill.py +39 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/tasks.py +110 -6
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/pyproject.toml +2 -1
- deepvista_cli-1.2.0/tests/test_entry_points.py +35 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/uv.lock +1 -1
- deepvista_cli-1.1.0/.release-please-manifest.json +0 -3
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/.claude-plugin/marketplace.json +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/.github/workflows/ci.yml +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/.github/workflows/publish.yml +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/.github/workflows/release-please.yml +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/.gitignore +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/.pre-commit-config.yaml +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/CLAUDE.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/CONTRIBUTING.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/LICENSE +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/__init__.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/agent_catalog.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/auth/__init__.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/auth/callback_server.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/auth/login.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/auth/tokens.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/client/__init__.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/client/http.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/client/origin.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/__init__.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/agents.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/auth.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/card.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/chat.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/config.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/lint.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/notes.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/project.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/schedule.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/session.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/upgrade.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/config.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/main.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/output/__init__.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/output/formatter.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/resources/__init__.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/resources/workflow_host_runtime.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/session_note.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/skill_catalog.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/workflow_doc.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/docs/assets/deepvista-banner.png +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/install.ps1 +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/install.sh +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/README.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/README.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/agents/.gitignore +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/commands/deepvista.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/commands/refresh-skills.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/hooks/hooks.json +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-agent-sync.sh +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-session-end.sh +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-session-start.sh +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-session-turn.sh +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-skill-url.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-sync.sh +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/skills/.gitignore +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/skills/install-deepvista-cli/SKILL.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/release-please-config.json +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/scripts/check_plugin_version.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/SKILL.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/chat.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/lint.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/notes.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/openclaw.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/project.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/session.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/shared.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill-analyze-notes.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill-create-from-note.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill-import-files.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill-research-to-skill.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/tasks.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/vistabase-card.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/dv-workflow/SKILL.md +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/tests/__init__.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/tests/test_agent_id_tagging.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/tests/test_project_commands.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/tests/test_session_note_format.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/tests/test_skill_catalog.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/tests/test_skill_commands.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/tests/test_tasks_commands.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/tests/test_workflow_doc_phases.py +0 -0
- {deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/uninstall.sh +0 -0
|
@@ -37,6 +37,13 @@ users what's new between the version they have installed and the latest release.
|
|
|
37
37
|
adopts a pre-existing server-side row instead of failing when the local
|
|
38
38
|
file is missing.
|
|
39
39
|
|
|
40
|
+
## [1.2.0](https://github.com/DeepVista-AI/deepvista-cli/compare/v1.1.0...v1.2.0) (2026-06-27)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
* **DV-1324:** add dv CLI alias ([#177](https://github.com/DeepVista-AI/deepvista-cli/issues/177)) ([f1973a3](https://github.com/DeepVista-AI/deepvista-cli/commit/f1973a35b488477df187ff2ccb5c0662b2f3efa8))
|
|
46
|
+
|
|
40
47
|
## [1.1.0](https://github.com/DeepVista-AI/deepvista-cli/compare/v1.0.0...v1.1.0) (2026-06-26)
|
|
41
48
|
|
|
42
49
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: deepvista-cli
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: CLI for DeepVista — chat, notes, skills, and memory from your terminal.
|
|
5
5
|
Project-URL: Homepage, https://deepvista.ai
|
|
6
6
|
Project-URL: Repository, https://github.com/DeepVista-AI/deepvista-cli
|
|
@@ -127,6 +127,9 @@ deepvista card +search "founder mindset"
|
|
|
127
127
|
deepvista chat +send "What did I learn last week?"
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
+
> **Tip:** `dv` is a short alias for `deepvista` — `dv <args>` and `deepvista <args>`
|
|
131
|
+
> are fully interchangeable (e.g. `dv notes +quick "..."`).
|
|
132
|
+
|
|
130
133
|
That's it. Your knowledge base is now accessible from any terminal.
|
|
131
134
|
|
|
132
135
|
---
|
|
@@ -100,6 +100,9 @@ deepvista card +search "founder mindset"
|
|
|
100
100
|
deepvista chat +send "What did I learn last week?"
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
+
> **Tip:** `dv` is a short alias for `deepvista` — `dv <args>` and `deepvista <args>`
|
|
104
|
+
> are fully interchangeable (e.g. `dv notes +quick "..."`).
|
|
105
|
+
|
|
103
106
|
That's it. Your knowledge base is now accessible from any terminal.
|
|
104
107
|
|
|
105
108
|
---
|
|
@@ -542,6 +542,45 @@ def skill_phase_reset(ctx: click.Context, skill_id: str, phase_label: str, dry_r
|
|
|
542
542
|
)
|
|
543
543
|
|
|
544
544
|
|
|
545
|
+
@skill_phase_group.command("note")
|
|
546
|
+
@click.argument("skill_id")
|
|
547
|
+
@click.argument("phase_label")
|
|
548
|
+
@click.argument("note_text")
|
|
549
|
+
@click.option("--dry-run", is_flag=True, default=False, help="Preview without writing.")
|
|
550
|
+
@click.pass_context
|
|
551
|
+
def skill_phase_note(ctx: click.Context, skill_id: str, phase_label: str, note_text: str, dry_run: bool) -> None:
|
|
552
|
+
"""Set or update the dvNote annotation bubble next to a phase node.
|
|
553
|
+
|
|
554
|
+
The annotation appears as a side bubble in the workflow mermaid diagram —
|
|
555
|
+
useful for recording task dispatch status, short summaries, or interim results.
|
|
556
|
+
Calling this command again with different text replaces the previous note.
|
|
557
|
+
"""
|
|
558
|
+
if dry_run:
|
|
559
|
+
format_output(
|
|
560
|
+
{
|
|
561
|
+
"dry_run": True,
|
|
562
|
+
"would": "set phase note",
|
|
563
|
+
"skill_id": skill_id,
|
|
564
|
+
"phase": phase_label,
|
|
565
|
+
"note_text": note_text,
|
|
566
|
+
},
|
|
567
|
+
ctx.obj.output_format,
|
|
568
|
+
entity_type="skill",
|
|
569
|
+
base_url=ctx.obj.auth_url,
|
|
570
|
+
project_id=ctx.obj.project_id,
|
|
571
|
+
)
|
|
572
|
+
return
|
|
573
|
+
|
|
574
|
+
result = _phase(ctx, skill_id, phase_label=phase_label, action="note", note_text=note_text)
|
|
575
|
+
format_output(
|
|
576
|
+
{"ok": True, "skill_id": skill_id, "phase": phase_label, "note": note_text, "title": result.get("title", "")},
|
|
577
|
+
ctx.obj.output_format,
|
|
578
|
+
entity_type="skill",
|
|
579
|
+
base_url=ctx.obj.auth_url,
|
|
580
|
+
project_id=ctx.obj.project_id,
|
|
581
|
+
)
|
|
582
|
+
|
|
583
|
+
|
|
545
584
|
@skill_phase_group.command("pause")
|
|
546
585
|
@click.argument("skill_id")
|
|
547
586
|
@click.option("--reason", required=True, help="Short sentence explaining what's blocking the run.")
|
|
@@ -388,9 +388,9 @@ def _execute_task(ctx: click.Context, agent_id: str, task: dict) -> dict:
|
|
|
388
388
|
# headlessly via `claude -p "/deepvista <prompt>"`.
|
|
389
389
|
# ---------------------------------------------------------------------------
|
|
390
390
|
|
|
391
|
-
#
|
|
392
|
-
#
|
|
393
|
-
TASK_RUN_TIMEOUT_SECONDS =
|
|
391
|
+
# Default cap for a task-card run. 10 minutes covers most local CLI operations;
|
|
392
|
+
# callers can override per-task via the ``timeout_seconds`` frontmatter field.
|
|
393
|
+
TASK_RUN_TIMEOUT_SECONDS = 600
|
|
394
394
|
|
|
395
395
|
# Headless permission posture for unattended task runs. ``bypassPermissions``
|
|
396
396
|
# skips every approval prompt — appropriate for a Machine the user has
|
|
@@ -432,7 +432,16 @@ def _run_task_card(ctx: click.Context, agent_id: str, project_id: str | None, ta
|
|
|
432
432
|
|
|
433
433
|
permission_mode = os.environ.get("DEEPVISTA_TASK_PERMISSION_MODE", DEFAULT_TASK_PERMISSION_MODE)
|
|
434
434
|
cwd = os.environ.get("DEEPVISTA_TASK_CWD") or os.getcwd()
|
|
435
|
-
|
|
435
|
+
# Inject task_id into the prompt so the local Claude Code agent can call
|
|
436
|
+
# `deepvista tasks note <task_id> "<note>"` to write intermediate progress
|
|
437
|
+
# notes that the web agent polling the card can see in real-time.
|
|
438
|
+
task_context = (
|
|
439
|
+
f"[Task ID: {task_id}. "
|
|
440
|
+
f"After completing each significant step — or if you need human input to continue — "
|
|
441
|
+
f"run: deepvista tasks note {task_id} \"<brief note>\" "
|
|
442
|
+
f"so the delegating agent can track your progress.]\n\n"
|
|
443
|
+
)
|
|
444
|
+
argv = [_claude_binary(), "-p", f"/deepvista {task_context}{prompt}", "--permission-mode", permission_mode]
|
|
436
445
|
|
|
437
446
|
# DV-1277: expose the originating chat + this task to the headless run so the
|
|
438
447
|
# session card the Claude Code plugin writes (`deepvista session init`) can
|
|
@@ -466,6 +475,10 @@ def _run_task_card(ctx: click.Context, agent_id: str, project_id: str | None, ta
|
|
|
466
475
|
click.echo(f" {' · '.join(meta_parts)}", err=True)
|
|
467
476
|
click.echo(f" prompt: {task_label}", err=True)
|
|
468
477
|
|
|
478
|
+
# Per-task timeout: the enqueuing agent can override the default via
|
|
479
|
+
# the ``timeout_seconds`` frontmatter field (e.g. for long research tasks).
|
|
480
|
+
task_timeout = int(task.get("timeout_seconds") or 0) or TASK_RUN_TIMEOUT_SECONDS
|
|
481
|
+
|
|
469
482
|
_done = threading.Event()
|
|
470
483
|
_start = time.monotonic()
|
|
471
484
|
|
|
@@ -481,7 +494,7 @@ def _run_task_card(ctx: click.Context, agent_id: str, project_id: str | None, ta
|
|
|
481
494
|
argv,
|
|
482
495
|
capture_output=True,
|
|
483
496
|
text=True,
|
|
484
|
-
timeout=
|
|
497
|
+
timeout=task_timeout,
|
|
485
498
|
cwd=cwd,
|
|
486
499
|
env=run_env,
|
|
487
500
|
)
|
|
@@ -491,7 +504,7 @@ def _run_task_card(ctx: click.Context, agent_id: str, project_id: str | None, ta
|
|
|
491
504
|
if not output and proc.stderr:
|
|
492
505
|
output = proc.stderr.strip()
|
|
493
506
|
except subprocess.TimeoutExpired:
|
|
494
|
-
status, exit_code, output = "failed", None, f"claude run timed out after {
|
|
507
|
+
status, exit_code, output = "failed", None, f"claude run timed out after {task_timeout}s"
|
|
495
508
|
except FileNotFoundError:
|
|
496
509
|
status, exit_code, output = (
|
|
497
510
|
"failed",
|
|
@@ -518,9 +531,62 @@ def _run_task_card(ctx: click.Context, agent_id: str, project_id: str | None, ta
|
|
|
518
531
|
result["created_at"] = created_at_raw
|
|
519
532
|
if workflow_name:
|
|
520
533
|
result["workflow"] = workflow_name
|
|
534
|
+
|
|
535
|
+
skill_id = str(task.get("skill_id") or "").strip()
|
|
536
|
+
phase_label = str(task.get("phase_label") or "").strip()
|
|
537
|
+
|
|
538
|
+
# Update the workflow phase dvNote annotation so the diagram reflects the
|
|
539
|
+
# task result before resuming — the annotation is visible immediately in the UI.
|
|
540
|
+
if skill_id and phase_label:
|
|
541
|
+
status_icon = "✅" if status == "completed" else "❌"
|
|
542
|
+
short_output = (output or "")[:120]
|
|
543
|
+
if len(output or "") > 120:
|
|
544
|
+
short_output += "…"
|
|
545
|
+
note = f"{status_icon} Task {short_id} {status}."
|
|
546
|
+
if short_output:
|
|
547
|
+
note += f" {short_output}"
|
|
548
|
+
_update_phase_note(ctx, skill_id, phase_label, note)
|
|
549
|
+
|
|
550
|
+
# Resume the triggering workflow run so the server can continue from where
|
|
551
|
+
# it dispatched this task. ``skill_id`` is stamped on the task at enqueue
|
|
552
|
+
# time; without it the parent run stays paused and never completes.
|
|
553
|
+
if skill_id:
|
|
554
|
+
click.echo(f" ↩ resuming workflow {skill_id[:8]}… via deepvista skill run", err=True)
|
|
555
|
+
_resume_workflow(ctx, skill_id)
|
|
556
|
+
|
|
521
557
|
return result
|
|
522
558
|
|
|
523
559
|
|
|
560
|
+
def _update_phase_note(ctx: click.Context, skill_id: str, phase_label: str, note_text: str) -> None:
|
|
561
|
+
"""Call ``POST /workflow_phase`` with action='note' to update the dvNote annotation."""
|
|
562
|
+
try:
|
|
563
|
+
_client(ctx).post(
|
|
564
|
+
"/workflow_phase",
|
|
565
|
+
{"card_id": skill_id, "phase_label": phase_label, "action": "note", "note_text": note_text},
|
|
566
|
+
)
|
|
567
|
+
except Exception as exc:
|
|
568
|
+
click.echo(f" [warn] phase note update failed: {exc}", err=True)
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
def _resume_workflow(ctx: click.Context, skill_id: str) -> None:
|
|
572
|
+
"""Run ``deepvista skill run --mode host <skill_id>`` to resume the parent workflow."""
|
|
573
|
+
profile_flag = []
|
|
574
|
+
profile = getattr(ctx.obj, "profile", None)
|
|
575
|
+
if profile and profile != "default":
|
|
576
|
+
profile_flag = ["--profile", profile]
|
|
577
|
+
argv = [_deepvista_binary(), *profile_flag, "skill", "run", "--mode", "host", skill_id]
|
|
578
|
+
try:
|
|
579
|
+
subprocess.run( # noqa: S603 — argv built from validated binary + literal args
|
|
580
|
+
argv,
|
|
581
|
+
timeout=TASK_TIMEOUT_SECONDS,
|
|
582
|
+
check=False,
|
|
583
|
+
)
|
|
584
|
+
except subprocess.TimeoutExpired:
|
|
585
|
+
click.echo(f" [warn] skill resume timed out for {skill_id[:8]}…", err=True)
|
|
586
|
+
except OSError as exc:
|
|
587
|
+
click.echo(f" [warn] skill resume failed: {exc}", err=True)
|
|
588
|
+
|
|
589
|
+
|
|
524
590
|
def _claim_and_run_task_cards(ctx: click.Context, agent_id: str, project_id: str | None) -> list[dict]:
|
|
525
591
|
"""Claim this Machine's pending task cards in ``project_id`` and run each headless.
|
|
526
592
|
|
|
@@ -1160,6 +1226,44 @@ def tasks_list(
|
|
|
1160
1226
|
)
|
|
1161
1227
|
|
|
1162
1228
|
|
|
1229
|
+
@tasks_group.command("note")
|
|
1230
|
+
@click.argument("task_id")
|
|
1231
|
+
@click.argument("note")
|
|
1232
|
+
@click.option("--type", "agent_type", default=None, help="Resolve agent by type from local storage.")
|
|
1233
|
+
@click.option("--role", "agent_role", default=None, help="Resolve agent by role (with --type).")
|
|
1234
|
+
@click.option("--project", "project_id", default=None, help="Restrict to the agent registered for this project ID.")
|
|
1235
|
+
@click.pass_context
|
|
1236
|
+
def tasks_note(
|
|
1237
|
+
ctx: click.Context,
|
|
1238
|
+
task_id: str,
|
|
1239
|
+
note: str,
|
|
1240
|
+
agent_type: str | None,
|
|
1241
|
+
agent_role: str | None,
|
|
1242
|
+
project_id: str | None,
|
|
1243
|
+
) -> None:
|
|
1244
|
+
"""Append a progress note to a running task card's run log (DV-1247).
|
|
1245
|
+
|
|
1246
|
+
Called by the local Claude Code agent after completing a step or when human
|
|
1247
|
+
input is required. The web agent polling the task card sees these notes in
|
|
1248
|
+
the description and can relay them to the user in real-time.
|
|
1249
|
+
|
|
1250
|
+
Example (from inside a headless claude -p run):
|
|
1251
|
+
deepvista tasks note <task-id> "Step 1 done: found 3 failing tests"
|
|
1252
|
+
deepvista tasks note <task-id> "Needs human: please approve the PR at github.com/…"
|
|
1253
|
+
"""
|
|
1254
|
+
agent_id, resolved_project_id = _require_machine_agent_id(agent_type, agent_role, project_id)
|
|
1255
|
+
headers = {"X-Project-Id": resolved_project_id} if resolved_project_id else None
|
|
1256
|
+
data = _client(ctx).post(
|
|
1257
|
+
f"/agents/{agent_id}/tasks/{task_id}/note",
|
|
1258
|
+
{"note": note},
|
|
1259
|
+
extra_headers=headers,
|
|
1260
|
+
)
|
|
1261
|
+
if not data.get("success"):
|
|
1262
|
+
output_error(1, "Failed to append task note", data.get("error", "Unknown error"))
|
|
1263
|
+
raise SystemExit(1)
|
|
1264
|
+
click.echo(f" ✎ note appended to task {task_id[:8]}…", err=True)
|
|
1265
|
+
|
|
1266
|
+
|
|
1163
1267
|
@tasks_group.command("complete")
|
|
1164
1268
|
@click.argument("task_id")
|
|
1165
1269
|
@click.option(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepvista",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Remote-managed skill catalog from DeepVista. Auto-syncs thin stubs into the plugin's skills dir on SessionStart; full bodies are lazy-loaded at invocation time.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "DeepVista AI",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "deepvista-cli"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.2.0"
|
|
4
4
|
description = "CLI for DeepVista — chat, notes, skills, and memory from your terminal."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = { text = "Apache-2.0" }
|
|
@@ -32,6 +32,7 @@ Issues = "https://github.com/DeepVista-AI/deepvista-cli/issues"
|
|
|
32
32
|
|
|
33
33
|
[project.scripts]
|
|
34
34
|
deepvista = "deepvista_cli.main:cli"
|
|
35
|
+
dv = "deepvista_cli.main:cli" # short alias for `deepvista` (DV-1324)
|
|
35
36
|
|
|
36
37
|
[build-system]
|
|
37
38
|
requires = ["hatchling"]
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Regression tests for the CLI console-script entry points.
|
|
2
|
+
|
|
3
|
+
`deepvista` is the canonical command; `dv` is a short alias (DV-1324). Both must
|
|
4
|
+
stay mapped to the same callable so the two commands remain interchangeable.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import tomllib
|
|
10
|
+
from pathlib import Path
|
|
11
|
+
|
|
12
|
+
PYPROJECT = Path(__file__).resolve().parent.parent / "pyproject.toml"
|
|
13
|
+
|
|
14
|
+
TARGET = "deepvista_cli.main:cli"
|
|
15
|
+
PROJECT = "project"
|
|
16
|
+
SCRIPTS = "scripts"
|
|
17
|
+
DEEPVISTA = "deepvista"
|
|
18
|
+
DV = "dv"
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def _scripts() -> dict:
|
|
22
|
+
data = tomllib.loads(PYPROJECT.read_text())
|
|
23
|
+
return data[PROJECT][SCRIPTS]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def test_both_entry_points_registered() -> None:
|
|
27
|
+
scripts = _scripts()
|
|
28
|
+
assert DEEPVISTA in scripts, "canonical `deepvista` entry point is missing"
|
|
29
|
+
assert DV in scripts, "`dv` alias entry point is missing"
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def test_alias_points_to_same_target() -> None:
|
|
33
|
+
scripts = _scripts()
|
|
34
|
+
assert scripts[DEEPVISTA] == TARGET
|
|
35
|
+
assert scripts[DV] == scripts[DEEPVISTA], "`dv` must alias the same callable as `deepvista`"
|
|
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
|
|
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
|
{deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/deepvista_cli/resources/workflow_host_runtime.md
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
|
{deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-agent-sync.sh
RENAMED
|
File without changes
|
{deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-session-end.sh
RENAMED
|
File without changes
|
{deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-session-start.sh
RENAMED
|
File without changes
|
{deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-session-turn.sh
RENAMED
|
File without changes
|
{deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-skill-url.py
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
|
{deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill-analyze-notes.md
RENAMED
|
File without changes
|
{deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill-create-from-note.md
RENAMED
|
File without changes
|
{deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill-import-files.md
RENAMED
|
File without changes
|
{deepvista_cli-1.1.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill-research-to-skill.md
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
|