@supa-media/tex-contract 0.13.0 → 0.16.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supa-media/tex-contract",
3
- "version": "0.13.0",
3
+ "version": "0.16.22",
4
4
  "description": "The contract Context's gateway and Tex both keep: tool names, the MCP catalog snapshot, wire formats and the shared readings Tex takes with it",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -9,6 +9,7 @@
9
9
  ],
10
10
  "capabilities": [
11
11
  {"name":"Who is in a chat","actions":["send.name_guest","send.who_can_open"],"cant":[{"where":"group","what":"see the account of someone whose number here isn't on Context","workaround":{"kind":"words","text":"they sign in to the Context app with the number they use in this chat, or text you once on their own from it; either puts it on their account"}},{"where":"everywhere","what":"read anyone's phone contacts to learn guests' names","workaround":{"kind":"app_path","text":"Context app on their phone → Tex → Settings → Names from my contacts"}}]},
12
+ {"name":"Signing up","actions":[],"cant":[]},
12
13
  {"name":"Who someone is, for a form","actions":[],"cant":[{"where":"group","what":"know the name, phone number or email of someone here for a form","workaround":{"kind":"words","text":"ask them in the chat for what the form needs"}}]},
13
14
  {"name":"Ask Tex in another chat","actions":["send.ask_chat","send.post_in_chat"],"cant":[{"where":"group","what":"ask another chat, or anyone's personal Tex","workaround":{"kind":"words","text":"ask from your own 1:1 with Tex, which can ask any group you are in"}},{"where":"1:1","what":"ask a group you are not in","workaround":{"kind":"words","text":"ask someone in that group to tag Tex there"}}]},
14
15
  {"name":"Following up on the side, both ways","actions":["send.text_privately"],"cant":[{"where":"group","what":"ask someone who isn't on Context, or never texted you on their own, for something sensitive","workaround":{"kind":"words","text":"they text you once on their own from their phone (which sets up an account if they have none), then ask again"}}]},
@@ -20,6 +21,7 @@
20
21
  {"name":"Forms","actions":["write.answer","write.update_answer","write.retract_answer","write.vote"],"cant":[]},
21
22
  {"name":"The note open in the app","actions":[],"cant":[]},
22
23
  {"name":"Shared workspaces","actions":["manage.create_workspace"],"cant":[{"where":"everywhere","what":"open a shared workspace to everyone at an email domain","workaround":{"kind":"app_path","text":"the owner opens Context app → Settings → People & sharing → Your organization"}}]},
24
+ {"name":"Joining a workspace they were invited to","actions":["manage.join"],"cant":[]},
23
25
  {"name":"Inviting people","actions":["manage.invite","words.invite","send.chat_add_everyone"],"cant":[{"where":"everywhere","what":"change a member's role, remove someone from a workspace, or cancel an invitation","workaround":{"kind":"app_path","text":"the owner opens Context app → Settings → People & sharing → Members"}}]},
24
26
  {"name":"Website","actions":["manage.website"],"cant":[]},
25
27
  {"name":"Data sources and metrics","actions":[],"cant":[{"where":"everywhere","what":"connect a data source or make the key that sends rows to one","workaround":{"kind":"app_path","text":"someone who can edit the shared workspace opens the Context app → the data folder → Connect a source (the sidebar's + → Data source… makes the data folder the first time)"}},{"where":"everywhere","what":"start or restart a Fetch from a URL source's hourly sync (you can write its about.md, but the sync runs on the standing of a person who edits the workspace)","workaround":{"kind":"app_path","text":"an owner or editor opens the Context app → the data folder → the source → Sync now; its page then says when it last synced or why it was refused"}}]},
@@ -27,8 +29,9 @@
27
29
  {"name":"The web","actions":["send.search_web","send.open_page","send.browse","send.travel_time"],"cant":[{"where":"everywhere","what":"show them your browser inside a text","workaround":{"kind":"link","text":"they watch or take over your browser live at context.lc/tex/@their-handle?view=computer&full=1 (a group chat's at context.lc/tex/group/<its words>/computer?full=1), or at the handoff link browse sends"}}]},
28
30
  {"name":"Sending email","actions":["send.email"],"cant":[{"where":"everywhere","what":"read or send Outlook, Microsoft 365, iCloud or other mail that isn't Gmail","workaround":{"kind":"link","text":"browse to that web mail and do the step there, signing in with a saved login"}},{"where":"everywhere","what":"add or remove a Gmail \"Send mail as\" address","workaround":{"kind":"link","text":"https://mail.google.com/mail/u/0/#settings/accounts, \"Send mail as\" → Add another email address; Tex sends from it once Gmail shows it verified"}}]},
29
31
  {"name":"Reading email","actions":[],"cant":[{"where":"group","what":"read someone's mail they haven't shared with this chat","workaround":{"kind":"words","text":"the mailbox's own person asks you here in any words to share it, or says yes when you offer (you call send action chat_share_mail), or texts you on their own to search it; never hand them a phrase to type"}}]},
30
- {"name":"Sharing someone's mail with a group chat","actions":["command.chat_share_mail","command.chat_unshare_mail","words.share_mail","words.unshare_mail"],"cant":[{"where":"1:1","what":"share someone's mail with a group chat from a 1:1 text","workaround":{"kind":"words","text":"they type \"Tex, share my mail from <their address> here\" in that group chat"}}]},
31
- {"name":"Sharing someone's calendar with a group chat","actions":["command.chat_share_calendar","command.chat_unshare_calendar"],"cant":[{"where":"1:1","what":"share someone's calendar with a group chat from a 1:1 text","workaround":{"kind":"words","text":"they ask you to share their calendar in that group chat"}}]},
32
+ {"name":"Sharing someone's mail with a group chat","actions":["command.chat_share_mail","command.chat_unshare_mail","words.share_mail","words.unshare_mail"],"cant":[]},
33
+ {"name":"Sharing someone's calendar with a group chat","actions":["command.chat_share_calendar","command.chat_unshare_calendar"],"cant":[]},
34
+ {"name":"Posting one email or event into a group from a 1:1","actions":["send.share_item"],"cant":[{"where":"1:1","what":"share a whole mailbox or calendar with a group chat from a 1:1 text","workaround":{"kind":"words","text":"they ask you in that group chat to share their mail or calendar there"}}]},
32
35
  {"name":"A group chat's own email address","actions":[],"cant":[{"where":"everywhere","what":"send or reply from a group chat's address","workaround":{"kind":"words","text":"reply from someone here's own Gmail (send action email with as), on that person's 👍"}}]},
33
36
  {"name":"Gmail drafts, mail forwarding and Google Chat","actions":["send.email_draft","send.forward_rule","send.google_chat","manage.connect_google"],"cant":[{"where":"everywhere","what":"disconnect a Google account","workaround":{"kind":"app_path","text":"Context app → Settings → Connected apps"}}]},
34
37
  {"name":"Calendar","actions":["send.calendar"],"cant":[]},
@@ -44,15 +47,16 @@
44
47
  {"name":"Tex's own computer","actions":["send.tex_computer"],"shelf":true,"cant":[]},
45
48
  {"name":"Setting up their computers (community compute)","actions":["send.computers"],"appRoutes":["/machines/app/list","/machines/app/set","/machines/app/disconnect","/machines/app/lend","/machines/app/unlend","/machines/app/raise","/machines/app/chat-people","/machines/app/sign-in","/machines/app/install"],"cant":[{"where":"1:1","what":"answer a computer's \"Ask me first\" from a 1:1 text","appRoutes":["/machines/app/answer"],"workaround":{"kind":"app_path","text":"the owner taps 👍 on the ask in the group chat it came from, or answers it on the computer's page on their Tex page (context.lc/tex/@their-handle)"}},{"where":"everywhere","what":"change which of a computer's folders, coding tools, trusted repos or computer use Tex may use, or turn on \"Let Tex use this Mac\" in the Mac app","workaround":{"kind":"app_path","text":"they open the computer on their Tex page in the Context app (context.lc/tex/@their-handle), or, for the Mac app's switch and folders, Settings → Tex in the Mac app"}}]},
46
49
  {"name":"Pairing a session's computer for mail","actions":["manage.pair_device"],"cant":[]},
50
+ {"name":"Moving their own chat to staging Tex","actions":["manage.tex_line"],"cant":[]},
47
51
  {"name":"Pages","actions":[],"cant":[]},
48
52
  {"name":"Pictures and cards","actions":["send.draw_visual","send.draw_picture","send.make_picture"],"cant":[{"where":"everywhere","what":"send tappable Context cards, swipeable picture sets or one-tap pick cards on WhatsApp","workaround":{"kind":"words","text":"the picture or words still arrive there as a picture, a document or a link preview"}}]},
49
53
  {"name":"Files and voice memos they send","actions":[],"cant":[{"where":"everywhere","what":"watch a video, open other file types, or read a file over 25 MB (a PDF over 10 MB, a voice memo over 8 MB)","workaround":{"kind":"words","text":"ask for a screenshot of the part that matters, a shorter recording, or the file as a PDF"}}]},
50
54
  {"name":"Tapbacks","actions":[],"cant":[]},
51
- {"name":"Polls","actions":[],"cant":[{"where":"everywhere","what":"vote in a poll yourself","workaround":{"kind":"words","text":"say which option you would pick"}},{"where":"everywhere","what":"see a poll on the old Sendblue number or WhatsApp","workaround":{"kind":"words","text":"ask them to say which option they picked"}}]},
55
+ {"name":"Polls","actions":[],"cant":[{"where":"everywhere","what":"vote in a poll yourself","workaround":{"kind":"words","text":"say which option you would pick"}},{"where":"everywhere","what":"see a poll on WhatsApp","workaround":{"kind":"words","text":"ask them to say which option they picked"}}]},
52
56
  {"name":"Running the group","actions":[],"cant":[]},
53
- {"name":"Tags, effects and other apps' cards","actions":[],"cant":[{"where":"everywhere","what":"send a card of another app yourself","workaround":{"kind":"words","text":"say it in words"}},{"where":"everywhere","what":"see tags, effects or other apps' cards on the old Sendblue number or WhatsApp","workaround":{"kind":"words","text":"ask them to say it in words"}}]},
54
- {"name":"Threaded replies","actions":[],"cant":[{"where":"everywhere","what":"be sure a reply threads on the old Sendblue number or WhatsApp","workaround":{"kind":"words","text":"name the text you are answering in a few words"}}]},
55
- {"name":"Edited and unsent texts","actions":[],"cant":[{"where":"everywhere","what":"see an edit or unsend on the old Sendblue number or WhatsApp, which don't send them","workaround":{"kind":"words","text":"ask them to send the corrected text again, or say which text to ignore"}}]},
57
+ {"name":"Tags, effects and other apps' cards","actions":[],"cant":[{"where":"everywhere","what":"send a card of another app yourself","workaround":{"kind":"words","text":"say it in words"}},{"where":"everywhere","what":"see tags, effects or other apps' cards on WhatsApp","workaround":{"kind":"words","text":"ask them to say it in words"}}]},
58
+ {"name":"Threaded replies","actions":[],"cant":[{"where":"everywhere","what":"be sure a reply threads on WhatsApp","workaround":{"kind":"words","text":"name the text you are answering in a few words"}}]},
59
+ {"name":"Edited and unsent texts","actions":[],"cant":[{"where":"everywhere","what":"see an edit or unsend on WhatsApp, which doesn't send them","workaround":{"kind":"words","text":"ask them to send the corrected text again, or say which text to ignore"}}]},
56
60
  {"name":"Texting while you work","actions":[],"cant":[]},
57
61
  {"name":"This chat's history","actions":[],"cant":[{"where":"everywhere","what":"find a text by its meaning when it used other words","workaround":{"kind":"words","text":"search again with the plain words they would have used, or read the day summaries around when it likely was"}}]},
58
62
  {"name":"Group chats","actions":[],"cant":[]},
@@ -60,14 +64,17 @@
60
64
  {"name":"Progress lines and silence","actions":["send.progress","send.say_nothing","send.tapback","send.reply_under"],"cant":[]},
61
65
  {"name":"Sending a chat's stickers","actions":["send.send_sticker"],"cant":[]},
62
66
  {"name":"How you talk, and your settings","actions":["command.tex_settings","command.tex_instructions","send.setting"],"cant":[]},
67
+ {"name":"A fact kept in a group's memory","actions":["send.share_with_group","send.forget_shared"],"cant":[{"where":"group","what":"keep a fact here that someone told you in their own 1:1","workaround":{"kind":"words","text":"they say yes to sharing it from their own 1:1 with Tex"}}]},
63
68
  {"name":"An answer held from a group","actions":["send.share_held"],"cant":[]},
64
69
  {"name":"Their name on their account","actions":["send.account_name"],"cant":[]},
65
70
  {"name":"When you speak up in a group","actions":["command.chat_mute","command.chat_status","words.stop","words.start","words.status"],"cant":[]},
66
71
  {"name":"Sharing their conversations with the Context team","actions":["command.review_sharing","words.review_sharing"],"cant":[]},
67
72
  {"name":"Bug reports","actions":["write.report_problem"],"cant":[]},
73
+ {"name":"Setting someone new up","actions":["send.setup_step"],"cant":[]},
68
74
  {"name":"Your memory of them","actions":["manage.dream_now","write.save_session"],"cant":[]},
69
75
  {"name":"Areas and their bots","actions":["manage.area"],"cant":[{"where":"everywhere","what":"show a saved webhook's address or key","workaround":{"kind":"app_path","text":"Replace under the bot's Reach in the app's area panel"}},{"where":"everywhere","what":"send an area routine to its bot now, out of turn","workaround":{"kind":"app_path","text":"Run now on the routine's row under Routines in the app's area panel (an editor or owner; it waits like any run when the bot's share there is spent)"}}]},
70
76
  {"name":"Date properties","actions":["manage.fill_dates"],"cant":[]},
77
+ {"name":"Agent mail archive","actions":["manage.mail_archive"],"cant":[]},
71
78
  {"name":"Their account","actions":[],"cant":[{"where":"everywhere","what":"change the phone or emails they sign in with, sign out their other devices, or pause phone sign-in","workaround":{"kind":"app_path","text":"Context app → Settings → Profile (each needs a code sent to them)"}},{"where":"everywhere","what":"block or unblock someone","workaround":{"kind":"app_path","text":"Report or block beside the note or invitation they sent, or Context app → Settings → Profile → Blocked people to unblock"}},{"where":"everywhere","what":"see or manage where their notes are stored","workaround":{"kind":"app_path","text":"Context app → Settings → Storage"}}]},
72
79
  {"name":"Connecting AI apps to Context","actions":[],"cant":[{"where":"everywhere","what":"take away an AI app's access","workaround":{"kind":"app_path","text":"Context app → Settings → Connected apps → AI apps → Revoke"}}]},
73
80
  {"name":"Chatting in the Context app","actions":[],"cant":[{"where":"everywhere","what":"send or receive files other than pictures, PDFs, text files and Word documents, or voice notes, in the app chat yet","workaround":{"kind":"words","text":"they text the file or voice note to you over iMessage, and you see it in the same history"}}]},
@@ -57,6 +57,24 @@ function expired(id, now) {
57
57
  return now - Number(m[1]) > (m[2] === "l" ? LONG_KEEP_MS : SHORT_KEEP_MS);
58
58
  }
59
59
 
60
+ /**
61
+ * Whether `data` is base64: one or more of `A-Z a-z 0-9 + /`, then any `=`.
62
+ * A loop, not a regex: `/^[A-Za-z0-9+/]+=*$/` over a 4 MB string overflowed
63
+ * the stack on CI's runners (a RangeError that the caller swallowed, so a
64
+ * downloaded PDF was never kept).
65
+ */
66
+ function isBase64(data) {
67
+ let i = 0;
68
+ for (; i < data.length; i += 1) {
69
+ const c = data.charCodeAt(i);
70
+ const ok = (c >= 65 && c <= 90) || (c >= 97 && c <= 122) || (c >= 48 && c <= 57) || c === 43 || c === 47;
71
+ if (!ok) break;
72
+ }
73
+ if (i === 0) return false;
74
+ for (; i < data.length; i += 1) if (data.charCodeAt(i) !== 61) return false;
75
+ return true;
76
+ }
77
+
60
78
  function sizeOf(data) {
61
79
  return Math.floor((data.length * 3) / 4) - (data.endsWith("==") ? 2 : data.endsWith("=") ? 1 : 0);
62
80
  }
@@ -68,7 +86,7 @@ function sizeOf(data) {
68
86
  async function keepDownload(store, file, { now = Date.now() } = {}) {
69
87
  if (typeof store?.put !== "function") return { error: "files can't be kept here; tell the person, and link the page instead" };
70
88
  const data = typeof file?.data === "string" ? file.data : "";
71
- if (!data || !/^[A-Za-z0-9+/]+=*$/.test(data)) return { error: "the browser gave back no file; open the page again and retry the download step" };
89
+ if (!data || !isBase64(data)) return { error: "the browser gave back no file; open the page again and retry the download step" };
72
90
  const size = sizeOf(data);
73
91
  if (size > MAX_DOWNLOAD_BYTES) return { error: "that file is over the 10 MB a file can be; link it instead of attaching it" };
74
92
  const name = downloadName(file.name);
@@ -5,7 +5,14 @@
5
5
  *
6
6
  * One action, `tex_lab_ledger`, one op, `read`: `{ op: "read", owner, chat, options }`. `owner` is `{ person }` (a
7
7
  * personal workspace's id, for that person's 1:1) or `{ chat }` (a group chat's 64-hex key); `chat` is the ledger's
8
- * name for it (`labLedgerChatOf`). The answer is `{ value }`, what the ledger's `read` answered.
8
+ * name for it (`labLedgerChatOf`). The answer is `{ value }`, what the ledger's `read` answered. Tex's Worker may add
9
+ * `said` (its standing review yeses) or `shares` (its live dev shares, `[{ key, sharedAt, until }]`), which the
10
+ * control plane counts for the reach check; `shares`, when sent, is the whole list.
11
+ *
12
+ * Beside it, `tex_lab_counts` (`apps/mcp/src/tools/texLabCounts.js`, `tex_dev node_stats { all: true }`): counts
13
+ * only, across every Tex chat, for a developer. `{ since, until, nodes, steps }` (the window in ms, at most 31 days,
14
+ * and the step names to count by) answers `{ value: { chats, cut, unread, replies, waits, nodes, steps } }`: numbers
15
+ * per named step (`{ runs, failed, turns?, ms }`, anything else under `other`), never a chat, an owner or a text.
9
16
  */
10
17
 
11
18
  "use strict";
@@ -13,6 +20,7 @@
13
20
  const { ONE_TO_ONE_CHAT } = require("./texStoreNames.cjs");
14
21
 
15
22
  const TEX_LAB_LEDGER_ACTION = "tex_lab_ledger";
23
+ const TEX_LAB_COUNTS_ACTION = "tex_lab_counts";
16
24
  const LAB_LEDGER_OPS = Object.freeze(["read"]);
17
25
  const OWNER_ID = /^[A-Za-z0-9_-]{1,64}$/;
18
26
  const GROUP_KEY = /^[0-9a-f]{64}$/;
@@ -34,4 +42,4 @@ function labLedgerChatOf(owner) {
34
42
  return owner?.person ? ONE_TO_ONE_CHAT : owner?.chat ?? null;
35
43
  }
36
44
 
37
- module.exports = { TEX_LAB_LEDGER_ACTION, LAB_LEDGER_OPS, labLedgerOwner, labLedgerChatOf };
45
+ module.exports = { TEX_LAB_LEDGER_ACTION, TEX_LAB_COUNTS_ACTION, LAB_LEDGER_OPS, labLedgerOwner, labLedgerChatOf };
@@ -1,4 +1,5 @@
1
1
  export declare const TEX_LAB_LEDGER_ACTION: "tex_lab_ledger";
2
+ export declare const TEX_LAB_COUNTS_ACTION: "tex_lab_counts";
2
3
  export declare const LAB_LEDGER_OPS: readonly ["read"];
3
4
  export type LabLedgerOwner = { person: string } | { chat: string };
4
5
  export declare function labLedgerOwner(value: unknown): LabLedgerOwner | null;
@@ -34,4 +34,24 @@ function lineRouteRequest(body) {
34
34
  return phone !== null ? { op: "switch", to: body.to, phone } : { op: "switch", to: body.to, groupKey };
35
35
  }
36
36
 
37
- module.exports = { LINE_ROUTES_PATH, LINE_ROUTE_OPS, LINE_ROUTE_TARGETS, lineRouteRequest };
37
+ /**
38
+ * A person's own 1:1, from any of their agents (`manage tex_line`, Dev, 2026-12-01). The gateway hands Tex's Worker
39
+ * `lineSelf({ grantToken, ...call })` over its `TEXTING` binding with the connection's own grant token; Tex's Worker
40
+ * asks the control plane whose number that grant is (`/agent-texts/own-line`) and switches that 1:1 and no other. The
41
+ * bridge's roster (staff, or a tester's own yes) and the staging check still decide. Ops: `get` `{}`: where the
42
+ * caller's 1:1 is answered now; `switch` `{ to }`.
43
+ *
44
+ * Answers are `{ ok: true, to, was?, told? }` or `{ ok: false, error }`, `error` a sentence for the person.
45
+ */
46
+ const LINE_SELF_OPS = Object.freeze(["get", "switch"]);
47
+
48
+ /** A self call read strictly: `{ op: "get" }` or `{ op: "switch", to }`; `to` alone means switch. Else null. */
49
+ function lineSelfRequest(body) {
50
+ if (body === null || typeof body !== "object" || Array.isArray(body)) return null;
51
+ const op = body.op === undefined ? (body.to === undefined ? "get" : "switch") : body.op;
52
+ if (op === "get") return { op: "get" };
53
+ if (op !== "switch" || !LINE_ROUTE_TARGETS.includes(body.to)) return null;
54
+ return { op: "switch", to: body.to };
55
+ }
56
+
57
+ module.exports = { LINE_ROUTES_PATH, LINE_ROUTE_OPS, LINE_ROUTE_TARGETS, lineRouteRequest, LINE_SELF_OPS, lineSelfRequest };
@@ -15,3 +15,9 @@ export type LineRoute = { kind: "dm" | "group"; phone?: string; groupKey?: strin
15
15
  export type LineRouteList = { ok: true; routes: LineRoute[] } | { ok: false; error: string };
16
16
  /** `op: "switch"`: where the chat was, where it is, and whether it was told in one line. */
17
17
  export type LineRouteSwitch = { ok: true; to: LineRouteTarget; was: LineRouteTarget; told: boolean; stagingCommit?: string | null } | { ok: false; error: string };
18
+
19
+ export declare const LINE_SELF_OPS: readonly ["get", "switch"];
20
+ export type LineSelfRequest = { op: "get" } | { op: "switch"; to: LineRouteTarget };
21
+ export declare function lineSelfRequest(body: unknown): LineSelfRequest | null;
22
+ /** `lineSelf`: where the caller's own 1:1 is answered, and for a switch where it was and whether it was told. */
23
+ export type LineSelfAnswer = { ok: true; to: LineRouteTarget; was?: LineRouteTarget; told?: boolean } | { ok: false; error: string };
@@ -10,7 +10,6 @@
10
10
  {"id":"handback","label":"Hand-back judge","model":"haiku-5-5","on":true},
11
11
  {"id":"egress","label":"Egress judge","model":"haiku-5-5","on":true},
12
12
  {"id":"picture","label":"Picture maker","model":"gemini","on":true},
13
- {"id":"shapeGate","label":"Shape gate","model":"clef","on":false},
14
13
  {"id":"jobadv","label":"Job advisor","model":"sonnet-5-5","on":true},
15
14
  {"id":"learn","label":"Learn","model":"haiku-5-5","on":true},
16
15
  {"id":"afterReply","label":"After the reply","model":"haiku-5-5","on":true},
@@ -24,12 +23,13 @@
24
23
  {"id":"connect","label":"Connect notes","model":"haiku-5-5","on":false},
25
24
  {"id":"noteRun","label":"Tex in a note","model":"haiku-5-5","on":true},
26
25
  {"id":"mailRun","label":"Tex in mail","model":"haiku-5-5","on":true},
27
- {"id":"nudgeOffer","label":"Nudge","model":"haiku-5-5","on":false},
26
+ {"id":"nudgeOffer","label":"Nudge","model":"haiku-5-5","on":true},
28
27
  {"id":"quietCheck","label":"Quiet check","model":"haiku-5-5","on":true},
29
28
  {"id":"checkinResearch","label":"Research","model":"haiku-5-5","on":true},
30
29
  {"id":"groupCard","label":"Group card","model":"haiku-5-5","on":true},
31
30
  {"id":"friendCheck","label":"Friend check","model":"haiku-5-5","on":true},
32
31
  {"id":"guestNames","label":"Guest names","model":"haiku-5-5","on":true},
32
+ {"id":"setupWords","label":"Setup words","model":"haiku-5-5","on":true},
33
33
  {"id":"dream","label":"Dream","model":"haiku-5-5","on":true},
34
34
  {"id":"daysum","label":"Day summaries","model":"haiku-5-5","on":true},
35
35
  {"id":"housekeep","label":"Housekeeping","model":"haiku-5-5","on":true},
@@ -158,6 +158,11 @@ const ACTIONS = {
158
158
  summary: "Invite people into a shared workspace the person owns; they are emailed once the person says yes.",
159
159
  take: plain,
160
160
  },
161
+ join: {
162
+ tool: "join_workspace",
163
+ summary: "List the workspaces the person was invited to, or join or decline one (workspace, answer) on their own yes or no.",
164
+ take: plain,
165
+ },
161
166
  layout: { tool: "apply_layout", summary: "Lay down a workspace's starting folders, or add one built-in folder.", take: plain },
162
167
  folder_job: {
163
168
  tool: "apply_layout",
@@ -178,11 +183,21 @@ const ACTIONS = {
178
183
  take: plain,
179
184
  },
180
185
  fill_dates: { tool: "fill_dates", summary: "Fill every empty date created / date modified from each note's history, once (owner only).", take: plain },
186
+ mail_archive: {
187
+ tool: "mail_archive",
188
+ summary: "Archive agent mail to archive/mail-<yyyy>-<mm>/ and keep only open threads in each live mail note (owner only; dry_run is the default).",
189
+ take: plain,
190
+ },
181
191
  pair_device: {
182
192
  tool: "pair_device",
183
193
  summary: "Approve the code this session's own computer shows, so it gets note mail at once (mail only, never jobs).",
184
194
  take: plain,
185
195
  },
196
+ tex_line: {
197
+ tool: "tex_line",
198
+ summary: "Switch the person's own 1:1 with Tex to staging or production Tex ({ to }), or see where it is (no args); staff and opted-in testers only.",
199
+ take: plain,
200
+ },
186
201
  },
187
202
  send: {
188
203
  api: {
@@ -200,6 +215,11 @@ const ACTIONS = {
200
215
  summary: "Save one email as a draft in the person's Gmail, for them to send; nothing is sent.",
201
216
  take: plain,
202
217
  },
218
+ answer_report: {
219
+ tool: "answer_report",
220
+ summary: "Staff only: Tex texts your reply to whoever filed a bug report (reference, message), after a person's yes; it marks the report answered.",
221
+ take: plain,
222
+ },
203
223
  notify: {
204
224
  tool: "notify_me",
205
225
  summary: "Have Tex text the person now: they asked to be told, or it is an emergency. Their settings may hold it.",