@stratusagent/channel-slack 0.12.6 → 0.13.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/README.md +25 -18
- package/dist/index.d.ts +22 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +603 -28
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Slack adapter for Stratus agents. **One Slack app per agent** — Slack has no w
|
|
|
5
5
|
- **Resumable conversations**: session keys are `slack:<agent>:<team>:<channel>:<thread_ts ?? ts>` (a DM's top level: the DM channel id alone; a thread in a DM adds its `thread_ts`) — a thread is a conversation, it survives daemon restarts, and two agents sharing a thread keep fully separate sessions. A turn parked on a human when the daemon died is re-asked after the restart, and a turn that was still running is continued from where it got to (unless the agent runs on a harness — `codex` or a Claude subscription — where it is failed instead, since the harness may already have acted on it); either way, when it finishes its reply is posted into the thread as a fresh message — the placeholder it would have edited belonged to the old process.
|
|
6
6
|
- **Replies post when they are ready**: by default each message is posted once, finished: what the agent writes before starting a tool is posted as the tool starts, and the reply follows, with Slack's loading status (`assistant.threads.setStatus` — "is thinking…", "is running shell.run…") shown while the turn works, so the notification carries the answer. The `stream` reply mode (`slack.replies` in the [config](../../docs/guides/slack.md#how-replies-appear)) keeps the placeholder-and-edit rendering instead: post `…`, edit as deltas arrive (throttled for `chat.update` limits), show `⚙ tool…` status lines, finalize with the full reply. Either way a reply that outgrows one message is split across several.
|
|
7
7
|
- **Markdown is translated to Slack's mrkdwn** on the way out — `**bold**` to `*bold*`, `*italic*` to `_italic_`, `~~struck~~` to `~struck~`, `[text](https://…)` to `<https://…|text>`, and a `#` heading to a bold line, since mrkdwn has no headings. A bare address is sent as `<https://…>`, Slack's own link markup, so emphasis around it (`**https://…**`) cannot be read as part of it, and a `*`, `_`, or `~` inside one is part of the address rather than a marker. Trailing punctuation (`.`, `,`, `**`) and a `)` the address never opened belong to the sentence, as in GFM autolinks, so `…/wiki/Function_(mathematics)` stays whole. A bare address is sent as `<https://…>`, Slack's own link markup, so emphasis around it (`**https://…**`) cannot be read as part of it, and the `*`, `_`, or `~` inside one is part of the address rather than a marker; trailing punctuation (`.`, `,`, `**`) is the sentence's, as in GFM autolinks. The reply is read once into tokens and written back from those, so what counts as code is decided one time rather than by each rule in turn. Three things follow from that. **A code run is one token**: nothing reads or rewrites inside it, an unclosed fence included, and the newlines in a fence are not line breaks — so a `#` on a line of somebody's shell script is not a heading. A run of N backticks opens code and only a run of exactly N closes it, which is what lets ``a span with a ` in it`` and a ````-fence holding a ```-fence work; one or two unmatched backticks are text, as they are in Markdown, but a pair is a span however far apart, because Slack pairs them too. **A delimiter is matched to its partner**, across whatever sits between — ``**the `fs.read` tool**`` is bold around a snippet, not four literal asterisks — though never across a line, so a marker still being streamed stays literal until its closing half arrives. A run is spent rather than matched whole, so the three asterisks ending `**bold and *italic***` close the italic with one and the bold with two; what no pair spends stays on the line as text, and what a run cannot buy — the third tilde of `~~~struck~~~`, a style that does not exist — is never charged for. **A wrapper is only written where its own character is not already loose** in what it wraps: Slack has one delimiter per style and no way to nest it, so a heading that already contains bold keeps the bold it has rather than gaining a second pair that would print instead of render, and `# glob *.ts` keeps an asterisk that was never a marker. A heading sheds its hashes and its trailing spaces from the prose that holds them, never from a snippet. Anything whose spelling already matches — lists, block quotes, inline code — is untouched. **A pipe table**, which mrkdwn has no syntax for, becomes a code block with its columns padded to line up (alignment colons respected, `**`/`` ` `` markers dropped from cells, since nothing renders inside code); a grid wider than 60 characters — past what a phone shows unwrapped — or one with a link in it (a link inside a code block is not clickable) becomes one line per row, `*Header*: value · *Header*: value`. A one-column table has nothing to line up and becomes a bulleted list under its bold header. A table inside a fence is somebody's text and stays as written, and a grid longer than one message is split like any code block, closed at the cut and reopened in the next, with its header and rule repeated so every part names its columns.
|
|
8
|
-
- **Mention to start, then it stays in the thread.** A mention opens a conversation; every reply in that thread
|
|
8
|
+
- **Mention to start, then it stays in the thread.** A mention opens a conversation; every later reply in that thread from someone the agent admits reaches it without tagging it again (by default only its listed principals; see [Who can talk to an agent](#who-counts-as-the-operator)), and free-form DMs are unchanged. A mention partway into an existing thread opens the conversation with what was said before it: the thread's parent and its newest 39 earlier messages. A mention at the top of a channel opens with the channel's 20 most recent messages instead, which is where a channel per client or per project keeps its context. Either way each message keeps its own speaker and its own trust, so a principal's mention does not carry a stranger's earlier words in under the principal's label (other bots count as `unknown`, and under `admit: "principals"` unlisted senders are left out). This needs the history scopes below; without them the agent sees only the message that named it, and the adapter logs a warning. Who an untagged reply is for is decided by [Who a message is for](#who-a-message-is-for). Inbound mentions of other users are humanized to `@Display Name` for the model; redeliveries are deduped so a slow turn never runs twice — in memory while the process remembers them, and after a restart by the gateway: each message is dispatched with its own key (`idempotencyKey`), a repeat runs no second turn, and the adapter posts that message's own reply and files (a file changed since that turn is skipped, since the path may now hold another file), or its failure if the turn failed — once more, if the process died after posting it, which beats a reply never posted.
|
|
9
9
|
- **Approval buttons** for the gateway's `remote` permission mode: a gated tool call parks the turn and asks in its thread with **Allow once** / **Always allow** / **Deny**. See [Approving tool calls](#approving-tool-calls) — clicks are authorized by *who clicked*, never by who can see the message, and **Always allow** is offered only where the daemon would actually remember it.
|
|
10
10
|
- **Tokens are gateway infrastructure secrets**, stored in the `channels` namespace of `~/.stratus/credentials.json` — never in an agent's credential allowlist:
|
|
11
11
|
|
|
@@ -100,9 +100,10 @@ they are the whole model:
|
|
|
100
100
|
nothing posted. The next time it is asked, it answers as someone who
|
|
101
101
|
followed the conversation rather than one who stepped out of the room.
|
|
102
102
|
What it hears is marked as said to somebody else, so a stranger's words
|
|
103
|
-
in a shared thread never read to it as an instruction
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
in a shared thread never read to it as an instruction. By default an
|
|
104
|
+
unlisted sender is not overheard at all; under `"admit": "anyone"` a
|
|
105
|
+
stranger overheard lowers its session's trust label exactly as one who
|
|
106
|
+
addressed it would, since their text is in the transcript either way. A
|
|
106
107
|
colleague's reply is heard under the colleague's own label, never as a
|
|
107
108
|
person's: an agent's word is at most `agent`, and carries whatever its
|
|
108
109
|
session has been exposed to. Replies only — a turn that said nothing,
|
|
@@ -421,12 +422,14 @@ So a message is the operator's only when the operator has said so:
|
|
|
421
422
|
}
|
|
422
423
|
```
|
|
423
424
|
|
|
424
|
-
A turn from a listed id reaches the agent as its operator's (`user`).
|
|
425
|
-
|
|
426
|
-
`
|
|
425
|
+
A turn from a listed id reaches the agent as its operator's (`user`). By
|
|
426
|
+
default anyone else gets no turn (see the door below). Under
|
|
427
|
+
`"admit": "anyone"`, a turn from anyone else — in a DM as much as in a
|
|
428
|
+
channel — reaches it as `unknown`, and the session it lands in stays `unknown` from then on: that
|
|
427
429
|
text is in the transcript. Every fact the agent remembers afterwards
|
|
428
430
|
carries the label, and the prompt renders it under a heading that says so.
|
|
429
|
-
With no list at all,
|
|
431
|
+
With no list at all, nobody is a principal: under the default nobody gets a
|
|
432
|
+
turn, under `"anyone"` every Slack sender is `unknown`, and `stratus serve`
|
|
430
433
|
says so at startup. An agent's own entry replaces the shared list;
|
|
431
434
|
`"slackUsers": []` excludes an agent from it.
|
|
432
435
|
|
|
@@ -444,15 +447,17 @@ prefers nobody, so under it every author is an id.
|
|
|
444
447
|
|
|
445
448
|
The sender is judged on **every message**, not once per thread. A thread
|
|
446
449
|
keys one session for everyone in it, so an authorized member can open one
|
|
447
|
-
and a stranger can mention the agent inside it afterwards
|
|
448
|
-
|
|
449
|
-
|
|
450
|
+
and a stranger can mention the agent inside it afterwards. By default the
|
|
451
|
+
stranger's message is refused before it becomes a turn, and the session is
|
|
452
|
+
untouched. Under `"admit": "anyone"` it becomes an `unknown` turn that
|
|
453
|
+
lowers the session, and the authorized member's next turn does not raise it
|
|
454
|
+
back.
|
|
450
455
|
|
|
451
|
-
The list is a **
|
|
452
|
-
marked `unknown`. For an agent that holds tools that is not enough — a
|
|
456
|
+
The list is a **door** by default: an unlisted sender gets no turn. A
|
|
453
457
|
stranger's message is not merely uncertain, it is a prompt they chose, and
|
|
454
|
-
|
|
455
|
-
|
|
458
|
+
an agent that holds tools should not run on it. `"admit": "anyone"` turns
|
|
459
|
+
the list back into a **label**, where an unlisted sender still gets a turn,
|
|
460
|
+
marked `unknown`. Per agent, as here, where Bea answers anyone:
|
|
456
461
|
|
|
457
462
|
```jsonc
|
|
458
463
|
{
|
|
@@ -466,7 +471,9 @@ approver clicks. `admit` makes the list a **door**:
|
|
|
466
471
|
}
|
|
467
472
|
```
|
|
468
473
|
|
|
469
|
-
Under `"admit": "principals"`
|
|
474
|
+
Under `"admit": "principals"` (the default; the daemon resolves an absent
|
|
475
|
+
key to it, while an embedder calling the adapter directly without `admit`
|
|
476
|
+
still gets `anyone`) a sender not in `slackUsers` gets no turn:
|
|
470
477
|
the message is refused before it takes a place in the queue, the agent
|
|
471
478
|
does not overhear it into a thread's transcript either, and nothing is
|
|
472
479
|
posted back — a reply is a conversation the operator chose not to have.
|
|
@@ -475,8 +482,8 @@ id — one per message, however many times Slack delivers it, and only for a
|
|
|
475
482
|
message the agent would have taken up: a mention, or a reply in a thread
|
|
476
483
|
the agent holds, whether the daemon remembers that or its sessions do. A
|
|
477
484
|
stranger's reply in a thread the agent was never part of is dropped
|
|
478
|
-
without a line. `"anyone"` is
|
|
479
|
-
|
|
485
|
+
without a line. The daemon's default is `"principals"`; `"anyone"` is the
|
|
486
|
+
default only for an embedder calling the adapter directly. The key inherits per agent like
|
|
480
487
|
`slackUsers`, so Bea above stays open while everyone else is closed. A value
|
|
481
488
|
that is neither word is a config error, never `anyone`: this is the one
|
|
482
489
|
setting here whose misspelling would open the door. So is a `slackUsers`
|
package/dist/index.d.ts
CHANGED
|
@@ -40,9 +40,11 @@ export interface SlackAgentConfig {
|
|
|
40
40
|
*/
|
|
41
41
|
principals?: string[];
|
|
42
42
|
/**
|
|
43
|
-
* Whether an unlisted sender gets a turn at all. `
|
|
44
|
-
*
|
|
45
|
-
*
|
|
43
|
+
* Whether an unlisted sender gets a turn at all. `principals` refuses
|
|
44
|
+
* them before a turn starts and does not let the agent overhear them
|
|
45
|
+
* either; `anyone` admits them as `unknown`. Absent here means `anyone`,
|
|
46
|
+
* for embedders that predate the option. The daemon always passes it:
|
|
47
|
+
* its config resolves an absent `principals.admit` to `principals` — the text
|
|
46
48
|
* would be in the transcript, which is what this mode exists to keep
|
|
47
49
|
* out. The label above is provenance; this is authorization.
|
|
48
50
|
*/
|
|
@@ -473,10 +475,26 @@ export interface SlackAdapterOptions {
|
|
|
473
475
|
/**
|
|
474
476
|
* Test injection: the clock, in milliseconds, that an upload's place in
|
|
475
477
|
* the thread is read from (`ReplyOutcome.spokeAt`) when the upload's
|
|
476
|
-
* answer carries no share ts
|
|
478
|
+
* answer carries no share ts, and that dates `start()`, after which every
|
|
479
|
+
* claim in a thread is seen live. Defaults to `Date.now`.
|
|
477
480
|
*/
|
|
478
481
|
now?: () => number;
|
|
482
|
+
/**
|
|
483
|
+
* Where to keep the messages addressed to an agent while the daemon was
|
|
484
|
+
* restarting or stopping, so the next start answers them. The gateway
|
|
485
|
+
* keeps channels connected through its drain and refuses new turns then
|
|
486
|
+
* (`GatewayStoppingError`); a message refused that way is told the agent
|
|
487
|
+
* is restarting and is written here — conversation, ts, thread, sender and
|
|
488
|
+
* channel type, never its text — then read back from Slack and handled
|
|
489
|
+
* as if it had just arrived once the adapter starts again. Without it, the
|
|
490
|
+
* refusal is said and nothing is kept.
|
|
491
|
+
*/
|
|
492
|
+
pendingIntakePath?: string;
|
|
479
493
|
}
|
|
494
|
+
/** What a person who wrote during a restart is told, when it was kept. */
|
|
495
|
+
export declare const RESTARTING_REPLY_TEXT = "I'm restarting right now. I'll answer this as soon as I'm back.";
|
|
496
|
+
/** The same, for a daemon that is stopping rather than restarting. */
|
|
497
|
+
export declare const STOPPING_REPLY_TEXT = "I'm shutting down right now. I'll answer this when I'm started again.";
|
|
480
498
|
/**
|
|
481
499
|
* A client whose every post goes out without link or media previews, for
|
|
482
500
|
* an agent configured with `linkPreviews: false`. Applied once around the
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EA0BL,KAAK,eAAe,EAMpB,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,cAAc,EAUpB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EA0BL,KAAK,eAAe,EAMpB,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,cAAc,EAUpB,MAAM,wBAAwB,CAAC;AAmEhC;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAmCzC,6EAA6E;AAC7E,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;;;;;OASG;IACH,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC7B;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA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