oh-my-codex 0.22.9 → 0.22.11

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.
@@ -1 +1 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../../src/config/generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAML,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAChC,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EAIL,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACpC,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD,UAAU,YAAY;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,uBAAuB,CAAC,UAAU,CAAC,CAAC;IAC1D,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,4EAA4E;IAC5E,qBAAqB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACnE,oFAAoF;IACpF,0BAA0B,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC;IACxE,0EAA0E;IAC1E,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,6BAA6B,CAAC,CAAC;IACrE,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,wBAAwB,EAAE,CAAC;IAC9C,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC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;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CA4DA;AAED,wBAAgB,mCAAmC,CAAC,MAAM,EAAE,MAAM,GAAG;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAqCA;AAoCD,wBAAgB,yCAAyC,CAAC,MAAM,EAAE,MAAM,GAAG;IACzE,OAAO,EAAE,wBAAwB,EAAE,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CA2CA;AA8KD,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,wBAAwB,EAAE,EACnC,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,CAiBR;AA+ED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,cAAc,EAAE,MAAM,EACtB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,YAAiB,GACzB,MAAM,CA2IR;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,oBAAoB,CACxC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,GAAE,YAAiB,GAC1B,OAAO,CAAC,OAAO,CAAC,CA8BlB;AAQD,wBAAsB,WAAW,CAC/B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CAcf"}
@@ -14,6 +14,7 @@ import { existsSync } from "fs";
14
14
  import { join, resolve } from "path";
15
15
  import TOML from "@iarna/toml";
16
16
  import { analyzeTomlSource } from "../utils/toml-source.js";
17
+ import { canonicalizeComparablePath } from "../utils/paths.js";
17
18
  import { DEFAULT_FRONTIER_MODEL } from "./models.js";
18
19
  import { DEFAULT_CODEX_HOOK_FEATURE_FLAG, CODEX_HOOK_FEATURE_FLAGS, CODEX_PLUGIN_SCOPED_HOOKS_FEATURE_FLAG, formatCodexHookFeatureFlagLine, normalizeCodexHookFeatureFlag, } from "./codex-feature-flags.js";
19
20
  import { OMX_FIRST_PARTY_MCP_SERVER_NAMES, getOmxFirstPartySetupMcpServers, } from "./omx-first-party-mcp.js";
@@ -39,6 +40,20 @@ const LEGACY_SEEDED_MODEL_AUTO_COMPACT_TOKEN_LIMIT = 200000;
39
40
  const OMX_SEEDED_BEHAVIORAL_DEFAULTS_START_MARKER = "# oh-my-codex seeded behavioral defaults (uninstall removes unchanged defaults)";
40
41
  const OMX_SEEDED_BEHAVIORAL_DEFAULTS_END_MARKER = "# End oh-my-codex seeded behavioral defaults";
41
42
  export const OMX_DEVELOPER_INSTRUCTIONS = "You have oh-my-codex installed. AGENTS.md is the orchestration brain and main control surface. Follow AGENTS.md for skill/keyword routing, $name workflow invocation, and role-specialized subagents; when the native surface exposes `agent_type` role routing, set `agent_type` to an installed role and never omit it for OMX work. When it reports `role_routing_unavailable` and adapted Ralplan authority is requested, do not fabricate `agent_type`; run `omx ralplan preflight --json` and stop on `unsupported_documented_leader_proof`. Ordinary work remains under its own workflow gates. Never fake the role via a prompt label or infer authority from session/thread/pointer/transcript/cwd state. Use outcome-first, concise progress updates: state the target result, constraints, validation evidence, and stop condition before adding process detail. Native subagents live in .codex/agents and may handle independent parallel subtasks within one Codex session or team pane. Skills load from .codex/skills, not native-agent TOMLs. Treat installed prompts as narrower execution surfaces under AGENTS.md authority.";
43
+ /**
44
+ * Historically shipped OMX developer_instructions values.
45
+ * When upgrading, any value matching one of these is treated as OMX-managed and refreshed
46
+ * to the current version. Only values NOT in this set are preserved as user-customizations.
47
+ * This allows users to get default updates across OMX releases while still preserving
48
+ * genuinely custom developer_instructions.
49
+ */
50
+ const KNOWN_OMX_DEVELOPER_INSTRUCTIONS_VALUES = new Set([
51
+ OMX_DEVELOPER_INSTRUCTIONS,
52
+ // Previous OMX versions before AGENTS.md orchestration guidance:
53
+ "You have oh-my-codex installed. AGENTS.md is your orchestration brain and the main orchestration surface. Use skill/keyword routing like $name plus spawned role-specialized subagents for specialized work. Codex native subagents are available via .codex/agents and may be used for independent parallel subtasks within a single session or team pane. Skills are loaded from installed SKILL.md files under .codex/skills, not from native agent TOMLs. Use workflow skills via $name when explicitly invoked or clearly routed by AGENTS.md. Treat installed prompts as narrower internal execution surfaces under AGENTS.md authority, even when user-facing docs prefer $name keywords.",
54
+ // Earlier version with simplified guidance
55
+ "You have oh-my-codex installed. AGENTS.md is the orchestration brain and main control surface. Follow AGENTS.md for skill/keyword routing and $name workflow invocation. When the native surface exposes `agent_type` role routing, set `agent_type` to an installed role and never omit it for OMX work. When it reports `role_routing_unavailable` and adapted Ralplan authority is requested, do not fabricate `agent_type`; run `omx ralplan preflight --json` and stop on `unsupported_documented_leader_proof`. Ordinary work remains under its own workflow gates. Never fake the role via a prompt label or infer authority from session/thread/pointer/transcript/cwd state. Registered Codex plugin marketplace surfaces supply OMX workflows and plugin-scoped companion resources when the plugin is installed; native agent roles are installed as setup-owned Codex agent TOML files in plugin mode so agent_type routing works. User-installed skills may still live under ~/.codex/skills. Use outcome-first, concise progress updates: state the target result, constraints, validation evidence, and stop condition before adding process detail.",
56
+ ]);
42
57
  export const OMX_PLUGIN_DEVELOPER_INSTRUCTIONS = '<omx version="1">You have oh-my-codex installed through Codex plugin mode. AGENTS.md is the orchestration brain and main control surface. Follow AGENTS.md for skill/keyword routing and $name workflow invocation. When the native surface exposes `agent_type` role routing, set `agent_type` to an installed role and never omit it for OMX work. When it reports `role_routing_unavailable` and adapted Ralplan authority is requested, do not fabricate `agent_type`; run `omx ralplan preflight --json` and stop on `unsupported_documented_leader_proof`. Ordinary work remains under its own workflow gates. Never fake the role via a prompt label or infer authority from session/thread/pointer/transcript/cwd state. Registered Codex plugin marketplace surfaces supply OMX workflows and plugin-scoped companion resources when the plugin is installed; native agent roles are installed as setup-owned Codex agent TOML files in plugin mode so agent_type routing works. User-installed skills may still live under ~/.codex/skills. Use outcome-first, concise progress updates: state the target result, constraints, validation evidence, and stop condition before adding process detail.</omx>';
43
58
  const SHARED_MCP_REGISTRY_MARKER = "oh-my-codex (OMX) Shared MCP Registry Sync";
44
59
  const SHARED_MCP_REGISTRY_END_MARKER = "# End oh-my-codex shared MCP registry sync";
@@ -207,7 +222,31 @@ function stripLegacyOmxTeamRunTable(config) {
207
222
  return result.join("\n");
208
223
  }
209
224
  function unwrapTomlString(value) {
210
- return value?.match(/^"(.*)"$/)?.[1];
225
+ if (!value)
226
+ return undefined;
227
+ if (value.startsWith('"') && value.endsWith('"')) {
228
+ return value.slice(1, -1);
229
+ }
230
+ return undefined;
231
+ }
232
+ /**
233
+ * Properly parse a TOML-formatted string value to extract its actual string content.
234
+ * Handles basic strings (double-quoted), literal strings (single-quoted), and multiline variants.
235
+ * Uses TOML parser to ensure correct handling of escapes and special characters.
236
+ */
237
+ function parseTomlStringValue(tomlValue) {
238
+ if (!tomlValue)
239
+ return undefined;
240
+ try {
241
+ // Create a temporary TOML document to parse the value correctly
242
+ // Use a unique key name to avoid collisions
243
+ const parsed = TOML.parse(`key = ${tomlValue}`);
244
+ const val = parsed.key;
245
+ return typeof val === "string" ? val : undefined;
246
+ }
247
+ catch {
248
+ return undefined;
249
+ }
211
250
  }
212
251
  export function getRootModelName(config) {
213
252
  return unwrapTomlString(parseRootKeyValues(config).get("model"));
@@ -407,18 +446,22 @@ export function sanitizePreviousNotifyCommand(command, pkgRoot) {
407
446
  return null;
408
447
  return [...command];
409
448
  }
410
- function getOmxTopLevelLines(pkgRoot, existingConfig = "", modelOverride, notifyCommand = getDefaultNotifyCommand(pkgRoot), preservedReasoningEffort) {
449
+ function getOmxTopLevelLines(pkgRoot, existingConfig = "", modelOverride, notifyCommand = getDefaultNotifyCommand(pkgRoot), preservedReasoningEffort, preservedDeveloperInstructions) {
411
450
  const rootValues = parseRootKeyValues(existingConfig);
412
451
  const reasoningEffortLine = preservedReasoningEffort !== undefined
413
452
  ? `model_reasoning_effort = ${preservedReasoningEffort}`
414
453
  : 'model_reasoning_effort = "medium"';
454
+ // Preserve custom developer_instructions if provided, otherwise use OMX default
455
+ const developerInstructionsValue = preservedDeveloperInstructions !== undefined
456
+ ? preservedDeveloperInstructions
457
+ : `"${escapeTomlString(OMX_DEVELOPER_INSTRUCTIONS)}"`;
415
458
  const lines = [
416
459
  "# oh-my-codex top-level settings (must be before any [table])",
417
460
  ...(notifyCommand === false
418
461
  ? []
419
462
  : [`notify = ${formatTomlStringArray(notifyCommand)}`]),
420
463
  reasoningEffortLine,
421
- `developer_instructions = "${escapeTomlString(OMX_DEVELOPER_INSTRUCTIONS)}"`,
464
+ `developer_instructions = ${developerInstructionsValue}`,
422
465
  ];
423
466
  const existingModel = rootValues.get("model");
424
467
  const selectedModel = modelOverride ?? unwrapTomlString(existingModel) ?? DEFAULT_SETUP_MODEL;
@@ -1553,15 +1596,35 @@ function isExactOmxPluginHookTrustRepresentation(key, representation) {
1553
1596
  typeof value.trusted_hash === "string" &&
1554
1597
  /^sha256:[a-f0-9]{64}$/.test(value.trusted_hash);
1555
1598
  }
1599
+ /**
1600
+ * Normalize a managed hook trust key by canonicalizing the hooksPath portion.
1601
+ * This ensures that the same hooks accessed through different paths (alias vs canonical)
1602
+ * generate equivalent keys for comparison purposes.
1603
+ * @param key Trust key in format "<hooksPath>:<eventName>:<groupIndex>:<handlerIndex>"
1604
+ * @returns Normalized key with canonicalized hooksPath
1605
+ */
1606
+ function normalizeManagedhookTrustKey(key) {
1607
+ const match = /^(.*):([a-z_]+):(\d+):(\d+)$/.exec(key);
1608
+ if (!match)
1609
+ return key;
1610
+ const hooksPath = match[1];
1611
+ const eventName = match[2];
1612
+ const groupIndex = match[3];
1613
+ const handlerIndex = match[4];
1614
+ const canonicalPath = canonicalizeComparablePath(hooksPath);
1615
+ return `${canonicalPath}:${eventName}:${groupIndex}:${handlerIndex}`;
1616
+ }
1556
1617
  function managedHookTrustStateExpectations(...states) {
1557
1618
  const expectations = new Map();
1558
1619
  for (const state of states) {
1559
1620
  if (!state)
1560
1621
  continue;
1561
1622
  for (const [key, entry] of Object.entries(state)) {
1562
- const hashes = expectations.get(key) ?? new Set();
1623
+ // Normalize the key to handle symlink aliases and canonical paths equivalently
1624
+ const normalizedKey = normalizeManagedhookTrustKey(key);
1625
+ const hashes = expectations.get(normalizedKey) ?? new Set();
1563
1626
  hashes.add(entry.trusted_hash);
1564
- expectations.set(key, hashes);
1627
+ expectations.set(normalizedKey, hashes);
1565
1628
  }
1566
1629
  }
1567
1630
  return expectations;
@@ -1578,8 +1641,9 @@ function managedHookTrustCoordinate(key) {
1578
1641
  }
1579
1642
  /** Rejects family fallback for handler coordinates beyond OMX's managed range. */
1580
1643
  function isForeignHookTrustCoordinateBeyondManagedFamily(expectations, key) {
1581
- const candidate = managedHookTrustCoordinate(key);
1582
- if (!candidate || expectations.has(key))
1644
+ const normalizedKey = normalizeManagedhookTrustKey(key);
1645
+ const candidate = managedHookTrustCoordinate(normalizedKey);
1646
+ if (!candidate || expectations.has(normalizedKey))
1583
1647
  return false;
1584
1648
  let maxGroupIndex = -1;
1585
1649
  let maxHandlerIndex = -1;
@@ -1596,10 +1660,11 @@ function isForeignHookTrustCoordinateBeyondManagedFamily(expectations, key) {
1596
1660
  (candidate.groupIndex > maxGroupIndex || candidate.handlerIndex > maxHandlerIndex);
1597
1661
  }
1598
1662
  function expectedManagedHookTrustHashes(expectations, key, allowCoordinateDrift) {
1599
- const exact = expectations.get(key);
1663
+ const normalizedKey = normalizeManagedhookTrustKey(key);
1664
+ const exact = expectations.get(normalizedKey);
1600
1665
  if (exact || !allowCoordinateDrift)
1601
1666
  return exact;
1602
- const coordinate = managedHookTrustCoordinate(key);
1667
+ const coordinate = managedHookTrustCoordinate(normalizedKey);
1603
1668
  if (!coordinate)
1604
1669
  return undefined;
1605
1670
  const hashes = new Set();
@@ -3234,6 +3299,18 @@ export function buildMergedConfig(existingConfig, pkgRoot, options = {}) {
3234
3299
  const userReasoningEffortToPreserve = options.preserveReasoningEffort === true
3235
3300
  ? parseRootKeyValues(existing).get("model_reasoning_effort")
3236
3301
  : undefined;
3302
+ // Preserve custom developer_instructions only if it differs from ALL known OMX defaults.
3303
+ // This allows users to get updates to the default guidance across OMX releases while
3304
+ // preserving genuinely custom values.
3305
+ const existingDeveloperInstructions = parseRootKeyValues(existing).get("developer_instructions");
3306
+ let userDeveloperInstructionsToPreserve = undefined;
3307
+ if (existingDeveloperInstructions) {
3308
+ const parsedValue = parseTomlStringValue(existingDeveloperInstructions);
3309
+ // Only preserve if the parsed value doesn't match any known OMX default
3310
+ if (parsedValue && !KNOWN_OMX_DEVELOPER_INSTRUCTIONS_VALUES.has(parsedValue)) {
3311
+ userDeveloperInstructionsToPreserve = existingDeveloperInstructions;
3312
+ }
3313
+ }
3237
3314
  existing = stripOmxTopLevelKeys(existing).trimStart();
3238
3315
  if (userNotifyToPreserve) {
3239
3316
  existing = `${`notify = ${formatTomlStringArray(userNotifyToPreserve)}`}\n${existing.trimStart()}`;
@@ -3241,6 +3318,9 @@ export function buildMergedConfig(existingConfig, pkgRoot, options = {}) {
3241
3318
  if (userReasoningEffortToPreserve !== undefined) {
3242
3319
  existing = stripRootLevelKeys(existing, ["model_reasoning_effort"]);
3243
3320
  }
3321
+ if (userDeveloperInstructionsToPreserve !== undefined) {
3322
+ existing = stripRootLevelKeys(existing, ["developer_instructions"]);
3323
+ }
3244
3324
  existing = stripOrphanedManagedNotify(existing, pkgRoot).trimStart();
3245
3325
  const hookTrustStrip = stripManagedCodexHookTrustStateForRefresh(existing, options.priorManagedHookTrustState, managedTrustState);
3246
3326
  rejectManagedCodexHookTrustStateConflicts(hookTrustStrip.preservedConflictKeys);
@@ -3264,7 +3344,7 @@ export function buildMergedConfig(existingConfig, pkgRoot, options = {}) {
3264
3344
  ? getDefaultNotifyCommand(pkgRoot)
3265
3345
  : options.notifyCommand, options.preserveReasoningEffort === true
3266
3346
  ? userReasoningEffortToPreserve
3267
- : undefined);
3347
+ : undefined, userDeveloperInstructionsToPreserve);
3268
3348
  const tablesBlock = getOmxTablesBlock(pkgRoot, includeTui && !tuiUpsert.hadExistingTui, statusLinePreset, options.codexHooksFile, hookOptions, managedTrustState, options.includeFirstPartyMcp === true);
3269
3349
  const sharedRegistryBlock = getSharedMcpRegistryBlock(options.sharedMcpServers ?? [], options.sharedMcpRegistrySource, existing);
3270
3350
  let body = existing.trim();