@oh-my-pi/pi-coding-agent 10.2.1 → 10.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-coding-agent",
3
- "version": "10.2.1",
3
+ "version": "10.2.2",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "ompConfig": {
@@ -79,12 +79,12 @@
79
79
  "test": "bun test"
80
80
  },
81
81
  "dependencies": {
82
- "@oh-my-pi/omp-stats": "10.2.1",
83
- "@oh-my-pi/pi-agent-core": "10.2.1",
84
- "@oh-my-pi/pi-ai": "10.2.1",
85
- "@oh-my-pi/pi-natives": "10.2.1",
86
- "@oh-my-pi/pi-tui": "10.2.1",
87
- "@oh-my-pi/pi-utils": "10.2.1",
82
+ "@oh-my-pi/omp-stats": "10.2.2",
83
+ "@oh-my-pi/pi-agent-core": "10.2.2",
84
+ "@oh-my-pi/pi-ai": "10.2.2",
85
+ "@oh-my-pi/pi-natives": "10.2.2",
86
+ "@oh-my-pi/pi-tui": "10.2.2",
87
+ "@oh-my-pi/pi-utils": "10.2.2",
88
88
  "@openai/agents": "^0.4.4",
89
89
  "@sinclair/typebox": "^0.34.48",
90
90
  "ajv": "^8.17.1",
@@ -4,7 +4,7 @@
4
4
  * Provides tools for debugging, bug report generation, and system diagnostics.
5
5
  */
6
6
  import * as fs from "node:fs/promises";
7
- import { getWorkProfile } from "@oh-my-pi/pi-natives/work";
7
+ import { getWorkProfile } from "@oh-my-pi/pi-natives";
8
8
  import { Container, Loader, type SelectItem, SelectList, Spacer, Text } from "@oh-my-pi/pi-tui";
9
9
  import { getSessionsDir } from "../config";
10
10
  import { DynamicBorder } from "../modes/components/dynamic-border";
@@ -6,7 +6,7 @@
6
6
  import * as fs from "node:fs/promises";
7
7
  import * as os from "node:os";
8
8
  import * as path from "node:path";
9
- import type { WorkProfile } from "@oh-my-pi/pi-natives/work";
9
+ import type { WorkProfile } from "@oh-my-pi/pi-natives";
10
10
  import { isEnoent } from "@oh-my-pi/pi-utils";
11
11
  import type { CpuProfile, HeapSnapshot } from "./profiler";
12
12
  import { collectSystemInfo, sanitizeEnv } from "./system-info";
@@ -515,18 +515,18 @@ export class InteractiveMode implements InteractiveModeContext {
515
515
  }
516
516
 
517
517
  private async applyPlanModeModel(): Promise<void> {
518
- const slowModel = this.session.resolveRoleModel("slow");
519
- if (!slowModel) return;
518
+ const planModel = this.session.resolveRoleModel("plan");
519
+ if (!planModel) return;
520
520
  const currentModel = this.session.model;
521
- if (currentModel && currentModel.provider === slowModel.provider && currentModel.id === slowModel.id) {
521
+ if (currentModel && currentModel.provider === planModel.provider && currentModel.id === planModel.id) {
522
522
  return;
523
523
  }
524
524
  this.planModePreviousModel = currentModel;
525
525
  try {
526
- await this.session.setModelTemporary(slowModel);
526
+ await this.session.setModelTemporary(planModel);
527
527
  } catch (error) {
528
528
  this.showWarning(
529
- `Failed to switch to slow model for plan mode: ${error instanceof Error ? error.message : String(error)}`,
529
+ `Failed to switch to plan model for plan mode: ${error instanceof Error ? error.message : String(error)}`,
530
530
  );
531
531
  }
532
532
  }