@ordewell/web 0.12.4 → 0.12.6
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 +12 -8
- package/dist/server/main.js.map +1 -1
- package/package.json +2 -2
package/dist/server/main.js
CHANGED
|
@@ -566,7 +566,7 @@ var PoolFileSystem = class _PoolFileSystem extends core.BaseFileSystem {
|
|
|
566
566
|
if (result.code !== 0) {
|
|
567
567
|
const detail = err || out || `exited with code ${result.code}`;
|
|
568
568
|
return { success: false, output: `Command exited ${result.code}:
|
|
569
|
-
${
|
|
569
|
+
${core.headLines(detail, 2e4)}`, truncated: detail.length > 2e4, ...result.timedOut ? { timedOut: true } : {}, ...result.signal ? { signal: result.signal } : {} };
|
|
570
570
|
}
|
|
571
571
|
const combined = err ? `${out}
|
|
572
572
|
[stderr]
|
|
@@ -1117,6 +1117,8 @@ var OrchestratorPool = class {
|
|
|
1117
1117
|
if (touched) {
|
|
1118
1118
|
this.modelResolver.invalidate();
|
|
1119
1119
|
this.dropUnkeyedProviderLists();
|
|
1120
|
+
core.forgetSignedOutRunnerAuth();
|
|
1121
|
+
for (const installation of /* @__PURE__ */ new Set([this.runnerInstallation, ...this.workspaceInstallations.values()])) installation.refresh?.();
|
|
1120
1122
|
}
|
|
1121
1123
|
}
|
|
1122
1124
|
if (selection) {
|
|
@@ -1175,13 +1177,14 @@ var OrchestratorPool = class {
|
|
|
1175
1177
|
const config = new WebConfig();
|
|
1176
1178
|
const resolver = this.resolverFor(workspace);
|
|
1177
1179
|
const runnerIds = this.registry.list().map((p) => p.manifest.name);
|
|
1178
|
-
const
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
]);
|
|
1180
|
+
const sandbox = this.codexSandbox.ensure();
|
|
1181
|
+
sandbox.catch(() => {
|
|
1182
|
+
});
|
|
1183
|
+
const providerLists = await resolver.refresh();
|
|
1184
|
+
const [runnerModels] = await Promise.all([resolver.modelsForRunners(runnerIds), sandbox]);
|
|
1183
1185
|
const orchestratorModels = await resolver.pickerOptions();
|
|
1184
1186
|
const providerErrors = resolver.getDiscoveryErrors();
|
|
1187
|
+
const runnerErrors = resolver.getRunnerDiscoveryErrors();
|
|
1185
1188
|
this.cachedProviderLists = providerLists;
|
|
1186
1189
|
const allModels = [];
|
|
1187
1190
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -1203,7 +1206,8 @@ var OrchestratorPool = class {
|
|
|
1203
1206
|
orchestratorModel: this.plannerConfig(void 0, workspace).orchestratorModel,
|
|
1204
1207
|
providers,
|
|
1205
1208
|
orchestratorModels,
|
|
1206
|
-
providerErrors
|
|
1209
|
+
providerErrors,
|
|
1210
|
+
runnerErrors
|
|
1207
1211
|
};
|
|
1208
1212
|
}
|
|
1209
1213
|
getRunnerState(workspace) {
|
|
@@ -1260,7 +1264,7 @@ var OrchestratorPool = class {
|
|
|
1260
1264
|
);
|
|
1261
1265
|
const rows = await Promise.all(
|
|
1262
1266
|
runners.filter((p) => installedIds.has(p.manifest.name)).map(async (p) => {
|
|
1263
|
-
const { usable, auth } = await installation.
|
|
1267
|
+
const { usable, auth } = await installation.runnerUsability(p.manifest.name);
|
|
1264
1268
|
if (!usable) return null;
|
|
1265
1269
|
return {
|
|
1266
1270
|
id: p.manifest.name,
|