jeeves-meta-monorepo
    Preparing search index...

    Function orchestratePhase

    • Run a single phase-aware orchestration tick.

      When targetPath is provided (override entry), runs the owed phase for that specific meta. Otherwise, discovers all metas, computes invalidation, and selects the best phase candidate corpus-wide.

      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;
        }
        • 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
      • watcher: WatcherClient
      • OptionaltargetPath: string
      • OptionalonProgress: PhaseProgressCallback
      • Optionallogger: MinimalLogger

      Returns Promise<OrchestratePhaseResult>