amai 0.0.1 → 0.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.
package/README.md CHANGED
@@ -1,10 +1,16 @@
1
- # Ama Agent CLI
1
+ # AMAI CLI
2
2
 
3
- A CLI tool that connects to your Convex backend to execute tool calls locally on your machine.
3
+ A CLI tool that connects to your backend server to execute tool calls locally on your machine.
4
4
 
5
5
  ## Installation
6
6
 
7
- ### Option 1: Install Globally (Recommended)
7
+ ### Option 1: Install from npm (Recommended)
8
+
9
+ ```bash
10
+ npm install -g amai
11
+ ```
12
+
13
+ ### Option 2: Install Globally from Source
8
14
 
9
15
  ```bash
10
16
  # From the ama-agent package directory
@@ -22,7 +28,7 @@ bun link
22
28
  ./install-global.sh
23
29
  ```
24
30
 
25
- ### Option 2: Link Locally to Another Project
31
+ ### Option 3: Link Locally to Another Project
26
32
 
27
33
  ```bash
28
34
  # In your other project directory
@@ -31,31 +37,33 @@ npm link /path/to/ama/packages/ama-agent
31
37
  bun link /path/to/ama/packages/ama-agent
32
38
  ```
33
39
 
34
- ### Option 3: Install from Local Path
40
+ ### Option 4: Install from Local Path
35
41
 
36
42
  In your project's `package.json`:
37
43
  ```json
38
44
  {
39
45
  "dependencies": {
40
- "ama-agent": "file:../path/to/ama/packages/ama-agent"
46
+ "amai": "file:../path/to/ama/packages/ama-agent"
41
47
  }
42
48
  }
43
49
  ```
44
50
  Then run `npm install` or `bun install`.
45
51
 
46
- ### Option 4: Publish to npm (For Sharing)
52
+ ## Usage
47
53
 
48
54
  ```bash
49
- cd packages/ama-agent
50
- npm publish
51
- # Then in your other project: npm install ama-agent
55
+ amai [command] [options]
52
56
  ```
53
57
 
54
- ## Usage
58
+ ### Commands
55
59
 
56
- ```bash
57
- ama-agent [options]
58
- ```
60
+ - `login` - Authorize device
61
+ - `logout` - Log out and remove credentials
62
+ - `start` - Start background daemon (recommended for better performance)
63
+ - `stop` - Stop background daemon
64
+ - `status` - Check daemon status
65
+ - `project add <path>` - Register a project directory
66
+ - `project list` - List registered projects
59
67
 
60
68
  ### Options
61
69
 
@@ -63,26 +71,37 @@ ama-agent [options]
63
71
 
64
72
  ### Environment Variables
65
73
 
66
- - `SERVER_URL` - WebSocket server URL to connect to (required)
74
+ - `SERVER_URL` - WebSocket server URL to connect to (optional, has a default)
67
75
  - Example: `ws://localhost:3000` or `wss://your-server.com`
68
76
 
69
77
  ### Examples
70
78
 
71
79
  ```bash
72
- # Using environment variable
73
- SERVER_URL=ws://localhost:3000 ama-agent
80
+ # Login first
81
+ amai login
74
82
 
75
- # Or export it first
76
- export SERVER_URL=ws://localhost:3000
77
- ama-agent
83
+ # Start in background mode (recommended)
84
+ amai start
85
+
86
+ # Check daemon status
87
+ amai status
88
+
89
+ # Stop daemon
90
+ amai stop
91
+
92
+ # Register a project
93
+ amai project add /path/to/your/project
94
+
95
+ # List registered projects
96
+ amai project list
78
97
 
79
98
  # Show help
80
- ama-agent --help
99
+ amai --help
81
100
  ```
82
101
 
83
102
  ## How It Works
84
103
 
85
- 1. The CLI connects to a WebSocket server at the provided `SERVER_URL`
104
+ 1. The CLI connects to a WebSocket server
86
105
  2. It listens for tool call messages from the server
87
106
  3. When tool calls are received, it executes them locally on your machine
88
107
  4. Results are sent back to the server via WebSocket
@@ -102,13 +121,15 @@ The built files will be in the `dist/` directory.
102
121
 
103
122
  ## Troubleshooting
104
123
 
105
- ### "SERVER_URL is required" error
106
-
107
- Make sure to provide the server URL via the `SERVER_URL` environment variable.
108
-
109
124
  ### Connection issues
110
125
 
111
126
  - Check that the server is running and accessible
112
127
  - Verify the WebSocket URL format (should start with `ws://` or `wss://`)
113
128
  - Check firewall/network settings
114
129
  - The CLI will automatically attempt to reconnect every 5 seconds if disconnected
130
+
131
+ ### Authentication issues
132
+
133
+ - Run `amai login` to authenticate
134
+ - Credentials are stored in `~/.amai/credentials.json`
135
+ - Run `amai logout` to clear credentials and re-authenticate
package/dist/cli.cjs CHANGED
@@ -28,7 +28,7 @@ var readline__default = /*#__PURE__*/_interopDefault(readline);
28
28
 
29
29
  var DEFAULT_SERVER_URL = "wss://ama-production-a628.up.railway.app";
30
30
  var CLIENT_ID = "client_01K4Y8A67H544Z6J8A47E5GJ9A";
31
- var AMA_DIR = path9__default.default.join(os2__default.default.homedir(), ".ama");
31
+ var AMA_DIR = path9__default.default.join(os2__default.default.homedir(), ".amai");
32
32
  var CODE_DIR = path9__default.default.join(AMA_DIR, "code");
33
33
  var STORAGE_DIR = path9__default.default.join(AMA_DIR, "storage");
34
34
 
@@ -1357,7 +1357,7 @@ var startHttpServer = (connection) => {
1357
1357
  nodeServer.serve({ fetch: app.fetch, port: 3456 });
1358
1358
  };
1359
1359
  var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
1360
- var CREDENTIALS_DIR = path9__default.default.join(os2__default.default.homedir(), ".ama");
1360
+ var CREDENTIALS_DIR = path9__default.default.join(os2__default.default.homedir(), ".amai");
1361
1361
  var CREDENTIALS_PATH = path9__default.default.join(CREDENTIALS_DIR, "credentials.json");
1362
1362
  function isAuthenticated() {
1363
1363
  try {
@@ -1571,7 +1571,7 @@ function connectToServer2(serverUrl = DEFAULT_SERVER_URL) {
1571
1571
  }
1572
1572
  async function main() {
1573
1573
  const serverUrl = DEFAULT_SERVER_URL;
1574
- console.log(pc4__default.default.green("Starting local ama-agent..."));
1574
+ console.log(pc4__default.default.green("Starting local amai..."));
1575
1575
  console.log(pc4__default.default.gray(`Connecting to server at ${serverUrl}`));
1576
1576
  const connection = connectToServer2(serverUrl);
1577
1577
  startHttpServer(connection);
@@ -1762,7 +1762,7 @@ function getDaemonPid() {
1762
1762
  return null;
1763
1763
  }
1764
1764
  }
1765
- var VERSION = "0.0.1";
1765
+ var VERSION = "0.0.2";
1766
1766
  var PROJECT_DIR = process.cwd();
1767
1767
  function promptUser(question) {
1768
1768
  const rl = readline__default.default.createInterface({
@@ -1798,9 +1798,9 @@ async function startWithCodeServer() {
1798
1798
  var args = process.argv.slice(2);
1799
1799
  if (args[0] === "--help" || args[0] === "-h") {
1800
1800
  console.log(`
1801
- ${pc4__default.default.bold("ama cli")} ${pc4__default.default.gray(VERSION)}
1801
+ ${pc4__default.default.bold("amai cli")} ${pc4__default.default.gray(VERSION)}
1802
1802
 
1803
- Usage: ama [command] [options]
1803
+ Usage: amai [command] [options]
1804
1804
 
1805
1805
  Commands:
1806
1806
  login Authorize device
@@ -1817,10 +1817,10 @@ Environment Variables:
1817
1817
  SERVER_URL Server URL to connect to
1818
1818
 
1819
1819
  Example:
1820
- ama login
1821
- ama start
1822
- ama project add /path/to/project
1823
- ama Start the agent (will prompt for background mode)
1820
+ amai login
1821
+ amai start
1822
+ amai project add /path/to/project
1823
+ amai Start the agent (will prompt for background mode)
1824
1824
  `);
1825
1825
  process.exit(0);
1826
1826
  }
@@ -1842,8 +1842,8 @@ if (args[0] === "start") {
1842
1842
  });
1843
1843
  } else {
1844
1844
  startDaemon();
1845
- console.log(pc4__default.default.green(pc4__default.default.bold("ama started in background mode")));
1846
- console.log(pc4__default.default.gray(`Tip: You can check status any time with ${pc4__default.default.bold("ama status")}`));
1845
+ console.log(pc4__default.default.green(pc4__default.default.bold("amai started in background mode")));
1846
+ console.log(pc4__default.default.gray(`Tip: You can check status any time with ${pc4__default.default.bold("amai status")}`));
1847
1847
  process.exit(0);
1848
1848
  }
1849
1849
  }
@@ -1870,7 +1870,7 @@ if (args[0] === "project") {
1870
1870
  const projectPath = args[2];
1871
1871
  if (!projectPath) {
1872
1872
  console.error(pc4__default.default.red("Please provide a project path"));
1873
- console.log("Usage: ama project add <path>");
1873
+ console.log("Usage: amai project add <path>");
1874
1874
  process.exit(1);
1875
1875
  }
1876
1876
  const resolvedPath = path9__default.default.resolve(projectPath);
@@ -1899,7 +1899,7 @@ if (args[0] === "project") {
1899
1899
  process.exit(0);
1900
1900
  } else {
1901
1901
  console.error(pc4__default.default.red(`Unknown project command: ${args[1]}`));
1902
- console.log('Use "ama project add <path>" or "ama project list"');
1902
+ console.log('Use "amai project add <path>" or "amai project list"');
1903
1903
  process.exit(1);
1904
1904
  }
1905
1905
  }
@@ -1921,11 +1921,11 @@ if (args[0] === "login" || args[0] === "--login") {
1921
1921
  }
1922
1922
  }
1923
1923
  if (isDaemonRunning()) {
1924
- console.log(pc4__default.default.yellow('Daemon is already running. Use "ama status" to check its status.'));
1924
+ console.log(pc4__default.default.yellow('Daemon is already running. Use "amai status" to check its status.'));
1925
1925
  process.exit(0);
1926
1926
  }
1927
1927
  console.log("");
1928
- console.log(pc4__default.default.bold("How would you like to run ama?"));
1928
+ console.log(pc4__default.default.bold("How would you like to run amai?"));
1929
1929
  console.log(pc4__default.default.gray("Background mode is highly recommended for better performance and stability."));
1930
1930
  const answer = await promptUser(
1931
1931
  pc4__default.default.cyan("Run in background? (Y/n): ")
@@ -1935,8 +1935,8 @@ if (args[0] === "login" || args[0] === "--login") {
1935
1935
  console.log(pc4__default.default.green("Starting daemon in background..."));
1936
1936
  startDaemon();
1937
1937
  console.log(pc4__default.default.green("Daemon started successfully!"));
1938
- console.log(pc4__default.default.gray('Use "ama status" to check daemon status.'));
1939
- console.log(pc4__default.default.gray('Use "ama stop" to stop the daemon.'));
1938
+ console.log(pc4__default.default.gray('Use "amai status" to check daemon status.'));
1939
+ console.log(pc4__default.default.gray('Use "amai stop" to stop the daemon.'));
1940
1940
  process.exit(0);
1941
1941
  } else {
1942
1942
  console.log(pc4__default.default.yellow("Starting in foreground mode..."));
package/dist/cli.js CHANGED
@@ -16,7 +16,7 @@ import readline from 'readline';
16
16
 
17
17
  var DEFAULT_SERVER_URL = "wss://ama-production-a628.up.railway.app";
18
18
  var CLIENT_ID = "client_01K4Y8A67H544Z6J8A47E5GJ9A";
19
- var AMA_DIR = path9.join(os2.homedir(), ".ama");
19
+ var AMA_DIR = path9.join(os2.homedir(), ".amai");
20
20
  var CODE_DIR = path9.join(AMA_DIR, "code");
21
21
  var STORAGE_DIR = path9.join(AMA_DIR, "storage");
22
22
 
@@ -1345,7 +1345,7 @@ var startHttpServer = (connection) => {
1345
1345
  serve({ fetch: app.fetch, port: 3456 });
1346
1346
  };
1347
1347
  var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
1348
- var CREDENTIALS_DIR = path9.join(os2.homedir(), ".ama");
1348
+ var CREDENTIALS_DIR = path9.join(os2.homedir(), ".amai");
1349
1349
  var CREDENTIALS_PATH = path9.join(CREDENTIALS_DIR, "credentials.json");
1350
1350
  function isAuthenticated() {
1351
1351
  try {
@@ -1559,7 +1559,7 @@ function connectToServer2(serverUrl = DEFAULT_SERVER_URL) {
1559
1559
  }
1560
1560
  async function main() {
1561
1561
  const serverUrl = DEFAULT_SERVER_URL;
1562
- console.log(pc4.green("Starting local ama-agent..."));
1562
+ console.log(pc4.green("Starting local amai..."));
1563
1563
  console.log(pc4.gray(`Connecting to server at ${serverUrl}`));
1564
1564
  const connection = connectToServer2(serverUrl);
1565
1565
  startHttpServer(connection);
@@ -1750,7 +1750,7 @@ function getDaemonPid() {
1750
1750
  return null;
1751
1751
  }
1752
1752
  }
1753
- var VERSION = "0.0.1";
1753
+ var VERSION = "0.0.2";
1754
1754
  var PROJECT_DIR = process.cwd();
1755
1755
  function promptUser(question) {
1756
1756
  const rl = readline.createInterface({
@@ -1786,9 +1786,9 @@ async function startWithCodeServer() {
1786
1786
  var args = process.argv.slice(2);
1787
1787
  if (args[0] === "--help" || args[0] === "-h") {
1788
1788
  console.log(`
1789
- ${pc4.bold("ama cli")} ${pc4.gray(VERSION)}
1789
+ ${pc4.bold("amai cli")} ${pc4.gray(VERSION)}
1790
1790
 
1791
- Usage: ama [command] [options]
1791
+ Usage: amai [command] [options]
1792
1792
 
1793
1793
  Commands:
1794
1794
  login Authorize device
@@ -1805,10 +1805,10 @@ Environment Variables:
1805
1805
  SERVER_URL Server URL to connect to
1806
1806
 
1807
1807
  Example:
1808
- ama login
1809
- ama start
1810
- ama project add /path/to/project
1811
- ama Start the agent (will prompt for background mode)
1808
+ amai login
1809
+ amai start
1810
+ amai project add /path/to/project
1811
+ amai Start the agent (will prompt for background mode)
1812
1812
  `);
1813
1813
  process.exit(0);
1814
1814
  }
@@ -1830,8 +1830,8 @@ if (args[0] === "start") {
1830
1830
  });
1831
1831
  } else {
1832
1832
  startDaemon();
1833
- console.log(pc4.green(pc4.bold("ama started in background mode")));
1834
- console.log(pc4.gray(`Tip: You can check status any time with ${pc4.bold("ama status")}`));
1833
+ console.log(pc4.green(pc4.bold("amai started in background mode")));
1834
+ console.log(pc4.gray(`Tip: You can check status any time with ${pc4.bold("amai status")}`));
1835
1835
  process.exit(0);
1836
1836
  }
1837
1837
  }
@@ -1858,7 +1858,7 @@ if (args[0] === "project") {
1858
1858
  const projectPath = args[2];
1859
1859
  if (!projectPath) {
1860
1860
  console.error(pc4.red("Please provide a project path"));
1861
- console.log("Usage: ama project add <path>");
1861
+ console.log("Usage: amai project add <path>");
1862
1862
  process.exit(1);
1863
1863
  }
1864
1864
  const resolvedPath = path9.resolve(projectPath);
@@ -1887,7 +1887,7 @@ if (args[0] === "project") {
1887
1887
  process.exit(0);
1888
1888
  } else {
1889
1889
  console.error(pc4.red(`Unknown project command: ${args[1]}`));
1890
- console.log('Use "ama project add <path>" or "ama project list"');
1890
+ console.log('Use "amai project add <path>" or "amai project list"');
1891
1891
  process.exit(1);
1892
1892
  }
1893
1893
  }
@@ -1909,11 +1909,11 @@ if (args[0] === "login" || args[0] === "--login") {
1909
1909
  }
1910
1910
  }
1911
1911
  if (isDaemonRunning()) {
1912
- console.log(pc4.yellow('Daemon is already running. Use "ama status" to check its status.'));
1912
+ console.log(pc4.yellow('Daemon is already running. Use "amai status" to check its status.'));
1913
1913
  process.exit(0);
1914
1914
  }
1915
1915
  console.log("");
1916
- console.log(pc4.bold("How would you like to run ama?"));
1916
+ console.log(pc4.bold("How would you like to run amai?"));
1917
1917
  console.log(pc4.gray("Background mode is highly recommended for better performance and stability."));
1918
1918
  const answer = await promptUser(
1919
1919
  pc4.cyan("Run in background? (Y/n): ")
@@ -1923,8 +1923,8 @@ if (args[0] === "login" || args[0] === "--login") {
1923
1923
  console.log(pc4.green("Starting daemon in background..."));
1924
1924
  startDaemon();
1925
1925
  console.log(pc4.green("Daemon started successfully!"));
1926
- console.log(pc4.gray('Use "ama status" to check daemon status.'));
1927
- console.log(pc4.gray('Use "ama stop" to stop the daemon.'));
1926
+ console.log(pc4.gray('Use "amai status" to check daemon status.'));
1927
+ console.log(pc4.gray('Use "amai stop" to stop the daemon.'));
1928
1928
  process.exit(0);
1929
1929
  } else {
1930
1930
  console.log(pc4.yellow("Starting in foreground mode..."));
@@ -23,7 +23,7 @@ var os2__default = /*#__PURE__*/_interopDefault(os2);
23
23
  var pc2__default = /*#__PURE__*/_interopDefault(pc2);
24
24
 
25
25
  var DEFAULT_SERVER_URL = "wss://ama-production-a628.up.railway.app";
26
- var AMA_DIR = path9__default.default.join(os2__default.default.homedir(), ".ama");
26
+ var AMA_DIR = path9__default.default.join(os2__default.default.homedir(), ".amai");
27
27
  var CODE_DIR = path9__default.default.join(AMA_DIR, "code");
28
28
  var STORAGE_DIR = path9__default.default.join(AMA_DIR, "storage");
29
29
 
@@ -1351,7 +1351,7 @@ var startHttpServer = (connection) => {
1351
1351
  });
1352
1352
  nodeServer.serve({ fetch: app.fetch, port: 3456 });
1353
1353
  };
1354
- var CREDENTIALS_DIR = path9__default.default.join(os2__default.default.homedir(), ".ama");
1354
+ var CREDENTIALS_DIR = path9__default.default.join(os2__default.default.homedir(), ".amai");
1355
1355
  var CREDENTIALS_PATH = path9__default.default.join(CREDENTIALS_DIR, "credentials.json");
1356
1356
  function getTokens() {
1357
1357
  if (!fs3__default.default.existsSync(CREDENTIALS_PATH)) {
@@ -1426,7 +1426,7 @@ function connectToServer2(serverUrl = DEFAULT_SERVER_URL) {
1426
1426
  }
1427
1427
  async function main() {
1428
1428
  const serverUrl = DEFAULT_SERVER_URL;
1429
- console.log(pc2__default.default.green("Starting local ama-agent..."));
1429
+ console.log(pc2__default.default.green("Starting local amai..."));
1430
1430
  console.log(pc2__default.default.gray(`Connecting to server at ${serverUrl}`));
1431
1431
  const connection = connectToServer2(serverUrl);
1432
1432
  startHttpServer(connection);
@@ -13,7 +13,7 @@ import { serve } from '@hono/node-server';
13
13
  import { cors } from 'hono/cors';
14
14
 
15
15
  var DEFAULT_SERVER_URL = "wss://ama-production-a628.up.railway.app";
16
- var AMA_DIR = path9.join(os2.homedir(), ".ama");
16
+ var AMA_DIR = path9.join(os2.homedir(), ".amai");
17
17
  var CODE_DIR = path9.join(AMA_DIR, "code");
18
18
  var STORAGE_DIR = path9.join(AMA_DIR, "storage");
19
19
 
@@ -1341,7 +1341,7 @@ var startHttpServer = (connection) => {
1341
1341
  });
1342
1342
  serve({ fetch: app.fetch, port: 3456 });
1343
1343
  };
1344
- var CREDENTIALS_DIR = path9.join(os2.homedir(), ".ama");
1344
+ var CREDENTIALS_DIR = path9.join(os2.homedir(), ".amai");
1345
1345
  var CREDENTIALS_PATH = path9.join(CREDENTIALS_DIR, "credentials.json");
1346
1346
  function getTokens() {
1347
1347
  if (!fs3.existsSync(CREDENTIALS_PATH)) {
@@ -1416,7 +1416,7 @@ function connectToServer2(serverUrl = DEFAULT_SERVER_URL) {
1416
1416
  }
1417
1417
  async function main() {
1418
1418
  const serverUrl = DEFAULT_SERVER_URL;
1419
- console.log(pc2.green("Starting local ama-agent..."));
1419
+ console.log(pc2.green("Starting local amai..."));
1420
1420
  console.log(pc2.gray(`Connecting to server at ${serverUrl}`));
1421
1421
  const connection = connectToServer2(serverUrl);
1422
1422
  startHttpServer(connection);
package/dist/server.cjs CHANGED
@@ -23,7 +23,7 @@ var os2__default = /*#__PURE__*/_interopDefault(os2);
23
23
  var pc2__default = /*#__PURE__*/_interopDefault(pc2);
24
24
 
25
25
  var DEFAULT_SERVER_URL = "wss://ama-production-a628.up.railway.app";
26
- var AMA_DIR = path9__default.default.join(os2__default.default.homedir(), ".ama");
26
+ var AMA_DIR = path9__default.default.join(os2__default.default.homedir(), ".amai");
27
27
  path9__default.default.join(AMA_DIR, "code");
28
28
  path9__default.default.join(AMA_DIR, "storage");
29
29
 
@@ -1351,7 +1351,7 @@ var startHttpServer = (connection) => {
1351
1351
  });
1352
1352
  nodeServer.serve({ fetch: app.fetch, port: 3456 });
1353
1353
  };
1354
- var CREDENTIALS_DIR = path9__default.default.join(os2__default.default.homedir(), ".ama");
1354
+ var CREDENTIALS_DIR = path9__default.default.join(os2__default.default.homedir(), ".amai");
1355
1355
  var CREDENTIALS_PATH = path9__default.default.join(CREDENTIALS_DIR, "credentials.json");
1356
1356
  function getTokens() {
1357
1357
  if (!fs3__default.default.existsSync(CREDENTIALS_PATH)) {
@@ -1426,7 +1426,7 @@ function connectToServer2(serverUrl = DEFAULT_SERVER_URL) {
1426
1426
  }
1427
1427
  async function main() {
1428
1428
  const serverUrl = DEFAULT_SERVER_URL;
1429
- console.log(pc2__default.default.green("Starting local ama-agent..."));
1429
+ console.log(pc2__default.default.green("Starting local amai..."));
1430
1430
  console.log(pc2__default.default.gray(`Connecting to server at ${serverUrl}`));
1431
1431
  const connection = connectToServer2(serverUrl);
1432
1432
  startHttpServer(connection);
package/dist/server.js CHANGED
@@ -13,7 +13,7 @@ import { serve } from '@hono/node-server';
13
13
  import { cors } from 'hono/cors';
14
14
 
15
15
  var DEFAULT_SERVER_URL = "wss://ama-production-a628.up.railway.app";
16
- var AMA_DIR = path9.join(os2.homedir(), ".ama");
16
+ var AMA_DIR = path9.join(os2.homedir(), ".amai");
17
17
  path9.join(AMA_DIR, "code");
18
18
  path9.join(AMA_DIR, "storage");
19
19
 
@@ -1341,7 +1341,7 @@ var startHttpServer = (connection) => {
1341
1341
  });
1342
1342
  serve({ fetch: app.fetch, port: 3456 });
1343
1343
  };
1344
- var CREDENTIALS_DIR = path9.join(os2.homedir(), ".ama");
1344
+ var CREDENTIALS_DIR = path9.join(os2.homedir(), ".amai");
1345
1345
  var CREDENTIALS_PATH = path9.join(CREDENTIALS_DIR, "credentials.json");
1346
1346
  function getTokens() {
1347
1347
  if (!fs3.existsSync(CREDENTIALS_PATH)) {
@@ -1416,7 +1416,7 @@ function connectToServer2(serverUrl = DEFAULT_SERVER_URL) {
1416
1416
  }
1417
1417
  async function main() {
1418
1418
  const serverUrl = DEFAULT_SERVER_URL;
1419
- console.log(pc2.green("Starting local ama-agent..."));
1419
+ console.log(pc2.green("Starting local amai..."));
1420
1420
  console.log(pc2.gray(`Connecting to server at ${serverUrl}`));
1421
1421
  const connection = connectToServer2(serverUrl);
1422
1422
  startHttpServer(connection);
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "amai",
3
3
  "type": "module",
4
- "version": "0.0.1",
5
- "description": "ama cli that connects to server backend to execute tool calls locally",
4
+ "version": "0.0.2",
5
+ "description": "ama rpc daemon",
6
6
  "keywords": [
7
7
  "ama",
8
8
  "cli",