@floless/app 0.131.1 → 0.132.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.
@@ -0,0 +1,1316 @@
1
+ /* ──────────────────────────────────────────────────────────────────────────
2
+ Shell capability registrations — PHASE 1.
3
+
4
+ Every user-invokable capability of the workflow shell, declared against the
5
+ vocabularies in commands.js. Registrations are CO-LOCATED with the surface
6
+ they belong to (phase 0 settled that by construction), and this file IS the
7
+ shell's surface — one document, one registration site.
8
+
9
+ The classification is declared, not inferred. When adding a capability, the
10
+ only judgment you make is these four fields; the tier falls out of them, and
11
+ CI rejects anything outside the vocabulary.
12
+
13
+ persistence none | local | working | approved | external
14
+ interaction mode | armed-gesture | gesture | instant | dialog
15
+ risk [] | costs-time | costs-money | destructive
16
+ guidance active-command | on-demand
17
+
18
+ `actsOn` may contain {instance}, filled from a parameterized id's instance
19
+ key so one entry serves every generated row.
20
+ ────────────────────────────────────────────────────────────────────────── */
21
+ (function () {
22
+ 'use strict';
23
+
24
+ if (!window.Commands) return;
25
+ var def = window.Commands.define;
26
+ /* Every definition below lives on the shell itself. Declared once, here — see
27
+ the note beside SURFACE in commands.js for why this is per-file. */
28
+ window.Commands.surfaceScope('shell');
29
+
30
+ /* ── the lifecycle: compile → run, and the gate between them ─────────────── */
31
+
32
+ def('workflow.compile', {
33
+ label: 'Compile',
34
+ actsOn: 'Acts on the whole workflow',
35
+ group: 'In the header',
36
+ persistence: 'approved', // freezes the lock Run executes
37
+ interaction: 'instant',
38
+ risk: ['costs-time'],
39
+ guidance: 'on-demand',
40
+ why: 'Freezes this workflow into a lock — the exact version Run will execute. Until you compile, Run stays off.',
41
+ });
42
+
43
+ def('workflow.run', {
44
+ label: 'Run workflow',
45
+ actsOn: 'Acts on the approved lock, against the live host',
46
+ group: 'In the header',
47
+ persistence: 'external', // reaches out of the app entirely
48
+ interaction: 'instant',
49
+ risk: ['costs-time'],
50
+ guidance: 'on-demand',
51
+ why: 'Executes the approved lock against your live host. Nothing improvises — it runs exactly what was compiled.',
52
+ });
53
+
54
+ def('workflow.simulate', {
55
+ label: 'Simulate',
56
+ actsOn: 'Acts on the workflow only — never the live host',
57
+ group: 'In the header',
58
+ persistence: 'none',
59
+ interaction: 'instant',
60
+ risk: ['costs-time'],
61
+ guidance: 'on-demand',
62
+ why: 'Stubs every node from its output schema so you can check the workflow hangs together before touching the real host.',
63
+ });
64
+
65
+ def('workflow.stop', {
66
+ label: 'Stop run',
67
+ actsOn: 'Stops the run in flight',
68
+ group: 'In the header',
69
+ persistence: 'none',
70
+ interaction: 'instant',
71
+ risk: [],
72
+ guidance: 'on-demand',
73
+ });
74
+
75
+ /* ── the workflow list: one entry per capability, N rows ─────────────────── */
76
+
77
+ def('workflow.select', {
78
+ label: 'Open workflow',
79
+ actsOn: 'Opens {instance} on the canvas',
80
+ group: 'In the workflow picker',
81
+ key: 'Also: Ctrl+O',
82
+ persistence: 'local',
83
+ interaction: 'instant',
84
+ risk: [],
85
+ guidance: 'on-demand',
86
+ });
87
+
88
+ def('workflow.rename', {
89
+ label: 'Rename workflow',
90
+ actsOn: 'Renames {instance} — the .flo file is renamed with it',
91
+ group: 'In the workflow picker',
92
+ persistence: 'working',
93
+ interaction: 'dialog',
94
+ risk: [],
95
+ guidance: 'on-demand',
96
+ });
97
+
98
+ def('workflow.duplicate', {
99
+ label: 'Duplicate workflow',
100
+ actsOn: 'Copies {instance} to a new workflow you own',
101
+ group: 'In the workflow picker',
102
+ persistence: 'working',
103
+ interaction: 'dialog',
104
+ risk: [],
105
+ guidance: 'on-demand',
106
+ });
107
+
108
+ def('workflow.delete', {
109
+ label: 'Delete workflow',
110
+ actsOn: 'Deletes {instance} and its approved lock',
111
+ group: 'In the workflow picker',
112
+ persistence: 'working',
113
+ interaction: 'dialog',
114
+ risk: ['destructive'],
115
+ guidance: 'on-demand',
116
+ why: 'Removes the workflow and the lock that was approved for it. Its run history goes too.',
117
+ });
118
+
119
+ /* ── the ≡ menu ──────────────────────────────────────────────────────────
120
+ Written out one call per capability rather than looped over a table. The
121
+ registry guard refuses a computed id, and it is right to: one `def(id, …)`
122
+ in a loop and a whole surface can leave coverage with CI still green. The
123
+ cost is verbosity; the benefit is that `menu.bake` is greppable to exactly
124
+ one line. */
125
+
126
+ def('menu.open', {
127
+ label: 'Open workflow',
128
+ actsOn: 'Opens a workflow from disk',
129
+ group: 'In the ≡ menu',
130
+ key: 'Also: Ctrl+O',
131
+ persistence: 'local',
132
+ interaction: 'dialog',
133
+ risk: [],
134
+ guidance: 'on-demand',
135
+ });
136
+
137
+ def('menu.save', {
138
+ label: 'Save inputs',
139
+ actsOn: 'Saves the values this workflow runs with',
140
+ group: 'In the ≡ menu',
141
+ key: 'Also: Ctrl+S',
142
+ persistence: 'working',
143
+ interaction: 'instant',
144
+ risk: [],
145
+ guidance: 'on-demand',
146
+ });
147
+
148
+ def('menu.new-workflow', {
149
+ label: 'New workflow',
150
+ actsOn: 'Asks your terminal AI to author a new .flo',
151
+ group: 'In the ≡ menu',
152
+ persistence: 'working',
153
+ interaction: 'dialog',
154
+ risk: [],
155
+ guidance: 'on-demand',
156
+ });
157
+
158
+ def('menu.import', {
159
+ label: 'Import',
160
+ actsOn: 'Brings an existing workflow into FloLess',
161
+ group: 'In the ≡ menu',
162
+ persistence: 'working',
163
+ interaction: 'dialog',
164
+ risk: [],
165
+ guidance: 'on-demand',
166
+ });
167
+
168
+ def('menu.find', {
169
+ label: 'Find in code',
170
+ actsOn: 'Searches the node code in the Inspect panel',
171
+ group: 'In the ≡ menu',
172
+ key: 'Also: Ctrl+F',
173
+ persistence: 'none',
174
+ interaction: 'instant',
175
+ risk: [],
176
+ guidance: 'on-demand',
177
+ });
178
+
179
+ def('menu.view-switch', {
180
+ label: 'Switch view',
181
+ actsOn: 'Swaps between Workflows and Workspaces',
182
+ group: 'In the ≡ menu',
183
+ key: 'Also: Ctrl+1 / Ctrl+2',
184
+ persistence: 'local',
185
+ interaction: 'instant',
186
+ risk: [],
187
+ guidance: 'on-demand',
188
+ });
189
+
190
+ def('menu.agents', {
191
+ label: 'Agents',
192
+ actsOn: 'Lists the AWARE agents this runtime can reach',
193
+ group: 'In the ≡ menu',
194
+ key: 'Also: Ctrl+G',
195
+ persistence: 'none',
196
+ interaction: 'dialog',
197
+ risk: [],
198
+ guidance: 'on-demand',
199
+ });
200
+
201
+ def('menu.graft', {
202
+ label: 'Graft',
203
+ actsOn: 'Pulls a node from another workflow into this one',
204
+ group: 'In the ≡ menu',
205
+ persistence: 'working',
206
+ interaction: 'dialog',
207
+ risk: [],
208
+ guidance: 'on-demand',
209
+ });
210
+
211
+ def('menu.bake', {
212
+ label: 'Bake',
213
+ actsOn: 'Publishes this workflow as an installable app',
214
+ group: 'In the ≡ menu',
215
+ persistence: 'approved',
216
+ interaction: 'dialog',
217
+ risk: ['costs-time'],
218
+ guidance: 'on-demand',
219
+ });
220
+
221
+ def('menu.integrations', {
222
+ label: 'Integrations',
223
+ actsOn: 'Connects FloLess to an outside service',
224
+ group: 'In the ≡ menu',
225
+ key: 'Also: Ctrl+I',
226
+ persistence: 'external',
227
+ interaction: 'dialog',
228
+ risk: [],
229
+ guidance: 'on-demand',
230
+ });
231
+
232
+ def('menu.routines', {
233
+ label: 'Routines',
234
+ actsOn: 'Schedules a workflow to run on its own',
235
+ group: 'In the ≡ menu',
236
+ key: 'Also: Ctrl+R',
237
+ persistence: 'external',
238
+ interaction: 'dialog',
239
+ risk: ['costs-time'],
240
+ guidance: 'on-demand',
241
+ });
242
+
243
+ def('menu.report-issue', {
244
+ label: 'Report an issue',
245
+ actsOn: 'Sends a report to the FloLess team',
246
+ group: 'In the ≡ menu',
247
+ persistence: 'external',
248
+ interaction: 'dialog',
249
+ risk: [],
250
+ guidance: 'on-demand',
251
+ });
252
+
253
+ def('menu.fullscreen', {
254
+ label: 'Fullscreen',
255
+ actsOn: 'Gives FloLess the whole screen',
256
+ group: 'In the ≡ menu',
257
+ persistence: 'local',
258
+ interaction: 'instant',
259
+ risk: [],
260
+ guidance: 'on-demand',
261
+ });
262
+
263
+ /* ── canvas + guidance affordances ───────────────────────────────────────── */
264
+
265
+ def('canvas.fit', {
266
+ label: 'Fit to window',
267
+ actsOn: 'Frames every node on the canvas',
268
+ group: 'On the workflow canvas',
269
+ key: 'Also: Home',
270
+ persistence: 'none',
271
+ interaction: 'instant',
272
+ risk: [],
273
+ guidance: 'on-demand',
274
+ });
275
+
276
+ /* Parameterised because the zoom bar's three buttons do three different things
277
+ — in, out, and reset to 100%. Sharing one bare id made "Enter — go to it"
278
+ always land on the first of them, and one sentence cannot describe "Reset to
279
+ 100%" as well as "Zoom in". (Code review.) */
280
+ def('canvas.zoom', {
281
+ label: 'Zoom',
282
+ actsOn: 'Zooms {instance} — acts on the canvas view only',
283
+ group: 'On the workflow canvas',
284
+ key: 'Also: Ctrl+= / Ctrl+-',
285
+ persistence: 'none',
286
+ interaction: 'instant',
287
+ risk: [],
288
+ guidance: 'on-demand',
289
+ });
290
+
291
+ def('guide.open', {
292
+ label: 'Guide',
293
+ actsOn: 'Explains this workflow, step by step',
294
+ group: 'In the header',
295
+ persistence: 'none',
296
+ interaction: 'dialog',
297
+ risk: [],
298
+ guidance: 'on-demand',
299
+ });
300
+
301
+ def('instructor.toggle', {
302
+ label: 'Instructor',
303
+ actsOn: 'Collapses or shows this strip — remembered per screen',
304
+ group: 'In the Instructor strip',
305
+ key: 'Also: ? or F1 to explain a control',
306
+ persistence: 'local',
307
+ interaction: 'instant',
308
+ risk: [],
309
+ guidance: 'on-demand',
310
+ });
311
+
312
+ def('instructor.sheet', {
313
+ label: 'All commands',
314
+ actsOn: 'Lists every command in FloLess, this screen first, searchable',
315
+ group: 'In the Instructor strip',
316
+ key: 'Also: ? or F1 with nothing selected',
317
+ persistence: 'none',
318
+ interaction: 'dialog',
319
+ risk: [],
320
+ guidance: 'on-demand',
321
+ });
322
+
323
+ /* Distinct from instructor.toggle above, and the distinction is the point:
324
+ collapsing keeps a rail, turning it off gives the row back to the canvas. */
325
+ def('instructor.enabled', {
326
+ label: 'Instructor',
327
+ actsOn: 'Turns the strip off entirely — the row leaves the layout',
328
+ group: 'In the ≡ menu',
329
+ persistence: 'local',
330
+ interaction: 'instant',
331
+ risk: [],
332
+ guidance: 'on-demand',
333
+ why: 'Off reclaims the strip’s space for good, unlike collapsing it. While it is off, ? and F1 explain nothing.',
334
+ });
335
+
336
+ /* ══════════════════════════════════════════════════════════════════════════
337
+ PHASE 3 — the rest of the shell.
338
+
339
+ The 27 definitions above are the ones the band had to be able to narrate:
340
+ the Run gate, the ≡ menu, the canvas. They left about 135 controls with no
341
+ entry — the pickers, the workspace steps, the Inspect tabs, the report
342
+ viewer, and every modal — so the `?` sheet described roughly one control in
343
+ eight on the screen it opens over.
344
+
345
+ Shared templates carry Cancel and Close, keyed by the dialog they belong
346
+ to: twenty near-identical "Cancel" rows would be twenty ways of saying the
347
+ same thing, and one row that names its dialog is what a reader needs. The
348
+ CONFIRM side is deliberately NOT shared — those differ in what they cost
349
+ (Bake freezes a lock, Reset throws work away, Save writes), and a shared
350
+ template would have to flatten that into one risk flag, which is the one
351
+ thing the classification exists to keep honest.
352
+ ══════════════════════════════════════════════════════════════════════════ */
353
+
354
+ /* ── the header ─────────────────────────────────────────────────────────── */
355
+
356
+ def('shell.menu-toggle', {
357
+ label: 'Menu',
358
+ actsOn: 'Opens the ≡ menu',
359
+ group: 'In the header',
360
+ persistence: 'none',
361
+ interaction: 'instant',
362
+ risk: [],
363
+ guidance: 'on-demand',
364
+ });
365
+
366
+ /* TWO entries, not one template with an instance key.
367
+
368
+ These are the only two modules in the product, and a new user's first
369
+ question is which of them they are looking for — so each needs its own
370
+ explanation, and a shared template can only carry one. The instance form is
371
+ right for seven snap types that differ by a noun; it is wrong here, where
372
+ the whole point is that the two differ in kind. (Design review, on Pawel's
373
+ note that users do not understand what the two modules do.) */
374
+
375
+ def('shell.mode-workspaces', {
376
+ label: 'Workspaces',
377
+ actsOn: 'Opens the project view — drawings, model and exports',
378
+ group: 'In the header',
379
+ key: 'Also: Ctrl+1 / Ctrl+2 to swap',
380
+ persistence: 'local',
381
+ interaction: 'instant',
382
+ risk: [],
383
+ guidance: 'on-demand',
384
+ why: 'Everything for one job in one place. Use this when you are working ON a project, rather than building the process that runs against it.',
385
+ });
386
+
387
+ def('shell.mode-workflows', {
388
+ label: 'Workflows',
389
+ actsOn: 'Opens the workflow canvas — build, approve and run a process',
390
+ group: 'In the header',
391
+ key: 'Also: Ctrl+1 / Ctrl+2 to swap',
392
+ persistence: 'local',
393
+ interaction: 'instant',
394
+ risk: [],
395
+ guidance: 'on-demand',
396
+ why: 'Set an automation up once, then run it whenever the job needs it. Compiling is what freezes the exact version Run executes — which is why Run stays off until you have compiled.',
397
+ });
398
+
399
+ def('shell.extension-badge', {
400
+ label: 'Extension edits',
401
+ actsOn: 'Opens undo, redo and reset for out-of-band edits',
402
+ group: 'In the header',
403
+ persistence: 'none',
404
+ interaction: 'instant',
405
+ risk: [],
406
+ guidance: 'on-demand',
407
+ why: 'Appears only when something outside FloLess changed this workflow.',
408
+ });
409
+
410
+ def('shell.approve', {
411
+ label: 'Approve',
412
+ actsOn: 'Signs off every pending change in this project',
413
+ group: 'In the header',
414
+ persistence: 'approved',
415
+ interaction: 'dialog',
416
+ risk: ['costs-time'],
417
+ guidance: 'on-demand',
418
+ why: 'Shows you the pending changes first. Approving is what lets the project be Run.',
419
+ });
420
+
421
+ def('shell.restore-workflow', {
422
+ label: 'Restore the official workflow',
423
+ actsOn: 'Undoes out-of-band edits and re-arms Run',
424
+ group: 'In the header',
425
+ persistence: 'working',
426
+ interaction: 'instant',
427
+ risk: ['destructive'],
428
+ guidance: 'on-demand',
429
+ why: 'Throws away edits made outside FloLess and puts the shipped version back.',
430
+ });
431
+
432
+ def('shell.customize-workflow', {
433
+ label: 'Customize this workflow',
434
+ actsOn: 'Forks it so you can edit it yourself',
435
+ group: 'In the header',
436
+ persistence: 'working',
437
+ interaction: 'instant',
438
+ risk: [],
439
+ guidance: 'on-demand',
440
+ why: 'A forked workflow stops receiving FloLess updates — it becomes yours to maintain.',
441
+ });
442
+
443
+ /* ── the pickers ────────────────────────────────────────────────────────── */
444
+
445
+ /* The TRIGGER is not `workflow.select`, and that distinction is not pedantry.
446
+ workflow.select means "open THIS workflow" — its actsOn is 'Opens {instance}
447
+ on the canvas', filled from the instance key the generated rows carry. The
448
+ trigger opens the LIST; it has no single workflow to name, so pointing it at
449
+ that template made the band render the literal text "{instance}" to the user.
450
+ (Code review.) */
451
+ def('shell.workflow-picker', {
452
+ label: 'Workflow picker',
453
+ actsOn: 'Opens the list of workflows in this project',
454
+ group: 'In the workflow picker',
455
+ key: 'Also: Ctrl+O',
456
+ persistence: 'none',
457
+ interaction: 'instant',
458
+ risk: [],
459
+ guidance: 'on-demand',
460
+ });
461
+
462
+ def('shell.workflow-search', {
463
+ label: 'Search workflows',
464
+ actsOn: 'Narrows the workflow list',
465
+ group: 'In the workflow picker',
466
+ persistence: 'none',
467
+ interaction: 'instant',
468
+ risk: [],
469
+ guidance: 'on-demand',
470
+ });
471
+
472
+ def('shell.workflow-update', {
473
+ label: 'Workflow update',
474
+ actsOn: 'Shows what a newer version of this workflow changes',
475
+ group: 'In the workflow picker',
476
+ persistence: 'none',
477
+ interaction: 'dialog',
478
+ risk: [],
479
+ guidance: 'on-demand',
480
+ });
481
+
482
+ def('shell.workflow-update-apply', {
483
+ label: 'Update the workflow',
484
+ actsOn: 'Replaces this workflow with the newer version',
485
+ group: 'In the workflow picker',
486
+ persistence: 'working',
487
+ interaction: 'instant',
488
+ risk: [],
489
+ guidance: 'on-demand',
490
+ why: 'Your own edits to a customized workflow are not overwritten — it is left off the update path instead.',
491
+ });
492
+
493
+ def('shell.project-select', {
494
+ label: 'Select project',
495
+ actsOn: 'Opens another project',
496
+ group: 'In the project picker',
497
+ persistence: 'local',
498
+ interaction: 'instant',
499
+ risk: [],
500
+ guidance: 'on-demand',
501
+ });
502
+
503
+ def('shell.project-search', {
504
+ label: 'Search projects',
505
+ actsOn: 'Narrows the project list',
506
+ group: 'In the project picker',
507
+ persistence: 'none',
508
+ interaction: 'instant',
509
+ risk: [],
510
+ guidance: 'on-demand',
511
+ });
512
+
513
+ /* ── the panels ─────────────────────────────────────────────────────────── */
514
+
515
+ def('shell.narrative-panel', {
516
+ label: 'Narrative panel',
517
+ actsOn: 'Folds the Narrative panel away, or brings it back',
518
+ group: 'In the Narrative panel',
519
+ persistence: 'local',
520
+ interaction: 'instant',
521
+ risk: [],
522
+ guidance: 'on-demand',
523
+ });
524
+
525
+ def('shell.inspect-panel', {
526
+ label: 'Inspect panel',
527
+ actsOn: 'Folds the Inspect panel away, or brings it back',
528
+ group: 'In the node Inspect panel',
529
+ persistence: 'local',
530
+ interaction: 'instant',
531
+ risk: [],
532
+ guidance: 'on-demand',
533
+ });
534
+
535
+ def('shell.inspect-tab', {
536
+ label: 'Inspect tab',
537
+ actsOn: 'Shows this node’s {instance}',
538
+ group: 'In the node Inspect panel',
539
+ persistence: 'local',
540
+ interaction: 'instant',
541
+ risk: [],
542
+ guidance: 'on-demand',
543
+ why: 'Description is written for a non-coder; Code and Execution are the raw detail behind it.',
544
+ });
545
+
546
+ def('shell.debug-node', {
547
+ label: 'Debug this node',
548
+ actsOn: 'Re-runs this exec node with the .NET debugger attached',
549
+ group: 'In the node Inspect panel',
550
+ persistence: 'external',
551
+ interaction: 'instant',
552
+ risk: ['costs-time'],
553
+ guidance: 'on-demand',
554
+ why: 'Opens Visual Studio and stops on the node’s code, so a failing step can be stepped through.',
555
+ });
556
+
557
+ def('shell.tweak-node', {
558
+ label: 'Tweak this node',
559
+ actsOn: 'Asks your terminal AI to change just this node',
560
+ group: 'In the node Inspect panel',
561
+ persistence: 'external',
562
+ interaction: 'instant',
563
+ risk: ['costs-time'],
564
+ guidance: 'on-demand',
565
+ why: 'Leaves the rest of the workflow alone. Nothing changes until the AI makes the change.',
566
+ });
567
+
568
+ /* ── the canvas find bar ────────────────────────────────────────────────── */
569
+
570
+ def('shell.find-input', {
571
+ label: 'Find agent',
572
+ actsOn: 'Highlights the nodes whose name matches',
573
+ group: 'On the workflow canvas',
574
+ persistence: 'none',
575
+ interaction: 'instant',
576
+ risk: [],
577
+ guidance: 'on-demand',
578
+ });
579
+
580
+ def('shell.find-close', {
581
+ label: 'Close find',
582
+ actsOn: 'Hides the find bar and clears the highlight',
583
+ group: 'On the workflow canvas',
584
+ key: 'Also: Esc',
585
+ persistence: 'none',
586
+ interaction: 'instant',
587
+ risk: [],
588
+ guidance: 'on-demand',
589
+ });
590
+
591
+ /* ── the project workspace ──────────────────────────────────────────────── */
592
+
593
+ def('shell.workspace-back', {
594
+ label: 'Back to projects',
595
+ actsOn: 'Leaves this project for the project list',
596
+ group: 'In the project workspace',
597
+ persistence: 'local',
598
+ interaction: 'instant',
599
+ risk: [],
600
+ guidance: 'on-demand',
601
+ });
602
+
603
+ def('shell.workspace-step', {
604
+ label: 'Workspace step',
605
+ actsOn: 'Shows this project’s {instance}',
606
+ group: 'In the project workspace',
607
+ persistence: 'local',
608
+ interaction: 'instant',
609
+ risk: [],
610
+ guidance: 'on-demand',
611
+ why: 'The steps run left to right — what the project knows, what it was drawn from, the model, what comes out, and what happened.',
612
+ });
613
+
614
+ def('shell.attach-revision', {
615
+ label: 'Attach a revision',
616
+ actsOn: 'Adds a revised drawing set to this project',
617
+ group: 'In the project workspace',
618
+ persistence: 'working',
619
+ interaction: 'instant',
620
+ risk: [],
621
+ guidance: 'on-demand',
622
+ why: 'Your terminal AI compares it with what is already here and tells you what changed.',
623
+ });
624
+
625
+ def('shell.add-knowledge', {
626
+ label: 'Add knowledge',
627
+ actsOn: 'Adds a document to this project’s knowledge',
628
+ group: 'In the project workspace',
629
+ persistence: 'working',
630
+ interaction: 'instant',
631
+ risk: [],
632
+ guidance: 'on-demand',
633
+ why: 'Read while a workflow is being written, and cited in the node description — never reasoned over while one runs.',
634
+ });
635
+
636
+ /* ── the strip, the footer, and the two nudges ──────────────────────────── */
637
+
638
+ def('shell.instructor-ask', {
639
+ label: 'Ask about this',
640
+ actsOn: 'Sends what the strip is showing to your terminal AI',
641
+ group: 'In the Instructor strip',
642
+ persistence: 'external',
643
+ interaction: 'instant',
644
+ risk: ['costs-time'],
645
+ guidance: 'on-demand',
646
+ });
647
+
648
+ def('shell.whats-new', {
649
+ label: 'What’s new',
650
+ actsOn: 'Shows what changed in this version',
651
+ group: 'In the footer',
652
+ persistence: 'none',
653
+ interaction: 'instant',
654
+ risk: [],
655
+ guidance: 'on-demand',
656
+ });
657
+
658
+ def('shell.whats-new-dismiss', {
659
+ label: 'Dismiss what’s new',
660
+ actsOn: 'Hides the release note until the next version',
661
+ group: 'In the footer',
662
+ persistence: 'local',
663
+ interaction: 'instant',
664
+ risk: [],
665
+ guidance: 'on-demand',
666
+ });
667
+
668
+ def('shell.fullscreen-suggest', {
669
+ label: 'Go fullscreen',
670
+ actsOn: 'Takes the suggestion and fills the screen',
671
+ group: 'In the footer',
672
+ persistence: 'local',
673
+ interaction: 'instant',
674
+ risk: [],
675
+ guidance: 'on-demand',
676
+ });
677
+
678
+ def('shell.fullscreen-dismiss', {
679
+ label: 'Dismiss the fullscreen suggestion',
680
+ actsOn: 'Hides the suggestion',
681
+ group: 'In the footer',
682
+ persistence: 'local',
683
+ interaction: 'instant',
684
+ risk: [],
685
+ guidance: 'on-demand',
686
+ });
687
+
688
+ def('shell.aware-update', {
689
+ label: 'Update AWARE',
690
+ actsOn: 'Upgrades the AWARE runtime in place',
691
+ group: 'In the footer',
692
+ persistence: 'external',
693
+ interaction: 'dialog',
694
+ risk: ['costs-time'],
695
+ guidance: 'on-demand',
696
+ why: 'AWARE is the runtime your workflows execute on. It reinstalls in place — nothing to relaunch.',
697
+ });
698
+
699
+ def('shell.app-update', {
700
+ label: 'Update FloLess',
701
+ actsOn: 'Installs a newer version of FloLess',
702
+ group: 'In the footer',
703
+ persistence: 'external',
704
+ interaction: 'dialog',
705
+ risk: ['costs-time'],
706
+ guidance: 'on-demand',
707
+ });
708
+
709
+ /* ── the ≡ menu's settings ──────────────────────────────────────────────── */
710
+
711
+ def('shell.open-at-startup', {
712
+ label: 'Start on startup',
713
+ actsOn: 'Starts the FloLess server when you sign in',
714
+ group: 'In the ≡ menu',
715
+ persistence: 'external',
716
+ interaction: 'instant',
717
+ risk: [],
718
+ guidance: 'on-demand',
719
+ why: 'Your browser reconnects on its own instead of waiting for you to start the server by hand.',
720
+ });
721
+
722
+ def('shell.theme', {
723
+ label: 'Theme',
724
+ actsOn: 'Switches FloLess to {instance}',
725
+ group: 'In the ≡ menu',
726
+ persistence: 'local',
727
+ interaction: 'instant',
728
+ risk: [],
729
+ guidance: 'on-demand',
730
+ });
731
+
732
+ /* ── out-of-band edits ──────────────────────────────────────────────────── */
733
+
734
+ def('shell.extension-undo', {
735
+ label: 'Undo the extension edit',
736
+ actsOn: 'Reverses the last change made outside FloLess',
737
+ group: 'In the header',
738
+ persistence: 'working',
739
+ interaction: 'instant',
740
+ risk: [],
741
+ guidance: 'on-demand',
742
+ });
743
+
744
+ def('shell.extension-redo', {
745
+ label: 'Redo the extension edit',
746
+ actsOn: 'Re-applies the change you just undid',
747
+ group: 'In the header',
748
+ persistence: 'working',
749
+ interaction: 'instant',
750
+ risk: [],
751
+ guidance: 'on-demand',
752
+ });
753
+
754
+ def('shell.extension-reset', {
755
+ label: 'Reset the extension edits',
756
+ actsOn: 'Asks whether to drop every out-of-band change',
757
+ group: 'In the header',
758
+ persistence: 'none',
759
+ interaction: 'dialog',
760
+ risk: [],
761
+ guidance: 'on-demand',
762
+ });
763
+
764
+ def('shell.extension-reset-confirm', {
765
+ label: 'Drop the extension edits',
766
+ actsOn: 'Throws away every change made outside FloLess',
767
+ group: 'In the header',
768
+ persistence: 'working',
769
+ interaction: 'instant',
770
+ risk: ['destructive'],
771
+ guidance: 'on-demand',
772
+ why: 'There is no undo for this one — it is the undo.',
773
+ });
774
+
775
+ /* ── shared dialog chrome ───────────────────────────────────────────────────
776
+ One template each, keyed by the dialog. See the section header above for
777
+ why Cancel and Close are shared and the confirms are not. */
778
+
779
+ def('shell.dialog-cancel', {
780
+ label: 'Cancel',
781
+ actsOn: 'Leaves {instance} without applying anything',
782
+ group: 'In the FloLess dialogs',
783
+ key: 'Also: Esc',
784
+ persistence: 'none',
785
+ interaction: 'instant',
786
+ risk: [],
787
+ guidance: 'on-demand',
788
+ });
789
+
790
+ def('shell.dialog-close', {
791
+ label: 'Close',
792
+ actsOn: 'Closes {instance}',
793
+ group: 'In the FloLess dialogs',
794
+ key: 'Also: Esc',
795
+ persistence: 'none',
796
+ interaction: 'instant',
797
+ risk: [],
798
+ guidance: 'on-demand',
799
+ });
800
+
801
+ /* ── updates ────────────────────────────────────────────────────────────── */
802
+
803
+ def('shell.aware-update-apply', {
804
+ label: 'Install the AWARE update',
805
+ actsOn: 'Upgrades the AWARE runtime now',
806
+ group: 'In the FloLess dialogs',
807
+ persistence: 'external',
808
+ interaction: 'instant',
809
+ risk: ['costs-time'],
810
+ guidance: 'on-demand',
811
+ });
812
+
813
+ def('shell.aware-update-retry', {
814
+ label: 'Retry the AWARE update',
815
+ actsOn: 'Tries the upgrade again after a failure',
816
+ group: 'In the FloLess dialogs',
817
+ persistence: 'external',
818
+ interaction: 'instant',
819
+ risk: ['costs-time'],
820
+ guidance: 'on-demand',
821
+ });
822
+
823
+ /* ── the contract editor ────────────────────────────────────────────────── */
824
+
825
+ def('shell.editor-close', {
826
+ label: 'Close the editor',
827
+ actsOn: 'Goes back — your edits are already saved',
828
+ group: 'In the contract editor',
829
+ key: 'Also: Esc',
830
+ persistence: 'none',
831
+ interaction: 'instant',
832
+ risk: [],
833
+ guidance: 'on-demand',
834
+ });
835
+
836
+ def('shell.editor-approve', {
837
+ label: 'Approve',
838
+ actsOn: 'Locks in this version of the model so it can be Run',
839
+ group: 'In the contract editor',
840
+ persistence: 'approved',
841
+ interaction: 'instant',
842
+ risk: ['costs-time'],
843
+ guidance: 'on-demand',
844
+ why: 'Run refuses to execute a model that changed after the last approval. This is what clears that.',
845
+ });
846
+
847
+ /* ── the report viewer ──────────────────────────────────────────────────── */
848
+
849
+ def('shell.report-stop', {
850
+ label: 'Stop the live session',
851
+ actsOn: 'Stops the report updating on each change',
852
+ group: 'In the report viewer',
853
+ persistence: 'none',
854
+ interaction: 'instant',
855
+ risk: [],
856
+ guidance: 'on-demand',
857
+ });
858
+
859
+ def('shell.report-share', {
860
+ label: 'Share the report',
861
+ actsOn: 'Publishes it as a link anyone can view',
862
+ group: 'In the report viewer',
863
+ persistence: 'external',
864
+ interaction: 'instant',
865
+ risk: [],
866
+ guidance: 'on-demand',
867
+ why: 'Hosted on floless.io. Anyone with the link can read it, so treat it as public.',
868
+ });
869
+
870
+ def('shell.report-open-file', {
871
+ label: 'Open the saved file',
872
+ actsOn: 'Opens it in its default application',
873
+ group: 'In the report viewer',
874
+ persistence: 'external',
875
+ interaction: 'instant',
876
+ risk: [],
877
+ guidance: 'on-demand',
878
+ });
879
+
880
+ def('shell.report-reveal-file', {
881
+ label: 'Show the file in its folder',
882
+ actsOn: 'Opens the folder holding the saved file',
883
+ group: 'In the report viewer',
884
+ persistence: 'external',
885
+ interaction: 'instant',
886
+ risk: [],
887
+ guidance: 'on-demand',
888
+ });
889
+
890
+ def('shell.report-open', {
891
+ label: 'Open in a browser tab',
892
+ actsOn: 'Opens the report in a new tab',
893
+ group: 'In the report viewer',
894
+ persistence: 'none',
895
+ interaction: 'instant',
896
+ risk: [],
897
+ guidance: 'on-demand',
898
+ });
899
+
900
+ /* ── save / discard / review confirmations ──────────────────────────────── */
901
+
902
+ def('shell.form-submit', {
903
+ label: 'OK',
904
+ actsOn: 'Applies what you filled in',
905
+ group: 'In the FloLess dialogs',
906
+ persistence: 'working',
907
+ interaction: 'instant',
908
+ risk: [],
909
+ guidance: 'on-demand',
910
+ });
911
+
912
+ def('shell.revision-confirm', {
913
+ label: 'Accept the revision',
914
+ actsOn: 'Takes the revised drawing set into the project',
915
+ group: 'In the FloLess dialogs',
916
+ persistence: 'working',
917
+ interaction: 'instant',
918
+ risk: [],
919
+ guidance: 'on-demand',
920
+ });
921
+
922
+ def('shell.approval-confirm', {
923
+ label: 'Approve the changes',
924
+ actsOn: 'Signs off every change you have just reviewed',
925
+ group: 'In the FloLess dialogs',
926
+ persistence: 'approved',
927
+ interaction: 'instant',
928
+ risk: ['costs-time'],
929
+ guidance: 'on-demand',
930
+ why: 'Stays disabled until you have been through the list — approving is a signature, not a dismissal.',
931
+ });
932
+
933
+ def('shell.save-changes', {
934
+ label: 'Save',
935
+ actsOn: 'Writes your unsaved changes',
936
+ group: 'In the FloLess dialogs',
937
+ persistence: 'working',
938
+ interaction: 'instant',
939
+ risk: [],
940
+ guidance: 'on-demand',
941
+ });
942
+
943
+ def('shell.discard-changes', {
944
+ label: 'Don’t save',
945
+ actsOn: 'Leaves without writing your changes',
946
+ group: 'In the FloLess dialogs',
947
+ persistence: 'working',
948
+ interaction: 'instant',
949
+ risk: ['destructive'],
950
+ guidance: 'on-demand',
951
+ why: 'The edits since the last save are gone — this is the one button in the prompt that loses work.',
952
+ });
953
+
954
+ /* ── favourites ─────────────────────────────────────────────────────────── */
955
+
956
+ def('shell.favourite-name', {
957
+ label: 'Favourite name',
958
+ actsOn: 'Names the workflow you are saving',
959
+ group: 'In the FloLess dialogs',
960
+ persistence: 'working',
961
+ interaction: 'instant',
962
+ risk: [],
963
+ guidance: 'on-demand',
964
+ });
965
+
966
+ def('shell.favourite-category', {
967
+ label: 'Favourite category',
968
+ actsOn: 'Files the favourite under a heading',
969
+ group: 'In the FloLess dialogs',
970
+ persistence: 'working',
971
+ interaction: 'instant',
972
+ risk: [],
973
+ guidance: 'on-demand',
974
+ });
975
+
976
+ def('shell.favourite-save', {
977
+ label: 'Save the favourite',
978
+ actsOn: 'Saves it for quick access later',
979
+ group: 'In the FloLess dialogs',
980
+ persistence: 'working',
981
+ interaction: 'instant',
982
+ risk: [],
983
+ guidance: 'on-demand',
984
+ });
985
+
986
+ /* ── the agent library ──────────────────────────────────────────────────── */
987
+
988
+ def('shell.library-tab', {
989
+ label: 'Agent library tab',
990
+ actsOn: 'Lists the {instance} agents',
991
+ group: 'In the agent library',
992
+ persistence: 'local',
993
+ interaction: 'instant',
994
+ risk: [],
995
+ guidance: 'on-demand',
996
+ });
997
+
998
+ def('shell.library-search', {
999
+ label: 'Search agents',
1000
+ actsOn: 'Narrows the {instance} list',
1001
+ group: 'In the agent library',
1002
+ persistence: 'none',
1003
+ interaction: 'instant',
1004
+ risk: [],
1005
+ guidance: 'on-demand',
1006
+ });
1007
+
1008
+ /* ── the requests list ──────────────────────────────────────────────────── */
1009
+
1010
+ def('shell.request-scope', {
1011
+ label: 'Request scope',
1012
+ actsOn: 'Lists the requests from {instance}',
1013
+ group: 'In the requests list',
1014
+ persistence: 'local',
1015
+ interaction: 'instant',
1016
+ risk: [],
1017
+ guidance: 'on-demand',
1018
+ });
1019
+
1020
+ def('shell.request-search', {
1021
+ label: 'Search requests',
1022
+ actsOn: 'Narrows the list by project, workflow or wording',
1023
+ group: 'In the requests list',
1024
+ persistence: 'none',
1025
+ interaction: 'instant',
1026
+ risk: [],
1027
+ guidance: 'on-demand',
1028
+ });
1029
+
1030
+ def('shell.request-clear', {
1031
+ label: 'Clear the requests',
1032
+ actsOn: 'Empties the list',
1033
+ group: 'In the requests list',
1034
+ persistence: 'local',
1035
+ interaction: 'instant',
1036
+ risk: ['destructive'],
1037
+ guidance: 'on-demand',
1038
+ why: 'The record of what you asked for is gone — the work it produced is not.',
1039
+ });
1040
+
1041
+ def('shell.request-copy', {
1042
+ label: 'Copy the requests',
1043
+ actsOn: 'Puts the list on your clipboard',
1044
+ group: 'In the requests list',
1045
+ persistence: 'none',
1046
+ interaction: 'instant',
1047
+ risk: [],
1048
+ guidance: 'on-demand',
1049
+ });
1050
+
1051
+ def('shell.request-help-copy', {
1052
+ label: 'Copy the request',
1053
+ actsOn: 'Puts this request on your clipboard',
1054
+ group: 'In the requests list',
1055
+ persistence: 'none',
1056
+ interaction: 'instant',
1057
+ risk: [],
1058
+ guidance: 'on-demand',
1059
+ });
1060
+
1061
+ def('shell.request-help-keep', {
1062
+ label: 'Keep the request',
1063
+ actsOn: 'Leaves it in the list for later',
1064
+ group: 'In the requests list',
1065
+ persistence: 'local',
1066
+ interaction: 'instant',
1067
+ risk: [],
1068
+ guidance: 'on-demand',
1069
+ });
1070
+
1071
+ def('shell.request-help-open', {
1072
+ label: 'Open the request',
1073
+ actsOn: 'Shows the request in full',
1074
+ group: 'In the requests list',
1075
+ persistence: 'none',
1076
+ interaction: 'instant',
1077
+ risk: [],
1078
+ guidance: 'on-demand',
1079
+ });
1080
+
1081
+ def('shell.request-help-run', {
1082
+ label: 'Run the request',
1083
+ actsOn: 'Hands the request to your terminal AI',
1084
+ group: 'In the requests list',
1085
+ persistence: 'external',
1086
+ interaction: 'instant',
1087
+ risk: ['costs-time'],
1088
+ guidance: 'on-demand',
1089
+ why: 'Opens your AI terminal in the project folder and pastes the request in.',
1090
+ });
1091
+
1092
+ def('shell.request-help-options', {
1093
+ label: 'Choose folder and terminal AI',
1094
+ actsOn: 'Picks where the request runs, and which AI runs it',
1095
+ group: 'In the requests list',
1096
+ persistence: 'local',
1097
+ interaction: 'instant',
1098
+ risk: [],
1099
+ guidance: 'on-demand',
1100
+ });
1101
+
1102
+ /* ── the guide ──────────────────────────────────────────────────────────── */
1103
+
1104
+ def('shell.guide-dismiss', {
1105
+ label: 'Got it',
1106
+ actsOn: 'Closes the guide',
1107
+ group: 'In the guide',
1108
+ persistence: 'local',
1109
+ interaction: 'instant',
1110
+ risk: [],
1111
+ guidance: 'on-demand',
1112
+ });
1113
+
1114
+ def('shell.guide-walk', {
1115
+ label: 'Show me',
1116
+ actsOn: 'Walks you through this workflow step by step',
1117
+ group: 'In the guide',
1118
+ persistence: 'none',
1119
+ interaction: 'instant',
1120
+ risk: [],
1121
+ guidance: 'on-demand',
1122
+ });
1123
+
1124
+ /* ── routines ───────────────────────────────────────────────────────────── */
1125
+
1126
+ def('shell.routine-add', {
1127
+ label: 'New routine',
1128
+ actsOn: 'Starts a routine that runs a workflow on its own',
1129
+ group: 'In the Routines dialog',
1130
+ persistence: 'working',
1131
+ interaction: 'dialog',
1132
+ risk: [],
1133
+ guidance: 'on-demand',
1134
+ });
1135
+
1136
+ def('shell.routine-name', {
1137
+ label: 'Routine name',
1138
+ actsOn: 'Names the routine',
1139
+ group: 'In the Routines dialog',
1140
+ persistence: 'working',
1141
+ interaction: 'instant',
1142
+ risk: [],
1143
+ guidance: 'on-demand',
1144
+ });
1145
+
1146
+ def('shell.routine-workflow', {
1147
+ label: 'Routine workflow',
1148
+ actsOn: 'Chooses which workflow the routine runs',
1149
+ group: 'In the Routines dialog',
1150
+ persistence: 'working',
1151
+ interaction: 'instant',
1152
+ risk: [],
1153
+ guidance: 'on-demand',
1154
+ });
1155
+
1156
+ def('shell.routine-mode', {
1157
+ label: 'Routine mode',
1158
+ actsOn: 'Runs the routine on {instance}',
1159
+ group: 'In the Routines dialog',
1160
+ persistence: 'working',
1161
+ interaction: 'instant',
1162
+ risk: [],
1163
+ guidance: 'on-demand',
1164
+ why: 'A schedule runs at a time you set; a trigger runs when something happens, such as a file appearing.',
1165
+ });
1166
+
1167
+ def('shell.routine-schedule-kind', {
1168
+ label: 'Schedule kind',
1169
+ actsOn: 'Chooses how often the routine runs',
1170
+ group: 'In the Routines dialog',
1171
+ persistence: 'working',
1172
+ interaction: 'instant',
1173
+ risk: [],
1174
+ guidance: 'on-demand',
1175
+ });
1176
+
1177
+ def('shell.routine-interval', {
1178
+ label: 'Routine interval',
1179
+ actsOn: 'Runs the routine every so many {instance}',
1180
+ group: 'In the Routines dialog',
1181
+ persistence: 'working',
1182
+ interaction: 'instant',
1183
+ risk: [],
1184
+ guidance: 'on-demand',
1185
+ });
1186
+
1187
+ def('shell.routine-time', {
1188
+ label: 'Routine time',
1189
+ actsOn: 'Sets the {instance} the routine runs at',
1190
+ group: 'In the Routines dialog',
1191
+ persistence: 'working',
1192
+ interaction: 'instant',
1193
+ risk: [],
1194
+ guidance: 'on-demand',
1195
+ });
1196
+
1197
+ def('shell.routine-cron', {
1198
+ label: 'Cron expression',
1199
+ actsOn: 'Sets the schedule in cron notation',
1200
+ group: 'In the Routines dialog',
1201
+ persistence: 'working',
1202
+ interaction: 'instant',
1203
+ risk: [],
1204
+ guidance: 'on-demand',
1205
+ why: 'For a schedule the presets cannot express — 0 4 * * 1 is 4am every Monday.',
1206
+ });
1207
+
1208
+ def('shell.routine-enabled', {
1209
+ label: 'Routine enabled',
1210
+ actsOn: 'Turns the routine on or off',
1211
+ group: 'In the Routines dialog',
1212
+ persistence: 'working',
1213
+ interaction: 'instant',
1214
+ risk: [],
1215
+ guidance: 'on-demand',
1216
+ why: 'Off keeps the routine and its schedule, and simply stops it running.',
1217
+ });
1218
+
1219
+ def('shell.routine-save', {
1220
+ label: 'Save the routine',
1221
+ actsOn: 'Writes the routine and arms its schedule',
1222
+ group: 'In the Routines dialog',
1223
+ persistence: 'working',
1224
+ interaction: 'instant',
1225
+ risk: [],
1226
+ guidance: 'on-demand',
1227
+ });
1228
+
1229
+ def('shell.routine-delete', {
1230
+ label: 'Delete the routine',
1231
+ actsOn: 'Removes the routine for good',
1232
+ group: 'In the Routines dialog',
1233
+ persistence: 'working',
1234
+ interaction: 'instant',
1235
+ risk: ['destructive'],
1236
+ guidance: 'on-demand',
1237
+ });
1238
+
1239
+ /* ── reporting an issue ─────────────────────────────────────────────────── */
1240
+
1241
+ def('shell.issue-category', {
1242
+ label: 'Issue category',
1243
+ actsOn: 'Files this report as {instance}',
1244
+ group: 'In the Report an issue dialog',
1245
+ persistence: 'none',
1246
+ interaction: 'instant',
1247
+ risk: [],
1248
+ guidance: 'on-demand',
1249
+ });
1250
+
1251
+ def('shell.issue-title', {
1252
+ label: 'Issue title',
1253
+ actsOn: 'Summarises the issue in a few words',
1254
+ group: 'In the Report an issue dialog',
1255
+ persistence: 'none',
1256
+ interaction: 'instant',
1257
+ risk: [],
1258
+ guidance: 'on-demand',
1259
+ });
1260
+
1261
+ def('shell.issue-description', {
1262
+ label: 'Issue description',
1263
+ actsOn: 'Describes what happened and what you expected',
1264
+ group: 'In the Report an issue dialog',
1265
+ persistence: 'none',
1266
+ interaction: 'instant',
1267
+ risk: [],
1268
+ guidance: 'on-demand',
1269
+ why: 'Steps to reproduce are what turn a report into a fix.',
1270
+ });
1271
+
1272
+ def('shell.issue-send', {
1273
+ label: 'Send the report',
1274
+ actsOn: 'Sends it to the FloLess team',
1275
+ group: 'In the Report an issue dialog',
1276
+ persistence: 'external',
1277
+ interaction: 'instant',
1278
+ risk: [],
1279
+ guidance: 'on-demand',
1280
+ why: 'Goes to a private tracker, with your app version attached. Stays off until there is a title and a description.',
1281
+ });
1282
+
1283
+ /* ── building an agent ──────────────────────────────────────────────────── */
1284
+
1285
+ def('shell.graft-back', {
1286
+ label: 'Back',
1287
+ actsOn: 'Returns to the previous step',
1288
+ group: 'In the Build an agent dialog',
1289
+ persistence: 'none',
1290
+ interaction: 'instant',
1291
+ risk: [],
1292
+ guidance: 'on-demand',
1293
+ });
1294
+
1295
+ def('shell.graft-next', {
1296
+ label: 'Continue',
1297
+ actsOn: 'Moves on to the next step of building the agent',
1298
+ group: 'In the Build an agent dialog',
1299
+ persistence: 'none',
1300
+ interaction: 'instant',
1301
+ risk: [],
1302
+ guidance: 'on-demand',
1303
+ });
1304
+
1305
+ /* ── baking ─────────────────────────────────────────────────────────────── */
1306
+
1307
+ def('shell.bake-confirm', {
1308
+ label: 'Bake',
1309
+ actsOn: 'Freezes this workflow into a runnable app',
1310
+ group: 'In the Bake dialog',
1311
+ persistence: 'approved',
1312
+ interaction: 'instant',
1313
+ risk: ['costs-time'],
1314
+ guidance: 'on-demand',
1315
+ });
1316
+ })();