Skip to content

fix: Copilot review + release.bat set-version + screenshots - #2

Merged
CaYatur merged 3 commits into
masterfrom
feat/desktop-app-icons-i18n
Jul 15, 2026
Merged

CaYatur merged 3 commits into
masterfrom
feat/desktop-app-icons-i18n

Conversation

@CaYatur

@CaYatur CaYatur commented Jul 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Restore automation self-chat filtering (bot own messages no longer re-trigger rules)
  • Fix AuthMe kayıt ol and TR whisper patterns broken by i18n bulk pass
  • Clean mixed cancel/build strings (cancelled, place failures)
  • Electron: only open window after server starts; quit on server failure
  • scripts/set-version.mjs for release.bat (fixes delayed-expansion ! bug)
  • Updated docs screenshots
  • v1.0.0 version bump commit included

Test plan

  • npx tsc --noEmit server + web
  • Manual: bot chat automation does not fire on own echo
  • build-release.bat 1.0.0 version step no longer throws SyntaxError

CaYatur added 3 commits July 16, 2026 02:08
…nshots

Move version validate/write out of build-release.bat node -e so ! in regex is not eaten by delayed expansion. Refresh docs screenshots.
…electron startup

Restore automation self-message filtering (BotManager + RuleEngine). Fix AuthMe kayit ol and TR whisper patterns broken by i18n pass. Clean mixed cancel/build strings. Quit Electron if server fails to start.
Copilot AI review requested due to automatic review settings July 15, 2026 23:28
@CaYatur
CaYatur merged commit 341850d into master Jul 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prepares the project for the v1.0.0 release by tightening chat/automation behavior (preventing self-trigger loops and restoring TR patterns), improving build/release tooling, and aligning app startup flow in Electron.

Changes:

  • Prevent automation self-trigger loops by filtering the bot’s own echoed chat and adding “self” guards to follow/attack/goto actions.
  • Fix/expand chat parsing and system-message detection (AuthMe “kayıt ol”, TR whisper patterns) and clean up several user-facing strings.
  • Improve release workflow by adding scripts/set-version.mjs, updating build-release.bat, bumping versions to 1.0.0, and adjusting Electron startup behavior.

Reviewed changes

Copilot reviewed 14 out of 20 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
web/package.json Bumps web workspace version to 1.0.0.
server/package.json Bumps server workspace version to 1.0.0.
package.json Bumps root version to 1.0.0 and reformats electron-builder target block.
server/src/types.ts Clarifies prefix field documentation.
server/src/modules/chat/parse.ts Restores/fixes TR chat parsing patterns and improves system-message detection.
server/src/modules/build/storage.ts Normalizes shulker placement failure error message.
server/src/modules/build/index.ts Normalizes cancel/failure phase messages.
server/src/modules/automation/RuleEngine.ts Adds self-message filtering and prevents self-target actions (attack/follow/goto-player).
server/src/core/TaskQueue.ts Normalizes default cancel reason string.
server/src/core/BotManager.ts Filters bot’s own chat echo before firing automations.
server/src/core/BotInstance.ts Updates system-message comment wording.
scripts/set-version.mjs Adds version-setting helper script for release automation.
electron/main.cjs Only opens window after server starts; quits on server start failure.
build-release.bat Uses set-version.mjs to avoid delayed-expansion issues; ensures node invocations return properly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/set-version.mjs
Comment on lines +23 to +24
const files = ["package.json", "server/package.json", "web/package.json"];
for (const rel of files) {

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied on master in cb2f008.

  • Workspaces are now derived from root package.json workspaces (supports globs like packages/*)
  • Root package.json is always included
  • Missing paths are skipped with a warning rather than failing silently without logging

Comment on lines +1399 to +1404
const p = interpolate(String(action.player ?? ctx.player), ctx);
if (this.isOwnUsername(botId, p)) {
log.warn("goto-player ignored: target is the bot itself", p);
return;
}
inst.enqueueAction({ type: "goto-player", player: p });

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied on master in cb2f008.

  • After interpolate: .trim()
  • Empty or unresolved tokens (e.g. still starts with {) are rejected before enqueueAction
  • Same empty-player guard also applied to follow for consistency
  • Self-target check kept as before

@CaYatur

CaYatur commented Jul 15, 2026

Copy link
Copy Markdown
Owner Author

Follow-up on Copilot suggestions (this PR was already merged): both medium findings were fixed on \master\ in commit \cb2f008.

Comment Status
\set-version.mjs\ hard-coded workspaces Fixed — list derived from root \workspaces\ (+ globs)
\goto-player\ empty after interpolate Fixed — trim + empty/{token}\ guard; same for \ ollow\

No further action needed for these two items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants