Skip to content

feat: define the supported package and JSON API boundary #15

Closed

Description

@abruption

Problem

The npm package publishes every internal dist JavaScript and declaration file but declares no exports, main, or types entry. Consumers can deep-import internal modules without knowing whether they are supported.

The README describes JSON output as stable and versioned, but schemaVersion 1 currently has no standalone field contract or JSON Schema. This matters for consumers such as session-peer.

Required changes

  • declare whether v1 is CLI-only or includes a supported JavaScript API
  • prevent accidental reliance on unsupported deep imports through an explicit package exports policy
  • if a library API is supported, expose it from a deliberate index entrypoint with types
  • document schemaVersion 1 fields, nullability, classifications, exit codes, and compatibility rules
  • explain that live_owner is liveness evidence and is not equivalent to safeToUnlock
  • add package smoke assertions for the chosen public entrypoints and rejected internal imports

Prefer keeping CLI JSON as the supported integration surface until issues #9 through #13 stabilize the safety contract.

Compatibility

Any removal of an intentionally supported import or incompatible JSON change requires the repository's documented breaking-change process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions