Release v0.1.3

This commit is contained in:
winlifes
2026-05-11 05:30:48 -07:00
parent a903f7f0af
commit 69ab5710f6
9 changed files with 169 additions and 21 deletions
+11 -2
View File
@@ -87,6 +87,7 @@ class ExtensionService {
this.toolRegistry = createToolRegistry({
getRuntimeContext: runtimeContext,
getStatus: () => this.getStatus(),
interactionLog: this.interactionLog,
sceneBridge,
editorExecutor: async (payload) => await this.executeEditorScript(payload, runtimeContext),
@@ -315,16 +316,24 @@ class ExtensionService {
maxInteractionLogEntries: Number.isInteger(nextMaxEntries)
? Math.max(10, Math.min(500, nextMaxEntries))
: this.config.maxInteractionLogEntries,
lastClientTargetId: partialConfig && partialConfig.lastClientTargetId
? String(partialConfig.lastClientTargetId)
: this.config.lastClientTargetId,
};
const configPath = this.config.configPath;
fs.writeFileSync(configPath, JSON.stringify(nextConfig, null, 2) + '\n', 'utf8');
const wasRunning = Boolean(this.server && this.server.isRunning());
if (wasRunning) {
const requiresRestart = wasRunning && (
nextConfig.host !== this.config.host ||
nextConfig.port !== this.config.port ||
nextConfig.toolProfile !== this.config.toolProfile
);
if (requiresRestart) {
await this.stopServer();
}
this.reloadRuntime();
if (wasRunning) {
if (requiresRestart) {
await this.startServer();
}
return this.getPanelState();