@omercnet/paseo-omp 5.4.0-next.396.1 → 5.4.0-next.397.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.
@@ -595,6 +595,7 @@ function SupportDiagnosticsSection({
595
595
  const CATEGORY_LABELS: Record<OmpSettingCategory, string> = {
596
596
  appearance: "Appearance",
597
597
  model: "Model",
598
+ budget: "Budget",
598
599
  interaction: "Interaction",
599
600
  context: "Context",
600
601
  memory: "Memory",
@@ -763,7 +764,8 @@ function EditableScalarValue({
763
764
  accessibilityLabel={`Edit ${formatOmpSettingLabel(setting.path)}`}
764
765
  editable={!disabled}
765
766
  keyboardType={setting.type === "number" ? "numeric" : "default"}
766
- value={value === undefined ? "" : String(value)}
767
+ placeholder="Not set"
768
+ value={value === undefined || value === null ? "" : String(value)}
767
769
  onChangeText={onSet}
768
770
  style={styles.scalarInput}
769
771
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-omp",
3
- "version": "5.4.0-next.396.1",
3
+ "version": "5.4.0-next.397.1",
4
4
  "type": "module",
5
5
  "description": "Paseo integration for OMP, including its direct provider and workspace tooling.",
6
6
  "license": "MIT",
@@ -7,6 +7,7 @@ import { parseDocument, parse as parseYaml } from "yaml";
7
7
  import {
8
8
  isOmpStructuredSettingPath,
9
9
  type listOmpSettings,
10
+ OMP_SETTING_FALLBACK_DESCRIPTIONS,
10
11
  OMP_SETTINGS_CATALOG_VERSION,
11
12
  type OmpSetting,
12
13
  type OmpSettingType,
@@ -191,7 +192,10 @@ export function parseOmpSettingsList(raw: unknown): ParsedOmpSettings {
191
192
  settings.push({
192
193
  path,
193
194
  type: parsedType.data,
194
- description: typeof entry.description === "string" ? entry.description : "",
195
+ description:
196
+ typeof entry.description === "string" && entry.description
197
+ ? entry.description
198
+ : (OMP_SETTING_FALLBACK_DESCRIPTIONS[path] ?? ""),
195
199
  ...(redacted
196
200
  ? { redacted: true, ...(configured === undefined ? {} : { configured }) }
197
201
  : { value: entry.value }),
@@ -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.4.0-next.396.1"; // x-release-please-version
2
+ export const PASEO_OMP_PACKAGE_VERSION = "5.4.0-next.397.1"; // x-release-please-version
@@ -190,6 +190,7 @@ export type OmpSetting = z.infer<typeof OmpSettingSchema>;
190
190
  export const OMP_SETTING_CATEGORIES = [
191
191
  "appearance",
192
192
  "model",
193
+ "budget",
193
194
  "interaction",
194
195
  "context",
195
196
  "memory",
@@ -244,6 +245,7 @@ const CATEGORY_PREFIXES: Readonly<Record<OmpSettingCategory, readonly string[]>>
244
245
  "prewalk.",
245
246
  "tier.",
246
247
  ],
248
+ budget: ["session.warnCost", "session.maxCost"],
247
249
  interaction: [
248
250
  "autoResume",
249
251
  "power.",
@@ -325,6 +327,14 @@ export function formatOmpSettingLabel(path: string): string {
325
327
  return words ? `${words[0]?.toUpperCase() ?? ""}${words.slice(1)}` : path;
326
328
  }
327
329
 
330
+ /** OMP ships these without a description; unset means no cap. */
331
+ export const OMP_SETTING_FALLBACK_DESCRIPTIONS: Readonly<Record<string, string>> = {
332
+ "session.warnCost":
333
+ "Warn once when a session's spend reaches this many US dollars. Leave unset for no warning. Applies to every session, including subagents, and takes effect on the next request.",
334
+ "session.maxCost":
335
+ "Stop a session from sending new model requests once its spend reaches this many US dollars. Leave unset for no limit. Requests already in flight can finish past the limit; raise or reset the value to continue.",
336
+ };
337
+
328
338
  export const listOmpSettings = defineRpc({
329
339
  name: "paseo-omp.list-settings",
330
340
  input: z