slack-term 1.55.2 → 1.55.3

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 CHANGED
@@ -385,12 +385,14 @@ identities:
385
385
  alice: { kind: user, profile: acme }
386
386
  ```
387
387
 
388
- **A write that would go out as a person's session is refused** (exit 2) unless it names `@who`, `--as-bot` or `--as-user`, in two cases:
388
+ **A write that would go out as a person's session is refused** (exit 2) unless it names `@who` or `--as-bot`, in two cases:
389
389
 
390
- - from inside an agent (`AY_AGENT_ID`, `AGENT_YES_PID` or `CLAUDECODE` set);
391
- - when two or more identities are configured.
390
+ - from inside an agent (`AY_AGENT_ID`, `AGENT_YES_PID` or `CLAUDECODE` set). `--as-user` is not accepted here: an agent that must act as a person names that person's identity (`slack @alice send …`), so the command says whose name the post goes out under and the sent log records it;
391
+ - when two or more identities are configured. Outside an agent, `--as-user` also passes, as before.
392
392
 
393
- This closes the trap where an agent's `slack ask` without `--as-bot` was posted as the person.
393
+ This closes the trap where an agent's `slack ask` without `--as-bot` was posted as the person. The default for an agent is the bot: `slack @<bot> ask @alice …`.
394
+
395
+ From inside an agent, `ask` also refuses a question whose asker is the one asked: one in the person's own DM, or one that tags that person while posting as them. Ask them through the bot instead. A person at a terminal only gets a warning for their own DM.
394
396
 
395
397
  ### Language packs (locales/*.json)
396
398