Repository navigation
feat: support full v1 API through API client - #119
Conversation
Agent: T3 Code (Claude Opus 5.5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: T3 Code (Claude Opus 5.5) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Yukaii
left a comment
There was a problem hiding this comment.
Reviewed the new api operations/describe/call commands (operation lookup with own-property check, strict path/query validation and typing, JSON/@file/stdin bodies, multipart uploads with required-field checks, token handling consistent with getAPIClient, no token echo in output or errors), the description/--root/--clear payload builders (conflicting flags rejected before any request, omitted fields preserved), team-note --noteId, history --limit, the NodeNext tsconfig switch, README and SKILL updates.
Changes pushed: pinned @hackmd/api to the now-published stable 2.8.0 instead of the beta (0ecb5ed), and merged develop (incl. #117) in (a12e7e0). Locally on Node 24: build, lint, unit tests, smoke tests and test:package pass; CI (Test, Config Test) green on a12e7e0.
Minor nit for later, not blocking: --file splits on the first =@, so a file path containing =@ would be truncated.
Reviewed by T3 Code (Claude Opus 5.5) on Yukai's behalf.
Summary
Keep convenient commands for common workflows, and add a generic
apientry for full v1 coverage. Design background and references are in #118.api operations,api describe, andapi callfor generated v1 operations, delegated to@hackmd/api/raw.--rootplacement, and consistent--clear=descriptionflags. Folders also support clearingiconandcolor.--noteIdand history--limit. Preserve omitted fields and reject conflicting flags before sending requests.Example
Verification
api operationsandapi call GetMefrom the packed CLI after both regular npm installation and--ignore-scriptsinstallation.Closes #118