flock-core 0.5.0b52__py3-none-any.whl → 0.5.0b54__py3-none-any.whl
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.
Potentially problematic release.
This version of flock-core might be problematic. Click here for more details.
- flock/agent.py +6 -2
- flock/components.py +17 -1
- flock/dashboard/service.py +293 -0
- flock/frontend/README.md +86 -0
- flock/frontend/src/components/modules/JsonAttributeRenderer.tsx +140 -0
- flock/frontend/src/components/modules/ModuleWindow.tsx +97 -29
- flock/frontend/src/components/modules/TraceModuleJaeger.tsx +1971 -0
- flock/frontend/src/components/modules/TraceModuleJaegerWrapper.tsx +13 -0
- flock/frontend/src/components/modules/registerModules.ts +10 -0
- flock/frontend/src/components/settings/MultiSelect.tsx +235 -0
- flock/frontend/src/components/settings/SettingsPanel.css +1 -1
- flock/frontend/src/components/settings/TracingSettings.tsx +404 -0
- flock/frontend/src/types/modules.ts +3 -0
- flock/logging/auto_trace.py +159 -0
- flock/logging/telemetry.py +17 -0
- flock/logging/telemetry_exporter/duckdb_exporter.py +216 -0
- flock/logging/telemetry_exporter/file_exporter.py +7 -1
- flock/logging/trace_and_logged.py +263 -14
- flock/mcp/util/helpers.py +3 -3
- flock/orchestrator.py +130 -1
- {flock_core-0.5.0b52.dist-info → flock_core-0.5.0b54.dist-info}/METADATA +187 -18
- {flock_core-0.5.0b52.dist-info → flock_core-0.5.0b54.dist-info}/RECORD +25 -18
- {flock_core-0.5.0b52.dist-info → flock_core-0.5.0b54.dist-info}/WHEEL +0 -0
- {flock_core-0.5.0b52.dist-info → flock_core-0.5.0b54.dist-info}/entry_points.txt +0 -0
- {flock_core-0.5.0b52.dist-info → flock_core-0.5.0b54.dist-info}/licenses/LICENSE +0 -0
|
@@ -20,6 +20,28 @@ const ModuleWindow: React.FC<ModuleWindowProps> = memo(({ instanceId }) => {
|
|
|
20
20
|
removeModule(instanceId);
|
|
21
21
|
}, [instanceId, removeModule]);
|
|
22
22
|
|
|
23
|
+
const handleMaximize = useCallback(() => {
|
|
24
|
+
if (!instance) return;
|
|
25
|
+
|
|
26
|
+
if (instance.maximized) {
|
|
27
|
+
// Restore to previous size/position
|
|
28
|
+
updateModule(instanceId, {
|
|
29
|
+
maximized: false,
|
|
30
|
+
position: instance.preMaximizePosition || instance.position,
|
|
31
|
+
size: instance.preMaximizeSize || instance.size,
|
|
32
|
+
});
|
|
33
|
+
} else {
|
|
34
|
+
// Maximize to full viewport
|
|
35
|
+
updateModule(instanceId, {
|
|
36
|
+
maximized: true,
|
|
37
|
+
preMaximizePosition: instance.position,
|
|
38
|
+
preMaximizeSize: instance.size,
|
|
39
|
+
position: { x: 0, y: 0 },
|
|
40
|
+
size: { width: window.innerWidth, height: window.innerHeight },
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}, [instanceId, instance, updateModule]);
|
|
44
|
+
|
|
23
45
|
// Don't render if instance doesn't exist or is not visible
|
|
24
46
|
if (!instance || !instance.visible) return null;
|
|
25
47
|
|
|
@@ -37,6 +59,8 @@ const ModuleWindow: React.FC<ModuleWindowProps> = memo(({ instanceId }) => {
|
|
|
37
59
|
<Rnd
|
|
38
60
|
position={position}
|
|
39
61
|
size={size}
|
|
62
|
+
disableDragging={instance.maximized}
|
|
63
|
+
enableResizing={!instance.maximized}
|
|
40
64
|
onDragStop={(_e, d) => {
|
|
41
65
|
updateModule(instanceId, {
|
|
42
66
|
position: { x: d.x, y: d.y },
|
|
@@ -86,7 +110,7 @@ const ModuleWindow: React.FC<ModuleWindowProps> = memo(({ instanceId }) => {
|
|
|
86
110
|
padding: 'var(--space-component-md) var(--space-component-lg)',
|
|
87
111
|
background: 'rgba(42, 42, 50, 0.5)',
|
|
88
112
|
borderBottom: 'var(--border-width-1) solid var(--color-border-subtle)',
|
|
89
|
-
cursor: 'move',
|
|
113
|
+
cursor: instance.maximized ? 'default' : 'move',
|
|
90
114
|
userSelect: 'none',
|
|
91
115
|
}}
|
|
92
116
|
>
|
|
@@ -105,34 +129,78 @@ const ModuleWindow: React.FC<ModuleWindowProps> = memo(({ instanceId }) => {
|
|
|
105
129
|
{moduleDefinition.name}
|
|
106
130
|
</span>
|
|
107
131
|
</div>
|
|
108
|
-
<
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
<div style={{ display: 'flex', alignItems: 'center', gap: 'var(--gap-xs)' }}>
|
|
133
|
+
{/* Maximize/Restore button */}
|
|
134
|
+
<button
|
|
135
|
+
onClick={handleMaximize}
|
|
136
|
+
aria-label={instance.maximized ? 'Restore window' : 'Maximize window'}
|
|
137
|
+
title={instance.maximized ? 'Restore' : 'Maximize'}
|
|
138
|
+
style={{
|
|
139
|
+
background: 'transparent',
|
|
140
|
+
border: 'none',
|
|
141
|
+
color: 'var(--color-text-secondary)',
|
|
142
|
+
fontSize: '16px',
|
|
143
|
+
cursor: 'pointer',
|
|
144
|
+
padding: 'var(--spacing-1) var(--spacing-2)',
|
|
145
|
+
lineHeight: 1,
|
|
146
|
+
borderRadius: 'var(--radius-md)',
|
|
147
|
+
transition: 'var(--transition-colors)',
|
|
148
|
+
display: 'flex',
|
|
149
|
+
alignItems: 'center',
|
|
150
|
+
justifyContent: 'center',
|
|
151
|
+
}}
|
|
152
|
+
onMouseEnter={(e) => {
|
|
153
|
+
e.currentTarget.style.color = 'var(--color-text-primary)';
|
|
154
|
+
e.currentTarget.style.background = 'var(--color-bg-elevated)';
|
|
155
|
+
}}
|
|
156
|
+
onMouseLeave={(e) => {
|
|
157
|
+
e.currentTarget.style.color = 'var(--color-text-secondary)';
|
|
158
|
+
e.currentTarget.style.background = 'transparent';
|
|
159
|
+
}}
|
|
160
|
+
>
|
|
161
|
+
{instance.maximized ? (
|
|
162
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" strokeWidth="1.5">
|
|
163
|
+
<rect x="4" y="4" width="6" height="6" />
|
|
164
|
+
<path d="M2 2h4v4M12 12H8V8" />
|
|
165
|
+
</svg>
|
|
166
|
+
) : (
|
|
167
|
+
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" strokeWidth="1.5">
|
|
168
|
+
<rect x="2" y="2" width="10" height="10" />
|
|
169
|
+
</svg>
|
|
170
|
+
)}
|
|
171
|
+
</button>
|
|
172
|
+
|
|
173
|
+
{/* Close button */}
|
|
174
|
+
<button
|
|
175
|
+
onClick={handleClose}
|
|
176
|
+
aria-label="Close window"
|
|
177
|
+
title="Close"
|
|
178
|
+
style={{
|
|
179
|
+
background: 'transparent',
|
|
180
|
+
border: 'none',
|
|
181
|
+
color: 'var(--color-text-secondary)',
|
|
182
|
+
fontSize: 'var(--font-size-h3)',
|
|
183
|
+
cursor: 'pointer',
|
|
184
|
+
padding: 'var(--spacing-1) var(--spacing-2)',
|
|
185
|
+
lineHeight: 1,
|
|
186
|
+
borderRadius: 'var(--radius-md)',
|
|
187
|
+
transition: 'var(--transition-colors)',
|
|
188
|
+
display: 'flex',
|
|
189
|
+
alignItems: 'center',
|
|
190
|
+
justifyContent: 'center',
|
|
191
|
+
}}
|
|
192
|
+
onMouseEnter={(e) => {
|
|
193
|
+
e.currentTarget.style.color = 'var(--color-error)';
|
|
194
|
+
e.currentTarget.style.background = 'var(--color-error-bg)';
|
|
195
|
+
}}
|
|
196
|
+
onMouseLeave={(e) => {
|
|
197
|
+
e.currentTarget.style.color = 'var(--color-text-secondary)';
|
|
198
|
+
e.currentTarget.style.background = 'transparent';
|
|
199
|
+
}}
|
|
200
|
+
>
|
|
201
|
+
×
|
|
202
|
+
</button>
|
|
203
|
+
</div>
|
|
136
204
|
</div>
|
|
137
205
|
|
|
138
206
|
{/* Module Content */}
|