@burdenoff/microfe-stewards 2026.1201.2 → 2026.1201.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/dist/dev/fixturesEditors.d.ts +4 -0
  2. package/dist/dev/liveDeskMocks.d.ts +2 -0
  3. package/dist/dev/shellGateway.d.ts +9 -0
  4. package/dist/dev/shellPermissions.d.ts +9 -0
  5. package/dist/generated/global-types.d.ts +398 -7
  6. package/dist/generated/wspace-operations.d.ts +1440 -4
  7. package/dist/generated/wspace-operations.js +550 -51
  8. package/dist/generated/wspace-operations.js.map +1 -1
  9. package/dist/generated/wspace-types.d.ts +1789 -15
  10. package/dist/generated/wspace-types.js +15 -5
  11. package/dist/generated/wspace-types.js.map +1 -1
  12. package/dist/stewards/StewardsRoutes.d.ts +2 -2
  13. package/dist/stewards/StewardsRoutes.js +41 -26
  14. package/dist/stewards/StewardsRoutes.js.map +1 -1
  15. package/dist/stewards/components/ControlBanner.d.ts +7 -0
  16. package/dist/stewards/components/ControlBanner.js +21 -0
  17. package/dist/stewards/components/ControlBanner.js.map +1 -0
  18. package/dist/stewards/components/DutyEditor.d.ts +8 -0
  19. package/dist/stewards/components/DutyEditor.js +151 -0
  20. package/dist/stewards/components/DutyEditor.js.map +1 -0
  21. package/dist/stewards/components/FormField.d.ts +8 -0
  22. package/dist/stewards/components/FormField.js +23 -0
  23. package/dist/stewards/components/FormField.js.map +1 -0
  24. package/dist/stewards/components/LiveDeskPanel.d.ts +17 -0
  25. package/dist/stewards/components/LiveDeskPanel.js +120 -0
  26. package/dist/stewards/components/LiveDeskPanel.js.map +1 -0
  27. package/dist/stewards/components/MemoryDiffView.d.ts +6 -0
  28. package/dist/stewards/components/MemoryDiffView.js +81 -0
  29. package/dist/stewards/components/MemoryDiffView.js.map +1 -0
  30. package/dist/stewards/components/ProposalsQueue.d.ts +5 -0
  31. package/dist/stewards/components/ProposalsQueue.js +106 -0
  32. package/dist/stewards/components/ProposalsQueue.js.map +1 -0
  33. package/dist/stewards/components/TeachRecorder.d.ts +12 -0
  34. package/dist/stewards/components/TeachRecorder.js +288 -0
  35. package/dist/stewards/components/TeachRecorder.js.map +1 -0
  36. package/dist/stewards/i18n/en.d.ts +276 -6
  37. package/dist/stewards/i18n/en.js +54 -3
  38. package/dist/stewards/i18n/en.js.map +1 -1
  39. package/dist/stewards/i18n/enEditors.d.ts +230 -0
  40. package/dist/stewards/i18n/enEditors.js +233 -0
  41. package/dist/stewards/i18n/enEditors.js.map +1 -0
  42. package/dist/stewards/index.js +4 -4
  43. package/dist/stewards/live/DeskCanvas.d.ts +20 -0
  44. package/dist/stewards/live/DeskCanvas.js +95 -0
  45. package/dist/stewards/live/DeskCanvas.js.map +1 -0
  46. package/dist/stewards/live/DeskStreamConnection.d.ts +123 -0
  47. package/dist/stewards/live/DeskStreamConnection.js +239 -0
  48. package/dist/stewards/live/DeskStreamConnection.js.map +1 -0
  49. package/dist/stewards/live/backoff.d.ts +2 -0
  50. package/dist/stewards/live/backoff.js +8 -0
  51. package/dist/stewards/live/backoff.js.map +1 -0
  52. package/dist/stewards/live/browserConnection.d.ts +20 -0
  53. package/dist/stewards/live/browserConnection.js +40 -0
  54. package/dist/stewards/live/browserConnection.js.map +1 -0
  55. package/dist/stewards/live/describeStream.d.ts +15 -0
  56. package/dist/stewards/live/describeStream.js +78 -0
  57. package/dist/stewards/live/describeStream.js.map +1 -0
  58. package/dist/stewards/live/mintPass.d.ts +9 -0
  59. package/dist/stewards/live/mintPass.js +59 -0
  60. package/dist/stewards/live/mintPass.js.map +1 -0
  61. package/dist/stewards/live/protocol.d.ts +81 -0
  62. package/dist/stewards/live/protocol.js +88 -0
  63. package/dist/stewards/live/protocol.js.map +1 -0
  64. package/dist/stewards/live/useDeskStream.d.ts +17 -0
  65. package/dist/stewards/live/useDeskStream.js +25 -0
  66. package/dist/stewards/live/useDeskStream.js.map +1 -0
  67. package/dist/stewards/pages/StewardDutiesPage.d.ts +1 -0
  68. package/dist/stewards/pages/StewardDutiesPage.js +221 -0
  69. package/dist/stewards/pages/StewardDutiesPage.js.map +1 -0
  70. package/dist/stewards/pages/StewardLayout.js +62 -45
  71. package/dist/stewards/pages/StewardLayout.js.map +1 -1
  72. package/dist/stewards/pages/StewardMemoryPage.d.ts +1 -0
  73. package/dist/stewards/pages/StewardMemoryPage.js +294 -0
  74. package/dist/stewards/pages/StewardMemoryPage.js.map +1 -0
  75. package/dist/stewards/pages/StewardPlaybooksPage.d.ts +1 -0
  76. package/dist/stewards/pages/StewardPlaybooksPage.js +360 -0
  77. package/dist/stewards/pages/StewardPlaybooksPage.js.map +1 -0
  78. package/dist/stewards/pages/StewardRunPage.js +26 -20
  79. package/dist/stewards/pages/StewardRunPage.js.map +1 -1
  80. package/dist/stewards/utils/dutyForm.d.ts +37 -0
  81. package/dist/stewards/utils/dutyForm.js +84 -0
  82. package/dist/stewards/utils/dutyForm.js.map +1 -0
  83. package/dist/stewards/utils/memory.d.ts +21 -0
  84. package/dist/stewards/utils/memory.js +29 -0
  85. package/dist/stewards/utils/memory.js.map +1 -0
  86. package/dist/stewards/utils/playbookForm.d.ts +41 -0
  87. package/dist/stewards/utils/playbookForm.js +67 -0
  88. package/dist/stewards/utils/playbookForm.js.map +1 -0
  89. package/dist/stewards/utils/recorder.d.ts +31 -0
  90. package/dist/stewards/utils/recorder.js +106 -0
  91. package/dist/stewards/utils/recorder.js.map +1 -0
  92. package/package.json +1 -1
@@ -0,0 +1,230 @@
1
+ /** English strings of the duty, memory and playbook editors (BOFF-16146 C4). */
2
+ export declare const enEditors: {
3
+ duties: {
4
+ title: string;
5
+ hint: string;
6
+ new: string;
7
+ edit: string;
8
+ empty: string;
9
+ colName: string;
10
+ colTrigger: string;
11
+ colNext: string;
12
+ colLast: string;
13
+ colStatus: string;
14
+ kind: {
15
+ SCHEDULE: string;
16
+ WATCH: string;
17
+ WEBHOOK: string;
18
+ APP_EVENT: string;
19
+ PLATFORM_EVENT: string;
20
+ CHANNEL_MESSAGE: string;
21
+ PROACTIVE: string;
22
+ };
23
+ status: {
24
+ ACTIVE: string;
25
+ PAUSED: string;
26
+ ARCHIVED: string;
27
+ };
28
+ pause: string;
29
+ resume: string;
30
+ archive: string;
31
+ token: string;
32
+ tokenTitle: string;
33
+ tokenHint: string;
34
+ tokenClose: string;
35
+ hasToken: string;
36
+ dryRun: string;
37
+ formNew: string;
38
+ formEdit: string;
39
+ fieldName: string;
40
+ fieldKind: string;
41
+ fieldPrompt: string;
42
+ fieldPromptHelp: string;
43
+ fieldPlaybook: string;
44
+ fieldNoPlaybook: string;
45
+ fieldCron: string;
46
+ fieldCronHelp: string;
47
+ fieldTimezone: string;
48
+ fieldUrl: string;
49
+ fieldUrlHelp: string;
50
+ fieldEventType: string;
51
+ fieldEventTypeHelp: string;
52
+ fieldDryRun: string;
53
+ save: string;
54
+ saving: string;
55
+ cancel: string;
56
+ saveError: string;
57
+ actionError: string;
58
+ lastError: string;
59
+ errors: {
60
+ name: string;
61
+ nameLength: string;
62
+ promptOrPlaybook: string;
63
+ promptLength: string;
64
+ cron: string;
65
+ url: string;
66
+ eventTypeLength: string;
67
+ };
68
+ };
69
+ proposals: {
70
+ title: string;
71
+ hint: string;
72
+ empty: string;
73
+ reason: string;
74
+ noReason: string;
75
+ release: string;
76
+ releaseDry: string;
77
+ dismiss: string;
78
+ error: string;
79
+ from: string;
80
+ };
81
+ memory: {
82
+ title: string;
83
+ hint: string;
84
+ new: string;
85
+ empty: string;
86
+ scopeSteward: string;
87
+ scopeWorkspace: string;
88
+ pick: string;
89
+ fieldKey: string;
90
+ fieldKeyHelp: string;
91
+ fieldBody: string;
92
+ revision: string;
93
+ save: string;
94
+ create: string;
95
+ saving: string;
96
+ delete: string;
97
+ confirmDelete: string;
98
+ confirmYes: string;
99
+ history: string;
100
+ historyEmpty: string;
101
+ compare: string;
102
+ restore: string;
103
+ restoreHint: string;
104
+ diffTitle: string;
105
+ diffSummary: string;
106
+ diffNone: string;
107
+ diffGap: string;
108
+ conflict: string;
109
+ reload: string;
110
+ saveError: string;
111
+ source: {
112
+ CONFIRMED_OUTCOME: string;
113
+ IMPORT: string;
114
+ OWNER_EDIT: string;
115
+ OWNER_MESSAGE: string;
116
+ UNDO: string;
117
+ };
118
+ errors: {
119
+ key: string;
120
+ body: string;
121
+ bodyLength: string;
122
+ };
123
+ };
124
+ playbooks: {
125
+ title: string;
126
+ hint: string;
127
+ new: string;
128
+ teach: string;
129
+ empty: string;
130
+ pick: string;
131
+ colVersion: string;
132
+ scopeWorkspace: string;
133
+ scopeSteward: string;
134
+ status: {
135
+ DRAFT: string;
136
+ ACTIVE: string;
137
+ ARCHIVED: string;
138
+ };
139
+ activate: string;
140
+ archive: string;
141
+ fieldName: string;
142
+ fieldSkill: string;
143
+ fieldWhen: string;
144
+ fieldReturns: string;
145
+ fieldFailure: string;
146
+ fieldChecks: string;
147
+ fieldBoundaries: string;
148
+ fieldTools: string;
149
+ fieldToolsHelp: string;
150
+ inputsTitle: string;
151
+ inputName: string;
152
+ inputDescription: string;
153
+ inputRequired: string;
154
+ addInput: string;
155
+ removeInput: string;
156
+ keepSteps: string;
157
+ savedSteps: string;
158
+ maskedNote: string;
159
+ save: string;
160
+ create: string;
161
+ saving: string;
162
+ versions: string;
163
+ authoredBy: {
164
+ PERSON: string;
165
+ TEACH_MODE: string;
166
+ IMPORT: string;
167
+ };
168
+ versionRow: string;
169
+ conflict: string;
170
+ saveError: string;
171
+ errors: {
172
+ name: string;
173
+ nameLength: string;
174
+ skillMd: string;
175
+ skillMdLength: string;
176
+ inputName: string;
177
+ };
178
+ };
179
+ teach: {
180
+ title: string;
181
+ hint: string;
182
+ source: string;
183
+ target: string;
184
+ targetNew: string;
185
+ targetVersion: string;
186
+ name: string;
187
+ addStep: string;
188
+ steps: string;
189
+ empty: string;
190
+ moveUp: string;
191
+ moveDown: string;
192
+ remove: string;
193
+ intent: string;
194
+ url: string;
195
+ role: string;
196
+ elementName: string;
197
+ text: string;
198
+ secret: string;
199
+ secretRef: string;
200
+ secretHelp: string;
201
+ keys: string;
202
+ dx: string;
203
+ dy: string;
204
+ app: string;
205
+ save: string;
206
+ saving: string;
207
+ cancel: string;
208
+ saved: string;
209
+ open: string;
210
+ saveError: string;
211
+ limit: string;
212
+ errors: {
213
+ url: string;
214
+ element: string;
215
+ text: string;
216
+ secretRef: string;
217
+ keys: string;
218
+ scroll: string;
219
+ app: string;
220
+ };
221
+ type: {
222
+ navigate: string;
223
+ click: string;
224
+ type: string;
225
+ key: string;
226
+ scroll: string;
227
+ focus_window: string;
228
+ };
229
+ };
230
+ };
@@ -0,0 +1,233 @@
1
+ // src/stewards/i18n/enEditors.ts
2
+ var e = {
3
+ duties: {
4
+ title: "Duties",
5
+ hint: "What this steward does on a schedule, when something happens, or when a page changes.",
6
+ new: "New duty",
7
+ edit: "Edit",
8
+ empty: "No duties yet. Add one so the steward works without being asked.",
9
+ colName: "Duty",
10
+ colTrigger: "Trigger",
11
+ colNext: "Next fire",
12
+ colLast: "Last run",
13
+ colStatus: "Status",
14
+ kind: {
15
+ SCHEDULE: "Schedule",
16
+ WATCH: "Watch a page",
17
+ WEBHOOK: "Webhook",
18
+ APP_EVENT: "App event",
19
+ PLATFORM_EVENT: "Platform event",
20
+ CHANNEL_MESSAGE: "Channel message",
21
+ PROACTIVE: "Proactive"
22
+ },
23
+ status: {
24
+ ACTIVE: "Active",
25
+ PAUSED: "Paused",
26
+ ARCHIVED: "Archived"
27
+ },
28
+ pause: "Pause",
29
+ resume: "Resume",
30
+ archive: "Archive",
31
+ token: "New token",
32
+ tokenTitle: "Duty token",
33
+ tokenHint: "Shown once. Store it now; a new token replaces this one at once.",
34
+ tokenClose: "Done",
35
+ hasToken: "Has token",
36
+ dryRun: "Dry run",
37
+ formNew: "New duty",
38
+ formEdit: "Edit duty",
39
+ fieldName: "Name",
40
+ fieldKind: "Trigger",
41
+ fieldPrompt: "What to do",
42
+ fieldPromptHelp: "Optional when a playbook says what to do.",
43
+ fieldPlaybook: "Playbook",
44
+ fieldNoPlaybook: "No playbook",
45
+ fieldCron: "Schedule (cron)",
46
+ fieldCronHelp: "Five fields: minute hour day month weekday, for example 0 9 * * 1-5.",
47
+ fieldTimezone: "Time zone",
48
+ fieldUrl: "Page to watch",
49
+ fieldUrlHelp: "A public https address. The duty fires when the page changes.",
50
+ fieldEventType: "Event type filter",
51
+ fieldEventTypeHelp: "Optional. Leave empty to react to every event of this kind.",
52
+ fieldDryRun: "Dry run: record what the steward would do without doing it",
53
+ save: "Save duty",
54
+ saving: "Saving…",
55
+ cancel: "Cancel",
56
+ saveError: "Could not save the duty.",
57
+ actionError: "The change did not go through.",
58
+ lastError: "Last problem",
59
+ errors: {
60
+ name: "Give the duty a name.",
61
+ nameLength: "The name is at most 255 characters.",
62
+ promptOrPlaybook: "Say what to do, or pick a playbook.",
63
+ promptLength: "The instructions are at most 20,000 characters.",
64
+ cron: "Use a five-field cron expression.",
65
+ url: "Enter a public https address.",
66
+ eventTypeLength: "The filter is at most 128 characters."
67
+ }
68
+ },
69
+ proposals: {
70
+ title: "Proposed runs",
71
+ hint: "Runs the steward suggests. Nothing starts until you release it.",
72
+ empty: "No proposed runs waiting.",
73
+ reason: "Why",
74
+ noReason: "No reason given.",
75
+ release: "Release",
76
+ releaseDry: "Release as dry run",
77
+ dismiss: "Dismiss",
78
+ error: "Could not update the proposal.",
79
+ from: "From duty"
80
+ },
81
+ memory: {
82
+ title: "Memory",
83
+ hint: "Notes the steward reads on every run. Every save keeps a version.",
84
+ new: "New document",
85
+ empty: "No memory documents yet.",
86
+ scopeSteward: "This steward",
87
+ scopeWorkspace: "Whole workspace",
88
+ pick: "Pick a document to edit it.",
89
+ fieldKey: "Key",
90
+ fieldKeyHelp: "Lowercase letters, digits, dot, dash or underscore; at most 128.",
91
+ fieldBody: "Document (Markdown)",
92
+ revision: "Revision {revision}",
93
+ save: "Save changes",
94
+ create: "Create document",
95
+ saving: "Saving…",
96
+ delete: "Delete",
97
+ confirmDelete: "Delete this document and all its versions?",
98
+ confirmYes: "Yes, delete",
99
+ history: "Versions",
100
+ historyEmpty: "No earlier versions.",
101
+ compare: "Compare with current",
102
+ restore: "Restore",
103
+ restoreHint: "Restoring saves the old text as a new version.",
104
+ diffTitle: "Revision {from} to {to}",
105
+ diffSummary: "{added} added, {removed} removed",
106
+ diffNone: "No differences.",
107
+ diffGap: "{hidden} unchanged lines",
108
+ conflict: "Someone saved a newer revision. Reload to see it, then apply your change again.",
109
+ reload: "Reload",
110
+ saveError: "Could not save the document.",
111
+ source: {
112
+ CONFIRMED_OUTCOME: "Confirmed outcome",
113
+ IMPORT: "Import",
114
+ OWNER_EDIT: "Owner edit",
115
+ OWNER_MESSAGE: "Owner message",
116
+ UNDO: "Undo"
117
+ },
118
+ errors: {
119
+ key: "Use 1 to 128 of a-z, 0-9, dot, dash, underscore, starting with a letter or digit.",
120
+ body: "The document cannot be empty.",
121
+ bodyLength: "The document is at most 50,000 characters."
122
+ }
123
+ },
124
+ playbooks: {
125
+ title: "Playbooks",
126
+ hint: "Reusable procedures a steward follows. Each save is a new version.",
127
+ new: "New playbook",
128
+ teach: "Teach by demonstration",
129
+ empty: "No playbooks yet.",
130
+ pick: "Pick a playbook to edit it.",
131
+ colVersion: "Version",
132
+ scopeWorkspace: "Workspace",
133
+ scopeSteward: "This steward",
134
+ status: {
135
+ DRAFT: "Draft",
136
+ ACTIVE: "Active",
137
+ ARCHIVED: "Archived"
138
+ },
139
+ activate: "Activate",
140
+ archive: "Archive",
141
+ fieldName: "Name",
142
+ fieldSkill: "Instructions (SKILL.md)",
143
+ fieldWhen: "When to use",
144
+ fieldReturns: "What it returns",
145
+ fieldFailure: "If it fails",
146
+ fieldChecks: "Checks (one per line)",
147
+ fieldBoundaries: "Always needs a person (one per line)",
148
+ fieldTools: "Tools it may use (one per line)",
149
+ fieldToolsHelp: "A run gets only the tools its charter also allows. None means no tools.",
150
+ inputsTitle: "Inputs",
151
+ inputName: "Name",
152
+ inputDescription: "Description",
153
+ inputRequired: "Required",
154
+ addInput: "Add input",
155
+ removeInput: "Remove",
156
+ keepSteps: "Keep the saved steps from teach mode",
157
+ savedSteps: "{count} saved steps",
158
+ maskedNote: "Typed values were masked at capture; those steps fall back to the model.",
159
+ save: "Save new version",
160
+ create: "Create playbook",
161
+ saving: "Saving…",
162
+ versions: "Versions",
163
+ authoredBy: {
164
+ PERSON: "Person",
165
+ TEACH_MODE: "Teach mode",
166
+ IMPORT: "Import"
167
+ },
168
+ versionRow: "Version {version} · {author} · {when}",
169
+ conflict: "A newer version exists. Reload it, then apply your change again.",
170
+ saveError: "Could not save the playbook.",
171
+ errors: {
172
+ name: "Give the playbook a name.",
173
+ nameLength: "The name is at most 255 characters.",
174
+ skillMd: "Write the instructions.",
175
+ skillMdLength: "The instructions are at most 50,000 characters.",
176
+ inputName: "Every input needs a name."
177
+ }
178
+ },
179
+ teach: {
180
+ title: "Teach mode",
181
+ hint: "Show the steward a job once. Each step becomes a saved step that replays without the model. Passwords, one-time codes and reset links are masked before anything is stored.",
182
+ source: "Steps are listed by hand here. Capturing them live from a desk needs the desk stream, which is not wired into this screen yet.",
183
+ target: "Save as",
184
+ targetNew: "A new draft playbook",
185
+ targetVersion: "A new version of {name}",
186
+ name: "Playbook name",
187
+ addStep: "Add step",
188
+ steps: "Steps",
189
+ empty: "No steps yet. Add the first one.",
190
+ moveUp: "Move up",
191
+ moveDown: "Move down",
192
+ remove: "Remove",
193
+ intent: "Why (optional)",
194
+ url: "Address",
195
+ role: "Element role",
196
+ elementName: "Element label",
197
+ text: "Text to type",
198
+ secret: "This is a secret (password, code)",
199
+ secretRef: "Secret name",
200
+ secretHelp: "Only the name is saved. The value is injected at run time and never recorded.",
201
+ keys: "Keys, joined with +",
202
+ dx: "Scroll across",
203
+ dy: "Scroll down",
204
+ app: "App or window",
205
+ save: "Save recording",
206
+ saving: "Saving…",
207
+ cancel: "Cancel",
208
+ saved: "Saved {count} steps; {masked} masked.",
209
+ open: "Open playbook",
210
+ saveError: "Could not save the recording.",
211
+ limit: "A recording holds at most {max} steps.",
212
+ errors: {
213
+ url: "Enter an http or https address.",
214
+ element: "Give the element a role and a label.",
215
+ text: "Enter the text, or mark it as a secret.",
216
+ secretRef: "Name the secret.",
217
+ keys: "Enter 1 to 10 keys, for example Control+L.",
218
+ scroll: "Scroll distances must be numbers.",
219
+ app: "Name the app or window."
220
+ },
221
+ type: {
222
+ navigate: "Open address",
223
+ click: "Click",
224
+ type: "Type",
225
+ key: "Press keys",
226
+ scroll: "Scroll",
227
+ focus_window: "Switch window"
228
+ }
229
+ }
230
+ };
231
+ export { e as enEditors };
232
+
233
+ //# sourceMappingURL=enEditors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enEditors.js","names":["enEditors"],"sources":["../../../src/stewards/i18n/enEditors.ts"],"sourcesContent":["/** English strings of the duty, memory and playbook editors (BOFF-16146 C4). */\nexport const enEditors = {\n duties: {\n title: 'Duties',\n hint: 'What this steward does on a schedule, when something happens, or when a page changes.',\n new: 'New duty',\n edit: 'Edit',\n empty: 'No duties yet. Add one so the steward works without being asked.',\n colName: 'Duty',\n colTrigger: 'Trigger',\n colNext: 'Next fire',\n colLast: 'Last run',\n colStatus: 'Status',\n kind: {\n SCHEDULE: 'Schedule',\n WATCH: 'Watch a page',\n WEBHOOK: 'Webhook',\n APP_EVENT: 'App event',\n PLATFORM_EVENT: 'Platform event',\n CHANNEL_MESSAGE: 'Channel message',\n PROACTIVE: 'Proactive',\n },\n status: { ACTIVE: 'Active', PAUSED: 'Paused', ARCHIVED: 'Archived' },\n pause: 'Pause',\n resume: 'Resume',\n archive: 'Archive',\n token: 'New token',\n tokenTitle: 'Duty token',\n tokenHint: 'Shown once. Store it now; a new token replaces this one at once.',\n tokenClose: 'Done',\n hasToken: 'Has token',\n dryRun: 'Dry run',\n formNew: 'New duty',\n formEdit: 'Edit duty',\n fieldName: 'Name',\n fieldKind: 'Trigger',\n fieldPrompt: 'What to do',\n fieldPromptHelp: 'Optional when a playbook says what to do.',\n fieldPlaybook: 'Playbook',\n fieldNoPlaybook: 'No playbook',\n fieldCron: 'Schedule (cron)',\n fieldCronHelp: 'Five fields: minute hour day month weekday, for example 0 9 * * 1-5.',\n fieldTimezone: 'Time zone',\n fieldUrl: 'Page to watch',\n fieldUrlHelp: 'A public https address. The duty fires when the page changes.',\n fieldEventType: 'Event type filter',\n fieldEventTypeHelp: 'Optional. Leave empty to react to every event of this kind.',\n fieldDryRun: 'Dry run: record what the steward would do without doing it',\n save: 'Save duty',\n saving: 'Saving…',\n cancel: 'Cancel',\n saveError: 'Could not save the duty.',\n actionError: 'The change did not go through.',\n lastError: 'Last problem',\n errors: {\n name: 'Give the duty a name.',\n nameLength: 'The name is at most 255 characters.',\n promptOrPlaybook: 'Say what to do, or pick a playbook.',\n promptLength: 'The instructions are at most 20,000 characters.',\n cron: 'Use a five-field cron expression.',\n url: 'Enter a public https address.',\n eventTypeLength: 'The filter is at most 128 characters.',\n },\n },\n proposals: {\n title: 'Proposed runs',\n hint: 'Runs the steward suggests. Nothing starts until you release it.',\n empty: 'No proposed runs waiting.',\n reason: 'Why',\n noReason: 'No reason given.',\n release: 'Release',\n releaseDry: 'Release as dry run',\n dismiss: 'Dismiss',\n error: 'Could not update the proposal.',\n from: 'From duty',\n },\n memory: {\n title: 'Memory',\n hint: 'Notes the steward reads on every run. Every save keeps a version.',\n new: 'New document',\n empty: 'No memory documents yet.',\n scopeSteward: 'This steward',\n scopeWorkspace: 'Whole workspace',\n pick: 'Pick a document to edit it.',\n fieldKey: 'Key',\n fieldKeyHelp: 'Lowercase letters, digits, dot, dash or underscore; at most 128.',\n fieldBody: 'Document (Markdown)',\n revision: 'Revision {revision}',\n save: 'Save changes',\n create: 'Create document',\n saving: 'Saving…',\n delete: 'Delete',\n confirmDelete: 'Delete this document and all its versions?',\n confirmYes: 'Yes, delete',\n history: 'Versions',\n historyEmpty: 'No earlier versions.',\n compare: 'Compare with current',\n restore: 'Restore',\n restoreHint: 'Restoring saves the old text as a new version.',\n diffTitle: 'Revision {from} to {to}',\n diffSummary: '{added} added, {removed} removed',\n diffNone: 'No differences.',\n diffGap: '{hidden} unchanged lines',\n conflict: 'Someone saved a newer revision. Reload to see it, then apply your change again.',\n reload: 'Reload',\n saveError: 'Could not save the document.',\n source: {\n CONFIRMED_OUTCOME: 'Confirmed outcome',\n IMPORT: 'Import',\n OWNER_EDIT: 'Owner edit',\n OWNER_MESSAGE: 'Owner message',\n UNDO: 'Undo',\n },\n errors: {\n key: 'Use 1 to 128 of a-z, 0-9, dot, dash, underscore, starting with a letter or digit.',\n body: 'The document cannot be empty.',\n bodyLength: 'The document is at most 50,000 characters.',\n },\n },\n playbooks: {\n title: 'Playbooks',\n hint: 'Reusable procedures a steward follows. Each save is a new version.',\n new: 'New playbook',\n teach: 'Teach by demonstration',\n empty: 'No playbooks yet.',\n pick: 'Pick a playbook to edit it.',\n colVersion: 'Version',\n scopeWorkspace: 'Workspace',\n scopeSteward: 'This steward',\n status: { DRAFT: 'Draft', ACTIVE: 'Active', ARCHIVED: 'Archived' },\n activate: 'Activate',\n archive: 'Archive',\n fieldName: 'Name',\n fieldSkill: 'Instructions (SKILL.md)',\n fieldWhen: 'When to use',\n fieldReturns: 'What it returns',\n fieldFailure: 'If it fails',\n fieldChecks: 'Checks (one per line)',\n fieldBoundaries: 'Always needs a person (one per line)',\n fieldTools: 'Tools it may use (one per line)',\n fieldToolsHelp: 'A run gets only the tools its charter also allows. None means no tools.',\n inputsTitle: 'Inputs',\n inputName: 'Name',\n inputDescription: 'Description',\n inputRequired: 'Required',\n addInput: 'Add input',\n removeInput: 'Remove',\n keepSteps: 'Keep the saved steps from teach mode',\n savedSteps: '{count} saved steps',\n maskedNote: 'Typed values were masked at capture; those steps fall back to the model.',\n save: 'Save new version',\n create: 'Create playbook',\n saving: 'Saving…',\n versions: 'Versions',\n authoredBy: { PERSON: 'Person', TEACH_MODE: 'Teach mode', IMPORT: 'Import' },\n versionRow: 'Version {version} · {author} · {when}',\n conflict: 'A newer version exists. Reload it, then apply your change again.',\n saveError: 'Could not save the playbook.',\n errors: {\n name: 'Give the playbook a name.',\n nameLength: 'The name is at most 255 characters.',\n skillMd: 'Write the instructions.',\n skillMdLength: 'The instructions are at most 50,000 characters.',\n inputName: 'Every input needs a name.',\n },\n },\n teach: {\n title: 'Teach mode',\n hint: 'Show the steward a job once. Each step becomes a saved step that replays without the model. Passwords, one-time codes and reset links are masked before anything is stored.',\n source:\n 'Steps are listed by hand here. Capturing them live from a desk needs the desk stream, which is not wired into this screen yet.',\n target: 'Save as',\n targetNew: 'A new draft playbook',\n targetVersion: 'A new version of {name}',\n name: 'Playbook name',\n addStep: 'Add step',\n steps: 'Steps',\n empty: 'No steps yet. Add the first one.',\n moveUp: 'Move up',\n moveDown: 'Move down',\n remove: 'Remove',\n intent: 'Why (optional)',\n url: 'Address',\n role: 'Element role',\n elementName: 'Element label',\n text: 'Text to type',\n secret: 'This is a secret (password, code)',\n secretRef: 'Secret name',\n secretHelp: 'Only the name is saved. The value is injected at run time and never recorded.',\n keys: 'Keys, joined with +',\n dx: 'Scroll across',\n dy: 'Scroll down',\n app: 'App or window',\n save: 'Save recording',\n saving: 'Saving…',\n cancel: 'Cancel',\n saved: 'Saved {count} steps; {masked} masked.',\n open: 'Open playbook',\n saveError: 'Could not save the recording.',\n limit: 'A recording holds at most {max} steps.',\n errors: {\n url: 'Enter an http or https address.',\n element: 'Give the element a role and a label.',\n text: 'Enter the text, or mark it as a secret.',\n secretRef: 'Name the secret.',\n keys: 'Enter 1 to 10 keys, for example Control+L.',\n scroll: 'Scroll distances must be numbers.',\n app: 'Name the app or window.',\n },\n type: {\n navigate: 'Open address',\n click: 'Click',\n type: 'Type',\n key: 'Press keys',\n scroll: 'Scroll',\n focus_window: 'Switch window',\n },\n },\n};\n"],"mappings":";AACA,IAAaA,IAAY;CACvB,QAAQ;EACN,OAAO;EACP,MAAM;EACN,KAAK;EACL,MAAM;EACN,OAAO;EACP,SAAS;EACT,YAAY;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/en.js";
2
- import { STEWARD_PERMISSIONS as t } from "./permissions/stewardPermissions.js";
3
- import { STEWARDS_FLAG as n, StewardsRoot as r } from "./StewardsRoot.js";
4
- export { n as STEWARDS_FLAG, t as STEWARD_PERMISSIONS, r as StewardsRoot, e as enTranslations };
1
+ import { STEWARDS_FLAG as e, StewardsRoot as t } from "./StewardsRoot.js";
2
+ import { STEWARD_PERMISSIONS as n } from "./permissions/stewardPermissions.js";
3
+ import { enTranslations as r } from "./i18n/en.js";
4
+ export { e as STEWARDS_FLAG, n as STEWARD_PERMISSIONS, t as StewardsRoot, r as enTranslations };
@@ -0,0 +1,20 @@
1
+ import { FrameSink } from './useDeskStream';
2
+ interface DeskCanvasProps {
3
+ /** Receives a function that paints one desk frame; called with null on unmount. */
4
+ registerSink: (sink: FrameSink | null) => void;
5
+ /** Control mode: forward the person's pointer and keys to the desk. */
6
+ interactive: boolean;
7
+ send: (frame: string) => boolean;
8
+ label: string;
9
+ hint: string;
10
+ }
11
+ /**
12
+ * Paints the desk's screen frames and, in control mode, turns pointer and key events into input.
13
+ *
14
+ * Keystrokes can be a password or a one-time code. They go straight from the event to `send`:
15
+ * no state, no ref, no log, no copy. Tab is not forwarded, so the keyboard can always leave the
16
+ * desk. Frames are decoded newest-first and older ones are skipped, so a slow device never falls
17
+ * behind.
18
+ */
19
+ export declare function DeskCanvas({ registerSink, interactive, send, label, hint }: DeskCanvasProps): import('react').JSX.Element;
20
+ export {};
@@ -0,0 +1,95 @@
1
+ import { encodeInput as e, normalisePoint as t, sniffImageMime as n } from "./protocol.js";
2
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
+ import { useEffect as a, useRef as o } from "react";
4
+ // src/stewards/live/DeskCanvas.tsx
5
+ var s = 50;
6
+ function c({ registerSink: c, interactive: l, send: u, label: d, hint: f }) {
7
+ let p = o(null), m = o(0);
8
+ a(() => {
9
+ let e = !1, t = null, r = !1, i = async (e) => {
10
+ let t = n(new Uint8Array(e, 0, Math.min(16, e.byteLength))), i = p.current;
11
+ if (!t || !i || e.byteLength > 16777216) return;
12
+ let a;
13
+ try {
14
+ a = await createImageBitmap(new Blob([e], { type: t }));
15
+ } catch {
16
+ return;
17
+ }
18
+ r || ((i.width !== a.width || i.height !== a.height) && (i.width = a.width, i.height = a.height), i.getContext("2d")?.drawImage(a, 0, 0)), a.close();
19
+ }, a = async () => {
20
+ if (!e) {
21
+ for (e = !0; t && !r;) {
22
+ let e = t;
23
+ t = null, await i(e);
24
+ }
25
+ e = !1;
26
+ }
27
+ };
28
+ return c((e) => {
29
+ t = e, a();
30
+ }), () => {
31
+ r = !0, t = null, c(null);
32
+ };
33
+ }, [c]), a(() => {
34
+ let n = p.current;
35
+ if (!n || !l) return;
36
+ let r = (r) => {
37
+ r.preventDefault();
38
+ let i = t(n.getBoundingClientRect(), r.clientX, r.clientY);
39
+ u(e({
40
+ type: "wheel",
41
+ ...i,
42
+ dx: r.deltaX,
43
+ dy: r.deltaY
44
+ }));
45
+ };
46
+ return n.addEventListener("wheel", r, { passive: !1 }), () => n.removeEventListener("wheel", r);
47
+ }, [l, u]);
48
+ let h = (n, r) => {
49
+ if (!l) return;
50
+ let i = {
51
+ type: "pointer",
52
+ action: n,
53
+ ...t(r.currentTarget.getBoundingClientRect(), r.clientX, r.clientY),
54
+ button: r.button
55
+ };
56
+ u(e(i));
57
+ }, g = (t, n) => {
58
+ l && n.key !== "Tab" && (n.preventDefault(), u(e({
59
+ type: "key",
60
+ action: t,
61
+ key: n.key,
62
+ code: n.code
63
+ })));
64
+ };
65
+ return /* @__PURE__ */ i("div", {
66
+ className: "flex flex-col gap-1",
67
+ children: [/* @__PURE__ */ r("canvas", {
68
+ ref: p,
69
+ tabIndex: l ? 0 : -1,
70
+ role: "img",
71
+ "aria-label": d,
72
+ "data-testid": "desk-canvas",
73
+ className: `block h-auto w-full rounded-md border border-(color:--color-border-seam) bg-(--color-bg-sunken) focus-visible:outline-2 focus-visible:outline-(color:--color-focus-ring) ${l ? "cursor-crosshair" : ""}`,
74
+ onPointerDown: (e) => {
75
+ e.currentTarget.focus(), h("down", e);
76
+ },
77
+ onPointerUp: (e) => h("up", e),
78
+ onPointerMove: (e) => {
79
+ let t = performance.now();
80
+ t - m.current < s || (m.current = t, h("move", e));
81
+ },
82
+ onKeyDown: (e) => g("down", e),
83
+ onKeyUp: (e) => g("up", e),
84
+ onContextMenu: (e) => {
85
+ l && e.preventDefault();
86
+ }
87
+ }), l && /* @__PURE__ */ r("p", {
88
+ className: "text-xs text-(color:--color-text-secondary)",
89
+ children: f
90
+ })]
91
+ });
92
+ }
93
+ export { c as DeskCanvas };
94
+
95
+ //# sourceMappingURL=DeskCanvas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DeskCanvas.js","names":["MOVE_INTERVAL_MS","DeskCanvas","canvasRef","useRef","lastMoveAt","useEffect","decoding","latest","disposed","paint","mime","sniffImageMime","buffer","canvas","bitmap","drain","next","registerSink","frame","interactive","onWheel","point","normalisePoint","event","encodeInput","send","pointer","input","key","label","now","hint"],"sources":["../../../src/stewards/live/DeskCanvas.tsx"],"sourcesContent":["import { useEffect, useRef } from 'react';\nimport {\n encodeInput,\n MAX_FRAME_BYTES,\n normalisePoint,\n sniffImageMime,\n type DeskInput,\n} from './protocol';\nimport type { FrameSink } from './useDeskStream';\n\n/** Most pointer-move messages per second; a click or key is never throttled. */\nconst MOVE_INTERVAL_MS = 50;\n\ninterface DeskCanvasProps {\n /** Receives a function that paints one desk frame; called with null on unmount. */\n registerSink: (sink: FrameSink | null) => void;\n /** Control mode: forward the person's pointer and keys to the desk. */\n interactive: boolean;\n send: (frame: string) => boolean;\n label: string;\n hint: string;\n}\n\n/**\n * Paints the desk's screen frames and, in control mode, turns pointer and key events into input.\n *\n * Keystrokes can be a password or a one-time code. They go straight from the event to `send`:\n * no state, no ref, no log, no copy. Tab is not forwarded, so the keyboard can always leave the\n * desk. Frames are decoded newest-first and older ones are skipped, so a slow device never falls\n * behind.\n */\nexport function DeskCanvas({ registerSink, interactive, send, label, hint }: DeskCanvasProps) {\n const canvasRef = useRef<HTMLCanvasElement>(null);\n const lastMoveAt = useRef(0);\n\n useEffect(() => {\n let decoding = false;\n let latest: ArrayBuffer | null = null;\n let disposed = false;\n\n const paint = async (buffer: ArrayBuffer): Promise<void> => {\n const mime = sniffImageMime(new Uint8Array(buffer, 0, Math.min(16, buffer.byteLength)));\n const canvas = canvasRef.current;\n if (!mime || !canvas || buffer.byteLength > MAX_FRAME_BYTES) return;\n let bitmap: ImageBitmap;\n try {\n bitmap = await createImageBitmap(new Blob([buffer], { type: mime }));\n } catch {\n return; // A frame that does not decode is skipped; the next one repaints.\n }\n if (disposed) {\n bitmap.close();\n return;\n }\n if (canvas.width !== bitmap.width || canvas.height !== bitmap.height) {\n canvas.width = bitmap.width;\n canvas.height = bitmap.height;\n }\n canvas.getContext('2d')?.drawImage(bitmap, 0, 0);\n bitmap.close();\n };\n\n const drain = async (): Promise<void> => {\n if (decoding) return;\n decoding = true;\n while (latest && !disposed) {\n const next = latest;\n latest = null;\n await paint(next);\n }\n decoding = false;\n };\n\n registerSink((frame) => {\n latest = frame;\n void drain();\n });\n return () => {\n disposed = true;\n latest = null;\n registerSink(null);\n };\n }, [registerSink]);\n\n // Wheel needs a non-passive listener to stop the page scrolling while the desk scrolls.\n useEffect(() => {\n const canvas = canvasRef.current;\n if (!canvas || !interactive) return;\n const onWheel = (event: WheelEvent) => {\n event.preventDefault();\n const point = normalisePoint(canvas.getBoundingClientRect(), event.clientX, event.clientY);\n send(encodeInput({ type: 'wheel', ...point, dx: event.deltaX, dy: event.deltaY }));\n };\n canvas.addEventListener('wheel', onWheel, { passive: false });\n return () => canvas.removeEventListener('wheel', onWheel);\n }, [interactive, send]);\n\n const pointer = (\n action: 'move' | 'down' | 'up',\n event: React.PointerEvent<HTMLCanvasElement>\n ) => {\n if (!interactive) return;\n const point = normalisePoint(\n event.currentTarget.getBoundingClientRect(),\n event.clientX,\n event.clientY\n );\n const input: DeskInput = { type: 'pointer', action, ...point, button: event.button };\n send(encodeInput(input));\n };\n\n const key = (action: 'down' | 'up', event: React.KeyboardEvent<HTMLCanvasElement>) => {\n if (!interactive || event.key === 'Tab') return;\n event.preventDefault();\n send(encodeInput({ type: 'key', action, key: event.key, code: event.code }));\n };\n\n return (\n <div className=\"flex flex-col gap-1\">\n <canvas\n ref={canvasRef}\n tabIndex={interactive ? 0 : -1}\n role=\"img\"\n aria-label={label}\n data-testid=\"desk-canvas\"\n className={`block h-auto w-full rounded-md border border-(color:--color-border-seam) bg-(--color-bg-sunken) focus-visible:outline-2 focus-visible:outline-(color:--color-focus-ring) ${interactive ? 'cursor-crosshair' : ''}`}\n onPointerDown={(e) => {\n e.currentTarget.focus();\n pointer('down', e);\n }}\n onPointerUp={(e) => pointer('up', e)}\n onPointerMove={(e) => {\n const now = performance.now();\n if (now - lastMoveAt.current < MOVE_INTERVAL_MS) return;\n lastMoveAt.current = now;\n pointer('move', e);\n }}\n onKeyDown={(e) => key('down', e)}\n onKeyUp={(e) => key('up', e)}\n onContextMenu={(e) => {\n if (interactive) e.preventDefault();\n }}\n />\n {interactive && <p className=\"text-xs text-(color:--color-text-secondary)\">{hint}</p>}\n </div>\n );\n}\n"],"mappings":";;;;AAWA,IAAMA,IAAmB;AAoBzB,SAAgBC,EAAW,EAAE,iBAAc,gBAAa,SAAM,UAAO,WAAyB;CAC5F,IAAMC,IAAYC,EAA0B,IAAI,GAC1CC,IAAaD,EAAO,CAAC;CAoD3B,AAlDAE,QAAgB;EACd,IAAIC,IAAW,IACXC,IAA6B,MAC7BC,IAAW,IAETC,IAAQ,OAAO,MAAuC;GAC1D,IAAMC,IAAOC,EAAe,IAAI,WAAWC,GAAQ,GAAG,KAAK,IAAI,IAAIA,EAAO,UAAU,CAAC,CAAC,GAChFC,IAASX,EAAU;GACzB,IAAI,CAACQ,KAAQ,CAACG,KAAUD,EAAO,aAAA,UAA8B;GAC7D,IAAIE;GACJ,IAAI;IACF,IAAS,MAAM,kBAAkB,IA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