@termfleet/core 0.1.1 → 0.1.3
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 +2 -1
- package/dist/local-tunnel.js +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -55,7 +55,8 @@ const session = readLocalAgentSession({
|
|
|
55
55
|
sessionId: "claude:0f9c…", // or "codex:…", "gemini:…", or a bare Claude uuid
|
|
56
56
|
});
|
|
57
57
|
|
|
58
|
-
console.log(session.
|
|
58
|
+
console.log(session.sessionId); // "claude:0f9c…" (prefixed)
|
|
59
|
+
console.log(session.agentSessionId); // "0f9c…" (bare id, no prefix)
|
|
59
60
|
console.log(session.lastAssistantText);
|
|
60
61
|
console.log(session.endOfTurn); // is the turn finished?
|
|
61
62
|
for (const item of session.timeline) {
|
package/dist/local-tunnel.js
CHANGED
|
@@ -84,13 +84,14 @@ function startLocalTunnel(src, options) {
|
|
|
84
84
|
if (!Number.isInteger(port) || port < 1 || port > 65535) {
|
|
85
85
|
throw new Error(`Cannot tunnel iframe URL with invalid local port: ${src.href}`);
|
|
86
86
|
}
|
|
87
|
-
const bin = process.env.TERMFLEET_LOCAL_TUNNEL_BIN
|
|
87
|
+
const bin = process.env.TERMFLEET_LOCAL_TUNNEL_BIN;
|
|
88
|
+
if (!bin) {
|
|
89
|
+
throw new Error("Tunneling requires a tunnel client. Set TERMFLEET_LOCAL_TUNNEL_BIN to your tunnel client binary (or use a standalone tunnel like ngrok/cloudflared — see the README).");
|
|
90
|
+
}
|
|
88
91
|
if (!commandExists(bin)) {
|
|
89
|
-
throw new Error(`
|
|
92
|
+
throw new Error(`Tunnel client "${bin}" (TERMFLEET_LOCAL_TUNNEL_BIN) is not on PATH.`);
|
|
90
93
|
}
|
|
91
|
-
const tunnelServerUrl = process.env.TUNNEL_SERVER_URL ??
|
|
92
|
-
process.env.TERMFLEET_TUNNEL_SERVER_URL ??
|
|
93
|
-
'https://volter-tunnel.aaron-0ed.workers.dev';
|
|
94
|
+
const tunnelServerUrl = process.env.TUNNEL_SERVER_URL ?? process.env.TERMFLEET_TUNNEL_SERVER_URL;
|
|
94
95
|
if (!tunnelServerUrl) {
|
|
95
96
|
throw new Error("Tunneling requires a tunnel server. Set TERMFLEET_TUNNEL_SERVER_URL to your tunnel server's URL (or use a standalone tunnel like ngrok/cloudflared — see the README).");
|
|
96
97
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@termfleet/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Termfleet core: contracts, the provider SDK, and the agent-transcript/session library (Claude Code / Codex / Gemini). The reusable layer, usable beyond the console.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|