Skip to content

feat: add item_archive tool #9

Description

@u2giants

Follow-up to #7.

Add an item_archive tool that archives (not hard-deletes) an item. The
installed @1password/sdk (0.3.1) exposes client.items.archive(vaultId, itemId): Promise<void>, so this is straightforward.

Inputs: vaultId, itemId.

Notes

  • Guard with a capability check (like item_delete does for delete) so
    older SDKs return a clean errorResult instead of throwing.
  • Mirror existing conventions (errorResult, log/logError); no any.
  • Add tests with a mocked client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions