@rudderhq/agent-runtime-codex-local 0.4.3-canary.9 → 0.4.5-canary.0

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.d.ts CHANGED
@@ -4,9 +4,10 @@ export declare const DEFAULT_CODEX_LOCAL_MODEL = "gpt-5.5";
4
4
  export declare const DEFAULT_CODEX_LOCAL_BYPASS_APPROVALS_AND_SANDBOX = true;
5
5
  export declare const DEFAULT_CODEX_LOCAL_SEARCH = true;
6
6
  export declare const DEFAULT_CODEX_LOCAL_COUNT_SUBSCRIPTION_USAGE_AS_COST = true;
7
+ export declare const GPT_5_6_CODEX_LOCAL_MODEL_IDS: readonly ["gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna"];
7
8
  export declare const models: {
8
9
  id: string;
9
10
  label: string;
10
11
  }[];
11
- export declare const agentConfigurationDoc = "# codex_local agent configuration\n\nAdapter: codex_local\n\nCore fields:\n- cwd (string, optional): default absolute working directory fallback for the agent process (created if missing when possible)\n- instructionsFilePath (string, optional): absolute path to a markdown role/persona instructions file such as SOUL.md; Rudder's shared operating contract is prepended separately at runtime\n- model (string, optional): Codex model id\n- modelFallbacks (array, optional): ordered fallback attempts as { agentRuntimeType, model, config? }; each may use a different runtime/provider\n- modelReasoningEffort (string, optional): reasoning effort override (low|medium|high|xhigh) passed via -c model_reasoning_effort=...\n- promptTemplate (string, optional): run prompt template\n- search (boolean, optional, defaults to true on new Codex agents): run codex with --search\n- countSubscriptionUsageAsCost (boolean, optional, defaults to true): when Codex uses local subscription auth, estimate API-equivalent spend from token usage instead of recording subscription runs as $0. Known-model estimates count toward Rudder spend and budget hard stops. Rates are stored per model from the OpenAI/Codex price table used by Vibe Usage; unknown models remain subscription usage until added.\n- dangerouslyBypassApprovalsAndSandbox (boolean, optional): run with bypass flag\n- command (string, optional): defaults to \"codex\"\n- extraArgs (string[], optional): additional CLI args\n- env (object, optional): KEY=VALUE environment variables\n- workspaceStrategy (object, optional): run workspace strategy; currently supports { type: \"git_worktree\", baseRef?, branchTemplate?, worktreeParentDir? }\n- workspaceRuntime (object, optional): workspace runtime service intents; local host-managed services are realized before Codex starts and exposed back via context/env\n\nOperational fields:\n- timeoutSec (number, optional): run timeout in seconds\n- graceSec (number, optional): SIGTERM grace period in seconds\n\nNotes:\n- Prompts are piped via stdin (Codex receives \"-\" prompt argument).\n- Rudder always prepends its shared operating contract to the stdin prompt. If instructionsFilePath is configured, Rudder also prepends that file plus sibling SOUL.md, TOOLS.md, and MEMORY.md when present.\n- Codex exec automatically applies repo-scoped AGENTS.md instructions from the active workspace. Rudder cannot suppress that discovery in exec mode, so repo AGENTS.md files may still apply even when you only configured an explicit instructionsFilePath.\n- Agent enabled-skill state is controlled only by Rudder's bundled skills plus the selections saved on the agent's Skills page.\n- The codex_local adapter does not materialize skills into repo-scoped \".agents/skills\"; it realizes selected skills by linking them into the Rudder-managed `CODEX_HOME/skills` directory that Codex discovers at runtime.\n- Rudder runs Codex with the operator HOME preserved for normal local CLI auth/config, while exporting a per-agent managed CODEX_HOME under the active Rudder instance for Codex runtime state and enabled Rudder skills.\n- Adapter env values for HOME, USERPROFILE, RUDDER_OPERATOR_HOME, AGENT_HOME, RUDDER_AGENT_ROOT, and CODEX_HOME do not override those protected runtime paths in the default Codex execution path.\n- Rudder sanitizes managed CODEX_HOME/config.toml, disables Codex bundled skills/plugins, strips inherited skill registries, and writes disabled external skill-path entries for operator-home, shared-Codex-home, and repo-local skill roots so runtime loading stays controlled by Rudder's enabled skill set.\n- Rudder prepares a managed Git config sidecar for the run, forces user.useConfigOnly=true, and points Git at it with GIT_CONFIG_GLOBAL so commits use the normal repo-local or host Git identity and never fall back to hostname .local authors.\n- When Rudder realizes a workspace/runtime for a run, it injects RUDDER_WORKSPACE_* and RUDDER_RUNTIME_* env vars for agent-side tooling.\n";
12
+ export declare const agentConfigurationDoc = "# codex_local agent configuration\n\nAdapter: codex_local\n\nCore fields:\n- cwd (string, optional): default absolute working directory fallback for the agent process (created if missing when possible)\n- instructionsFilePath (string, optional): absolute path to a markdown role/persona instructions file such as SOUL.md; Rudder's shared operating contract is prepended separately at runtime\n- model (string, optional): Codex model id\n- modelFallbacks (array, optional): ordered fallback attempts as { agentRuntimeType, model, config? }; each may use a different runtime/provider\n- modelReasoningEffort (string, optional): model-dependent reasoning effort override (light|low|medium|high|xhigh|max|ultra) passed via -c model_reasoning_effort=...\n- promptTemplate (string, optional): run prompt template\n- search (boolean, optional, defaults to true on new Codex agents): run codex with --search\n- countSubscriptionUsageAsCost (boolean, optional, defaults to true): when Codex uses local subscription auth, estimate API-equivalent spend from token usage instead of recording subscription runs as $0. Known-model estimates count toward Rudder spend and budget hard stops. Rates are stored per model from the OpenAI/Codex price table used by Vibe Usage; unknown models remain subscription usage until added.\n- dangerouslyBypassApprovalsAndSandbox (boolean, optional): run with bypass flag\n- command (string, optional): defaults to \"codex\"\n- extraArgs (string[], optional): additional CLI args\n- env (object, optional): KEY=VALUE environment variables\n- workspaceStrategy (object, optional): run workspace strategy; currently supports { type: \"git_worktree\", baseRef?, branchTemplate?, worktreeParentDir? }\n- workspaceRuntime (object, optional): workspace runtime service intents; local host-managed services are realized before Codex starts and exposed back via context/env\n\nOperational fields:\n- timeoutSec (number, optional): run timeout in seconds\n- graceSec (number, optional): SIGTERM grace period in seconds\n\nNotes:\n- Prompts are piped via stdin (Codex receives \"-\" prompt argument).\n- Rudder always prepends its shared operating contract to the stdin prompt. If instructionsFilePath is configured, Rudder also prepends that file plus sibling SOUL.md, TOOLS.md, and MEMORY.md when present.\n- Codex exec automatically applies repo-scoped AGENTS.md instructions from the active workspace. Rudder cannot suppress that discovery in exec mode, so repo AGENTS.md files may still apply even when you only configured an explicit instructionsFilePath.\n- Agent enabled-skill state is controlled only by Rudder's bundled skills plus the selections saved on the agent's Skills page.\n- The codex_local adapter does not materialize skills into repo-scoped \".agents/skills\"; it realizes selected skills by linking them into the Rudder-managed `CODEX_HOME/skills` directory that Codex discovers at runtime.\n- Rudder runs Codex with the operator HOME preserved for normal local CLI auth/config, while exporting a per-agent managed CODEX_HOME under the active Rudder instance for Codex runtime state and enabled Rudder skills.\n- Adapter env values for HOME, USERPROFILE, RUDDER_OPERATOR_HOME, AGENT_HOME, RUDDER_AGENT_ROOT, and CODEX_HOME do not override those protected runtime paths in the default Codex execution path.\n- Rudder sanitizes managed CODEX_HOME/config.toml, disables Codex bundled skills/plugins, strips inherited skill registries, and writes disabled external skill-path entries for operator-home, shared-Codex-home, and repo-local skill roots so runtime loading stays controlled by Rudder's enabled skill set.\n- Rudder prepares a managed Git config sidecar for the run, forces user.useConfigOnly=true, and points Git at it with GIT_CONFIG_GLOBAL so commits use the normal repo-local or host Git identity and never fall back to hostname .local authors.\n- When Rudder realizes a workspace/runtime for a run, it injects RUDDER_WORKSPACE_* and RUDDER_RUNTIME_* env vars for agent-side tooling.\n";
12
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,gBAAgB,CAAC;AAClC,eAAO,MAAM,KAAK,kBAAkB,CAAC;AACrC,eAAO,MAAM,yBAAyB,YAAY,CAAC;AACnD,eAAO,MAAM,gDAAgD,OAAO,CAAC;AACrE,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,oDAAoD,OAAO,CAAC;AAEzE,eAAO,MAAM,MAAM;;;GAiBlB,CAAC;AAEF,eAAO,MAAM,qBAAqB,k6HAmCjC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,gBAAgB,CAAC;AAClC,eAAO,MAAM,KAAK,kBAAkB,CAAC;AACrC,eAAO,MAAM,yBAAyB,YAAY,CAAC;AACnD,eAAO,MAAM,gDAAgD,OAAO,CAAC;AACrE,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAC/C,eAAO,MAAM,oDAAoD,OAAO,CAAC;AAEzE,eAAO,MAAM,6BAA6B,2DAIhC,CAAC;AAEX,eAAO,MAAM,MAAM;;;GAQlB,CAAC;AAEF,eAAO,MAAM,qBAAqB,k8HAmCjC,CAAC"}
package/dist/index.js CHANGED
@@ -4,23 +4,19 @@ export const DEFAULT_CODEX_LOCAL_MODEL = "gpt-5.5";
4
4
  export const DEFAULT_CODEX_LOCAL_BYPASS_APPROVALS_AND_SANDBOX = true;
5
5
  export const DEFAULT_CODEX_LOCAL_SEARCH = true;
6
6
  export const DEFAULT_CODEX_LOCAL_COUNT_SUBSCRIPTION_USAGE_AS_COST = true;
7
+ export const GPT_5_6_CODEX_LOCAL_MODEL_IDS = [
8
+ "gpt-5.6-sol",
9
+ "gpt-5.6-terra",
10
+ "gpt-5.6-luna",
11
+ ];
7
12
  export const models = [
13
+ { id: GPT_5_6_CODEX_LOCAL_MODEL_IDS[0], label: "GPT-5.6-sol" },
14
+ { id: GPT_5_6_CODEX_LOCAL_MODEL_IDS[1], label: "GPT-5.6-terra" },
15
+ { id: GPT_5_6_CODEX_LOCAL_MODEL_IDS[2], label: "GPT-5.6-luna" },
8
16
  { id: DEFAULT_CODEX_LOCAL_MODEL, label: "GPT-5.5" },
9
- { id: "gpt-5.5-codex", label: "GPT-5.5-Codex" },
10
- { id: "gpt-5.5-fast", label: "GPT-5.5-Fast" },
11
- { id: "gpt-5.5-flex", label: "GPT-5.5-Flex" },
12
17
  { id: "gpt-5.4", label: "GPT-5.4" },
13
- { id: "gpt-5.4-codex", label: "GPT-5.4-Codex" },
14
- { id: "gpt-5.4-mini", label: "GPT-5.4-Mini" },
15
- { id: "gpt-5.4-nano", label: "GPT-5.4-Nano" },
16
- { id: "gpt-5.3-codex", label: "GPT-5.3-Codex" },
17
- { id: "gpt-5.3-codex-spark", label: "GPT-5.3-Codex-Spark" },
18
- { id: "gpt-5.2-codex", label: "GPT-5.2-Codex" },
19
- { id: "gpt-5.1-codex", label: "GPT-5.1-Codex" },
20
- { id: "gpt-5.1-codex-max", label: "GPT-5.1-Codex-Max" },
21
- { id: "gpt-5.1-codex-mini", label: "GPT-5.1-Codex-Mini" },
22
- { id: "gpt-5-codex", label: "GPT-5-Codex" },
23
- { id: "codex-mini-latest", label: "Codex Mini Latest" },
18
+ { id: "gpt-5.4-mini", label: "GPT-5.4 Mini" },
19
+ { id: "gpt-5.2", label: "GPT-5.2" },
24
20
  ];
25
21
  export const agentConfigurationDoc = `# codex_local agent configuration
26
22
 
@@ -31,7 +27,7 @@ Core fields:
31
27
  - instructionsFilePath (string, optional): absolute path to a markdown role/persona instructions file such as SOUL.md; Rudder's shared operating contract is prepended separately at runtime
32
28
  - model (string, optional): Codex model id
33
29
  - modelFallbacks (array, optional): ordered fallback attempts as { agentRuntimeType, model, config? }; each may use a different runtime/provider
34
- - modelReasoningEffort (string, optional): reasoning effort override (low|medium|high|xhigh) passed via -c model_reasoning_effort=...
30
+ - modelReasoningEffort (string, optional): model-dependent reasoning effort override (light|low|medium|high|xhigh|max|ultra) passed via -c model_reasoning_effort=...
35
31
  - promptTemplate (string, optional): run prompt template
36
32
  - search (boolean, optional, defaults to true on new Codex agents): run codex with --search
37
33
  - countSubscriptionUsageAsCost (boolean, optional, defaults to true): when Codex uses local subscription auth, estimate API-equivalent spend from token usage instead of recording subscription runs as $0. Known-model estimates count toward Rudder spend and budget hard stops. Rates are stored per model from the OpenAI/Codex price table used by Vibe Usage; unknown models remain subscription usage until added.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,aAAa,CAAC;AAClC,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC;AACrC,MAAM,CAAC,MAAM,yBAAyB,GAAG,SAAS,CAAC;AACnD,MAAM,CAAC,MAAM,gDAAgD,GAAG,IAAI,CAAC;AACrE,MAAM,CAA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+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,aAAa,CAAC;AAClC,MAAM,CAAC,MAAM,KAAK,GAAG,eAAe,CAAC;AACrC,MAAM,CAAC,MAAM,yBAAyB,GAAG,SAAS,CAAC;AACnD,MAAM,CAAC,MAAM,gDAAgD,GAAG,IAAI,CAAC;AACrE,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,CAAC;AAC/C,MAAM,CAAC,MAAM,oDAAoD,GAAG,IAAI,CAAC;AAEzE,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,aAAa;IACb,eAAe;IACf,cAAc;CACN,CAAC;AAEX,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,EAAE,EAAE,EAAE,6BAA6B,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE;IAC9D,EAAE,EAAE,EAAE,6BAA6B,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE;IAChE,EAAE,EAAE,EAAE,6BAA6B,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE;IAC/D,EAAE,EAAE,EAAE,yBAAyB,EAAE,KAAK,EAAE,SAAS,EAAE;IACnD,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;IACnC,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,cAAc,EAAE;IAC7C,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCpC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rudderhq/agent-runtime-codex-local",
3
- "version": "0.4.3-canary.9",
3
+ "version": "0.4.5-canary.0",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "homepage": "https://github.com/Undertone0809/rudder",
6
6
  "bugs": {
@@ -68,7 +68,7 @@
68
68
  "probe:quota": "pnpm exec tsx src/cli/quota-probe.ts --json"
69
69
  },
70
70
  "dependencies": {
71
- "@rudderhq/agent-runtime-utils": "0.4.3-canary.9",
71
+ "@rudderhq/agent-runtime-utils": "0.4.5-canary.0",
72
72
  "picocolors": "^1.1.1"
73
73
  },
74
74
  "devDependencies": {