@codedrifters/configulator 0.0.252 → 0.0.254
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 +143 -2
- package/lib/index.d.ts +144 -3
- package/lib/index.js +48 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +46 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +2 -2
package/lib/index.d.mts
CHANGED
|
@@ -846,6 +846,85 @@ interface ClaudeSettingsConfig {
|
|
|
846
846
|
*/
|
|
847
847
|
readonly respectGitignore?: boolean;
|
|
848
848
|
}
|
|
849
|
+
/*******************************************************************************
|
|
850
|
+
*
|
|
851
|
+
* Agent Paths Config
|
|
852
|
+
*
|
|
853
|
+
******************************************************************************/
|
|
854
|
+
/**
|
|
855
|
+
* Consumer-facing overrides for the output-path roots used by agent
|
|
856
|
+
* bundles. Every field is optional; unset fields cascade from their
|
|
857
|
+
* parent root (resolved by `resolveAgentPaths()` in
|
|
858
|
+
* `./bundles/paths.ts`).
|
|
859
|
+
*
|
|
860
|
+
* Bundles read these values indirectly through `DEFAULT_AGENT_PATHS`
|
|
861
|
+
* (module-eval-time defaults) today. Per-project propagation through
|
|
862
|
+
* `AgentConfig.resolveRules` lands in a follow-up change.
|
|
863
|
+
*/
|
|
864
|
+
interface AgentPathsConfig {
|
|
865
|
+
/**
|
|
866
|
+
* Root folder for the monorepo-wide Starlight docs site content.
|
|
867
|
+
* @default "docs/src/content/docs"
|
|
868
|
+
*/
|
|
869
|
+
readonly docsRoot?: string;
|
|
870
|
+
/**
|
|
871
|
+
* Root folder for all research outputs (scopes, slices,
|
|
872
|
+
* deliverables) produced by the `research-analyst` pipeline.
|
|
873
|
+
* @default "docs/research"
|
|
874
|
+
*/
|
|
875
|
+
readonly researchRoot?: string;
|
|
876
|
+
/**
|
|
877
|
+
* Root folder for profile documents (people, companies, software,
|
|
878
|
+
* industries).
|
|
879
|
+
* @default "<docsRoot>/profiles"
|
|
880
|
+
*/
|
|
881
|
+
readonly profilesRoot?: string;
|
|
882
|
+
/**
|
|
883
|
+
* Root folder for meeting notes and transcripts produced by the
|
|
884
|
+
* `meeting-analyst` pipeline.
|
|
885
|
+
* @default "<docsRoot>/meetings"
|
|
886
|
+
*/
|
|
887
|
+
readonly meetingsRoot?: string;
|
|
888
|
+
/**
|
|
889
|
+
* Root folder for final requirement documents produced by the
|
|
890
|
+
* `requirements-writer` agent.
|
|
891
|
+
* @default "<docsRoot>/requirements"
|
|
892
|
+
*/
|
|
893
|
+
readonly requirementsRoot?: string;
|
|
894
|
+
/**
|
|
895
|
+
* Root folder where the `requirements-analyst` writes requirement
|
|
896
|
+
* proposals before they are promoted into the final requirements
|
|
897
|
+
* tree.
|
|
898
|
+
* @default "<researchRoot>/requirements"
|
|
899
|
+
*/
|
|
900
|
+
readonly researchRequirementsRoot?: string;
|
|
901
|
+
/**
|
|
902
|
+
* Root folder for BCM (Business Capability Model) capability-model
|
|
903
|
+
* documents produced by the `bcm-writer` agent.
|
|
904
|
+
* @default "<docsRoot>/concepts"
|
|
905
|
+
*/
|
|
906
|
+
readonly bcmRoot?: string;
|
|
907
|
+
/**
|
|
908
|
+
* Root folder for people profiles.
|
|
909
|
+
* @default "<profilesRoot>/people"
|
|
910
|
+
*/
|
|
911
|
+
readonly peopleRoot?: string;
|
|
912
|
+
/**
|
|
913
|
+
* Root folder for company profiles.
|
|
914
|
+
* @default "<profilesRoot>/companies"
|
|
915
|
+
*/
|
|
916
|
+
readonly companiesRoot?: string;
|
|
917
|
+
/**
|
|
918
|
+
* Root folder for software profiles.
|
|
919
|
+
* @default "<profilesRoot>/software"
|
|
920
|
+
*/
|
|
921
|
+
readonly softwareRoot?: string;
|
|
922
|
+
/**
|
|
923
|
+
* Root folder for industry profiles.
|
|
924
|
+
* @default "<profilesRoot>/industries"
|
|
925
|
+
*/
|
|
926
|
+
readonly industriesRoot?: string;
|
|
927
|
+
}
|
|
849
928
|
/*******************************************************************************
|
|
850
929
|
*
|
|
851
930
|
* AgentConfig Options
|
|
@@ -932,6 +1011,18 @@ interface AgentConfigOptions {
|
|
|
932
1011
|
* file visibility control.
|
|
933
1012
|
*/
|
|
934
1013
|
readonly cursorSettings?: CursorSettingsConfig;
|
|
1014
|
+
/**
|
|
1015
|
+
* Overrides for the output-path roots used by agent bundles
|
|
1016
|
+
* (requirements, BCM, profiles, meetings, research). Unset fields
|
|
1017
|
+
* fall back to the defaults captured in
|
|
1018
|
+
* `bundles/paths.ts#DEFAULT_AGENT_PATHS`.
|
|
1019
|
+
*
|
|
1020
|
+
* This option is the first of the Group A framework injection
|
|
1021
|
+
* points from epic #414. Per-project propagation of these values
|
|
1022
|
+
* into bundle rule content lands in a follow-up — setting it today
|
|
1023
|
+
* does not yet alter generated rules.
|
|
1024
|
+
*/
|
|
1025
|
+
readonly paths?: AgentPathsConfig;
|
|
935
1026
|
}
|
|
936
1027
|
|
|
937
1028
|
/**
|
|
@@ -1119,6 +1210,56 @@ declare const meetingAnalysisBundle: AgentRuleBundle;
|
|
|
1119
1210
|
******************************************************************************/
|
|
1120
1211
|
declare const orchestratorBundle: AgentRuleBundle;
|
|
1121
1212
|
|
|
1213
|
+
/**
|
|
1214
|
+
* Fully-resolved agent output-path roots. Every property is required.
|
|
1215
|
+
*
|
|
1216
|
+
* This is the shape that bundle code consumes at module-eval time via
|
|
1217
|
+
* `DEFAULT_AGENT_PATHS`, and the shape that `resolveAgentPaths()`
|
|
1218
|
+
* returns when consumers supply a partial `AgentPathsConfig` override.
|
|
1219
|
+
*/
|
|
1220
|
+
interface ResolvedAgentPaths {
|
|
1221
|
+
readonly docsRoot: string;
|
|
1222
|
+
readonly researchRoot: string;
|
|
1223
|
+
readonly profilesRoot: string;
|
|
1224
|
+
readonly meetingsRoot: string;
|
|
1225
|
+
readonly requirementsRoot: string;
|
|
1226
|
+
readonly researchRequirementsRoot: string;
|
|
1227
|
+
readonly bcmRoot: string;
|
|
1228
|
+
readonly peopleRoot: string;
|
|
1229
|
+
readonly companiesRoot: string;
|
|
1230
|
+
readonly softwareRoot: string;
|
|
1231
|
+
readonly industriesRoot: string;
|
|
1232
|
+
}
|
|
1233
|
+
/**
|
|
1234
|
+
* Canonical default values for every agent path. These mirror the
|
|
1235
|
+
* hardcoded paths that bundles used before `AgentPathsConfig` existed,
|
|
1236
|
+
* so `DEFAULT_AGENT_PATHS.*` can be substituted into bundle rule
|
|
1237
|
+
* content at module-eval time without changing the generated
|
|
1238
|
+
* `.claude/rules/*.md` snapshot.
|
|
1239
|
+
*
|
|
1240
|
+
* Consumers override the defaults by passing an `AgentPathsConfig`
|
|
1241
|
+
* through `AgentConfigOptions.paths` and resolving it with
|
|
1242
|
+
* `resolveAgentPaths()`. Per-project propagation into bundle rule
|
|
1243
|
+
* content is a follow-up — this export is the first step: interface +
|
|
1244
|
+
* resolver land in this PR; the `AgentConfig.resolveRules` wiring lands
|
|
1245
|
+
* next.
|
|
1246
|
+
*/
|
|
1247
|
+
declare const DEFAULT_AGENT_PATHS: ResolvedAgentPaths;
|
|
1248
|
+
/**
|
|
1249
|
+
* Resolve a partial `AgentPathsConfig` into a fully-populated
|
|
1250
|
+
* `ResolvedAgentPaths`. Unset fields cascade from their parent root:
|
|
1251
|
+
*
|
|
1252
|
+
* - `profilesRoot`, `meetingsRoot`, `requirementsRoot`, and `bcmRoot`
|
|
1253
|
+
* derive from `docsRoot` when not explicitly set.
|
|
1254
|
+
* - `researchRequirementsRoot` derives from `researchRoot` when not
|
|
1255
|
+
* explicitly set.
|
|
1256
|
+
* - `peopleRoot`, `companiesRoot`, `softwareRoot`, and `industriesRoot`
|
|
1257
|
+
* derive from the resolved `profilesRoot` when not explicitly set,
|
|
1258
|
+
* so that overriding `docsRoot` alone (or overriding `profilesRoot`
|
|
1259
|
+
* alone) propagates correctly through every dependent root.
|
|
1260
|
+
*/
|
|
1261
|
+
declare function resolveAgentPaths(paths?: AgentPathsConfig): ResolvedAgentPaths;
|
|
1262
|
+
|
|
1122
1263
|
/**
|
|
1123
1264
|
* People-profile bundle — enabled by default.
|
|
1124
1265
|
*
|
|
@@ -2018,7 +2159,7 @@ declare const VERSION: {
|
|
|
2018
2159
|
/**
|
|
2019
2160
|
* Version of Astro to pin for AstroProject scaffolding.
|
|
2020
2161
|
*/
|
|
2021
|
-
readonly ASTRO_VERSION: "6.1.
|
|
2162
|
+
readonly ASTRO_VERSION: "6.1.8";
|
|
2022
2163
|
/**
|
|
2023
2164
|
* CDK CLI for workflows and command line operations.
|
|
2024
2165
|
*
|
|
@@ -3876,4 +4017,4 @@ declare const COMPLETE_JOB_ID = "complete";
|
|
|
3876
4017
|
*/
|
|
3877
4018
|
declare function addBuildCompleteJob(buildWorkflow: BuildWorkflow): void;
|
|
3878
4019
|
|
|
3879
|
-
export { AGENT_MODEL, AGENT_PLATFORM, AGENT_RULE_SCOPE, AgentConfig, type AgentConfigOptions, type AgentModel, type AgentPlatform, type AgentPlatformOverrides, type AgentProcedure, type AgentRule, type AgentRuleBundle, type AgentRuleScope, type AgentSkill, type AgentSubAgent, type AgentSubAgentPlatformOverrides, type ApproveMergeUpgradeOptions, AstroConfig, type AstroConfigOptions, type AstroIntegrationSpec, AstroOutput, AstroProject, type AstroProjectOptions, type AwsAccount, AwsCdkProject, type AwsCdkProjectOptions, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, type AwsDeploymentTargetOptions, type AwsLocalDeploymentConfig, type AwsOrganization, type AwsRegion, AwsTeardownWorkflow, type AwsTeardownWorkflowOptions, 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 CopilotHandoff, type CursorHookAction, type CursorHooksConfig, type CursorSettingsConfig, DEFAULT_PRIORITY_LABELS, DEFAULT_STATUS_LABELS, DEFAULT_TEARDOWN_BRANCH_PATTERNS, DEFAULT_TYPE_LABELS, type DeployWorkflowOptions, type DeploymentMetadata, type GitBranch, type GitHubBoardMetadata, type GitHubProjectMetadata, type GitHubSprintMetadata, type IDependencyResolver, JsiiFaker, LAYOUT_ENFORCEMENT, LAYOUT_ROOT_BY_PROJECT_TYPE, type LabelDefinition, type LayoutEnforcement, type LayoutViolation, MCP_TRANSPORT, MERGE_METHODS, MIMIMUM_RELEASE_AGE, MINIMUM_RELEASE_AGE, MONOREPO_LAYOUT, type McpServerConfig, type McpTransport, type MergeMethod, type MonorepoLayoutRoot, MonorepoProject, type MonorepoProjectOptions, type OrganizationMetadata, PROD_DEPLOY_NAME, PnpmWorkspace, type PnpmWorkspaceOptions, ProjectMetadata, type ProjectMetadataOptions, REQUIREMENTS_WRITER_PATHS, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, type RemoteCacheOptions, type RepositoryMetadata, ResetTask, type ResetTaskOptions, type ResolvedProjectMetadata, STARLIGHT_ROLE, type SlackMetadata, type StarlightEditLink, type StarlightLogo, StarlightProject, type StarlightProjectOptions, type StarlightRole, type StarlightSidebarItem, type StarlightSingletonViolation, type StarlightSocialLink, type SyncLabelsOptions, type TemplateResolveResult, 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, addSyncLabelsWorkflow, awsCdkBundle, baseBundle, bcmWriterBundle, companyProfileBundle, formatLayoutViolation, formatStarlightSingletonViolation, getLatestEligibleVersion, githubWorkflowBundle, industryDiscoveryBundle, jestBundle, maintenanceAuditBundle, meetingAnalysisBundle, orchestratorBundle, peopleProfileBundle, pnpmBundle, prReviewBundle, projenBundle, requirementsAnalystBundle, requirementsReviewerBundle, requirementsWriterBundle, researchPipelineBundle, resolveAstroProjectOutdir, resolveAwsCdkProjectOutdir, resolveModelAlias, resolveOutdirFromPackageName, resolveTemplateVariables, resolveTypeScriptProjectOutdir, slackBundle, softwareProfileBundle, turborepoBundle, typescriptBundle, validateMonorepoLayout, validateStarlightSingleton, vitestBundle };
|
|
4020
|
+
export { AGENT_MODEL, AGENT_PLATFORM, AGENT_RULE_SCOPE, AgentConfig, type AgentConfigOptions, type AgentModel, type AgentPathsConfig, type AgentPlatform, type AgentPlatformOverrides, type AgentProcedure, type AgentRule, type AgentRuleBundle, type AgentRuleScope, type AgentSkill, type AgentSubAgent, type AgentSubAgentPlatformOverrides, type ApproveMergeUpgradeOptions, AstroConfig, type AstroConfigOptions, type AstroIntegrationSpec, AstroOutput, AstroProject, type AstroProjectOptions, type AwsAccount, AwsCdkProject, type AwsCdkProjectOptions, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, type AwsDeploymentTargetOptions, type AwsLocalDeploymentConfig, type AwsOrganization, type AwsRegion, AwsTeardownWorkflow, type AwsTeardownWorkflowOptions, 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 CopilotHandoff, type CursorHookAction, type CursorHooksConfig, type CursorSettingsConfig, DEFAULT_AGENT_PATHS, DEFAULT_PRIORITY_LABELS, DEFAULT_STATUS_LABELS, DEFAULT_TEARDOWN_BRANCH_PATTERNS, DEFAULT_TYPE_LABELS, type DeployWorkflowOptions, type DeploymentMetadata, type GitBranch, type GitHubBoardMetadata, type GitHubProjectMetadata, type GitHubSprintMetadata, type IDependencyResolver, JsiiFaker, LAYOUT_ENFORCEMENT, LAYOUT_ROOT_BY_PROJECT_TYPE, type LabelDefinition, type LayoutEnforcement, type LayoutViolation, MCP_TRANSPORT, MERGE_METHODS, MIMIMUM_RELEASE_AGE, MINIMUM_RELEASE_AGE, MONOREPO_LAYOUT, type McpServerConfig, type McpTransport, type MergeMethod, type MonorepoLayoutRoot, MonorepoProject, type MonorepoProjectOptions, type OrganizationMetadata, PROD_DEPLOY_NAME, PnpmWorkspace, type PnpmWorkspaceOptions, ProjectMetadata, type ProjectMetadataOptions, REQUIREMENTS_WRITER_PATHS, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, type RemoteCacheOptions, type RepositoryMetadata, ResetTask, type ResetTaskOptions, type ResolvedAgentPaths, type ResolvedProjectMetadata, STARLIGHT_ROLE, type SlackMetadata, type StarlightEditLink, type StarlightLogo, StarlightProject, type StarlightProjectOptions, type StarlightRole, type StarlightSidebarItem, type StarlightSingletonViolation, type StarlightSocialLink, type SyncLabelsOptions, type TemplateResolveResult, 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, addSyncLabelsWorkflow, awsCdkBundle, baseBundle, bcmWriterBundle, companyProfileBundle, formatLayoutViolation, formatStarlightSingletonViolation, getLatestEligibleVersion, githubWorkflowBundle, industryDiscoveryBundle, jestBundle, maintenanceAuditBundle, meetingAnalysisBundle, orchestratorBundle, peopleProfileBundle, pnpmBundle, prReviewBundle, projenBundle, requirementsAnalystBundle, requirementsReviewerBundle, requirementsWriterBundle, researchPipelineBundle, resolveAgentPaths, resolveAstroProjectOutdir, resolveAwsCdkProjectOutdir, resolveModelAlias, resolveOutdirFromPackageName, resolveTemplateVariables, resolveTypeScriptProjectOutdir, slackBundle, softwareProfileBundle, turborepoBundle, typescriptBundle, validateMonorepoLayout, validateStarlightSingleton, vitestBundle };
|
package/lib/index.d.ts
CHANGED
|
@@ -895,6 +895,85 @@ interface ClaudeSettingsConfig {
|
|
|
895
895
|
*/
|
|
896
896
|
readonly respectGitignore?: boolean;
|
|
897
897
|
}
|
|
898
|
+
/*******************************************************************************
|
|
899
|
+
*
|
|
900
|
+
* Agent Paths Config
|
|
901
|
+
*
|
|
902
|
+
******************************************************************************/
|
|
903
|
+
/**
|
|
904
|
+
* Consumer-facing overrides for the output-path roots used by agent
|
|
905
|
+
* bundles. Every field is optional; unset fields cascade from their
|
|
906
|
+
* parent root (resolved by `resolveAgentPaths()` in
|
|
907
|
+
* `./bundles/paths.ts`).
|
|
908
|
+
*
|
|
909
|
+
* Bundles read these values indirectly through `DEFAULT_AGENT_PATHS`
|
|
910
|
+
* (module-eval-time defaults) today. Per-project propagation through
|
|
911
|
+
* `AgentConfig.resolveRules` lands in a follow-up change.
|
|
912
|
+
*/
|
|
913
|
+
interface AgentPathsConfig {
|
|
914
|
+
/**
|
|
915
|
+
* Root folder for the monorepo-wide Starlight docs site content.
|
|
916
|
+
* @default "docs/src/content/docs"
|
|
917
|
+
*/
|
|
918
|
+
readonly docsRoot?: string;
|
|
919
|
+
/**
|
|
920
|
+
* Root folder for all research outputs (scopes, slices,
|
|
921
|
+
* deliverables) produced by the `research-analyst` pipeline.
|
|
922
|
+
* @default "docs/research"
|
|
923
|
+
*/
|
|
924
|
+
readonly researchRoot?: string;
|
|
925
|
+
/**
|
|
926
|
+
* Root folder for profile documents (people, companies, software,
|
|
927
|
+
* industries).
|
|
928
|
+
* @default "<docsRoot>/profiles"
|
|
929
|
+
*/
|
|
930
|
+
readonly profilesRoot?: string;
|
|
931
|
+
/**
|
|
932
|
+
* Root folder for meeting notes and transcripts produced by the
|
|
933
|
+
* `meeting-analyst` pipeline.
|
|
934
|
+
* @default "<docsRoot>/meetings"
|
|
935
|
+
*/
|
|
936
|
+
readonly meetingsRoot?: string;
|
|
937
|
+
/**
|
|
938
|
+
* Root folder for final requirement documents produced by the
|
|
939
|
+
* `requirements-writer` agent.
|
|
940
|
+
* @default "<docsRoot>/requirements"
|
|
941
|
+
*/
|
|
942
|
+
readonly requirementsRoot?: string;
|
|
943
|
+
/**
|
|
944
|
+
* Root folder where the `requirements-analyst` writes requirement
|
|
945
|
+
* proposals before they are promoted into the final requirements
|
|
946
|
+
* tree.
|
|
947
|
+
* @default "<researchRoot>/requirements"
|
|
948
|
+
*/
|
|
949
|
+
readonly researchRequirementsRoot?: string;
|
|
950
|
+
/**
|
|
951
|
+
* Root folder for BCM (Business Capability Model) capability-model
|
|
952
|
+
* documents produced by the `bcm-writer` agent.
|
|
953
|
+
* @default "<docsRoot>/concepts"
|
|
954
|
+
*/
|
|
955
|
+
readonly bcmRoot?: string;
|
|
956
|
+
/**
|
|
957
|
+
* Root folder for people profiles.
|
|
958
|
+
* @default "<profilesRoot>/people"
|
|
959
|
+
*/
|
|
960
|
+
readonly peopleRoot?: string;
|
|
961
|
+
/**
|
|
962
|
+
* Root folder for company profiles.
|
|
963
|
+
* @default "<profilesRoot>/companies"
|
|
964
|
+
*/
|
|
965
|
+
readonly companiesRoot?: string;
|
|
966
|
+
/**
|
|
967
|
+
* Root folder for software profiles.
|
|
968
|
+
* @default "<profilesRoot>/software"
|
|
969
|
+
*/
|
|
970
|
+
readonly softwareRoot?: string;
|
|
971
|
+
/**
|
|
972
|
+
* Root folder for industry profiles.
|
|
973
|
+
* @default "<profilesRoot>/industries"
|
|
974
|
+
*/
|
|
975
|
+
readonly industriesRoot?: string;
|
|
976
|
+
}
|
|
898
977
|
/*******************************************************************************
|
|
899
978
|
*
|
|
900
979
|
* AgentConfig Options
|
|
@@ -981,6 +1060,18 @@ interface AgentConfigOptions {
|
|
|
981
1060
|
* file visibility control.
|
|
982
1061
|
*/
|
|
983
1062
|
readonly cursorSettings?: CursorSettingsConfig;
|
|
1063
|
+
/**
|
|
1064
|
+
* Overrides for the output-path roots used by agent bundles
|
|
1065
|
+
* (requirements, BCM, profiles, meetings, research). Unset fields
|
|
1066
|
+
* fall back to the defaults captured in
|
|
1067
|
+
* `bundles/paths.ts#DEFAULT_AGENT_PATHS`.
|
|
1068
|
+
*
|
|
1069
|
+
* This option is the first of the Group A framework injection
|
|
1070
|
+
* points from epic #414. Per-project propagation of these values
|
|
1071
|
+
* into bundle rule content lands in a follow-up — setting it today
|
|
1072
|
+
* does not yet alter generated rules.
|
|
1073
|
+
*/
|
|
1074
|
+
readonly paths?: AgentPathsConfig;
|
|
984
1075
|
}
|
|
985
1076
|
|
|
986
1077
|
/**
|
|
@@ -1168,6 +1259,56 @@ declare const meetingAnalysisBundle: AgentRuleBundle;
|
|
|
1168
1259
|
******************************************************************************/
|
|
1169
1260
|
declare const orchestratorBundle: AgentRuleBundle;
|
|
1170
1261
|
|
|
1262
|
+
/**
|
|
1263
|
+
* Fully-resolved agent output-path roots. Every property is required.
|
|
1264
|
+
*
|
|
1265
|
+
* This is the shape that bundle code consumes at module-eval time via
|
|
1266
|
+
* `DEFAULT_AGENT_PATHS`, and the shape that `resolveAgentPaths()`
|
|
1267
|
+
* returns when consumers supply a partial `AgentPathsConfig` override.
|
|
1268
|
+
*/
|
|
1269
|
+
interface ResolvedAgentPaths {
|
|
1270
|
+
readonly docsRoot: string;
|
|
1271
|
+
readonly researchRoot: string;
|
|
1272
|
+
readonly profilesRoot: string;
|
|
1273
|
+
readonly meetingsRoot: string;
|
|
1274
|
+
readonly requirementsRoot: string;
|
|
1275
|
+
readonly researchRequirementsRoot: string;
|
|
1276
|
+
readonly bcmRoot: string;
|
|
1277
|
+
readonly peopleRoot: string;
|
|
1278
|
+
readonly companiesRoot: string;
|
|
1279
|
+
readonly softwareRoot: string;
|
|
1280
|
+
readonly industriesRoot: string;
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* Canonical default values for every agent path. These mirror the
|
|
1284
|
+
* hardcoded paths that bundles used before `AgentPathsConfig` existed,
|
|
1285
|
+
* so `DEFAULT_AGENT_PATHS.*` can be substituted into bundle rule
|
|
1286
|
+
* content at module-eval time without changing the generated
|
|
1287
|
+
* `.claude/rules/*.md` snapshot.
|
|
1288
|
+
*
|
|
1289
|
+
* Consumers override the defaults by passing an `AgentPathsConfig`
|
|
1290
|
+
* through `AgentConfigOptions.paths` and resolving it with
|
|
1291
|
+
* `resolveAgentPaths()`. Per-project propagation into bundle rule
|
|
1292
|
+
* content is a follow-up — this export is the first step: interface +
|
|
1293
|
+
* resolver land in this PR; the `AgentConfig.resolveRules` wiring lands
|
|
1294
|
+
* next.
|
|
1295
|
+
*/
|
|
1296
|
+
declare const DEFAULT_AGENT_PATHS: ResolvedAgentPaths;
|
|
1297
|
+
/**
|
|
1298
|
+
* Resolve a partial `AgentPathsConfig` into a fully-populated
|
|
1299
|
+
* `ResolvedAgentPaths`. Unset fields cascade from their parent root:
|
|
1300
|
+
*
|
|
1301
|
+
* - `profilesRoot`, `meetingsRoot`, `requirementsRoot`, and `bcmRoot`
|
|
1302
|
+
* derive from `docsRoot` when not explicitly set.
|
|
1303
|
+
* - `researchRequirementsRoot` derives from `researchRoot` when not
|
|
1304
|
+
* explicitly set.
|
|
1305
|
+
* - `peopleRoot`, `companiesRoot`, `softwareRoot`, and `industriesRoot`
|
|
1306
|
+
* derive from the resolved `profilesRoot` when not explicitly set,
|
|
1307
|
+
* so that overriding `docsRoot` alone (or overriding `profilesRoot`
|
|
1308
|
+
* alone) propagates correctly through every dependent root.
|
|
1309
|
+
*/
|
|
1310
|
+
declare function resolveAgentPaths(paths?: AgentPathsConfig): ResolvedAgentPaths;
|
|
1311
|
+
|
|
1171
1312
|
/**
|
|
1172
1313
|
* People-profile bundle — enabled by default.
|
|
1173
1314
|
*
|
|
@@ -2067,7 +2208,7 @@ declare const VERSION: {
|
|
|
2067
2208
|
/**
|
|
2068
2209
|
* Version of Astro to pin for AstroProject scaffolding.
|
|
2069
2210
|
*/
|
|
2070
|
-
readonly ASTRO_VERSION: "6.1.
|
|
2211
|
+
readonly ASTRO_VERSION: "6.1.8";
|
|
2071
2212
|
/**
|
|
2072
2213
|
* CDK CLI for workflows and command line operations.
|
|
2073
2214
|
*
|
|
@@ -3925,5 +4066,5 @@ declare const COMPLETE_JOB_ID = "complete";
|
|
|
3925
4066
|
*/
|
|
3926
4067
|
declare function addBuildCompleteJob(buildWorkflow: BuildWorkflow): void;
|
|
3927
4068
|
|
|
3928
|
-
export { AGENT_MODEL, AGENT_PLATFORM, AGENT_RULE_SCOPE, AgentConfig, AstroConfig, AstroOutput, AstroProject, AwsCdkProject, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, AwsTeardownWorkflow, BUILT_IN_BUNDLES, CLAUDE_RULE_TARGET, COMPLETE_JOB_ID, DEFAULT_PRIORITY_LABELS, DEFAULT_STATUS_LABELS, DEFAULT_TEARDOWN_BRANCH_PATTERNS, DEFAULT_TYPE_LABELS, JsiiFaker, LAYOUT_ENFORCEMENT, LAYOUT_ROOT_BY_PROJECT_TYPE, MCP_TRANSPORT, MERGE_METHODS, MIMIMUM_RELEASE_AGE, MINIMUM_RELEASE_AGE, MONOREPO_LAYOUT, MonorepoProject, PROD_DEPLOY_NAME, PnpmWorkspace, ProjectMetadata, REQUIREMENTS_WRITER_PATHS, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, ResetTask, STARLIGHT_ROLE, StarlightProject, TestRunner, TurboRepo, TurboRepoTask, TypeScriptConfig, TypeScriptProject, VERSION, VERSION_KEYS_SKIP, VERSION_NPM_PACKAGES, VSCodeConfig, Vitest, addApproveMergeUpgradeWorkflow, addBuildCompleteJob, addSyncLabelsWorkflow, awsCdkBundle, baseBundle, bcmWriterBundle, companyProfileBundle, formatLayoutViolation, formatStarlightSingletonViolation, getLatestEligibleVersion, githubWorkflowBundle, industryDiscoveryBundle, jestBundle, maintenanceAuditBundle, meetingAnalysisBundle, orchestratorBundle, peopleProfileBundle, pnpmBundle, prReviewBundle, projenBundle, requirementsAnalystBundle, requirementsReviewerBundle, requirementsWriterBundle, researchPipelineBundle, resolveAstroProjectOutdir, resolveAwsCdkProjectOutdir, resolveModelAlias, resolveOutdirFromPackageName, resolveTemplateVariables, resolveTypeScriptProjectOutdir, slackBundle, softwareProfileBundle, turborepoBundle, typescriptBundle, validateMonorepoLayout, validateStarlightSingleton, vitestBundle };
|
|
3929
|
-
export type { AgentConfigOptions, AgentModel, AgentPlatform, AgentPlatformOverrides, AgentProcedure, AgentRule, AgentRuleBundle, AgentRuleScope, AgentSkill, AgentSubAgent, AgentSubAgentPlatformOverrides, ApproveMergeUpgradeOptions, AstroConfigOptions, AstroIntegrationSpec, AstroProjectOptions, AwsAccount, AwsCdkProjectOptions, AwsDeploymentTargetOptions, AwsLocalDeploymentConfig, AwsOrganization, AwsRegion, AwsTeardownWorkflowOptions, CiDeploymentConfig, ClassTypeOptions, ClaudeAutoModeConfig, ClaudeHookAction, ClaudeHookEntry, ClaudeHooksConfig, ClaudePermissionsConfig, ClaudeRuleTarget, ClaudeSandboxConfig, ClaudeSettingsConfig, CopilotHandoff, CursorHookAction, CursorHooksConfig, CursorSettingsConfig, DeployWorkflowOptions, DeploymentMetadata, GitBranch, GitHubBoardMetadata, GitHubProjectMetadata, GitHubSprintMetadata, IDependencyResolver, LabelDefinition, LayoutEnforcement, LayoutViolation, McpServerConfig, McpTransport, MergeMethod, MonorepoLayoutRoot, MonorepoProjectOptions, OrganizationMetadata, PnpmWorkspaceOptions, ProjectMetadataOptions, RemoteCacheOptions, RepositoryMetadata, ResetTaskOptions, ResolvedProjectMetadata, SlackMetadata, StarlightEditLink, StarlightLogo, StarlightProjectOptions, StarlightRole, StarlightSidebarItem, StarlightSingletonViolation, StarlightSocialLink, SyncLabelsOptions, TemplateResolveResult, TurboRepoOptions, TurboRepoTaskOptions, TypeScriptProjectOptions, VersionKey, VitestConfigOptions, VitestOptions };
|
|
4069
|
+
export { AGENT_MODEL, AGENT_PLATFORM, AGENT_RULE_SCOPE, AgentConfig, AstroConfig, AstroOutput, AstroProject, AwsCdkProject, AwsDeployWorkflow, AwsDeploymentConfig, AwsDeploymentTarget, AwsTeardownWorkflow, BUILT_IN_BUNDLES, CLAUDE_RULE_TARGET, COMPLETE_JOB_ID, DEFAULT_AGENT_PATHS, DEFAULT_PRIORITY_LABELS, DEFAULT_STATUS_LABELS, DEFAULT_TEARDOWN_BRANCH_PATTERNS, DEFAULT_TYPE_LABELS, JsiiFaker, LAYOUT_ENFORCEMENT, LAYOUT_ROOT_BY_PROJECT_TYPE, MCP_TRANSPORT, MERGE_METHODS, MIMIMUM_RELEASE_AGE, MINIMUM_RELEASE_AGE, MONOREPO_LAYOUT, MonorepoProject, PROD_DEPLOY_NAME, PnpmWorkspace, ProjectMetadata, REQUIREMENTS_WRITER_PATHS, ROOT_CI_TASK_NAME, ROOT_TURBO_TASK_NAME, ResetTask, STARLIGHT_ROLE, StarlightProject, TestRunner, TurboRepo, TurboRepoTask, TypeScriptConfig, TypeScriptProject, VERSION, VERSION_KEYS_SKIP, VERSION_NPM_PACKAGES, VSCodeConfig, Vitest, addApproveMergeUpgradeWorkflow, addBuildCompleteJob, addSyncLabelsWorkflow, awsCdkBundle, baseBundle, bcmWriterBundle, companyProfileBundle, formatLayoutViolation, formatStarlightSingletonViolation, getLatestEligibleVersion, githubWorkflowBundle, industryDiscoveryBundle, jestBundle, maintenanceAuditBundle, meetingAnalysisBundle, orchestratorBundle, peopleProfileBundle, pnpmBundle, prReviewBundle, projenBundle, requirementsAnalystBundle, requirementsReviewerBundle, requirementsWriterBundle, researchPipelineBundle, resolveAgentPaths, resolveAstroProjectOutdir, resolveAwsCdkProjectOutdir, resolveModelAlias, resolveOutdirFromPackageName, resolveTemplateVariables, resolveTypeScriptProjectOutdir, slackBundle, softwareProfileBundle, turborepoBundle, typescriptBundle, validateMonorepoLayout, validateStarlightSingleton, vitestBundle };
|
|
4070
|
+
export type { AgentConfigOptions, AgentModel, AgentPathsConfig, AgentPlatform, AgentPlatformOverrides, AgentProcedure, AgentRule, AgentRuleBundle, AgentRuleScope, AgentSkill, AgentSubAgent, AgentSubAgentPlatformOverrides, ApproveMergeUpgradeOptions, AstroConfigOptions, AstroIntegrationSpec, AstroProjectOptions, AwsAccount, AwsCdkProjectOptions, AwsDeploymentTargetOptions, AwsLocalDeploymentConfig, AwsOrganization, AwsRegion, AwsTeardownWorkflowOptions, CiDeploymentConfig, ClassTypeOptions, ClaudeAutoModeConfig, ClaudeHookAction, ClaudeHookEntry, ClaudeHooksConfig, ClaudePermissionsConfig, ClaudeRuleTarget, ClaudeSandboxConfig, ClaudeSettingsConfig, CopilotHandoff, CursorHookAction, CursorHooksConfig, CursorSettingsConfig, DeployWorkflowOptions, DeploymentMetadata, GitBranch, GitHubBoardMetadata, GitHubProjectMetadata, GitHubSprintMetadata, IDependencyResolver, LabelDefinition, LayoutEnforcement, LayoutViolation, McpServerConfig, McpTransport, MergeMethod, MonorepoLayoutRoot, MonorepoProjectOptions, OrganizationMetadata, PnpmWorkspaceOptions, ProjectMetadataOptions, RemoteCacheOptions, RepositoryMetadata, ResetTaskOptions, ResolvedAgentPaths, ResolvedProjectMetadata, SlackMetadata, StarlightEditLink, StarlightLogo, StarlightProjectOptions, StarlightRole, StarlightSidebarItem, StarlightSingletonViolation, StarlightSocialLink, SyncLabelsOptions, TemplateResolveResult, TurboRepoOptions, TurboRepoTaskOptions, TypeScriptProjectOptions, VersionKey, VitestConfigOptions, VitestOptions };
|
package/lib/index.js
CHANGED
|
@@ -190,6 +190,7 @@ __export(index_exports, {
|
|
|
190
190
|
BUILT_IN_BUNDLES: () => BUILT_IN_BUNDLES,
|
|
191
191
|
CLAUDE_RULE_TARGET: () => CLAUDE_RULE_TARGET,
|
|
192
192
|
COMPLETE_JOB_ID: () => COMPLETE_JOB_ID,
|
|
193
|
+
DEFAULT_AGENT_PATHS: () => DEFAULT_AGENT_PATHS,
|
|
193
194
|
DEFAULT_PRIORITY_LABELS: () => DEFAULT_PRIORITY_LABELS,
|
|
194
195
|
DEFAULT_STATUS_LABELS: () => DEFAULT_STATUS_LABELS,
|
|
195
196
|
DEFAULT_TEARDOWN_BRANCH_PATTERNS: () => DEFAULT_TEARDOWN_BRANCH_PATTERNS,
|
|
@@ -246,6 +247,7 @@ __export(index_exports, {
|
|
|
246
247
|
requirementsReviewerBundle: () => requirementsReviewerBundle,
|
|
247
248
|
requirementsWriterBundle: () => requirementsWriterBundle,
|
|
248
249
|
researchPipelineBundle: () => researchPipelineBundle,
|
|
250
|
+
resolveAgentPaths: () => resolveAgentPaths,
|
|
249
251
|
resolveAstroProjectOutdir: () => resolveAstroProjectOutdir,
|
|
250
252
|
resolveAwsCdkProjectOutdir: () => resolveAwsCdkProjectOutdir,
|
|
251
253
|
resolveModelAlias: () => resolveModelAlias,
|
|
@@ -1432,6 +1434,47 @@ var baseBundle = {
|
|
|
1432
1434
|
]
|
|
1433
1435
|
};
|
|
1434
1436
|
|
|
1437
|
+
// src/agent/bundles/paths.ts
|
|
1438
|
+
var DEFAULT_AGENT_PATHS = Object.freeze({
|
|
1439
|
+
docsRoot: "docs/src/content/docs",
|
|
1440
|
+
researchRoot: "docs/research",
|
|
1441
|
+
profilesRoot: "docs/src/content/docs/profiles",
|
|
1442
|
+
meetingsRoot: "docs/src/content/docs/meetings",
|
|
1443
|
+
requirementsRoot: "docs/src/content/docs/requirements",
|
|
1444
|
+
researchRequirementsRoot: "docs/research/requirements",
|
|
1445
|
+
bcmRoot: "docs/src/content/docs/concepts",
|
|
1446
|
+
peopleRoot: "docs/src/content/docs/profiles/people",
|
|
1447
|
+
companiesRoot: "docs/src/content/docs/profiles/companies",
|
|
1448
|
+
softwareRoot: "docs/src/content/docs/profiles/software",
|
|
1449
|
+
industriesRoot: "docs/src/content/docs/profiles/industries"
|
|
1450
|
+
});
|
|
1451
|
+
function resolveAgentPaths(paths) {
|
|
1452
|
+
const docsRoot = paths?.docsRoot ?? DEFAULT_AGENT_PATHS.docsRoot;
|
|
1453
|
+
const researchRoot = paths?.researchRoot ?? DEFAULT_AGENT_PATHS.researchRoot;
|
|
1454
|
+
const profilesRoot = paths?.profilesRoot ?? `${docsRoot}/profiles`;
|
|
1455
|
+
const meetingsRoot = paths?.meetingsRoot ?? `${docsRoot}/meetings`;
|
|
1456
|
+
const requirementsRoot = paths?.requirementsRoot ?? `${docsRoot}/requirements`;
|
|
1457
|
+
const bcmRoot = paths?.bcmRoot ?? `${docsRoot}/concepts`;
|
|
1458
|
+
const researchRequirementsRoot = paths?.researchRequirementsRoot ?? `${researchRoot}/requirements`;
|
|
1459
|
+
const peopleRoot = paths?.peopleRoot ?? `${profilesRoot}/people`;
|
|
1460
|
+
const companiesRoot = paths?.companiesRoot ?? `${profilesRoot}/companies`;
|
|
1461
|
+
const softwareRoot = paths?.softwareRoot ?? `${profilesRoot}/software`;
|
|
1462
|
+
const industriesRoot = paths?.industriesRoot ?? `${profilesRoot}/industries`;
|
|
1463
|
+
return {
|
|
1464
|
+
docsRoot,
|
|
1465
|
+
researchRoot,
|
|
1466
|
+
profilesRoot,
|
|
1467
|
+
meetingsRoot,
|
|
1468
|
+
requirementsRoot,
|
|
1469
|
+
researchRequirementsRoot,
|
|
1470
|
+
bcmRoot,
|
|
1471
|
+
peopleRoot,
|
|
1472
|
+
companiesRoot,
|
|
1473
|
+
softwareRoot,
|
|
1474
|
+
industriesRoot
|
|
1475
|
+
};
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1435
1478
|
// src/agent/bundles/project-context.ts
|
|
1436
1479
|
var PROJECT_CONTEXT_PATH = "docs/src/content/docs/project-context.md";
|
|
1437
1480
|
var SUBPROJECT_ROLE_GUIDANCE = [
|
|
@@ -1677,7 +1720,7 @@ var bcmWriterSubAgent = {
|
|
|
1677
1720
|
"",
|
|
1678
1721
|
"| Placeholder | Meaning | Default |",
|
|
1679
1722
|
"|-------------|---------|---------|",
|
|
1680
|
-
|
|
1723
|
+
`| \`<BCM_DOC_ROOT>\` | Root folder for all BCM capability-model documents | \`${DEFAULT_AGENT_PATHS.bcmRoot}/\` |`,
|
|
1681
1724
|
"| `<OUTLINE_ROOT>` | Working-directory root for outline files produced in Phase 1 | `docs/src/content/docs/concepts/.outlines/` |",
|
|
1682
1725
|
"| `<REGISTRY_INDEX>` | Capability registry `_index.md` file that lists every BCM doc | `<BCM_DOC_ROOT>/_index.md` |",
|
|
1683
1726
|
"| `<CAPABILITY_MAP>` | Capability-map file that shows the L1/L2/L3 hierarchy | `<BCM_DOC_ROOT>/capability-map.md` |",
|
|
@@ -12642,7 +12685,7 @@ var researchAnalystSubAgent = {
|
|
|
12642
12685
|
"",
|
|
12643
12686
|
"| Placeholder | Meaning | Default |",
|
|
12644
12687
|
"|-------------|---------|---------|",
|
|
12645
|
-
|
|
12688
|
+
`| \`<RESEARCH_ROOT>\` | Root folder for all research outputs | \`${DEFAULT_AGENT_PATHS.researchRoot}/\` |`,
|
|
12646
12689
|
"| `<SCOPE_DIR>` | Scope files | `<RESEARCH_ROOT>/scopes/` |",
|
|
12647
12690
|
"| `<SLICES_DIR>` | Slice note files | `<RESEARCH_ROOT>/slices/` |",
|
|
12648
12691
|
"| `<DELIVERABLES_DIR>` | Final verified deliverables | `<RESEARCH_ROOT>/deliverables/` |",
|
|
@@ -14324,7 +14367,7 @@ var VERSION = {
|
|
|
14324
14367
|
/**
|
|
14325
14368
|
* Version of Astro to pin for AstroProject scaffolding.
|
|
14326
14369
|
*/
|
|
14327
|
-
ASTRO_VERSION: "6.1.
|
|
14370
|
+
ASTRO_VERSION: "6.1.8",
|
|
14328
14371
|
/**
|
|
14329
14372
|
* CDK CLI for workflows and command line operations.
|
|
14330
14373
|
*
|
|
@@ -18215,6 +18258,7 @@ var TypeScriptConfig = class extends import_projen22.Component {
|
|
|
18215
18258
|
BUILT_IN_BUNDLES,
|
|
18216
18259
|
CLAUDE_RULE_TARGET,
|
|
18217
18260
|
COMPLETE_JOB_ID,
|
|
18261
|
+
DEFAULT_AGENT_PATHS,
|
|
18218
18262
|
DEFAULT_PRIORITY_LABELS,
|
|
18219
18263
|
DEFAULT_STATUS_LABELS,
|
|
18220
18264
|
DEFAULT_TEARDOWN_BRANCH_PATTERNS,
|
|
@@ -18271,6 +18315,7 @@ var TypeScriptConfig = class extends import_projen22.Component {
|
|
|
18271
18315
|
requirementsReviewerBundle,
|
|
18272
18316
|
requirementsWriterBundle,
|
|
18273
18317
|
researchPipelineBundle,
|
|
18318
|
+
resolveAgentPaths,
|
|
18274
18319
|
resolveAstroProjectOutdir,
|
|
18275
18320
|
resolveAwsCdkProjectOutdir,
|
|
18276
18321
|
resolveModelAlias,
|