toolcraft-openapi 0.0.248 → 0.0.249

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.
@@ -33,12 +33,12 @@
33
33
  },
34
34
  {
35
35
  "name": "toolcraft-openapi",
36
- "version": "0.0.248",
36
+ "version": "0.0.249",
37
37
  "license": "MIT"
38
38
  },
39
39
  {
40
40
  "name": "toolcraft-schema",
41
- "version": "0.0.248",
41
+ "version": "0.0.249",
42
42
  "license": "MIT"
43
43
  },
44
44
  {
@@ -9,7 +9,7 @@ export function renderRunView(buffer, options) {
9
9
  const composer = options.showQueue && !options.composer?.focused ? undefined : options.composer;
10
10
  const run = stats.run;
11
11
  const theme = getTheme().styles;
12
- const compactHeight = buffer.height < 18;
12
+ const compactHeight = buffer.height < 20;
13
13
  const width = Math.max(0, Math.min(164, buffer.width - 4));
14
14
  const x = Math.max(0, Math.floor((buffer.width - width) / 2));
15
15
  const sidebarWidth = !compactHeight && !options.showQueue && width >= 106 ? Math.min(40, Math.floor(width * 0.29)) : 0;
@@ -22,7 +22,6 @@ export function renderRunView(buffer, options) {
22
22
  const progress = plans.length > 0 ? ` · Plan ${activePlanIndex + 1}/${plans.length}` : "";
23
23
  put(buffer, { x, y: 0, width, height: 1 }, 0, `${options.title}${progress}`, { bold: true });
24
24
  const context = [run?.agent, run?.model ?? (run?.agent ? "default model" : undefined), run?.cwd].filter(Boolean).join(" · ");
25
- put(buffer, { x, y: 1, width, height: 1 }, 0, context, theme.muted);
26
25
  const draft = composer ? layoutComposer(composer, Math.max(1, transcriptWidth - 3)) : undefined;
27
26
  const inputLines = draft ? Math.min(compactHeight ? 1 : 3, draft.lines.length) : 0;
28
27
  const inputRow = compactHeight ? 1 : 2;
@@ -45,7 +44,10 @@ export function renderRunView(buffer, options) {
45
44
  const footerY = Math.max(0, buffer.height - footerLines.length);
46
45
  const composerY = Math.max(0, footerY - composerHeight);
47
46
  const contentBottom = composer ? composerY - 1 : footerY - 1;
48
- let outputY = compactHeight ? 2 : 3;
47
+ const showContext = !compactHeight || contentBottom >= 6;
48
+ if (showContext)
49
+ put(buffer, { x, y: 1, width, height: 1 }, 0, context, theme.muted);
50
+ let outputY = compactHeight ? showContext ? 2 : 1 : 3;
49
51
  if (sidebarWidth === 0) {
50
52
  if (activePlan?.kind === "plan") {
51
53
  put(buffer, { x, y: outputY++, width, height: 1 }, 0, `${marker(activePlan.status)} ${activePlanIndex + 1}. ${basename(activePlan.path)}`, { bold: true });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-schema",
3
- "version": "0.0.248",
3
+ "version": "0.0.249",
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-openapi",
3
- "version": "0.0.248",
3
+ "version": "0.0.249",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "toolcraft-openapi-generate": "dist/bin/generate.js"
31
31
  },
32
32
  "dependencies": {
33
- "toolcraft": "0.0.248",
33
+ "toolcraft": "0.0.249",
34
34
  "fast-string-width": "^3.0.2",
35
35
  "fast-wrap-ansi": "^0.2.0",
36
36
  "sisteransi": "^1.0.5",
@@ -45,7 +45,7 @@
45
45
  "directory": "packages/toolcraft-openapi"
46
46
  },
47
47
  "optionalDependencies": {
48
- "toolcraft-schema": "0.0.248",
48
+ "toolcraft-schema": "0.0.249",
49
49
  "toolcraft-design": "*",
50
50
  "@poe-code/frontmatter": "*"
51
51
  },