@tienne/gestalt 0.15.2 → 0.17.0

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.
Files changed (93) hide show
  1. package/dist/package.json +1 -4
  2. package/dist/src/cli/commands/init.d.ts.map +1 -1
  3. package/dist/src/cli/commands/init.js +37 -15
  4. package/dist/src/cli/commands/init.js.map +1 -1
  5. package/dist/src/cli/index.d.ts.map +1 -1
  6. package/dist/src/cli/index.js +0 -7
  7. package/dist/src/cli/index.js.map +1 -1
  8. package/dist/src/core/errors.d.ts +4 -2
  9. package/dist/src/core/errors.d.ts.map +1 -1
  10. package/dist/src/core/errors.js +14 -5
  11. package/dist/src/core/errors.js.map +1 -1
  12. package/dist/src/core/types.d.ts +15 -0
  13. package/dist/src/core/types.d.ts.map +1 -1
  14. package/dist/src/execute/drift-detector.d.ts.map +1 -1
  15. package/dist/src/execute/drift-detector.js +18 -1
  16. package/dist/src/execute/drift-detector.js.map +1 -1
  17. package/dist/src/gestalt/analyzer.d.ts.map +1 -1
  18. package/dist/src/gestalt/analyzer.js +10 -0
  19. package/dist/src/gestalt/analyzer.js.map +1 -1
  20. package/dist/src/mcp/schemas.d.ts +6 -0
  21. package/dist/src/mcp/schemas.d.ts.map +1 -1
  22. package/dist/src/mcp/schemas.js +11 -0
  23. package/dist/src/mcp/schemas.js.map +1 -1
  24. package/dist/src/mcp/tools/execute-passthrough.d.ts.map +1 -1
  25. package/dist/src/mcp/tools/execute-passthrough.js +197 -5
  26. package/dist/src/mcp/tools/execute-passthrough.js.map +1 -1
  27. package/dist/src/mcp/tools/spec-passthrough.d.ts.map +1 -1
  28. package/dist/src/mcp/tools/spec-passthrough.js +16 -2
  29. package/dist/src/mcp/tools/spec-passthrough.js.map +1 -1
  30. package/dist/src/mcp/tools/status.d.ts.map +1 -1
  31. package/dist/src/mcp/tools/status.js +29 -2
  32. package/dist/src/mcp/tools/status.js.map +1 -1
  33. package/package.json +1 -4
  34. package/dist/src/cli/commands/monitor.d.ts +0 -2
  35. package/dist/src/cli/commands/monitor.d.ts.map +0 -1
  36. package/dist/src/cli/commands/monitor.js +0 -13
  37. package/dist/src/cli/commands/monitor.js.map +0 -1
  38. package/dist/src/tui/components/TUIApp.d.ts +0 -20
  39. package/dist/src/tui/components/TUIApp.d.ts.map +0 -1
  40. package/dist/src/tui/components/TUIApp.js +0 -84
  41. package/dist/src/tui/components/TUIApp.js.map +0 -1
  42. package/dist/src/tui/hooks/event-store-reader.d.ts +0 -28
  43. package/dist/src/tui/hooks/event-store-reader.d.ts.map +0 -1
  44. package/dist/src/tui/hooks/event-store-reader.js +0 -141
  45. package/dist/src/tui/hooks/event-store-reader.js.map +0 -1
  46. package/dist/src/tui/hooks/useEventStorePoller.d.ts +0 -12
  47. package/dist/src/tui/hooks/useEventStorePoller.d.ts.map +0 -1
  48. package/dist/src/tui/hooks/useEventStorePoller.js +0 -84
  49. package/dist/src/tui/hooks/useEventStorePoller.js.map +0 -1
  50. package/dist/src/tui/screens/DashboardScreen.d.ts +0 -4
  51. package/dist/src/tui/screens/DashboardScreen.d.ts.map +0 -1
  52. package/dist/src/tui/screens/DashboardScreen.js +0 -132
  53. package/dist/src/tui/screens/DashboardScreen.js.map +0 -1
  54. package/dist/src/tui/screens/DebugScreen.d.ts +0 -4
  55. package/dist/src/tui/screens/DebugScreen.d.ts.map +0 -1
  56. package/dist/src/tui/screens/DebugScreen.js +0 -40
  57. package/dist/src/tui/screens/DebugScreen.js.map +0 -1
  58. package/dist/src/tui/screens/EvolutionScreen.d.ts +0 -4
  59. package/dist/src/tui/screens/EvolutionScreen.d.ts.map +0 -1
  60. package/dist/src/tui/screens/EvolutionScreen.js +0 -136
  61. package/dist/src/tui/screens/EvolutionScreen.js.map +0 -1
  62. package/dist/src/tui/screens/HUDPanel.d.ts +0 -4
  63. package/dist/src/tui/screens/HUDPanel.d.ts.map +0 -1
  64. package/dist/src/tui/screens/HUDPanel.js +0 -13
  65. package/dist/src/tui/screens/HUDPanel.js.map +0 -1
  66. package/dist/src/tui/screens/InterviewScreen.d.ts +0 -4
  67. package/dist/src/tui/screens/InterviewScreen.d.ts.map +0 -1
  68. package/dist/src/tui/screens/InterviewScreen.js +0 -103
  69. package/dist/src/tui/screens/InterviewScreen.js.map +0 -1
  70. package/dist/src/tui/screens/LogScreen.d.ts +0 -4
  71. package/dist/src/tui/screens/LogScreen.d.ts.map +0 -1
  72. package/dist/src/tui/screens/LogScreen.js +0 -83
  73. package/dist/src/tui/screens/LogScreen.js.map +0 -1
  74. package/dist/src/tui/screens/SessionListScreen.d.ts +0 -4
  75. package/dist/src/tui/screens/SessionListScreen.d.ts.map +0 -1
  76. package/dist/src/tui/screens/SessionListScreen.js +0 -71
  77. package/dist/src/tui/screens/SessionListScreen.js.map +0 -1
  78. package/dist/src/tui/screens/SpecViewerScreen.d.ts +0 -4
  79. package/dist/src/tui/screens/SpecViewerScreen.d.ts.map +0 -1
  80. package/dist/src/tui/screens/SpecViewerScreen.js +0 -73
  81. package/dist/src/tui/screens/SpecViewerScreen.js.map +0 -1
  82. package/dist/src/tui/widgets/DriftMeter.d.ts +0 -15
  83. package/dist/src/tui/widgets/DriftMeter.d.ts.map +0 -1
  84. package/dist/src/tui/widgets/DriftMeter.js +0 -27
  85. package/dist/src/tui/widgets/DriftMeter.js.map +0 -1
  86. package/dist/src/tui/widgets/GestaltPrincipleBar.d.ts +0 -9
  87. package/dist/src/tui/widgets/GestaltPrincipleBar.d.ts.map +0 -1
  88. package/dist/src/tui/widgets/GestaltPrincipleBar.js +0 -35
  89. package/dist/src/tui/widgets/GestaltPrincipleBar.js.map +0 -1
  90. package/dist/src/tui/widgets/TaskDAGTree.d.ts +0 -15
  91. package/dist/src/tui/widgets/TaskDAGTree.d.ts.map +0 -1
  92. package/dist/src/tui/widgets/TaskDAGTree.js +0 -54
  93. package/dist/src/tui/widgets/TaskDAGTree.js.map +0 -1
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- export type TaskStatus = 'pending' | 'in_progress' | 'completed' | 'failed' | 'skipped';
3
- export interface TaskNode {
4
- id: string;
5
- title: string;
6
- status: TaskStatus;
7
- dependsOn: string[];
8
- }
9
- interface TaskDAGTreeProps {
10
- tasks: TaskNode[];
11
- maxHeight?: number;
12
- }
13
- export declare function TaskDAGTree({ tasks, maxHeight }: TaskDAGTreeProps): React.ReactElement;
14
- export {};
15
- //# sourceMappingURL=TaskDAGTree.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TaskDAGTree.d.ts","sourceRoot":"","sources":["../../../../src/tui/widgets/TaskDAGTree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExF,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC;IACnB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAkBD,UAAU,gBAAgB;IACxB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,gBAAgB,GAAG,KAAK,CAAC,YAAY,CAwCtF"}
@@ -1,54 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, Text } from 'ink';
3
- const STATUS_ICONS = {
4
- pending: 'o',
5
- in_progress: '>',
6
- completed: 'v',
7
- failed: 'x',
8
- skipped: '-',
9
- };
10
- const STATUS_COLORS = {
11
- pending: 'gray',
12
- in_progress: 'cyan',
13
- completed: 'green',
14
- failed: 'red',
15
- skipped: 'yellow',
16
- };
17
- export function TaskDAGTree({ tasks, maxHeight }) {
18
- const completedCount = tasks.filter((t) => t.status === 'completed').length;
19
- const failedCount = tasks.filter((t) => t.status === 'failed').length;
20
- const totalCount = tasks.length;
21
- const layers = buildLayers(tasks);
22
- return (_jsxs(Box, { flexDirection: "column", children: [_jsxs(Box, { gap: 1, marginBottom: 1, children: [_jsx(Text, { bold: true, children: "Task DAG" }), _jsxs(Text, { color: "green", children: [completedCount, "v"] }), failedCount > 0 && _jsxs(Text, { color: "red", children: [failedCount, "x"] }), _jsxs(Text, { dimColor: true, children: [completedCount, "/", totalCount] })] }), _jsx(Box, { flexDirection: "column", height: maxHeight, children: layers.map((layer, layerIdx) => (_jsxs(Box, { flexDirection: "column", children: [layerIdx > 0 && (_jsx(Text, { dimColor: true, children: " |" })), layer.map((task) => (_jsxs(Box, { paddingLeft: 1, children: [_jsx(Text, { color: STATUS_COLORS[task.status], children: STATUS_ICONS[task.status] }), _jsxs(Text, { color: STATUS_COLORS[task.status], bold: task.status === 'in_progress', children: [' ', task.id] }), _jsxs(Text, { dimColor: true, children: [" ", truncate(task.title, 40)] })] }, task.id)))] }, layerIdx))) })] }));
23
- }
24
- function buildLayers(tasks) {
25
- if (tasks.length === 0)
26
- return [];
27
- const taskMap = new Map(tasks.map((t) => [t.id, t]));
28
- const layers = [];
29
- const placed = new Set();
30
- // Kahn's algorithm for layer assignment
31
- while (placed.size < tasks.length) {
32
- const layer = [];
33
- for (const task of tasks) {
34
- if (placed.has(task.id))
35
- continue;
36
- const depsPlaced = task.dependsOn.every((dep) => placed.has(dep) || !taskMap.has(dep));
37
- if (depsPlaced) {
38
- layer.push(task);
39
- }
40
- }
41
- if (layer.length === 0)
42
- break; // cycle guard
43
- for (const t of layer)
44
- placed.add(t.id);
45
- layers.push(layer);
46
- }
47
- return layers;
48
- }
49
- function truncate(str, max) {
50
- if (str.length <= max)
51
- return str;
52
- return str.slice(0, max - 3) + '...';
53
- }
54
- //# sourceMappingURL=TaskDAGTree.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TaskDAGTree.js","sourceRoot":"","sources":["../../../../src/tui/widgets/TaskDAG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