jeo-code 0.12.12 → 0.12.13
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/CHANGELOG.md +5 -0
- package/README.ja.md +1 -1
- package/README.ko.md +1 -1
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/package.json +1 -1
- package/src/messenger/discord.ts +2 -9
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
The README mirrors the latest 5 entries — regenerate with `bun run changelog:sync`.
|
|
9
9
|
|
|
10
|
+
## [0.12.13] - 2026-11-03
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- **Discord messenger progress** — update the status message with only the latest activity on one line instead of accumulating previous steps.
|
|
14
|
+
|
|
10
15
|
## [0.12.12] - 2026-11-03
|
|
11
16
|
|
|
12
17
|
### Fixed
|
package/README.ja.md
CHANGED
|
@@ -422,11 +422,11 @@ CI は `.github/workflows/npm-publish.yml` で公開します — GitHub リリ
|
|
|
422
422
|
## 変更履歴 (Changelog)
|
|
423
423
|
|
|
424
424
|
<!-- CHANGELOG:START (auto-generated from CHANGELOG.md — run `bun run changelog:sync`) -->
|
|
425
|
+
- **[0.12.13]** (2026-11-03)
|
|
425
426
|
- **[0.12.12]** (2026-11-03)
|
|
426
427
|
- **[0.12.10]** (2026-11-02)
|
|
427
428
|
- **[0.12.11]** (2026-11-02)
|
|
428
429
|
- **[0.12.9]** (2026-11-02)
|
|
429
|
-
- **[0.12.7]** (2026-10-18) — Repair desktop screenshot vision feedback, macOS scrolling, complete drag gestures, and keyboard normalization.
|
|
430
430
|
|
|
431
431
|
See [CHANGELOG.md](CHANGELOG.md) for the full history.
|
|
432
432
|
<!-- CHANGELOG:END -->
|
package/README.ko.md
CHANGED
|
@@ -477,11 +477,11 @@ CI는 `.github/workflows/npm-publish.yml`로 배포합니다 — GitHub 릴리
|
|
|
477
477
|
## 변경 이력 (Changelog)
|
|
478
478
|
|
|
479
479
|
<!-- CHANGELOG:START (auto-generated from CHANGELOG.md — run `bun run changelog:sync`) -->
|
|
480
|
+
- **[0.12.13]** (2026-11-03)
|
|
480
481
|
- **[0.12.12]** (2026-11-03)
|
|
481
482
|
- **[0.12.10]** (2026-11-02)
|
|
482
483
|
- **[0.12.11]** (2026-11-02)
|
|
483
484
|
- **[0.12.9]** (2026-11-02)
|
|
484
|
-
- **[0.12.7]** (2026-10-18) — Repair desktop screenshot vision feedback, macOS scrolling, complete drag gestures, and keyboard normalization.
|
|
485
485
|
|
|
486
486
|
See [CHANGELOG.md](CHANGELOG.md) for the full history.
|
|
487
487
|
<!-- CHANGELOG:END -->
|
package/README.md
CHANGED
|
@@ -466,11 +466,11 @@ Huge thanks to [gajae-code](https://github.com/Yeachan-Heo/gajae-code) for the i
|
|
|
466
466
|
## Changelog
|
|
467
467
|
|
|
468
468
|
<!-- CHANGELOG:START (auto-generated from CHANGELOG.md — run `bun run changelog:sync`) -->
|
|
469
|
+
- **[0.12.13]** (2026-11-03)
|
|
469
470
|
- **[0.12.12]** (2026-11-03)
|
|
470
471
|
- **[0.12.10]** (2026-11-02)
|
|
471
472
|
- **[0.12.11]** (2026-11-02)
|
|
472
473
|
- **[0.12.9]** (2026-11-02)
|
|
473
|
-
- **[0.12.7]** (2026-10-18) — Repair desktop screenshot vision feedback, macOS scrolling, complete drag gestures, and keyboard normalization.
|
|
474
474
|
|
|
475
475
|
See [CHANGELOG.md](CHANGELOG.md) for the full history.
|
|
476
476
|
<!-- CHANGELOG:END -->
|
package/README.zh.md
CHANGED
|
@@ -420,11 +420,11 @@ CI 通过 `.github/workflows/npm-publish.yml` 发布 — GitHub 发布 release
|
|
|
420
420
|
## 更新日志 (Changelog)
|
|
421
421
|
|
|
422
422
|
<!-- CHANGELOG:START (auto-generated from CHANGELOG.md — run `bun run changelog:sync`) -->
|
|
423
|
+
- **[0.12.13]** (2026-11-03)
|
|
423
424
|
- **[0.12.12]** (2026-11-03)
|
|
424
425
|
- **[0.12.10]** (2026-11-02)
|
|
425
426
|
- **[0.12.11]** (2026-11-02)
|
|
426
427
|
- **[0.12.9]** (2026-11-02)
|
|
427
|
-
- **[0.12.7]** (2026-10-18) — Repair desktop screenshot vision feedback, macOS scrolling, complete drag gestures, and keyboard normalization.
|
|
428
428
|
|
|
429
429
|
See [CHANGELOG.md](CHANGELOG.md) for the full history.
|
|
430
430
|
<!-- CHANGELOG:END -->
|
package/package.json
CHANGED
package/src/messenger/discord.ts
CHANGED
|
@@ -344,7 +344,6 @@ export function createDiscordAdapter(
|
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
const activityMessages = new Map<string, string>();
|
|
347
|
-
const activityHistory = new Map<string, string[]>();
|
|
348
347
|
const headers = (): Record<string, string> => {
|
|
349
348
|
if (!token) throw new DiscordConfigurationError("Discord bot token is missing");
|
|
350
349
|
return { Authorization: `Bot ${token}`, "Content-Type": "application/json" };
|
|
@@ -537,26 +536,22 @@ export function createDiscordAdapter(
|
|
|
537
536
|
const key = JSON.stringify([channelId, message.messageId]);
|
|
538
537
|
const messages = `${DISCORD_API}/channels/${encodeURIComponent(channelId)}/messages`;
|
|
539
538
|
const statusId = activityMessages.get(key);
|
|
540
|
-
const previous = activityHistory.get(key) ?? [];
|
|
541
539
|
if (text === undefined) {
|
|
542
540
|
if (!statusId) return;
|
|
543
541
|
const label = outcome === "success" ? "✅ Complete" : outcome === "failure" ? "❌ Failed" : "⏹ Cancelled";
|
|
544
542
|
try {
|
|
545
543
|
await messengerFetchJson(
|
|
546
544
|
`${messages}/${encodeURIComponent(statusId)}`,
|
|
547
|
-
{ method: "PATCH", headers: headers(), body: JSON.stringify({ content:
|
|
545
|
+
{ method: "PATCH", headers: headers(), body: JSON.stringify({ content: label, allowed_mentions: { parse: [] } }) },
|
|
548
546
|
signal, deps.fetch,
|
|
549
547
|
);
|
|
550
548
|
} catch (error) {
|
|
551
549
|
if (!(error instanceof MessengerHttpError && error.status === 404)) throw error;
|
|
552
550
|
}
|
|
553
551
|
activityMessages.delete(key);
|
|
554
|
-
activityHistory.delete(key);
|
|
555
552
|
return;
|
|
556
553
|
}
|
|
557
|
-
|
|
558
|
-
const history = [...previous, `• ${text}`].slice(-6);
|
|
559
|
-
const content = ["⏳ In progress", ...history].join("\n");
|
|
554
|
+
const content = `⏳ ${text.replace(/[\r\n]+/g, " ")}`;
|
|
560
555
|
if (statusId) {
|
|
561
556
|
try {
|
|
562
557
|
await messengerFetchJson(
|
|
@@ -564,7 +559,6 @@ export function createDiscordAdapter(
|
|
|
564
559
|
{ method: "PATCH", headers: headers(), body: JSON.stringify({ content, allowed_mentions: { parse: [] } }) },
|
|
565
560
|
signal, deps.fetch,
|
|
566
561
|
);
|
|
567
|
-
activityHistory.set(key, history);
|
|
568
562
|
return;
|
|
569
563
|
} catch (error) {
|
|
570
564
|
if (!(error instanceof MessengerHttpError && error.status === 404)) throw error;
|
|
@@ -579,7 +573,6 @@ export function createDiscordAdapter(
|
|
|
579
573
|
if (!isRecord(created) || typeof created.id !== "string" || !created.id)
|
|
580
574
|
throw new Error("Discord activity message returned no ID");
|
|
581
575
|
activityMessages.set(key, created.id);
|
|
582
|
-
activityHistory.set(key, history);
|
|
583
576
|
},
|
|
584
577
|
async send(message, text, signal) {
|
|
585
578
|
let files: { name: string; data: Uint8Array }[] = [];
|