deepvista-cli 3.1.0__tar.gz → 3.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.
Files changed (92) hide show
  1. deepvista_cli-3.2.0/.release-please-manifest.json +3 -0
  2. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/CHANGELOG.md +12 -0
  3. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/PKG-INFO +2 -2
  4. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/card.py +168 -0
  5. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/.claude-plugin/plugin.json +1 -1
  6. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/pyproject.toml +2 -2
  7. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/reference/notes.md +5 -2
  8. deepvista_cli-3.2.0/skills/deepvista/reference/openclaw.md +98 -0
  9. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/reference/vistabase-card.md +14 -1
  10. deepvista_cli-3.2.0/tests/test_card_comment_commands.py +117 -0
  11. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/uv.lock +5 -5
  12. deepvista_cli-3.1.0/.release-please-manifest.json +0 -3
  13. deepvista_cli-3.1.0/skills/deepvista/reference/openclaw.md +0 -82
  14. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/.claude-plugin/marketplace.json +0 -0
  15. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/.github/workflows/ci.yml +0 -0
  16. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/.github/workflows/publish.yml +0 -0
  17. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/.github/workflows/release-please.yml +0 -0
  18. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/.gitignore +0 -0
  19. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/.pre-commit-config.yaml +0 -0
  20. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/CLAUDE.md +0 -0
  21. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/CONTRIBUTING.md +0 -0
  22. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/LICENSE +0 -0
  23. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/README.md +0 -0
  24. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/__init__.py +0 -0
  25. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/auth/__init__.py +0 -0
  26. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/auth/callback_server.py +0 -0
  27. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/auth/login.py +0 -0
  28. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/auth/tokens.py +0 -0
  29. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/client/__init__.py +0 -0
  30. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/client/http.py +0 -0
  31. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/client/origin.py +0 -0
  32. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/__init__.py +0 -0
  33. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/agents.py +0 -0
  34. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/auth.py +0 -0
  35. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/chat.py +0 -0
  36. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/config.py +0 -0
  37. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/notes.py +0 -0
  38. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/project.py +0 -0
  39. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/schedule.py +0 -0
  40. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/session.py +0 -0
  41. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/skill.py +0 -0
  42. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/tasks.py +0 -0
  43. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/commands/upgrade.py +0 -0
  44. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/config.py +0 -0
  45. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/main.py +0 -0
  46. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/output/__init__.py +0 -0
  47. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/output/formatter.py +0 -0
  48. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/resources/__init__.py +0 -0
  49. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/resources/workflow_host_runtime.md +0 -0
  50. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/session_note.py +0 -0
  51. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/skill_catalog.py +0 -0
  52. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/deepvista_cli/workflow_doc.py +0 -0
  53. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/docs/assets/deepvista-banner.png +0 -0
  54. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/install.ps1 +0 -0
  55. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/install.sh +0 -0
  56. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/README.md +0 -0
  57. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/README.md +0 -0
  58. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/commands/deepvista.md +0 -0
  59. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/commands/refresh-skills.md +0 -0
  60. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/hooks/hooks.json +0 -0
  61. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/scripts/deepvista-agent-sync.sh +0 -0
  62. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/scripts/deepvista-session-end.sh +0 -0
  63. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/scripts/deepvista-session-start.sh +0 -0
  64. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/scripts/deepvista-session-turn.sh +0 -0
  65. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/scripts/deepvista-skill-url.py +0 -0
  66. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/scripts/deepvista-sync.sh +0 -0
  67. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/skills/.gitignore +0 -0
  68. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/plugins/claude-code/skills/install-deepvista-cli/SKILL.md +0 -0
  69. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/release-please-config.json +0 -0
  70. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/scripts/check_plugin_version.py +0 -0
  71. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/SKILL.md +0 -0
  72. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/reference/chat.md +0 -0
  73. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/reference/project.md +0 -0
  74. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/reference/session.md +0 -0
  75. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/reference/shared.md +0 -0
  76. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/reference/skill-analyze-notes.md +0 -0
  77. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/reference/skill-create-from-note.md +0 -0
  78. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/reference/skill-import-files.md +0 -0
  79. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/reference/skill-research-to-skill.md +0 -0
  80. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/reference/skill.md +0 -0
  81. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/deepvista/reference/tasks.md +0 -0
  82. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/skills/dv-workflow/SKILL.md +0 -0
  83. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/tests/__init__.py +0 -0
  84. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/tests/test_agent_id_tagging.py +0 -0
  85. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/tests/test_entry_points.py +0 -0
  86. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/tests/test_project_commands.py +0 -0
  87. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/tests/test_session_note_format.py +0 -0
  88. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/tests/test_skill_catalog.py +0 -0
  89. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/tests/test_skill_commands.py +0 -0
  90. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/tests/test_tasks_commands.py +0 -0
  91. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/tests/test_workflow_doc_phases.py +0 -0
  92. {deepvista_cli-3.1.0 → deepvista_cli-3.2.0}/uninstall.sh +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "3.2.0"
3
+ }
@@ -46,6 +46,18 @@ 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
+ ## [3.2.0](https://github.com/DeepVista-AI/deepvista-cli/compare/v3.1.0...v3.2.0) (2026-07-13)
50
+
51
+
52
+ ### Features
53
+
54
+ * **DV-1496:** expose card comment commands in CLI ([#204](https://github.com/DeepVista-AI/deepvista-cli/issues/204)) ([3551969](https://github.com/DeepVista-AI/deepvista-cli/commit/35519695664c89076fe6785fa1d19c5c6a3846dd))
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * **DV-1484:** reconcile OpenClaw auto-capture with explicit-note rule ([#199](https://github.com/DeepVista-AI/deepvista-cli/issues/199)) ([663d2df](https://github.com/DeepVista-AI/deepvista-cli/commit/663d2df18d775ad2e90cf1db23c17621c0db4469))
60
+
49
61
  ## [3.1.0](https://github.com/DeepVista-AI/deepvista-cli/compare/v3.0.0...v3.1.0) (2026-07-12)
50
62
 
51
63
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deepvista-cli
3
- Version: 3.1.0
3
+ Version: 3.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
@@ -18,7 +18,7 @@ Classifier: Programming Language :: Python :: 3
18
18
  Classifier: Programming Language :: Python :: 3.12
19
19
  Classifier: Topic :: Utilities
20
20
  Requires-Python: >=3.12
21
- Requires-Dist: click>=8.1
21
+ Requires-Dist: click>=8.3.3
22
22
  Requires-Dist: filelock>=3.12
23
23
  Requires-Dist: httpx<1,>=0.27
24
24
  Requires-Dist: psutil>=7.2.2
@@ -15,6 +15,10 @@ Endpoints:
15
15
  POST /edit_context_card -> targeted string replacement (file-ops Edit)
16
16
  POST /grep_context_cards -> regex content search (file-ops Grep)
17
17
  DELETE /context_cards/{id} -> delete
18
+ POST /list_card_comments -> list a card's comments (DV-1308)
19
+ POST /create_card_comment -> add a comment to a card
20
+ POST /update_card_comment -> edit a comment (author only)
21
+ DELETE /card_comments/{id} -> delete a comment (author only)
18
22
  """
19
23
 
20
24
  from __future__ import annotations
@@ -41,6 +45,8 @@ CARD_TYPES = [
41
45
 
42
46
  CARD_COLUMNS = ["id", "type", "title", "display_status", "updated_at"]
43
47
 
48
+ COMMENT_COLUMNS = ["id", "commenter_type", "commenter_name", "comment", "created_at"]
49
+
44
50
 
45
51
  def _client(ctx: click.Context) -> DeepVistaClient:
46
52
  return ctx.obj._client
@@ -696,3 +702,165 @@ def card_grep(
696
702
  base_url=ctx.obj.auth_url,
697
703
  project_id=ctx.obj.project_id,
698
704
  )
705
+
706
+
707
+ # ---------------------------------------------------------------------------
708
+ # Comments (DV-1308 / DV-1496) — flat, markdown comment thread on a card
709
+ # ---------------------------------------------------------------------------
710
+
711
+
712
+ @card_group.group("comment")
713
+ def comment_group() -> None:
714
+ """Add / read / edit / delete comments on a context card.
715
+
716
+ Comments are a flat, markdown thread attached to a card — use them for
717
+ enrichment and running commentary instead of editing the card body. The CLI
718
+ posts as the authenticated user (`commenter_type=human`); you can only edit
719
+ or delete your own comments.
720
+ """
721
+
722
+
723
+ @comment_group.command("list")
724
+ @click.argument("card_id")
725
+ @click.option("--limit", default=50, help="Max comments to return (default 50).")
726
+ @project_option
727
+ @click.pass_context
728
+ def comment_list(ctx: click.Context, card_id: str, limit: int, project_override: str | None) -> None:
729
+ """List a card's comments (oldest first).
730
+
731
+ Read-only.
732
+ """
733
+ apply_project_override(ctx, project_override)
734
+ comments = _client(ctx).post("/list_card_comments", {"card_id": card_id})
735
+ comments = comments if isinstance(comments, list) else []
736
+ format_output(
737
+ {"card_id": card_id, "comments": comments[:limit], "count": len(comments[:limit])},
738
+ ctx.obj.output_format,
739
+ columns=COMMENT_COLUMNS,
740
+ title=f"Comments: {card_id}",
741
+ entity_type="card",
742
+ base_url=ctx.obj.auth_url,
743
+ project_id=ctx.obj.project_id,
744
+ )
745
+
746
+
747
+ @comment_group.command("add")
748
+ @click.argument("card_id")
749
+ @click.option("--content", "comment", default=None, help="Comment body (markdown).")
750
+ @click.option(
751
+ "--content-file",
752
+ default=None,
753
+ help="Read the comment from a file path. Use '-' for stdin. Overrides --content.",
754
+ )
755
+ @click.option("--dry-run", is_flag=True, default=False, help="Preview what would happen without making any changes.")
756
+ @project_option
757
+ @click.pass_context
758
+ def comment_add(
759
+ ctx: click.Context,
760
+ card_id: str,
761
+ comment: str | None,
762
+ content_file: str | None,
763
+ dry_run: bool,
764
+ project_override: str | None,
765
+ ) -> None:
766
+ """Add a comment to a context card.
767
+
768
+ > [!CAUTION] This is a write command — confirm with the user before executing.
769
+ """
770
+ apply_project_override(ctx, project_override)
771
+ comment = resolve_content(comment, content_file)
772
+ if not comment or not comment.strip():
773
+ output_error(3, "Comment must not be empty", "Pass --content or --content-file.")
774
+
775
+ body: dict = {"card_id": card_id, "comment": comment}
776
+ if dry_run:
777
+ format_output(
778
+ {"dry_run": True, "would": "create card comment", "payload": body},
779
+ ctx.obj.output_format,
780
+ entity_type="card",
781
+ base_url=ctx.obj.auth_url,
782
+ project_id=ctx.obj.project_id,
783
+ )
784
+ return
785
+
786
+ data = _client(ctx).post("/create_card_comment", body)
787
+ format_output(
788
+ data,
789
+ ctx.obj.output_format,
790
+ title=f"Commented on: {card_id}",
791
+ entity_type="card",
792
+ base_url=ctx.obj.auth_url,
793
+ project_id=ctx.obj.project_id,
794
+ )
795
+
796
+
797
+ @comment_group.command("edit")
798
+ @click.argument("comment_id")
799
+ @click.option("--content", "comment", default=None, help="New comment body (markdown).")
800
+ @click.option(
801
+ "--content-file",
802
+ default=None,
803
+ help="Read the comment from a file path. Use '-' for stdin. Overrides --content.",
804
+ )
805
+ @click.option("--dry-run", is_flag=True, default=False, help="Preview what would happen without making any changes.")
806
+ @click.pass_context
807
+ def comment_edit(
808
+ ctx: click.Context,
809
+ comment_id: str,
810
+ comment: str | None,
811
+ content_file: str | None,
812
+ dry_run: bool,
813
+ ) -> None:
814
+ """Edit one of your own comments.
815
+
816
+ > [!CAUTION] This is a write command — confirm with the user before executing.
817
+ """
818
+ comment = resolve_content(comment, content_file)
819
+ if not comment or not comment.strip():
820
+ output_error(3, "Comment must not be empty", "Pass --content or --content-file.")
821
+
822
+ body: dict = {"comment_id": comment_id, "comment": comment}
823
+ if dry_run:
824
+ format_output(
825
+ {"dry_run": True, "would": "update card comment", "payload": body},
826
+ ctx.obj.output_format,
827
+ entity_type="card",
828
+ base_url=ctx.obj.auth_url,
829
+ project_id=ctx.obj.project_id,
830
+ )
831
+ return
832
+
833
+ data = _client(ctx).post("/update_card_comment", body)
834
+ format_output(
835
+ data,
836
+ ctx.obj.output_format,
837
+ title=f"Edited comment: {comment_id}",
838
+ entity_type="card",
839
+ base_url=ctx.obj.auth_url,
840
+ project_id=ctx.obj.project_id,
841
+ )
842
+
843
+
844
+ @comment_group.command("delete")
845
+ @click.argument("comment_id")
846
+ @click.option("--dry-run", is_flag=True, default=False, help="Preview what would happen without making any changes.")
847
+ @click.pass_context
848
+ def comment_delete(ctx: click.Context, comment_id: str, dry_run: bool) -> None:
849
+ """Delete one of your own comments.
850
+
851
+ > [!CAUTION] This is a destructive write command — confirm with the user before executing.
852
+ """
853
+ if dry_run:
854
+ format_output(
855
+ {"dry_run": True, "would": "delete card comment", "comment_id": comment_id},
856
+ ctx.obj.output_format,
857
+ entity_type="card",
858
+ base_url=ctx.obj.auth_url,
859
+ project_id=ctx.obj.project_id,
860
+ )
861
+ return
862
+
863
+ data = _client(ctx).delete(f"/card_comments/{comment_id}")
864
+ format_output(
865
+ data, ctx.obj.output_format, entity_type="card", base_url=ctx.obj.auth_url, project_id=ctx.obj.project_id
866
+ )
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepvista",
3
- "version": "3.1.0",
3
+ "version": "3.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 = "3.1.0"
3
+ version = "3.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" }
@@ -18,7 +18,7 @@ classifiers = [
18
18
  "Topic :: Utilities",
19
19
  ]
20
20
  dependencies = [
21
- "click>=8.1",
21
+ "click>=8.3.3",
22
22
  "filelock>=3.12",
23
23
  "httpx>=0.27,<1",
24
24
  "psutil>=7.2.2",
@@ -21,7 +21,10 @@ flag reference.
21
21
  ## Agent conventions
22
22
 
23
23
  > [!CAUTION] `create`, `update`, `delete` are writes.
24
- > Confirm with the user first (except `+quick` in auto-capture mode — see [openclaw.md](openclaw.md)).
24
+ > Confirm with the user first — always, with no auto-capture exception. Notes are
25
+ > human-driven: only create one when the user explicitly asks to save/write/record
26
+ > a note. Everything an agent notices on its own belongs on `deepvista card`
27
+ > instead (see [openclaw.md](openclaw.md), DV-1484).
25
28
 
26
29
  - **Always use `--content-file <absolute-path>`** for anything more than ~200 chars or
27
30
  containing newlines. Never paste large content inline. Pass `-` to read from stdin.
@@ -70,4 +73,4 @@ deepvista card index --limit 100
70
73
  ## See also
71
74
 
72
75
  - [vistabase-card.md](vistabase-card.md) — underlying `card --type note` commands, version history, indexing
73
- - [openclaw.md](openclaw.md) — auto-capture without confirmation
76
+ - [openclaw.md](openclaw.md) — agent auto-capture (writes context cards, never notes)
@@ -0,0 +1,98 @@
1
+ # OpenClaw — auto-capture notable facts as context cards
2
+
3
+ OpenClaw is DeepVista's companion agent. The auto-capture rule saves notable user
4
+ statements to DeepVista **as context cards** without asking for confirmation on
5
+ every capture — the opposite of other write commands in this skill.
6
+
7
+ **Notes are human-driven, context cards are agent-driven.** A `note`
8
+ (`type=note`) is only ever created when the user explicitly asks to save or
9
+ write a note (see [notes.md](notes.md)) — never by auto-capture. Everything
10
+ OpenClaw notices on its own during a conversation is a context card of some
11
+ other `--type` (DV-1484). Auto-capture must never call `deepvista notes` —
12
+ use `deepvista card create` exclusively.
13
+
14
+ Use when the user is running OpenClaw (or another agent with this rule installed)
15
+ and expects captures to happen silently in the background.
16
+
17
+ ## When to capture (no confirmation)
18
+
19
+ Save anything in these categories automatically, as the indicated card `--type`:
20
+
21
+ - **Personal or professional facts** (role, company, team, background) — `--type person`
22
+ (or `--type organization` for company-level facts).
23
+ - **Decisions reached** — include the reasoning if the user stated it. `--type keypoint`.
24
+ - **Key insights / learnings / observations.** `--type keypoint`.
25
+ - **Action items / commitments / deadlines.** `--type todo`.
26
+ - **Meeting or conversation highlights** — use bullets; include participants. `--type topic`.
27
+ - **Relationships** — who works with whom, reporting lines, collaborations. `--type person`
28
+ (or `--type organization`).
29
+
30
+ If a statement doesn't clearly fit one of these, prefer `--type keypoint` as the
31
+ default catch-all rather than reaching for `--type note`.
32
+
33
+ ## When NOT to capture
34
+
35
+ - Passwords, API keys, tokens, credentials of any kind.
36
+ - Pure questions ("how do I …", "what's the status of …").
37
+ - Small talk / greetings / confirmations.
38
+ - Agent commands directed at the assistant itself ("run this", "stop", "retry").
39
+ - Anything the user explicitly asks you not to save.
40
+ - **Anything the user explicitly asks to be saved as a note** — that's a `note`,
41
+ route it to [notes.md](notes.md) instead (still an explicit write, confirm as normal).
42
+
43
+ When in doubt, err on the side of not capturing and let the user prompt you.
44
+
45
+ ## Capture commands
46
+
47
+ Single-line fact:
48
+
49
+ ```bash
50
+ deepvista card create --type <type> --title "<short title>" --content "<exact user statement or tight paraphrase>"
51
+ ```
52
+
53
+ - Preserve original wording when practical. Paraphrase only to fix pronouns
54
+ (`I` → `<user name>`) or clarify who a referent is.
55
+ - Keep `--title` short (first ~50 chars of the statement is a good budget) —
56
+ there's no length validation on `card create` the way `notes +quick` has.
57
+
58
+ Structured fact (multi-line, or when the user shares formatted content):
59
+
60
+ ```bash
61
+ deepvista card create --type <type> \
62
+ --title "<short title>" \
63
+ --content-file <path>
64
+ ```
65
+
66
+ For content dictated in-conversation, write it to a tempfile first:
67
+
68
+ ```bash
69
+ cat > /tmp/capture-$$.md <<'EOF'
70
+ <markdown content here>
71
+ EOF
72
+ deepvista card create --type <type> --title "…" --content-file /tmp/capture-$$.md
73
+ rm /tmp/capture-$$.md
74
+ ```
75
+
76
+ ## Prerequisites
77
+
78
+ Check authentication before the first capture of a session:
79
+
80
+ ```bash
81
+ deepvista auth status
82
+ ```
83
+
84
+ If unauthenticated, prompt the user to run `deepvista auth login` — don't try to
85
+ capture silently into a broken auth state.
86
+
87
+ ## Optional — heartbeat / dedup
88
+
89
+ If the user runs `deepvista agents sync --type openclaw` once (it auto-registers
90
+ on first run), the CLI will heartbeat after each agent turn and the server will
91
+ flag near-duplicate captures during periodic maintenance. Set up is one-time;
92
+ not required for capture to work.
93
+
94
+ ## See also
95
+
96
+ - [vistabase-card.md](vistabase-card.md) — the underlying `card create` command and full `--type` list
97
+ - [notes.md](notes.md) — explicit, human-requested notes (never auto-captured)
98
+ - [shared.md](shared.md) — auth, agent registration
@@ -15,12 +15,14 @@ Use [notes.md](notes.md) for note-only ergonomics.
15
15
 
16
16
  `list` · `get` · `create` · `update` · `edit` · `delete`
17
17
  `index` · `history` · `diff` · `restore`
18
+ `comment list|add|edit|delete`
18
19
  `+search` · `+similar` · `+grep` · `+pin` · `+archive`
19
20
 
20
21
  ## Agent conventions
21
22
 
22
23
  > [!CAUTION] `create`, `update`, `edit`, `delete`, `index`, `restore`, `+pin`, `+archive` are writes.
23
- > Confirm first. Use `--dry-run` to preview.
24
+ > Confirm first (except `create` under OpenClaw auto-capture — see [openclaw.md](openclaw.md), DV-1484).
25
+ > Use `--dry-run` to preview.
24
26
 
25
27
  - **Always use `--content-file <absolute-path>`** for large content — never inline.
26
28
  - Show the app URL after any write: `https://app.deepvista.ai/vistabase/<id>`
@@ -44,6 +46,11 @@ the current body — it is replaced with `--new-string`. Fails if not found. Use
44
46
  **`history` / `diff` / `restore`** — version history for any card. `restore`
45
47
  captures the current state as a new version first, so it's reversible.
46
48
 
49
+ **`comment`** — a flat, markdown comment thread on a card (DV-1308). Use comments for
50
+ enrichment / running commentary instead of editing the card body. The CLI posts as the
51
+ authenticated user (`commenter_type=human`); you can only `edit`/`delete` your own comments.
52
+ `add`/`edit` take `--content` or `--content-file`; `list <card_id>` and `edit`/`delete <comment_id>`.
53
+
47
54
  ## Examples
48
55
 
49
56
  ```bash
@@ -61,6 +68,12 @@ deepvista card edit <id> --old-string "old API URL" --new-string "new API URL"
61
68
 
62
69
  # Pin
63
70
  deepvista card +pin <id>
71
+
72
+ # Comment on a card (enrichment / running commentary — not a body edit)
73
+ deepvista card comment add <card_id> --content "Confirmed the Q3 numbers with finance."
74
+ deepvista card comment list <card_id>
75
+ deepvista card comment edit <comment_id> --content-file /tmp/updated.md
76
+ deepvista card comment delete <comment_id>
64
77
  ```
65
78
 
66
79
  ## See also
@@ -0,0 +1,117 @@
1
+ """Click-level tests for `deepvista card comment` add / list / edit / delete (DV-1496)."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import json
6
+ from typing import Any
7
+
8
+ import pytest
9
+ from click.testing import CliRunner
10
+
11
+ from deepvista_cli.main import cli
12
+
13
+
14
+ class _StubCtxClient:
15
+ """Minimal stand-in for the real client attached to ctx.obj._client."""
16
+
17
+ def __init__(self) -> None:
18
+ self.responses: dict[str, list[Any]] = {}
19
+ self.calls: list[tuple[str, str, dict | None]] = []
20
+
21
+ def queue(self, path: str, response: Any) -> None:
22
+ self.responses.setdefault(path, []).append(response)
23
+
24
+ def _pop(self, method: str, path: str, body: dict | None = None) -> Any:
25
+ self.calls.append((method, path, body))
26
+ q = self.responses.get(path)
27
+ if not q:
28
+ raise AssertionError(f"no response queued for {method} {path}")
29
+ return q.pop(0)
30
+
31
+ def post(self, path: str, body: dict | None = None) -> Any:
32
+ return self._pop("POST", path, body)
33
+
34
+ def delete(self, path: str, params: dict | None = None) -> Any:
35
+ return self._pop("DELETE", path, params)
36
+
37
+
38
+ def _install_stub_client(monkeypatch: pytest.MonkeyPatch, stub: _StubCtxClient) -> None:
39
+ from deepvista_cli.client import http as http_module
40
+
41
+ monkeypatch.setattr(http_module.DeepVistaClient, "__init__", lambda self, config: setattr(self, "config", config))
42
+ monkeypatch.setattr(
43
+ http_module.DeepVistaClient,
44
+ "post",
45
+ lambda self, path, body=None, extra_headers=None: stub.post(path, body),
46
+ )
47
+ monkeypatch.setattr(
48
+ http_module.DeepVistaClient,
49
+ "delete",
50
+ lambda self, path, params=None: stub.delete(path, params),
51
+ )
52
+
53
+
54
+ def test_comment_add(monkeypatch: pytest.MonkeyPatch) -> None:
55
+ stub = _StubCtxClient()
56
+ _install_stub_client(monkeypatch, stub)
57
+ stub.queue("/create_card_comment", {"id": "cmt-1", "card_id": "card-1", "comment": "hi"})
58
+
59
+ result = CliRunner().invoke(cli, ["card", "comment", "add", "card-1", "--content", "hi"])
60
+
61
+ assert result.exit_code == 0, result.output
62
+ assert ("POST", "/create_card_comment", {"card_id": "card-1", "comment": "hi"}) in stub.calls
63
+
64
+
65
+ def test_comment_add_empty_is_rejected_without_http(monkeypatch: pytest.MonkeyPatch) -> None:
66
+ stub = _StubCtxClient()
67
+ _install_stub_client(monkeypatch, stub)
68
+
69
+ result = CliRunner().invoke(cli, ["card", "comment", "add", "card-1", "--content", " "])
70
+
71
+ assert result.exit_code == 3, result.output
72
+ assert stub.calls == [] # never hit the API
73
+
74
+
75
+ def test_comment_add_dry_run_skips_http(monkeypatch: pytest.MonkeyPatch) -> None:
76
+ stub = _StubCtxClient()
77
+ _install_stub_client(monkeypatch, stub)
78
+
79
+ result = CliRunner().invoke(cli, ["card", "comment", "add", "card-1", "--content", "hi", "--dry-run"])
80
+
81
+ assert result.exit_code == 0, result.output
82
+ assert json.loads(result.output)["dry_run"] is True
83
+ assert stub.calls == []
84
+
85
+
86
+ def test_comment_list(monkeypatch: pytest.MonkeyPatch) -> None:
87
+ stub = _StubCtxClient()
88
+ _install_stub_client(monkeypatch, stub)
89
+ stub.queue("/list_card_comments", [{"id": "cmt-1", "comment": "a"}, {"id": "cmt-2", "comment": "b"}])
90
+
91
+ result = CliRunner().invoke(cli, ["card", "comment", "list", "card-1"])
92
+
93
+ assert result.exit_code == 0, result.output
94
+ assert json.loads(result.output)["count"] == 2
95
+ assert ("POST", "/list_card_comments", {"card_id": "card-1"}) in stub.calls
96
+
97
+
98
+ def test_comment_edit(monkeypatch: pytest.MonkeyPatch) -> None:
99
+ stub = _StubCtxClient()
100
+ _install_stub_client(monkeypatch, stub)
101
+ stub.queue("/update_card_comment", {"id": "cmt-1", "comment": "edited"})
102
+
103
+ result = CliRunner().invoke(cli, ["card", "comment", "edit", "cmt-1", "--content", "edited"])
104
+
105
+ assert result.exit_code == 0, result.output
106
+ assert ("POST", "/update_card_comment", {"comment_id": "cmt-1", "comment": "edited"}) in stub.calls
107
+
108
+
109
+ def test_comment_delete(monkeypatch: pytest.MonkeyPatch) -> None:
110
+ stub = _StubCtxClient()
111
+ _install_stub_client(monkeypatch, stub)
112
+ stub.queue("/card_comments/cmt-1", {"success": True})
113
+
114
+ result = CliRunner().invoke(cli, ["card", "comment", "delete", "cmt-1"])
115
+
116
+ assert result.exit_code == 0, result.output
117
+ assert ("DELETE", "/card_comments/cmt-1", None) in stub.calls
@@ -35,14 +35,14 @@ wheels = [
35
35
 
36
36
  [[package]]
37
37
  name = "click"
38
- version = "8.3.1"
38
+ version = "8.4.2"
39
39
  source = { registry = "https://pypi.org/simple" }
40
40
  dependencies = [
41
41
  { name = "colorama", marker = "sys_platform == 'win32'" },
42
42
  ]
43
- sdist = { url = "https://files.pythonhosted.org/packages/3d/fa/656b739db8587d7b5dfa22e22ed02566950fbfbcdc20311993483657a5c0/click-8.3.1.tar.gz", hash = "sha256:12ff4785d337a1bb490bb7e9c2b1ee5da3112e94a8622f26a6c77f5d2fc6842a", size = 295065, upload-time = "2025-11-15T20:45:42.706Z" }
43
+ sdist = { url = "https://files.pythonhosted.org/packages/76/d4/81420972a676e8ffea40450d8c8c92943e7218a78fe9b64359836cc9876b/click-8.4.2.tar.gz", hash = "sha256:9a6cea6e60b17ebe0a44c5cc636d94f09bd66142c1cd7d8b4cd731c4917a15f6", size = 338000, upload-time = "2026-06-24T17:45:15.148Z" }
44
44
  wheels = [
45
- { url = "https://files.pythonhosted.org/packages/98/78/01c019cdb5d6498122777c1a43056ebb3ebfeef2076d9d026bfe15583b2b/click-8.3.1-py3-none-any.whl", hash = "sha256:981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6", size = 108274, upload-time = "2025-11-15T20:45:41.139Z" },
45
+ { url = "https://files.pythonhosted.org/packages/fb/e2/79c688af8b210d232694e31e59da9f6ec747bae31c3f5946e4e9b98860d5/click-8.4.2-py3-none-any.whl", hash = "sha256:e6f9f66136c816745b9d65817da91d61d957fb16e02e4dcd0552553c5a197b76", size = 119243, upload-time = "2026-06-24T17:45:13.73Z" },
46
46
  ]
47
47
 
48
48
  [[package]]
@@ -56,7 +56,7 @@ wheels = [
56
56
 
57
57
  [[package]]
58
58
  name = "deepvista-cli"
59
- version = "3.1.0"
59
+ version = "3.2.0"
60
60
  source = { editable = "." }
61
61
  dependencies = [
62
62
  { name = "click" },
@@ -76,7 +76,7 @@ dev = [
76
76
 
77
77
  [package.metadata]
78
78
  requires-dist = [
79
- { name = "click", specifier = ">=8.1" },
79
+ { name = "click", specifier = ">=8.3.3" },
80
80
  { name = "filelock", specifier = ">=3.12" },
81
81
  { name = "httpx", specifier = ">=0.27,<1" },
82
82
  { name = "psutil", specifier = ">=7.2.2" },
@@ -1,3 +0,0 @@
1
- {
2
- ".": "3.1.0"
3
- }
@@ -1,82 +0,0 @@
1
- # OpenClaw — auto-capture notable facts
2
-
3
- OpenClaw is DeepVista's companion agent. The auto-capture rule saves notable user
4
- statements to DeepVista without asking for confirmation on every capture — the
5
- opposite of other write commands in this skill.
6
-
7
- Use when the user is running OpenClaw (or another agent with this rule installed)
8
- and expects captures to happen silently in the background.
9
-
10
- ## When to capture (no confirmation)
11
-
12
- Save anything in these categories automatically:
13
-
14
- - **Personal or professional facts** — role, company, team, background.
15
- - **Decisions reached** — include the reasoning if the user stated it.
16
- - **Key insights / learnings / observations.**
17
- - **Action items / commitments / deadlines.**
18
- - **Meeting or conversation highlights** — use bullets; include participants.
19
- - **Relationships** — who works with whom, reporting lines, collaborations.
20
-
21
- ## When NOT to capture
22
-
23
- - Passwords, API keys, tokens, credentials of any kind.
24
- - Pure questions ("how do I …", "what's the status of …").
25
- - Small talk / greetings / confirmations.
26
- - Agent commands directed at the assistant itself ("run this", "stop", "retry").
27
- - Anything the user explicitly asks you not to save.
28
-
29
- When in doubt, err on the side of not capturing and let the user prompt you.
30
-
31
- ## Capture commands
32
-
33
- Single-line fact:
34
-
35
- ```bash
36
- deepvista notes +quick "<exact user statement or tight paraphrase>"
37
- ```
38
-
39
- - Preserve original wording when practical. Paraphrase only to fix pronouns
40
- (`I` → `<user name>`) or clarify who a referent is.
41
- - The first ~50 chars become the title.
42
-
43
- Structured fact (multi-line, or when the user shares formatted content):
44
-
45
- ```bash
46
- deepvista notes create \
47
- --title "<short title>" \
48
- --content-file <path>
49
- ```
50
-
51
- For content dictated in-conversation, write it to a tempfile first:
52
-
53
- ```bash
54
- cat > /tmp/capture-$$.md <<'EOF'
55
- <markdown content here>
56
- EOF
57
- deepvista notes create --title "…" --content-file /tmp/capture-$$.md
58
- rm /tmp/capture-$$.md
59
- ```
60
-
61
- ## Prerequisites
62
-
63
- Check authentication before the first capture of a session:
64
-
65
- ```bash
66
- deepvista auth status
67
- ```
68
-
69
- If unauthenticated, prompt the user to run `deepvista auth login` — don't try to
70
- capture silently into a broken auth state.
71
-
72
- ## Optional — heartbeat / dedup
73
-
74
- If the user runs `deepvista agents sync --type openclaw` once (it auto-registers
75
- on first run), the CLI will heartbeat after each agent turn and the server will
76
- flag near-duplicate captures during periodic maintenance. Set up is one-time;
77
- not required for capture to work.
78
-
79
- ## See also
80
-
81
- - [notes.md](notes.md) — the underlying `+quick` and `create` commands
82
- - [shared.md](shared.md) — auth, agent registration
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes