Arcane OS Docs Development only

Reference

Arcane.environment.list()

Lists the native Arcane environment profile. Ordinary values are returned; protected values are exactly •••••. Requires environment.read and explicit application admission.

  • Reference

This focused page is derived from the mechanically checked full member inventory.

Syntax

Arcane.environment.list()

Parameters

None

Return value

Promise<{platform, pathSupported, maximumEntries, valueMaximumLength, persistence, entries}>

Description

Lists the native Arcane environment profile. Ordinary values are returned; protected values are exactly •••••. Requires environment.read and explicit application admission.

Overview

Lists the Arcane-managed environment profile without exposing protected values. Desktop hosts report the current user's Arcane-managed profile; Android reports the calling application's private profile. Ordinary entries contain their configured value; protected entries use the exact mask •••••.

This is a Vault-only administrative surface, not a general application configuration mechanism. It requires environment.read, explicit app-id admission, and a Core or Android host.

Return value

The promise resolves to {platform,pathSupported,maximumEntries,valueMaximumLength,persistence,entries}. At most 256 case-insensitively unique entries are returned in sorted order. Desktop entries have {name,value,configured:true,protected,scope:'user'}; Android entries use scope:'app'. Android also reports pathSupported:false, because PATH is deliberately unavailable through this API there. Names use 1–128 characters and ordinary values are bounded to 32,767 characters.

Example

async function renderEnvironmentInventory() {
    const result = await Arcane.environment.list();
    for (const entry of result.entries) {
        console.log(entry.name, {
            protected: entry.protected,
            configured: entry.configured,
            scope: entry.scope
        });
    }
}

await renderEnvironmentInventory();

Reference group

Filesystem, storage, preferences, and appearance

Repository and reviewed source access