heyatlas 1.1.0 → 1.1.1

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/dist/cli.js +18 -6
  2. package/package.json +8 -7
package/dist/cli.js CHANGED
@@ -1872,7 +1872,7 @@ import { homedir } from "os";
1872
1872
  import { mkdirSync, readFileSync, writeFileSync, existsSync } from "fs";
1873
1873
  var CONFIG_DIR = join(homedir(), ".heyatlas");
1874
1874
  var CREDENTIALS_FILE = join(CONFIG_DIR, "credentials.json");
1875
- var API_BASE = process.env.HEYATLAS_API || "https://www.heyatlas.app";
1875
+ var API_BASE = process.env.HEYATLAS_API || "https://heyatlas.app";
1876
1876
  var CLIENT_ID = "heyatlas-cli";
1877
1877
  function ensureConfigDir() {
1878
1878
  if (!existsSync(CONFIG_DIR)) {
@@ -1975,7 +1975,13 @@ async function login() {
1975
1975
  if (existing) {
1976
1976
  return existing;
1977
1977
  }
1978
- const { deviceCode, userCode, verificationUri, verificationUriComplete, interval } = await requestDeviceCode();
1978
+ const {
1979
+ deviceCode,
1980
+ userCode,
1981
+ verificationUri,
1982
+ verificationUriComplete,
1983
+ interval
1984
+ } = await requestDeviceCode();
1979
1985
  const formattedCode = userCode.length === 8 ? `${userCode.slice(0, 4)}-${userCode.slice(4)}` : userCode;
1980
1986
  console.log(`\uD83D\uDD10 Enter code: ${formattedCode}`);
1981
1987
  console.log(` at ${verificationUri}
@@ -49480,7 +49486,7 @@ async function connect(agentType, options = {}) {
49480
49486
  });
49481
49487
  await tunnel.connect(credentials.userId, agentType);
49482
49488
  console.log(`Tunnel established`);
49483
- const voiceUrl = `${process.env.HEYATLAS_API || "https://www.heyatlas.app"}/chat`;
49489
+ const voiceUrl = `${process.env.HEYATLAS_API || "https://heyatlas.app"}/chat`;
49484
49490
  if (options.openBrowser !== false) {
49485
49491
  try {
49486
49492
  const { execSync } = await import("child_process");
@@ -49490,7 +49496,7 @@ async function connect(agentType, options = {}) {
49490
49496
  }
49491
49497
  console.log(`
49492
49498
  HeyAtlas connected to ${agentType}`);
49493
- console.log(`Talk here: ${voiceUrl}`);
49499
+ console.log(`Continue here: ${voiceUrl}`);
49494
49500
  console.log(`
49495
49501
  Press Ctrl+C to disconnect
49496
49502
  `);
@@ -49515,13 +49521,19 @@ function buildPromptWithContext(task) {
49515
49521
  if (parts) {
49516
49522
  const textPart = parts.find((p) => p.type === "text");
49517
49523
  if (textPart && textPart.text) {
49518
- messages.push({ role: String(data.role || "assistant"), content: String(textPart.text) });
49524
+ messages.push({
49525
+ role: String(data.role || "assistant"),
49526
+ content: String(textPart.text)
49527
+ });
49519
49528
  }
49520
49529
  }
49521
49530
  } else if (e.type === "message" && e.data) {
49522
49531
  const data = e.data;
49523
49532
  if (data.role && data.content) {
49524
- messages.push({ role: String(data.role), content: String(data.content) });
49533
+ messages.push({
49534
+ role: String(data.role),
49535
+ content: String(data.content)
49536
+ });
49525
49537
  }
49526
49538
  } else if (e.role && e.content) {
49527
49539
  messages.push({ role: String(e.role), content: String(e.content) });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heyatlas",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Tunnel local AI agents to the cloud for voice-powered interactions",
5
5
  "author": "Bishwendu Kundu <bishwenduk029@gmail.com>",
6
6
  "license": "MIT",
@@ -20,6 +20,12 @@
20
20
  "LICENSE",
21
21
  "README.md"
22
22
  ],
23
+ "scripts": {
24
+ "start": "bun run index.ts",
25
+ "dev": "bun run --hot index.ts",
26
+ "build": "bun build index.ts --target=node --outfile=dist/cli.js && { echo '#!/usr/bin/env node'; cat dist/cli.js; } > dist/cli.tmp && mv dist/cli.tmp dist/cli.js",
27
+ "prepublishOnly": "bun run build"
28
+ },
23
29
  "devDependencies": {
24
30
  "@types/bun": "latest"
25
31
  },
@@ -42,10 +48,5 @@
42
48
  ],
43
49
  "engines": {
44
50
  "node": ">=18.0.0"
45
- },
46
- "scripts": {
47
- "start": "bun run index.ts",
48
- "dev": "bun run --hot index.ts",
49
- "build": "bun build index.ts --target=node --outfile=dist/cli.js && { echo '#!/usr/bin/env node'; cat dist/cli.js; } > dist/cli.tmp && mv dist/cli.tmp dist/cli.js"
50
51
  }
51
- }
52
+ }