jeeves-meta-monorepo
    Preparing search index...

    Function orchestrate

    • Run a single synthesis cycle.

      Selects the stalest candidate (or a specific target) and runs the full architect/builder/critic pipeline.

      Parameters

      • config: {
            architectEvery: number;
            architectTimeout: number;
            builderTimeout: number;
            criticTimeout: number;
            defaultArchitect?: string;
            defaultCritic?: string;
            depthWeight: number;
            gatewayApiKey?: string;
            gatewayUrl: string;
            maxArchive: number;
            maxLines: number;
            metaArchiveProperty: Record<string, unknown>;
            metaProperty: Record<string, unknown>;
            skipUnchanged: boolean;
            thinking: string;
            watcherUrl: string;
        }

        Validated synthesis config.

        • architectEvery: number

          Run architect every N cycles (per meta).

        • architectTimeout: number

          Architect subprocess timeout in seconds.

        • builderTimeout: number

          Builder subprocess timeout in seconds.

        • criticTimeout: number

          Critic subprocess timeout in seconds.

        • OptionaldefaultArchitect?: string

          Resolved architect system prompt text. Falls back to built-in default.

        • OptionaldefaultCritic?: string

          Resolved critic system prompt text. Falls back to built-in default.

        • depthWeight: number

          Exponent for depth weighting in staleness formula.

        • OptionalgatewayApiKey?: string

          Optional API key for gateway authentication.

        • gatewayUrl: string

          OpenClaw gateway base URL for subprocess spawning.

        • maxArchive: number

          Maximum archive snapshots to retain per meta.

        • maxLines: number

          Maximum lines of context to include in subprocess prompts.

        • metaArchiveProperty: Record<string, unknown>

          Watcher metadata properties applied to archive snapshots.

        • metaProperty: Record<string, unknown>

          Watcher metadata properties applied to live .meta/meta.json files.

        • skipUnchanged: boolean

          Skip unchanged candidates, bump _generatedAt.

        • thinking: string

          Thinking level for spawned synthesis sessions.

        • watcherUrl: string

          Watcher service base URL.

      • executor: MetaExecutor

        Pluggable LLM executor.

      • watcher: WatcherClient

        Watcher HTTP client.

      • OptionaltargetPath: string

        Optional: specific meta/owner path to synthesize instead of stalest candidate.

      • OptionalonProgress: ProgressCallback
      • Optionallogger: MinimalLogger

      Returns Promise<OrchestrateResult[]>

      Array with a single result.