@workjournal/shared

v2.14.0

Published

Shared types, constants, and credential helpers for the Workjournal CLI and MCP server.

Downloads

1,759

Readme

@workjournal/shared

Shared types, constants, and credential helpers used by @workjournal/cli and @workjournal/mcp-server.

This package isn't intended for direct consumption — it's a workspace dependency of the published Workjournal client packages. It's published to npm only so that those packages can resolve their own dependencies.

Exports

| Subpath | Contents | |---|---| | @workjournal/shared | Types (Entry, Journal, JournalContributor, Invitation, …), API path builders, error codes, opaque-token codec | | @workjournal/shared/credentials | Node-only credential file I/O + /v1/auth/refresh client (used by CLI + MCP server) |

The default entry has zero runtime dependencies and works in any JavaScript runtime (Node, Cloudflare Workers, browsers). The credentials subpath imports node:fs / node:os and is Node-only.

Links