deepvista-cli 1.0.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.0.0 → deepvista_cli-1.2.0}/CHANGELOG.md +21 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/PKG-INFO +4 -1
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/README.md +3 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/agents.py +26 -45
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/skill.py +77 -4
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/tasks.py +267 -40
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/resources/workflow_host_runtime.md +24 -6
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/session_note.py +44 -3
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/hooks/hooks.json +12 -0
- deepvista_cli-1.2.0/plugins/claude-code/scripts/deepvista-agent-sync.sh +42 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/pyproject.toml +2 -1
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill.md +6 -5
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/tasks.md +7 -6
- deepvista_cli-1.2.0/tests/test_entry_points.py +35 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/tests/test_session_note_format.py +43 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/tests/test_tasks_commands.py +57 -48
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/uv.lock +1 -1
- deepvista_cli-1.0.0/.release-please-manifest.json +0 -3
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/.claude-plugin/marketplace.json +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/.github/workflows/ci.yml +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/.github/workflows/publish.yml +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/.github/workflows/release-please.yml +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/.gitignore +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/.pre-commit-config.yaml +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/CLAUDE.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/CONTRIBUTING.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/LICENSE +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/__init__.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/agent_catalog.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/auth/__init__.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/auth/callback_server.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/auth/login.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/auth/tokens.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/client/__init__.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/client/http.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/client/origin.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/__init__.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/auth.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/card.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/chat.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/config.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/lint.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/notes.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/project.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/schedule.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/session.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/commands/upgrade.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/config.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/main.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/output/__init__.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/output/formatter.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/resources/__init__.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/skill_catalog.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/deepvista_cli/workflow_doc.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/docs/assets/deepvista-banner.png +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/install.ps1 +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/install.sh +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/README.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/README.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/agents/.gitignore +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/commands/deepvista.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/commands/refresh-skills.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-session-end.sh +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-session-start.sh +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-session-turn.sh +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-skill-url.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/scripts/deepvista-sync.sh +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/skills/.gitignore +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/plugins/claude-code/skills/install-deepvista-cli/SKILL.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/release-please-config.json +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/scripts/check_plugin_version.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/SKILL.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/chat.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/lint.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/notes.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/openclaw.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/project.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/session.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/shared.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill-analyze-notes.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill-create-from-note.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill-import-files.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/skill-research-to-skill.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/deepvista/reference/vistabase-card.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/skills/dv-workflow/SKILL.md +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/tests/__init__.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/tests/test_agent_id_tagging.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/tests/test_project_commands.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/tests/test_skill_catalog.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/tests/test_skill_commands.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/tests/test_workflow_doc_phases.py +0 -0
- {deepvista_cli-1.0.0 → deepvista_cli-1.2.0}/uninstall.sh +0 -0
|
@@ -37,6 +37,27 @@ 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
|
+
|
|
47
|
+
## [1.1.0](https://github.com/DeepVista-AI/deepvista-cli/compare/v1.0.0...v1.1.0) (2026-06-26)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
### Features
|
|
51
|
+
|
|
52
|
+
* **DV-1277:** clean session-card title + link task runs to their chat ([#169](https://github.com/DeepVista-AI/deepvista-cli/issues/169)) ([b4de0c7](https://github.com/DeepVista-AI/deepvista-cli/commit/b4de0c7435bf89f475a25443e80524ab1da8420a))
|
|
53
|
+
* **skill:** add phase need-input for :::dvNeedIntervention mermaid state ([#166](https://github.com/DeepVista-AI/deepvista-cli/issues/166)) ([ade6edf](https://github.com/DeepVista-AI/deepvista-cli/commit/ade6edf8a462199ce8b59119e7eb0d662ad94fc6))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Bug Fixes
|
|
57
|
+
|
|
58
|
+
* **DV-1357:** move agent heartbeat into the Claude Code plugin ([#174](https://github.com/DeepVista-AI/deepvista-cli/issues/174)) ([41c4339](https://github.com/DeepVista-AI/deepvista-cli/commit/41c43390afaab06c90c103c5526e44f3f3f35ad8))
|
|
59
|
+
* reconcile _ensure_agents_for_projects return type (pyright) ([#173](https://github.com/DeepVista-AI/deepvista-cli/issues/173)) ([c134e42](https://github.com/DeepVista-AI/deepvista-cli/commit/c134e42abc39325cf2814126be7d249ba667f464))
|
|
60
|
+
|
|
40
61
|
## [1.0.0](https://github.com/DeepVista-AI/deepvista-cli/compare/v0.6.0...v1.0.0) (2026-06-25)
|
|
41
62
|
|
|
42
63
|
|
|
@@ -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
|
---
|
|
@@ -238,16 +238,29 @@ def _remove_agent_id(
|
|
|
238
238
|
|
|
239
239
|
|
|
240
240
|
# ---------------------------------------------------------------------------
|
|
241
|
-
# Hook
|
|
241
|
+
# Hook migration — heartbeat is now delivered by the DeepVista plugin
|
|
242
242
|
# ---------------------------------------------------------------------------
|
|
243
243
|
|
|
244
244
|
_HOOK_MARKER = "agents sync"
|
|
245
245
|
|
|
246
246
|
|
|
247
|
-
def
|
|
248
|
-
"""
|
|
247
|
+
def _migrate_legacy_hooks(agent_type: str) -> bool:
|
|
248
|
+
"""Strip the legacy standalone heartbeat hook from agent settings.
|
|
249
|
+
|
|
250
|
+
The agent heartbeat is now owned by the DeepVista Claude Code plugin
|
|
251
|
+
(``plugins/claude-code`` → ``scripts/deepvista-agent-sync.sh``), which wraps
|
|
252
|
+
the ``agents sync`` call in the safe hook pattern (PATH export,
|
|
253
|
+
``command -v`` guard, backgrounded, output redirected to a log, always
|
|
254
|
+
``exit 0``). Earlier versions injected a *raw* ``deepvista agents sync`` Stop
|
|
255
|
+
hook straight into ``~/.claude/settings.json``; with no safety wrapper it
|
|
256
|
+
errored and exited non-zero on every Stop whenever DNS/auth failed, which
|
|
257
|
+
Claude Code surfaced as a looping "Stop hook feedback" (DV-1357).
|
|
258
|
+
|
|
259
|
+
Registering now removes that legacy hook so the plugin is the single source
|
|
260
|
+
of truth. Returns True if a legacy hook was removed.
|
|
261
|
+
"""
|
|
249
262
|
if agent_type == "claude-code":
|
|
250
|
-
return
|
|
263
|
+
return _uninstall_claude_code_hooks()
|
|
251
264
|
# Other agent types can be added here
|
|
252
265
|
return False
|
|
253
266
|
|
|
@@ -271,40 +284,6 @@ def _find_hook_command(entry: dict) -> str:
|
|
|
271
284
|
return entry.get("command", "")
|
|
272
285
|
|
|
273
286
|
|
|
274
|
-
def _install_claude_code_hooks(profile: str) -> bool:
|
|
275
|
-
"""Add Stop hook to ~/.claude/settings.json for heartbeat sync."""
|
|
276
|
-
settings_path = _HOME / ".claude" / "settings.json"
|
|
277
|
-
|
|
278
|
-
settings: dict = {}
|
|
279
|
-
if settings_path.is_file():
|
|
280
|
-
try:
|
|
281
|
-
settings = _json.loads(settings_path.read_text(encoding="utf-8"))
|
|
282
|
-
except (_json.JSONDecodeError, OSError):
|
|
283
|
-
settings = {}
|
|
284
|
-
|
|
285
|
-
hooks = settings.setdefault("hooks", {})
|
|
286
|
-
stop_hooks = hooks.setdefault("Stop", [])
|
|
287
|
-
|
|
288
|
-
# Check if already installed
|
|
289
|
-
for entry in stop_hooks:
|
|
290
|
-
if isinstance(entry, dict) and _HOOK_MARKER in _find_hook_command(entry):
|
|
291
|
-
return False # Already installed
|
|
292
|
-
|
|
293
|
-
profile_flag = f" --profile {profile}" if profile != "default" else ""
|
|
294
|
-
sync_cmd = f"deepvista{profile_flag} agents sync --type claude-code --status online"
|
|
295
|
-
|
|
296
|
-
stop_hooks.append(
|
|
297
|
-
{
|
|
298
|
-
"matcher": "",
|
|
299
|
-
"hooks": [{"type": "command", "command": sync_cmd}],
|
|
300
|
-
}
|
|
301
|
-
)
|
|
302
|
-
|
|
303
|
-
settings_path.parent.mkdir(parents=True, exist_ok=True)
|
|
304
|
-
settings_path.write_text(_json.dumps(settings, indent=2) + "\n", encoding="utf-8")
|
|
305
|
-
return True
|
|
306
|
-
|
|
307
|
-
|
|
308
287
|
def _uninstall_claude_code_hooks() -> bool:
|
|
309
288
|
"""Remove DeepVista hooks from ~/.claude/settings.json."""
|
|
310
289
|
settings_path = _HOME / ".claude" / "settings.json"
|
|
@@ -692,8 +671,7 @@ def _ensure_agent_registered(ctx: click.Context, agent_type: str) -> str:
|
|
|
692
671
|
if not agent_id:
|
|
693
672
|
output_error(1, "Auto-registration failed", error or "Unknown error")
|
|
694
673
|
raise SystemExit(1)
|
|
695
|
-
|
|
696
|
-
_install_hooks(agent_type, profile)
|
|
674
|
+
_migrate_legacy_hooks(agent_type)
|
|
697
675
|
return agent_id
|
|
698
676
|
|
|
699
677
|
|
|
@@ -810,7 +788,7 @@ def agents_register(
|
|
|
810
788
|
"name": name,
|
|
811
789
|
"agent_type": agent_type,
|
|
812
790
|
"agent_role": agent_role,
|
|
813
|
-
"
|
|
791
|
+
"would_migrate_legacy_hooks": agent_type == "claude-code",
|
|
814
792
|
"config_snapshot": config,
|
|
815
793
|
"profile": profile,
|
|
816
794
|
},
|
|
@@ -838,10 +816,13 @@ def agents_register(
|
|
|
838
816
|
|
|
839
817
|
_save_agent_id(agent_type, agent["id"], agent.get("agent_role", agent_role), agent.get("project_id"))
|
|
840
818
|
|
|
841
|
-
#
|
|
842
|
-
|
|
843
|
-
if
|
|
844
|
-
click.echo(
|
|
819
|
+
# Heartbeat is now delivered by the DeepVista plugin; strip any legacy
|
|
820
|
+
# standalone hook a prior CLI version injected into settings.json (DV-1357).
|
|
821
|
+
if _migrate_legacy_hooks(agent_type):
|
|
822
|
+
click.echo(
|
|
823
|
+
_json.dumps({"hooks": "removed legacy standalone heartbeat hook (now provided by the DeepVista plugin)"}),
|
|
824
|
+
err=True,
|
|
825
|
+
)
|
|
845
826
|
|
|
846
827
|
# Initial sync — set online immediately so dashboard shows green
|
|
847
828
|
_client(ctx).post(
|
|
@@ -542,19 +542,61 @@ 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.")
|
|
548
587
|
@click.pass_context
|
|
549
588
|
def skill_phase_pause(ctx: click.Context, skill_id: str, reason: str) -> None:
|
|
550
|
-
"""Pause the run (lock held)
|
|
589
|
+
"""Pause the run (lock held), marking the active phase ``:::dvNeedIntervention``.
|
|
551
590
|
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
``
|
|
591
|
+
Sets the active phase's mermaid node to ``:::dvNeedIntervention`` so the
|
|
592
|
+
DeepVista UI shows the workflow is waiting for human action. Does NOT change
|
|
593
|
+
the card's ``status`` — the run lock stays held so a re-run resumes the same
|
|
594
|
+
phase. Exits non-zero so wrapping scripts notice.
|
|
555
595
|
"""
|
|
556
596
|
card, doc = _load_skill_doc(ctx, skill_id)
|
|
557
597
|
active = doc.active_phase()
|
|
598
|
+
if active:
|
|
599
|
+
_phase(ctx, skill_id, phase_label=active.title, action="need_input", reason=reason)
|
|
558
600
|
out = {
|
|
559
601
|
"ok": False,
|
|
560
602
|
"paused": True,
|
|
@@ -570,6 +612,37 @@ def skill_phase_pause(ctx: click.Context, skill_id: str, reason: str) -> None:
|
|
|
570
612
|
sys.exit(2)
|
|
571
613
|
|
|
572
614
|
|
|
615
|
+
@skill_phase_group.command("need-input")
|
|
616
|
+
@click.argument("skill_id")
|
|
617
|
+
@click.argument("phase_label")
|
|
618
|
+
@click.option("--reason", required=True, help="Short sentence describing what input is needed from the user.")
|
|
619
|
+
@click.pass_context
|
|
620
|
+
def skill_phase_need_input(ctx: click.Context, skill_id: str, phase_label: str, reason: str) -> None:
|
|
621
|
+
"""Signal that a phase is blocked waiting for user input (mermaid ``:::dvNeedIntervention``).
|
|
622
|
+
|
|
623
|
+
Marks the accordion open and sets the mermaid node to
|
|
624
|
+
``:::dvNeedIntervention`` so the DeepVista UI shows the phase as
|
|
625
|
+
waiting for the user — distinct from a technical blocker (``phase pause``)
|
|
626
|
+
or an error. Exits non-zero so wrapping scripts notice.
|
|
627
|
+
|
|
628
|
+
The user provides the required information and then resumes with:
|
|
629
|
+
|
|
630
|
+
deepvista skill run --mode host <skill_id>
|
|
631
|
+
"""
|
|
632
|
+
result = _phase(ctx, skill_id, phase_label=phase_label, action="need_input", reason=reason)
|
|
633
|
+
out = {
|
|
634
|
+
"ok": False,
|
|
635
|
+
"need_input": True,
|
|
636
|
+
"skill_id": skill_id,
|
|
637
|
+
"phase": phase_label,
|
|
638
|
+
"title": result.get("title", ""),
|
|
639
|
+
"reason": reason,
|
|
640
|
+
"resume_with": f"deepvista skill run --mode host {skill_id}",
|
|
641
|
+
}
|
|
642
|
+
format_output(out, ctx.obj.output_format, entity_type="skill", base_url=ctx.obj.auth_url)
|
|
643
|
+
sys.exit(2)
|
|
644
|
+
|
|
645
|
+
|
|
573
646
|
@skill_phase_group.command("run-on-deepvista")
|
|
574
647
|
@click.argument("skill_id")
|
|
575
648
|
@click.argument("phase_label")
|