@@ -144,27 +144,32 @@ const decodeHooks = Effect.fn(function* (pathValue: string, rawMap: RawYamlMap)
144144 return [ ] as Array < string > ;
145145} ) ;
146146
147- const gitAgentPath = Effect . fn ( function * ( repoRoot : string , ...segments : ReadonlyArray < string > ) {
147+ const gitConfigPathPath = Effect . fn ( function * (
148+ repoRoot : string ,
149+ ...segments : ReadonlyArray < string >
150+ ) {
148151 const path = yield * Path . Path ;
149- return path . join ( repoRoot , ".git-agent " , ...segments ) ;
152+ return path . join ( repoRoot , ".ai-commit " , ...segments ) ;
150153} ) ;
151154
152155export const projectConfigPath = Effect . fn ( function * ( repoRoot : string ) {
153156 const fs = yield * FileSystem . FileSystem ;
154- const currentPath = yield * gitAgentPath ( repoRoot , "config.yml" ) ;
157+ const currentPath = yield * gitConfigPathPath ( repoRoot , "config.yml" ) ;
155158 if ( yield * fs . exists ( currentPath ) ) {
156159 return currentPath ;
157160 }
158- const legacyPath = yield * gitAgentPath ( repoRoot , "project.yml" ) ;
161+ const legacyPath = yield * gitConfigPathPath ( repoRoot , "project.yml" ) ;
159162 if ( yield * fs . exists ( legacyPath ) ) {
160163 return legacyPath ;
161164 }
162165 return currentPath ;
163166} ) ;
164167
165- export const projectConfigWritePath = ( repoRoot : string ) => gitAgentPath ( repoRoot , "config.yml" ) ;
168+ export const projectConfigWritePath = ( repoRoot : string ) =>
169+ gitConfigPathPath ( repoRoot , "config.yml" ) ;
166170
167- export const localConfigPath = ( repoRoot : string ) => gitAgentPath ( repoRoot , "config.local.yml" ) ;
171+ export const localConfigPath = ( repoRoot : string ) =>
172+ gitConfigPathPath ( repoRoot , "config.local.yml" ) ;
168173
169174export const loadProjectConfig = Effect . fn ( "Config.LoadProjectConfig" ) ( function * (
170175 repoRoot : string ,
@@ -193,21 +198,21 @@ export const loadProjectConfig = Effect.fn("Config.LoadProjectConfig")(function*
193198 const mergedHooks = localHooks . length > 0 ? localHooks : projectHooks ;
194199 const maxDiffLines = localMaxDiffLines ?? projectMaxDiffLines ?? 0 ;
195200 const [
196- localNoGitAgentCoAuthor ,
197- projectNoGitAgentCoAuthor ,
201+ localNoCommitCoAuthor ,
202+ projectNoCommitCoAuthor ,
198203 localNoModelCoAuthor ,
199204 projectNoModelCoAuthor ,
200205 ] = yield * Effect . all ( [
201206 decodeConfigField (
202207 localPath ,
203- "no_git_agent_co_author " ,
204- localRaw [ "no_git_agent_co_author " ] ,
208+ "no-commit-co-author " ,
209+ localRaw [ "no-commit-co-author " ] ,
205210 Schema . Boolean ,
206211 ) ,
207212 decodeConfigField (
208213 projectPath ,
209- "no_git_agent_co_author " ,
210- projectRaw [ "no_git_agent_co_author " ] ,
214+ "no-commit-co-author " ,
215+ projectRaw [ "no-commit-co-author " ] ,
211216 Schema . Boolean ,
212217 ) ,
213218 decodeConfigField (
@@ -223,14 +228,14 @@ export const loadProjectConfig = Effect.fn("Config.LoadProjectConfig")(function*
223228 Schema . Boolean ,
224229 ) ,
225230 ] ) ;
226- const noGitAgentCoAuthor = localNoGitAgentCoAuthor ?? projectNoGitAgentCoAuthor ?? false ;
231+ const noCommitCoAuthor = localNoCommitCoAuthor ?? projectNoCommitCoAuthor ?? false ;
227232 const noModelCoAuthor = localNoModelCoAuthor ?? projectNoModelCoAuthor ?? false ;
228233
229234 if (
230235 mergedScopes . length === 0 &&
231236 mergedHooks . length === 0 &&
232237 maxDiffLines === 0 &&
233- noGitAgentCoAuthor === false &&
238+ noCommitCoAuthor === false &&
234239 noModelCoAuthor === false
235240 ) {
236241 return undefined as ProjectConfig | undefined ;
@@ -240,7 +245,7 @@ export const loadProjectConfig = Effect.fn("Config.LoadProjectConfig")(function*
240245 scopes : mergedScopes ,
241246 hooks : mergedHooks ,
242247 maxDiffLines,
243- noGitAgentCoAuthor ,
248+ noCommitCoAuthor ,
244249 noModelCoAuthor,
245250 } satisfies ProjectConfig ;
246251} ) ;
0 commit comments