@hyperwindmill/caretaker-cli 0.27.0 → 0.29.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 (33) hide show
  1. package/dist/cli/web/scheduler/telegram.d.ts +27 -0
  2. package/dist/cli/web/scheduler/telegram.d.ts.map +1 -1
  3. package/dist/cli/web/scheduler/telegram.js +133 -78
  4. package/dist/cli/web/scheduler/telegram_media.d.ts +73 -0
  5. package/dist/cli/web/scheduler/telegram_media.d.ts.map +1 -0
  6. package/dist/cli/web/scheduler/telegram_media.js +90 -0
  7. package/dist/cli/web/scheduler/telegram_window.d.ts +68 -0
  8. package/dist/cli/web/scheduler/telegram_window.d.ts.map +1 -0
  9. package/dist/cli/web/scheduler/telegram_window.js +144 -0
  10. package/dist/harness/acp_policy.d.ts +1 -1
  11. package/dist/harness/acp_policy.d.ts.map +1 -1
  12. package/dist/harness/acp_pool.d.ts +1 -1
  13. package/dist/harness/acp_pool.d.ts.map +1 -1
  14. package/dist/harness/acp_pool.js +5 -1
  15. package/dist/tui/agents.d.ts +1 -1
  16. package/dist/tui/agents.d.ts.map +1 -1
  17. package/dist/tui/app.d.ts +1 -1
  18. package/dist/tui/app.d.ts.map +1 -1
  19. package/dist/tui/chat.d.ts +1 -1
  20. package/dist/tui/chat.d.ts.map +1 -1
  21. package/dist/tui/logo.d.ts +1 -1
  22. package/dist/tui/logo.d.ts.map +1 -1
  23. package/dist/tui/mcp_servers.d.ts +1 -1
  24. package/dist/tui/mcp_servers.d.ts.map +1 -1
  25. package/dist/tui/plugins.d.ts +1 -1
  26. package/dist/tui/plugins.d.ts.map +1 -1
  27. package/dist/tui/providers.d.ts +1 -1
  28. package/dist/tui/providers.d.ts.map +1 -1
  29. package/dist/webview/standalone.js +5116 -3783
  30. package/dist/webview/standalone.js.map +4 -4
  31. package/dist/webview/vad/ort-wasm-simd-threaded.mjs +48 -47
  32. package/dist/webview/vad/ort-wasm-simd-threaded.wasm +0 -0
  33. package/package.json +33 -33
@@ -0,0 +1,144 @@
1
+ import { existsSync } from 'node:fs';
2
+ import { writeFile, readFile, rename } from 'node:fs/promises';
3
+ import { join } from 'node:path';
4
+ import { schedulerLogsDir, ensureSchedulerLogsDir } from './logs.js';
5
+ /** How long a caption-less image waits for text in a cold chat. */
6
+ export const HOLD_MS = 180_000;
7
+ /** How recently the chat must have flushed to count as warm. */
8
+ export const WARM_MS = 120_000;
9
+ export const MAX_ENTRIES = 20;
10
+ /** A Telegram media group holds up to 10 items; a full album must survive. */
11
+ export const MAX_IMAGES = 10;
12
+ /** The session every message of a chat lands in, on every surface that touches it. */
13
+ export function telegramSessionId(chatId) {
14
+ return `telegram_${chatId}`;
15
+ }
16
+ /**
17
+ * Whether the window should be delivered now. Text always goes straight
18
+ * through; an image on its own waits for a caption, unless the chat flushed
19
+ * recently enough that the agent already has the context in its history.
20
+ */
21
+ export function decideFlush(chat, now) {
22
+ if (chat.entries.length === 0)
23
+ return 'idle';
24
+ if (chat.entries.some((e) => !!e.text))
25
+ return 'flush';
26
+ if (chat.lastFlushAt !== undefined && now - chat.lastFlushAt < WARM_MS)
27
+ return 'flush';
28
+ if (now - chat.firstAt >= HOLD_MS)
29
+ return 'flush';
30
+ return 'hold';
31
+ }
32
+ function imageCount(chat) {
33
+ return chat.entries.reduce((n, e) => n + e.attachments.length, 0);
34
+ }
35
+ /**
36
+ * Whether one more message would overflow the window. The image cap applies
37
+ * only to a message that carries an image: refusing the text typed under a
38
+ * full album would drop the very question that flushes the window.
39
+ */
40
+ export function isAtCapacity(chat, incomingHasImage) {
41
+ if (chat.entries.length >= MAX_ENTRIES)
42
+ return true;
43
+ return incomingHasImage && imageCount(chat) >= MAX_IMAGES;
44
+ }
45
+ export function noTextLine(count) {
46
+ return count === 1
47
+ ? "(L'utente ha inviato un'immagine senza scrivere nulla.)"
48
+ : `(L'utente ha inviato ${count} immagini senza scrivere nulla.)`;
49
+ }
50
+ /**
51
+ * The single user turn a flushed window becomes. One entry from one sender
52
+ * reproduces the legacy format byte for byte.
53
+ */
54
+ export function buildMergedPrompt(chat, isNewSession) {
55
+ const chatBlock = `Chat: ${chat.chatLabel} (id: ${chat.chatId}, type: ${chat.chatType})`;
56
+ const senders = new Set(chat.entries.map((e) => e.fromLabel));
57
+ if (senders.size <= 1) {
58
+ const from = chat.entries[0]?.fromLabel ?? 'unknown';
59
+ const header = isNewSession ? `From: ${from}\n${chatBlock}` : `From: ${from}`;
60
+ const texts = chat.entries.map((e) => e.text).filter((t) => !!t);
61
+ const body = texts.length > 0 ? texts.join('\n\n') : noTextLine(imageCount(chat));
62
+ return `${header}\n\n${body}`;
63
+ }
64
+ // Mixed senders: the agent needs to know who said what, so each entry
65
+ // carries its own From line and the chat block moves to the top.
66
+ const blocks = chat.entries.map((e) => `From: ${e.fromLabel}\n\n${e.text || noTextLine(e.attachments.length || 1)}`);
67
+ return (isNewSession ? `${chatBlock}\n\n` : '') + blocks.join('\n\n');
68
+ }
69
+ export function pendingStatePath(taskId) {
70
+ return join(schedulerLogsDir(), `${taskId}.pending.json`);
71
+ }
72
+ /**
73
+ * tmp + rename, with the Windows-style transient lock retry. Shared with
74
+ * saveTelegramOffset so the retry policy lives in one place.
75
+ */
76
+ export async function atomicWriteFile(path, contents) {
77
+ const tmpPath = `${path}.tmp.${process.pid}.${Date.now()}`;
78
+ await writeFile(tmpPath, contents, 'utf8');
79
+ const maxAttempts = process.platform === 'win32' ? 5 : 1;
80
+ let lastErr;
81
+ for (let attempt = 1; attempt <= maxAttempts; attempt++) {
82
+ try {
83
+ await rename(tmpPath, path);
84
+ return;
85
+ }
86
+ catch (err) {
87
+ lastErr = err;
88
+ const code = err.code;
89
+ const retryable = code === 'EACCES' || code === 'EPERM' || code === 'EBUSY';
90
+ if (attempt === maxAttempts || !retryable)
91
+ break;
92
+ await new Promise((r) => setTimeout(r, 50 * 2 ** (attempt - 1)));
93
+ }
94
+ }
95
+ throw lastErr;
96
+ }
97
+ function isUsableChat(chat) {
98
+ const c = chat;
99
+ return (!!c &&
100
+ typeof c === 'object' &&
101
+ typeof c.chatId === 'number' &&
102
+ typeof c.firstAt === 'number' &&
103
+ Array.isArray(c.entries) &&
104
+ c.entries.every((e) => !!e && Array.isArray(e.attachments)));
105
+ }
106
+ /**
107
+ * The buffer must survive a restart: the Telegram offset is committed before
108
+ * an entry is buffered, so losing the file loses the message. Anything
109
+ * unreadable degrades to an empty window rather than wedging the poller.
110
+ */
111
+ export async function loadPendingState(taskId) {
112
+ const path = pendingStatePath(taskId);
113
+ if (!existsSync(path))
114
+ return { v: 1, chats: {} };
115
+ try {
116
+ const parsed = JSON.parse(await readFile(path, 'utf8'));
117
+ if (!parsed || parsed.v !== 1 || typeof parsed.chats !== 'object' || parsed.chats === null) {
118
+ console.error(`[scheduler/telegram] Unusable pending state at ${path}, starting empty`);
119
+ return { v: 1, chats: {} };
120
+ }
121
+ // A structurally valid file can still hold a broken chat record. Dropping
122
+ // the bad ones self-heals on the next save; letting one through throws on
123
+ // every tick, and since the offset is already committed that loses every
124
+ // incoming message silently and forever.
125
+ const chats = {};
126
+ for (const [key, chat] of Object.entries(parsed.chats)) {
127
+ if (isUsableChat(chat)) {
128
+ chats[key] = chat;
129
+ }
130
+ else {
131
+ console.error(`[scheduler/telegram] Dropping malformed chat record ${key} in ${path}`);
132
+ }
133
+ }
134
+ return { v: 1, chats };
135
+ }
136
+ catch (err) {
137
+ console.error(`[scheduler/telegram] Failed to read pending state ${path}:`, err);
138
+ return { v: 1, chats: {} };
139
+ }
140
+ }
141
+ export async function savePendingState(taskId, state) {
142
+ await ensureSchedulerLogsDir();
143
+ await atomicWriteFile(pendingStatePath(taskId), JSON.stringify(state));
144
+ }
@@ -1,4 +1,4 @@
1
- import type { PermissionOption, RequestPermissionRequest, RequestPermissionResponse } from '@agentclientprotocol/sdk';
1
+ import type { PermissionOption, RequestPermissionRequest, RequestPermissionResponse } from '@agentclientprotocol/sdk/unstable';
2
2
  import type { ConfirmDecision } from './tools/index.js';
3
3
  export type AcpPolicyMode = 'interactive' | 'unattended' | 'planner' | 'deny-all';
4
4
  export type AcpRunExtras = {
@@ -1 +1 @@
1
- {"version":3,"file":"acp_policy.d.ts","sourceRoot":"","sources":["../../src/harness/acp_policy.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,MAAM,aAAa,GAAG,aAAa,GAAG,YAAY,GAAG,SAAS,GAAG,UAAU,CAAC;AAElF,MAAM,MAAM,YAAY,GAAG;IACzB,4EAA4E;IAC5E,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,kEAAkE;IAClE,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,gFAAgF;IAChF,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAE,CAAC,CAAC;IAClG;oDACgD;IAChD,MAAM,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;AAM1D,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,wBAAwB,EAC7B,MAAM,EAAE,YAAY,GACnB,kBAAkB,CAqBpB;AAED;8EAC8E;AAC9E,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,gBAAgB,EAAE,EAC3B,QAAQ,EAAE,eAAe,GAAG,MAAM,GACjC,yBAAyB,CAY3B;AAED;sCACsC;AACtC,wBAAgB,aAAa,CAAC,CAAC,EAAE;IAC/B,QAAQ,EAAE,OAAO,CAAC;IACl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BAAgB,EAAE,EAC3B,QAAQ,EAAE,eAAe,GAAG,MAAM,GACjC,yBAAyB,CAY3B;AAED;sCACsC;AACtC,wBAAgB,aAAa,CAAC,CAAC,EAAE;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACxC,MAAM,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CACjD,GAAG,YAAY,CAWf"}
@@ -1,4 +1,4 @@
1
- import { type ClientApp, type ClientConnection, type InitializeResponse, type RequestPermissionRequest, type RequestPermissionResponse, type SessionNotification, type Usage } from '@agentclientprotocol/sdk';
1
+ import { type ClientApp, type ClientConnection, type InitializeResponse, type RequestPermissionRequest, type RequestPermissionResponse, type SessionNotification, type Usage } from '@agentclientprotocol/sdk/unstable';
2
2
  import type { ProviderConfig } from '../types.js';
3
3
  export type TurnBinding = {
4
4
  /** null until session/new returns (drop nothing: the first updates can only
@@ -1 +1 @@
1
- {"version":3,"file":"acp_pool.d.ts","sourceRoot":"","sources":["../../src/harness/acp_pool.ts"],"names":[],"mappings":"AAYA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,KAAK,EACX,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,MAAM,MAAM,WAAW,GAAG;IACxB;2DACuD;IACvD,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,CAAC,CAAC,EAAE,mBAAmB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D,YAAY,EA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F;AAED,wBAAgB,iBAAiB,IAAI,IAAI,CAUxC"}
@@ -7,9 +7,13 @@
7
7
  // Handlers are registered once per child at client() construction and route
8
8
  // through a mutable `binding` the runner sets at turn start — turns on one
9
9
  // session are serialized by the surfaces, so there is no race.
10
+ //
11
+ // Every ACP import goes through `@agentclientprotocol/sdk/unstable`: prompt
12
+ // `usage` (the context-window %) is an unstable ACP v1 feature, and SDK 2.x
13
+ // exposes only stable schemas and types from the package root.
10
14
  import { spawn as nodeSpawn } from 'node:child_process';
11
15
  import { Readable, Writable } from 'node:stream';
12
- import { client, ndJsonStream, PROTOCOL_VERSION, } from '@agentclientprotocol/sdk';
16
+ import { client, ndJsonStream, PROTOCOL_VERSION, } from '@agentclientprotocol/sdk/unstable';
13
17
  import { mergeShellEnv } from './tools/builtin/shell-env.js';
14
18
  const defaultConnector = (provider, app) => {
15
19
  if (!provider.command) {
@@ -1,4 +1,4 @@
1
1
  export default function Agents({ onBack }: {
2
2
  onBack: () => void;
3
- }): import("react/jsx-runtime").JSX.Element;
3
+ }): import("react").JSX.Element;
4
4
  //# sourceMappingURL=agents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/tui/agents.tsx"],"names":[],"mappings":"AAoCA,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,2CA+XhE"}
1
+ {"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/tui/agents.tsx"],"names":[],"mappings":"AAoCA,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,+BA+XhE"}
package/dist/tui/app.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export default function App(): import("react/jsx-runtime").JSX.Element;
1
+ export default function App(): import("react").JSX.Element;
2
2
  //# sourceMappingURL=app.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/tui/app.tsx"],"names":[],"mappings":"AAWA,MAAM,CAAC,OAAO,UAAU,GAAG,4CAyC1B"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/tui/app.tsx"],"names":[],"mappings":"AAWA,MAAM,CAAC,OAAO,UAAU,GAAG,gCAyC1B"}
@@ -6,5 +6,5 @@ export default function ChatScreen({ agent, provider, initialSession, onBack, }:
6
6
  /** Existing session to resume; null/undefined = new chat (created on first prompt submit). */
7
7
  initialSession?: SessionMetaRecord | null;
8
8
  onBack: () => void;
9
- }): import("react/jsx-runtime").JSX.Element;
9
+ }): import("react").JSX.Element;
10
10
  //# sourceMappingURL=chat.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/tui/chat.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAgC,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI/D,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,KAAK,EACL,QAAQ,EACR,cAAc,EACd,MAAM,GACP,EAAE;IACD,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,cAAc,CAAC;IACzB,8FAA8F;IAC9F,cAAc,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC1C,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,2CAsSA"}
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/tui/chat.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAgC,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAI/D,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,KAAK,EACL,QAAQ,EACR,cAAc,EACd,MAAM,GACP,EAAE;IACD,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,cAAc,CAAC;IACzB,8FAA8F;IAC9F,cAAc,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAC1C,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,+BAsSA"}
@@ -1,2 +1,2 @@
1
- export default function Logo(): import("react/jsx-runtime").JSX.Element;
1
+ export default function Logo(): import("react").JSX.Element;
2
2
  //# sourceMappingURL=logo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/tui/logo.tsx"],"names":[],"mappings":"AAkBA,MAAM,CAAC,OAAO,UAAU,IAAI,4CAe3B"}
1
+ {"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../src/tui/logo.tsx"],"names":[],"mappings":"AAkBA,MAAM,CAAC,OAAO,UAAU,IAAI,gCAe3B"}
@@ -1,4 +1,4 @@
1
1
  export default function McpServers({ onBack }: {
2
2
  onBack: () => void;
3
- }): import("react/jsx-runtime").JSX.Element;
3
+ }): import("react").JSX.Element;
4
4
  //# sourceMappingURL=mcp_servers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mcp_servers.d.ts","sourceRoot":"","sources":["../../src/tui/mcp_servers.tsx"],"names":[],"mappings":"AAkBA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,2CAmPpE"}
1
+ {"version":3,"file":"mcp_servers.d.ts","sourceRoot":"","sources":["../../src/tui/mcp_servers.tsx"],"names":[],"mappings":"AAkBA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,+BAmPpE"}
@@ -1,4 +1,4 @@
1
1
  export default function Plugins({ onBack }: {
2
2
  onBack: () => void;
3
- }): import("react/jsx-runtime").JSX.Element;
3
+ }): import("react").JSX.Element;
4
4
  //# sourceMappingURL=plugins.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/tui/plugins.tsx"],"names":[],"mappings":"AAkBA,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,2CA0OjE"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/tui/plugins.tsx"],"names":[],"mappings":"AAkBA,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,+BA0OjE"}
@@ -1,4 +1,4 @@
1
1
  export default function Providers({ onBack }: {
2
2
  onBack: () => void;
3
- }): import("react/jsx-runtime").JSX.Element;
3
+ }): import("react").JSX.Element;
4
4
  //# sourceMappingURL=providers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/tui/providers.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,2CAmLnE"}
1
+ {"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/tui/providers.tsx"],"names":[],"mappings":"AAUA,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,IAAI,CAAA;CAAE,+BAmLnE"}