@pi-ohm/config 0.6.4-dev.22132543465.1.e4e3071 → 0.6.4-dev.22169815567.1.cdde4e8
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/package.json +1 -1
- package/src/index.ts +10 -3
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
export const OHM_EXTENSION_NAME = "pi-ohm";
|
|
12
12
|
|
|
13
13
|
export type OhmMode = "rush" | "smart" | "deep";
|
|
14
|
-
export type OhmSubagentBackend = "none" | "interactive-shell" | "custom-plugin";
|
|
14
|
+
export type OhmSubagentBackend = "none" | "interactive-shell" | "interactive-sdk" | "custom-plugin";
|
|
15
15
|
|
|
16
16
|
export interface OhmFeatureFlags {
|
|
17
17
|
handoff: boolean;
|
|
@@ -167,7 +167,14 @@ function normalizeSubagentBackend(
|
|
|
167
167
|
value: unknown,
|
|
168
168
|
fallback: OhmSubagentBackend,
|
|
169
169
|
): OhmSubagentBackend {
|
|
170
|
-
if (
|
|
170
|
+
if (
|
|
171
|
+
value === "none" ||
|
|
172
|
+
value === "interactive-shell" ||
|
|
173
|
+
value === "interactive-sdk" ||
|
|
174
|
+
value === "custom-plugin"
|
|
175
|
+
) {
|
|
176
|
+
return value;
|
|
177
|
+
}
|
|
171
178
|
return fallback;
|
|
172
179
|
}
|
|
173
180
|
|
|
@@ -508,7 +515,7 @@ export function registerOhmSettings(pi: ExtensionAPI): void {
|
|
|
508
515
|
label: "Subagent Backend",
|
|
509
516
|
description: "How Pi Ohm should delegate subagents",
|
|
510
517
|
defaultValue: DEFAULT_OHM_CONFIG.subagentBackend,
|
|
511
|
-
values: ["interactive-shell", "custom-plugin", "none"],
|
|
518
|
+
values: ["interactive-shell", "interactive-sdk", "custom-plugin", "none"],
|
|
512
519
|
},
|
|
513
520
|
{
|
|
514
521
|
id: "feature-handoff",
|