@phren/agent 0.3.30 → 0.3.31

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,10 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, Text, useStdout } from "ink";
2
+ import { Box, Text, useWindowSize } from "ink";
3
3
  import { PERMISSION_ICONS, PERMISSION_LABELS } from "../ansi.js";
4
4
  import { PhrenInput } from "./PhrenInput.js";
5
5
  export function InputArea({ value, onChange, onSubmit, bashMode, focus, separatorColor, theme, completionOpen }) {
6
- const { stdout } = useStdout();
7
- const columns = stdout?.columns || 80;
6
+ const { columns: windowColumns } = useWindowSize();
7
+ const columns = windowColumns || 80;
8
8
  const _sep = "\u2500".repeat(columns);
9
9
  const sepColor = theme?.input.separator ?? separatorColor ?? "gray";
10
10
  const promptColor = theme?.input.prompt ?? undefined;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, Text, useStdout } from "ink";
2
+ import { Box, Text, useWindowSize } from "ink";
3
3
  function displayWidth(text) {
4
4
  let width = 0;
5
5
  for (const ch of text) {
@@ -26,8 +26,8 @@ function truncate(text, max) {
26
26
  return out + "\u2026";
27
27
  }
28
28
  export function StatusBar({ provider, model, project, turns, cost, contextTokens, contextLimit, reasoningEffort, theme }) {
29
- const { stdout } = useStdout();
30
- const width = stdout?.columns || 80;
29
+ const { columns } = useWindowSize();
30
+ const width = columns || 80;
31
31
  const leftParts = ["\u25c6 phren", provider];
32
32
  if (model)
33
33
  leftParts.push(model);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phren/agent",
3
- "version": "0.3.30",
3
+ "version": "0.3.31",
4
4
  "description": "phren's coding agent: starts every session knowing your project's memory, tasks and decisions",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,14 +14,14 @@
14
14
  "dist"
15
15
  ],
16
16
  "dependencies": {
17
- "@modelcontextprotocol/sdk": "^1.30.1",
17
+ "@modelcontextprotocol/sdk": "^1.32.0",
18
+ "@phren/cli": "0.3.31",
18
19
  "ajv": "^8.20.0",
19
- "ink": "^7.1.1",
20
- "react": "^19.3.0",
21
- "@phren/cli": "0.3.30"
20
+ "ink": "^8.0.0",
21
+ "react": "^19.3.0"
22
22
  },
23
23
  "engines": {
24
- "node": ">=20.0.0"
24
+ "node": ">=22.19.0"
25
25
  },
26
26
  "keywords": [
27
27
  "agent",