@omercnet/paseo-omp 5.6.3-next.477.1 → 5.6.3-next.481.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-omp",
3
- "version": "5.6.3-next.477.1",
3
+ "version": "5.6.3-next.481.1",
4
4
  "type": "module",
5
5
  "description": "Paseo integration for OMP, including its direct provider and workspace tooling.",
6
6
  "license": "MIT",
@@ -1,2 +1,2 @@
1
1
  /** Release Please keeps this bundle-safe constant aligned with package.json. */
2
- export const PASEO_OMP_PACKAGE_VERSION = "5.6.3-next.477.1"; // x-release-please-version
2
+ export const PASEO_OMP_PACKAGE_VERSION = "5.6.3-next.481.1"; // x-release-please-version
@@ -1655,7 +1655,15 @@ export class OmpProviderSession implements OmpOpenedSession, OmpSubagentControls
1655
1655
  "OMP approval mode cannot change live; create a new session instead",
1656
1656
  );
1657
1657
  }
1658
- if (input.changes.settings && Object.keys(input.changes.settings).length > 0) {
1658
+ // Paseo 0.14 and 0.15 send live option patches as `settings`; 0.16 sends `providerOptions`,
1659
+ // and repeats them as the deprecated `settings` only while OMP reports legacy settings.
1660
+ // Older SDK types lack `providerOptions` on configure changes, so read it structurally.
1661
+ // Open accepts `settings` that only mirror `providerOptions`; a live patch is never accepted.
1662
+ const changes: { settings?: object; providerOptions?: object } = input.changes;
1663
+ if (
1664
+ (changes.settings && Object.keys(changes.settings).length > 0) ||
1665
+ (changes.providerOptions && Object.keys(changes.providerOptions).length > 0)
1666
+ ) {
1659
1667
  throw new OmpPublicError("OMP does not expose live provider settings");
1660
1668
  }
1661
1669
  if (input.changes.model === null || input.changes.thinkingOption === null) {