feat(studio): add AI workspace with Codex ACP integration
Test / Tests and coverage
Intrepid/Prometeu/Studio/pipeline/head This commit looks good

This commit is contained in:
2026-11-23 03:11:33 +00:00
parent a2b6a81a27
commit ae7d01aa99
36 changed files with 2550 additions and 28 deletions
@@ -184,6 +184,11 @@ public class StudioApplicationConfiguration {
return new p.studio.core.project.preferences.JsonRuntimeSettingsStore(
Path.of(System.getProperty("user.home"), ".prometeu-studio", "runtime-settings.json"), mapper);
}
@Bean
p.studio.api.preferences.AgentSettingsStore agentSettingsStore(ObjectMapper mapper) {
return new p.studio.core.project.preferences.JsonAgentSettingsStore(
Path.of(System.getProperty("user.home"),".prometeu-studio","ai-settings.json"),mapper);
}
@Bean
ProjectActivityHistoryStore projectActivityHistoryStore(ObjectMapper mapper) {
@@ -332,7 +337,7 @@ public class StudioApplicationConfiguration {
ProjectActivityHistoryStore activityHistoryStore, p.studio.api.automation.AgentConnectionGuide connectionGuide,
p.studio.api.assets.animation.AnimationService animationService,ObjectMapper mapper,OperationExecutor operations,
p.studio.core.project.ProjectAccessRegistry access,ProjectLocalStudioSetupStore setupStore,
p.studio.api.preferences.RuntimeSettingsStore runtimeSettings) {
p.studio.api.preferences.RuntimeSettingsStore runtimeSettings,p.studio.api.preferences.AgentSettingsStore agentSettings) {
var factory = new StudioUiFactory(projectCatalog, knownProjects, languageCatalog, projectSessionFactory,
executionControllerFactory, projectWorkspaceInitializer, studioExecutor, i18n, theme, eventBus, shipper,
assetCatalog, assetCommands, assetPacking, assetDetails, assetCreationCatalog, assetMetadataService,
@@ -341,6 +346,8 @@ public class StudioApplicationConfiguration {
activityHistoryStore, connectionGuide);
factory.setAnimationService(animationService);
factory.setRuntimeSettings(runtimeSettings);
factory.setAgentSettings(agentSettings);
factory.setAgentConnections(root->new p.studio.app.acp.CodexAcpConnection(root,mapper));
factory.enableInteractive(new p.studio.core.execution.DefaultExecutionControllerFactory(shipper,
new p.studio.app.runtime.studio.StudioRuntimeGateway(mapper),operations,access),
(project,setup)->{try(var lease=access.enterManual(project.rootPath())){setupStore.save(project,setup);}});