trellis
Version:
Agentic State Engine — event-sourced causal graph with branching, decision traces, and realtime sync for AI-native applications
25 lines • 1.1 kB
TypeScript
/**
* Sprite device provisioning (Slice D — docs/planning/device-registry-and-
* sprite-pairing.md).
*
* A sprite is a first-class paired device: it holds a device key scoped to
* the user's identity (never the root `identity.json` key), and the user's
* person-scoped registry records it as a `cloud-sprite` device (ws transport)
* so it appears in `trellis pair list` and resolves through the resolver.
*/
import { type DeviceRecord, type LocalDeviceKey } from './pairing.js';
export interface ProvisionedSpriteDevice {
/** LocalDeviceKey installed on the sprite (device key only). */
local: LocalDeviceKey;
/** Registry record on the user's machine. */
record: DeviceRecord;
}
/**
* Mint a cloud-sprite device key under the person identity and register the
* sprite in the person-scoped device registry. The keypair is generated
* locally; the returned `local` is what gets installed on the sprite.
*/
export declare function provisionSpriteDeviceKey(trellisDir: string, opts: {
name: string;
}): ProvisionedSpriteDevice;
//# sourceMappingURL=sprite-device.d.ts.map