@ottocode/web-sdk 0.1.242 → 0.1.243

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/index.js CHANGED
@@ -6257,6 +6257,9 @@ var NewSessionLanding = memo6(forwardRef9(function NewSessionLanding2({ onSessio
6257
6257
  const handleAgentChange = useCallback12((value) => {
6258
6258
  setAgent(value);
6259
6259
  }, []);
6260
+ const handlePlanModeToggle = useCallback12((isPlanMode) => {
6261
+ setAgent(isPlanMode ? "plan" : "build");
6262
+ }, []);
6260
6263
  const handleProviderChange = useCallback12((value) => {
6261
6264
  setProvider(value);
6262
6265
  }, []);
@@ -6405,7 +6408,9 @@ var NewSessionLanding = memo6(forwardRef9(function NewSessionLanding2({ onSessio
6405
6408
  reasoningEnabled: modelSupportsReasoning && (config2?.defaults?.reasoningText ?? true),
6406
6409
  agent,
6407
6410
  agents: config2?.agents,
6408
- onAgentChange: handleAgentChange
6411
+ onAgentChange: handleAgentChange,
6412
+ onPlanModeToggle: handlePlanModeToggle,
6413
+ isPlanMode: agent === "plan"
6409
6414
  })
6410
6415
  })
6411
6416
  ]
@@ -27242,4 +27247,4 @@ export {
27242
27247
  API_BASE_URL
27243
27248
  };
27244
27249
 
27245
- //# debugId=A9146FAB0F0BF05764756E2164756E21
27250
+ //# debugId=A068638B2ECB8BB164756E2164756E21