@omercnet/paseo-omp 5.4.0-next.402.1 → 5.4.0-next.403.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.
@@ -21,6 +21,7 @@ import {
21
21
  OMP_SETTING_CATEGORIES,
22
22
  type OmpSetting,
23
23
  type OmpSettingCategory,
24
+ orderOmpToolSettings,
24
25
  parseOmpStructuredSettingValue,
25
26
  updateOmpSettings,
26
27
  } from "../shared/omp-settings";
@@ -1005,7 +1006,7 @@ function OmpConfigContent({
1005
1006
  : fallbackSettingsFromConfig(configQuery.data?.config);
1006
1007
  const matching = sourceSettings.filter((setting) => {
1007
1008
  if (!normalizedSearch) return true;
1008
- return `${setting.path}\n${setting.description}`
1009
+ return `${setting.path}\n${formatOmpSettingLabel(setting.path)}\n${setting.description}`
1009
1010
  .toLocaleLowerCase()
1010
1011
  .includes(normalizedSearch);
1011
1012
  });
@@ -1016,6 +1017,8 @@ function OmpConfigContent({
1016
1017
  if (group) group.push(setting);
1017
1018
  else byCategory.set(category, [setting]);
1018
1019
  }
1020
+ const tools = byCategory.get("tools");
1021
+ if (tools) byCategory.set("tools", orderOmpToolSettings(tools));
1019
1022
  return { sourceSettings, matching, byCategory };
1020
1023
  }, [configQuery.data?.config, normalizedSearch, settingsQuery.data]);
1021
1024
  const modelCatalog: OmpModelCatalogState = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-omp",
3
- "version": "5.4.0-next.402.1",
3
+ "version": "5.4.0-next.403.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.4.0-next.402.1"; // x-release-please-version
2
+ export const PASEO_OMP_PACKAGE_VERSION = "5.4.0-next.403.1"; // x-release-please-version
@@ -309,7 +309,73 @@ const CATEGORY_PREFIXES: Readonly<Record<OmpSettingCategory, readonly string[]>>
309
309
  general: [],
310
310
  };
311
311
 
312
+ /** The optional-tool on/off switches, in the order they list when all are the same state. */
313
+ const OMP_TOOL_SWITCHES: readonly { path: string; label: string; description: string }[] = [
314
+ {
315
+ path: "github.enabled",
316
+ label: "GitHub",
317
+ description:
318
+ "Repositories, issues, pull requests and Actions from the agent. Needs the gh command on the PATH.",
319
+ },
320
+ {
321
+ path: "security.enabled",
322
+ label: "Security scan",
323
+ description: "Security scan planning and execution, plus the read-only security:// resources.",
324
+ },
325
+ {
326
+ path: "generate_image.enabled",
327
+ label: "Image generation",
328
+ description: "Text-to-image generation and editing.",
329
+ },
330
+ {
331
+ path: "speechgen.enabled",
332
+ label: "Speech synthesis",
333
+ description: "Turns text into speech files, on-device or with xAI Grok Voice.",
334
+ },
335
+ {
336
+ path: "computer.enabled",
337
+ label: "Desktop control",
338
+ description:
339
+ "Lets the agent script this machine's desktop: screenshots, input and accessibility.",
340
+ },
341
+ {
342
+ path: "lsp.enabled",
343
+ label: "Language servers",
344
+ description: "Code intelligence: definitions, references, diagnostics and rename.",
345
+ },
346
+ {
347
+ path: "debug.enabled",
348
+ label: "Debugger",
349
+ description: "Debugging through DAP adapters.",
350
+ },
351
+ {
352
+ path: "ida.enabled",
353
+ label: "IDA Pro",
354
+ description:
355
+ "Opens executables in IDA Pro and adds the ida tool. Does nothing without an IDA install.",
356
+ },
357
+ {
358
+ path: "checkpoint.enabled",
359
+ label: "Checkpoints",
360
+ description: "Checkpoint and rewind tools for saving and restoring context.",
361
+ },
362
+ {
363
+ path: "task.isolation.enabled",
364
+ label: "Task isolation",
365
+ description: "Lets a task run apart from the shared checkout when it asks to.",
366
+ },
367
+ {
368
+ path: "magicKeywords.enabled",
369
+ label: "Magic keywords",
370
+ description:
371
+ "Hidden notices when a message holds a standalone ultrathink, orchestrate, workflowz or jevify keyword.",
372
+ },
373
+ ];
374
+
375
+ const TOOL_SWITCH_LABELS = new Map(OMP_TOOL_SWITCHES.map(({ path, label }) => [path, label]));
376
+
312
377
  export function categorizeOmpSetting(path: string): OmpSettingCategory {
378
+ if (TOOL_SWITCH_LABELS.has(path)) return "tools";
313
379
  for (const category of OMP_SETTING_CATEGORIES) {
314
380
  if (CATEGORY_PREFIXES[category].some((prefix) => path === prefix || path.startsWith(prefix))) {
315
381
  return category;
@@ -319,6 +385,8 @@ export function categorizeOmpSetting(path: string): OmpSettingCategory {
319
385
  }
320
386
 
321
387
  export function formatOmpSettingLabel(path: string): string {
388
+ const switchLabel = TOOL_SWITCH_LABELS.get(path);
389
+ if (switchLabel) return switchLabel;
322
390
  const leaf = path.split(".").at(-1) ?? path;
323
391
  const words = leaf
324
392
  .replace(/([a-z0-9])([A-Z])/g, "$1 $2")
@@ -327,8 +395,19 @@ export function formatOmpSettingLabel(path: string): string {
327
395
  return words ? `${words[0]?.toUpperCase() ?? ""}${words.slice(1)}` : path;
328
396
  }
329
397
 
398
+ /** Tools category order: enabled switches, then disabled switches, then every other tool setting. */
399
+ export function orderOmpToolSettings(settings: readonly OmpSetting[]): OmpSetting[] {
400
+ const byPath = new Map(settings.map((setting) => [setting.path, setting]));
401
+ const switches = OMP_TOOL_SWITCHES.flatMap(({ path }) => byPath.get(path) ?? []);
402
+ const enabled = switches.filter((setting) => setting.value === true);
403
+ const disabled = switches.filter((setting) => setting.value !== true);
404
+ const rest = settings.filter((setting) => !TOOL_SWITCH_LABELS.has(setting.path));
405
+ return [...enabled, ...disabled, ...rest];
406
+ }
407
+
330
408
  /** Plain wording that replaces OMP's own description (or its absence) for these settings. */
331
409
  export const OMP_SETTING_DESCRIPTIONS: Readonly<Record<string, string>> = {
410
+ ...Object.fromEntries(OMP_TOOL_SWITCHES.map(({ path, description }) => [path, description])),
332
411
  "session.warnCost":
333
412
  "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
413
  "session.maxCost":