feat(studio): coordinate integrated AI activity and internal language services
Start project-owned language and authenticated MCP services when opening a project, reusing the embedded LSP backend without a desktop TCP listener. Keep editor overlays separate from saved-file MCP queries. Reserve conflicting editing before ACP prompt delivery and retain protection through native/tool termination, runtime cleanup and document refresh. Preserve drafts on rejected admission, provide cleanup/preparation recovery, distinguish terminal outcomes and redact permission previews. Add lifecycle, language parity, activity, composition and UI regressions and update the canonical Studio contracts. Keep distribution update alignment as the separate WRK-002A follow-up. Validation: complete make -C tooling verify PASSED in 20261127T035822Z-ec5d9266 (1172 unit, 131 compiler fixture, 31 headless tests). Opt-in real-model and native AI-view qualification are outside that gate. Work: WRK-0029; decision: DEC-0001.
This commit is contained in:
+13
-3
@@ -115,6 +115,16 @@ public final class CompilerLanguageServiceBridge implements LanguageServiceBridg
|
||||
}
|
||||
return new BaselineDefinition(List.copyOf(mapped));
|
||||
}
|
||||
private Map<Path,String> workspaceOverlays=Map.of();
|
||||
/** An immutable request view, sharing the compiler implementation without sharing buffers. */
|
||||
public CompilerLanguageServiceBridge withOverlays(Map<Path,String> overlays) {
|
||||
var view=new CompilerLanguageServiceBridge(frontendProviderResolver,layouts);
|
||||
view.animationNavigation=animationNavigation;view.workspaceOverlays=Map.copyOf(overlays);return view;
|
||||
}
|
||||
private SourceProviderFactory sources(Map<Path,String> current) {
|
||||
var merged=new java.util.HashMap<>(workspaceOverlays);merged.putAll(current);
|
||||
return SourceProviderFactory.overlayUtf8(merged);
|
||||
}
|
||||
private final AssetSurfaceContextLoader assetSurfaceContextLoader;
|
||||
private final p.animation.GlyphBankLayoutSource layouts;
|
||||
private p.animation.AnimationOriginNavigation animationNavigation;
|
||||
@@ -402,7 +412,7 @@ public final class CompilerLanguageServiceBridge implements LanguageServiceBridg
|
||||
false,
|
||||
context.projectRoot().toString(),
|
||||
"core-v1",
|
||||
SourceProviderFactory.overlayUtf8(Map.of())));
|
||||
sources(Map.of())));
|
||||
pipelineContext.glyphBankLayoutSource=layouts;
|
||||
BuilderPipelineService.INSTANCE.analyze(pipelineContext, LogAggregator.empty());
|
||||
final FrontendPhaseContext frontendPhaseContext = new FrontendPhaseContext(
|
||||
@@ -924,7 +934,7 @@ public final class CompilerLanguageServiceBridge implements LanguageServiceBridg
|
||||
false,
|
||||
context.projectRoot().toString(),
|
||||
"core-v1",
|
||||
SourceProviderFactory.overlayUtf8(overlays)));
|
||||
sources(overlays)));
|
||||
pipelineContext.glyphBankLayoutSource=layouts;
|
||||
return BuilderPipelineService.INSTANCE.analyze(pipelineContext, LogAggregator.empty());
|
||||
}
|
||||
@@ -943,7 +953,7 @@ public final class CompilerLanguageServiceBridge implements LanguageServiceBridg
|
||||
false,
|
||||
context.projectRoot().toString(),
|
||||
"core-v1",
|
||||
SourceProviderFactory.overlayUtf8(text == null ? Map.of() : Map.of(documentPath, text))));
|
||||
sources(text == null ? Map.of() : Map.of(documentPath, text))));
|
||||
pipelineContext.glyphBankLayoutSource=layouts;
|
||||
BuilderPipelineService.INSTANCE.analyze(pipelineContext, LogAggregator.empty());
|
||||
final FileId fileId = findFileId(pipelineContext, documentPath);
|
||||
|
||||
Reference in New Issue
Block a user