nextclaw 0.3.1 → 0.3.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/dist/cli/index.js CHANGED
@@ -80,19 +80,7 @@ async function findAvailablePort(port, host, attempts = 20) {
80
80
  }
81
81
  async function isPortAvailable(port, host) {
82
82
  const checkHost = normalizeHostForPortCheck(host);
83
- const hostsToCheck = [checkHost];
84
- if (checkHost === "127.0.0.1") {
85
- hostsToCheck.push("::1");
86
- } else if (checkHost === "::1") {
87
- hostsToCheck.push("127.0.0.1");
88
- }
89
- for (const candidate of hostsToCheck) {
90
- const ok = await canBindPort(port, candidate);
91
- if (ok) {
92
- return true;
93
- }
94
- }
95
- return false;
83
+ return await canBindPort(port, checkHost);
96
84
  }
97
85
  async function canBindPort(port, host) {
98
86
  return await new Promise((resolve3) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextclaw",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Lightweight personal AI assistant with CLI, multi-provider routing, and channel integrations.",
5
5
  "private": false,
6
6
  "type": "module",