embark-ai 1.0.0 → 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 +20 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "embark-ai",
3
- "version": "1.0.0",
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
@@ -406,7 +406,7 @@ function renderActions() {
406
406
  `{cyan-fg}q{/} quit`,
407
407
  ``,
408
408
  `{gray-fg}Logs in:{/}`,
409
- `{gray-fg}${LOG_DIR.replace(process.env.HOME || '', '~')}{/}`,
409
+ `{gray-fg}${LOG_DIR}{/}`,
410
410
  ]
411
411
  actionsPanel.setContent(lines.join('\n'))
412
412
  }
@@ -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})`,
714
- `server.jar not found at mc-server/server.jar`,
715
- `mc-server/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.`,
715
+ `Step 3 of 3 — Minecraft Server (requires Java Edition ${MC_VERSION})`,
716
+ `server.jar not found. Place it at:`,
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(
@@ -746,7 +749,7 @@ async function actStartServer() {
746
749
  const jarPath = path.join(SERVER_DIR, SERVER_JAR)
747
750
  if (!fs.existsSync(jarPath)) {
748
751
  return modalMessage(
749
- `{red-fg}server.jar not found at mc-server/${SERVER_JAR}{/}\n` +
752
+ `{red-fg}server.jar not found at:{/}\n${path.join(SERVER_DIR, SERVER_JAR)}\n` +
750
753
  `Run setup again with {cyan-fg}[8]{/} for download instructions.`,
751
754
  'red'
752
755
  )
@@ -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'], {