@cloudless-ai/node-agent 0.0.16 → 0.0.25

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
@@ -11,7 +11,7 @@ npm install -g @cloudless-ai/node-agent
11
11
  During install, the script:
12
12
 
13
13
  1. Detects your OS/CPU architecture.
14
- 2. Installs the matching precompiled binary bundled in this package.
14
+ 2. Installs the matching precompiled binary bundled in this package, including the embedded llama.cpp backend.
15
15
  3. On macOS, also installs `CloudlessMenuBar`.
16
16
  4. Prompts for your router API key and writes `~/.cloudless/agent.yaml`.
17
17
 
@@ -38,5 +38,5 @@ CLOUDLESS_NODE_API_KEY=your_key CLOUDLESS_ROUTER_URL=http://router-host:8080 npm
38
38
  - Configuration is written to `~/.cloudless/agent.yaml`.
39
39
  - `cloudless-node start` launches the node + menubar in the background by default.
40
40
  - Use `cloudless-node start --interactive` to keep it attached to your terminal.
41
- - Installation has no GitHub release dependency; binaries are bundled in the npm tarball.
41
+ - Installation has no GitHub release dependency; binaries are bundled in the npm tarball with the embedded backend.
42
42
  - For internet demos, set `router.advertise_address` in `~/.cloudless/agent.yaml` (or `CLOUDLESS_AGENT_ADVERTISE_ADDRESS`) to a public tunnel URL so router/dashboard can reach this node.
@@ -92,13 +92,13 @@ function clearSupervisorPid() {
92
92
  function runSupervisor(agentArgs) {
93
93
  checkBinary(agentBin);
94
94
 
95
- const isMac = process.platform === "darwin";
95
+ const supportsMenuBar = process.platform === "darwin" || process.platform === "win32";
96
96
  const startTime = Date.now();
97
97
 
98
98
  const agent = spawn(agentBin, withDefaultConfig(agentArgs), { stdio: "inherit" });
99
99
 
100
100
  let menubar = null;
101
- if (isMac) {
101
+ if (supportsMenuBar) {
102
102
  if (fs.existsSync(menubarBin)) {
103
103
  menubar = spawn(menubarBin, [], { stdio: "ignore" });
104
104
  }
@@ -122,13 +122,12 @@ function runSupervisor(agentArgs) {
122
122
 
123
123
  agent.on("exit", (code) => {
124
124
  const exitedQuickly = Date.now() - startTime < 5000;
125
- if (menubar && code !== 0 && code !== null && exitedQuickly) {
125
+ if (code !== 0 && code !== null && exitedQuickly) {
126
126
  process.stderr.write(
127
127
  "cloudless-node: agent failed to start, keeping menubar attached to existing local agent if available\n"
128
128
  );
129
129
  return;
130
130
  }
131
- if (menubar) menubar.kill();
132
131
  clearSupervisorPid();
133
132
  process.exit(code ?? 0);
134
133
  });
@@ -250,6 +249,5 @@ switch (cmd) {
250
249
  }
251
250
 
252
251
  default:
253
- // Pass unknown subcommands/flags straight to the agent binary
254
252
  runBinary(agentBin, [cmd, ...rest]);
255
253
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudless-ai/node-agent",
3
- "version": "0.0.16",
3
+ "version": "0.0.25",
4
4
  "description": "Cloudless AI node agent installer and launcher",
5
5
  "license": "MIT",
6
6
  "homepage": "https://cloudless-ai.app",
package/scripts/common.js CHANGED
@@ -115,12 +115,9 @@ function defaultAgentConfig(routerURL, token) {
115
115
  # advertise_address: "https://my-node-demo.example.com"
116
116
 
117
117
  inference:
118
- backend: "llamacpp"
119
- llamacpp_host: "http://localhost:8081"
120
118
  models_dir: "${HOME}/.cloudless/models"
121
119
  preload_models: []
122
120
  max_concurrent_requests: 4
123
- auto_install_llamacpp: false
124
121
  unload_on_system_load: true
125
122
 
126
123
  server:
File without changes