pi-extended-teams 2.5.2 → 2.5.3
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.
|
@@ -1213,7 +1213,8 @@ export async function runReadAgentInProcess(
|
|
|
1213
1213
|
|
|
1214
1214
|
state.session = session;
|
|
1215
1215
|
if (nativeExtensions.length) {
|
|
1216
|
-
const activeNativeTools = session.getActiveToolNames().filter(name => nativeToolNames.has(name));
|
|
1216
|
+
const activeNativeTools = new Set(session.getActiveToolNames().filter(name => nativeToolNames.has(name)));
|
|
1217
|
+
if (nativeToolNames.has("codemode")) activeNativeTools.add("codemode");
|
|
1217
1218
|
session.setActiveToolsByName([...activeToolNames, ...activeNativeTools]);
|
|
1218
1219
|
}
|
|
1219
1220
|
// Hosts capture these public hooks when a prompt starts. Never abort from the reporting tool.
|
|
@@ -135,7 +135,8 @@ export function buildPiCommand(
|
|
|
135
135
|
selfExtensionSource?: string,
|
|
136
136
|
sessionDir?: string,
|
|
137
137
|
): string {
|
|
138
|
-
const
|
|
138
|
+
const toolArgs = allowedExtensions.includes("builtin:codemode") ? " --tools +codemode" : "";
|
|
139
|
+
const extensionArgs = buildExtensionArgs(allowedExtensions, projectTrusted, selfExtensionSource) + toolArgs;
|
|
139
140
|
const sessionArgs = sessionDir ? ` --session-dir ${shellQuote(sessionDir)}` : "";
|
|
140
141
|
|
|
141
142
|
if (chosenModel) {
|