pi-extended-teams 2.2.3 → 2.2.4
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.
|
@@ -10,6 +10,7 @@ import { createAgentCommunicationTools, type SubmittedAgentReport } from "../too
|
|
|
10
10
|
import { requireWriteAgentTeam } from "../team/roster";
|
|
11
11
|
import { isPiPromptPlanningMember, shouldSuppressLeadReportInjection } from "../../src/utils/workflow-metadata";
|
|
12
12
|
import { canonicalPersistedModelSlot, loadSettings, requireFavoriteModelLevel } from "../../src/utils/settings";
|
|
13
|
+
import { parseQualifiedModel } from "../../src/utils/model-resolution";
|
|
13
14
|
import { closePersistedRecipient } from "../team/recipient-closure";
|
|
14
15
|
import { generateExtensionInstanceId, generateLifecycleRunId } from "../../src/utils/lifecycle-tombstone";
|
|
15
16
|
import { createLifecycleRuntime, type ShutdownTeammateOptions } from "../team/lifecycle";
|
|
@@ -784,7 +785,9 @@ export async function runReadAgentInProcess(
|
|
|
784
785
|
if (pendingChildParent && !pendingChildController) {
|
|
785
786
|
throw new Error(`Eligible nested read parent ${member.name} requires a pending child controller.`);
|
|
786
787
|
}
|
|
787
|
-
const
|
|
788
|
+
const parsedModel = parseQualifiedModel(member.model || "");
|
|
789
|
+
const provider = parsedModel?.provider;
|
|
790
|
+
const modelId = parsedModel?.model;
|
|
788
791
|
const model = provider && modelId ? ctx.modelRegistry.find(provider, modelId) : undefined;
|
|
789
792
|
if (!model) {
|
|
790
793
|
throw new Error(`Read agent model "${member.model}" is not available.`);
|
package/extensions/index.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { createReportProgressTool } from "./tools/agent-communication-tools.js";
|
|
|
18
18
|
import { registerTaskRuntimeTools } from "./tools/task-runtime-tools.js";
|
|
19
19
|
import { registerTeamTools, type TeamToolsRuntime } from "./tools/team-tools.js";
|
|
20
20
|
import { canonicalPersistedModelSlot, loadSettings, requireFavoriteModelLevel } from "../src/utils/settings";
|
|
21
|
+
import { parseQualifiedModel } from "../src/utils/model-resolution";
|
|
21
22
|
import { formatAnimatedProgress, formatContextUsage, formatElapsed, formatModelLabel } from "./ui/renderers.js";
|
|
22
23
|
import type { CompletedAgentReport, RunningReadAgent } from "./runtime/types.js";
|
|
23
24
|
import { createPendingChildController } from "./runtime/pending-child-controller.js";
|
|
@@ -808,7 +809,9 @@ export default function (pi: ExtensionAPI) {
|
|
|
808
809
|
}
|
|
809
810
|
const level = requireFavoriteModelLevel(loadSettings({ projectDir: queued.cwd }), queued.modelSlot);
|
|
810
811
|
if (level.role !== "read") throw new Error(`Read helper ${queued.name} requires a read-* intent tier configured via /agents-favorite-models, got ${level.slot}.`);
|
|
811
|
-
const
|
|
812
|
+
const parsedModel = parseQualifiedModel(level.model);
|
|
813
|
+
const provider = parsedModel?.provider;
|
|
814
|
+
const modelId = parsedModel?.model;
|
|
812
815
|
const model = provider && modelId ? sessionCtx.modelRegistry?.find?.(provider, modelId) : undefined;
|
|
813
816
|
if (!model) throw new Error(`Read helper model \"${level.model}\" from intent tier ${level.slot} is not available in the lead session.`);
|
|
814
817
|
|