@ordewell/web 0.14.8 → 0.14.9
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/dist/server/main.js +6 -2
- package/dist/server/main.js.map +1 -1
- package/package.json +2 -2
package/dist/server/main.js
CHANGED
|
@@ -1040,6 +1040,7 @@ var OrchestratorPool = class {
|
|
|
1040
1040
|
const config = this.plannerConfig(void 0, this.settingsWorkspace(sessionId, workspace));
|
|
1041
1041
|
const userSettings = this.settingsService.getAll();
|
|
1042
1042
|
const live = sessionId ? this.live(sessionId, workspace) : void 0;
|
|
1043
|
+
const unusedPlanningKey = config.unusedPlanningKey();
|
|
1043
1044
|
return {
|
|
1044
1045
|
orchestratorModel: config.orchestratorModel,
|
|
1045
1046
|
// Who plans (ADR-0009) — a vendor id, or one of the three harness
|
|
@@ -1050,6 +1051,7 @@ var OrchestratorPool = class {
|
|
|
1050
1051
|
// to render the current level; without it the picker shows "default"
|
|
1051
1052
|
// for a planner that is running at "high".
|
|
1052
1053
|
plannerThinkingEffort: config.plannerThinkingEffort ?? "",
|
|
1054
|
+
...unusedPlanningKey ? { unusedPlanningKey } : {},
|
|
1053
1055
|
// The saved level, read through the service so an environment override
|
|
1054
1056
|
// is reported the way the next plan will read it (ADR-0001, ADR-0030).
|
|
1055
1057
|
autonomousMode: this.settingsService.autonomousMode(),
|
|
@@ -1184,6 +1186,8 @@ var OrchestratorPool = class {
|
|
|
1184
1186
|
const envChanges = admission ? admission.accepted : void 0;
|
|
1185
1187
|
const plannerChange = plannerChangeOf(changes2, envChanges);
|
|
1186
1188
|
const selection = changesPlanner(plannerChange) ? core.selectPlanner(current, plannerChange, this.plannerModelMemory, this.plannerCatalogFor(plannerChange.provider ?? current.provider, workspace)) : void 0;
|
|
1189
|
+
const agentPick = selection?.remember && selection.remember.provider === current.provider && core.isAgentPick(current.provider, selection.remember.model) ? selection.remember : void 0;
|
|
1190
|
+
if (agentPick) this.plannerModelMemory.remember(agentPick.provider, agentPick.model, agentPick.effort);
|
|
1187
1191
|
let unsavedEnvKeys = [];
|
|
1188
1192
|
if (envChanges) {
|
|
1189
1193
|
let touched = false;
|
|
@@ -1228,7 +1232,7 @@ var OrchestratorPool = class {
|
|
|
1228
1232
|
this.settingsService.setAutonomousMode(changes2.autonomousMode);
|
|
1229
1233
|
}
|
|
1230
1234
|
if (envChanges) for (const monitor of this.accountLimits.values()) monitor.refresh();
|
|
1231
|
-
if (selection?.remember) {
|
|
1235
|
+
if (selection?.remember && !agentPick) {
|
|
1232
1236
|
const { provider, model, effort } = selection.remember;
|
|
1233
1237
|
const switched = provider !== current.provider;
|
|
1234
1238
|
this.plannerModelMemory.remember(switched ? provider : this.plannerProviderInEffect(workspace), model, effort);
|
|
@@ -1344,7 +1348,7 @@ var OrchestratorPool = class {
|
|
|
1344
1348
|
async getInstalledRunners(workspace) {
|
|
1345
1349
|
await this.codexSandbox.refresh();
|
|
1346
1350
|
const installation = this.installationFor(workspace);
|
|
1347
|
-
installation.refresh?.();
|
|
1351
|
+
for (const probe of /* @__PURE__ */ new Set([installation, this.runnerInstallation])) probe.refresh?.();
|
|
1348
1352
|
await this.detectInstalledPlanner();
|
|
1349
1353
|
const config = new WebConfig({ enabledRunners: this.enabledRunnerOverride() });
|
|
1350
1354
|
const enabled = new Set(config.enabledRunners);
|