@femtomc/mu-agent 26.2.107 → 26.2.108
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/README.md +5 -7
- package/assets/mu-tui-logo.png +0 -0
- package/dist/extensions/index.d.ts +0 -1
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/index.js +0 -1
- package/dist/extensions/mu-operator.d.ts.map +1 -1
- package/dist/extensions/mu-operator.js +0 -2
- package/dist/extensions/mu-serve.d.ts.map +1 -1
- package/dist/extensions/mu-serve.js +0 -2
- package/dist/extensions/ui.d.ts.map +1 -1
- package/dist/extensions/ui.js +745 -25
- package/dist/operator.d.ts +7 -337
- package/dist/operator.d.ts.map +1 -1
- package/dist/operator.js +1 -62
- package/package.json +33 -33
- package/prompts/skills/core/SKILL.md +2 -2
- package/prompts/skills/core/memory/SKILL.md +2 -2
- package/prompts/skills/core/mu/SKILL.md +18 -7
- package/prompts/skills/subagents/SKILL.md +92 -8
- package/prompts/skills/subagents/control-flow/SKILL.md +118 -13
- package/prompts/skills/subagents/execution/SKILL.md +144 -31
- package/prompts/skills/subagents/model-routing/SKILL.md +146 -13
- package/prompts/skills/subagents/planning/SKILL.md +239 -90
- package/prompts/skills/writing/SKILL.md +2 -2
- package/dist/extensions/hud.d.ts +0 -4
- package/dist/extensions/hud.d.ts.map +0 -1
- package/dist/extensions/hud.js +0 -483
- package/prompts/skills/subagents/hud/SKILL.md +0 -205
package/dist/operator.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type UiDoc } from "@femtomc/mu-core";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { CommandContextResolver } from "./command_context.js";
|
|
4
4
|
import { type CreateMuSessionOpts, type MuSession } from "./session_factory.js";
|
|
@@ -59,170 +59,6 @@ export type OperatorApprovedCommand = z.infer<typeof OperatorApprovedCommandSche
|
|
|
59
59
|
export declare const OperatorBackendTurnResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
60
60
|
kind: z.ZodLiteral<"respond">;
|
|
61
61
|
message: z.ZodString;
|
|
62
|
-
hud_docs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
63
|
-
v: z.ZodDefault<z.ZodLiteral<1>>;
|
|
64
|
-
hud_id: z.ZodString;
|
|
65
|
-
title: z.ZodString;
|
|
66
|
-
title_style: z.ZodOptional<z.ZodObject<{
|
|
67
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
68
|
-
normal: "normal";
|
|
69
|
-
strong: "strong";
|
|
70
|
-
}>>;
|
|
71
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
72
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
-
}, z.core.$strict>>;
|
|
74
|
-
scope: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
75
|
-
chips: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
76
|
-
key: z.ZodString;
|
|
77
|
-
label: z.ZodString;
|
|
78
|
-
tone: z.ZodOptional<z.ZodEnum<{
|
|
79
|
-
error: "error";
|
|
80
|
-
info: "info";
|
|
81
|
-
success: "success";
|
|
82
|
-
warning: "warning";
|
|
83
|
-
muted: "muted";
|
|
84
|
-
accent: "accent";
|
|
85
|
-
dim: "dim";
|
|
86
|
-
}>>;
|
|
87
|
-
style: z.ZodOptional<z.ZodObject<{
|
|
88
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
89
|
-
normal: "normal";
|
|
90
|
-
strong: "strong";
|
|
91
|
-
}>>;
|
|
92
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
-
}, z.core.$strict>>;
|
|
95
|
-
}, z.core.$strict>>>;
|
|
96
|
-
sections: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
97
|
-
kind: z.ZodLiteral<"kv">;
|
|
98
|
-
title: z.ZodOptional<z.ZodString>;
|
|
99
|
-
title_style: z.ZodOptional<z.ZodObject<{
|
|
100
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
101
|
-
normal: "normal";
|
|
102
|
-
strong: "strong";
|
|
103
|
-
}>>;
|
|
104
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
-
}, z.core.$strict>>;
|
|
107
|
-
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
108
|
-
key: z.ZodString;
|
|
109
|
-
label: z.ZodString;
|
|
110
|
-
value: z.ZodString;
|
|
111
|
-
tone: z.ZodOptional<z.ZodEnum<{
|
|
112
|
-
error: "error";
|
|
113
|
-
info: "info";
|
|
114
|
-
success: "success";
|
|
115
|
-
warning: "warning";
|
|
116
|
-
muted: "muted";
|
|
117
|
-
accent: "accent";
|
|
118
|
-
dim: "dim";
|
|
119
|
-
}>>;
|
|
120
|
-
value_style: z.ZodOptional<z.ZodObject<{
|
|
121
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
122
|
-
normal: "normal";
|
|
123
|
-
strong: "strong";
|
|
124
|
-
}>>;
|
|
125
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
-
}, z.core.$strict>>;
|
|
128
|
-
}, z.core.$strict>>>;
|
|
129
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
130
|
-
kind: z.ZodLiteral<"checklist">;
|
|
131
|
-
title: z.ZodOptional<z.ZodString>;
|
|
132
|
-
title_style: z.ZodOptional<z.ZodObject<{
|
|
133
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
134
|
-
normal: "normal";
|
|
135
|
-
strong: "strong";
|
|
136
|
-
}>>;
|
|
137
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
138
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
139
|
-
}, z.core.$strict>>;
|
|
140
|
-
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
141
|
-
id: z.ZodString;
|
|
142
|
-
label: z.ZodString;
|
|
143
|
-
done: z.ZodBoolean;
|
|
144
|
-
style: z.ZodOptional<z.ZodObject<{
|
|
145
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
146
|
-
normal: "normal";
|
|
147
|
-
strong: "strong";
|
|
148
|
-
}>>;
|
|
149
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
-
}, z.core.$strict>>;
|
|
152
|
-
}, z.core.$strict>>>;
|
|
153
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
154
|
-
kind: z.ZodLiteral<"activity">;
|
|
155
|
-
title: z.ZodOptional<z.ZodString>;
|
|
156
|
-
title_style: z.ZodOptional<z.ZodObject<{
|
|
157
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
158
|
-
normal: "normal";
|
|
159
|
-
strong: "strong";
|
|
160
|
-
}>>;
|
|
161
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
163
|
-
}, z.core.$strict>>;
|
|
164
|
-
lines: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
165
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
166
|
-
kind: z.ZodLiteral<"text">;
|
|
167
|
-
title: z.ZodOptional<z.ZodString>;
|
|
168
|
-
title_style: z.ZodOptional<z.ZodObject<{
|
|
169
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
170
|
-
normal: "normal";
|
|
171
|
-
strong: "strong";
|
|
172
|
-
}>>;
|
|
173
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
174
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
-
}, z.core.$strict>>;
|
|
176
|
-
text: z.ZodString;
|
|
177
|
-
tone: z.ZodOptional<z.ZodEnum<{
|
|
178
|
-
error: "error";
|
|
179
|
-
info: "info";
|
|
180
|
-
success: "success";
|
|
181
|
-
warning: "warning";
|
|
182
|
-
muted: "muted";
|
|
183
|
-
accent: "accent";
|
|
184
|
-
dim: "dim";
|
|
185
|
-
}>>;
|
|
186
|
-
style: z.ZodOptional<z.ZodObject<{
|
|
187
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
188
|
-
normal: "normal";
|
|
189
|
-
strong: "strong";
|
|
190
|
-
}>>;
|
|
191
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
192
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
-
}, z.core.$strict>>;
|
|
194
|
-
}, z.core.$strict>], "kind">>>;
|
|
195
|
-
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
196
|
-
id: z.ZodString;
|
|
197
|
-
label: z.ZodString;
|
|
198
|
-
command_text: z.ZodString;
|
|
199
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
200
|
-
primary: "primary";
|
|
201
|
-
secondary: "secondary";
|
|
202
|
-
danger: "danger";
|
|
203
|
-
}>>;
|
|
204
|
-
style: z.ZodOptional<z.ZodObject<{
|
|
205
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
206
|
-
normal: "normal";
|
|
207
|
-
strong: "strong";
|
|
208
|
-
}>>;
|
|
209
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
210
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
-
}, z.core.$strict>>;
|
|
212
|
-
}, z.core.$strict>>>;
|
|
213
|
-
snapshot_compact: z.ZodString;
|
|
214
|
-
snapshot_style: z.ZodOptional<z.ZodObject<{
|
|
215
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
216
|
-
normal: "normal";
|
|
217
|
-
strong: "strong";
|
|
218
|
-
}>>;
|
|
219
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
220
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
221
|
-
}, z.core.$strict>>;
|
|
222
|
-
snapshot_multiline: z.ZodOptional<z.ZodString>;
|
|
223
|
-
updated_at_ms: z.ZodNumber;
|
|
224
|
-
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
225
|
-
}, z.core.$strict>>>;
|
|
226
62
|
ui_docs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
227
63
|
v: z.ZodDefault<z.ZodLiteral<1>>;
|
|
228
64
|
ui_id: z.ZodString;
|
|
@@ -234,8 +70,8 @@ export declare const OperatorBackendTurnResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
234
70
|
text: z.ZodString;
|
|
235
71
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
236
72
|
error: "error";
|
|
237
|
-
info: "info";
|
|
238
73
|
success: "success";
|
|
74
|
+
info: "info";
|
|
239
75
|
warning: "warning";
|
|
240
76
|
muted: "muted";
|
|
241
77
|
accent: "accent";
|
|
@@ -252,8 +88,8 @@ export declare const OperatorBackendTurnResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
252
88
|
detail: z.ZodOptional<z.ZodString>;
|
|
253
89
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
254
90
|
error: "error";
|
|
255
|
-
info: "info";
|
|
256
91
|
success: "success";
|
|
92
|
+
info: "info";
|
|
257
93
|
warning: "warning";
|
|
258
94
|
muted: "muted";
|
|
259
95
|
accent: "accent";
|
|
@@ -270,8 +106,8 @@ export declare const OperatorBackendTurnResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
270
106
|
value: z.ZodString;
|
|
271
107
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
272
108
|
error: "error";
|
|
273
|
-
info: "info";
|
|
274
109
|
success: "success";
|
|
110
|
+
info: "info";
|
|
275
111
|
warning: "warning";
|
|
276
112
|
muted: "muted";
|
|
277
113
|
accent: "accent";
|
|
@@ -343,170 +179,6 @@ export declare const OperatorBackendTurnResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
343
179
|
kind: z.ZodLiteral<"operator_thinking_set">;
|
|
344
180
|
thinking: z.ZodString;
|
|
345
181
|
}, z.core.$strip>], "kind">;
|
|
346
|
-
hud_docs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
347
|
-
v: z.ZodDefault<z.ZodLiteral<1>>;
|
|
348
|
-
hud_id: z.ZodString;
|
|
349
|
-
title: z.ZodString;
|
|
350
|
-
title_style: z.ZodOptional<z.ZodObject<{
|
|
351
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
352
|
-
normal: "normal";
|
|
353
|
-
strong: "strong";
|
|
354
|
-
}>>;
|
|
355
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
356
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
357
|
-
}, z.core.$strict>>;
|
|
358
|
-
scope: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
359
|
-
chips: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
360
|
-
key: z.ZodString;
|
|
361
|
-
label: z.ZodString;
|
|
362
|
-
tone: z.ZodOptional<z.ZodEnum<{
|
|
363
|
-
error: "error";
|
|
364
|
-
info: "info";
|
|
365
|
-
success: "success";
|
|
366
|
-
warning: "warning";
|
|
367
|
-
muted: "muted";
|
|
368
|
-
accent: "accent";
|
|
369
|
-
dim: "dim";
|
|
370
|
-
}>>;
|
|
371
|
-
style: z.ZodOptional<z.ZodObject<{
|
|
372
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
373
|
-
normal: "normal";
|
|
374
|
-
strong: "strong";
|
|
375
|
-
}>>;
|
|
376
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
377
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
378
|
-
}, z.core.$strict>>;
|
|
379
|
-
}, z.core.$strict>>>;
|
|
380
|
-
sections: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
381
|
-
kind: z.ZodLiteral<"kv">;
|
|
382
|
-
title: z.ZodOptional<z.ZodString>;
|
|
383
|
-
title_style: z.ZodOptional<z.ZodObject<{
|
|
384
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
385
|
-
normal: "normal";
|
|
386
|
-
strong: "strong";
|
|
387
|
-
}>>;
|
|
388
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
389
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
390
|
-
}, z.core.$strict>>;
|
|
391
|
-
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
392
|
-
key: z.ZodString;
|
|
393
|
-
label: z.ZodString;
|
|
394
|
-
value: z.ZodString;
|
|
395
|
-
tone: z.ZodOptional<z.ZodEnum<{
|
|
396
|
-
error: "error";
|
|
397
|
-
info: "info";
|
|
398
|
-
success: "success";
|
|
399
|
-
warning: "warning";
|
|
400
|
-
muted: "muted";
|
|
401
|
-
accent: "accent";
|
|
402
|
-
dim: "dim";
|
|
403
|
-
}>>;
|
|
404
|
-
value_style: z.ZodOptional<z.ZodObject<{
|
|
405
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
406
|
-
normal: "normal";
|
|
407
|
-
strong: "strong";
|
|
408
|
-
}>>;
|
|
409
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
410
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
411
|
-
}, z.core.$strict>>;
|
|
412
|
-
}, z.core.$strict>>>;
|
|
413
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
414
|
-
kind: z.ZodLiteral<"checklist">;
|
|
415
|
-
title: z.ZodOptional<z.ZodString>;
|
|
416
|
-
title_style: z.ZodOptional<z.ZodObject<{
|
|
417
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
418
|
-
normal: "normal";
|
|
419
|
-
strong: "strong";
|
|
420
|
-
}>>;
|
|
421
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
422
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
423
|
-
}, z.core.$strict>>;
|
|
424
|
-
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
425
|
-
id: z.ZodString;
|
|
426
|
-
label: z.ZodString;
|
|
427
|
-
done: z.ZodBoolean;
|
|
428
|
-
style: z.ZodOptional<z.ZodObject<{
|
|
429
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
430
|
-
normal: "normal";
|
|
431
|
-
strong: "strong";
|
|
432
|
-
}>>;
|
|
433
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
434
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
435
|
-
}, z.core.$strict>>;
|
|
436
|
-
}, z.core.$strict>>>;
|
|
437
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
438
|
-
kind: z.ZodLiteral<"activity">;
|
|
439
|
-
title: z.ZodOptional<z.ZodString>;
|
|
440
|
-
title_style: z.ZodOptional<z.ZodObject<{
|
|
441
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
442
|
-
normal: "normal";
|
|
443
|
-
strong: "strong";
|
|
444
|
-
}>>;
|
|
445
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
446
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
447
|
-
}, z.core.$strict>>;
|
|
448
|
-
lines: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
449
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
450
|
-
kind: z.ZodLiteral<"text">;
|
|
451
|
-
title: z.ZodOptional<z.ZodString>;
|
|
452
|
-
title_style: z.ZodOptional<z.ZodObject<{
|
|
453
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
454
|
-
normal: "normal";
|
|
455
|
-
strong: "strong";
|
|
456
|
-
}>>;
|
|
457
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
458
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
459
|
-
}, z.core.$strict>>;
|
|
460
|
-
text: z.ZodString;
|
|
461
|
-
tone: z.ZodOptional<z.ZodEnum<{
|
|
462
|
-
error: "error";
|
|
463
|
-
info: "info";
|
|
464
|
-
success: "success";
|
|
465
|
-
warning: "warning";
|
|
466
|
-
muted: "muted";
|
|
467
|
-
accent: "accent";
|
|
468
|
-
dim: "dim";
|
|
469
|
-
}>>;
|
|
470
|
-
style: z.ZodOptional<z.ZodObject<{
|
|
471
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
472
|
-
normal: "normal";
|
|
473
|
-
strong: "strong";
|
|
474
|
-
}>>;
|
|
475
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
476
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
477
|
-
}, z.core.$strict>>;
|
|
478
|
-
}, z.core.$strict>], "kind">>>;
|
|
479
|
-
actions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
480
|
-
id: z.ZodString;
|
|
481
|
-
label: z.ZodString;
|
|
482
|
-
command_text: z.ZodString;
|
|
483
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
484
|
-
primary: "primary";
|
|
485
|
-
secondary: "secondary";
|
|
486
|
-
danger: "danger";
|
|
487
|
-
}>>;
|
|
488
|
-
style: z.ZodOptional<z.ZodObject<{
|
|
489
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
490
|
-
normal: "normal";
|
|
491
|
-
strong: "strong";
|
|
492
|
-
}>>;
|
|
493
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
494
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
495
|
-
}, z.core.$strict>>;
|
|
496
|
-
}, z.core.$strict>>>;
|
|
497
|
-
snapshot_compact: z.ZodString;
|
|
498
|
-
snapshot_style: z.ZodOptional<z.ZodObject<{
|
|
499
|
-
weight: z.ZodOptional<z.ZodEnum<{
|
|
500
|
-
normal: "normal";
|
|
501
|
-
strong: "strong";
|
|
502
|
-
}>>;
|
|
503
|
-
italic: z.ZodOptional<z.ZodBoolean>;
|
|
504
|
-
code: z.ZodOptional<z.ZodBoolean>;
|
|
505
|
-
}, z.core.$strict>>;
|
|
506
|
-
snapshot_multiline: z.ZodOptional<z.ZodString>;
|
|
507
|
-
updated_at_ms: z.ZodNumber;
|
|
508
|
-
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
509
|
-
}, z.core.$strict>>>;
|
|
510
182
|
ui_docs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
511
183
|
v: z.ZodDefault<z.ZodLiteral<1>>;
|
|
512
184
|
ui_id: z.ZodString;
|
|
@@ -518,8 +190,8 @@ export declare const OperatorBackendTurnResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
518
190
|
text: z.ZodString;
|
|
519
191
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
520
192
|
error: "error";
|
|
521
|
-
info: "info";
|
|
522
193
|
success: "success";
|
|
194
|
+
info: "info";
|
|
523
195
|
warning: "warning";
|
|
524
196
|
muted: "muted";
|
|
525
197
|
accent: "accent";
|
|
@@ -536,8 +208,8 @@ export declare const OperatorBackendTurnResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
536
208
|
detail: z.ZodOptional<z.ZodString>;
|
|
537
209
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
538
210
|
error: "error";
|
|
539
|
-
info: "info";
|
|
540
211
|
success: "success";
|
|
212
|
+
info: "info";
|
|
541
213
|
warning: "warning";
|
|
542
214
|
muted: "muted";
|
|
543
215
|
accent: "accent";
|
|
@@ -554,8 +226,8 @@ export declare const OperatorBackendTurnResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
554
226
|
value: z.ZodString;
|
|
555
227
|
tone: z.ZodOptional<z.ZodEnum<{
|
|
556
228
|
error: "error";
|
|
557
|
-
info: "info";
|
|
558
229
|
success: "success";
|
|
230
|
+
info: "info";
|
|
559
231
|
warning: "warning";
|
|
560
232
|
muted: "muted";
|
|
561
233
|
accent: "accent";
|
|
@@ -606,14 +278,12 @@ export interface MessagingOperatorBackend {
|
|
|
606
278
|
export type OperatorDecision = {
|
|
607
279
|
kind: "response";
|
|
608
280
|
message: string;
|
|
609
|
-
hud_docs?: HudDoc[];
|
|
610
281
|
ui_docs?: UiDoc[];
|
|
611
282
|
operatorSessionId: string;
|
|
612
283
|
operatorTurnId: string;
|
|
613
284
|
} | {
|
|
614
285
|
kind: "command";
|
|
615
286
|
commandText: string;
|
|
616
|
-
hud_docs?: HudDoc[];
|
|
617
287
|
ui_docs?: UiDoc[];
|
|
618
288
|
operatorSessionId: string;
|
|
619
289
|
operatorTurnId: string;
|
package/dist/operator.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../src/operator.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../src/operator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,KAAK,EAAmB,MAAM,kBAAkB,CAAC;AAI5E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAmB,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAC;AAEtE,MAAM,MAAM,gCAAgC,GAAG;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,uBAAuB,EAAE,MAAM,CAAC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,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,IAAI,EAAE,mBAAmB,KAAK,OAAO,CAAC,SAAS,CAAC,CAAC;IACnE,KAAK,CAAC,EAAE,MAAM,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,qBAAqB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;CACrD,CAAC;AAEF,OAAO,EAAE,8BAA8B,EAAE,CAAC;AA+F1C,qBAAa,0BAA2B,YAAW,wBAAwB;;gBAiBvD,IAAI,GAAE,8BAAmC;IAmK/C,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAqBjD,OAAO,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAgIlF,OAAO,IAAI,IAAI;CAKtB"}
|
package/dist/operator.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UiDocSchema, normalizeUiDocs } from "@femtomc/mu-core";
|
|
2
2
|
import { appendJsonl, getStorePaths } from "@femtomc/mu-core/node";
|
|
3
3
|
import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
@@ -7,7 +7,6 @@ import { CommandContextResolver } from "./command_context.js";
|
|
|
7
7
|
import { createMuSession } from "./session_factory.js";
|
|
8
8
|
import { DEFAULT_OPERATOR_SYSTEM_PROMPT } from "./default_prompts.js";
|
|
9
9
|
const OPERATOR_RESPONSE_MAX_CHARS = 12_000;
|
|
10
|
-
const OPERATOR_TURN_HUD_DOCS_MAX = 16;
|
|
11
10
|
const OPERATOR_TURN_UI_DOCS_MAX = 16;
|
|
12
11
|
const SAFE_RESPONSE_RE = new RegExp(`^[\\s\\S]{1,${OPERATOR_RESPONSE_MAX_CHARS}}$`);
|
|
13
12
|
const OPERATOR_TIMEOUT_MIN_MS = 1_000;
|
|
@@ -45,19 +44,16 @@ export const OperatorApprovedCommandSchema = z.discriminatedUnion("kind", [
|
|
|
45
44
|
thinking: z.string().trim().min(1),
|
|
46
45
|
}),
|
|
47
46
|
]);
|
|
48
|
-
const OperatorTurnHudDocsSchema = z.array(HudDocSchema).max(OPERATOR_TURN_HUD_DOCS_MAX).optional();
|
|
49
47
|
const OperatorTurnUiDocsSchema = z.array(UiDocSchema).max(OPERATOR_TURN_UI_DOCS_MAX).optional();
|
|
50
48
|
export const OperatorBackendTurnResultSchema = z.discriminatedUnion("kind", [
|
|
51
49
|
z.object({
|
|
52
50
|
kind: z.literal("respond"),
|
|
53
51
|
message: z.string().trim().min(1).max(OPERATOR_RESPONSE_MAX_CHARS),
|
|
54
|
-
hud_docs: OperatorTurnHudDocsSchema,
|
|
55
52
|
ui_docs: OperatorTurnUiDocsSchema,
|
|
56
53
|
}),
|
|
57
54
|
z.object({
|
|
58
55
|
kind: z.literal("command"),
|
|
59
56
|
command: OperatorApprovedCommandSchema,
|
|
60
|
-
hud_docs: OperatorTurnHudDocsSchema,
|
|
61
57
|
ui_docs: OperatorTurnUiDocsSchema,
|
|
62
58
|
}),
|
|
63
59
|
]);
|
|
@@ -259,33 +255,10 @@ function nonEmptyString(value) {
|
|
|
259
255
|
const trimmed = value.trim();
|
|
260
256
|
return trimmed.length > 0 ? trimmed : null;
|
|
261
257
|
}
|
|
262
|
-
function isHudToolName(toolName) {
|
|
263
|
-
const normalized = toolName.trim().toLowerCase();
|
|
264
|
-
return normalized === "mu_hud";
|
|
265
|
-
}
|
|
266
258
|
function isUiToolName(toolName) {
|
|
267
259
|
const normalized = toolName.trim().toLowerCase();
|
|
268
260
|
return normalized === "mu_ui";
|
|
269
261
|
}
|
|
270
|
-
function extractHudDocsFromToolResult(result) {
|
|
271
|
-
const rec = asRecord(result);
|
|
272
|
-
if (!rec) {
|
|
273
|
-
return [];
|
|
274
|
-
}
|
|
275
|
-
const details = asRecord(rec.details);
|
|
276
|
-
const candidates = [];
|
|
277
|
-
const topLevelHudDocs = rec.hud_docs;
|
|
278
|
-
if (Array.isArray(topLevelHudDocs)) {
|
|
279
|
-
candidates.push(...topLevelHudDocs);
|
|
280
|
-
}
|
|
281
|
-
if (details) {
|
|
282
|
-
const detailHudDocs = details.hud_docs;
|
|
283
|
-
if (Array.isArray(detailHudDocs)) {
|
|
284
|
-
candidates.push(...detailHudDocs);
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
return normalizeHudDocs(candidates, { maxDocs: OPERATOR_TURN_HUD_DOCS_MAX });
|
|
288
|
-
}
|
|
289
262
|
function extractUiDocsFromToolResult(result) {
|
|
290
263
|
const rec = asRecord(result);
|
|
291
264
|
if (!rec) {
|
|
@@ -305,20 +278,6 @@ function extractUiDocsFromToolResult(result) {
|
|
|
305
278
|
}
|
|
306
279
|
return normalizeUiDocs(candidates, { maxDocs: OPERATOR_TURN_UI_DOCS_MAX });
|
|
307
280
|
}
|
|
308
|
-
function collectHudDocsFromToolExecutionEvent(event) {
|
|
309
|
-
const rec = asRecord(event);
|
|
310
|
-
if (!rec) {
|
|
311
|
-
return [];
|
|
312
|
-
}
|
|
313
|
-
if (nonEmptyString(rec.type) !== "tool_execution_end") {
|
|
314
|
-
return [];
|
|
315
|
-
}
|
|
316
|
-
const toolName = nonEmptyString(rec.toolName);
|
|
317
|
-
if (!toolName || !isHudToolName(toolName)) {
|
|
318
|
-
return [];
|
|
319
|
-
}
|
|
320
|
-
return extractHudDocsFromToolResult(rec.result);
|
|
321
|
-
}
|
|
322
281
|
function collectUiDocsFromToolExecutionEvent(event) {
|
|
323
282
|
const rec = asRecord(event);
|
|
324
283
|
if (!rec) {
|
|
@@ -542,9 +501,6 @@ export class MessagingOperatorRuntime {
|
|
|
542
501
|
};
|
|
543
502
|
}
|
|
544
503
|
const docPayload = {};
|
|
545
|
-
if (backendResult.hud_docs && backendResult.hud_docs.length > 0) {
|
|
546
|
-
docPayload.hud_docs = backendResult.hud_docs;
|
|
547
|
-
}
|
|
548
504
|
if (backendResult.ui_docs && backendResult.ui_docs.length > 0) {
|
|
549
505
|
docPayload.ui_docs = backendResult.ui_docs;
|
|
550
506
|
}
|
|
@@ -570,9 +526,6 @@ export class MessagingOperatorRuntime {
|
|
|
570
526
|
};
|
|
571
527
|
}
|
|
572
528
|
const docPayload = {};
|
|
573
|
-
if (backendResult.hud_docs && backendResult.hud_docs.length > 0) {
|
|
574
|
-
docPayload.hud_docs = backendResult.hud_docs;
|
|
575
|
-
}
|
|
576
529
|
if (backendResult.ui_docs && backendResult.ui_docs.length > 0) {
|
|
577
530
|
docPayload.ui_docs = backendResult.ui_docs;
|
|
578
531
|
}
|
|
@@ -843,7 +796,6 @@ export class PiMessagingOperatorBackend {
|
|
|
843
796
|
const session = sessionRecord.session;
|
|
844
797
|
let assistantText = "";
|
|
845
798
|
let capturedCommand = null;
|
|
846
|
-
let capturedHudDocs = [];
|
|
847
799
|
let capturedUiDocs = [];
|
|
848
800
|
const unsub = session.subscribe((event) => {
|
|
849
801
|
// Capture assistant text for fallback responses.
|
|
@@ -873,12 +825,6 @@ export class PiMessagingOperatorBackend {
|
|
|
873
825
|
capturedCommand = parsed.data;
|
|
874
826
|
}
|
|
875
827
|
}
|
|
876
|
-
const hudDocs = collectHudDocsFromToolExecutionEvent(event);
|
|
877
|
-
if (hudDocs.length > 0) {
|
|
878
|
-
capturedHudDocs = normalizeHudDocs([...capturedHudDocs, ...hudDocs], {
|
|
879
|
-
maxDocs: OPERATOR_TURN_HUD_DOCS_MAX,
|
|
880
|
-
});
|
|
881
|
-
}
|
|
882
828
|
const uiDocs = collectUiDocsFromToolExecutionEvent(event);
|
|
883
829
|
if (uiDocs.length > 0) {
|
|
884
830
|
capturedUiDocs = normalizeUiDocs([...capturedUiDocs, ...uiDocs], {
|
|
@@ -922,7 +868,6 @@ export class PiMessagingOperatorBackend {
|
|
|
922
868
|
await session.agent.waitForIdle();
|
|
923
869
|
assistantText = "";
|
|
924
870
|
capturedCommand = null;
|
|
925
|
-
capturedHudDocs = [];
|
|
926
871
|
await promptOnce();
|
|
927
872
|
}
|
|
928
873
|
}
|
|
@@ -947,9 +892,6 @@ export class PiMessagingOperatorBackend {
|
|
|
947
892
|
messagePreview: assistantText,
|
|
948
893
|
});
|
|
949
894
|
const docPayload = {};
|
|
950
|
-
if (capturedHudDocs.length > 0) {
|
|
951
|
-
docPayload.hud_docs = capturedHudDocs;
|
|
952
|
-
}
|
|
953
895
|
if (capturedUiDocs.length > 0) {
|
|
954
896
|
docPayload.ui_docs = capturedUiDocs;
|
|
955
897
|
}
|
|
@@ -970,9 +912,6 @@ export class PiMessagingOperatorBackend {
|
|
|
970
912
|
messagePreview: responseMessage,
|
|
971
913
|
});
|
|
972
914
|
const docPayload = {};
|
|
973
|
-
if (capturedHudDocs.length > 0) {
|
|
974
|
-
docPayload.hud_docs = capturedHudDocs;
|
|
975
|
-
}
|
|
976
915
|
if (capturedUiDocs.length > 0) {
|
|
977
916
|
docPayload.ui_docs = capturedUiDocs;
|
|
978
917
|
}
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
2
|
+
"name": "@femtomc/mu-agent",
|
|
3
|
+
"version": "26.2.108",
|
|
4
|
+
"description": "Shared operator runtime for mu assistant sessions and serve extensions.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"mu",
|
|
7
|
+
"agent",
|
|
8
|
+
"runtime",
|
|
9
|
+
"chat",
|
|
10
|
+
"extensions"
|
|
11
|
+
],
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist/**",
|
|
23
|
+
"assets/**",
|
|
24
|
+
"prompts/**",
|
|
25
|
+
"themes/**"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@femtomc/mu-core": "26.2.108",
|
|
29
|
+
"@mariozechner/pi-agent-core": "^0.54.2",
|
|
30
|
+
"@mariozechner/pi-ai": "^0.54.2",
|
|
31
|
+
"@mariozechner/pi-coding-agent": "^0.54.2",
|
|
32
|
+
"@mariozechner/pi-tui": "^0.54.2",
|
|
33
|
+
"zod": "^4.1.9"
|
|
34
|
+
}
|
|
35
35
|
}
|