embark-ai 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/tui.js +17 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "embark-ai",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Autonomous Minecraft agent powered by Featherless AI or Ollama",
5
5
  "keywords": [
6
6
  "minecraft",
package/tui.js CHANGED
@@ -600,9 +600,11 @@ function modalCommand(title, instruction, command, note) {
600
600
  // ── Onboarding wizard ─────────────────────────────────────────────────────────
601
601
  async function runOnboarding() {
602
602
  await modalMessage(
603
- `{bold}{cyan-fg}Welcome to embark-ai{/}{/bold}\n\n` +
603
+ `{bold}{cyan-fg}Welcome to embark-ai{/}{/bold} {yellow-fg}[beta]{/}\n\n` +
604
604
  `Ember is an autonomous Minecraft agent powered by AI.\n` +
605
605
  `Let\'s set up your AI backend and verify your server.\n\n` +
606
+ `{yellow-fg}⚠ This is a beta release — some features may be\n` +
607
+ ` unstable. Please report issues on GitHub.{/}\n\n` +
606
608
  `{gray-fg}This takes about 2 minutes on first run.{/}`,
607
609
  'cyan'
608
610
  )
@@ -710,13 +712,14 @@ async function runOnboarding() {
710
712
  const jarPath = path.join(SERVER_DIR, SERVER_JAR)
711
713
  if (!fs.existsSync(jarPath)) {
712
714
  await modalCommand(
713
- `Step 3 of 3 — Minecraft Server (Java Edition ${MC_VERSION})`,
715
+ `Step 3 of 3 — Minecraft Server (requires Java Edition ${MC_VERSION})`,
714
716
  `server.jar not found. Place it at:`,
715
- `${path.join(SERVER_DIR, SERVER_JAR)}`,
716
- `Download Minecraft Java Edition ${MC_VERSION} server jar\n` +
717
- `from minecraft.net > Download > Minecraft Server\n` +
718
- `and place it at the path above.\n\n` +
719
- `Press Enter once the file is in place, or Esc to set up later.`,
717
+ `${jarPath}`,
718
+ `embark-ai requires Minecraft Java Edition ${MC_VERSION} specifically.\n` +
719
+ `minecraft.net only offers the latest version — search for:\n` +
720
+ `"Minecraft ${MC_VERSION} server jar" or use mcversions.net\n\n` +
721
+ `Rename the downloaded file to server.jar and place it at the path above.\n` +
722
+ `Press Enter once done, or Esc to set up later.`,
720
723
  )
721
724
  } else {
722
725
  await modalMessage(
@@ -768,6 +771,13 @@ async function actStartServer() {
768
771
  )
769
772
  }
770
773
 
774
+ // Auto-accept the Minecraft EULA so the server doesn't exit on first run
775
+ const eulaPath = path.join(SERVER_DIR, 'eula.txt')
776
+ if (!fs.existsSync(eulaPath) || !fs.readFileSync(eulaPath, 'utf8').includes('eula=true')) {
777
+ fs.writeFileSync(eulaPath, '#By running embark-ai you agree to the Minecraft EULA\n#https://www.minecraft.net/en-us/eula\neula=true\n')
778
+ logPanel.log('{gray-fg}Accepted Minecraft EULA (eula.txt written){/}')
779
+ }
780
+
771
781
  refresh(`{cyan-fg}Starting server with Java ${javaVer}...{/}`)
772
782
  const logFd = fs.openSync(state.serverLogPath, 'w')
773
783
  const proc = spawn(javaBin, ['-Xmx2G', '-jar', SERVER_JAR, 'nogui'], {