macroclaw 0.10.0 → 0.11.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.
- package/package.json +4 -2
- package/src/app.ts +1 -2
- package/src/orchestrator.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "macroclaw",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Telegram-to-Claude-Code bridge",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"scripts": {
|
|
20
20
|
"start": "bun run src/main.ts",
|
|
21
21
|
"dev": "bun run --watch src/main.ts",
|
|
22
|
-
"check": "tsc --noEmit && biome check && bun test",
|
|
22
|
+
"check": "tsc --noEmit && biome check && bun test && bun run depcheck",
|
|
23
|
+
"depcheck": "depcruise src --config .dependency-cruiser.json --output-type err",
|
|
23
24
|
"typecheck": "tsc --noEmit",
|
|
24
25
|
"lint": "biome check",
|
|
25
26
|
"lint:fix": "biome check --fix --unsafe",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"@biomejs/biome": "^2.4.6",
|
|
43
44
|
"bun-types": "^1.3.10",
|
|
45
|
+
"dependency-cruiser": "^17.3.8",
|
|
44
46
|
"typescript": "^5.9.3"
|
|
45
47
|
}
|
|
46
48
|
}
|
package/src/app.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Bot } from "grammy";
|
|
2
|
-
import type { Claude } from "./claude";
|
|
3
2
|
import { CronScheduler } from "./cron";
|
|
4
3
|
import { createLogger } from "./logger";
|
|
5
|
-
import { Orchestrator, type OrchestratorResponse } from "./orchestrator";
|
|
4
|
+
import { type Claude, Orchestrator, type OrchestratorResponse } from "./orchestrator";
|
|
6
5
|
import { isAvailable as isSttAvailable, transcribe } from "./stt";
|
|
7
6
|
import { createBot, downloadFile, sendFile, sendResponse } from "./telegram";
|
|
8
7
|
|
package/src/orchestrator.ts
CHANGED
|
@@ -12,7 +12,8 @@ import { createLogger } from "./logger";
|
|
|
12
12
|
import { CRON_TIMEOUT, MAIN_TIMEOUT, SYSTEM_PROMPT } from "./prompts";
|
|
13
13
|
import { Queue } from "./queue";
|
|
14
14
|
import { loadSessions, saveSessions } from "./sessions";
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
type ButtonSpec = string | { text: string; data: string };
|
|
16
17
|
|
|
17
18
|
const log = createLogger("orchestrator");
|
|
18
19
|
|
|
@@ -42,6 +43,7 @@ const textResultType = { type: "text" } as const;
|
|
|
42
43
|
// --- Public response type ---
|
|
43
44
|
|
|
44
45
|
export type { ButtonSpec };
|
|
46
|
+
export type { Claude };
|
|
45
47
|
|
|
46
48
|
export interface OrchestratorResponse {
|
|
47
49
|
message: string;
|