Skip to content

Tags: draftmark-app/cli

Tags

v0.4.1

Toggle v0.4.1's commit message
v0.4.1: adopt @draftmark-app/client shared transport

v0.4.0

Toggle v0.4.0's commit message
v0.4.0: dm export + dm import (OKF bundles)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

v0.3.0

Toggle v0.3.0's commit message
v0.3.0: dm resolve command + dm comments crash fix

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

v0.2.2

Toggle v0.2.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix comment anchor fields; add --parent for threaded replies (#1)

* Fix comment anchor fields; add --parent for threaded replies

The comment command put values in the wrong field, causing the API to
500:
- --selection <text> was sent as anchor_ref (an integer column); it now
  goes in anchor_text.
- --line <n> was sent as a stringified anchor_ref; it now sends the
  integer.

Add --parent <id> so a comment can be posted as a true threaded reply
(sends parent_id). Previously replies could only be posted as top-level
comments, or attempted via --selection (which anchors to text, not a
comment). Combinable with --selection/--line.

Verified against a local server: --selection stores anchor_text,
--line stores integer anchor_ref, --parent threads under the target,
and the combination works. Build passes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Add comment-delete command

Consume the new DELETE /docs/:slug/comments/:id endpoint. Requires
--confirm (mirrors the document delete command) and doc-level api-key
auth. Resolves slug from .draftmark.json when only the comment id is
passed. Deleting a comment removes its replies too (server cascade).

Verified against a local server: refuses without --confirm; deletes and
the comment is gone with --confirm.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

v0.2.1

Toggle v0.2.1's commit message
Fix account key resolution for private doc creation

Account-level keys (acct_...) from global config were shadowed by
doc-level keys (key_...) from .draftmark.json. Now create --private
uses resolveAccountApiKey which checks global config before local,
so dm login --api-key acct_... works correctly.

dm config now shows Account API Key and Doc API Key separately.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.2.0

Toggle v0.2.0's commit message
v0.2.0: Agent DX, new commands, structured errors, global options

New commands:
- dm update — push content revisions from file or stdin
- dm react — add emoji reactions
- dm list — show all docs in .draftmark.json
- dm browse — open doc in default browser
- dm config — show resolved config from all sources

Agent DX:
- --agent flag on create, auto-inherited by comment/review
- --meta <json> for arbitrary metadata on create
- stdin support (dm create -, dm update -)
- Structured JSON errors ({ error, code, details }) on all failures
- --quiet / -q suppresses stderr, stdout-only for piping
- --format (table/json/minimal) on status and comments
- --since date filter on comments

Global options:
- --base-url overrides DM_BASE_URL without env var
- Standardized exit codes (0 ok, 1 error, 2 auth, 3 not found, 4 conflict)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

v0.1.0

Toggle v0.1.0's commit message
Fix npm publish: remove --provenance (requires public repo)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>