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.
Follow-up to #7.
Add an
item_archivetool that archives (not hard-deletes) an item. Theinstalled
@1password/sdk(0.3.1) exposesclient.items.archive(vaultId, itemId): Promise<void>, so this is straightforward.Inputs:
vaultId,itemId.Notes
item_deletedoes fordelete) soolder SDKs return a clean
errorResultinstead of throwing.errorResult,log/logError); noany.