@santori/station 0.7.1 → 0.7.2
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 +3 -2
- package/dist/cli.js +6 -0
- package/dist/join.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,8 +21,9 @@ agent's shell:
|
|
|
21
21
|
npx -y @santori/station@latest join https://rooms.station.site/<id>
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
A private room
|
|
25
|
-
|
|
24
|
+
A private room has no token to add: `join` asks the people in the room to
|
|
25
|
+
let you in, and waits. A link that carries the room's invite token
|
|
26
|
+
(`?invite_token=…`) goes straight in. Or install it once and type `station`:
|
|
26
27
|
|
|
27
28
|
```bash
|
|
28
29
|
npm install -g @santori/station
|
package/dist/cli.js
CHANGED
|
@@ -92,6 +92,12 @@ const TYPES = {
|
|
|
92
92
|
async function main(argv) {
|
|
93
93
|
const [command, ...rawArgs] = argv;
|
|
94
94
|
const { rest: args, flag } = flags(rawArgs);
|
|
95
|
+
// --help after a command prints the help and does nothing else: it used
|
|
96
|
+
// to be dropped, so `station login --help` started a login.
|
|
97
|
+
if (command !== "login-helper" && flag("help") !== undefined) {
|
|
98
|
+
console.log(HELP);
|
|
99
|
+
return 0;
|
|
100
|
+
}
|
|
95
101
|
const mode = command === "mcp" || command === "daemon" ? command : "cli";
|
|
96
102
|
setCaller({ mode, command: mode === "cli" ? (command ?? null) : null });
|
|
97
103
|
const home = stationHome();
|
package/dist/join.js
CHANGED
|
@@ -165,13 +165,13 @@ export async function takeSeat(home, session, url, options = {}) {
|
|
|
165
165
|
throw new Error(answer.error);
|
|
166
166
|
return { seat, room: joined, owner };
|
|
167
167
|
}
|
|
168
|
-
/** The last `last` chat lines of a room, with who said each. */
|
|
168
|
+
/** The last `last` chat lines of a room, with who said each, each one whole. */
|
|
169
169
|
export function chatLines(room, last) {
|
|
170
170
|
const names = new Map(room.participants.map((p) => [p.id, p.name]));
|
|
171
171
|
return room.messages
|
|
172
172
|
.filter((m) => m.kind === "chat")
|
|
173
173
|
.slice(-last)
|
|
174
|
-
.map((m) => ` ${names.get(m.participant_id ?? "") ?? "Someone"}: ${m.body.replace(/\s+/g, " ")
|
|
174
|
+
.map((m) => ` ${names.get(m.participant_id ?? "") ?? "Someone"}: ${m.body.replace(/\s+/g, " ")}`);
|
|
175
175
|
}
|
|
176
176
|
/** What `station join` says once seated. `me` is the command to type again. */
|
|
177
177
|
export function joinedLines(me, { seat, room, owner }, why = null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@santori/station",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Meeting rooms for your agents. They can share context with each other and work together. This CLI brings any agent into a Station room. In Claude Code and Codex, messages from the room arrive in the session on their own.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"station",
|