@codedrifters/configulator 0.0.298 → 0.0.299

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.mts CHANGED
@@ -2711,6 +2711,26 @@ interface AgentConfigOptions {
2711
2711
  * @default 'balanced'
2712
2712
  */
2713
2713
  readonly defaultAgentTier?: "powerful" | "balanced" | "fast";
2714
+ /**
2715
+ * Per-bundle override for `defaultAgentTier`. Bundle name keyed
2716
+ * (matches the bundle's `name` field, e.g. `'meeting-analysis'`,
2717
+ * `'company-profile'`). Bundles not present in the map fall back
2718
+ * to `defaultAgentTier`.
2719
+ *
2720
+ * Only the six tier-aware bundles (`meeting-analysis`,
2721
+ * `company-profile`, `customer-profile`, `people-profile`,
2722
+ * `software-profile`, `maintenance-audit`) read this map — the
2723
+ * four reviewer/orchestrator agents (orchestrator, issue-worker,
2724
+ * pr-reviewer, requirements-reviewer) ignore both this map and
2725
+ * `defaultAgentTier` and stay on POWERFUL.
2726
+ *
2727
+ * Synth fails with a clear error if a key in the map does not
2728
+ * match one of the six tier-aware bundle names — typos or
2729
+ * deprecated bundle names would otherwise be silently ignored.
2730
+ *
2731
+ * @default {}
2732
+ */
2733
+ readonly bundleAgentTiers?: Readonly<Record<string, "powerful" | "balanced" | "fast">>;
2714
2734
  /**
2715
2735
  * Additional agent rules to generate alongside auto-detected and bundled rules.
2716
2736
  * Custom rules override bundled rules of the same name.
@@ -4848,17 +4868,19 @@ declare function renderUnblockDependentsScript(ud: ResolvedUnblockDependents): s
4848
4868
 
4849
4869
  /**
4850
4870
  * Build the check-blocked.sh procedure definition for a given resolved
4851
- * tier table, scope gate, and run-ratio config. `AgentConfig.preSynthesize`
4852
- * calls this with the consumer's resolved configs so the emitted
4853
- * script's `tier_of()` lookup, `scope_of()` thresholds, and
4854
- * `run_counter_tick()` cycle length match whatever the rendered
4855
- * orchestrator-conventions rule documents.
4871
+ * tier table and scope gate. `AgentConfig.preSynthesize` calls this
4872
+ * with the consumer's resolved configs so the emitted script's
4873
+ * `tier_of()` lookup and `scope_of()` thresholds match whatever the
4874
+ * rendered orchestrator-conventions rule documents.
4856
4875
  *
4857
4876
  * Scope-gate settings default to the bundle's built-in defaults
4858
4877
  * (small: ≤3 AC + ≤2 sources; medium: ≤6 AC + ≤5 sources;
4859
- * auto-file off) when the caller omits them. Run-ratio settings
4860
- * default to the openhi 4:1 cadence with the counter persisted at
4861
- * `.state/orchestrator-runs.json`.
4878
+ * auto-file off) when the caller omits them.
4879
+ *
4880
+ * The `runRatio` parameter is retained for API compatibility but is no
4881
+ * longer rendered into the script — the orchestrator runs a single
4882
+ * linear cycle on every invocation, so the run counter / tick
4883
+ * subcommand were retired.
4862
4884
  */
4863
4885
  declare function buildCheckBlockedProcedure(tiers: ReadonlyArray<ResolvedAgentTier>, scopeGate?: ResolvedScopeGate, runRatio?: ResolvedRunRatio): AgentProcedure;
4864
4886
  /*******************************************************************************
@@ -4879,15 +4901,22 @@ declare function buildCheckBlockedProcedure(tiers: ReadonlyArray<ResolvedAgentTi
4879
4901
  declare function buildUnblockDependentsProcedure(unblockDependents?: ResolvedUnblockDependents): AgentProcedure;
4880
4902
  /**
4881
4903
  * Build the orchestrator-conventions rule content for a given resolved
4882
- * tier table, scope gate, run-ratio, scheduled-tasks, and
4883
- * unblock-dependents config. The preamble is constant; each section
4884
- * below it is rendered from the supplied values so consumer overrides
4885
- * propagate into the generated rule.
4904
+ * tier table, scope gate, scheduled-tasks, and unblock-dependents
4905
+ * config. The preamble is constant; each section below it is rendered
4906
+ * from the supplied values so consumer overrides propagate into the
4907
+ * generated rule.
4886
4908
  *
4887
4909
  * Every optional parameter defaults to the bundle's built-in default
4888
4910
  * when the caller omits it.
4911
+ *
4912
+ * The `runRatio` parameter is retained for API compatibility but is
4913
+ * no longer rendered into the conventions content — the orchestrator
4914
+ * runs a single linear cycle on every invocation, so the
4915
+ * dispatch/housekeeping ratio convention was retired. See Phase B
4916
+ * (PR review sweep) in `.claude/agents/orchestrator.md` for the
4917
+ * replacement workflow.
4889
4918
  */
4890
- declare function buildOrchestratorConventionsContent(tiers: ReadonlyArray<ResolvedAgentTier>, scopeGate?: ResolvedScopeGate, runRatio?: ResolvedRunRatio, scheduledTasks?: ResolvedScheduledTasks, unblockDependents?: ResolvedUnblockDependents, excludeBundles?: ReadonlyArray<string>): string;
4919
+ declare function buildOrchestratorConventionsContent(tiers: ReadonlyArray<ResolvedAgentTier>, scopeGate?: ResolvedScopeGate, _runRatio?: ResolvedRunRatio, scheduledTasks?: ResolvedScheduledTasks, unblockDependents?: ResolvedUnblockDependents, excludeBundles?: ReadonlyArray<string>): string;
4891
4920
  /**
4892
4921
  * Resolve the orchestrator-conventions rule content and the
4893
4922
  * check-blocked.sh procedure content for a given (possibly absent)
@@ -4898,6 +4927,12 @@ declare function buildOrchestratorConventionsContent(tiers: ReadonlyArray<Resolv
4898
4927
  * scheduled-tasks config alongside both rendered artifacts so callers
4899
4928
  * can splice them into their rule map and procedure map in a single
4900
4929
  * pass.
4930
+ *
4931
+ * The `runRatio` parameter is retained for API compatibility but no
4932
+ * longer feeds the rendered conventions content or the
4933
+ * `check-blocked.sh` script — the orchestrator runs a single linear
4934
+ * cycle on every invocation, so the run-counter / `tick` subcommand
4935
+ * were retired.
4901
4936
  */
4902
4937
  declare function resolveOrchestratorAssets(tierConfig?: AgentTierConfig, scopeGateConfig?: ScopeGateConfig, runRatioConfig?: RunRatioConfig, scheduledTasksConfig?: ScheduledTasksConfig, unblockDependentsConfig?: UnblockDependentsConfig, excludeBundles?: ReadonlyArray<string>): {
4903
4938
  readonly tiers: ReadonlyArray<ResolvedAgentTier>;
@@ -5987,7 +6022,7 @@ declare const vitestBundle: AgentRuleBundle;
5987
6022
  * Bundles that do not read any agent path (typescript, jest,
5988
6023
  * pnpm, etc.) stay as const exports and are referenced unchanged.
5989
6024
  */
5990
- declare function buildBuiltInBundles(paths?: ResolvedAgentPaths, issueDefaults?: ResolvedIssueDefaults, defaultAgentTier?: AgentModel): ReadonlyArray<AgentRuleBundle>;
6025
+ declare function buildBuiltInBundles(paths?: ResolvedAgentPaths, issueDefaults?: ResolvedIssueDefaults, defaultAgentTier?: AgentModel, bundleAgentTiers?: ReadonlyMap<string, AgentModel>): ReadonlyArray<AgentRuleBundle>;
5991
6026
  /**
5992
6027
  * Built-in rule bundles assembled with the default agent paths.
5993
6028
  * Preserved for backward compatibility with tests and consumers
package/lib/index.d.ts CHANGED
@@ -2760,6 +2760,26 @@ interface AgentConfigOptions {
2760
2760
  * @default 'balanced'
2761
2761
  */
2762
2762
  readonly defaultAgentTier?: "powerful" | "balanced" | "fast";
2763
+ /**
2764
+ * Per-bundle override for `defaultAgentTier`. Bundle name keyed
2765
+ * (matches the bundle's `name` field, e.g. `'meeting-analysis'`,
2766
+ * `'company-profile'`). Bundles not present in the map fall back
2767
+ * to `defaultAgentTier`.
2768
+ *
2769
+ * Only the six tier-aware bundles (`meeting-analysis`,
2770
+ * `company-profile`, `customer-profile`, `people-profile`,
2771
+ * `software-profile`, `maintenance-audit`) read this map — the
2772
+ * four reviewer/orchestrator agents (orchestrator, issue-worker,
2773
+ * pr-reviewer, requirements-reviewer) ignore both this map and
2774
+ * `defaultAgentTier` and stay on POWERFUL.
2775
+ *
2776
+ * Synth fails with a clear error if a key in the map does not
2777
+ * match one of the six tier-aware bundle names — typos or
2778
+ * deprecated bundle names would otherwise be silently ignored.
2779
+ *
2780
+ * @default {}
2781
+ */
2782
+ readonly bundleAgentTiers?: Readonly<Record<string, "powerful" | "balanced" | "fast">>;
2763
2783
  /**
2764
2784
  * Additional agent rules to generate alongside auto-detected and bundled rules.
2765
2785
  * Custom rules override bundled rules of the same name.
@@ -4897,17 +4917,19 @@ declare function renderUnblockDependentsScript(ud: ResolvedUnblockDependents): s
4897
4917
 
4898
4918
  /**
4899
4919
  * Build the check-blocked.sh procedure definition for a given resolved
4900
- * tier table, scope gate, and run-ratio config. `AgentConfig.preSynthesize`
4901
- * calls this with the consumer's resolved configs so the emitted
4902
- * script's `tier_of()` lookup, `scope_of()` thresholds, and
4903
- * `run_counter_tick()` cycle length match whatever the rendered
4904
- * orchestrator-conventions rule documents.
4920
+ * tier table and scope gate. `AgentConfig.preSynthesize` calls this
4921
+ * with the consumer's resolved configs so the emitted script's
4922
+ * `tier_of()` lookup and `scope_of()` thresholds match whatever the
4923
+ * rendered orchestrator-conventions rule documents.
4905
4924
  *
4906
4925
  * Scope-gate settings default to the bundle's built-in defaults
4907
4926
  * (small: ≤3 AC + ≤2 sources; medium: ≤6 AC + ≤5 sources;
4908
- * auto-file off) when the caller omits them. Run-ratio settings
4909
- * default to the openhi 4:1 cadence with the counter persisted at
4910
- * `.state/orchestrator-runs.json`.
4927
+ * auto-file off) when the caller omits them.
4928
+ *
4929
+ * The `runRatio` parameter is retained for API compatibility but is no
4930
+ * longer rendered into the script — the orchestrator runs a single
4931
+ * linear cycle on every invocation, so the run counter / tick
4932
+ * subcommand were retired.
4911
4933
  */
4912
4934
  declare function buildCheckBlockedProcedure(tiers: ReadonlyArray<ResolvedAgentTier>, scopeGate?: ResolvedScopeGate, runRatio?: ResolvedRunRatio): AgentProcedure;
4913
4935
  /*******************************************************************************
@@ -4928,15 +4950,22 @@ declare function buildCheckBlockedProcedure(tiers: ReadonlyArray<ResolvedAgentTi
4928
4950
  declare function buildUnblockDependentsProcedure(unblockDependents?: ResolvedUnblockDependents): AgentProcedure;
4929
4951
  /**
4930
4952
  * Build the orchestrator-conventions rule content for a given resolved
4931
- * tier table, scope gate, run-ratio, scheduled-tasks, and
4932
- * unblock-dependents config. The preamble is constant; each section
4933
- * below it is rendered from the supplied values so consumer overrides
4934
- * propagate into the generated rule.
4953
+ * tier table, scope gate, scheduled-tasks, and unblock-dependents
4954
+ * config. The preamble is constant; each section below it is rendered
4955
+ * from the supplied values so consumer overrides propagate into the
4956
+ * generated rule.
4935
4957
  *
4936
4958
  * Every optional parameter defaults to the bundle's built-in default
4937
4959
  * when the caller omits it.
4960
+ *
4961
+ * The `runRatio` parameter is retained for API compatibility but is
4962
+ * no longer rendered into the conventions content — the orchestrator
4963
+ * runs a single linear cycle on every invocation, so the
4964
+ * dispatch/housekeeping ratio convention was retired. See Phase B
4965
+ * (PR review sweep) in `.claude/agents/orchestrator.md` for the
4966
+ * replacement workflow.
4938
4967
  */
4939
- declare function buildOrchestratorConventionsContent(tiers: ReadonlyArray<ResolvedAgentTier>, scopeGate?: ResolvedScopeGate, runRatio?: ResolvedRunRatio, scheduledTasks?: ResolvedScheduledTasks, unblockDependents?: ResolvedUnblockDependents, excludeBundles?: ReadonlyArray<string>): string;
4968
+ declare function buildOrchestratorConventionsContent(tiers: ReadonlyArray<ResolvedAgentTier>, scopeGate?: ResolvedScopeGate, _runRatio?: ResolvedRunRatio, scheduledTasks?: ResolvedScheduledTasks, unblockDependents?: ResolvedUnblockDependents, excludeBundles?: ReadonlyArray<string>): string;
4940
4969
  /**
4941
4970
  * Resolve the orchestrator-conventions rule content and the
4942
4971
  * check-blocked.sh procedure content for a given (possibly absent)
@@ -4947,6 +4976,12 @@ declare function buildOrchestratorConventionsContent(tiers: ReadonlyArray<Resolv
4947
4976
  * scheduled-tasks config alongside both rendered artifacts so callers
4948
4977
  * can splice them into their rule map and procedure map in a single
4949
4978
  * pass.
4979
+ *
4980
+ * The `runRatio` parameter is retained for API compatibility but no
4981
+ * longer feeds the rendered conventions content or the
4982
+ * `check-blocked.sh` script — the orchestrator runs a single linear
4983
+ * cycle on every invocation, so the run-counter / `tick` subcommand
4984
+ * were retired.
4950
4985
  */
4951
4986
  declare function resolveOrchestratorAssets(tierConfig?: AgentTierConfig, scopeGateConfig?: ScopeGateConfig, runRatioConfig?: RunRatioConfig, scheduledTasksConfig?: ScheduledTasksConfig, unblockDependentsConfig?: UnblockDependentsConfig, excludeBundles?: ReadonlyArray<string>): {
4952
4987
  readonly tiers: ReadonlyArray<ResolvedAgentTier>;
@@ -6036,7 +6071,7 @@ declare const vitestBundle: AgentRuleBundle;
6036
6071
  * Bundles that do not read any agent path (typescript, jest,
6037
6072
  * pnpm, etc.) stay as const exports and are referenced unchanged.
6038
6073
  */
6039
- declare function buildBuiltInBundles(paths?: ResolvedAgentPaths, issueDefaults?: ResolvedIssueDefaults, defaultAgentTier?: AgentModel): ReadonlyArray<AgentRuleBundle>;
6074
+ declare function buildBuiltInBundles(paths?: ResolvedAgentPaths, issueDefaults?: ResolvedIssueDefaults, defaultAgentTier?: AgentModel, bundleAgentTiers?: ReadonlyMap<string, AgentModel>): ReadonlyArray<AgentRuleBundle>;
6040
6075
  /**
6041
6076
  * Built-in rule bundles assembled with the default agent paths.
6042
6077
  * Preserved for backward compatibility with tests and consumers