this.me
    Preparing search index...

    Interface OperatorKernel

    A minimal “kernel facade” for operator modules. These are capabilities the ME kernel must expose so ops can behave exactly like me.ts.

    interface OperatorKernel {
        operators?: OperatorRegistry;
        localSecrets?: Record<string, string>;
        localNoises?: Record<string, string>;
        encryptedBranches?: EncryptedBranchPlane;
        memories?: KernelMemory[];
        opKind(op: string): OperatorKind | null;
        splitPath(path: SemanticPath): { scope: SemanticPath; leaf: string | null };
        rebuildIndex(): void;
        computeEffectiveSecret(path: SemanticPath): string;
        xorEncrypt(value: any, secret: string, path: SemanticPath): string;
        xorDecrypt(blob: string, secret: string, path: SemanticPath): any;
        isEncryptedBlob(v: any): v is string;
        makePointer(targetPath: string): MePointer;
        isPointer(v: any): v is MePointer;
        makeIdentityRef(id: string): MeIdentityRef;
        isIdentityRef(v: any): v is MeIdentityRef;
        readPath(path: SemanticPath): any;
        commitMemory?(t: KernelMemory): void;
        removeSubtree(targetPath: SemanticPath): void;
        normalizeAndValidateUsername(input: string): string;
        hashFn(input: string): string;
        now(): number;
    }
    Index

    Properties

    operators?: OperatorRegistry
    localSecrets?: Record<string, string>
    localNoises?: Record<string, string>
    encryptedBranches?: EncryptedBranchPlane
    memories?: KernelMemory[]

    Methods

    • Parameters

      • v: any

      Returns v is string

    • Parameters

      • targetPath: string

      Returns MePointer

    • Parameters

      • v: any

      Returns v is MePointer

    • Parameters

      • id: string

      Returns MeIdentityRef

    • Parameters

      • v: any

      Returns v is MeIdentityRef

    • Read semantic data using the same rules as me.ts:

      • Secret scope roots return undefined (stealth)
      • Secret interior reads decrypt from encryptedBranches
      • Public reads come from index and decrypt value-level blobs

      Parameters

      Returns any

    • Append an event to memories and rebuild index. Operators that are “kernel-only” should avoid emitting memories.

      Parameters

      • t: KernelMemory

      Returns void

    • Remove a subtree: deletes matching localSecrets/localNoises/encryptedBranches and emits a "-" memory.

      Parameters

      Returns void

    • For ops that need username normalization.

      Parameters

      • input: string

      Returns string

    • Portable hash function used to populate Memory.hash

      Parameters

      • input: string

      Returns string

    • Current time. me.ts uses Date.now().

      Returns number