toolcraft 0.0.235 → 0.0.236

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/composition.json CHANGED
@@ -113,7 +113,7 @@
113
113
  },
114
114
  {
115
115
  "name": "toolcraft",
116
- "version": "0.0.235",
116
+ "version": "0.0.236",
117
117
  "license": "MIT"
118
118
  },
119
119
  {
@@ -123,7 +123,7 @@
123
123
  },
124
124
  {
125
125
  "name": "toolcraft-schema",
126
- "version": "0.0.235",
126
+ "version": "0.0.236",
127
127
  "license": "MIT"
128
128
  },
129
129
  {
@@ -113,7 +113,7 @@
113
113
  },
114
114
  {
115
115
  "name": "toolcraft",
116
- "version": "0.0.235",
116
+ "version": "0.0.236",
117
117
  "license": "MIT"
118
118
  },
119
119
  {
@@ -123,7 +123,7 @@
123
123
  },
124
124
  {
125
125
  "name": "toolcraft-schema",
126
- "version": "0.0.235",
126
+ "version": "0.0.236",
127
127
  "license": "MIT"
128
128
  },
129
129
  {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "name": "toolcraft-schema",
11
- "version": "0.0.235",
11
+ "version": "0.0.236",
12
12
  "license": "MIT"
13
13
  }
14
14
  ]
@@ -37,6 +37,7 @@ export function createDashboard(opts = {}) {
37
37
  const performanceMonitor = createRenderPerformanceMonitor();
38
38
  let showPerformance = false;
39
39
  let scrollOffset = 0;
40
+ let outputViewportHeight = 0;
40
41
  let heldOutput;
41
42
  let renderTimer;
42
43
  function appendOutput(item) {
@@ -109,11 +110,7 @@ export function createDashboard(opts = {}) {
109
110
  command === "scroll-down" ||
110
111
  command === "page-up" ||
111
112
  command === "page-down") {
112
- const page = Math.max(1, computeDashboardLayout({
113
- totalWidth: driver.getSize().cols,
114
- totalHeight: driver.getSize().rows,
115
- rightPaneWidth
116
- }).leftPane.height);
113
+ const page = Math.max(1, outputViewportHeight);
117
114
  const amount = command === "page-up" || command === "page-down" ? page : 1;
118
115
  const direction = command === "scroll-up" || command === "page-up" ? 1 : -1;
119
116
  if (direction > 0)
@@ -211,7 +208,8 @@ export function createDashboard(opts = {}) {
211
208
  layout.rightPane.height -= height;
212
209
  }
213
210
  }
214
- scrollOffset = renderOutputPane(nextBuffer, { ...layout.leftPane, height: Math.max(0, layout.leftPane.height - (showPerformance ? 1 : 0)) }, heldOutput ?? state.output, scrollOffset);
211
+ outputViewportHeight = Math.max(0, layout.leftPane.height - (showPerformance ? 1 : 0));
212
+ scrollOffset = renderOutputPane(nextBuffer, { ...layout.leftPane, height: outputViewportHeight }, heldOutput ?? state.output, scrollOffset);
215
213
  if (scrollOffset === 0)
216
214
  heldOutput = undefined;
217
215
  renderStatsPane(nextBuffer, layout.rightPane, state.stats);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-schema",
3
- "version": "0.0.235",
3
+ "version": "0.0.236",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft",
3
- "version": "0.0.235",
3
+ "version": "0.0.236",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -158,7 +158,7 @@
158
158
  "yaml"
159
159
  ],
160
160
  "optionalDependencies": {
161
- "toolcraft-schema": "0.0.235",
161
+ "toolcraft-schema": "0.0.236",
162
162
  "toolcraft-design": "*",
163
163
  "@poe-code/frontmatter": "*",
164
164
  "@poe-code/agent-mcp-config": "*",