@floless/app 0.153.0 → 0.154.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.
- package/dist/floless-server.cjs +4925 -2888
- package/dist/schemas/revit.model.v1.schema.json +5 -0
- package/dist/skills/floless-app-new-workflow/SKILL.md +8 -2
- package/dist/skills/floless-app-onboarding/SKILL.md +8 -5
- package/dist/skills/floless-app-onboarding/references/floless-surfaces.md +8 -3
- package/dist/skills/floless-app-queue/SKILL.md +23 -4
- package/dist/web/app.css +56 -1
- package/dist/web/app.js +12 -1
- package/dist/web/aware.js +422 -55
- package/dist/web/chat.css +60 -13
- package/dist/web/chat.js +585 -138
- package/dist/web/commands-shell.js +154 -14
- package/dist/web/guide.js +213 -13
- package/dist/web/index.html +8 -3
- package/dist/web/left-pane.js +3 -3
- package/dist/web/revit-editor.js +1 -0
- package/dist/web/tekla-structural-grid-adapter.js +7 -1
- package/dist/web/tool-updates.js +141 -33
- package/dist/web/workspaces.js +30 -4
- package/package.json +1 -1
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
|
|
208
208
|
def('menu.new-workflow', {
|
|
209
209
|
label: 'New workflow',
|
|
210
|
-
actsOn: 'Creates a workflow
|
|
210
|
+
actsOn: 'Creates a workflow where you choose, then starts building it with the AI in that workflow’s own chat (or, if you tick it, hands it to your terminal AI)',
|
|
211
211
|
group: 'In the ≡ menu',
|
|
212
212
|
persistence: 'working',
|
|
213
213
|
interaction: 'dialog',
|
|
@@ -225,6 +225,17 @@
|
|
|
225
225
|
guidance: 'on-demand',
|
|
226
226
|
});
|
|
227
227
|
|
|
228
|
+
// #2185: ≡ New workflow builds in the workflow's own chat; this is the way back to the terminal.
|
|
229
|
+
def('shell.new-workflow-terminal', {
|
|
230
|
+
label: 'Build with my terminal AI instead',
|
|
231
|
+
actsOn: 'Hands the new workflow to your terminal AI instead of AI Chat: FloLess queues the request and copies a prompt for your terminal',
|
|
232
|
+
group: 'In workflow setup dialogs',
|
|
233
|
+
persistence: 'none',
|
|
234
|
+
interaction: 'instant',
|
|
235
|
+
risk: [],
|
|
236
|
+
guidance: 'on-demand',
|
|
237
|
+
});
|
|
238
|
+
|
|
228
239
|
def('shell.new-workflow-location', {
|
|
229
240
|
label: 'Workflow location',
|
|
230
241
|
actsOn: 'Places this workflow in {instance}',
|
|
@@ -974,6 +985,18 @@
|
|
|
974
985
|
why: 'When both groups are listed, their headings count what is shown out of the total while you search. The search starts empty each time you come back to the Workflows page.',
|
|
975
986
|
});
|
|
976
987
|
|
|
988
|
+
def('shell.workflows-landing-archived', {
|
|
989
|
+
label: 'Archived workflows',
|
|
990
|
+
actsOn: 'Opens or closes the list of archived workflows on the Workflows page; it starts closed, and searching opens it when an archived workflow matches',
|
|
991
|
+
group: 'On the Workflows page',
|
|
992
|
+
key: 'Enter or Space on the heading',
|
|
993
|
+
persistence: 'none',
|
|
994
|
+
interaction: 'instant',
|
|
995
|
+
risk: [],
|
|
996
|
+
guidance: 'on-demand',
|
|
997
|
+
why: 'Archived workflows are put away, not deleted. Open the list to see them and use Restore on a card to bring one back.',
|
|
998
|
+
});
|
|
999
|
+
|
|
977
1000
|
def('shell.workflows-landing-search-clear', {
|
|
978
1001
|
label: 'Clear search',
|
|
979
1002
|
actsOn: 'Empties the workflow search and shows every workflow card again',
|
|
@@ -2443,23 +2466,23 @@
|
|
|
2443
2466
|
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand',
|
|
2444
2467
|
});
|
|
2445
2468
|
def('shell.chat-approval-request', {
|
|
2446
|
-
label: 'Approve for this request', actsOn: 'Allows
|
|
2469
|
+
label: 'Approve for this request', actsOn: 'Allows the action on the approval card and every later action of exactly the same kind until the current response finishes (the card says what that covers: all access actions, file changes in this chat’s folders, scope additions, workflow creation, one connector, one connection check or the Tekla reads); keeps your permission setting and review checkpoints unchanged; a file change to a workflow’s own .lock, settings or conversations always asks',
|
|
2447
2470
|
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand',
|
|
2448
|
-
why: 'Saves approving
|
|
2471
|
+
why: 'Saves approving the same kind of action one by one during this response. It ends when the response does; nothing is saved for later.',
|
|
2449
2472
|
});
|
|
2450
2473
|
def('shell.chat-approval-session', {
|
|
2451
|
-
label: 'Approve for this conversation', actsOn: 'Allows this access action and every later access action in this conversation, not only this response, until you press Revoke (it stays on if you close the chat or restart FloLess); keeps your permission setting and review checkpoints unchanged; Tekla reads, connector calls
|
|
2474
|
+
label: 'Approve for this conversation', actsOn: 'Allows this access action and every later access action in this conversation, not only this response, until you press Revoke (it stays on if you close the chat or restart FloLess); keeps your permission setting and review checkpoints unchanged; other kinds of request (Tekla reads, connector calls, file changes, scope additions, workflow creation, connection checks) have their own Approve for this conversation on their cards',
|
|
2452
2475
|
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand',
|
|
2453
2476
|
why: 'Saves approving each access action one by one for the rest of this conversation, for example during a long drawing read. Revoke it above the message box at any time.',
|
|
2454
2477
|
});
|
|
2455
2478
|
def('shell.chat-tekla-allow-chat', {
|
|
2456
|
-
label: '
|
|
2479
|
+
label: 'Approve Tekla reads for this conversation', actsOn: 'Allows this Tekla read and every later read this chat may ask for, of the open model name or the parts you have selected, without asking again in this conversation until you revoke it',
|
|
2457
2480
|
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2458
2481
|
why: 'Saves approving each Tekla read one by one. FloLess still checks Tekla live before every read and shows every result; nothing in the model changes.',
|
|
2459
2482
|
});
|
|
2460
2483
|
// #1907: every call to the person's own connector asks first; it may be allowed per connector for the chat.
|
|
2461
2484
|
def('shell.chat-connector-allow-chat', {
|
|
2462
|
-
label: '
|
|
2485
|
+
label: 'Approve this connector for this conversation', actsOn: 'Allows {instance} to run now and whenever Chat asks in this conversation, without asking again until you revoke it',
|
|
2463
2486
|
anyInstance: 'the connector on the card',
|
|
2464
2487
|
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2465
2488
|
why: 'Saves approving each call to one of your own connectors one by one. Every run is still shown in the chat, and it covers only that connector.',
|
|
@@ -2471,10 +2494,28 @@
|
|
|
2471
2494
|
});
|
|
2472
2495
|
// #1890 PR 2b: a workspace conversation's file change asks first; it may be allowed per project/workflow for the chat.
|
|
2473
2496
|
def('shell.chat-change-allow-chat', {
|
|
2474
|
-
label: '
|
|
2497
|
+
label: 'Approve file changes for this conversation', actsOn: 'Allows this file change and later file changes inside this conversation’s scope, including folders added later, without asking again until you revoke it; commands and tools keep their own approvals',
|
|
2475
2498
|
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand',
|
|
2476
2499
|
why: 'Each file change is still shown in the chat. Your home folder keeps its current permission setting. Revoke restores approvals where that setting requires them.',
|
|
2477
2500
|
});
|
|
2501
|
+
// Epic #2185 Slice A: the other kinds of card (a scope addition, a workflow create, a connector call FloLess cannot identify,
|
|
2502
|
+
// a connection check outside the older allowance, any other request) get the same choice, kept as a fingerprint.
|
|
2503
|
+
def('shell.chat-approval-grant-chat', {
|
|
2504
|
+
label: 'Approve for this conversation (this kind of request)', actsOn: 'Allows {instance} on the approval card and every later request of exactly the same kind in this conversation, without asking again until you revoke it (the card says what that covers); a file change to a workflow’s own .lock, settings or conversations always asks',
|
|
2505
|
+
anyInstance: 'the request on the card',
|
|
2506
|
+
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand',
|
|
2507
|
+
why: 'Saves approving the same kind of request one by one. Every use is shown in the chat as approved automatically, and Revoke above the message box ends it.',
|
|
2508
|
+
});
|
|
2509
|
+
def('shell.chat-approval-grant-revoke', {
|
|
2510
|
+
label: 'Revoke what was allowed for this conversation', actsOn: 'Makes {instance} ask you again in this conversation; something already approved may finish',
|
|
2511
|
+
anyInstance: 'that kind of request',
|
|
2512
|
+
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2513
|
+
});
|
|
2514
|
+
def('shell.chat-request-grant-revoke', {
|
|
2515
|
+
label: 'Revoke what was allowed for this request', actsOn: 'Makes {instance} ask you again for the rest of this response; something already approved may finish',
|
|
2516
|
+
anyInstance: 'that kind of request',
|
|
2517
|
+
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2518
|
+
});
|
|
2478
2519
|
def('shell.chat-scope-open', {
|
|
2479
2520
|
label: 'Conversation scope', actsOn: 'Shows the pinned home folder and other projects or workflows this conversation can work on',
|
|
2480
2521
|
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
@@ -2567,7 +2608,7 @@
|
|
|
2567
2608
|
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2568
2609
|
});
|
|
2569
2610
|
def('shell.chat-connection-check-allow-chat', {
|
|
2570
|
-
label: '
|
|
2611
|
+
label: 'Approve this connection check for this conversation', actsOn: 'Allows this connection check of {instance}, and every identical later one in this conversation, without asking again until you revoke it',
|
|
2571
2612
|
anyInstance: 'the tool on the card',
|
|
2572
2613
|
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2573
2614
|
why: 'Saves approving the same read-only check one by one. It covers only this tool with this account, every check is still shown in the chat, and it ends if the account behind it changes.',
|
|
@@ -2660,13 +2701,13 @@
|
|
|
2660
2701
|
});
|
|
2661
2702
|
|
|
2662
2703
|
def('shell.requests-start-chat', {
|
|
2663
|
-
label: '
|
|
2704
|
+
label: 'Work on it', actsOn: 'Starts the AI on {instance} now, in the request’s own conversation in AI Chat',
|
|
2664
2705
|
group: 'In the requests list', persistence: 'external', interaction: 'instant', risk: ['costs-time', 'costs-money'], guidance: 'on-demand',
|
|
2665
|
-
why: 'The request and every follow-up stay together in the same scoped conversation. If FloLess has not set up the AI on this computer yet, it does that first and then starts the request.',
|
|
2706
|
+
why: 'The request and every follow-up stay together in the same scoped conversation, never in whatever chat happens to be open. If FloLess has not set up the AI on this computer yet, it does that first and then starts the request.',
|
|
2666
2707
|
});
|
|
2667
2708
|
|
|
2668
2709
|
def('shell.requests-discuss', {
|
|
2669
|
-
label: '
|
|
2710
|
+
label: 'Open the chat for this request', actsOn: 'Opens the conversation that holds {instance} in AI Chat; nothing runs',
|
|
2670
2711
|
group: 'In the requests list', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2671
2712
|
});
|
|
2672
2713
|
|
|
@@ -2729,9 +2770,69 @@
|
|
|
2729
2770
|
group: 'In the requests list', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2730
2771
|
});
|
|
2731
2772
|
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2773
|
+
// #2185: ✕ sets a request aside instead of deleting it. If the AI is working on it, FloLess asks first.
|
|
2774
|
+
def('shell.requests-dismiss', {
|
|
2775
|
+
label: 'Dismiss this request', actsOn: 'Sets {instance} aside: it leaves the list and the Requests count, is kept in Done, and can be restored. If the AI is working on it, FloLess asks whether to stop that work first',
|
|
2776
|
+
group: 'In the requests list', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2777
|
+
});
|
|
2778
|
+
def('shell.requests-dismiss-undo', {
|
|
2779
|
+
label: 'Undo the dismissal', actsOn: 'Puts the request you just dismissed back in Requests, exactly as it was',
|
|
2780
|
+
group: 'In the requests list', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2781
|
+
});
|
|
2782
|
+
def('shell.requests-dismiss-keep', {
|
|
2783
|
+
label: 'Keep it', actsOn: 'Leaves this request in Requests; nothing is stopped or dismissed',
|
|
2784
|
+
group: 'In the requests list', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2785
|
+
});
|
|
2786
|
+
def('shell.requests-dismiss-open', {
|
|
2787
|
+
label: 'Open the chat', actsOn: 'Shows the AI Chat conversation that is working on this request; nothing is stopped or dismissed',
|
|
2788
|
+
group: 'In the requests list', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2789
|
+
});
|
|
2790
|
+
def('shell.requests-dismiss-stop', {
|
|
2791
|
+
label: 'Stop it and dismiss', actsOn: 'Stops the AI working on this request, then sets the request aside; it is kept in Done and can be restored',
|
|
2792
|
+
group: 'In the requests list', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand',
|
|
2793
|
+
});
|
|
2794
|
+
def('shell.requests-restore', {
|
|
2795
|
+
label: 'Restore', actsOn: 'Puts this set-aside request back in Requests, exactly as it was, without starting anything',
|
|
2796
|
+
group: 'In the requests list', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2797
|
+
});
|
|
2798
|
+
def('shell.requests-restore-start', {
|
|
2799
|
+
label: 'Restore and start', actsOn: 'Puts this set-aside request back in Requests and starts the AI on it now, in its own conversation in AI Chat',
|
|
2800
|
+
group: 'In the requests list', persistence: 'external', interaction: 'instant', risk: ['costs-time', 'costs-money'], guidance: 'on-demand',
|
|
2801
|
+
});
|
|
2802
|
+
def('shell.requests-restore-cancel', {
|
|
2803
|
+
label: 'Cancel', actsOn: 'Closes this without restoring or starting anything',
|
|
2804
|
+
group: 'In the requests list', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2805
|
+
});
|
|
2806
|
+
def('shell.requests-done-restore', {
|
|
2807
|
+
label: 'Restore this request', actsOn: 'Puts {instance} back in Requests, exactly as it was; nothing runs',
|
|
2808
|
+
anyInstance: 'the request you pick',
|
|
2809
|
+
group: 'In the requests list', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2810
|
+
});
|
|
2811
|
+
def('shell.requests-backlog-undo', {
|
|
2812
|
+
label: 'Undo the tidy-up', actsOn: 'Puts every old request FloLess just tidied away back in Requests',
|
|
2813
|
+
group: 'In the requests list', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2814
|
+
});
|
|
2815
|
+
def('shell.requests-backlog-close', {
|
|
2816
|
+
label: 'Close the tidy-up note', actsOn: 'Closes the note about the old requests FloLess tidied away; they stay in Done',
|
|
2817
|
+
group: 'In the requests list', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2818
|
+
});
|
|
2819
|
+
|
|
2820
|
+
// #2185: the same ✕ on the request card inside AI Chat.
|
|
2821
|
+
def('shell.chat-request-dismiss', {
|
|
2822
|
+
label: 'Dismiss this request', actsOn: 'Sets the request on this card aside (kept in Requests → Done, with Undo on the card); on a finished one it only hides the card. If the AI is working on it, FloLess asks first',
|
|
2823
|
+
group: 'In AI Chat', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2824
|
+
});
|
|
2825
|
+
def('shell.chat-request-undo', {
|
|
2826
|
+
label: 'Undo the dismissal', actsOn: 'Puts the request on this card back in Requests, exactly as it was',
|
|
2827
|
+
group: 'In AI Chat', persistence: 'local', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2828
|
+
});
|
|
2829
|
+
def('shell.chat-request-keep', {
|
|
2830
|
+
label: 'Keep it', actsOn: 'Leaves the request in Requests; nothing is stopped or dismissed',
|
|
2831
|
+
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
2832
|
+
});
|
|
2833
|
+
def('shell.chat-request-stop-dismiss', {
|
|
2834
|
+
label: 'Stop it and dismiss', actsOn: 'Stops the AI working on this request, then sets the request aside; it is kept in Done and can be restored',
|
|
2835
|
+
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['destructive'], guidance: 'on-demand',
|
|
2735
2836
|
});
|
|
2736
2837
|
|
|
2737
2838
|
// #1874: a drawing read whose discard record cannot be read asks the person what to do with it.
|
|
@@ -2932,6 +3033,17 @@
|
|
|
2932
3033
|
guidance: 'on-demand',
|
|
2933
3034
|
});
|
|
2934
3035
|
|
|
3036
|
+
def('shell.tool-updates-show-workflows', {
|
|
3037
|
+
label: 'Show or hide the workflows in a group',
|
|
3038
|
+
actsOn: 'Opens or closes the list of workflows under one reason in the tool update dialog',
|
|
3039
|
+
group: 'In the FloLess dialogs',
|
|
3040
|
+
persistence: 'none',
|
|
3041
|
+
interaction: 'instant',
|
|
3042
|
+
risk: [],
|
|
3043
|
+
guidance: 'on-demand',
|
|
3044
|
+
why: 'Each reason is explained once, with the workflows it applies to listed below it. Workflows that need nothing from you start closed.',
|
|
3045
|
+
});
|
|
3046
|
+
|
|
2935
3047
|
/* ── the ≡ menu's settings ──────────────────────────────────────────────── */
|
|
2936
3048
|
|
|
2937
3049
|
def('shell.open-at-startup', {
|
|
@@ -3068,6 +3180,34 @@
|
|
|
3068
3180
|
anyInstance: 'do it',
|
|
3069
3181
|
group: 'In AI Chat', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand',
|
|
3070
3182
|
});
|
|
3183
|
+
// #2185: a workflow suggestion builds in the workflow's own conversation, once per card.
|
|
3184
|
+
def('shell.guide-move-build', {
|
|
3185
|
+
label: 'Build it: the workflow the Guide suggested', actsOn: 'Creates {instance} and starts building it with the AI in that workflow’s own chat; pressing it again opens the same workflow, never a second one',
|
|
3186
|
+
anyInstance: 'the workflow the Guide suggested',
|
|
3187
|
+
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['costs-time', 'costs-money'], guidance: 'on-demand',
|
|
3188
|
+
why: 'The Guide’s description goes with it, so the AI starts from what the Guide said instead of asking again. If FloLess has not set the AI up on this computer yet, it does that first.',
|
|
3189
|
+
});
|
|
3190
|
+
def('shell.guide-move-edit', {
|
|
3191
|
+
label: 'Edit details of the workflow the Guide suggested', actsOn: 'Opens a dialog to rename {instance} and choose where it belongs, then builds it the same way',
|
|
3192
|
+
anyInstance: 'the workflow the Guide suggested',
|
|
3193
|
+
group: 'In AI Chat', persistence: 'none', interaction: 'dialog', risk: [], guidance: 'on-demand',
|
|
3194
|
+
});
|
|
3195
|
+
def('shell.guide-move-open-workflow', {
|
|
3196
|
+
label: 'Open workflow being built from a Guide card', actsOn: 'Opens {instance} and its build conversation; if the AI never got its first message, sends it again',
|
|
3197
|
+
anyInstance: 'the workflow this card started',
|
|
3198
|
+
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['costs-time', 'costs-money'], guidance: 'on-demand',
|
|
3199
|
+
why: 'If its build conversation was deleted, the workflow opens on its own and you can write to the AI there.',
|
|
3200
|
+
});
|
|
3201
|
+
def('shell.guide-move-open-draft', {
|
|
3202
|
+
label: 'Open workflow: the draft a Guide card saved', actsOn: 'Opens {instance} on the Workflows page, without starting the AI',
|
|
3203
|
+
anyInstance: 'the draft this card saved',
|
|
3204
|
+
group: 'In AI Chat', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand',
|
|
3205
|
+
});
|
|
3206
|
+
def('shell.guide-move-retry', {
|
|
3207
|
+
label: 'Try again: start the build conversation', actsOn: 'Starts the AI chat for {instance} again, on the draft already saved',
|
|
3208
|
+
anyInstance: 'the workflow this card started',
|
|
3209
|
+
group: 'In AI Chat', persistence: 'external', interaction: 'instant', risk: ['costs-time', 'costs-money'], guidance: 'on-demand',
|
|
3210
|
+
});
|
|
3071
3211
|
def('shell.guide-move-not-now', {
|
|
3072
3212
|
label: 'Set a suggestion aside', actsOn: 'Folds the Guide’s suggestion {instance} away, and the Guide won’t suggest it again for your account; Undo or Bring back in the Guide’s settings brings it back',
|
|
3073
3213
|
anyInstance: 'on the card',
|
package/dist/web/guide.js
CHANGED
|
@@ -665,7 +665,7 @@
|
|
|
665
665
|
function moveText(move) {
|
|
666
666
|
switch (move?.kind) {
|
|
667
667
|
case 'install-tool': return { title: `Install ${move.toolName}`, action: 'Review and install…' };
|
|
668
|
-
case 'create-workflow': return { title: `
|
|
668
|
+
case 'create-workflow': return { title: `Build a workflow: ${move.name}`, action: 'Build it', detail: move.purpose };
|
|
669
669
|
case 'create-agent': return { title: `Set up an agent: ${move.name}`, action: 'Review this agent…' };
|
|
670
670
|
case 'create-routine': return { title: `Run ${move.target?.name || 'it'} on a schedule`, action: 'Set up the schedule…' };
|
|
671
671
|
case 'open': return { title: `Open ${PAGE_LABEL[move.page] || 'this page'}`, action: `Open ${PAGE_LABEL[move.page] || 'it'}` };
|
|
@@ -680,9 +680,6 @@
|
|
|
680
680
|
case 'install-tool':
|
|
681
681
|
if (typeof openLibrary !== 'function') return false;
|
|
682
682
|
openLibrary(move.toolId, { tab: 'available' }); return true; // not installed yet: where its Install button is
|
|
683
|
-
case 'create-workflow':
|
|
684
|
-
if (typeof bridge?.newWorkflow !== 'function') return false;
|
|
685
|
-
await bridge.newWorkflow({ name: move.name }); return true;
|
|
686
683
|
case 'create-agent':
|
|
687
684
|
return Boolean(await window.flolessAgents?.newDraft?.({ name: move.name, instructions: move.instructions }));
|
|
688
685
|
case 'create-routine':
|
|
@@ -704,10 +701,45 @@
|
|
|
704
701
|
// #2054: Not now is remembered by the server for the signed-in account, by what the move is about (its key), so the
|
|
705
702
|
// Guide never suggests it again — in a later answer, after a reload, or in another browser — until the person brings
|
|
706
703
|
// it back (Undo on the card, or Bring back in the Guide's settings in AI Chat).
|
|
707
|
-
// A list change repaints every card on the page
|
|
708
|
-
//
|
|
704
|
+
// A list change repaints every card on the page and every card AI Chat keeps (cardsByEvent, below): one not on the
|
|
705
|
+
// page yet (AI Chat builds a card before it inserts it), or off it while another conversation is open.
|
|
709
706
|
const cardPainters = new WeakMap();
|
|
710
|
-
|
|
707
|
+
// #2185: what came of a workflow card's button, by suggestion id, from its next-move-update events (with the event's
|
|
708
|
+
// sequence, so a replay of it is recognised).
|
|
709
|
+
const moveUpdates = new Map();
|
|
710
|
+
// #2185: one card element per suggestion, by its event id (which is its suggestion id, so an update finds it here).
|
|
711
|
+
// AI Chat draws its conversation again every few seconds; it gets the same card back, so what the card is doing (a
|
|
712
|
+
// press waiting, what it said, the keyboard focus) is never lost.
|
|
713
|
+
// ponytail: both maps keep every suggestion this page has drawn (a reload clears them). Any cap thrashes once one
|
|
714
|
+
// conversation outgrows it (each redraw evicts the card it is about to ask for), and a Guide conversation the morning
|
|
715
|
+
// briefing adds to daily outgrows any small one; cap by conversation if a page ever holds thousands.
|
|
716
|
+
const cardsByEvent = new Map();
|
|
717
|
+
// #2185: which tools are installed, so an install card can tick itself off ("✓ Trimble Connect installed") instead of
|
|
718
|
+
// offering the install again. Read when a card is first drawn and again when the server says something was installed
|
|
719
|
+
// (`floless:connections-changed`); a repaint happens only for a card whose answer changed, never per replay.
|
|
720
|
+
const installedTools = { ids: null, loading: false, again: false, failedAt: 0 };
|
|
721
|
+
const installWatchers = new Set();
|
|
722
|
+
function toolIsInstalled(toolId) { return installedTools.ids ? installedTools.ids.has(toolId) : null; }
|
|
723
|
+
async function refreshInstalledTools(force) {
|
|
724
|
+
if (installedTools.loading) { if (force) installedTools.again = true; return; }
|
|
725
|
+
// After a failed read, wait half a minute: AI Chat redraws its cards every few seconds and each would ask again.
|
|
726
|
+
if (!force && (installedTools.ids || Date.now() - installedTools.failedAt < 30_000)) return;
|
|
727
|
+
installedTools.loading = true;
|
|
728
|
+
try {
|
|
729
|
+
const body = await api('/api/agents');
|
|
730
|
+
installedTools.ids = new Set((Array.isArray(body?.agents) ? body.agents : []).map((agent) => agent?.id).filter((id) => typeof id === 'string'));
|
|
731
|
+
installedTools.failedAt = 0;
|
|
732
|
+
for (const check of installWatchers) check();
|
|
733
|
+
} catch (error) {
|
|
734
|
+
// Cards stay as drawn: the button's own re-check still says "already installed".
|
|
735
|
+
installedTools.failedAt = Date.now();
|
|
736
|
+
console.warn('[guide] could not read which tools are installed:', error);
|
|
737
|
+
} finally {
|
|
738
|
+
installedTools.loading = false;
|
|
739
|
+
if (installedTools.again) { installedTools.again = false; void refreshInstalledTools(true); }
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
window.addEventListener('floless:connections-changed', () => { if (installWatchers.size) void refreshInstalledTools(true); });
|
|
711
743
|
let statusLoad = null;
|
|
712
744
|
let statusFailedAt = 0;
|
|
713
745
|
|
|
@@ -726,8 +758,7 @@
|
|
|
726
758
|
|
|
727
759
|
function setSetAside(rows) {
|
|
728
760
|
state.setAside = Array.isArray(rows) ? rows : [];
|
|
729
|
-
for (const card of document.querySelectorAll('.guide-move-card')
|
|
730
|
-
for (const card of unplacedCards) cardPainters.get(card)?.();
|
|
761
|
+
for (const card of new Set([...document.querySelectorAll('.guide-move-card'), ...cardsByEvent.values()])) cardPainters.get(card)?.();
|
|
731
762
|
paintSetAside();
|
|
732
763
|
}
|
|
733
764
|
|
|
@@ -802,6 +833,8 @@
|
|
|
802
833
|
// A card from before #2054 has no key: it is matched to the list by its move, and the server returns its key on Not now.
|
|
803
834
|
let moveKey = typeof payload.moveKey === 'string' ? payload.moveKey : '';
|
|
804
835
|
if (!text) return null;
|
|
836
|
+
const drawn = cardsByEvent.get(event.eventId);
|
|
837
|
+
if (drawn) return drawn;
|
|
805
838
|
ensureSetAsideLoaded();
|
|
806
839
|
const card = el('section', 'ai-chat-filter-card ai-chat-connection-card guide-move-card');
|
|
807
840
|
card.dataset.eventId = event.eventId;
|
|
@@ -810,6 +843,10 @@
|
|
|
810
843
|
card.setAttribute('aria-label', `Suggestion: ${text.title}`);
|
|
811
844
|
const status = el('p', 'ai-chat-filter-note guide-move-status');
|
|
812
845
|
status.setAttribute('role', 'status');
|
|
846
|
+
// A button press in progress — { commandId, label } — on this card: every drawing keeps every button waiting for it.
|
|
847
|
+
let pending = null;
|
|
848
|
+
// #2185: an install card's last painted answer (installed or not), so only a real change repaints it.
|
|
849
|
+
let paintedInstalled = null;
|
|
813
850
|
const paintCard = () => {
|
|
814
851
|
const focusBack = card.contains(document.activeElement);
|
|
815
852
|
card.replaceChildren();
|
|
@@ -822,16 +859,38 @@
|
|
|
822
859
|
undo.dataset.commandId = 'shell.guide-move-undo';
|
|
823
860
|
undo.dataset.commandInstanceLabel = text.title;
|
|
824
861
|
undo.dataset.tip = 'Shows this suggestion again. The Guide may also bring it up later.';
|
|
862
|
+
// A press in progress on this card (its workflow building, set aside meanwhile in another tab) holds Undo too.
|
|
863
|
+
undo.disabled = Boolean(pending);
|
|
825
864
|
undo.addEventListener('click', async () => {
|
|
865
|
+
pending = { commandId: 'shell.guide-move-undo', label: 'Undo' };
|
|
826
866
|
undo.disabled = true; status.textContent = '';
|
|
827
867
|
try { await moveAside(move, false, moveKey); }
|
|
828
|
-
catch (error) {
|
|
868
|
+
catch (error) { status.textContent = error.message; }
|
|
869
|
+
finally { pending = null; paintCard(); }
|
|
829
870
|
});
|
|
830
871
|
line.append(el('span', '', `Not now: ${text.title}`), undo);
|
|
831
872
|
card.append(line, status);
|
|
832
873
|
if (focusBack) undo.focus();
|
|
833
874
|
return;
|
|
834
875
|
}
|
|
876
|
+
if (move.kind === 'create-workflow') {
|
|
877
|
+
paintWorkflowCard(focusBack);
|
|
878
|
+
return;
|
|
879
|
+
}
|
|
880
|
+
paintedInstalled = move.kind === 'install-tool' ? toolIsInstalled(move.toolId) === true : null;
|
|
881
|
+
card.setAttribute('aria-label', paintedInstalled ? `Installed: ${move.toolName}` : `Suggestion: ${text.title}`);
|
|
882
|
+
if (paintedInstalled) {
|
|
883
|
+
// Done: say what was installed and stop asking. The buttons that were here are gone, so the keyboard stays on the card.
|
|
884
|
+
const head = el('div', 'ai-chat-filter-card-head');
|
|
885
|
+
head.append(el('span', 'guide-move-eyebrow', 'Done'), el('strong', ''));
|
|
886
|
+
const tick = el('span', '', '✓ '); tick.setAttribute('aria-hidden', 'true');
|
|
887
|
+
head.lastChild.append(tick, document.createTextNode(`${move.toolName} installed`));
|
|
888
|
+
card.classList.add('is-connected');
|
|
889
|
+
card.append(head, el('p', 'ai-chat-filter-note', 'Ready to use.'), status);
|
|
890
|
+
if (focusBack) { card.tabIndex = -1; card.focus({ preventScroll: true }); }
|
|
891
|
+
return;
|
|
892
|
+
}
|
|
893
|
+
card.classList.remove('is-connected');
|
|
835
894
|
const head = el('div', 'ai-chat-filter-card-head');
|
|
836
895
|
head.append(el('span', 'guide-move-eyebrow', 'Suggested'), el('strong', '', text.title));
|
|
837
896
|
card.append(head);
|
|
@@ -877,9 +936,137 @@
|
|
|
877
936
|
card.append(actions, el('p', 'ai-chat-filter-note', 'Nothing happens until you confirm in the next step.'), status);
|
|
878
937
|
if (focusBack) go.focus();
|
|
879
938
|
};
|
|
939
|
+
/**
|
|
940
|
+
* #2185: a workflow suggestion builds in the workflow's own conversation, once per card. Offer: Build it, Edit details…,
|
|
941
|
+
* Not now. Afterwards the card says what happened — a statement, never the question again — and its buttons open
|
|
942
|
+
* that same workflow, because the server answers every repeat of this card with the build it already made.
|
|
943
|
+
*/
|
|
944
|
+
function paintWorkflowCard(focusBack) {
|
|
945
|
+
const moveId = typeof payload.moveId === 'string' ? payload.moveId : event.eventId;
|
|
946
|
+
const update = moveUpdates.get(moveId);
|
|
947
|
+
const guide = { chatId: event.chatId, moveId };
|
|
948
|
+
const workflowName = update?.workflowName || move.name;
|
|
949
|
+
const head = el('div', 'ai-chat-filter-card-head');
|
|
950
|
+
const actions = el('div', 'ai-chat-filter-actions');
|
|
951
|
+
// Every button waits for the one pressed (`pending`, applied again at the end of every drawing), so Not now cannot
|
|
952
|
+
// set aside a workflow being built, nor Build it slip in while it is being set aside.
|
|
953
|
+
const applyPending = () => {
|
|
954
|
+
for (const node of actions.querySelectorAll('button')) {
|
|
955
|
+
node.disabled = Boolean(pending);
|
|
956
|
+
if (pending && node.dataset.commandId === pending.commandId) { node.setAttribute('aria-busy', 'true'); node.textContent = pending.label; }
|
|
957
|
+
}
|
|
958
|
+
};
|
|
959
|
+
const busy = (node, label) => { pending = { commandId: node.dataset.commandId, label }; status.textContent = ''; applyPending(); };
|
|
960
|
+
const done = () => {
|
|
961
|
+
pending = null;
|
|
962
|
+
paintCard();
|
|
963
|
+
// A disabled button drops focus to the page; put it back on this card (on Try again after a repaint).
|
|
964
|
+
if (!document.activeElement || document.activeElement === document.body) card.querySelector('button:not([disabled])')?.focus();
|
|
965
|
+
};
|
|
966
|
+
const built = (result) => {
|
|
967
|
+
if (!result?.workflow) return;
|
|
968
|
+
// Keeps the sequence of the update already shown, so a replay of it (or of an older one) is still recognised.
|
|
969
|
+
moveUpdates.set(moveId, { moveId, state: 'building', workflowId: result.workflow.workflowId, workflowName: result.workflow.displayName,
|
|
970
|
+
sequence: moveUpdates.get(moveId)?.sequence });
|
|
971
|
+
paintCard();
|
|
972
|
+
};
|
|
973
|
+
// The failed card already shows why; the line under the buttons says only what that card does not.
|
|
974
|
+
const say = (error) => { if (moveUpdates.get(moveId)?.reason !== error?.message) status.textContent = error?.message || ''; };
|
|
975
|
+
const missing = () => new Error('FloLess is still starting. Try again in a moment.');
|
|
976
|
+
const build = async (node, label, busyLabel = 'Starting…', reopen = false) => {
|
|
977
|
+
busy(node, busyLabel);
|
|
978
|
+
try {
|
|
979
|
+
if (typeof window.flolessBridge?.buildWorkflow !== 'function') throw missing();
|
|
980
|
+
built(await window.flolessBridge.buildWorkflow({ buildId: moveId, payload: { source: 'guide', guideChatId: guide.chatId, moveId }, reopen }));
|
|
981
|
+
} catch (error) { say(error); }
|
|
982
|
+
finally { done(); }
|
|
983
|
+
};
|
|
984
|
+
const button = (label, commandId, tip, className = '') => {
|
|
985
|
+
const node = el('button', className, label);
|
|
986
|
+
node.type = 'button';
|
|
987
|
+
node.dataset.commandId = commandId;
|
|
988
|
+
node.dataset.commandInstanceLabel = workflowName;
|
|
989
|
+
node.dataset.tip = tip;
|
|
990
|
+
return node;
|
|
991
|
+
};
|
|
992
|
+
let first = null;
|
|
993
|
+
if (update?.state === 'building') {
|
|
994
|
+
// The card stays in the Guide for days, so it says what happened, not that the AI is still working.
|
|
995
|
+
card.setAttribute('aria-label', `Draft created: ${workflowName}`);
|
|
996
|
+
head.append(el('span', 'guide-move-eyebrow', 'Draft created'), el('strong', '', workflowName));
|
|
997
|
+
card.append(head, el('p', 'ai-chat-filter-why', 'It is built in the workflow’s own chat. You can leave and come back.'));
|
|
998
|
+
const open = button('Open workflow', 'shell.guide-move-open-workflow', 'Opens this workflow’s build conversation. If the AI never got its first message, this sends it again.', 'ai-chat-filter-apply');
|
|
999
|
+
open.addEventListener('click', () => build(open, 'Open workflow', 'Opening…', true));
|
|
1000
|
+
actions.append(open); first = open;
|
|
1001
|
+
card.append(actions, status);
|
|
1002
|
+
} else if (update?.state === 'failed') {
|
|
1003
|
+
card.setAttribute('aria-label', `Not started: ${workflowName}`);
|
|
1004
|
+
head.append(el('span', 'guide-move-eyebrow', 'Not started'), el('strong', '', `“${workflowName}” is saved as a draft, but its chat didn’t start`));
|
|
1005
|
+
card.append(head);
|
|
1006
|
+
const retry = button('Try again', 'shell.guide-move-retry', 'Starts the AI chat for this workflow again, on the draft already saved.', 'ai-chat-filter-apply');
|
|
1007
|
+
if (update.reason) {
|
|
1008
|
+
const reason = el('p', 'ai-chat-filter-why', update.reason);
|
|
1009
|
+
reason.id = `guide-move-reason-${moveId}`;
|
|
1010
|
+
retry.setAttribute('aria-describedby', reason.id);
|
|
1011
|
+
card.append(reason);
|
|
1012
|
+
}
|
|
1013
|
+
retry.addEventListener('click', () => build(retry, 'Try again'));
|
|
1014
|
+
const open = button('Open workflow', 'shell.guide-move-open-draft', 'Opens the saved draft on the Workflows page.');
|
|
1015
|
+
open.addEventListener('click', async () => {
|
|
1016
|
+
busy(open, 'Opening…');
|
|
1017
|
+
try {
|
|
1018
|
+
if (typeof window.flolessBridge?.openOwnedWorkflow !== 'function') throw missing();
|
|
1019
|
+
await window.flolessBridge.openOwnedWorkflow(update.workflowId);
|
|
1020
|
+
} catch (error) { say(error); }
|
|
1021
|
+
finally { done(); }
|
|
1022
|
+
});
|
|
1023
|
+
actions.append(retry, open); first = retry;
|
|
1024
|
+
card.append(actions, status);
|
|
1025
|
+
} else {
|
|
1026
|
+
card.setAttribute('aria-label', `Suggestion: ${text.title}`);
|
|
1027
|
+
head.append(el('span', 'guide-move-eyebrow', 'Suggested'), el('strong', '', text.title));
|
|
1028
|
+
card.append(head);
|
|
1029
|
+
if (text.detail) card.append(el('p', 'ai-chat-filter-why', text.detail));
|
|
1030
|
+
const why = typeof payload.why === 'string' ? payload.why.trim() : '';
|
|
1031
|
+
if (why) card.append(el('p', 'ai-chat-filter-why', why));
|
|
1032
|
+
const go = button('Build it', 'shell.guide-move-build', 'Creates this workflow and starts building it with the AI in its own chat. Pressing it again opens the same workflow.', 'ai-chat-filter-apply');
|
|
1033
|
+
go.addEventListener('click', () => build(go, 'Build it'));
|
|
1034
|
+
const edit = button('Edit details…', 'shell.guide-move-edit', 'Rename it and choose where it belongs before it is built.');
|
|
1035
|
+
edit.addEventListener('click', async () => {
|
|
1036
|
+
busy(edit, 'Edit details…');
|
|
1037
|
+
try {
|
|
1038
|
+
if (typeof window.flolessBridge?.newWorkflow !== 'function') throw missing();
|
|
1039
|
+
built(await window.flolessBridge.newWorkflow({ name: move.name, guide }));
|
|
1040
|
+
} catch (error) { say(error); }
|
|
1041
|
+
finally { done(); }
|
|
1042
|
+
});
|
|
1043
|
+
const later = button('Not now', 'shell.guide-move-not-now', 'Sets this suggestion aside, and the Guide won’t suggest it again. You can bring it back.');
|
|
1044
|
+
later.dataset.commandInstanceLabel = text.title;
|
|
1045
|
+
later.addEventListener('click', async () => {
|
|
1046
|
+
// Build it waits too: a workflow built while it is being set aside would be folded away with the card.
|
|
1047
|
+
busy(later, 'Not now');
|
|
1048
|
+
try {
|
|
1049
|
+
const answer = await moveAside(move, true);
|
|
1050
|
+
if (answer?.key) moveKey = answer.key;
|
|
1051
|
+
} catch (error) { status.textContent = error.message; }
|
|
1052
|
+
finally { done(); }
|
|
1053
|
+
});
|
|
1054
|
+
// Build it has no confirm step, so this note is the whole warning: Build it points a screen reader at it.
|
|
1055
|
+
const note = el('p', 'ai-chat-filter-note', 'Creates a draft workflow and opens a chat where the AI starts building it. It asks you before any run that sends data off this computer.');
|
|
1056
|
+
note.id = `guide-move-note-${moveId}`;
|
|
1057
|
+
go.setAttribute('aria-describedby', note.id);
|
|
1058
|
+
actions.append(go, edit, later); first = go;
|
|
1059
|
+
card.append(actions, note, status);
|
|
1060
|
+
}
|
|
1061
|
+
applyPending();
|
|
1062
|
+
if (focusBack && first && !pending) first.focus();
|
|
1063
|
+
}
|
|
880
1064
|
cardPainters.set(card, paintCard);
|
|
881
|
-
|
|
882
|
-
if (
|
|
1065
|
+
cardsByEvent.set(event.eventId, card);
|
|
1066
|
+
if (move.kind === 'install-tool') {
|
|
1067
|
+
installWatchers.add(() => { if (toolIsInstalled(move.toolId) === true && paintedInstalled !== true) paintCard(); });
|
|
1068
|
+
void refreshInstalledTools(false);
|
|
1069
|
+
}
|
|
883
1070
|
paintCard();
|
|
884
1071
|
return card;
|
|
885
1072
|
}
|
|
@@ -1304,7 +1491,20 @@
|
|
|
1304
1491
|
void refreshBriefing();
|
|
1305
1492
|
});
|
|
1306
1493
|
|
|
1307
|
-
|
|
1494
|
+
/** #2185: a next-move-update event: remember what came of that card's button and repaint the card if it is drawn. */
|
|
1495
|
+
function applyMoveUpdate(event) {
|
|
1496
|
+
const update = event?.payload;
|
|
1497
|
+
if (!update || typeof update.moveId !== 'string') return;
|
|
1498
|
+
// AI Chat replays the whole conversation each time it draws it: only an update newer than the one shown repaints the
|
|
1499
|
+
// card, because a repaint replaces its buttons and the keyboard focus on one.
|
|
1500
|
+
const sequence = Number(event.sequence);
|
|
1501
|
+
if (sequence <= moveUpdates.get(update.moveId)?.sequence) return;
|
|
1502
|
+
moveUpdates.set(update.moveId, { ...update, sequence });
|
|
1503
|
+
const card = cardsByEvent.get(update.moveId);
|
|
1504
|
+
if (card) cardPainters.get(card)?.();
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
window.flolessGuide = { open, maybeAskOnLaunch, turnOff, deleteHistory, renderNextMove, applyMoveUpdate, status: loadStatus, paintBriefing, refreshBriefing };
|
|
1308
1508
|
|
|
1309
1509
|
// Ask once, after AI Chat is ready and the app has settled.
|
|
1310
1510
|
// #2053: and, once settled, whether a morning briefing is ready or needs an answer.
|
package/dist/web/index.html
CHANGED
|
@@ -247,7 +247,6 @@
|
|
|
247
247
|
<button data-command-id="shell.chat-move-keep" type="button" id="chat-move-secondary" aria-describedby="chat-move-copy" hidden></button>
|
|
248
248
|
<button data-command-id="shell.chat-move-dismiss" type="button" id="chat-move-dismiss" class="ai-chat-move-dismiss" aria-label="Dismiss" data-tip="Dismiss" hidden>×</button>
|
|
249
249
|
</div>
|
|
250
|
-
<div class="ai-chat-attachments" id="chat-attachments" hidden></div>
|
|
251
250
|
<div class="ai-chat-skills" id="chat-skills" role="listbox" hidden></div>
|
|
252
251
|
<div class="ai-chat-approval-tray" id="chat-approval-tray"></div>
|
|
253
252
|
<div class="ai-chat-composer" id="chat-composer">
|
|
@@ -262,9 +261,13 @@
|
|
|
262
261
|
<div class="ai-chat-connectors" id="chat-change-allowance" role="group" aria-label="Changes allowed for this chat" hidden></div>
|
|
263
262
|
<!-- #1900: the connection checks this chat may run without asking, each with Revoke (web/chat.js). -->
|
|
264
263
|
<div class="ai-chat-connectors" id="chat-check-allowance" role="group" aria-label="Connection checks allowed for this chat" hidden></div>
|
|
264
|
+
<!-- Epic #2185 Slice A: what was allowed for the kinds of request without a box of their own (scope additions, workflow creation, unidentified connector calls, exact checks) - for this reply and for this conversation - each with Revoke (web/chat.js). -->
|
|
265
|
+
<div class="ai-chat-connectors" id="chat-grants" role="group" aria-label="Allowed for this request and this chat" hidden></div>
|
|
265
266
|
<div class="ai-chat-tekla-context" id="chat-tekla-context" hidden></div>
|
|
266
267
|
<!-- #1907: shown only while this chat uses the person's own connectors: "on · Turn off", then each allowed one with Revoke (web/chat.js). -->
|
|
267
268
|
<div class="ai-chat-connectors" id="chat-connectors" role="group" aria-label="Your connectors in this chat" hidden></div>
|
|
269
|
+
<!-- #2185: what is about to be sent sits right above the message box, below every scope and access line. -->
|
|
270
|
+
<div class="ai-chat-attachments" id="chat-attachments" hidden></div>
|
|
268
271
|
<textarea data-command-id="shell.chat-input" id="chat-input" rows="1" maxlength="131072" placeholder="Message AI…" aria-label="Message AI"></textarea>
|
|
269
272
|
<!-- The data-handling disclosure gets its OWN node in the composer, not a line in
|
|
270
273
|
#chat-compose-hint: that hint is one mutable string chosen by a priority chain,
|
|
@@ -1419,9 +1422,11 @@
|
|
|
1419
1422
|
<!-- #2060: Done lists the Requests that left the queue, so each one's conversation stays reachable. -->
|
|
1420
1423
|
<div class="tabs req-view" id="requests-view" role="tablist" aria-label="Queued or done requests">
|
|
1421
1424
|
<button data-command-id="shell.requests-view#queued" type="button" data-reqview="queued" class="active" role="tab" aria-selected="true" aria-controls="requests-list" id="requests-view-queued">Queued</button>
|
|
1422
|
-
<button data-command-id="shell.requests-view#done" type="button" data-reqview="done" role="tab" aria-selected="false" aria-controls="requests-list" id="requests-view-done" data-tip="Requests that left the queue in the last 30 days">Done</button>
|
|
1425
|
+
<button data-command-id="shell.requests-view#done" type="button" data-reqview="done" role="tab" aria-selected="false" aria-controls="requests-list" id="requests-view-done" data-tip="Requests that left the queue in the last 30 days, and the ones you set aside">Done</button>
|
|
1423
1426
|
</div>
|
|
1424
1427
|
<div class="req-guidance" id="requests-guidance" role="status" aria-live="polite" aria-atomic="true" hidden></div>
|
|
1428
|
+
<!-- #2185: the one-time tidy of old requests: how many, and Undo. Written by aware.js. -->
|
|
1429
|
+
<div class="req-backlog" id="requests-backlog" role="status" hidden></div>
|
|
1425
1430
|
<span class="sr-only" id="requests-action-status" role="status" aria-live="polite" aria-atomic="true"></span>
|
|
1426
1431
|
<!-- Scope + search. The scope row is hidden when nothing is open to scope TO (the
|
|
1427
1432
|
Workspaces landing, or Workflows with no workflow selected) — a filter with one
|
|
@@ -1433,7 +1438,7 @@
|
|
|
1433
1438
|
<input data-command-id="shell.request-search" id="requests-search" class="lib-search req-search" type="text" placeholder="Search by project, workflow, or what you asked for" aria-label="Search requests">
|
|
1434
1439
|
<div class="requests-list" id="requests-list"></div>
|
|
1435
1440
|
<div class="modal-actions">
|
|
1436
|
-
<span class="req-done-note" id="requests-done-note" hidden>
|
|
1441
|
+
<span class="req-done-note" id="requests-done-note" hidden>Finished in the last 30 days, plus everything you set aside. Nothing here runs again.</span>
|
|
1437
1442
|
<button data-command-id="shell.request-clear" id="requests-clear">Clear all</button>
|
|
1438
1443
|
<button data-command-id="shell.request-copy" id="requests-copy">Copy available</button>
|
|
1439
1444
|
<button data-command-id="shell.dialog-close#the requests list" id="requests-close" class="primary">Close</button>
|