@nanocollective/roster 0.1.0-beta.3 → 0.1.0-beta.30

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 (135) hide show
  1. package/README.md +8 -0
  2. package/dist/agents-POITEZRI.js +232 -0
  3. package/dist/chunk-FF2WBNNW.js +370 -0
  4. package/dist/chunk-GDAJPOHK.js +562 -0
  5. package/dist/cli.js +3391 -1239
  6. package/dist/compose-5DBEHSEV.js +17 -0
  7. package/dist/connectors-5E5ZMGZV.js +23 -0
  8. package/dist/worker/assets/assets/css/astryx.css +948 -0
  9. package/dist/worker/assets/assets/css/base.css +51 -110
  10. package/dist/worker/assets/assets/css/brain.css +26 -2
  11. package/dist/worker/assets/assets/css/connectors.css +58 -0
  12. package/dist/worker/assets/assets/css/graph.css +9 -12
  13. package/dist/worker/assets/assets/css/health.css +4 -7
  14. package/dist/worker/assets/assets/css/home.css +145 -60
  15. package/dist/worker/assets/assets/css/inbox.css +11 -0
  16. package/dist/worker/assets/assets/css/layout.css +18 -22
  17. package/dist/worker/assets/assets/css/markdown.css +22 -1
  18. package/dist/worker/assets/assets/css/routines.css +40 -0
  19. package/dist/worker/assets/assets/css/runs.css +5 -3
  20. package/dist/worker/assets/assets/css/search.css +3 -6
  21. package/dist/worker/assets/assets/css/setup.css +3 -15
  22. package/dist/worker/assets/assets/js/api.js +3 -0
  23. package/dist/worker/assets/assets/js/app.js +25 -1
  24. package/dist/worker/assets/assets/js/astryx-ui.js +34 -0
  25. package/dist/worker/assets/assets/js/dom.js +1 -1
  26. package/dist/worker/assets/assets/js/homesort.js +66 -20
  27. package/dist/worker/assets/assets/js/icons.js +6 -0
  28. package/dist/worker/assets/assets/js/md.js +7 -2
  29. package/dist/worker/assets/assets/js/refcard.js +216 -0
  30. package/dist/worker/assets/assets/js/refresh.js +4 -2
  31. package/dist/worker/assets/assets/js/report.js +51 -0
  32. package/dist/worker/assets/assets/js/select.js +362 -0
  33. package/dist/worker/assets/assets/js/state.js +14 -1
  34. package/dist/worker/assets/assets/js/views/connectors.js +423 -0
  35. package/dist/worker/assets/assets/js/views/graph.js +67 -28
  36. package/dist/worker/assets/assets/js/views/home.js +378 -176
  37. package/dist/worker/assets/assets/js/views/inbox.js +68 -16
  38. package/dist/worker/assets/assets/js/views/org.js +2 -0
  39. package/dist/worker/assets/assets/js/views/people.js +109 -0
  40. package/dist/worker/assets/assets/js/views/routines.js +378 -0
  41. package/dist/worker/assets/assets/js/views/runs.js +3 -1
  42. package/dist/worker/assets/docs-images/brain.jpg +0 -0
  43. package/dist/worker/assets/docs-images/home.jpg +0 -0
  44. package/dist/worker/assets/docs-images/org.jpg +0 -0
  45. package/dist/worker/assets/docs-images/prompt.jpg +0 -0
  46. package/dist/worker/assets/docs-images/setup-org.jpg +0 -0
  47. package/dist/worker/assets/docs-images/setup-plan.jpg +0 -0
  48. package/dist/worker/assets/docs-images/staff.jpg +0 -0
  49. package/dist/worker/assets/index.html +19 -3
  50. package/dist/worker/index.js +4478 -1098
  51. package/docs/README.md +2 -0
  52. package/docs/architecture.md +23 -4
  53. package/docs/commands.md +111 -9
  54. package/docs/concepts.md +2 -1
  55. package/docs/connectors.md +169 -0
  56. package/docs/cost.md +1 -1
  57. package/docs/developing.md +3 -3
  58. package/docs/doctor-codes.md +8 -2
  59. package/docs/export.md +4 -3
  60. package/docs/extending.md +1 -1
  61. package/docs/getting-started.md +20 -3
  62. package/docs/hosting.md +67 -3
  63. package/docs/images/brain.jpg +0 -0
  64. package/docs/images/home.jpg +0 -0
  65. package/docs/images/org.jpg +0 -0
  66. package/docs/images/prompt.jpg +0 -0
  67. package/docs/images/setup-org.jpg +0 -0
  68. package/docs/images/setup-plan.jpg +0 -0
  69. package/docs/images/staff.jpg +0 -0
  70. package/docs/memory.md +3 -2
  71. package/docs/org-yaml.md +58 -5
  72. package/docs/portal.md +52 -11
  73. package/docs/prompts.md +3 -2
  74. package/docs/routines.md +65 -0
  75. package/docs/security.md +37 -4
  76. package/docs/session-workflow.md +31 -8
  77. package/docs/staff-yaml.md +7 -3
  78. package/docs/troubleshooting.md +1 -1
  79. package/docs/upgrading.md +1 -1
  80. package/docs/writing-a-charter.md +1 -1
  81. package/package.json +8 -1
  82. package/templates/brain/.gitattributes +3 -0
  83. package/templates/brain/.github/workflows/%%STAFF%%-daily.yaml +24 -15
  84. package/templates/brain/.github/workflows/%%STAFF%%-mention.yaml +12 -10
  85. package/templates/brain/CHARTER.md +2 -2
  86. package/templates/brain/STATE.md +16 -0
  87. package/templates/brain/memory/INDEX.md +1 -1
  88. package/templates/brain/staff.yaml +3 -0
  89. package/templates/ops/.gitattributes +3 -0
  90. package/templates/ops/.github/workflows/session.yaml +92 -13
  91. package/templates/ops/agents.mjs +38 -11
  92. package/templates/ops/compose.mjs +60 -2
  93. package/templates/ops/connectors.mjs +722 -0
  94. package/templates/ops/org/operating.md +10 -0
  95. package/templates/ops/org/voice.md +21 -3
  96. package/templates/ops/prompts/_identity.md +20 -0
  97. package/templates/ops/prompts/daily.md +70 -19
  98. package/templates/ops/prompts/mention.md +7 -2
  99. package/templates/ops/status-week.mjs +169 -0
  100. package/templates/portal/css/astryx.css +948 -0
  101. package/templates/portal/css/base.css +51 -110
  102. package/templates/portal/css/brain.css +26 -2
  103. package/templates/portal/css/connectors.css +58 -0
  104. package/templates/portal/css/graph.css +9 -12
  105. package/templates/portal/css/health.css +4 -7
  106. package/templates/portal/css/home.css +145 -60
  107. package/templates/portal/css/inbox.css +11 -0
  108. package/templates/portal/css/layout.css +18 -22
  109. package/templates/portal/css/markdown.css +22 -1
  110. package/templates/portal/css/routines.css +40 -0
  111. package/templates/portal/css/runs.css +5 -3
  112. package/templates/portal/css/search.css +3 -6
  113. package/templates/portal/css/setup.css +3 -15
  114. package/templates/portal/index.html +19 -3
  115. package/templates/portal/js/api.js +3 -0
  116. package/templates/portal/js/app.js +25 -1
  117. package/templates/portal/js/astryx-ui.js +34 -0
  118. package/templates/portal/js/dom.js +1 -1
  119. package/templates/portal/js/homesort.js +66 -20
  120. package/templates/portal/js/icons.js +6 -0
  121. package/templates/portal/js/md.js +7 -2
  122. package/templates/portal/js/refcard.js +216 -0
  123. package/templates/portal/js/refresh.js +4 -2
  124. package/templates/portal/js/report.js +51 -0
  125. package/templates/portal/js/select.js +362 -0
  126. package/templates/portal/js/state.js +14 -1
  127. package/templates/portal/js/views/connectors.js +423 -0
  128. package/templates/portal/js/views/graph.js +67 -28
  129. package/templates/portal/js/views/home.js +378 -176
  130. package/templates/portal/js/views/inbox.js +68 -16
  131. package/templates/portal/js/views/org.js +2 -0
  132. package/templates/portal/js/views/people.js +109 -0
  133. package/templates/portal/js/views/routines.js +378 -0
  134. package/templates/portal/js/views/runs.js +3 -1
  135. package/templates/skill/SKILL.md +115 -0
@@ -0,0 +1,362 @@
1
+ /* Dropdowns: Astryx's Selector, drawn over the native <select> it stands in for.
2
+ *
3
+ * Every view builds a plain <select>, reads `.value` and listens for `change`, and none of that
4
+ * changes. When one lands in the page, this puts Astryx's trigger beside it and hides it; the
5
+ * <select> stays the one place the value lives. A pick sets it and fires `change` on it, and a
6
+ * value set on it from code (or options added to it) repaints the trigger. The markup is
7
+ * Selector's own, element by element, with the class strings in astryx-ui.js; css/astryx.css has
8
+ * their rules unchanged, so this decides only what the control does, never what it looks like.
9
+ *
10
+ * What it does is the select-only combobox from the WAI-ARIA practices, which is what Selector
11
+ * is: focus stays on the trigger and `aria-activedescendant` names the highlighted row. Closed,
12
+ * the arrow keys, Enter and Space open it and typing picks by first letters, as a native one
13
+ * does. Open, the arrows, Home and End move, Enter, Space and Tab pick, and Escape closes it
14
+ * without closing the dialog it may sit in. The list is a popover, so the page's own top layer
15
+ * and light dismiss do the rest, placed by CSS anchor positioning as Astryx places it.
16
+ */
17
+
18
+ import { LAYER_STYLE, SELECTOR as C } from "./astryx-ui.js";
19
+
20
+ const CHEVRON = '<path d="M6 9l6 6 6-6"></path>';
21
+ const CHECK = '<path d="M5 13l4 4L19 7"></path>';
22
+ const svg = (body) =>
23
+ '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" ' +
24
+ 'stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em" ' +
25
+ `aria-hidden="true">${body}</svg>`;
26
+
27
+ const node = (tag, className, attrs = {}) => {
28
+ const n = document.createElement(tag);
29
+ if (className) n.className = className;
30
+ for (const [k, v] of Object.entries(attrs)) n.setAttribute(k, v);
31
+ return n;
32
+ };
33
+
34
+ let ids = 0;
35
+
36
+ /** Puts the Astryx control beside one <select>. Calling it twice on the same one does nothing. */
37
+ export function enhanceSelect(select) {
38
+ if (select.dataset.astryx || select.multiple || !select.isConnected) return;
39
+ select.dataset.astryx = "1";
40
+ // Read here rather than at load: the tests' DOM shim has no HTMLSelectElement.
41
+ const PROTO = Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype, "value");
42
+ const INDEX = Object.getOwnPropertyDescriptor(HTMLSelectElement.prototype, "selectedIndex");
43
+ const ANCHORED = globalThis.CSS?.supports?.("position-area: block-end") ?? false;
44
+ const id = `axsel-${++ids}`;
45
+ const anchor = `--${id}`;
46
+
47
+ const host = node("span", "axselect");
48
+ const frame = node("div", C.frame, { "data-variant": "input", "data-size": "md" });
49
+ frame.style.setProperty("anchor-name", anchor);
50
+ const button = node("button", C.button, {
51
+ type: "button",
52
+ role: "combobox",
53
+ "aria-haspopup": "listbox",
54
+ "aria-expanded": "false",
55
+ "aria-controls": `${id}-list`,
56
+ });
57
+ const value = node("span", C.value);
58
+ button.append(value);
59
+ const chevron = node("span", C.chevron, {
60
+ "aria-hidden": "true",
61
+ "data-state": "collapsed",
62
+ "data-size": "sm",
63
+ "data-color": "secondary",
64
+ });
65
+ chevron.innerHTML = svg(CHEVRON);
66
+ frame.append(button, chevron);
67
+
68
+ const layer = node("div", C.layer, { popover: "auto", "data-layer-anchored": "" });
69
+ layer.setAttribute("style", LAYER_STYLE.replaceAll("{anchor}", anchor));
70
+ const inner = node("div", C.layerInner);
71
+ const list = node("div", C.listbox, { id: `${id}-list`, role: "listbox" });
72
+ inner.append(list);
73
+ // A press on a row must not take focus from the trigger, which is where the keys go.
74
+ list.addEventListener("pointerdown", (e) => e.preventDefault());
75
+ layer.append(inner);
76
+ host.append(frame, layer);
77
+
78
+ // Whatever names the <select> names the control: its label, its title, its aria-label.
79
+ for (const a of ["title", "aria-label"]) {
80
+ if (select.hasAttribute(a)) button.setAttribute(a, select.getAttribute(a));
81
+ }
82
+ if (select.id) {
83
+ const label = document.querySelector(`label[for="${CSS.escape(select.id)}"]`);
84
+ if (label) {
85
+ label.id ||= `${id}-label`;
86
+ button.setAttribute("aria-labelledby", label.id);
87
+ label.addEventListener("click", (e) => {
88
+ e.preventDefault();
89
+ button.focus();
90
+ });
91
+ }
92
+ }
93
+ list.setAttribute("aria-label", button.getAttribute("aria-label") ?? select.title ?? "");
94
+
95
+ select.classList.add("axnative");
96
+ select.after(host);
97
+
98
+ let rows = [];
99
+ let active = -1;
100
+ let keyboard = false;
101
+
102
+ const options = () => [...select.options];
103
+ const enabled = (i) => i >= 0 && i < rows.length && !select.options[i].disabled;
104
+
105
+ function paintValue() {
106
+ const o = select.options[select.selectedIndex];
107
+ value.textContent = o ? o.textContent : "";
108
+ host.hidden = select.hidden;
109
+ button.disabled = select.disabled;
110
+ }
111
+
112
+ function paintRows() {
113
+ const chosen = select.selectedIndex;
114
+ rows = options().map((o, i) => {
115
+ const row = node("div", C.option, {
116
+ id: `${id}-item-${i}`,
117
+ role: "option",
118
+ "aria-selected": String(i === chosen),
119
+ "data-size": "md",
120
+ });
121
+ if (o.disabled) row.setAttribute("aria-disabled", "true");
122
+ const main = node("span", C.optionMain);
123
+ const line = node("div", C.optionRow, { "data-density": "balanced", "data-align": "center" });
124
+ const outer = node("span", C.optionLabelOuter);
125
+ const label = node("span", C.optionLabel);
126
+ label.textContent = o.textContent;
127
+ outer.append(label);
128
+ line.append(outer);
129
+ main.append(line);
130
+ const end = node("span", C.optionEnd);
131
+ if (i === chosen) {
132
+ row.setAttribute("data-selected", "selected");
133
+ const check = node("span", C.check, {
134
+ "aria-hidden": "true",
135
+ "data-size": "sm",
136
+ "data-color": "accent",
137
+ });
138
+ check.innerHTML = svg(CHECK);
139
+ end.append(check);
140
+ }
141
+ row.append(main, end);
142
+ row.addEventListener("pointermove", () => {
143
+ if (active !== i || keyboard) highlight(i, false);
144
+ });
145
+ row.addEventListener("click", () => {
146
+ if (enabled(i)) pick(i);
147
+ });
148
+ return row;
149
+ });
150
+ list.replaceChildren(...rows);
151
+ }
152
+
153
+ /** The classes a row wears: Selector's, plus each state it is in, as React composes them. */
154
+ function paintRow(i) {
155
+ const row = rows[i];
156
+ if (!row) return;
157
+ const o = select.options[i];
158
+ row.className = [
159
+ C.option,
160
+ i === active && C.highlighted,
161
+ i === active && keyboard && C.keyboard,
162
+ i === select.selectedIndex && C.selected,
163
+ o?.disabled && C.disabled,
164
+ ]
165
+ .filter(Boolean)
166
+ .join(" ");
167
+ }
168
+
169
+ function highlight(i, byKeyboard) {
170
+ const was = active;
171
+ active = i;
172
+ keyboard = byKeyboard;
173
+ paintRow(was);
174
+ paintRow(i);
175
+ if (i >= 0) {
176
+ button.setAttribute("aria-activedescendant", rows[i].id);
177
+ if (byKeyboard) rows[i].scrollIntoView({ block: "nearest" });
178
+ } else button.removeAttribute("aria-activedescendant");
179
+ }
180
+
181
+ const isOpen = () => layer.matches(":popover-open");
182
+
183
+ function open(byKeyboard) {
184
+ if (isOpen() || button.disabled) return;
185
+ paintRows();
186
+ rows.forEach((_, i) => paintRow(i));
187
+ layer.style.minInlineSize = `${frame.offsetWidth}px`;
188
+ layer.showPopover();
189
+ if (!ANCHORED) place();
190
+ const start = enabled(select.selectedIndex) ? select.selectedIndex : step(-1, 1);
191
+ highlight(start, byKeyboard);
192
+ }
193
+
194
+ function close() {
195
+ if (isOpen()) layer.hidePopover();
196
+ }
197
+
198
+ /** Where anchor positioning is missing: under the trigger, or over it when there is no room. */
199
+ function place() {
200
+ const r = frame.getBoundingClientRect();
201
+ const h = layer.offsetHeight;
202
+ const below = r.bottom + h + 8 <= innerHeight || r.top < h + 8;
203
+ layer.style.position = "fixed";
204
+ layer.style.margin = "0";
205
+ layer.style.left = `${Math.max(8, Math.min(r.left, innerWidth - layer.offsetWidth - 8))}px`;
206
+ layer.style.top = below ? `${r.bottom + 4}px` : `${r.top - h - 4}px`;
207
+ }
208
+
209
+ function pick(i) {
210
+ const changed = select.selectedIndex !== i;
211
+ INDEX.set.call(select, i);
212
+ paintValue();
213
+ close();
214
+ button.focus();
215
+ if (changed) {
216
+ select.dispatchEvent(new Event("input", { bubbles: true }));
217
+ select.dispatchEvent(new Event("change", { bubbles: true }));
218
+ }
219
+ }
220
+
221
+ /** The next enabled row from `from` in direction `dir`, or `from` itself at either end. */
222
+ function step(from, dir) {
223
+ for (let i = from + dir; i >= 0 && i < select.options.length; i += dir) {
224
+ if (!select.options[i].disabled) return i;
225
+ }
226
+ return from;
227
+ }
228
+
229
+ /* Typing picks by first letters: closed it changes the value, as a native one does; open
230
+ it moves the highlight. A pause of a second starts a new word. */
231
+ let typed = "";
232
+ let typedAt = 0;
233
+ function typeahead(ch) {
234
+ const now = Date.now();
235
+ typed = now - typedAt > 1000 ? ch : typed + ch;
236
+ typedAt = now;
237
+ const from = isOpen() ? active : select.selectedIndex;
238
+ const all = options();
239
+ const order = all.map((_, k) => (from + 1 + k) % all.length);
240
+ // The same letter pressed again cycles through the options that start with it.
241
+ const want = typed.split("").every((c) => c === typed[0]) ? typed[0] : typed;
242
+ const hit = order.find(
243
+ (i) => !all[i].disabled && all[i].textContent.trim().toLowerCase().startsWith(want),
244
+ );
245
+ if (hit === undefined) return;
246
+ if (isOpen()) highlight(hit, true);
247
+ else pick(hit);
248
+ }
249
+
250
+ button.addEventListener("click", () => (isOpen() ? close() : open(false)));
251
+ // Light dismiss closes the popover on the pointerdown before this click, which would reopen
252
+ // it at once. A press that starts on the trigger of an open list is a close, nothing more.
253
+ button.addEventListener("pointerdown", (e) => {
254
+ if (isOpen()) {
255
+ e.preventDefault();
256
+ close();
257
+ button.addEventListener("click", (c) => c.stopImmediatePropagation(), {
258
+ once: true,
259
+ capture: true,
260
+ });
261
+ }
262
+ });
263
+
264
+ button.addEventListener("keydown", (e) => {
265
+ const k = e.key;
266
+ if (!isOpen()) {
267
+ if (k === "ArrowDown" || k === "ArrowUp" || k === "Enter" || k === " ") {
268
+ e.preventDefault();
269
+ open(true);
270
+ if (k === "ArrowUp") highlight(step(select.options.length, -1), true);
271
+ } else if (k.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey) {
272
+ typeahead(k.toLowerCase());
273
+ }
274
+ return;
275
+ }
276
+ if (k === "Escape") {
277
+ // A dialog round this would close on the same key; this Escape is the list's.
278
+ e.preventDefault();
279
+ e.stopPropagation();
280
+ close();
281
+ } else if (k === "ArrowDown" || k === "ArrowUp") {
282
+ e.preventDefault();
283
+ if (e.altKey && k === "ArrowUp") {
284
+ if (enabled(active)) pick(active);
285
+ return;
286
+ }
287
+ highlight(step(active, k === "ArrowDown" ? 1 : -1), true);
288
+ } else if (k === "Home" || k === "End") {
289
+ e.preventDefault();
290
+ highlight(k === "Home" ? step(-1, 1) : step(select.options.length, -1), true);
291
+ } else if (k === "Enter" || k === " ") {
292
+ e.preventDefault();
293
+ if (enabled(active)) pick(active);
294
+ } else if (k === "Tab") {
295
+ if (enabled(active)) pick(active);
296
+ } else if (k.length === 1 && !e.metaKey && !e.ctrlKey && !e.altKey) {
297
+ e.preventDefault();
298
+ typeahead(k.toLowerCase());
299
+ }
300
+ });
301
+
302
+ layer.addEventListener("toggle", (e) => {
303
+ const shown = e.newState === "open";
304
+ button.setAttribute("aria-expanded", String(shown));
305
+ button.className = shown ? C.buttonOpen : C.button;
306
+ chevron.className = shown ? C.chevronOpen : C.chevron;
307
+ chevron.setAttribute("data-state", shown ? "expanded" : "collapsed");
308
+ if (!shown) highlight(-1, false);
309
+ });
310
+
311
+ /* Code that sets the value, swaps the options, hides or disables the <select> after this has
312
+ run is still the source of truth: each of those repaints the trigger. */
313
+ Object.defineProperty(select, "value", {
314
+ configurable: true,
315
+ get: () => PROTO.get.call(select),
316
+ set: (v) => {
317
+ PROTO.set.call(select, v);
318
+ paintValue();
319
+ },
320
+ });
321
+ Object.defineProperty(select, "selectedIndex", {
322
+ configurable: true,
323
+ get: () => INDEX.get.call(select),
324
+ set: (v) => {
325
+ INDEX.set.call(select, v);
326
+ paintValue();
327
+ },
328
+ });
329
+ new MutationObserver(() => {
330
+ paintValue();
331
+ if (isOpen()) paintRows();
332
+ }).observe(select, {
333
+ childList: true,
334
+ subtree: true,
335
+ characterData: true,
336
+ attributes: true,
337
+ attributeFilter: ["hidden", "disabled", "selected"],
338
+ });
339
+ select.addEventListener("change", paintValue);
340
+
341
+ paintValue();
342
+ }
343
+
344
+ /**
345
+ * Every <select> the page gains from here on gets the control, so no view has to remember to
346
+ * ask for it. Views build theirs detached and append them whole, so it is the arrival that is
347
+ * watched, and the work waits for the end of the task: by then the view has set the value.
348
+ */
349
+ export function installSelects(root = document.body) {
350
+ // The tests' DOM shim has no observers, and with nothing to watch there is nothing to do.
351
+ if (typeof MutationObserver !== "function") return;
352
+ const sweep = (n) => {
353
+ if (n.nodeType !== 1) return;
354
+ if (n.tagName === "SELECT") enhanceSelect(n);
355
+ else for (const s of n.querySelectorAll("select")) enhanceSelect(s);
356
+ };
357
+ new MutationObserver((records) => {
358
+ const added = records.flatMap((r) => [...r.addedNodes]);
359
+ if (added.length) queueMicrotask(() => added.forEach(sweep));
360
+ }).observe(root, { childList: true, subtree: true });
361
+ sweep(root);
362
+ }
@@ -22,7 +22,18 @@ export const VIEWS = [
22
22
  export const VIEW_ALIAS = { memory: "brain" };
23
23
 
24
24
  /** Screens that belong to the org rather than to one staff member. */
25
- export const ORG_WIDE = new Set(["setup", "home", "inbox", "prs", "runs", "org", "staff", "docs"]);
25
+ export const ORG_WIDE = new Set([
26
+ "setup",
27
+ "home",
28
+ "inbox",
29
+ "prs",
30
+ "runs",
31
+ "org",
32
+ "staff",
33
+ "connectors",
34
+ "routines",
35
+ "docs",
36
+ ]);
26
37
 
27
38
  /** The two screens that read the inbox, and so share its filters and its `?t=` thread. */
28
39
  const INBOXY = new Set(["inbox", "prs"]);
@@ -32,6 +43,8 @@ export const S = {
32
43
  data: null,
33
44
  /** `{login}` on a hosted portal, null on your own machine. Hosted has no setup, hire or doctor. */
34
45
  hosted: null,
46
+ /** The signed-in GitHub login, hosted or local. Null when it could not be read. */
47
+ me: null,
35
48
  docs: null,
36
49
  inbox: null,
37
50
  /** /api/runs. Kept once read: it is minutes of downloads on a cold cache. */