File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5+ import dataclasses
56import sys
67from pathlib import Path
78from typing import TYPE_CHECKING
@@ -787,15 +788,10 @@ def _coerce_provenance_targets(value):
787788 else :
788789 # Traditional single-file compilation - keep existing logic
789790 # Perform initial compilation in dry-run to get generated body (without constitution)
790- # TODO: Refactor to use dataclasses.replace() once CompilationConfig fields stabilise
791- intermediate_config = CompilationConfig (
792- output_path = config .output_path ,
793- chatmode = config .chatmode ,
794- resolve_links = config .resolve_links ,
791+ intermediate_config = dataclasses .replace (
792+ config ,
795793 dry_run = True , # force
796- with_constitution = config .with_constitution ,
797794 strategy = "single-file" ,
798- target = config .target ,
799795 )
800796 intermediate_result = compiler .compile (intermediate_config )
801797
Original file line number Diff line number Diff line change @@ -291,10 +291,7 @@ def list_servers(
291291 servers = self ._unwrap_server_list (data )
292292
293293 metadata = data .get ("metadata" , {})
294- # Spec is camelCase ``nextCursor``; ``next_cursor`` accepted as a
295- # transitional kindness for in-tree mock fixtures only.
296- # TODO(v0.1): drop legacy snake_case once fixtures migrate.
297- next_cursor = metadata .get ("nextCursor" ) or metadata .get ("next_cursor" )
294+ next_cursor = metadata .get ("nextCursor" )
298295
299296 return servers , next_cursor
300297
You can’t perform that action at this time.
0 commit comments