Member Junction
    Preparing search index...
    interface LoadDynamicPackagesOptions {
        appManifestDir?: string;
        config?: Record<string, unknown> | null;
        configFilePath?: string;
        discoverAppManifest?: boolean;
        includeGeneratedPackages?: boolean;
        log?: DynamicPackagesLogger;
        mode?: DynamicPackagesMode;
        processId: string;
        tier?: DynamicPackageTier;
    }
    Index

    Properties

    appManifestDir?: string

    Directory holding mj-app.json. Defaults to the config file's directory, else process.cwd().

    config?: Record<string, unknown> | null

    Raw (un-validated) mj.config.cjs object. Zod-parsed configs usually strip dynamicPackages; pass the raw one.

    configFilePath?: string

    Absolute path of the mj.config.cjs the config came from — the primary resolution anchor.

    discoverAppManifest?: boolean

    Also discover packages from an Open App manifest (mj-app.json) found in appManifestDir — the "running inside the app's own repo" case, where the app's packages are workspace members but nothing has installed them into a host config. Defaults to true.

    includeGeneratedPackages?: boolean

    Also load the host's generated packages named under codeGeneration.packages (entities / actions / graphqlResolvers for the server tier). Defaults to true.

    Output channel. Defaults to console.

    Programmatic mode override (below the env var, above config policy).

    processId: string

    Identity of the calling process, lowercase and colon-separated: mjapi, cli:sync:push, mcp, a2a, integration-tests. Entry Processes / ExcludeProcesses and dynamicPackages.policy match against it by exact ID or by prefix segment.

    Which tier to load. Defaults to 'server'.