shadok-ai 0.19.21 → 0.19.23
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 +7 -0
- package/dist/config.d.ts +1 -0
- package/dist/config.js +8 -2
- package/dist/config.js.map +1 -1
- package/dist/groups.d.ts +25 -1
- package/dist/groups.js +68 -8
- package/dist/groups.js.map +1 -1
- package/dist/server.js +91 -5
- package/dist/server.js.map +1 -1
- package/dist/telegram.js +6 -1
- package/dist/telegram.js.map +1 -1
- package/dist/tg-guests.d.ts +42 -1
- package/dist/tg-guests.js +72 -10
- package/dist/tg-guests.js.map +1 -1
- package/package.json +1 -1
package/dist/tg-guests.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BOOTSTRAP_ADMIN } from "./accounts.js";
|
|
2
2
|
import { isolationRefusal } from "./capability.js";
|
|
3
|
-
import { viewerInGroup } from "./groups.js";
|
|
3
|
+
import { lastMemberRefusal, viewerInGroup } from "./groups.js";
|
|
4
4
|
export const TG_MODES = ["group", "group+dm", "dm-only"];
|
|
5
5
|
/** Anything unrecognised reads as `group` — the config file is hand-editable,
|
|
6
6
|
* and the classic mode is the one that changes nothing. */
|
|
@@ -114,6 +114,10 @@ export function withInstanceMember(groups, groupId, member) {
|
|
|
114
114
|
const has = g.members.includes(BOOTSTRAP_ADMIN);
|
|
115
115
|
if (member === has)
|
|
116
116
|
return g;
|
|
117
|
+
// Never the last member out: a restricted group with no member is invisible
|
|
118
|
+
// to everyone, admin included, and can no longer be deleted (lastMemberRefusal).
|
|
119
|
+
if (!member && lastMemberRefusal(g, BOOTSTRAP_ADMIN))
|
|
120
|
+
return g;
|
|
117
121
|
return {
|
|
118
122
|
...g,
|
|
119
123
|
members: member ? [...g.members, BOOTSTRAP_ADMIN] : g.members.filter((m) => m !== BOOTSTRAP_ADMIN),
|
|
@@ -134,7 +138,10 @@ export function normalizeGuestSetup(want) {
|
|
|
134
138
|
const group = want.group?.trim() || null;
|
|
135
139
|
const profile = want.profile?.trim() || null;
|
|
136
140
|
const mode = normalizeTgMode(want.mode);
|
|
137
|
-
|
|
141
|
+
const out = { mode: mode !== "group" && (!group || !profile) ? "group" : mode, group, profile };
|
|
142
|
+
if (want.joined === true)
|
|
143
|
+
out.joined = true;
|
|
144
|
+
return out;
|
|
138
145
|
}
|
|
139
146
|
/**
|
|
140
147
|
* The whole `PUT /telegram` guest decision, transport-free — the twin of
|
|
@@ -146,7 +153,9 @@ export function normalizeGuestSetup(want) {
|
|
|
146
153
|
*
|
|
147
154
|
* The membership is MOVED rather than merely added: a change of group must take
|
|
148
155
|
* the instance out of the old one, or an abandoned group would keep a member
|
|
149
|
-
* that outlives the reason it was put there.
|
|
156
|
+
* that outlives the reason it was put there. But only a membership THIS flow
|
|
157
|
+
* added is taken back (`joined`): the instance's name is the human admin's own
|
|
158
|
+
* account, and a membership they had before the door opened is theirs.
|
|
150
159
|
*/
|
|
151
160
|
export function guestPatchFlow(input) {
|
|
152
161
|
const want = normalizeGuestSetup(input.want);
|
|
@@ -161,13 +170,24 @@ export function guestPatchFlow(input) {
|
|
|
161
170
|
return { ok: false, status: 400, error };
|
|
162
171
|
let groups = [...input.groups];
|
|
163
172
|
const old = input.previous.group?.trim() || null;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
groups = withInstanceMember(groups,
|
|
170
|
-
|
|
173
|
+
// Did the CURRENT open door add the membership? Only then is it ours to undo.
|
|
174
|
+
const ours = guestsOpen(input.previous) && input.previous.joined === true && old ? old : null;
|
|
175
|
+
const target = guestsOpen(want) ? want.group : null;
|
|
176
|
+
const setup = { mode: want.mode, group: want.group, profile: want.profile };
|
|
177
|
+
if (ours && ours !== target)
|
|
178
|
+
groups = withInstanceMember(groups, ours, false);
|
|
179
|
+
if (target) {
|
|
180
|
+
if (target === ours)
|
|
181
|
+
setup.joined = true;
|
|
182
|
+
else {
|
|
183
|
+
const already = groups.find((g) => g.id === target)?.members.includes(BOOTSTRAP_ADMIN) ?? false;
|
|
184
|
+
if (!already) {
|
|
185
|
+
groups = withInstanceMember(groups, target, true);
|
|
186
|
+
setup.joined = true;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return { ok: true, setup, groups };
|
|
171
191
|
}
|
|
172
192
|
/**
|
|
173
193
|
* Pure: should this spawn be a guest's, and with what group and profile?
|
|
@@ -194,6 +214,48 @@ export function guestSpawnPlan(input) {
|
|
|
194
214
|
return { kind: "refused", code: "guest-closed", message: "this instance is not accepting guests" };
|
|
195
215
|
return { kind: "guest", group: s.group, profile: s.profile };
|
|
196
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* The directory, under the guest group's home, that belongs to ONE person.
|
|
219
|
+
* `null` when the id is not one Telegram could have sent.
|
|
220
|
+
*
|
|
221
|
+
* Every guest of an instance lives in the SAME group — that is shadok's
|
|
222
|
+
* isolation unit — so they share a Unix user and a home, and until now they
|
|
223
|
+
* shared the working directory too. That is where Claude Code keeps a
|
|
224
|
+
* project's memory and where a `CLAUDE.md` is looked up, so one agent's notes
|
|
225
|
+
* about the person it was talking to were loaded by the next agent at spawn:
|
|
226
|
+
* two strangers, one memory, and nothing on screen to show it.
|
|
227
|
+
*
|
|
228
|
+
* A directory per person closes that, and the Telegram id is the natural name:
|
|
229
|
+
* a DM's chat id IS the sender's user id, so the same person always comes back
|
|
230
|
+
* to the same folder — including after their agent is deleted, which ends a
|
|
231
|
+
* session and is not meant to erase someone.
|
|
232
|
+
*
|
|
233
|
+
* Say what it is NOT, or it reads as a wall (invariant 47): same Unix user,
|
|
234
|
+
* same home, so an agent that goes looking can still read its neighbour's
|
|
235
|
+
* folder. It stops the ACCIDENT, not a determined agent. A real wall would be
|
|
236
|
+
* one group per person, hence one provisioned Unix user per stranger who
|
|
237
|
+
* writes to the bot.
|
|
238
|
+
*
|
|
239
|
+
* The name is built from untrusted input, so it is rebuilt rather than
|
|
240
|
+
* sanitised: only a plain positive integer is accepted, and the result can
|
|
241
|
+
* only ever be `tg-<digits>` — no separator, no dot, nothing that could climb
|
|
242
|
+
* out of the home it is joined to.
|
|
243
|
+
*/
|
|
244
|
+
export function guestWorkDirName(chatId) {
|
|
245
|
+
// `Number()` alone is too generous for a name: it reads "0x10" as 16 and
|
|
246
|
+
// "1e3" as 1000, so two spellings of one id would be two folders — and the
|
|
247
|
+
// id is what makes a person always come back to the same one.
|
|
248
|
+
const n = typeof chatId === "number"
|
|
249
|
+
? chatId
|
|
250
|
+
: typeof chatId === "string" && /^\d+$/.test(chatId.trim())
|
|
251
|
+
? Number(chatId.trim())
|
|
252
|
+
: NaN;
|
|
253
|
+
// A DM's chat id is a positive integer; a group's is negative, and a guest
|
|
254
|
+
// never has one. `MAX_SAFE_INTEGER` is the ceiling of what JSON gave us.
|
|
255
|
+
if (!Number.isSafeInteger(n) || n <= 0)
|
|
256
|
+
return null;
|
|
257
|
+
return `tg-${n}`;
|
|
258
|
+
}
|
|
197
259
|
/**
|
|
198
260
|
* What a guest is told when they type a command, or null when the message is
|
|
199
261
|
* none of our business as a command.
|
package/dist/tg-guests.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tg-guests.js","sourceRoot":"","sources":["../src/tg-guests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAuB,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAA2B,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"tg-guests.js","sourceRoot":"","sources":["../src/tg-guests.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAuB,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAA2B,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAuCxF,MAAM,CAAC,M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