CoAgent8
    Preparing search index...

    Function setupShapedEntry

    • Recognizes an entry setup wrote by its shape, for when its ownership record is missing, as after ~/.coagent8/setup.json was deleted: it starts a runtime copy setup keeps in <root>/runtime/<sha256>/index.cjs and holds only the fields setup writes. Nothing else writes there; an entry with any other field, command, foreign token or variable stays the user's.

      Parameters

      • client: "codex" | "claude" | "agy"

        The setup client whose registration is inspected.

      • entry: unknown

        The candidate configuration entry.

      • root: string

        The ~/.coagent8 directory.

      • OptionalnodePath: string

        Optional Node executable path to recognize alongside process.execPath.

      • OptionalargsPrefix: string[]

        Optional permitted launcher argument prefix from resolved Node CLI.

      Returns { origin?: "vscode-extension" } | null

      Null for any other entry; otherwise the VS Code extension as its origin when its data directory is the extension's global storage, which VS Code deletes on uninstall.