toolcraft 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.
- package/composition.json +2 -2
- package/dist/composition.json +2 -2
- package/node_modules/tiny-stdio-mcp-server/dist/composition.json +1 -1
- package/node_modules/toolcraft-design/dist/dashboard/components/run-view.js +5 -3
- package/node_modules/toolcraft-schema/package.json +1 -1
- package/package.json +2 -2
package/composition.json
CHANGED
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"name": "toolcraft",
|
|
116
|
-
"version": "0.0.
|
|
116
|
+
"version": "0.0.249",
|
|
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.
|
|
126
|
+
"version": "0.0.249",
|
|
127
127
|
"license": "MIT"
|
|
128
128
|
},
|
|
129
129
|
{
|
package/dist/composition.json
CHANGED
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"name": "toolcraft",
|
|
116
|
-
"version": "0.0.
|
|
116
|
+
"version": "0.0.249",
|
|
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.
|
|
126
|
+
"version": "0.0.249",
|
|
127
127
|
"license": "MIT"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
@@ -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 <
|
|
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
|
-
|
|
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 });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "toolcraft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.249",
|
|
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.
|
|
161
|
+
"toolcraft-schema": "0.0.249",
|
|
162
162
|
"toolcraft-design": "*",
|
|
163
163
|
"@poe-code/frontmatter": "*",
|
|
164
164
|
"@poe-code/agent-mcp-config": "*",
|