@codedrifters/configulator 0.0.154 → 0.0.155
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 +72 -2
- package/lib/index.d.ts +72 -2
- package/lib/index.js +1352 -733
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +1151 -540
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -622,6 +622,20 @@ interface AgentConfigOptions {
|
|
|
622
622
|
* Names of individual rules to exclude from any source.
|
|
623
623
|
*/
|
|
624
624
|
readonly excludeRules?: ReadonlyArray<string>;
|
|
625
|
+
/**
|
|
626
|
+
* Additional content to append to existing rules (from bundles or custom rules).
|
|
627
|
+
* Keys are rule names, values are markdown content appended after a horizontal rule.
|
|
628
|
+
* Use this to supplement bundle rules with project-specific additions without
|
|
629
|
+
* replacing the entire rule.
|
|
630
|
+
*
|
|
631
|
+
* @example
|
|
632
|
+
* ```ts
|
|
633
|
+
* ruleExtensions: {
|
|
634
|
+
* 'typescript-conventions': '## Additional Conventions\n\n- Use branded types for IDs',
|
|
635
|
+
* }
|
|
636
|
+
* ```
|
|
637
|
+
*/
|
|
638
|
+
readonly ruleExtensions?: Readonly<Record<string, string>>;
|
|
625
639
|
/**
|
|
626
640
|
* Claude Code settings.json configuration.
|
|
627
641
|
* Generated to .claude/settings.json (committed, team-shared).
|
|
@@ -671,11 +685,55 @@ declare class AgentConfig extends Component {
|
|
|
671
685
|
private resolveSubAgents;
|
|
672
686
|
}
|
|
673
687
|
|
|
688
|
+
/**
|
|
689
|
+
* AWS CDK bundle — auto-detected when `aws-cdk-lib` is in dependencies.
|
|
690
|
+
*/
|
|
691
|
+
declare const awsCdkBundle: AgentRuleBundle;
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Base bundle — always included unless `includeBaseRules: false`.
|
|
695
|
+
* Contains project-overview, interaction-style, and general-conventions rules.
|
|
696
|
+
*/
|
|
697
|
+
declare const baseBundle: AgentRuleBundle;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* Jest bundle — auto-detected when Jest is in dependencies.
|
|
701
|
+
*/
|
|
702
|
+
declare const jestBundle: AgentRuleBundle;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* PNPM bundle — auto-detected when the PnpmWorkspace component is present.
|
|
706
|
+
*/
|
|
707
|
+
declare const pnpmBundle: AgentRuleBundle;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Projen bundle — auto-detected when `projen` is in dependencies.
|
|
711
|
+
*/
|
|
712
|
+
declare const projenBundle: AgentRuleBundle;
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Turborepo bundle — auto-detected when the TurboRepo component is present.
|
|
716
|
+
*/
|
|
717
|
+
declare const turborepoBundle: AgentRuleBundle;
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* TypeScript bundle — auto-detected when a tsconfig is present.
|
|
721
|
+
*/
|
|
722
|
+
declare const typescriptBundle: AgentRuleBundle;
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Vitest bundle — auto-detected when the Vitest component is present.
|
|
726
|
+
*/
|
|
727
|
+
declare const vitestBundle: AgentRuleBundle;
|
|
728
|
+
|
|
674
729
|
/**
|
|
675
730
|
* Built-in rule bundles that ship with configulator.
|
|
676
731
|
* Each bundle is auto-detected based on project introspection.
|
|
677
732
|
*
|
|
678
|
-
*
|
|
733
|
+
* Order matters: base is first so its rules can be overridden by
|
|
734
|
+
* more specific bundles. The base bundle's `appliesWhen` always
|
|
735
|
+
* returns true; it is filtered by the `includeBaseRules` option
|
|
736
|
+
* in AgentConfig.
|
|
679
737
|
*/
|
|
680
738
|
declare const BUILT_IN_BUNDLES: ReadonlyArray<AgentRuleBundle>;
|
|
681
739
|
|
|
@@ -1988,6 +2046,18 @@ interface MonorepoProjectOptions extends Omit<TypeScriptProjectOptions$1, "defau
|
|
|
1988
2046
|
* @default true
|
|
1989
2047
|
*/
|
|
1990
2048
|
readonly configulatorRegistryConsumer?: boolean;
|
|
2049
|
+
/**
|
|
2050
|
+
* Enable AI agent configuration (Cursor, Claude Code rules).
|
|
2051
|
+
* When true, generates rule files at the monorepo root with auto-detected
|
|
2052
|
+
* bundles based on project and subproject introspection.
|
|
2053
|
+
*
|
|
2054
|
+
* @default false
|
|
2055
|
+
*/
|
|
2056
|
+
readonly agentConfig?: boolean;
|
|
2057
|
+
/**
|
|
2058
|
+
* Options for the AgentConfig component. Only used when `agentConfig` is true.
|
|
2059
|
+
*/
|
|
2060
|
+
readonly agentConfigOptions?: AgentConfigOptions;
|
|
1991
2061
|
}
|
|
1992
2062
|
declare class MonorepoProject extends TypeScriptAppProject {
|
|
1993
2063
|
/**
|
|
@@ -2260,4 +2330,4 @@ declare const COMPLETE_JOB_ID = "complete";
|
|
|
2260
2330
|
*/
|
|
2261
2331
|
declare function addBuildCompleteJob(buildWorkflow: BuildWorkflow): void;
|
|
2262
2332
|
|
|
2263
|
-
export { AGENT_MODEL, AGENT_PLATFORM, AGENT_RULE_SCOPE, AgentConfig, type AgentConfigOptions, type AgentModel, type AgentPlatform, type AgentPlatformOverrides, type AgentRule, type AgentRuleBundle, type AgentRuleScope, type AgentSkill, type AgentSubAgent, type AgentSubAgentPlatformOverrides, type ApproveMergeUpgradeOptions, type AwsAccount, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, type AwsDeploymentTargetOptions, type AwsLocalDeploymentConfig, type AwsOrganization, type AwsRegion, BUILT_IN_BUNDLES, CLAUDE_RULE_TARGET, COMPLETE_JOB_ID, type CiDeploymentConfig, type ClassTypeOptions, type ClaudeAutoModeConfig, type ClaudeHookAction, type ClaudeHookEntry, type ClaudeHooksConfig, type ClaudePermissionsConfig, type ClaudeRuleTarget, type ClaudeSandboxConfig, type ClaudeSettingsConfig, type CursorHookAction, type CursorHooksConfig, type CursorSettingsConfig, type DeployWorkflowOptions, type GitBranch, type IDependencyResolver, JsiiFaker, MCP_TRANSPORT, MERGE_METHODS, MIMIMUM_RELEASE_AGE, type McpServerConfig, type McpTransport, type MergeMethod, MonorepoProject, type MonorepoProjectOptions, PROD_DEPLOY_NAME, PnpmWorkspace, type PnpmWorkspaceOptions, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, type RemoteCacheOptions, ResetTask, type ResetTaskOptions, TestRunner, TurboRepo, type TurboRepoOptions, TurboRepoTask, type TurboRepoTaskOptions, TypeScriptConfig, TypeScriptProject, type TypeScriptProjectOptions, VERSION, VERSION_KEYS_SKIP, VERSION_NPM_PACKAGES, VSCodeConfig, type VersionKey, Vitest, type VitestConfigOptions, type VitestOptions, addApproveMergeUpgradeWorkflow, addBuildCompleteJob, getLatestEligibleVersion };
|
|
2333
|
+
export { AGENT_MODEL, AGENT_PLATFORM, AGENT_RULE_SCOPE, AgentConfig, type AgentConfigOptions, type AgentModel, type AgentPlatform, type AgentPlatformOverrides, type AgentRule, type AgentRuleBundle, type AgentRuleScope, type AgentSkill, type AgentSubAgent, type AgentSubAgentPlatformOverrides, type ApproveMergeUpgradeOptions, type AwsAccount, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, type AwsDeploymentTargetOptions, type AwsLocalDeploymentConfig, type AwsOrganization, type AwsRegion, BUILT_IN_BUNDLES, CLAUDE_RULE_TARGET, COMPLETE_JOB_ID, type CiDeploymentConfig, type ClassTypeOptions, type ClaudeAutoModeConfig, type ClaudeHookAction, type ClaudeHookEntry, type ClaudeHooksConfig, type ClaudePermissionsConfig, type ClaudeRuleTarget, type ClaudeSandboxConfig, type ClaudeSettingsConfig, type CursorHookAction, type CursorHooksConfig, type CursorSettingsConfig, type DeployWorkflowOptions, type GitBranch, type IDependencyResolver, JsiiFaker, MCP_TRANSPORT, MERGE_METHODS, MIMIMUM_RELEASE_AGE, type McpServerConfig, type McpTransport, type MergeMethod, MonorepoProject, type MonorepoProjectOptions, PROD_DEPLOY_NAME, PnpmWorkspace, type PnpmWorkspaceOptions, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, type RemoteCacheOptions, ResetTask, type ResetTaskOptions, TestRunner, TurboRepo, type TurboRepoOptions, TurboRepoTask, type TurboRepoTaskOptions, TypeScriptConfig, TypeScriptProject, type TypeScriptProjectOptions, VERSION, VERSION_KEYS_SKIP, VERSION_NPM_PACKAGES, VSCodeConfig, type VersionKey, Vitest, type VitestConfigOptions, type VitestOptions, addApproveMergeUpgradeWorkflow, addBuildCompleteJob, awsCdkBundle, baseBundle, getLatestEligibleVersion, jestBundle, pnpmBundle, projenBundle, turborepoBundle, typescriptBundle, vitestBundle };
|
package/lib/index.d.ts
CHANGED
|
@@ -671,6 +671,20 @@ interface AgentConfigOptions {
|
|
|
671
671
|
* Names of individual rules to exclude from any source.
|
|
672
672
|
*/
|
|
673
673
|
readonly excludeRules?: ReadonlyArray<string>;
|
|
674
|
+
/**
|
|
675
|
+
* Additional content to append to existing rules (from bundles or custom rules).
|
|
676
|
+
* Keys are rule names, values are markdown content appended after a horizontal rule.
|
|
677
|
+
* Use this to supplement bundle rules with project-specific additions without
|
|
678
|
+
* replacing the entire rule.
|
|
679
|
+
*
|
|
680
|
+
* @example
|
|
681
|
+
* ```ts
|
|
682
|
+
* ruleExtensions: {
|
|
683
|
+
* 'typescript-conventions': '## Additional Conventions\n\n- Use branded types for IDs',
|
|
684
|
+
* }
|
|
685
|
+
* ```
|
|
686
|
+
*/
|
|
687
|
+
readonly ruleExtensions?: Readonly<Record<string, string>>;
|
|
674
688
|
/**
|
|
675
689
|
* Claude Code settings.json configuration.
|
|
676
690
|
* Generated to .claude/settings.json (committed, team-shared).
|
|
@@ -720,11 +734,55 @@ declare class AgentConfig extends Component {
|
|
|
720
734
|
private resolveSubAgents;
|
|
721
735
|
}
|
|
722
736
|
|
|
737
|
+
/**
|
|
738
|
+
* AWS CDK bundle — auto-detected when `aws-cdk-lib` is in dependencies.
|
|
739
|
+
*/
|
|
740
|
+
declare const awsCdkBundle: AgentRuleBundle;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Base bundle — always included unless `includeBaseRules: false`.
|
|
744
|
+
* Contains project-overview, interaction-style, and general-conventions rules.
|
|
745
|
+
*/
|
|
746
|
+
declare const baseBundle: AgentRuleBundle;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Jest bundle — auto-detected when Jest is in dependencies.
|
|
750
|
+
*/
|
|
751
|
+
declare const jestBundle: AgentRuleBundle;
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* PNPM bundle — auto-detected when the PnpmWorkspace component is present.
|
|
755
|
+
*/
|
|
756
|
+
declare const pnpmBundle: AgentRuleBundle;
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* Projen bundle — auto-detected when `projen` is in dependencies.
|
|
760
|
+
*/
|
|
761
|
+
declare const projenBundle: AgentRuleBundle;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Turborepo bundle — auto-detected when the TurboRepo component is present.
|
|
765
|
+
*/
|
|
766
|
+
declare const turborepoBundle: AgentRuleBundle;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* TypeScript bundle — auto-detected when a tsconfig is present.
|
|
770
|
+
*/
|
|
771
|
+
declare const typescriptBundle: AgentRuleBundle;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Vitest bundle — auto-detected when the Vitest component is present.
|
|
775
|
+
*/
|
|
776
|
+
declare const vitestBundle: AgentRuleBundle;
|
|
777
|
+
|
|
723
778
|
/**
|
|
724
779
|
* Built-in rule bundles that ship with configulator.
|
|
725
780
|
* Each bundle is auto-detected based on project introspection.
|
|
726
781
|
*
|
|
727
|
-
*
|
|
782
|
+
* Order matters: base is first so its rules can be overridden by
|
|
783
|
+
* more specific bundles. The base bundle's `appliesWhen` always
|
|
784
|
+
* returns true; it is filtered by the `includeBaseRules` option
|
|
785
|
+
* in AgentConfig.
|
|
728
786
|
*/
|
|
729
787
|
declare const BUILT_IN_BUNDLES: ReadonlyArray<AgentRuleBundle>;
|
|
730
788
|
|
|
@@ -2037,6 +2095,18 @@ interface MonorepoProjectOptions extends Omit<TypeScriptProjectOptions$1, "defau
|
|
|
2037
2095
|
* @default true
|
|
2038
2096
|
*/
|
|
2039
2097
|
readonly configulatorRegistryConsumer?: boolean;
|
|
2098
|
+
/**
|
|
2099
|
+
* Enable AI agent configuration (Cursor, Claude Code rules).
|
|
2100
|
+
* When true, generates rule files at the monorepo root with auto-detected
|
|
2101
|
+
* bundles based on project and subproject introspection.
|
|
2102
|
+
*
|
|
2103
|
+
* @default false
|
|
2104
|
+
*/
|
|
2105
|
+
readonly agentConfig?: boolean;
|
|
2106
|
+
/**
|
|
2107
|
+
* Options for the AgentConfig component. Only used when `agentConfig` is true.
|
|
2108
|
+
*/
|
|
2109
|
+
readonly agentConfigOptions?: AgentConfigOptions;
|
|
2040
2110
|
}
|
|
2041
2111
|
declare class MonorepoProject extends TypeScriptAppProject {
|
|
2042
2112
|
/**
|
|
@@ -2309,5 +2379,5 @@ declare const COMPLETE_JOB_ID = "complete";
|
|
|
2309
2379
|
*/
|
|
2310
2380
|
declare function addBuildCompleteJob(buildWorkflow: BuildWorkflow): void;
|
|
2311
2381
|
|
|
2312
|
-
export { AGENT_MODEL, AGENT_PLATFORM, AGENT_RULE_SCOPE, AgentConfig, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, BUILT_IN_BUNDLES, CLAUDE_RULE_TARGET, COMPLETE_JOB_ID, JsiiFaker, MCP_TRANSPORT, MERGE_METHODS, MIMIMUM_RELEASE_AGE, MonorepoProject, PROD_DEPLOY_NAME, PnpmWorkspace, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, ResetTask, TestRunner, TurboRepo, TurboRepoTask, TypeScriptConfig, TypeScriptProject, VERSION, VERSION_KEYS_SKIP, VERSION_NPM_PACKAGES, VSCodeConfig, Vitest, addApproveMergeUpgradeWorkflow, addBuildCompleteJob, getLatestEligibleVersion };
|
|
2382
|
+
export { AGENT_MODEL, AGENT_PLATFORM, AGENT_RULE_SCOPE, AgentConfig, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, BUILT_IN_BUNDLES, CLAUDE_RULE_TARGET, COMPLETE_JOB_ID, JsiiFaker, MCP_TRANSPORT, MERGE_METHODS, MIMIMUM_RELEASE_AGE, MonorepoProject, PROD_DEPLOY_NAME, PnpmWorkspace, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, ResetTask, TestRunner, TurboRepo, TurboRepoTask, TypeScriptConfig, TypeScriptProject, VERSION, VERSION_KEYS_SKIP, VERSION_NPM_PACKAGES, VSCodeConfig, Vitest, addApproveMergeUpgradeWorkflow, addBuildCompleteJob, awsCdkBundle, baseBundle, getLatestEligibleVersion, jestBundle, pnpmBundle, projenBundle, turborepoBundle, typescriptBundle, vitestBundle };
|
|
2313
2383
|
export type { AgentConfigOptions, AgentModel, AgentPlatform, AgentPlatformOverrides, AgentRule, AgentRuleBundle, AgentRuleScope, AgentSkill, AgentSubAgent, AgentSubAgentPlatformOverrides, ApproveMergeUpgradeOptions, AwsAccount, AwsDeploymentTargetOptions, AwsLocalDeploymentConfig, AwsOrganization, AwsRegion, CiDeploymentConfig, ClassTypeOptions, ClaudeAutoModeConfig, ClaudeHookAction, ClaudeHookEntry, ClaudeHooksConfig, ClaudePermissionsConfig, ClaudeRuleTarget, ClaudeSandboxConfig, ClaudeSettingsConfig, CursorHookAction, CursorHooksConfig, CursorSettingsConfig, DeployWorkflowOptions, GitBranch, IDependencyResolver, McpServerConfig, McpTransport, MergeMethod, MonorepoProjectOptions, PnpmWorkspaceOptions, RemoteCacheOptions, ResetTaskOptions, TurboRepoOptions, TurboRepoTaskOptions, TypeScriptProjectOptions, VersionKey, VitestConfigOptions, VitestOptions };
|