ramwisp 0.1.4 → 0.1.5
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 +1 -1
- package/package.json +2 -2
- package/src/account.js +4 -2
- package/src/mcp.js +1 -1
package/README.md
CHANGED
|
@@ -9,4 +9,4 @@ credential for that enclave only.
|
|
|
9
9
|
claude mcp add --scope user ramwisp -- npx -y ramwisp@latest
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
On first use it opens your browser so you can sign in. More at https://ramwisp.
|
|
12
|
+
On first use it opens your browser so you can sign in. More at https://ramwisp.com
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ramwisp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "ramwisp: Claude Code and Codex subagents on their own cloud machines (AWS Nitro Enclaves), with your own subscription. MCP + CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"subagents",
|
|
29
29
|
"nitro-enclaves"
|
|
30
30
|
],
|
|
31
|
-
"homepage": "https://ramwisp.
|
|
31
|
+
"homepage": "https://ramwisp.com"
|
|
32
32
|
}
|
package/src/account.js
CHANGED
|
@@ -4,7 +4,9 @@ import { chmodSync, existsSync, mkdirSync, readFileSync, rmSync, writeFileSync }
|
|
|
4
4
|
import { homedir, hostname } from "node:os";
|
|
5
5
|
import { join } from "node:path";
|
|
6
6
|
|
|
7
|
-
export const API = (process.env.WISP_API ?? "https://ramwisp.
|
|
7
|
+
export const API = (process.env.WISP_API ?? "https://ramwisp.com").replace(/\/$/, "");
|
|
8
|
+
// endereços antigos do mesmo serviço: um login salvo com eles continua valendo
|
|
9
|
+
const SAME_SERVICE = new Set(["https://ramwisp.com", "https://ramwisp.duckdns.org"]);
|
|
8
10
|
export const DIR = process.env.WISP_CONFIG_DIR ?? join(process.env.XDG_CONFIG_HOME ?? join(homedir(), ".config"), "wisp");
|
|
9
11
|
const CRED = join(DIR, "credentials.json");
|
|
10
12
|
|
|
@@ -23,7 +25,7 @@ export function getToken() {
|
|
|
23
25
|
if (process.env.WISP_TOKEN) return process.env.WISP_TOKEN;
|
|
24
26
|
try {
|
|
25
27
|
const c = JSON.parse(readFileSync(CRED, "utf8"));
|
|
26
|
-
return c.api === API ? c.token : null;
|
|
28
|
+
return c.api === API || (SAME_SERVICE.has(c.api) && SAME_SERVICE.has(API)) ? c.token : null;
|
|
27
29
|
} catch { return null; }
|
|
28
30
|
}
|
|
29
31
|
|
package/src/mcp.js
CHANGED
|
@@ -4,7 +4,7 @@ import { API, getToken, setClient, startLogin } from "./account.js";
|
|
|
4
4
|
import { LoginRequired, killAgent, listAgents, result, spawnAgent, waitAgent } from "./client.js";
|
|
5
5
|
|
|
6
6
|
const PROTOCOLS = ["2025-06-18", "2025-03-26", "2024-11-05"];
|
|
7
|
-
const VERSION = "0.1.
|
|
7
|
+
const VERSION = "0.1.5";
|
|
8
8
|
|
|
9
9
|
const INSTRUCTIONS = `ramwisp runs Claude Code or Codex subagents on ephemeral cloud machines with the RAM you ask for,
|
|
10
10
|
without loading this machine. Each subagent starts inside an isolated enclave (AWS Nitro): before sending anything,
|