wherever-dev 0.21.1 → 0.22.1

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 (103) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/assistant-channels.d.ts +242 -0
  3. package/dist/assistant-channels.d.ts.map +1 -0
  4. package/dist/assistant-channels.js +270 -0
  5. package/dist/assistant-channels.js.map +1 -0
  6. package/dist/assistant-controller.d.ts +228 -0
  7. package/dist/assistant-controller.d.ts.map +1 -0
  8. package/dist/assistant-controller.js +314 -0
  9. package/dist/assistant-controller.js.map +1 -0
  10. package/dist/assistant-cron.d.ts +87 -0
  11. package/dist/assistant-cron.d.ts.map +1 -0
  12. package/dist/assistant-cron.js +352 -0
  13. package/dist/assistant-cron.js.map +1 -0
  14. package/dist/assistant-folder.d.ts +161 -0
  15. package/dist/assistant-folder.d.ts.map +1 -0
  16. package/dist/assistant-folder.js +333 -0
  17. package/dist/assistant-folder.js.map +1 -0
  18. package/dist/assistant-schedule.d.ts +236 -0
  19. package/dist/assistant-schedule.d.ts.map +1 -0
  20. package/dist/assistant-schedule.js +454 -0
  21. package/dist/assistant-schedule.js.map +1 -0
  22. package/dist/assistant-scheduler.d.ts +210 -0
  23. package/dist/assistant-scheduler.d.ts.map +1 -0
  24. package/dist/assistant-scheduler.js +472 -0
  25. package/dist/assistant-scheduler.js.map +1 -0
  26. package/dist/assistant-tool-text.d.ts +40 -0
  27. package/dist/assistant-tool-text.d.ts.map +1 -0
  28. package/dist/assistant-tool-text.js +102 -0
  29. package/dist/assistant-tool-text.js.map +1 -0
  30. package/dist/assistant-tools.d.ts +222 -0
  31. package/dist/assistant-tools.d.ts.map +1 -0
  32. package/dist/assistant-tools.js +411 -0
  33. package/dist/assistant-tools.js.map +1 -0
  34. package/dist/cli-requests.d.ts +90 -0
  35. package/dist/cli-requests.d.ts.map +1 -0
  36. package/dist/cli-requests.js +75 -0
  37. package/dist/cli-requests.js.map +1 -0
  38. package/dist/index.js +427 -7
  39. package/dist/index.js.map +1 -1
  40. package/dist/protocol.d.ts +43 -0
  41. package/dist/protocol.d.ts.map +1 -1
  42. package/dist/reply-routing.d.ts +106 -0
  43. package/dist/reply-routing.d.ts.map +1 -0
  44. package/dist/reply-routing.js +174 -0
  45. package/dist/reply-routing.js.map +1 -0
  46. package/dist/session-pool.d.ts +235 -4
  47. package/dist/session-pool.d.ts.map +1 -1
  48. package/dist/session-pool.js +446 -100
  49. package/dist/session-pool.js.map +1 -1
  50. package/dist/telegram-channel.d.ts +275 -0
  51. package/dist/telegram-channel.d.ts.map +1 -0
  52. package/dist/telegram-channel.js +702 -0
  53. package/dist/telegram-channel.js.map +1 -0
  54. package/dist/telegram-files.d.ts +101 -0
  55. package/dist/telegram-files.d.ts.map +1 -0
  56. package/dist/telegram-files.js +145 -0
  57. package/dist/telegram-files.js.map +1 -0
  58. package/dist/telegram-pairing.d.ts +119 -0
  59. package/dist/telegram-pairing.d.ts.map +1 -0
  60. package/dist/telegram-pairing.js +97 -0
  61. package/dist/telegram-pairing.js.map +1 -0
  62. package/dist/telegram-replies.d.ts +140 -0
  63. package/dist/telegram-replies.d.ts.map +1 -0
  64. package/dist/telegram-replies.js +474 -0
  65. package/dist/telegram-replies.js.map +1 -0
  66. package/dist/telegram-token.d.ts +55 -0
  67. package/dist/telegram-token.d.ts.map +1 -0
  68. package/dist/telegram-token.js +86 -0
  69. package/dist/telegram-token.js.map +1 -0
  70. package/dist/web-push.d.ts +167 -0
  71. package/dist/web-push.d.ts.map +1 -0
  72. package/dist/web-push.js +387 -0
  73. package/dist/web-push.js.map +1 -0
  74. package/package.json +1 -1
  75. package/public/_app/immutable/assets/0.hWfYEET-.css +1 -0
  76. package/public/_app/immutable/chunks/Cuh9gHb6.js +2 -0
  77. package/public/_app/immutable/chunks/Cuh9gHb6.js.map +1 -0
  78. package/public/_app/immutable/chunks/DEUwJYqt.js +2 -0
  79. package/public/_app/immutable/chunks/{BQ9B_G4h.js.map → DEUwJYqt.js.map} +1 -1
  80. package/public/_app/immutable/chunks/DSPDB3Gw.js +2 -0
  81. package/public/_app/immutable/chunks/{BUONgvl4.js.map → DSPDB3Gw.js.map} +1 -1
  82. package/public/_app/immutable/entry/{app.BZO7Xckk.js → app.BkV4f8p8.js} +3 -3
  83. package/public/_app/immutable/entry/{app.BZO7Xckk.js.map → app.BkV4f8p8.js.map} +1 -1
  84. package/public/_app/immutable/entry/start.D5TsAoxn.js +2 -0
  85. package/public/_app/immutable/entry/start.D5TsAoxn.js.map +1 -0
  86. package/public/_app/immutable/nodes/{0.Czz2XmZU.js → 0.DR4K9Ylw.js} +3 -3
  87. package/public/_app/immutable/nodes/{0.Czz2XmZU.js.map → 0.DR4K9Ylw.js.map} +1 -1
  88. package/public/_app/immutable/nodes/{1.DDvrriUW.js → 1.DdqkeKC4.js} +2 -2
  89. package/public/_app/immutable/nodes/{1.DDvrriUW.js.map → 1.DdqkeKC4.js.map} +1 -1
  90. package/public/_app/immutable/nodes/2.n5lfdeec.js +122 -0
  91. package/public/_app/immutable/nodes/2.n5lfdeec.js.map +1 -0
  92. package/public/_app/version.json +1 -1
  93. package/public/index.html +11 -11
  94. package/public/service-worker.js +1 -1
  95. package/public/_app/immutable/assets/0.BKJ49K71.css +0 -1
  96. package/public/_app/immutable/chunks/BQ9B_G4h.js +0 -2
  97. package/public/_app/immutable/chunks/BUONgvl4.js +0 -2
  98. package/public/_app/immutable/chunks/DauELski.js +0 -2
  99. package/public/_app/immutable/chunks/DauELski.js.map +0 -1
  100. package/public/_app/immutable/entry/start.DWD60uNu.js +0 -2
  101. package/public/_app/immutable/entry/start.DWD60uNu.js.map +0 -1
  102. package/public/_app/immutable/nodes/2.C7E8EMKX.js +0 -120
  103. package/public/_app/immutable/nodes/2.C7E8EMKX.js.map +0 -1
@@ -0,0 +1,210 @@
1
+ import { ScheduleStore, type InvalidJob, type JobPlan, type RunEntry, type ScheduleJob, type ScheduleStoreOptions } from './assistant-schedule.js';
2
+ /**
3
+ * The assistant SCHEDULER (spec `assistant-session-and-channels`, ADRs 0014 and
4
+ * 0015): the firing loop inside the wherever server. It reads the intent in
5
+ * `<assistantFolder>/schedule.json` (re-read on every tick, so hand edits are
6
+ * picked up), derives what is due from the run log in the state dir, and fires:
7
+ *
8
+ * - **inline** jobs into the CURRENT assistant session, through the controller's
9
+ * `send(text, origin)`, only once that session is SETTLED with nothing queued
10
+ * (`agent_settled`, not `agent_end`: pi chains follow-ups and retries after
11
+ * `agent_end`). A CLI-bridge session whose extension lacks the `agent_settled`
12
+ * capability falls back to `agent_end`. One inline job at a time: the next
13
+ * waits for the settle of the previous one, so a job never merges into a
14
+ * running exchange.
15
+ * - **isolated** jobs immediately, in parallel, each in a fresh (`forceNew`)
16
+ * session in `<assistantFolder>/jobs/`; the job-to-session mapping is the run
17
+ * log entry (read back by `jobForSession`, for `assistant_notify`).
18
+ *
19
+ * Every send carries the origin `schedule:<jobId>` (ADR 0014), so the pool
20
+ * attributes the reply to the job and no channel hears it: neither mode
21
+ * notifies on its own. A prompt starting with `!` / `!!` is refused (a failed
22
+ * run with outcome `refused`) and never reaches the pool's shell path.
23
+ *
24
+ * Exists only while the assistant is ACTIVE (configured AND the folder lock is
25
+ * held): `server/src/index.ts` builds it beside the controller. Nothing is
26
+ * written (no run log, no timezone state) and no timer is armed before
27
+ * `start()`.
28
+ *
29
+ * Seams: the pure planner `planJob` (assistant-schedule.ts), the
30
+ * `ScheduleStore`, and this loop with an injected clock (`SchedulerClock`),
31
+ * pool port and controller port.
32
+ */
33
+ /** The slice of `SessionPool` the scheduler drives (faked in tests). */
34
+ export interface SchedulerPoolPort {
35
+ createNewSession(cwd: string, modelStr?: string, gitInit?: boolean, createRemote?: boolean, repoVisibility?: 'private' | 'public', forceNew?: boolean): Promise<{
36
+ tracked: {
37
+ sessionFile: string;
38
+ sessionId: string;
39
+ cwd: string;
40
+ };
41
+ error?: string;
42
+ }>;
43
+ sendUserMessage(sessionFile: string, text: string, streamingBehavior?: 'steer' | 'followUp', conversationMode?: boolean, origin?: string): Promise<void>;
44
+ getSession(sessionFile: string): {
45
+ type: 'server' | 'cli';
46
+ } | null;
47
+ isStreaming(sessionFile: string): boolean;
48
+ getCliCapabilities(sessionFile: string): readonly string[] | null;
49
+ /** pi's queued steer + followUp count; null when not readable (not resident, CLI). */
50
+ getQueuedMessageCount(sessionFile: string): number | null;
51
+ subscribeEvents(listener: (sessionFile: string, event: {
52
+ type: string;
53
+ [k: string]: unknown;
54
+ }, destination: string | null) => void): () => void;
55
+ }
56
+ /** The slice of `AssistantController` the scheduler drives (faked in tests). */
57
+ export interface SchedulerControllerPort {
58
+ ensureCurrent(): Promise<{
59
+ sessionFile: string;
60
+ }>;
61
+ send(text: string, origin: string, streamingBehavior?: 'steer' | 'followUp'): Promise<void>;
62
+ status(): {
63
+ currentSessionFile: string | null;
64
+ };
65
+ /** After an aborted settle: clear pi's leftover queue and record what was dropped. */
66
+ clearAfterAbort(sessionFile: string): unknown;
67
+ }
68
+ /** Injected time: the scheduler never reads `Date.now()` or arms a real timer directly. */
69
+ export interface SchedulerClock {
70
+ now(): number;
71
+ /** Arm a one-shot timer; returns its cancel. */
72
+ setTimeout(fn: () => void, ms: number): () => void;
73
+ }
74
+ export declare const realClock: SchedulerClock;
75
+ /** Longest gap between two ticks (each re-reads `schedule.json`, picking up hand edits). */
76
+ export declare const MAX_TICK_MS = 30000;
77
+ /**
78
+ * A CLI-bridge send that never produced an `agent_start` (an extension command
79
+ * handled it in the terminal, which the server cannot see, ADR 0014) stops
80
+ * blocking inline jobs after this long.
81
+ */
82
+ export declare const CLI_START_TIMEOUT_MS = 60000;
83
+ export interface AssistantSchedulerOptions {
84
+ /** The ACTIVE assistant folder (absolute). */
85
+ folder: string;
86
+ /** The wherever state dir. */
87
+ stateDir: string;
88
+ pool: SchedulerPoolPort;
89
+ controller: SchedulerControllerPort;
90
+ clock?: SchedulerClock;
91
+ /** Restart grace window (default 1 h, config `assistantScheduleGraceMinutes`). */
92
+ graceMs?: number;
93
+ /** The timezone the user state is initialised to on first start (default: the system's). */
94
+ systemTimezone?: string;
95
+ /** Called after the user's timezone changed (the tools task pushes `assistant_info_changed`). */
96
+ onTimezoneChange?: (timezone: string) => void;
97
+ store?: ScheduleStoreOptions;
98
+ }
99
+ /** One job as listed (for the schedule tools). */
100
+ export interface ListedJob {
101
+ job: ScheduleJob;
102
+ /** The timezone its times are evaluated in right now. */
103
+ timezone: string;
104
+ state: JobPlan['state'] | 'pending';
105
+ /** Next run (ISO), null when none. */
106
+ next: string | null;
107
+ last: RunEntry | null;
108
+ }
109
+ export interface ScheduleListing {
110
+ timezone: string;
111
+ fileError: string | null;
112
+ jobs: ListedJob[];
113
+ invalid: InvalidJob[];
114
+ }
115
+ export declare class AssistantScheduler {
116
+ readonly store: ScheduleStore;
117
+ private readonly folder;
118
+ private readonly stateDir;
119
+ private readonly pool;
120
+ private readonly controller;
121
+ private readonly clock;
122
+ private readonly graceMs;
123
+ private readonly systemTimezone?;
124
+ private readonly onTimezoneChange?;
125
+ private runLog;
126
+ private timezone;
127
+ private started;
128
+ private stopped;
129
+ private cancelTimer;
130
+ private unsubscribe;
131
+ private ticking;
132
+ private work;
133
+ private lastRead;
134
+ private lastInvalidKey;
135
+ private seen;
136
+ /** Due inline jobs waiting for the assistant session to settle, oldest first. */
137
+ private pendingInline;
138
+ /** Isolated jobs being started (their run entry not written yet). */
139
+ private startingIsolated;
140
+ /** Sessions with a run in progress, as seen from events and our own sends. */
141
+ private runs;
142
+ private draining;
143
+ private jobSessions;
144
+ constructor(opts: AssistantSchedulerOptions);
145
+ /** Load the run log and timezone state, subscribe to the pool, and run the first tick (restart catch-up). */
146
+ start(): Promise<void>;
147
+ stop(): void;
148
+ /** Resolves once the current tick and every send it started have settled (tests, shutdown). */
149
+ idle(): Promise<void>;
150
+ /** The user's current timezone (what a job without `tz` follows). */
151
+ getUserTimezone(): string;
152
+ /**
153
+ * Change the user's timezone (validated IANA name; recorded). Re-plans at
154
+ * once, since every follows-the-user job moves with it. Resolves false when
155
+ * it was already that zone.
156
+ */
157
+ setUserTimezone(timezone: string, source: string): boolean;
158
+ /** Add a job through the store's write queue, then tick (an `at: "now"` job fires at once). */
159
+ addJob(input: Omit<ScheduleJob, 'id'> & {
160
+ id?: string;
161
+ }): Promise<ScheduleJob>;
162
+ removeJob(id: string): Promise<boolean>;
163
+ /** The job an isolated job session was started for, or null. */
164
+ jobForSession(sessionFile: string): string | null;
165
+ /** Every job with its state and last / next run, plus the invalid entries. Re-reads the file. */
166
+ list(): ScheduleListing;
167
+ /**
168
+ * One pass: re-read and validate `schedule.json`, plan every job, record
169
+ * skips, fire what is due, try to deliver pending inline jobs, re-arm the
170
+ * timer. Serialised; safe to call at any time (it is also the test seam).
171
+ */
172
+ tick(): Promise<void>;
173
+ private tickNow;
174
+ private isInFlight;
175
+ /** Remember when a job was first seen, re-enabled, or had its time spec edited. */
176
+ private track;
177
+ /**
178
+ * The planner's `since`: occurrences before it are not "missed". A job with
179
+ * no run yet counts from when this process first saw it (so a job added, or
180
+ * hand-written, while the server was down does not catch up on a run from
181
+ * before it existed); a job re-enabled or edited counts from then. A job WITH
182
+ * runs and no change counts from its last run, which is what lets a restart
183
+ * catch up on a run missed while the server was down.
184
+ */
185
+ private sinceFor;
186
+ private fire;
187
+ private startIsolated;
188
+ /** Deliver the oldest pending inline job if the current assistant session is settled and empty. */
189
+ private drainInline;
190
+ /** Settled with nothing queued: no run in progress (pool or ours) and pi's queues empty. */
191
+ private isIdle;
192
+ private handleEvent;
193
+ private record;
194
+ private arm;
195
+ private reportInvalid;
196
+ private track_;
197
+ private requireRunLog;
198
+ private requireTimezone;
199
+ }
200
+ /** The reply-routing origin of a scheduled send (ADR 0014). */
201
+ export declare function scheduleOrigin(jobId: string): string;
202
+ /**
203
+ * The text a scheduled job sends: `[schedule:<name>] (from <originCwd>, session
204
+ * <originSessionId>) <prompt>`, so the agent knows it is a job and where it came
205
+ * from. A prompt starting with `/` goes WITHOUT the prefix, so command, skill and
206
+ * prompt-template expansion (start-of-message anchored) still work. Missing
207
+ * origin parts are left out (no parenthesis at all when both are).
208
+ */
209
+ export declare function formatScheduledPrompt(job: ScheduleJob): string;
210
+ //# sourceMappingURL=assistant-scheduler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assistant-scheduler.d.ts","sourceRoot":"","sources":["../src/assistant-scheduler.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,aAAa,EAIb,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,oBAAoB,EAG1B,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,wEAAwE;AACxE,MAAM,WAAW,iBAAiB;IAChC,gBAAgB,CACd,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,OAAO,EACjB,YAAY,CAAC,EAAE,OAAO,EACtB,cAAc,CAAC,EAAE,SAAS,GAAG,QAAQ,EACrC,QAAQ,CAAC,EAAE,OAAO,GACjB,OAAO,CAAC;QAAE,OAAO,EAAE;YAAE,WAAW,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,GAAG,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjG,eAAe,CACb,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE,MAAM,EACZ,iBAAiB,CAAC,EAAE,OAAO,GAAG,UAAU,EACxC,gBAAgB,CAAC,EAAE,OAAO,EAC1B,MAAM,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,QAAQ,GAAG,KAAK,CAAA;KAAE,GAAG,IAAI,CAAC;IACnE,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,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