claude-telegram-bot 0.3.30 → 0.3.31
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/bot.mjs +3 -1
- package/package.json +1 -1
package/bot.mjs
CHANGED
|
@@ -574,7 +574,7 @@ function classifyClaudeError(raw, code) {
|
|
|
574
574
|
function runClaude(prompt, sessionId, opts = {}) {
|
|
575
575
|
return new Promise((resolve) => {
|
|
576
576
|
const args = [
|
|
577
|
-
"-p"
|
|
577
|
+
"-p",
|
|
578
578
|
"--output-format",
|
|
579
579
|
"json",
|
|
580
580
|
"--permission-mode",
|
|
@@ -596,6 +596,8 @@ function runClaude(prompt, sessionId, opts = {}) {
|
|
|
596
596
|
if (appendSys) args.push("--append-system-prompt", appendSys);
|
|
597
597
|
if (model) args.push("--model", model);
|
|
598
598
|
if (sessionId) args.push("--resume", sessionId);
|
|
599
|
+
// 프롬프트는 반드시 맨 끝에 `--` 뒤로 — `-`로 시작해도 옵션으로 오해 안 함
|
|
600
|
+
args.push("--", prompt);
|
|
599
601
|
|
|
600
602
|
const child = spawn(cfg.claudeBin || "claude", args, {
|
|
601
603
|
cwd: cfg.projectDir,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-telegram-bot",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.31",
|
|
4
4
|
"description": "Drive Claude Code from Telegram — messages run headless `claude -p` in a project dir and replies come back to the chat. Zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|