wherever-dev 0.25.1 → 0.26.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/assistant-channels.d.ts +42 -1
  3. package/dist/assistant-channels.d.ts.map +1 -1
  4. package/dist/assistant-channels.js +18 -0
  5. package/dist/assistant-channels.js.map +1 -1
  6. package/dist/cli-requests.d.ts +7 -0
  7. package/dist/cli-requests.d.ts.map +1 -1
  8. package/dist/cli-requests.js +27 -0
  9. package/dist/cli-requests.js.map +1 -1
  10. package/dist/index.js +197 -10
  11. package/dist/index.js.map +1 -1
  12. package/dist/kenning-delivery.d.ts +42 -0
  13. package/dist/kenning-delivery.d.ts.map +1 -0
  14. package/dist/kenning-delivery.js +40 -0
  15. package/dist/kenning-delivery.js.map +1 -0
  16. package/dist/kenning-host.d.ts +93 -0
  17. package/dist/kenning-host.d.ts.map +1 -0
  18. package/dist/kenning-host.js +165 -0
  19. package/dist/kenning-host.js.map +1 -0
  20. package/dist/kenning-human-input.d.ts +70 -0
  21. package/dist/kenning-human-input.d.ts.map +1 -0
  22. package/dist/kenning-human-input.js +87 -0
  23. package/dist/kenning-human-input.js.map +1 -0
  24. package/dist/kenning-service.d.ts +243 -0
  25. package/dist/kenning-service.d.ts.map +1 -0
  26. package/dist/kenning-service.js +516 -0
  27. package/dist/kenning-service.js.map +1 -0
  28. package/dist/protocol.d.ts +41 -1
  29. package/dist/protocol.d.ts.map +1 -1
  30. package/dist/protocol.js.map +1 -1
  31. package/dist/reply-routing.d.ts +26 -0
  32. package/dist/reply-routing.d.ts.map +1 -1
  33. package/dist/reply-routing.js +35 -0
  34. package/dist/reply-routing.js.map +1 -1
  35. package/dist/session-pool.d.ts +35 -0
  36. package/dist/session-pool.d.ts.map +1 -1
  37. package/dist/session-pool.js +104 -7
  38. package/dist/session-pool.js.map +1 -1
  39. package/dist/session-transcript.d.ts.map +1 -1
  40. package/dist/session-transcript.js +34 -2
  41. package/dist/session-transcript.js.map +1 -1
  42. package/dist/session-types.d.ts +24 -1
  43. package/dist/session-types.d.ts.map +1 -1
  44. package/dist/telegram-channel.d.ts +51 -0
  45. package/dist/telegram-channel.d.ts.map +1 -1
  46. package/dist/telegram-channel.js +105 -5
  47. package/dist/telegram-channel.js.map +1 -1
  48. package/package.json +3 -1
  49. package/public/_app/immutable/assets/0.CBxclSgC.css +1 -0
  50. package/public/_app/immutable/chunks/{Cu1cHhsx.js → B_u4L4CL.js} +2 -2
  51. package/public/_app/immutable/chunks/{Cu1cHhsx.js.map → B_u4L4CL.js.map} +1 -1
  52. package/public/_app/immutable/chunks/{C6iQexJ-.js → BgzcA-pV.js} +2 -2
  53. package/public/_app/immutable/chunks/{C6iQexJ-.js.map → BgzcA-pV.js.map} +1 -1
  54. package/public/_app/immutable/chunks/wWzBzbDK.js +2 -0
  55. package/public/_app/immutable/chunks/wWzBzbDK.js.map +1 -0
  56. package/public/_app/immutable/entry/{app.DNzngO5O.js → app.CBSjrM4B.js} +3 -3
  57. package/public/_app/immutable/entry/{app.DNzngO5O.js.map → app.CBSjrM4B.js.map} +1 -1
  58. package/public/_app/immutable/entry/start.fPf-MumQ.js +2 -0
  59. package/public/_app/immutable/entry/start.fPf-MumQ.js.map +1 -0
  60. package/public/_app/immutable/nodes/{0.BS7xCfzW.js → 0.hee657hN.js} +3 -3
  61. package/public/_app/immutable/nodes/{0.BS7xCfzW.js.map → 0.hee657hN.js.map} +1 -1
  62. package/public/_app/immutable/nodes/{1.CkyZ98Lg.js → 1.eykDFZ1z.js} +2 -2
  63. package/public/_app/immutable/nodes/{1.CkyZ98Lg.js.map → 1.eykDFZ1z.js.map} +1 -1
  64. package/public/_app/immutable/nodes/2.DsE4vG-2.js +127 -0
  65. package/public/_app/immutable/nodes/2.DsE4vG-2.js.map +1 -0
  66. package/public/_app/version.json +1 -1
  67. package/public/index.html +11 -11
  68. package/public/service-worker.js +1 -1
  69. package/public/_app/immutable/assets/0.hWfYEET-.css +0 -1
  70. package/public/_app/immutable/chunks/D-x4GEMV.js +0 -2
  71. package/public/_app/immutable/chunks/D-x4GEMV.js.map +0 -1
  72. package/public/_app/immutable/entry/start.B03g92wB.js +0 -2
  73. package/public/_app/immutable/entry/start.B03g92wB.js.map +0 -1
  74. package/public/_app/immutable/nodes/2.CHqhOw3H.js +0 -124
  75. package/public/_app/immutable/nodes/2.CHqhOw3H.js.map +0 -1
@@ -0,0 +1,243 @@
1
+ import type { AttentionItem, Kenning, Presence } from 'kenning';
2
+ /**
3
+ * wherever as a kenning HOST (kenning's spec "Architecture", D20; wherever ADR
4
+ * 0023 for the human-input half). kenning-pi already runs inside every server
5
+ * session as an ordinary extension (presence, delivery, the tools); this module
6
+ * adds what only wherever can do with the same database:
7
+ *
8
+ * - the human's ATTENTION INBOX on the web (a panel, a badge, a reply box) and
9
+ * the PRESENCE of each session in the session list, pushed to dashboards as
10
+ * `kenning_update` frames on every change (polled like kenning's own D6
11
+ * watcher, then throttled like `sessions_updated`);
12
+ * - an authenticated web or Telegram answer is a HUMAN act, so it goes through
13
+ * `answerItem(id, text, {channel})`;
14
+ * - a BLOCKING item is pushed once through the assistant's channels (Web Push,
15
+ * Telegram), linking to the asking session; a Telegram reply to that message
16
+ * answers it.
17
+ *
18
+ * It never creates kenning's database: it opens it once it EXISTS (kenning-pi
19
+ * or the kenning CLI made it), checking every `openPollMs` until then, so a
20
+ * user who does not use kenning gets nothing written. `kenning.enabled: false`
21
+ * in config.json turns it off entirely.
22
+ */
23
+ /** One open attention item, as the web shows it. */
24
+ export interface KenningInboxItemView {
25
+ id: string;
26
+ question: string;
27
+ options: string[] | null;
28
+ blocking: boolean;
29
+ createdAt: number;
30
+ /** The asking session's transcript, normalized like the pool's keys and the listing's `path`. */
31
+ sessionFile: string;
32
+ /** Its session id, for the link that opens it (null when it cannot be told). */
33
+ sessionId: string | null;
34
+ /** Who asks: the session's role, else its folder name. */
35
+ from: string;
36
+ /** How many children's questions this item merges (an orchestrator's, `onBehalfOf`). */
37
+ onBehalfOf: number;
38
+ }
39
+ /** One live session's presence, as the session list shows it. */
40
+ export interface KenningPresenceView {
41
+ sessionFile: string;
42
+ sessionId: string | null;
43
+ roles: string[];
44
+ state: Presence['state'];
45
+ status: string | null;
46
+ waitingOn: string | null;
47
+ }
48
+ /** What a dashboard gets (`kenning_update`). `available` false = no kenning database (or off). */
49
+ export interface KenningSnapshot {
50
+ available: boolean;
51
+ inbox: KenningInboxItemView[];
52
+ presence: KenningPresenceView[];
53
+ /** Deletions this server cascaded through ownership that can still be undone (kenning D24). */
54
+ archives: KenningArchiveView[];
55
+ }
56
+ /** One delete that took a session and everything it owns, undoable until `undoUntil`. */
57
+ export interface KenningArchiveView {
58
+ batch: string;
59
+ /** The session the human deleted (normalized file). */
60
+ root: string;
61
+ /** Every session the batch hid, the root first. */
62
+ sessions: string[];
63
+ at: number;
64
+ undoUntil: number;
65
+ }
66
+ export declare const KENNING_ARCHIVES_FILE = "kenning-archives.json";
67
+ /** A blocking item to push through the channels (`ChannelNotification` shape). */
68
+ export interface KenningNotification {
69
+ itemId: string;
70
+ /** The item's fixed answers (none = free text): Telegram shows them as buttons. */
71
+ options: string[];
72
+ title: string;
73
+ body: string;
74
+ source: string;
75
+ /** The session id a tap opens ('' = the main screen). */
76
+ navigate: string;
77
+ }
78
+ /** What pushing one notification produced: whether anything delivered, and the channel-side refs a reply can name. */
79
+ export interface KenningNotifyOutcome {
80
+ delivered: boolean;
81
+ /** `<channel>:<id>` per message sent (Telegram: `telegram:<chatId>:<messageId>`). */
82
+ refs: string[];
83
+ error?: string;
84
+ }
85
+ export type KenningAnswerResult = {
86
+ ok: true;
87
+ } | {
88
+ ok: false;
89
+ error: string;
90
+ };
91
+ export declare const KENNING_NOTIFIED_FILE = "kenning-notified.json";
92
+ export declare const KENNING_DISABLED_ERROR = "kenning is not available on this server (no kenning database yet, or `kenning.enabled` is false)";
93
+ /**
94
+ * kenning's database dir, as kenning's `defaultStateDir()` (its store.ts)
95
+ * computes it, without loading kenning (and `node:sqlite`) for a user who does
96
+ * not use it. kenning-service.test.ts pins the two together.
97
+ */
98
+ export declare function kenningStateDir(env?: NodeJS.ProcessEnv): string;
99
+ /** A session id from the presence, else from pi's `<timestamp>_<uuid>.jsonl` file name. */
100
+ export declare function sessionIdOf(sessionFile: string, presence: Presence | null | undefined): string | null;
101
+ /** Who a session is to the human: its first role, else its folder name, else its file name. */
102
+ export declare function sessionLabel(sessionFile: string, presence: Presence | null | undefined): string;
103
+ export declare function inboxItemView(item: AttentionItem, presence: Presence | null): KenningInboxItemView;
104
+ export declare function presenceView(p: Presence): KenningPresenceView;
105
+ /** The notification for a blocking item. Pure. */
106
+ export declare function kenningNotification(item: AttentionItem, presence: Presence | null): KenningNotification;
107
+ export interface KenningServiceOptions {
108
+ /** Off = never open kenning (`kenning.enabled: false`). */
109
+ enabled: boolean;
110
+ /** wherever's state dir: where the once-per-item notification record lives (ADR 0006). */
111
+ whereverStateDir: string;
112
+ /** kenning's own state dir (default: kenning's, `KENNING_STATE_DIR` or `$XDG_STATE_HOME/kenning`). */
113
+ kenningStateDir?: string;
114
+ /** Called with a new snapshot whenever it changed (throttled). */
115
+ onUpdate(snapshot: KenningSnapshot): void;
116
+ /** Called on every kenning change, unthrottled (the host wakes evicted children from it). */
117
+ onKenningChange?(): void;
118
+ /** Leading + trailing throttle of `onUpdate`, like `sessions_updated` (default 2000 ms). */
119
+ throttleMs?: number;
120
+ /** How often kenning's database is polled for changes (kenning's D6 interval, default 1000 ms). */
121
+ pollMs?: number;
122
+ /** How often to look for the database before it exists (default 5000 ms). */
123
+ openPollMs?: number;
124
+ /** Re-evaluate the snapshot this often even without a write: a crashed session's presence goes stale by pid, not by a write (default 30 s). */
125
+ refreshMs?: number;
126
+ /** An item no channel delivered is tried again at most this often (default 60 s). */
127
+ notifyRetryMs?: number;
128
+ log?: Pick<Console, 'log' | 'warn' | 'error'>;
129
+ now?: () => number;
130
+ /** kenning's own clock (tests: an archive made "8 days ago"). */
131
+ kenningNow?: () => number;
132
+ }
133
+ export declare class KenningService {
134
+ private readonly opts;
135
+ private kenning;
136
+ private opening;
137
+ private watcher;
138
+ private openTimer;
139
+ private refreshTimer;
140
+ private throttleTimer;
141
+ private lastUpdateAt;
142
+ private lastSent;
143
+ private notifier;
144
+ private notified;
145
+ private notifying;
146
+ /** Items no channel delivered yet: when they were last tried (memory only). */
147
+ private undelivered;
148
+ private stopped;
149
+ private readonly log;
150
+ private readonly now;
151
+ private readonly dbPath;
152
+ constructor(opts: KenningServiceOptions);
153
+ /** Open now if the database exists, else keep looking (unref'd). Never throws. */
154
+ start(): void;
155
+ /** Resolves once the service has tried to open the database (tests, start-up order). */
156
+ ready(): Promise<void>;
157
+ private openPromise;
158
+ get available(): boolean;
159
+ /**
160
+ * Load kenning only now (it brings `node:sqlite`, which Node 22 announces with
161
+ * an ExperimentalWarning) and open the database. A database that exists but
162
+ * will not open is logged once and not retried.
163
+ */
164
+ private open;
165
+ stop(): void;
166
+ /** The current snapshot (sent to a dashboard as it connects). */
167
+ snapshot(): KenningSnapshot;
168
+ /**
169
+ * The human answered an item from an authenticated wherever surface (the web
170
+ * reply box: `web`; a Telegram reply from the paired user: `telegram`). Only
171
+ * ever called for a real human act (ADR 0003): never from a CLI bridge
172
+ * connection, never from a tool.
173
+ */
174
+ answer(itemId: string, text: string, channel: 'web' | 'telegram'): KenningAnswerResult;
175
+ /** The open kenning connection (the spawn/stop host reads ownership through it), or null. */
176
+ api(): Kenning | null;
177
+ /**
178
+ * Per-session lookups the `/sessions` listing makes for every session
179
+ * (owner, archived), memoized until the next kenning change: one indexed
180
+ * query each, but a real listing has thousands of sessions.
181
+ */
182
+ private lookups;
183
+ private lookup;
184
+ /** The session that spawned this one (kenning D23), normalized; null when none or no kenning. */
185
+ ownerOf(sessionFile: string): string | null;
186
+ /** Hidden by a cascaded delete (or another host's archive), within its undo window. */
187
+ isArchived(sessionFile: string): boolean;
188
+ /** Whether deleting this session must cascade (it owns sessions, kenning D24). */
189
+ ownsSessions(sessionFile: string): boolean;
190
+ private archives;
191
+ private archiveViews;
192
+ /**
193
+ * The human deleted a session that owns others (kenning D24): mark it and
194
+ * its whole owned subtree as one batch. The host hides every session in it
195
+ * and keeps their transcripts until the undo window has passed
196
+ * (`purgeExpired`). Null without kenning.
197
+ */
198
+ deleteCascade(sessionFile: string): KenningArchiveView | null;
199
+ /** Undo a cascaded delete within its window: the sessions come back. */
200
+ undoDelete(batch: string): {
201
+ ok: true;
202
+ sessions: string[];
203
+ } | {
204
+ ok: false;
205
+ error: string;
206
+ };
207
+ /**
208
+ * The cascaded deletes whose undo window kenning says has passed
209
+ * (`expiredArchives`): `remove` deletes each transcript for good, then the
210
+ * batch is forgotten. Never before kenning lists it (D24).
211
+ */
212
+ purgeExpired(remove: (sessionFile: string) => void): number;
213
+ private archivesPath;
214
+ private loadArchives;
215
+ private saveArchives;
216
+ /**
217
+ * Where blocking items go (the assistant's channel dispatcher). Set once the
218
+ * channels have started; without one, nothing is pushed or recorded, so the
219
+ * items are pushed when a later start has channels.
220
+ */
221
+ setNotifier(fn: ((n: KenningNotification) => Promise<KenningNotifyOutcome>) | null): void;
222
+ /**
223
+ * A channel-side reply (Telegram: a reply to a message, `ref` =
224
+ * `telegram:<chatId>:<messageId>`). Answers the item that message notified,
225
+ * as the human on `channel`. `handled: false` when the message notified no
226
+ * item: the channel then treats it as an ordinary message.
227
+ */
228
+ answerFromReply(ref: string, text: string, channel: 'telegram'): {
229
+ handled: false;
230
+ } | {
231
+ handled: true;
232
+ reply: string;
233
+ };
234
+ private onChange;
235
+ /** Send the snapshot when it differs from the last one sent. */
236
+ private flush;
237
+ /** Push every open blocking item not pushed before, once (recorded in the state dir). */
238
+ private checkNotifications;
239
+ private notifiedPath;
240
+ private loadNotified;
241
+ private saveNotified;
242
+ }
243
+ //# sourceMappingURL=kenning-service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kenning-service.d.ts","sourceRoot":"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