Public declaration syntax from forge-ts/packages/forge-identity/src/local-dev.ts Original source SHA-256: 61a584ede2936d1f404270b6dcd71eab51e87711903ad43b5d52e3bb7b768369 Function bodies and constant values are omitted. This is not the complete implementation. Source line 28 export const FORGE_DEV_METHOD /* type inferred in source */; Source line 53 export function forgeDevDid( machineId: string, kind: string, identifier: string, ): string; Source line 81 export async function deriveMachineId( hostname: string, username: string, profileName: string, ): Promise; Source line 108 export function deriveMachineIdSync( hostname: string, username: string, profileName: string, ): string; Source line 130 export function validateForgeDevDid(did: string): boolean; Source line 180 export interface LocalOrg { /** Deterministic org ID. Format: `forge-dev-org:`. */ readonly id: string; /** Human-readable org name. */ readonly name: string; } Source line 195 export function createLocalOrg(name: string): LocalOrg; Source line 209 export interface ForgeDevIdentity { /** The `did:forge-dev` identifier string. */ readonly did: string; /** The entity kind (e.g., "mhr", "agent"). */ readonly kind: string; /** The lineage depth from the root. */ readonly lineageDepth: number; /** The org ID this identity belongs to. */ readonly orgId: string; /** ISO 8601 creation timestamp. */ readonly createdAt: string; /** Schema version for forward compatibility. */ readonly schemaVersion: number; } Source line 228 export interface LocalDevProfile { /** The local developer's root identity. */ readonly root: ForgeDevIdentity; /** The local organization context. */ readonly org: LocalOrg; /** Registry of derived agent identities, keyed by agent name. */ readonly agents: Readonly>; /** The 16-character hex machine identifier. */ readonly machineId: string; /** The profile name (e.g., "default", "alice"). */ readonly profileName: string; } Source line 242 export const PROFILE_SCHEMA_VERSION /* type inferred in source */; Source line 251 export function createLocalDevProfile( machineId: string, profileName: string, ): LocalDevProfile; Source line 282 export function deriveAgent( profile: LocalDevProfile, agentName: string, ): LocalDevProfile; Source line 313 export function profileToJSON( profile: LocalDevProfile, ): Record; Source line 352 export function profileFromJSON( data: Record, ): LocalDevProfile;