deepvista-cli 4.5.0__tar.gz → 4.5.1__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-4.5.1/.release-please-manifest.json +3 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/CHANGELOG.md +7 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/PKG-INFO +1 -1
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/main.py +35 -1
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/output/formatter.py +18 -4
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/.claude-plugin/plugin.json +1 -1
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/commands/deepvista.md +1 -1
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/pyproject.toml +1 -1
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/SKILL.md +4 -4
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/notes.md +1 -1
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/project.md +1 -1
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/push.md +1 -1
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/shared.md +1 -1
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/skill.md +2 -2
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/vistabase-card.md +1 -1
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/dv-workflow/SKILL.md +2 -2
- deepvista_cli-4.5.1/tests/conftest.py +9 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_project_commands.py +63 -1
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/uv.lock +21 -21
- deepvista_cli-4.5.0/.release-please-manifest.json +0 -3
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/.claude-plugin/marketplace.json +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/.github/workflows/ci.yml +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/.github/workflows/publish.yml +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/.github/workflows/release-please.yml +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/.gitignore +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/.pre-commit-config.yaml +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/CLAUDE.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/CONTRIBUTING.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/LICENSE +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/README.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/__init__.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/auth/__init__.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/auth/callback_server.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/auth/login.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/auth/tokens.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/bundle.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/client/__init__.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/client/http.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/client/origin.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/__init__.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/agents.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/auth.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/card.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/chat.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/config.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/notes.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/project.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/pull.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/push.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/schedule.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/session.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/skill.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/tasks.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/commands/upgrade.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/config.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/output/__init__.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/resources/__init__.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/resources/workflow_host_runtime.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/session_note.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/skill_catalog.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/utils.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/deepvista_cli/workflow_doc.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/docs/assets/deepvista-banner.png +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/docs/releasing.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/install.ps1 +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/install.sh +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/README.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/README.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/commands/refresh-skills.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/hooks/hooks.json +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/scripts/deepvista-agent-sync.sh +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/scripts/deepvista-session-end.sh +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/scripts/deepvista-session-start.sh +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/scripts/deepvista-session-turn.sh +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/scripts/deepvista-skill-url.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/scripts/deepvista-sync.sh +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/skills/.gitignore +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/skills/install-deepvista-cli/SKILL.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/release-please-config.json +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/scripts/check_plugin_version.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/scripts/quickstart.sh +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/chat.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/openclaw.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/pull.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/session.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/skill-analyze-notes.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/skill-create-from-note.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/skill-import-files.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/skill-research-to-skill.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/tasks.md +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/__init__.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_agent_id_tagging.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_bundle.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_card_comment_commands.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_entry_points.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_http_client_retry.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_schedule_commands.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_session_note_format.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_skill_catalog.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_skill_commands.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_skill_host_runs.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_tasks_commands.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/tests/test_workflow_doc_phases.py +0 -0
- {deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/uninstall.sh +0 -0
|
@@ -46,6 +46,13 @@ users what's new between the version they have installed and the latest release.
|
|
|
46
46
|
adopts a pre-existing server-side row instead of failing when the local
|
|
47
47
|
file is missing.
|
|
48
48
|
|
|
49
|
+
## [4.5.1](https://github.com/DeepVista-AI/deepvista-cli/compare/v4.5.0...v4.5.1) (2026-11-23)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### Bug Fixes
|
|
53
|
+
|
|
54
|
+
* **links:** put the project slug in CLI web links ([#237](https://github.com/DeepVista-AI/deepvista-cli/issues/237)) ([16c3467](https://github.com/DeepVista-AI/deepvista-cli/commit/16c34672626c97b83ccbf488019367c9b5ae2cb8))
|
|
55
|
+
|
|
49
56
|
## [4.5.0](https://github.com/DeepVista-AI/deepvista-cli/compare/v4.4.1...v4.5.0) (2026-09-29)
|
|
50
57
|
|
|
51
58
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: deepvista-cli
|
|
3
|
-
Version: 4.5.
|
|
3
|
+
Version: 4.5.1
|
|
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
|
|
@@ -19,6 +19,8 @@ Global flags:
|
|
|
19
19
|
|
|
20
20
|
from __future__ import annotations
|
|
21
21
|
|
|
22
|
+
import re
|
|
23
|
+
|
|
22
24
|
import click
|
|
23
25
|
|
|
24
26
|
from deepvista_cli import __version__
|
|
@@ -38,6 +40,7 @@ from deepvista_cli.commands.skill import skill_group
|
|
|
38
40
|
from deepvista_cli.commands.tasks import tasks_group
|
|
39
41
|
from deepvista_cli.commands.upgrade import upgrade_command
|
|
40
42
|
from deepvista_cli.config import DEFAULT_API_URL, CLIConfig
|
|
43
|
+
from deepvista_cli.output.formatter import set_project_ref_resolver
|
|
41
44
|
|
|
42
45
|
|
|
43
46
|
class _RootGroup(click.Group):
|
|
@@ -54,6 +57,35 @@ class _RootGroup(click.Group):
|
|
|
54
57
|
return [name for name in super().list_commands(ctx) if name not in self._HIDDEN_ALIASES]
|
|
55
58
|
|
|
56
59
|
|
|
60
|
+
_UUID_RE = re.compile(r"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}")
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def _project_link_resolver(config: CLIConfig, client: DeepVistaClient): # type: ignore[no-untyped-def]
|
|
64
|
+
"""Resolve the project slug web links should carry, once per invocation.
|
|
65
|
+
|
|
66
|
+
A slug passes through untouched. A UUID or no working project is looked up
|
|
67
|
+
via ``/projects/me`` (the working project when set, else the backend
|
|
68
|
+
default). Any failure falls back to the id (or no prefix) rather than
|
|
69
|
+
breaking the command that produced the entity.
|
|
70
|
+
"""
|
|
71
|
+
cache: dict[str | None, str | None] = {}
|
|
72
|
+
|
|
73
|
+
def resolve(project_id: str | None) -> str | None:
|
|
74
|
+
if project_id in cache:
|
|
75
|
+
return cache[project_id]
|
|
76
|
+
ref = project_id
|
|
77
|
+
if not config.dry_run and (project_id is None or _UUID_RE.fullmatch(project_id)):
|
|
78
|
+
try:
|
|
79
|
+
project = client.get("/projects/me")
|
|
80
|
+
ref = (project or {}).get("slug") or project_id
|
|
81
|
+
except (Exception, SystemExit):
|
|
82
|
+
pass
|
|
83
|
+
cache[project_id] = ref
|
|
84
|
+
return ref
|
|
85
|
+
|
|
86
|
+
return resolve
|
|
87
|
+
|
|
88
|
+
|
|
57
89
|
@click.group(cls=_RootGroup)
|
|
58
90
|
@click.version_option(__version__, prog_name="deepvista")
|
|
59
91
|
@click.option("--format", "output_format", type=click.Choice(["json", "table"]), default="json", help="Output format.")
|
|
@@ -105,7 +137,9 @@ def cli(
|
|
|
105
137
|
# Attach config + lazy client to context
|
|
106
138
|
ctx.ensure_object(CLIConfig)
|
|
107
139
|
ctx.obj = config
|
|
108
|
-
|
|
140
|
+
client = DeepVistaClient(config)
|
|
141
|
+
ctx.obj._client = client
|
|
142
|
+
set_project_ref_resolver(_project_link_resolver(config, client))
|
|
109
143
|
|
|
110
144
|
|
|
111
145
|
# Project scoping — pick a working project that scopes every other command.
|
|
@@ -8,6 +8,7 @@ from __future__ import annotations
|
|
|
8
8
|
|
|
9
9
|
import json
|
|
10
10
|
import sys
|
|
11
|
+
from collections.abc import Callable
|
|
11
12
|
from typing import Any, NoReturn
|
|
12
13
|
|
|
13
14
|
import click
|
|
@@ -42,6 +43,16 @@ ENTITY_KEYS = ("card", "note", "skill", "session", "project")
|
|
|
42
43
|
_KEY_TYPE_OVERRIDES = {"session": "chat"}
|
|
43
44
|
GENERIC_LIST_KEYS = ("results", "similar")
|
|
44
45
|
|
|
46
|
+
# Maps the working project (id, slug, or None for the backend default) to the
|
|
47
|
+
# project segment used in web links. Registered by the CLI entry point.
|
|
48
|
+
ProjectRefResolver = Callable[[str | None], str | None]
|
|
49
|
+
_project_ref_resolver: ProjectRefResolver | None = None
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def set_project_ref_resolver(resolver: ProjectRefResolver | None) -> None:
|
|
53
|
+
global _project_ref_resolver
|
|
54
|
+
_project_ref_resolver = resolver
|
|
55
|
+
|
|
45
56
|
|
|
46
57
|
def generate_url(
|
|
47
58
|
entity_id: str,
|
|
@@ -55,16 +66,17 @@ def generate_url(
|
|
|
55
66
|
entity_id: The UUID of the entity
|
|
56
67
|
entity_type: Type of entity (card, note, skill, chat, person, organization, topic, keypoint)
|
|
57
68
|
base_url: Base URL of the web app (defaults to https://app.deepvista.ai)
|
|
58
|
-
project_id:
|
|
59
|
-
``/project/{project_id}`` to match the project-scoped
|
|
60
|
-
routes (mirrors the web app's ``withProjectPrefix()``).
|
|
69
|
+
project_id: Project segment for the link (slug or id). When set, the path
|
|
70
|
+
is prefixed with ``/project/{project_id}`` to match the project-scoped
|
|
71
|
+
frontend routes (mirrors the web app's ``withProjectPrefix()``).
|
|
72
|
+
Project entities are never prefixed — their pattern already is one.
|
|
61
73
|
|
|
62
74
|
Returns:
|
|
63
75
|
Full URL to the entity in the web app
|
|
64
76
|
"""
|
|
65
77
|
pattern = URL_PATTERNS.get(entity_type, URL_PATTERNS["card"])
|
|
66
78
|
path = pattern.format(id=entity_id)
|
|
67
|
-
if project_id:
|
|
79
|
+
if project_id and entity_type != "project":
|
|
68
80
|
path = f"/project/{project_id}{path}"
|
|
69
81
|
return f"{base_url.rstrip('/')}{path}"
|
|
70
82
|
|
|
@@ -92,6 +104,8 @@ def add_url_to_entity(
|
|
|
92
104
|
# Map known entity types; fall back to the passed entity_type for unknown types
|
|
93
105
|
if effective_type not in URL_PATTERNS:
|
|
94
106
|
effective_type = entity_type
|
|
107
|
+
if effective_type != "project" and _project_ref_resolver is not None:
|
|
108
|
+
project_id = _project_ref_resolver(project_id) or project_id
|
|
95
109
|
result["url"] = generate_url(entity["id"], effective_type, base_url, project_id=project_id)
|
|
96
110
|
return result
|
|
97
111
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deepvista",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.1",
|
|
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",
|
|
@@ -110,6 +110,6 @@ deepvista notes update <note-id> --content-file -
|
|
|
110
110
|
Tell the user, in two lines:
|
|
111
111
|
|
|
112
112
|
- Which workflows ran (and any that were skipped or failed).
|
|
113
|
-
- The planning note URL (`https://app.deepvista.ai/notes/<id>`).
|
|
113
|
+
- The planning note URL (`https://app.deepvista.ai/project/<slug>/notes/<id>`).
|
|
114
114
|
|
|
115
115
|
If any step fails, stop and surface the error — do not silently fall through.
|
|
@@ -43,7 +43,7 @@ other reference file assumes you know it.
|
|
|
43
43
|
| Subcommand | Use when | Reference |
|
|
44
44
|
|---|---|---|
|
|
45
45
|
| `deepvista auth` / `agents` / `config` / `upgrade` | authenticating, the agent heartbeat, switching profiles, checking for updates | [shared.md](reference/shared.md) |
|
|
46
|
-
| `deepvista project` | listing projects, picking / switching the **working project** that scopes every other command (`X-Project-Id` + `/project
|
|
46
|
+
| `deepvista project` | listing projects, picking / switching the **working project** that scopes every other command (`X-Project-Id` + `/project/<slug>/…` links) | [project.md](reference/project.md) |
|
|
47
47
|
| `deepvista notes` | taking a note the user **explicitly asked to record**, listing / updating / deleting notes, quick-capture of a single-line fact | [notes.md](reference/notes.md) |
|
|
48
48
|
| `deepvista session` | recording an agent conversation transcript as a rolling `type=session` card via the `init` / `tick` / `finalize` hook lifecycle | [session.md](reference/session.md) |
|
|
49
49
|
| `deepvista schedule` | activating / deactivating / listing the opt-in recurring daily-planning job | `deepvista schedule --help` |
|
|
@@ -116,9 +116,9 @@ If the source material isn't yet a DeepVista note, capture it first
|
|
|
116
116
|
create, update, or delete data. Describe what will happen, then ask before running.
|
|
117
117
|
Use `--dry-run` (supported on every stateful command) to preview first.
|
|
118
118
|
2. **Show the app URL after writes.** Surface a clickable link so the user can verify:
|
|
119
|
-
- notes → `https://app.deepvista.ai/notes/<id>`
|
|
120
|
-
- cards → `https://app.deepvista.ai/vistabase/<id>`
|
|
121
|
-
- skills → `https://app.deepvista.ai/skills/<id>`
|
|
119
|
+
- notes → `https://app.deepvista.ai/project/<slug>/notes/<id>`
|
|
120
|
+
- cards → `https://app.deepvista.ai/project/<slug>/vistabase/<id>`
|
|
121
|
+
- skills → `https://app.deepvista.ai/project/<slug>/skills/<id>`
|
|
122
122
|
3. **Use `--content-file` for non-trivial content.** Never paste large content,
|
|
123
123
|
files, or URLs inline — pass `--content-file <absolute-path>` (or `--content-file -`
|
|
124
124
|
to read from stdin) so the exact bytes are stored.
|
|
@@ -30,7 +30,7 @@ flag reference.
|
|
|
30
30
|
containing newlines. Never paste large content inline. Pass `-` to read from stdin.
|
|
31
31
|
- **Images/binaries:** notes hold text only — upload with `deepvista card upload <path>`,
|
|
32
32
|
then embed the returned `gs://…` URL in the note body via `` (DV-1650).
|
|
33
|
-
- Show the app URL after any write: `https://app.deepvista.ai/notes/<id>`
|
|
33
|
+
- Show the app URL after any write: `https://app.deepvista.ai/project/<slug>/notes/<id>`
|
|
34
34
|
- Use `--dry-run` to preview without writing.
|
|
35
35
|
|
|
36
36
|
## Non-obvious commands
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Every DeepVista entity is scoped to a **project**. The CLI resolves each request
|
|
4
4
|
to a *working project* and sends it as the `X-Project-Id` header; emitted web
|
|
5
|
-
links are prefixed with `/project
|
|
5
|
+
links are prefixed with `/project/<slug>/…` (the project slug) so they resolve in the app. When no
|
|
6
6
|
working project is set the backend falls back to your default project (unchanged
|
|
7
7
|
legacy behavior).
|
|
8
8
|
|
|
@@ -31,7 +31,7 @@ Key global flags: `--profile NAME`, `--project ID`, `--format json|table`, `--ve
|
|
|
31
31
|
|
|
32
32
|
Every entity (card, note, chat, skill, …) lives inside a **project**. The CLI
|
|
33
33
|
scopes requests to a *working project* and sends it as the `X-Project-Id`
|
|
34
|
-
header; web links it emits are prefixed `/project
|
|
34
|
+
header; web links it emits are prefixed `/project/<slug>/…` to match the app (the project slug, looked up from the working or default project).
|
|
35
35
|
|
|
36
36
|
```bash
|
|
37
37
|
deepvista project list # projects you own or that are shared with you
|
|
@@ -14,7 +14,7 @@ Run `deepvista skill --help` or `deepvista skill <cmd> --help` for full flag ref
|
|
|
14
14
|
|
|
15
15
|
Read-only: `list`, `get`, `sync --dry-run`, `load`.
|
|
16
16
|
|
|
17
|
-
Show the app URL after writes: `https://app.deepvista.ai/skills/<id>`
|
|
17
|
+
Show the app URL after writes: `https://app.deepvista.ai/project/<slug>/skills/<id>`
|
|
18
18
|
|
|
19
19
|
## Executing a workflow skill — required sequence
|
|
20
20
|
|
|
@@ -103,7 +103,7 @@ After creation, verify with:
|
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
105
|
deepvista card get <new_card_id>
|
|
106
|
-
# https://app.deepvista.ai/vistabase/<new_card_id>
|
|
106
|
+
# https://app.deepvista.ai/project/<slug>/vistabase/<new_card_id>
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
Do **not** use `skill create-from-note` for this — that command runs the
|
|
@@ -29,7 +29,7 @@ Use [notes.md](notes.md) for note-only ergonomics.
|
|
|
29
29
|
> Use `--dry-run` to preview.
|
|
30
30
|
|
|
31
31
|
- **Always use `--content-file <absolute-path>`** for large content — never inline.
|
|
32
|
-
- Show the app URL after any write: `https://app.deepvista.ai/vistabase/<id>`
|
|
32
|
+
- Show the app URL after any write: `https://app.deepvista.ai/project/<slug>/vistabase/<id>`
|
|
33
33
|
- Read-only commands (`list`, `get`, `history`, `diff`, `+search`, `+similar`, `+search-content`) are safe
|
|
34
34
|
to run without confirmation.
|
|
35
35
|
|
|
@@ -140,7 +140,7 @@ deepvista agents sync --type claude-code
|
|
|
140
140
|
|
|
141
141
|
Or add manually — see the **Stop hook** section below.
|
|
142
142
|
|
|
143
|
-
Show: `https://app.deepvista.ai/vistabase/<SKILL_ID>`
|
|
143
|
+
Show: `https://app.deepvista.ai/project/<slug>/vistabase/<SKILL_ID>`
|
|
144
144
|
|
|
145
145
|
---
|
|
146
146
|
|
|
@@ -251,7 +251,7 @@ rm -f ~/.config/deepvista/current-workflow-session.json
|
|
|
251
251
|
rm -f /tmp/dv-workflow-*.md
|
|
252
252
|
```
|
|
253
253
|
|
|
254
|
-
Show: `https://app.deepvista.ai/vistabase/<SKILL_ID>`
|
|
254
|
+
Show: `https://app.deepvista.ai/project/<slug>/vistabase/<SKILL_ID>`
|
|
255
255
|
|
|
256
256
|
---
|
|
257
257
|
|
|
@@ -20,7 +20,7 @@ import deepvista_cli.config as cfg
|
|
|
20
20
|
from deepvista_cli.client.http import DeepVistaClient
|
|
21
21
|
from deepvista_cli.config import CLIConfig
|
|
22
22
|
from deepvista_cli.main import cli
|
|
23
|
-
from deepvista_cli.output.formatter import add_urls_to_data, generate_url
|
|
23
|
+
from deepvista_cli.output.formatter import add_urls_to_data, generate_url, set_project_ref_resolver
|
|
24
24
|
|
|
25
25
|
# ---------------------------------------------------------------------------
|
|
26
26
|
# Fixtures / stubs
|
|
@@ -167,6 +167,68 @@ def test_format_output_links_are_project_scoped() -> None:
|
|
|
167
167
|
assert out["cards"][0]["url"] == "https://app.deepvista.ai/project/p1/notes/c1"
|
|
168
168
|
|
|
169
169
|
|
|
170
|
+
def test_generate_url_never_prefixes_project_entities() -> None:
|
|
171
|
+
url = generate_url("p1", "project", "https://app.deepvista.ai", project_id="slug-1")
|
|
172
|
+
assert url == "https://app.deepvista.ai/project/p1"
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
def test_link_uses_resolved_project_slug() -> None:
|
|
176
|
+
set_project_ref_resolver(lambda project_id: "myslug")
|
|
177
|
+
out = add_urls_to_data({"id": "n1", "type": "note"}, base_url="https://app.deepvista.ai", project_id=None)
|
|
178
|
+
assert out["url"] == "https://app.deepvista.ai/project/myslug/notes/n1"
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
def test_link_falls_back_when_resolver_returns_nothing() -> None:
|
|
182
|
+
set_project_ref_resolver(lambda project_id: None)
|
|
183
|
+
out = add_urls_to_data({"id": "n1", "type": "note"}, base_url="https://app.deepvista.ai", project_id="p1")
|
|
184
|
+
assert out["url"] == "https://app.deepvista.ai/project/p1/notes/n1"
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
def test_cli_links_carry_default_project_slug(isolated_config: Path, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
188
|
+
stub = _StubCtxClient()
|
|
189
|
+
stub.queue("/create_context_card", {"card": {"id": "n1", "type": "note", "title": "t"}})
|
|
190
|
+
stub.queue("/projects/me", {"id": "00000000-0000-0000-0000-000000000001", "slug": "abc123"})
|
|
191
|
+
_install_stub_client(monkeypatch, stub)
|
|
192
|
+
|
|
193
|
+
result = CliRunner().invoke(cli, ["notes", "create", "--title", "t", "--content", "x"])
|
|
194
|
+
assert result.exit_code == 0, result.output
|
|
195
|
+
assert json.loads(result.output)["card"]["url"].endswith("/project/abc123/notes/n1")
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
def test_cli_links_resolve_working_project_uuid_to_slug(isolated_config: Path, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
199
|
+
uuid = "00000000-0000-0000-0000-000000000002"
|
|
200
|
+
stub = _StubCtxClient()
|
|
201
|
+
stub.queue("/create_context_card", {"card": {"id": "n1", "type": "note", "title": "t"}})
|
|
202
|
+
stub.queue("/projects/me", {"id": uuid, "slug": "work01"})
|
|
203
|
+
_install_stub_client(monkeypatch, stub)
|
|
204
|
+
|
|
205
|
+
result = CliRunner().invoke(cli, ["--project", uuid, "notes", "create", "--title", "t", "--content", "x"])
|
|
206
|
+
assert result.exit_code == 0, result.output
|
|
207
|
+
assert json.loads(result.output)["card"]["url"].endswith("/project/work01/notes/n1")
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
def test_cli_links_keep_slug_without_lookup(isolated_config: Path, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
211
|
+
stub = _StubCtxClient()
|
|
212
|
+
stub.queue("/create_context_card", {"card": {"id": "n1", "type": "note", "title": "t"}})
|
|
213
|
+
_install_stub_client(monkeypatch, stub)
|
|
214
|
+
|
|
215
|
+
result = CliRunner().invoke(cli, ["--project", "work01", "notes", "create", "--title", "t", "--content", "x"])
|
|
216
|
+
assert result.exit_code == 0, result.output
|
|
217
|
+
assert json.loads(result.output)["card"]["url"].endswith("/project/work01/notes/n1")
|
|
218
|
+
assert all(path != "/projects/me" for _, path, _ in stub.calls)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
def test_cli_links_survive_failed_slug_lookup(isolated_config: Path, monkeypatch: pytest.MonkeyPatch) -> None:
|
|
222
|
+
stub = _StubCtxClient()
|
|
223
|
+
stub.queue("/create_context_card", {"card": {"id": "n1", "type": "note", "title": "t"}})
|
|
224
|
+
_install_stub_client(monkeypatch, stub)
|
|
225
|
+
|
|
226
|
+
result = CliRunner().invoke(cli, ["notes", "create", "--title", "t", "--content", "x"])
|
|
227
|
+
assert result.exit_code == 0, result.output
|
|
228
|
+
assert json.loads(result.output)["card"]["url"].endswith("/notes/n1")
|
|
229
|
+
assert "/project/" not in json.loads(result.output)["card"]["url"]
|
|
230
|
+
|
|
231
|
+
|
|
170
232
|
# ---------------------------------------------------------------------------
|
|
171
233
|
# 4. `deepvista project` command group
|
|
172
234
|
# ---------------------------------------------------------------------------
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
version = 1
|
|
2
|
-
revision =
|
|
2
|
+
revision = 5
|
|
3
3
|
requires-python = ">=3.12"
|
|
4
4
|
|
|
5
5
|
[[package]]
|
|
@@ -17,11 +17,11 @@ wheels = [
|
|
|
17
17
|
|
|
18
18
|
[[package]]
|
|
19
19
|
name = "certifi"
|
|
20
|
-
version = "2026.
|
|
20
|
+
version = "2026.11.20"
|
|
21
21
|
source = { registry = "https://pypi.org/simple" }
|
|
22
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
22
|
+
sdist = { url = "https://files.pythonhosted.org/packages/51/33/4cd27639502f010084bcef7a2036391dd637439901341ce1a530f36f6e51/certifi-2026.11.20.tar.gz", hash = "sha256:af1cb240a8133f105aa52684a3a3258339d7f2fd0bd4e2812698ff5cf5588c4e", size = 128901, upload-time = "2026-11-20T23:37:49.522Z" }
|
|
23
23
|
wheels = [
|
|
24
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
24
|
+
{ url = "https://files.pythonhosted.org/packages/6d/39/5eec3296860b94ac20bb8ed807725b88f6adfab3f343df592afd975f5f86/certifi-2026.11.20-py3-none-any.whl", hash = "sha256:7422df25243767b9877031a2248cb14d09ddac9beee846f4cef3d5c9191d488f", size = 127913, upload-time = "2026-11-20T23:37:48.117Z" },
|
|
25
25
|
]
|
|
26
26
|
|
|
27
27
|
[[package]]
|
|
@@ -56,7 +56,7 @@ wheels = [
|
|
|
56
56
|
|
|
57
57
|
[[package]]
|
|
58
58
|
name = "deepvista-cli"
|
|
59
|
-
version = "4.5.
|
|
59
|
+
version = "4.5.1"
|
|
60
60
|
source = { editable = "." }
|
|
61
61
|
dependencies = [
|
|
62
62
|
{ name = "click" },
|
|
@@ -93,20 +93,20 @@ dev = [
|
|
|
93
93
|
|
|
94
94
|
[[package]]
|
|
95
95
|
name = "distlib"
|
|
96
|
-
version = "0.4.
|
|
96
|
+
version = "0.4.4"
|
|
97
97
|
source = { registry = "https://pypi.org/simple" }
|
|
98
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
98
|
+
sdist = { url = "https://files.pythonhosted.org/packages/68/bc/d36966de7304047a1001a7559fbf266c464bb5d8cc85464536ef8c9bcc32/distlib-0.4.4.tar.gz", hash = "sha256:ca4175b4ac7f71223cc30ed7248c45d2b38c2439d8ee6e498ab67ed63cf3508d", size = 621304, upload-time = "2026-10-16T13:56:34.203Z" }
|
|
99
99
|
wheels = [
|
|
100
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
100
|
+
{ url = "https://files.pythonhosted.org/packages/c1/2b/238f02a4927fa2e27aa995371d240a468b52e42eae44a678434aff736b38/distlib-0.4.4-py2.py3-none-any.whl", hash = "sha256:cf09d55b1e85a89576b036aeb71550bfd68320f3f21761ca329eadadad918638", size = 472099, upload-time = "2026-10-16T13:56:32.053Z" },
|
|
101
101
|
]
|
|
102
102
|
|
|
103
103
|
[[package]]
|
|
104
104
|
name = "filelock"
|
|
105
|
-
version = "3.
|
|
105
|
+
version = "4.3.0"
|
|
106
106
|
source = { registry = "https://pypi.org/simple" }
|
|
107
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
107
|
+
sdist = { url = "https://files.pythonhosted.org/packages/6c/bf/a895b0b8e83d0a64d134f658e393e83998abfc22bbb8b58181ce55268706/filelock-4.3.0.tar.gz", hash = "sha256:143407310acf479e82d88068e3b9a6486f45fb410c0ed8729fe7359eaabeb6f1", size = 742199, upload-time = "2026-11-22T02:15:03.187Z" }
|
|
108
108
|
wheels = [
|
|
109
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
109
|
+
{ url = "https://files.pythonhosted.org/packages/68/66/870b527908a06c7ec0e91239bd2c4d0bb22921efd4f915428b4e47d461a6/filelock-4.3.0-py3-none-any.whl", hash = "sha256:f933f39f7e01249a4a49b9abab30edc6d4b874624c3de5dd0b0d137aa8adb979", size = 244553, upload-time = "2026-11-22T02:15:01.667Z" },
|
|
110
110
|
]
|
|
111
111
|
|
|
112
112
|
[[package]]
|
|
@@ -205,11 +205,11 @@ wheels = [
|
|
|
205
205
|
|
|
206
206
|
[[package]]
|
|
207
207
|
name = "packaging"
|
|
208
|
-
version = "26.
|
|
208
|
+
version = "26.3"
|
|
209
209
|
source = { registry = "https://pypi.org/simple" }
|
|
210
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
210
|
+
sdist = { url = "https://files.pythonhosted.org/packages/7d/fa/3944b40b07da9ce895c0e6303a5ab7d53da063554f534556b134a54d6093/packaging-26.3.tar.gz", hash = "sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79", size = 313412, upload-time = "2026-08-04T18:15:28.737Z" }
|
|
211
211
|
wheels = [
|
|
212
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
212
|
+
{ url = "https://files.pythonhosted.org/packages/63/34/ba1c580383c9eada3711951fef0795c80b829a078d72188184bcab9dd527/packaging-26.3-py3-none-any.whl", hash = "sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c", size = 129956, upload-time = "2026-08-04T18:15:27.159Z" },
|
|
213
213
|
]
|
|
214
214
|
|
|
215
215
|
[[package]]
|
|
@@ -314,15 +314,14 @@ wheels = [
|
|
|
314
314
|
|
|
315
315
|
[[package]]
|
|
316
316
|
name = "python-discovery"
|
|
317
|
-
version = "1.
|
|
317
|
+
version = "1.9.6"
|
|
318
318
|
source = { registry = "https://pypi.org/simple" }
|
|
319
319
|
dependencies = [
|
|
320
320
|
{ name = "filelock" },
|
|
321
|
-
{ name = "platformdirs" },
|
|
322
321
|
]
|
|
323
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
322
|
+
sdist = { url = "https://files.pythonhosted.org/packages/cb/4e/20a9c45c4bb839e6e03e5971a546c623d12f950aa496cf344dc8e9f07167/python_discovery-1.9.6.tar.gz", hash = "sha256:383aa67858d73a9585a843a37a4383c6be98e4d86a981a031328e393a6eb2632", size = 147742, upload-time = "2026-11-18T00:32:26.272Z" }
|
|
324
323
|
wheels = [
|
|
325
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
324
|
+
{ url = "https://files.pythonhosted.org/packages/c4/34/65e66e8c384dc08f0e58c474587c05c4bc952f60facd8a15e80748118bd1/python_discovery-1.9.6-py3-none-any.whl", hash = "sha256:93b10b90363d4151964cdeee2ec6601f3041b17fc2b253a1c3da7d6e7ddd8337", size = 98453, upload-time = "2026-11-18T00:32:24.849Z" },
|
|
326
325
|
]
|
|
327
326
|
|
|
328
327
|
[[package]]
|
|
@@ -420,15 +419,16 @@ wheels = [
|
|
|
420
419
|
|
|
421
420
|
[[package]]
|
|
422
421
|
name = "virtualenv"
|
|
423
|
-
version = "21.
|
|
422
|
+
version = "21.15.12"
|
|
424
423
|
source = { registry = "https://pypi.org/simple" }
|
|
425
424
|
dependencies = [
|
|
426
425
|
{ name = "distlib" },
|
|
427
426
|
{ name = "filelock" },
|
|
427
|
+
{ name = "packaging" },
|
|
428
428
|
{ name = "platformdirs" },
|
|
429
429
|
{ name = "python-discovery" },
|
|
430
430
|
]
|
|
431
|
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
431
|
+
sdist = { url = "https://files.pythonhosted.org/packages/e0/c3/7f507928cfbe7de639fde0118190ab17dcb8a6da83f921032859a922a5ec/virtualenv-21.15.12.tar.gz", hash = "sha256:a3976f886eb6019fcb1d137b223d160adaeff524ab0ad785c729a43c31cc158c", size = 5734304, upload-time = "2026-11-21T22:11:59.205Z" }
|
|
432
432
|
wheels = [
|
|
433
|
-
{ url = "https://files.pythonhosted.org/packages/
|
|
433
|
+
{ url = "https://files.pythonhosted.org/packages/46/5a/60bf6a5fffb842a8da051e9d7372b5bf2aa1e8630df9bf5ac50ad9f0d1d8/virtualenv-21.15.12-py3-none-any.whl", hash = "sha256:bbbf764388a18dee8c3532c77af7a29680cd8121911d6dcb3484335d76547323", size = 5750413, upload-time = "2026-11-21T22:11:57.01Z" },
|
|
434
434
|
]
|
|
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
|
|
File without changes
|
|
File without changes
|
{deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/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-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/scripts/deepvista-agent-sync.sh
RENAMED
|
File without changes
|
{deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/scripts/deepvista-session-end.sh
RENAMED
|
File without changes
|
{deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/scripts/deepvista-session-start.sh
RENAMED
|
File without changes
|
{deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/plugins/claude-code/scripts/deepvista-session-turn.sh
RENAMED
|
File without changes
|
{deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/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
|
{deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/skill-analyze-notes.md
RENAMED
|
File without changes
|
{deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/skill-create-from-note.md
RENAMED
|
File without changes
|
{deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/skills/deepvista/reference/skill-import-files.md
RENAMED
|
File without changes
|
{deepvista_cli-4.5.0 → deepvista_cli-4.5.1}/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
|
|
File without changes
|
|
File without changes
|