Skip to content

StorageAPI

Defined in: namespaces.ts:462

Legacy synchronous key-value storage tier.

For durable, namespaced, Promise-shaped document/KV storage with query, compaction, and export/import, use context.store (fn-71 StoreAPI) — the storage plane every core plugin builds on. storage.* remains supported for simple small values.

get(key): unknown

Defined in: namespaces.ts:464

Gets a value from the plugin’s scoped storage.

string

unknown


set(key, value): void

Defined in: namespaces.ts:466

Sets a value in the plugin’s scoped storage.

string

unknown

void


getSecure(key): string | null

Defined in: namespaces.ts:468

Reads a string value from the macOS Keychain (plugin-scoped).

string

string | null


setSecure(key, value): void

Defined in: namespaces.ts:470

Writes a string value to the macOS Keychain (plugin-scoped).

string

string

void


deleteSecure(key): true | undefined

Defined in: namespaces.ts:472

Removes a keychain item (plugin-scoped).

string

true | undefined