deepvista-cli 4.2.0__tar.gz → 4.3.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.
Files changed (95) hide show
  1. deepvista_cli-4.3.0/.release-please-manifest.json +3 -0
  2. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/CHANGELOG.md +20 -0
  3. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/PKG-INFO +1 -1
  4. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/__init__.py +15 -4
  5. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/project.py +18 -2
  6. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/.claude-plugin/plugin.json +1 -1
  7. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/pyproject.toml +1 -1
  8. deepvista_cli-4.3.0/scripts/quickstart.sh +96 -0
  9. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/SKILL.md +1 -1
  10. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/notes.md +2 -0
  11. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/vistabase-card.md +6 -1
  12. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/tests/test_project_commands.py +18 -0
  13. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/uv.lock +1 -1
  14. deepvista_cli-4.2.0/.release-please-manifest.json +0 -3
  15. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/.claude-plugin/marketplace.json +0 -0
  16. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/.github/workflows/ci.yml +0 -0
  17. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/.github/workflows/publish.yml +0 -0
  18. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/.github/workflows/release-please.yml +0 -0
  19. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/.gitignore +0 -0
  20. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/.pre-commit-config.yaml +0 -0
  21. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/CLAUDE.md +0 -0
  22. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/CONTRIBUTING.md +0 -0
  23. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/LICENSE +0 -0
  24. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/README.md +0 -0
  25. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/__init__.py +0 -0
  26. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/auth/__init__.py +0 -0
  27. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/auth/callback_server.py +0 -0
  28. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/auth/login.py +0 -0
  29. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/auth/tokens.py +0 -0
  30. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/client/__init__.py +0 -0
  31. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/client/http.py +0 -0
  32. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/client/origin.py +0 -0
  33. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/agents.py +0 -0
  34. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/auth.py +0 -0
  35. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/card.py +0 -0
  36. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/chat.py +0 -0
  37. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/config.py +0 -0
  38. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/notes.py +0 -0
  39. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/schedule.py +0 -0
  40. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/session.py +0 -0
  41. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/skill.py +0 -0
  42. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/tasks.py +0 -0
  43. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/commands/upgrade.py +0 -0
  44. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/config.py +0 -0
  45. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/main.py +0 -0
  46. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/output/__init__.py +0 -0
  47. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/output/formatter.py +0 -0
  48. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/resources/__init__.py +0 -0
  49. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/resources/workflow_host_runtime.md +0 -0
  50. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/session_note.py +0 -0
  51. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/skill_catalog.py +0 -0
  52. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/utils.py +0 -0
  53. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/deepvista_cli/workflow_doc.py +0 -0
  54. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/docs/assets/deepvista-banner.png +0 -0
  55. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/install.ps1 +0 -0
  56. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/install.sh +0 -0
  57. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/README.md +0 -0
  58. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/README.md +0 -0
  59. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/commands/deepvista.md +0 -0
  60. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/commands/refresh-skills.md +0 -0
  61. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/hooks/hooks.json +0 -0
  62. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/scripts/deepvista-agent-sync.sh +0 -0
  63. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/scripts/deepvista-session-end.sh +0 -0
  64. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/scripts/deepvista-session-start.sh +0 -0
  65. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/scripts/deepvista-session-turn.sh +0 -0
  66. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/scripts/deepvista-skill-url.py +0 -0
  67. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/scripts/deepvista-sync.sh +0 -0
  68. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/skills/.gitignore +0 -0
  69. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/plugins/claude-code/skills/install-deepvista-cli/SKILL.md +0 -0
  70. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/release-please-config.json +0 -0
  71. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/scripts/check_plugin_version.py +0 -0
  72. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/chat.md +0 -0
  73. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/openclaw.md +0 -0
  74. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/project.md +0 -0
  75. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/session.md +0 -0
  76. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/shared.md +0 -0
  77. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/skill-analyze-notes.md +0 -0
  78. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/skill-create-from-note.md +0 -0
  79. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/skill-import-files.md +0 -0
  80. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/skill-research-to-skill.md +0 -0
  81. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/skill.md +0 -0
  82. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/deepvista/reference/tasks.md +0 -0
  83. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/skills/dv-workflow/SKILL.md +0 -0
  84. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/tests/__init__.py +0 -0
  85. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/tests/test_agent_id_tagging.py +0 -0
  86. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/tests/test_card_comment_commands.py +0 -0
  87. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/tests/test_entry_points.py +0 -0
  88. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/tests/test_http_client_retry.py +0 -0
  89. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/tests/test_schedule_commands.py +0 -0
  90. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/tests/test_session_note_format.py +0 -0
  91. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/tests/test_skill_catalog.py +0 -0
  92. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/tests/test_skill_commands.py +0 -0
  93. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/tests/test_tasks_commands.py +0 -0
  94. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/tests/test_workflow_doc_phases.py +0 -0
  95. {deepvista_cli-4.2.0 → deepvista_cli-4.3.0}/uninstall.sh +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "4.3.0"
3
+ }
@@ -46,6 +46,26 @@ 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.3.0](https://github.com/DeepVista-AI/deepvista-cli/compare/v4.2.1...v4.3.0) (2026-07-24)
50
+
51
+
52
+ ### Features
53
+
54
+ * **scripts:** add quickstart script for Claude Code + DeepVista setup ([#216](https://github.com/DeepVista-AI/deepvista-cli/issues/216)) ([a107233](https://github.com/DeepVista-AI/deepvista-cli/commit/a107233d5334750bf7b4f9d66fbfe022ca3836c7))
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * **scripts:** install DeepVista Claude Code plugin in quickstart ([#218](https://github.com/DeepVista-AI/deepvista-cli/issues/218)) ([7d84205](https://github.com/DeepVista-AI/deepvista-cli/commit/7d8420583adb684b377896e22d422aba591a929b))
60
+ * **scripts:** surface deepvista CLI errors in quickstart ([#219](https://github.com/DeepVista-AI/deepvista-cli/issues/219)) ([4f2d4e3](https://github.com/DeepVista-AI/deepvista-cli/commit/4f2d4e38a72020b105e90a6bf3e5d9d3dc5904ba))
61
+
62
+ ## [4.2.1](https://github.com/DeepVista-AI/deepvista-cli/compare/v4.2.0...v4.2.1) (2026-07-22)
63
+
64
+
65
+ ### Documentation
66
+
67
+ * **DV-1650:** document card upload + note image embed ([#214](https://github.com/DeepVista-AI/deepvista-cli/issues/214)) ([b754b99](https://github.com/DeepVista-AI/deepvista-cli/commit/b754b99d3a5697ba7803aa162fd56d03196cee00))
68
+
49
69
  ## [4.2.0](https://github.com/DeepVista-AI/deepvista-cli/compare/v4.1.0...v4.2.0) (2026-07-20)
50
70
 
51
71
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deepvista-cli
3
- Version: 4.2.0
3
+ Version: 4.3.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
@@ -21,10 +21,15 @@ def resolve_project_ref(ctx: click.Context, ref: str) -> str:
21
21
  """Resolve a project reference — UUID or slug (DV-1564) — to the canonical UUID.
22
22
 
23
23
  UUIDs pass through without a lookup. Anything else is treated as a slug
24
- and matched against ``GET /projects``; exits with a validation error when
25
- no accessible project carries it. Canonicalizing to the UUID keeps every
26
- project-keyed artifact (persisted profile config, machine cache files,
27
- run locks) stable regardless of how the user spelled the project.
24
+ and matched against ``GET /projects`` first; if that list doesn't happen
25
+ to echo a matching ``slug`` field, fall back to asking the backend to
26
+ resolve it directly via the ``X-Project-Id`` header — the same path
27
+ other endpoints (e.g. ``/get_context_cards``) already use to accept a
28
+ slug that isn't present in the ``/projects`` listing. Exits with a
29
+ validation error only if both resolution paths fail. Canonicalizing to
30
+ the UUID keeps every project-keyed artifact (persisted profile config,
31
+ machine cache files, run locks) stable regardless of how the user
32
+ spelled the project.
28
33
  """
29
34
  if looks_like_uuid(ref):
30
35
  return ref
@@ -33,6 +38,12 @@ def resolve_project_ref(ctx: click.Context, ref: str) -> str:
33
38
  for project in projects:
34
39
  if project.get("slug") == ref or project.get("id") == ref:
35
40
  return str(project["id"])
41
+ try:
42
+ data = ctx.obj._client.get("/projects/me", extra_headers={"X-Project-Id": ref})
43
+ except SystemExit:
44
+ data = None
45
+ if isinstance(data, dict) and data.get("id"):
46
+ return str(data["id"])
36
47
  output_error(
37
48
  3,
38
49
  f"Project '{ref}' not found or not accessible",
@@ -57,6 +57,22 @@ def _match_project(projects: list[dict], ref: str) -> dict | None:
57
57
  return next((p for p in projects if p.get("id") == ref or (p.get("slug") and p.get("slug") == ref)), None)
58
58
 
59
59
 
60
+ def _resolve_via_backend(ctx: click.Context, ref: str) -> dict | None:
61
+ """Fall back to asking the backend to resolve `ref` directly.
62
+
63
+ `_match_project` only succeeds when `GET /projects` happens to echo a
64
+ `slug` field matching `ref`. Other endpoints (e.g. `/get_context_cards`)
65
+ already resolve a project slug server-side via the `X-Project-Id` header
66
+ without requiring it to appear in that list. Retry through that same
67
+ header-based path before declaring the project not found.
68
+ """
69
+ try:
70
+ data = _client(ctx).get("/projects/me", extra_headers={"X-Project-Id": ref})
71
+ except SystemExit:
72
+ return None
73
+ return data if isinstance(data, dict) and data.get("id") else None
74
+
75
+
60
76
  def _project_not_found(ref: str) -> None:
61
77
  output_error(
62
78
  EXIT_VALIDATION_ERROR,
@@ -161,7 +177,7 @@ def project_show(ctx: click.Context, project_ref: str | None, full: bool) -> Non
161
177
  if project_ref:
162
178
  # There is no GET /projects/{id}; resolve the ref (id or slug, DV-1564)
163
179
  # against the projects list, which returns the full project object.
164
- match = _match_project(_projects(ctx), project_ref)
180
+ match = _match_project(_projects(ctx), project_ref) or _resolve_via_backend(ctx, project_ref)
165
181
  if match is None:
166
182
  _project_not_found(project_ref)
167
183
  return
@@ -183,7 +199,7 @@ def project_use(ctx: click.Context, project_ref: str) -> None:
183
199
  what gets persisted in the active profile. This is client-side scoping
184
200
  only — it does not change the backend's per-user default project.
185
201
  """
186
- match = _match_project(_projects(ctx), project_ref)
202
+ match = _match_project(_projects(ctx), project_ref) or _resolve_via_backend(ctx, project_ref)
187
203
  if match is None:
188
204
  _project_not_found(project_ref)
189
205
  return
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepvista",
3
- "version": "4.2.0",
3
+ "version": "4.3.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 = "4.2.0"
3
+ version = "4.3.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" }
@@ -0,0 +1,96 @@
1
+ #!/usr/bin/env bash
2
+ # quickstart.sh — one-shot setup + launch for a DeepVista project.
3
+ #
4
+ # 1. Installs Claude Code (the `claude` CLI) if it's missing.
5
+ # 2. Runs `claude auth login` if Claude Code isn't authenticated yet.
6
+ # 3. Installs + authenticates the `deepvista` CLI if needed, then starts the
7
+ # task daemon (`deepvista tasks run`) scoped to the given project.
8
+ #
9
+ # Usage:
10
+ # scripts/quickstart.sh <project-slug> [extra `deepvista tasks run` args...]
11
+ #
12
+ # Example:
13
+ # scripts/quickstart.sh acme-corp
14
+ # scripts/quickstart.sh acme-corp --run-once
15
+
16
+ set -euo pipefail
17
+
18
+ SLUG="${1:-}"
19
+ if [ -z "$SLUG" ]; then
20
+ echo "Usage: $0 <project-slug> [extra 'deepvista tasks run' args...]" >&2
21
+ exit 1
22
+ fi
23
+ shift
24
+
25
+ log() { echo ">> $*" >&2; }
26
+
27
+ # --- 1. Claude Code CLI -----------------------------------------------------
28
+
29
+ if ! command -v claude >/dev/null 2>&1; then
30
+ log "Claude Code not found — installing..."
31
+ if command -v npm >/dev/null 2>&1; then
32
+ npm install -g @anthropic-ai/claude-code
33
+ else
34
+ echo "npm is required to install Claude Code. Install Node.js/npm and re-run." >&2
35
+ exit 1
36
+ fi
37
+ else
38
+ log "Claude Code already installed ($(claude --version))."
39
+ fi
40
+
41
+ # --- 2. Claude Code auth -----------------------------------------------------
42
+
43
+ if claude auth status --json >/dev/null 2>&1; then
44
+ log "Claude Code already authenticated."
45
+ else
46
+ log "Claude Code not authenticated — running 'claude auth login'..."
47
+ claude auth login
48
+ fi
49
+
50
+ # --- 3. DeepVista CLI + server ----------------------------------------------
51
+
52
+ if ! command -v deepvista >/dev/null 2>&1; then
53
+ log "DeepVista CLI not found — installing..."
54
+ if command -v uv >/dev/null 2>&1; then
55
+ uv tool install deepvista-cli
56
+ elif command -v pip >/dev/null 2>&1; then
57
+ pip install deepvista-cli
58
+ else
59
+ echo "Need 'uv' or 'pip' to install deepvista-cli. Install one and re-run." >&2
60
+ exit 1
61
+ fi
62
+ else
63
+ log "DeepVista CLI already installed ($(deepvista --version 2>/dev/null || echo unknown))."
64
+ fi
65
+
66
+ if ! deepvista auth status >/dev/null 2>&1; then
67
+ log "DeepVista not authenticated — running 'deepvista auth login'..."
68
+ deepvista auth login
69
+ else
70
+ log "DeepVista already authenticated."
71
+ fi
72
+
73
+ # --- 4. DeepVista Claude Code plugin (provides the /deepvista command) ------
74
+ # `deepvista tasks run` executes each task via `claude -p "/deepvista <prompt>"`.
75
+ # That slash command only exists once this plugin is installed, so a fresh
76
+ # machine needs it before the task daemon can run anything.
77
+
78
+ if claude plugin list --json 2>/dev/null | grep -q '"name"[[:space:]]*:[[:space:]]*"deepvista"'; then
79
+ log "DeepVista Claude Code plugin already installed."
80
+ else
81
+ log "Installing DeepVista Claude Code plugin (provides /deepvista)..."
82
+ claude plugin marketplace add DeepVista-AI/deepvista-cli
83
+ claude plugin install deepvista@deepvista-ai
84
+ fi
85
+
86
+ PROJECT_USE_OUTPUT="$(deepvista --format json project use "$SLUG")" || {
87
+ echo "Failed to resolve project '$SLUG':" >&2
88
+ echo "$PROJECT_USE_OUTPUT" >&2
89
+ echo "Run 'deepvista project list' to see available projects." >&2
90
+ exit 1
91
+ }
92
+ PROJECT_ID="$(echo "$PROJECT_USE_OUTPUT" | python3 -c 'import json,sys; print(json.load(sys.stdin)["working_project"])')"
93
+ log "Resolved project slug '$SLUG' -> id $PROJECT_ID"
94
+
95
+ log "Starting DeepVista task daemon for project $PROJECT_ID..."
96
+ exec deepvista tasks run --project "$PROJECT_ID" "$@"
@@ -47,7 +47,7 @@ other reference file assumes you know it.
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` |
50
- | `deepvista card` (alias: `vistabase`) | creating / searching / pinning / archiving / grepping knowledge base cards across any type (person, topic, file, note, todo, etc.), version history (`history` / `diff` / `restore`), and entity re-indexing (`index`) | [vistabase-card.md](reference/vistabase-card.md) |
50
+ | `deepvista card` (alias: `vistabase`) | creating / searching / pinning / archiving / grepping knowledge base cards across any type (person, topic, file, note, todo, etc.), **uploading an image / video / binary file** (`card upload`), version history (`history` / `diff` / `restore`), and entity re-indexing (`index`) | [vistabase-card.md](reference/vistabase-card.md) |
51
51
  | `deepvista chat` | sending a message to the AI agent, listing / deleting chat sessions, continuing a conversation | [chat.md](reference/chat.md) |
52
52
  | `deepvista skill` | listing, running, **creating new skills**, or **catalog-syncing** (`sync` / `load`) structured Skill workflows | [skill.md](reference/skill.md) |
53
53
  | `deepvista tasks` | running this **Machine**'s dispatched work: `tasks run` polls for tasks (web-chat prompts run headless via `claude -p`, plus queued CLI commands / workflow runs) and `tasks list` shows them | [tasks.md](reference/tasks.md) |
@@ -28,6 +28,8 @@ flag reference.
28
28
 
29
29
  - **Always use `--content-file <absolute-path>`** for anything more than ~200 chars or
30
30
  containing newlines. Never paste large content inline. Pass `-` to read from stdin.
31
+ - **Images/binaries:** notes hold text only — upload with `deepvista card upload <path>`,
32
+ then embed the returned `gs://…` URL in the note body via `![alt](gs://…)` (DV-1650).
31
33
  - Show the app URL after any write: `https://app.deepvista.ai/notes/<id>`
32
34
  - Use `--dry-run` to preview without writing.
33
35
 
@@ -17,7 +17,7 @@ Use [notes.md](notes.md) for note-only ergonomics.
17
17
 
18
18
  ## Commands
19
19
 
20
- `list` · `get` · `create` · `update` · `edit` · `delete`
20
+ `list` · `get` · `create` · `update` · `edit` · `delete` · `upload`
21
21
  `index` · `history` · `diff` · `restore`
22
22
  `comment list|add|edit|delete`
23
23
  `+search` · `+similar` · `+search-content` · `+pin` · `+archive`
@@ -47,6 +47,11 @@ full body via the search_vector + embedding hybrid. Omit the query on
47
47
  regex/exact-match mode exists anymore — for a boolean OR use `websearch_to_tsquery`
48
48
  syntax, e.g. `"TODO OR FIXME"`).
49
49
 
50
+ **`upload <path>`** — the ONLY way to put an image/video/binary into DeepVista: it
51
+ uploads the file and mints a `type=file` card (`card create --content-file` reads UTF-8
52
+ text only and errors on binaries). To show the image in a note, embed the returned
53
+ `gs://…` URL with plain markdown: `![alt](gs://…)` (DV-1650).
54
+
50
55
  **`index`** — queues entity extraction + embedding refresh on unprocessed cards
51
56
  (`--type note` by default). Run after bulk imports or a long offline period.
52
57
 
@@ -231,6 +231,8 @@ def test_project_use_persists_and_validates(isolated_config: Path, monkeypatch:
231
231
  def test_project_use_rejects_inaccessible_id(isolated_config: Path, monkeypatch: pytest.MonkeyPatch) -> None:
232
232
  stub = _StubCtxClient()
233
233
  stub.queue("/projects", [{"id": "p1", "name": "Alpha"}])
234
+ # Backend fallback (DV-1564 follow-up) is also consulted and also rejects.
235
+ stub.queue("/projects/me", {})
234
236
  _install_stub_client(monkeypatch, stub)
235
237
 
236
238
  result = CliRunner().invoke(cli, ["project", "use", "nope"])
@@ -238,6 +240,22 @@ def test_project_use_rejects_inaccessible_id(isolated_config: Path, monkeypatch:
238
240
  assert "project_id" not in cfg.get_profile("default")
239
241
 
240
242
 
243
+ def test_project_use_falls_back_to_backend_for_slug_not_in_list(
244
+ isolated_config: Path, monkeypatch: pytest.MonkeyPatch
245
+ ) -> None:
246
+ """`GET /projects` may not echo every slug's `slug` field, but the backend
247
+ can still resolve it directly via the `X-Project-Id` header (mirrors how
248
+ `/get_context_cards` already accepts slugs `/projects` doesn't list)."""
249
+ stub = _StubCtxClient()
250
+ stub.queue("/projects", [{"id": "p1", "name": "Alpha"}])
251
+ stub.queue("/projects/me", {"id": "p2", "slug": "uy07zxcp", "name": "Crew"})
252
+ _install_stub_client(monkeypatch, stub)
253
+
254
+ result = CliRunner().invoke(cli, ["project", "use", "uy07zxcp"])
255
+ assert result.exit_code == 0, result.output
256
+ assert cfg.get_profile("default")["project_id"] == "p2"
257
+
258
+
241
259
  def test_project_current_hits_projects_me(isolated_config: Path, monkeypatch: pytest.MonkeyPatch) -> None:
242
260
  stub = _StubCtxClient()
243
261
  stub.queue("/projects/me", {"id": "p1", "name": "Alpha"})
@@ -56,7 +56,7 @@ wheels = [
56
56
 
57
57
  [[package]]
58
58
  name = "deepvista-cli"
59
- version = "4.2.0"
59
+ version = "4.3.0"
60
60
  source = { editable = "." }
61
61
  dependencies = [
62
62
  { name = "click" },
@@ -1,3 +0,0 @@
1
- {
2
- ".": "4.2.0"
3
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes