tycono 0.1.96-beta.8 → 0.1.96-beta.9

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": "tycono",
3
- "version": "0.1.96-beta.8",
3
+ "version": "0.1.96-beta.9",
4
4
  "description": "Build an AI company. Watch them work.",
5
5
  "type": "module",
6
6
  "bin": {
package/src/tui/app.tsx CHANGED
@@ -209,8 +209,11 @@ export const App: React.FC = () => {
209
209
  );
210
210
  }
211
211
 
212
+ // Terminal full height
213
+ const termHeight = process.stdout.rows || 30;
214
+
212
215
  return (
213
- <Box flexDirection="column">
216
+ <Box flexDirection="column" height={termHeight}>
214
217
  {/* Status Bar — always shown */}
215
218
  <StatusBar
216
219
  companyName={api.company?.name ?? 'Loading...'}
@@ -222,10 +225,11 @@ export const App: React.FC = () => {
222
225
 
223
226
  {/* Separator */}
224
227
  <Box width="100%">
225
- <Text color="gray">{'\u2500'.repeat(70)}</Text>
228
+ <Text color="gray">{''.repeat(process.stdout.columns || 70)}</Text>
226
229
  </Box>
227
230
 
228
- {/* Mode content */}
231
+ {/* Mode content — fill remaining height */}
232
+ <Box flexGrow={1} flexDirection="column">
229
233
  {mode === 'command' ? (
230
234
  <CommandMode
231
235
  events={sse.events}
@@ -256,6 +260,7 @@ export const App: React.FC = () => {
256
260
  onEscape={() => setMode('command')}
257
261
  />
258
262
  )}
263
+ </Box>
259
264
  </Box>
260
265
  );
261
266
  };
@@ -205,7 +205,7 @@ export const CommandMode: React.FC<CommandModeProps> = ({
205
205
 
206
206
  {/* Separator */}
207
207
  <Box width="100%">
208
- <Text color="gray">{'\u2500'.repeat(70)}</Text>
208
+ <Text color="gray">{''.repeat(process.stdout.columns || 70)}</Text>
209
209
  </Box>
210
210
 
211
211
  {/* Command input */}
@@ -84,7 +84,7 @@ export const OrgTree: React.FC<OrgTreeProps> = ({ tree, focused, selectedIndex,
84
84
 
85
85
  return (
86
86
  <Box flexDirection="column" paddingX={1}>
87
- <Text bold color={focused ? 'cyan' : 'gray'}>\u2500\u2500 Org Tree \u2500\u2500</Text>
87
+ <Text bold color={focused ? 'cyan' : 'gray'}>{'── Org Tree ──'}</Text>
88
88
  <Box marginTop={1}>
89
89
  <Text color="yellow" bold>{'\uD83D\uDC51'} CEO</Text>
90
90
  </Box>
@@ -98,7 +98,7 @@ export const PanelMode: React.FC<PanelModeProps> = ({
98
98
 
99
99
  {/* Separator */}
100
100
  <Box width="100%">
101
- <Text color="gray">{'\u2500'.repeat(70)}</Text>
101
+ <Text color="gray">{''.repeat(process.stdout.columns || 70)}</Text>
102
102
  </Box>
103
103
 
104
104
  {/* Footer hints */}