|
UnENVerse 0.42.6
Local-first desktop secrets manager — TypeScript frontend
|
import type;Functions | |
| function export | renameBundleRefs (entries:VaultEntry[], projects:Project[], oldName:string, newName:string,) |
| Cascade a bundle-name change through bundle selectors in stored templates. | |
| for (const entry of entries) | |
| for (const project of projects) | |
| function | secretValue (value:unknown, secret:boolean) |
Resolve {local} and {slot.field}. | |
| for (const e of entries) | |
| return[...groups.entries()] | filter (([, list])=> list.length >=2) .map(([ |
Variables | |
| export interface | ScopedValue |
| Bundle-local template resolution (Phase 24.1, step 4). | |
| secret | __pad0__ |
| export interface | BundleReferenceSite |
| template | __pad1__ |
| const | scopedRef = new RegExp(`\\{${slotName}\\.[A-Za-z_][A-Za-z0-9_]*\\}`) |
| const | sites |
| const | seen = new Set<string>() |
| const | add |
| export type | ScopeError |
| export type | ScopeResult |
| export type | BundleCompositeResult |
| const | MAX_DEPTH = 4 |
| const | groups = new Map<string, VaultEntry[]>() |
| return[...groups.entries()] | list => ({ provider: list[0].provider, entries: list })) |
| function export renameBundleRefs | ( | entries:VaultEntry[], | |
| projects:Project[], | |||
| oldName:string, | |||
| newName:string | |||
| ) |
Cascade a bundle-name change through bundle selectors in stored templates.
Cascade a slot rename through scoped and globally addressed templates. Cascade a local-variable rename through bundle templates and global selectors. Find bundle-scope templates that would become unresolved after member deletion.
| for | ( | const entry of | entries | ) |
| for | ( | const project of | projects | ) |
| function secretValue | ( | value:unknown, | |
| secret:boolean | |||
| ) |
Resolve {local} and {slot.field}.
Missing or hidden inputs fail closed. Resolve bundle references into synthetic parts, then use the zone-aware composite renderer so each reference is encoded in its own URL position. Attach members to a new bundle entry named name. Mutates the members and returns the bundle; the caller pushes it and persists once (B14). Slots come from each member's label or provider, made valid and unique. Providers (case-folded) with two or more unbundled, un-pooled entries that have not been dismissed. Suggested, never automatic.
| for | ( | const e of | entries | ) |
| return[...groups.entries()] filter | ( | ([, list]), | |
| list.length >= | 2 | ||
| ) |
| export interface ScopedValue |
| secret __pad0__ |
| export interface BundleReferenceSite |
| template __pad1__ |
| const scopedRef = new RegExp(`\\{${slotName}\\.[A-Za-z_][A-Za-z0-9_]*\\}`) |
| return sites |
| const seen = new Set<string>() |
| const add |
| export type ScopeError |
| export type ScopeResult |
| export type BundleCompositeResult |
| const MAX_DEPTH = 4 |
| const groups = new Map<string, VaultEntry[]>() |
| return[...groups.entries()] list => ({ provider: list[0].provider, entries: list })) |