SecretStorage
Class: SecretStorage
Section titled “Class: SecretStorage”Defined in: context.svelte.ts:137
In-memory secret store used by runtime services and plugins.
Hosts may replace or mirror this with stronger persisted storage, but the API surface intentionally stays small and synchronous for plugin code.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SecretStorage():
SecretStorage
Returns
Section titled “Returns”SecretStorage
Methods
Section titled “Methods”getSecret()
Section titled “getSecret()”getSecret(
id):string|null
Defined in: context.svelte.ts:161
Look up a secret by id.
Parameters
Section titled “Parameters”string
Stable identifier for the secret.
Returns
Section titled “Returns”string | null
The stored secret value, or null if no secret exists.
listSecrets()
Section titled “listSecrets()”listSecrets():
string[]
Defined in: context.svelte.ts:170
List the ids of all stored secrets.
Returns
Section titled “Returns”string[]
setSecret()
Section titled “setSecret()”setSecret(
id,secret):void
Defined in: context.svelte.ts:147
Store or replace a secret value.
Parameters
Section titled “Parameters”string
Stable identifier for the secret.
secret
Section titled “secret”string
Raw secret value to store.
Returns
Section titled “Returns”void