telecoder 0.0.0-stage → 1.2.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/.env.example +363 -0
- package/CHANGELOG.md +1186 -0
- package/LICENSE +22 -0
- package/README.md +126 -2
- package/dist/audio/transcribe.js +50 -0
- package/dist/bin/mcp-server.js +378 -0
- package/dist/bin/tool-result.js +22 -0
- package/dist/bot/access/group-access.js +147 -0
- package/dist/bot/bot.js +592 -0
- package/dist/bot/file-access.js +141 -0
- package/dist/bot/handlers/command/access.js +407 -0
- package/dist/bot/handlers/command/admin.js +827 -0
- package/dist/bot/handlers/command/auto-approve.js +138 -0
- package/dist/bot/handlers/command/btw.js +224 -0
- package/dist/bot/handlers/command/cost.js +409 -0
- package/dist/bot/handlers/command/media.js +197 -0
- package/dist/bot/handlers/command/model.js +305 -0
- package/dist/bot/handlers/command/prefs-scope.js +197 -0
- package/dist/bot/handlers/command/project.js +536 -0
- package/dist/bot/handlers/command/resume.js +321 -0
- package/dist/bot/handlers/command/session.js +438 -0
- package/dist/bot/handlers/command/settings.js +1012 -0
- package/dist/bot/handlers/command/shared.js +210 -0
- package/dist/bot/handlers/command/streaming-mode.js +16 -0
- package/dist/bot/handlers/command/tasks.js +513 -0
- package/dist/bot/handlers/command/topic-store.js +113 -0
- package/dist/bot/handlers/command/topic.js +80 -0
- package/dist/bot/handlers/command.handler.js +772 -0
- package/dist/bot/handlers/fork.handler.js +1109 -0
- package/dist/bot/handlers/media-fallback.js +121 -0
- package/dist/bot/handlers/message/replies.js +133 -0
- package/dist/bot/handlers/message/shared.js +117 -0
- package/dist/bot/handlers/message/throttle.js +49 -0
- package/dist/bot/handlers/message/turn-notify.js +169 -0
- package/dist/bot/handlers/message/turn-runner.js +141 -0
- package/dist/bot/handlers/message.handler.js +107 -0
- package/dist/bot/handlers/newbot.handler.js +221 -0
- package/dist/bot/handlers/photo.handler.js +327 -0
- package/dist/bot/handlers/prompts.handler.js +343 -0
- package/dist/bot/handlers/running-note.js +44 -0
- package/dist/bot/handlers/schedule.handler.js +303 -0
- package/dist/bot/handlers/session-guard.js +78 -0
- package/dist/bot/handlers/suggestion.handler.js +84 -0
- package/dist/bot/handlers/tree.handler.js +480 -0
- package/dist/bot/handlers/view.js +41 -0
- package/dist/bot/handlers/voice.handler.js +209 -0
- package/dist/bot/middleware/admin-only.js +49 -0
- package/dist/bot/middleware/auth.middleware.js +122 -0
- package/dist/bot/middleware/group-mention.middleware.js +139 -0
- package/dist/bot/middleware/group-role.middleware.js +75 -0
- package/dist/bot/middleware/message-batcher.js +87 -0
- package/dist/bot/middleware/queued-messages.js +971 -0
- package/dist/bot/middleware/stale-filter.js +31 -0
- package/dist/build-info.json +8 -0
- package/dist/claude/agent-watchdog.js +162 -0
- package/dist/claude/agent.js +1458 -0
- package/dist/claude/ask-user.js +295 -0
- package/dist/claude/auto-approve.js +225 -0
- package/dist/claude/auto-topic-haiku.js +126 -0
- package/dist/claude/available-commands.js +153 -0
- package/dist/claude/carry-over.js +27 -0
- package/dist/claude/ccr-shim.js +46 -0
- package/dist/claude/charter-judge.js +214 -0
- package/dist/claude/claude-auth.js +121 -0
- package/dist/claude/command-parser.js +200 -0
- package/dist/claude/cost-overlay-scraper.js +129 -0
- package/dist/claude/enabled-plugins.js +56 -0
- package/dist/claude/fork-tree.js +393 -0
- package/dist/claude/held-query.js +190 -0
- package/dist/claude/in-flight-tracker.js +61 -0
- package/dist/claude/ipc-server.js +192 -0
- package/dist/claude/mcp-bridge.js +453 -0
- package/dist/claude/mcp-tools.js +354 -0
- package/dist/claude/message-offsets.js +88 -0
- package/dist/claude/modal-relay.js +450 -0
- package/dist/claude/model-catalog.js +85 -0
- package/dist/claude/monitor-relay.js +597 -0
- package/dist/claude/pending-forks.js +93 -0
- package/dist/claude/pending-suggestions.js +50 -0
- package/dist/claude/permission-gate.js +337 -0
- package/dist/claude/permission-mode.js +178 -0
- package/dist/claude/poll-user.js +51 -0
- package/dist/claude/project-commands.js +69 -0
- package/dist/claude/prompt-hold.js +124 -0
- package/dist/claude/prompt-suggestion-scraper.js +89 -0
- package/dist/claude/pty-provider.js +2214 -0
- package/dist/claude/pty-spawn-config.js +296 -0
- package/dist/claude/pty-stream.js +363 -0
- package/dist/claude/request-queue.js +135 -0
- package/dist/claude/scheduled-runner.js +91 -0
- package/dist/claude/scheduler.js +237 -0
- package/dist/claude/scope-guard.js +274 -0
- package/dist/claude/sdk-permission-gate.js +77 -0
- package/dist/claude/secret-request.js +576 -0
- package/dist/claude/session-cost.js +41 -0
- package/dist/claude/session-history.js +286 -0
- package/dist/claude/session-jsonl.js +920 -0
- package/dist/claude/session-manager.js +195 -0
- package/dist/claude/session-scan.js +270 -0
- package/dist/claude/setup-token.js +285 -0
- package/dist/claude/side-call-options.js +45 -0
- package/dist/claude/side-question.js +249 -0
- package/dist/claude/stage-images.js +62 -0
- package/dist/claude/subagent-tools.js +12 -0
- package/dist/claude/synthetic-ctx.js +51 -0
- package/dist/claude/system-prompt.js +162 -0
- package/dist/claude/tasks-overlay-scraper.js +94 -0
- package/dist/claude/tip-scraper.js +78 -0
- package/dist/claude/tui-modal.js +501 -0
- package/dist/claude/tui-state.js +384 -0
- package/dist/claude/turn-end.js +91 -0
- package/dist/claude/turn-prose.js +64 -0
- package/dist/claude/update-banner-relay.js +70 -0
- package/dist/cli/commands/doctor.js +305 -0
- package/dist/cli/commands/help.js +25 -0
- package/dist/cli/commands/init.js +123 -0
- package/dist/cli/commands/service.js +678 -0
- package/dist/cli/commands/start.js +53 -0
- package/dist/cli/commands/version.js +11 -0
- package/dist/cli/dispatch.js +79 -0
- package/dist/cli/init/env-file.js +99 -0
- package/dist/cli/init/flow.js +638 -0
- package/dist/cli/init/prompter.js +116 -0
- package/dist/cli/init/telegram.js +94 -0
- package/dist/cli/service/render.js +212 -0
- package/dist/cli.js +18 -0
- package/dist/config-report.js +107 -0
- package/dist/config.js +500 -0
- package/dist/index.js +367 -0
- package/dist/launcher.js +933 -0
- package/dist/node-version-check.js +27 -0
- package/dist/providers/ccr-health.js +119 -0
- package/dist/providers/ccr-introspect.js +149 -0
- package/dist/providers/ccr-provider.js +60 -0
- package/dist/providers/claude-provider.js +63 -0
- package/dist/providers/prefs-sync.js +164 -0
- package/dist/providers/project-favorites.js +74 -0
- package/dist/providers/provider-router.js +127 -0
- package/dist/providers/provider-switch.js +91 -0
- package/dist/providers/sdk-provider.js +37 -0
- package/dist/providers/types.js +8 -0
- package/dist/providers/user-preferences.js +214 -0
- package/dist/restart-when-idle.js +153 -0
- package/dist/startup/auto-continue.js +67 -0
- package/dist/startup/auto-resume.js +173 -0
- package/dist/startup/notices.js +120 -0
- package/dist/startup/shared.js +44 -0
- package/dist/startup/verify-token.js +31 -0
- package/dist/telegram/access-request.js +153 -0
- package/dist/telegram/action-logger.js +684 -0
- package/dist/telegram/admin-mention.js +107 -0
- package/dist/telegram/background-activity-card.js +502 -0
- package/dist/telegram/botname-settings.js +336 -0
- package/dist/telegram/button-text.js +26 -0
- package/dist/telegram/client-options.js +27 -0
- package/dist/telegram/deduplication.js +33 -0
- package/dist/telegram/entities.js +295 -0
- package/dist/telegram/force-reply-tracker.js +57 -0
- package/dist/telegram/lettered-options.js +87 -0
- package/dist/telegram/markdown.js +362 -0
- package/dist/telegram/message-sender.js +1287 -0
- package/dist/telegram/prompt-label.js +142 -0
- package/dist/telegram/prompt-suggestion.js +54 -0
- package/dist/telegram/send.js +123 -0
- package/dist/telegram/streaming-turn.js +105 -0
- package/dist/telegram/suggestions-settings.js +30 -0
- package/dist/telegram/task-list.js +367 -0
- package/dist/telegram/task-tracker.js +209 -0
- package/dist/telegram/telegraph-settings.js +31 -0
- package/dist/telegram/telegraph.js +453 -0
- package/dist/telegram/terminal-renderer.js +671 -0
- package/dist/telegram/terminal-settings.js +25 -0
- package/dist/telegram/thread-titles.js +190 -0
- package/dist/telegram/threads-setup.js +117 -0
- package/dist/tts/tts-settings.js +62 -0
- package/dist/tts/tts.js +245 -0
- package/dist/tts/voice-reply.js +78 -0
- package/dist/utils/admins.js +143 -0
- package/dist/utils/agent-timer.js +55 -0
- package/dist/utils/atomic-write.js +24 -0
- package/dist/utils/bot-token.js +74 -0
- package/dist/utils/bounded-map.js +55 -0
- package/dist/utils/build-info.js +57 -0
- package/dist/utils/caffeinate.js +50 -0
- package/dist/utils/claude-env.js +54 -0
- package/dist/utils/claude-version.js +48 -0
- package/dist/utils/config-home.js +62 -0
- package/dist/utils/debug-agent.js +117 -0
- package/dist/utils/debug-watchdog.js +121 -0
- package/dist/utils/download.js +111 -0
- package/dist/utils/exit-codes.js +48 -0
- package/dist/utils/file-type.js +149 -0
- package/dist/utils/format.js +81 -0
- package/dist/utils/home-project.js +30 -0
- package/dist/utils/host-stall.js +51 -0
- package/dist/utils/id-list.js +44 -0
- package/dist/utils/idle-restart.js +92 -0
- package/dist/utils/install-mode.js +63 -0
- package/dist/utils/instance-config.js +148 -0
- package/dist/utils/instances.js +95 -0
- package/dist/utils/json-store.js +140 -0
- package/dist/utils/keyed-settings.js +62 -0
- package/dist/utils/legacy-env.js +35 -0
- package/dist/utils/npm-version.js +134 -0
- package/dist/utils/prefs-relay.js +107 -0
- package/dist/utils/proc-children.js +102 -0
- package/dist/utils/project-data-dir.js +33 -0
- package/dist/utils/reasoning-summary.js +12 -0
- package/dist/utils/resolve-bin.js +86 -0
- package/dist/utils/resolve-claude-bin.js +63 -0
- package/dist/utils/respawn-backoff.js +19 -0
- package/dist/utils/sanitize.js +91 -0
- package/dist/utils/session-key.js +37 -0
- package/dist/utils/stale-launcher.js +109 -0
- package/dist/utils/state-dir-migration.js +92 -0
- package/dist/utils/systemd.js +126 -0
- package/dist/utils/user-roster.js +275 -0
- package/dist/utils/verbosity.js +118 -0
- package/dist/utils/version-check.js +166 -0
- package/dist/utils/workspace-guard.js +44 -0
- package/dist/worker-restart.js +141 -0
- package/instances.json.example +41 -0
- package/package.json +76 -4
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Restart requests from a worker to the launcher, and the one question that
|
|
3
|
+
* goes with them: whether the launcher is still running the code it started
|
|
4
|
+
* with.
|
|
5
|
+
*
|
|
6
|
+
* Split out of index.ts so callers don't have to import the process entry
|
|
7
|
+
* point to reach a handful of message-posting helpers. The command handlers used to
|
|
8
|
+
* do exactly that, via `await import('../../../index.js')` — a dynamic import
|
|
9
|
+
* purely to dodge the cycle a static one would create. This module imports
|
|
10
|
+
* nothing but `worker_threads`, so they can import it directly.
|
|
11
|
+
*
|
|
12
|
+
* Every function is a no-op returning false/failure in single-instance mode,
|
|
13
|
+
* where there is no launcher to talk to.
|
|
14
|
+
*/
|
|
15
|
+
import { isMainThread, parentPort } from 'worker_threads';
|
|
16
|
+
/** Ask the launcher to restart this worker. Returns false if not in worker mode. */
|
|
17
|
+
export function requestRestart() {
|
|
18
|
+
if (!isMainThread && parentPort) {
|
|
19
|
+
parentPort.postMessage({ type: 'restart' });
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
/** Ask the launcher to restart a sibling worker by name. When autoResume is
|
|
25
|
+
* true, the launcher writes a reload marker for the sibling so it auto-
|
|
26
|
+
* restores its sessions on respawn (the requesting worker can't write the
|
|
27
|
+
* marker itself — it lives at a per-bot path keyed by the sibling's token). */
|
|
28
|
+
export function requestSiblingRestart(name, autoResume = false) {
|
|
29
|
+
return new Promise((resolve) => {
|
|
30
|
+
if (isMainThread || !parentPort) {
|
|
31
|
+
return resolve({ success: false, reason: 'not in multi-instance mode' });
|
|
32
|
+
}
|
|
33
|
+
const pp = parentPort;
|
|
34
|
+
const handler = (msg) => {
|
|
35
|
+
if (msg?.type === 'restart_sibling_result') {
|
|
36
|
+
pp.off('message', handler);
|
|
37
|
+
clearTimeout(timer);
|
|
38
|
+
resolve({ success: !!msg.success, name: msg.name, reason: msg.reason });
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
pp.on('message', handler);
|
|
42
|
+
pp.postMessage({ type: 'restart_sibling', name, autoResume });
|
|
43
|
+
// Timeout in case the launcher never responds
|
|
44
|
+
const timer = setTimeout(() => {
|
|
45
|
+
pp.off('message', handler);
|
|
46
|
+
resolve({ success: false, reason: 'timeout' });
|
|
47
|
+
}, 5000);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Ask the launcher whether its own code has been rebuilt since it started.
|
|
52
|
+
*
|
|
53
|
+
* False whenever we can't tell — single-instance mode has no launcher to ask,
|
|
54
|
+
* and a query that goes unanswered must not turn into a restart nag on every
|
|
55
|
+
* build. See utils/stale-launcher.ts for why only the launcher needs asking.
|
|
56
|
+
*/
|
|
57
|
+
export function launcherIsStale() {
|
|
58
|
+
return new Promise((resolve) => {
|
|
59
|
+
if (isMainThread || !parentPort)
|
|
60
|
+
return resolve(false);
|
|
61
|
+
const pp = parentPort;
|
|
62
|
+
const handler = (msg) => {
|
|
63
|
+
if (msg?.type === 'launcher_stale_result') {
|
|
64
|
+
pp.off('message', handler);
|
|
65
|
+
clearTimeout(timer);
|
|
66
|
+
resolve(!!msg.stale);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
pp.on('message', handler);
|
|
70
|
+
pp.postMessage({ type: 'launcher_stale' });
|
|
71
|
+
// Short: the answer is a hash of seven small files, and a launcher old
|
|
72
|
+
// enough not to know the question never answers at all — which is exactly
|
|
73
|
+
// the launcher this exists for. Nobody should wait on that to be told
|
|
74
|
+
// their build is restarting.
|
|
75
|
+
const timer = setTimeout(() => {
|
|
76
|
+
pp.off('message', handler);
|
|
77
|
+
resolve(false);
|
|
78
|
+
}, 2000);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/** Ask the launcher to restart ALL workers. When autoResume is true, the
|
|
82
|
+
* launcher writes reload markers for every instance so all of them — not just
|
|
83
|
+
* the one that initiated the command — restore their sessions on respawn. */
|
|
84
|
+
export function requestRestartAll(autoResume = false) {
|
|
85
|
+
if (!isMainThread && parentPort) {
|
|
86
|
+
parentPort.postMessage({ type: 'restart_all', autoResume });
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Ask the launcher to restart every worker once each has nothing left to
|
|
93
|
+
* finish, reporting progress by editing `messageId` in `chatId`. Resolves
|
|
94
|
+
* with the instances it is waiting on, or null when the launcher doesn't
|
|
95
|
+
* answer — one that predates this request never will.
|
|
96
|
+
*/
|
|
97
|
+
export function requestRestartAllWhenIdle(opts) {
|
|
98
|
+
return new Promise((resolve) => {
|
|
99
|
+
if (isMainThread || !parentPort)
|
|
100
|
+
return resolve(null);
|
|
101
|
+
const pp = parentPort;
|
|
102
|
+
const handler = (msg) => {
|
|
103
|
+
if (msg?.type === 'restart_all_when_idle_result') {
|
|
104
|
+
pp.off('message', handler);
|
|
105
|
+
clearTimeout(timer);
|
|
106
|
+
resolve(msg.names ?? []);
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
pp.on('message', handler);
|
|
110
|
+
pp.postMessage({ type: 'restart_all_when_idle', ...opts });
|
|
111
|
+
const timer = setTimeout(() => {
|
|
112
|
+
pp.off('message', handler);
|
|
113
|
+
resolve(null);
|
|
114
|
+
}, 3000);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Restart the instances a pending idle restart is still waiting on right
|
|
119
|
+
* away, or stop waiting for them. Resolves false when nothing was pending.
|
|
120
|
+
*/
|
|
121
|
+
export function controlIdleRestart(action) {
|
|
122
|
+
return new Promise((resolve) => {
|
|
123
|
+
if (isMainThread || !parentPort)
|
|
124
|
+
return resolve(false);
|
|
125
|
+
const pp = parentPort;
|
|
126
|
+
const handler = (msg) => {
|
|
127
|
+
if (msg?.type === 'drain_control_result') {
|
|
128
|
+
pp.off('message', handler);
|
|
129
|
+
clearTimeout(timer);
|
|
130
|
+
resolve(!!msg.found);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
pp.on('message', handler);
|
|
134
|
+
pp.postMessage({ type: action === 'force' ? 'idle_restart_force' : 'idle_restart_cancel' });
|
|
135
|
+
const timer = setTimeout(() => {
|
|
136
|
+
pp.off('message', handler);
|
|
137
|
+
resolve(false);
|
|
138
|
+
}, 3000);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=worker-restart.js.map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
// The launcher watches this file: a bot you add starts, one you remove stops,
|
|
3
|
+
// and one whose entry changes restarts with it. No restart of the rest needed.
|
|
4
|
+
|
|
5
|
+
// Shared defaults applied to ALL instances (layered on top of .env).
|
|
6
|
+
// Any .env variable can go here.
|
|
7
|
+
"defaults": {
|
|
8
|
+
"ALLOWED_USER_IDS": "123456789",
|
|
9
|
+
"DANGEROUS_MODE": "false",
|
|
10
|
+
"STREAMING_MODE": "streaming"
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"instances": [
|
|
14
|
+
// List of tokens → auto-template: spawns 3 bots named "TeleCoder 1", "TeleCoder 2", "TeleCoder 3"
|
|
15
|
+
// Use {n} for sequential numbering, {N} for zero-padded (01, 02, ...).
|
|
16
|
+
{
|
|
17
|
+
"name": "TeleCoder {n}",
|
|
18
|
+
"tokens": [
|
|
19
|
+
"<bot-token-1>",
|
|
20
|
+
"<bot-token-2>",
|
|
21
|
+
"<bot-token-3>"
|
|
22
|
+
],
|
|
23
|
+
"overrides": {
|
|
24
|
+
"WORKSPACE_DIR": "/home/user/projects"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
// Single token → individual instance with custom settings
|
|
29
|
+
{
|
|
30
|
+
"name": "Admin Bot",
|
|
31
|
+
"token": "<bot-token-4>",
|
|
32
|
+
"overrides": {
|
|
33
|
+
"ALLOWED_USER_IDS": "987654321",
|
|
34
|
+
"DANGEROUS_MODE": "true",
|
|
35
|
+
// The project this bot is for. /newbot adds bots with this set, but
|
|
36
|
+
// it rewrites the file to do so and refuses one with comments.
|
|
37
|
+
"HOME_PROJECT": "/home/user/projects/admin-tools"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "telecoder",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Claude Code from Telegram: a self-hosted bot that drives the Claude Code agent on your own machine",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"telecoder": "dist/cli.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist/",
|
|
12
|
+
"!dist/**/*.map",
|
|
13
|
+
"!dist/**/*.d.ts",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE",
|
|
16
|
+
"CHANGELOG.md",
|
|
17
|
+
".env.example",
|
|
18
|
+
"instances.json.example"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"dev": "tsx watch src/index.ts",
|
|
22
|
+
"dev:multi": "tsx src/launcher.ts",
|
|
23
|
+
"build": "node scripts/stamp-build.mjs && tsc",
|
|
24
|
+
"prepublishOnly": "npm run typecheck && npm test && node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && npm run build",
|
|
25
|
+
"start": "node dist/index.js",
|
|
26
|
+
"start:multi": "node dist/launcher.js",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"test": "vitest run",
|
|
29
|
+
"test:watch": "vitest",
|
|
30
|
+
"test:coverage": "vitest run --coverage"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"telegram",
|
|
34
|
+
"claude",
|
|
35
|
+
"bot",
|
|
36
|
+
"ai",
|
|
37
|
+
"agent"
|
|
38
|
+
],
|
|
39
|
+
"author": "Rik Wanders (https://github.com/gitaarik)",
|
|
40
|
+
"license": "MIT",
|
|
41
|
+
"homepage": "https://telecoder.dev",
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "git+https://github.com/gitaarik/telecoder.git"
|
|
45
|
+
},
|
|
46
|
+
"bugs": {
|
|
47
|
+
"url": "https://github.com/gitaarik/telecoder/issues"
|
|
48
|
+
},
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=22"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@anthropic-ai/claude-agent-sdk": "^0.3.280",
|
|
54
|
+
"@anthropic-ai/sdk": "^0.128.0",
|
|
55
|
+
"@grammyjs/auto-retry": "^2.0.2",
|
|
56
|
+
"@grammyjs/runner": "^2.0.3",
|
|
57
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
58
|
+
"@xterm/headless": "^6.0.0",
|
|
59
|
+
"croner": "^10.0.1",
|
|
60
|
+
"dotenv": "^16.4.7",
|
|
61
|
+
"grammy": "^1.46.0",
|
|
62
|
+
"https-proxy-agent": "^8.0.0",
|
|
63
|
+
"mdast-util-from-markdown": "^2.1.0",
|
|
64
|
+
"mdast-util-gfm": "^3.1.0",
|
|
65
|
+
"micromark-extension-gfm": "^3.0.0",
|
|
66
|
+
"node-pty": "^1.1.0",
|
|
67
|
+
"openai": "^6.16.0",
|
|
68
|
+
"zod": "^4.3.6"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/mdast": "^4.0.4",
|
|
72
|
+
"@types/node": "^22.20.5",
|
|
73
|
+
"@vitest/coverage-v8": "^4.1.12",
|
|
74
|
+
"tsx": "^4.19.2",
|
|
75
|
+
"typescript": "^5.7.3",
|
|
76
|
+
"vitest": "^4.1.12"
|
|
77
|
+
}
|
|
78
|
+
}
|