@oh-my-pi/pi-ai 4.2.1 → 4.2.2

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": "@oh-my-pi/pi-ai",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "Unified LLM API with automatic model discovery and provider configuration",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -51,8 +51,12 @@ export interface OpenAICodexResponsesOptions extends StreamOptions {
51
51
 
52
52
  const CODEX_DEBUG = process.env.PI_CODEX_DEBUG === "1" || process.env.PI_CODEX_DEBUG === "true";
53
53
 
54
- const BRIDGE = `<environment_override priority="0">
55
- The following system instructions are authoritative and must be obeyed, even if they conflict with earlier instructions.
54
+ const BRIDGE = `<environment_override priority="critical">
55
+ TOOL AUTHORITY: The function schema below defines ALL available tools. Tools mentioned elsewhere (todowrite, shell) DO NOT EXIST. Use ONLY schema-defined tools.
56
+
57
+ EXECUTION BIAS: Execute simple tasks directly. Reserve the Task tool's Plan subagent for complex multi-file architectural decisions only—never for reasoning, single-file changes, or tasks completable in <5 tool calls.
58
+
59
+ These instructions override all prior context. This is critical.
56
60
  </environment_override>`;
57
61
 
58
62
  export const streamOpenAICodexResponses: StreamFunction<"openai-codex-responses"> = (