@codedrifters/configulator 0.0.298 → 0.0.300
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 +57 -22
- package/lib/index.d.ts +57 -22
- package/lib/index.js +490 -136
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +488 -136
- package/lib/index.mjs.map +1 -1
- package/package.json +5 -5
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
|
|
4852
|
-
*
|
|
4853
|
-
*
|
|
4854
|
-
*
|
|
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.
|
|
4860
|
-
*
|
|
4861
|
-
*
|
|
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,
|
|
4883
|
-
*
|
|
4884
|
-
*
|
|
4885
|
-
*
|
|
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,
|
|
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
|
|
@@ -8083,19 +8118,19 @@ declare const VERSION: {
|
|
|
8083
8118
|
/**
|
|
8084
8119
|
* Version of Astro to pin for AstroProject scaffolding.
|
|
8085
8120
|
*/
|
|
8086
|
-
readonly ASTRO_VERSION: "6.
|
|
8121
|
+
readonly ASTRO_VERSION: "6.3.1";
|
|
8087
8122
|
/**
|
|
8088
8123
|
* CDK CLI for workflows and command line operations.
|
|
8089
8124
|
*
|
|
8090
8125
|
* CLI and lib are versioned separately, so this is the CLI version.
|
|
8091
8126
|
*/
|
|
8092
|
-
readonly AWS_CDK_CLI_VERSION: "2.
|
|
8127
|
+
readonly AWS_CDK_CLI_VERSION: "2.1121.0";
|
|
8093
8128
|
/**
|
|
8094
8129
|
* CDK Version to use for construct projects.
|
|
8095
8130
|
*
|
|
8096
8131
|
* CLI and lib are versioned separately, so this is the lib version.
|
|
8097
8132
|
*/
|
|
8098
|
-
readonly AWS_CDK_LIB_VERSION: "2.
|
|
8133
|
+
readonly AWS_CDK_LIB_VERSION: "2.253.1";
|
|
8099
8134
|
/**
|
|
8100
8135
|
* Version of the AWS Constructs library to use.
|
|
8101
8136
|
*/
|
|
@@ -8112,11 +8147,11 @@ declare const VERSION: {
|
|
|
8112
8147
|
/**
|
|
8113
8148
|
* Version of PNPM to use in workflows at github actions.
|
|
8114
8149
|
*/
|
|
8115
|
-
readonly PNPM_VERSION: "11.0.
|
|
8150
|
+
readonly PNPM_VERSION: "11.0.9";
|
|
8116
8151
|
/**
|
|
8117
8152
|
* Version of Projen to use.
|
|
8118
8153
|
*/
|
|
8119
|
-
readonly PROJEN_VERSION: "0.99.
|
|
8154
|
+
readonly PROJEN_VERSION: "0.99.57";
|
|
8120
8155
|
/**
|
|
8121
8156
|
* Version of `actions/setup-node` to use in GitHub workflows.
|
|
8122
8157
|
* Tracks the version projen currently emits (see node_modules/projen/lib/github/workflows.js).
|
|
@@ -8130,15 +8165,15 @@ declare const VERSION: {
|
|
|
8130
8165
|
/**
|
|
8131
8166
|
* Version of @astrojs/starlight to pin for StarlightProject scaffolding.
|
|
8132
8167
|
*/
|
|
8133
|
-
readonly STARLIGHT_VERSION: "0.
|
|
8168
|
+
readonly STARLIGHT_VERSION: "0.39.2";
|
|
8134
8169
|
/**
|
|
8135
8170
|
* What version of the turborepo library should we use?
|
|
8136
8171
|
*/
|
|
8137
|
-
readonly TURBO_VERSION: "2.9.
|
|
8172
|
+
readonly TURBO_VERSION: "2.9.12";
|
|
8138
8173
|
/**
|
|
8139
8174
|
* Version of @types/node to use across all packages (pnpm catalog).
|
|
8140
8175
|
*/
|
|
8141
|
-
readonly TYPES_NODE_VERSION: "25.6.
|
|
8176
|
+
readonly TYPES_NODE_VERSION: "25.6.2";
|
|
8142
8177
|
/**
|
|
8143
8178
|
* What version of Vite to use (pnpm override). Pinned to 5.x so Vitest 4.x
|
|
8144
8179
|
* can load config (Vite 6+/7+ are ESM-only; see issue #142). Remove override
|
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
|
|
4901
|
-
*
|
|
4902
|
-
*
|
|
4903
|
-
*
|
|
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.
|
|
4909
|
-
*
|
|
4910
|
-
*
|
|
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,
|
|
4932
|
-
*
|
|
4933
|
-
*
|
|
4934
|
-
*
|
|
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,
|
|
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
|
|
@@ -8132,19 +8167,19 @@ declare const VERSION: {
|
|
|
8132
8167
|
/**
|
|
8133
8168
|
* Version of Astro to pin for AstroProject scaffolding.
|
|
8134
8169
|
*/
|
|
8135
|
-
readonly ASTRO_VERSION: "6.
|
|
8170
|
+
readonly ASTRO_VERSION: "6.3.1";
|
|
8136
8171
|
/**
|
|
8137
8172
|
* CDK CLI for workflows and command line operations.
|
|
8138
8173
|
*
|
|
8139
8174
|
* CLI and lib are versioned separately, so this is the CLI version.
|
|
8140
8175
|
*/
|
|
8141
|
-
readonly AWS_CDK_CLI_VERSION: "2.
|
|
8176
|
+
readonly AWS_CDK_CLI_VERSION: "2.1121.0";
|
|
8142
8177
|
/**
|
|
8143
8178
|
* CDK Version to use for construct projects.
|
|
8144
8179
|
*
|
|
8145
8180
|
* CLI and lib are versioned separately, so this is the lib version.
|
|
8146
8181
|
*/
|
|
8147
|
-
readonly AWS_CDK_LIB_VERSION: "2.
|
|
8182
|
+
readonly AWS_CDK_LIB_VERSION: "2.253.1";
|
|
8148
8183
|
/**
|
|
8149
8184
|
* Version of the AWS Constructs library to use.
|
|
8150
8185
|
*/
|
|
@@ -8161,11 +8196,11 @@ declare const VERSION: {
|
|
|
8161
8196
|
/**
|
|
8162
8197
|
* Version of PNPM to use in workflows at github actions.
|
|
8163
8198
|
*/
|
|
8164
|
-
readonly PNPM_VERSION: "11.0.
|
|
8199
|
+
readonly PNPM_VERSION: "11.0.9";
|
|
8165
8200
|
/**
|
|
8166
8201
|
* Version of Projen to use.
|
|
8167
8202
|
*/
|
|
8168
|
-
readonly PROJEN_VERSION: "0.99.
|
|
8203
|
+
readonly PROJEN_VERSION: "0.99.57";
|
|
8169
8204
|
/**
|
|
8170
8205
|
* Version of `actions/setup-node` to use in GitHub workflows.
|
|
8171
8206
|
* Tracks the version projen currently emits (see node_modules/projen/lib/github/workflows.js).
|
|
@@ -8179,15 +8214,15 @@ declare const VERSION: {
|
|
|
8179
8214
|
/**
|
|
8180
8215
|
* Version of @astrojs/starlight to pin for StarlightProject scaffolding.
|
|
8181
8216
|
*/
|
|
8182
|
-
readonly STARLIGHT_VERSION: "0.
|
|
8217
|
+
readonly STARLIGHT_VERSION: "0.39.2";
|
|
8183
8218
|
/**
|
|
8184
8219
|
* What version of the turborepo library should we use?
|
|
8185
8220
|
*/
|
|
8186
|
-
readonly TURBO_VERSION: "2.9.
|
|
8221
|
+
readonly TURBO_VERSION: "2.9.12";
|
|
8187
8222
|
/**
|
|
8188
8223
|
* Version of @types/node to use across all packages (pnpm catalog).
|
|
8189
8224
|
*/
|
|
8190
|
-
readonly TYPES_NODE_VERSION: "25.6.
|
|
8225
|
+
readonly TYPES_NODE_VERSION: "25.6.2";
|
|
8191
8226
|
/**
|
|
8192
8227
|
* What version of Vite to use (pnpm override). Pinned to 5.x so Vitest 4.x
|
|
8193
8228
|
* can load config (Vite 6+/7+ are ESM-only; see issue #142). Remove override
|