@a-tether/pi 0.0.0-stage → 0.1.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SandyKid
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,16 @@
1
- # Temporary Holding Version
1
+ # @a-tether/pi
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Pi 插件和启动器:通过端口转发,使用另一台电脑(C)上 [`@a-tether/server`](https://www.npmjs.com/package/@a-tether/server) 提供的 Claude Code。
4
+
5
+ **需要先自行安装 Pi**(`npm install -g @earendil-works/pi-coding-agent`),本包不会安装 Pi。
6
+
7
+ ```sh
8
+ npx -y @a-tether/pi login <令牌> # 只需一次;命令由 C 端服务首次启动时打印
9
+ pi install npm:@a-tether/pi # 把插件装进 Pi,之后在项目目录直接运行 pi
10
+ ```
11
+
12
+ 也可以不安装插件,每次用 `npx -y @a-tether/pi` 启动带插件的 Pi;其余参数原样传给 Pi,例如 `npx -y @a-tether/pi --model a-tether/claude-opus-5-5`。
13
+
14
+ - 令牌和连接地址保存在 `~/.a-tether/settings.json`,默认连接 `http://127.0.0.1:7310`。A 和 C 是同一台电脑时无需 login。
15
+ - 在 Pi 中运行 `/a-tether-status` 检查连接。
16
+ - 完整说明见 [README](https://github.com/SandyKidYao/a-tether#readme)。
@@ -0,0 +1,23 @@
1
+ import { messages } from "../shared/protocol.js";
2
+ import { loadSettings } from "../shared/settings.js";
3
+ export function errorMessage(code) {
4
+ return typeof code === "string" && Object.hasOwn(messages, code) ? messages[code] : messages.backend;
5
+ }
6
+ // Settings are read on every request, so `login` takes effect without restarting Pi.
7
+ export async function request(path, init = {}) {
8
+ const { token, client } = loadSettings();
9
+ if (!token)
10
+ throw new Error(messages.token);
11
+ let res;
12
+ try {
13
+ res = await fetch(client.url + path, { ...init, redirect: "error", headers: { authorization: "Bearer " + token, "content-type": "application/json" } });
14
+ }
15
+ catch {
16
+ throw new Error(messages.connection);
17
+ }
18
+ if (!res.ok) {
19
+ const data = await res.json().catch(() => ({}));
20
+ throw new Error(errorMessage(data?.code));
21
+ }
22
+ return res;
23
+ }
@@ -0,0 +1,103 @@
1
+ #!/usr/bin/env node
2
+ // Starts the user's own Pi with the A-tether extension. Never installs Pi.
3
+ import { spawn } from "node:child_process";
4
+ import { accessSync, constants, statSync } from "node:fs";
5
+ import { delimiter, join } from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+ import { displayPath, loadSettings, saveToken } from "../../shared/settings.js";
8
+ const extension = fileURLToPath(new URL(import.meta.url.endsWith(".ts") ? "./extension.ts" : "./extension.js", import.meta.url));
9
+ const subcommands = new Set(["install", "remove", "uninstall", "update", "list", "config", "auth", "mcp"]);
10
+ const windows = process.platform === "win32";
11
+ function executable(file) {
12
+ try {
13
+ if (!statSync(file).isFile())
14
+ return false;
15
+ if (!windows)
16
+ accessSync(file, constants.X_OK);
17
+ return true;
18
+ }
19
+ catch {
20
+ return false;
21
+ }
22
+ }
23
+ export function findPi(env = process.env, configured = loadSettings().client.pi) {
24
+ if (configured)
25
+ return executable(configured) ? configured : undefined;
26
+ const names = windows ? ["pi.cmd", "pi.exe", "pi"] : ["pi"];
27
+ for (const dir of (env.PATH ?? "").split(delimiter)) {
28
+ if (!dir)
29
+ continue;
30
+ for (const name of names) {
31
+ const file = join(dir, name);
32
+ if (executable(file))
33
+ return file;
34
+ }
35
+ }
36
+ }
37
+ export function piArgs(args) {
38
+ if (args.length && subcommands.has(args[0]))
39
+ return args;
40
+ const hasModel = args.some(arg => arg === "--model" || arg.startsWith("--model="));
41
+ return ["-e", extension, ...(hasModel ? [] : ["--model", "a-tether/default"]), ...args];
42
+ }
43
+ export function login(args) {
44
+ if (args.length !== 1)
45
+ throw new Error("用法:npx -y @a-tether/pi login <令牌>\n令牌在 C 上运行 npx -y @a-tether/server token 查看。");
46
+ saveToken(args[0]);
47
+ return [
48
+ `令牌已保存到 ${displayPath}。`,
49
+ "接下来在项目目录运行 pi(已用 pi install npm:@a-tether/pi 安装插件时)或 npx -y @a-tether/pi,",
50
+ "在 Pi 中运行 /a-tether-status 检查连接。",
51
+ ].join("\n");
52
+ }
53
+ function main() {
54
+ const argv = process.argv.slice(2);
55
+ if (argv[0] === "login") {
56
+ try {
57
+ console.log(login(argv.slice(1)));
58
+ }
59
+ catch (error) {
60
+ console.error(error.message);
61
+ process.exitCode = 1;
62
+ }
63
+ return;
64
+ }
65
+ let pi;
66
+ try {
67
+ pi = findPi();
68
+ }
69
+ catch (error) {
70
+ console.error(error.message);
71
+ process.exit(1);
72
+ }
73
+ if (!pi) {
74
+ console.error([
75
+ "a-tether-pi 需要本机已安装的 Pi,但找不到 pi 命令。",
76
+ "请先自行安装 Pi,例如:",
77
+ " npm install -g @earendil-works/pi-coding-agent",
78
+ "安装后确认 `pi --version` 可以运行,再重新执行 a-tether-pi。",
79
+ `如果 pi 不在 PATH 中,可在 ${displayPath} 的 client.pi 填写它的绝对路径。`,
80
+ ].join("\n"));
81
+ process.exit(1);
82
+ }
83
+ const args = piArgs(argv);
84
+ // Windows .cmd shims can only be started through a shell.
85
+ const shell = windows && /\.cmd$/i.test(pi);
86
+ const quote = (value) => shell ? `"${value.replace(/"/g, '""')}"` : value;
87
+ const child = spawn(quote(pi), args.map(quote), { stdio: "inherit", shell });
88
+ // The terminal already delivers Ctrl+C to Pi; forwarding it would count twice.
89
+ process.on("SIGINT", () => { });
90
+ for (const signal of ["SIGTERM", "SIGHUP"])
91
+ process.on(signal, () => child.kill(signal));
92
+ child.on("error", error => { console.error("无法启动 Pi:" + error.message); process.exit(1); });
93
+ child.on("exit", (code, signal) => {
94
+ if (signal) {
95
+ process.removeAllListeners(signal);
96
+ process.kill(process.pid, signal);
97
+ }
98
+ else
99
+ process.exit(code ?? 1);
100
+ });
101
+ }
102
+ if (process.argv[1] && fileURLToPath(import.meta.url) === (await import("node:fs")).realpathSync(process.argv[1]))
103
+ main();
@@ -0,0 +1,146 @@
1
+ import { randomUUID } from "node:crypto";
2
+ import { createProvider, createAssistantMessageEventStream } from "@earendil-works/pi-ai";
3
+ import { api, defaultUrl, generationOptions, messages, providerId } from "../../shared/protocol.js";
4
+ import { request, errorMessage } from "../../client/http.js";
5
+ import { displayPath, loadSettings } from "../../shared/settings.js";
6
+ export const remoteStream = (model, context, options) => {
7
+ const stream = createAssistantMessageEventStream();
8
+ const id = randomUUID();
9
+ const signal = options?.signal;
10
+ const toolJson = new Map();
11
+ let partial = {
12
+ role: "assistant", provider: providerId, api, model: model.id, content: [], timestamp: Date.now(), stopReason: "pending",
13
+ usage: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, totalTokens: 0, cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 } },
14
+ };
15
+ void (async () => {
16
+ try {
17
+ const res = await request("/v1/requests", { method: "POST", body: JSON.stringify({ id, model: model.id, context, options: generationOptions(options) }), signal });
18
+ if (!res.body)
19
+ throw new Error(messages.connection);
20
+ const reader = res.body.pipeThrough(new TextDecoderStream()).getReader();
21
+ let buffer = "";
22
+ try {
23
+ while (true) {
24
+ const chunk = await reader.read().catch(() => { throw new Error(messages.connection); });
25
+ if (chunk.done)
26
+ throw new Error(messages.connection);
27
+ buffer += chunk.value;
28
+ let newline;
29
+ while ((newline = buffer.indexOf("\n")) >= 0) {
30
+ const frame = JSON.parse(buffer.slice(0, newline));
31
+ buffer = buffer.slice(newline + 1);
32
+ if (frame.id !== id)
33
+ throw new Error(messages.connection);
34
+ if (frame.type === "error")
35
+ throw new Error(errorMessage(frame.code));
36
+ const event = frame.event;
37
+ if (frame.type === "done" && event?.type === "done") {
38
+ stream.push(event);
39
+ return;
40
+ }
41
+ if (frame.type !== "event" || !event)
42
+ throw new Error(messages.connection);
43
+ const index = event.contentIndex;
44
+ const block = partial.content[index];
45
+ switch (event.type) {
46
+ case "start":
47
+ partial = event.partial;
48
+ break;
49
+ case "text_start":
50
+ case "thinking_start":
51
+ case "toolcall_start":
52
+ partial.content[index] = event.block;
53
+ break;
54
+ case "text_delta":
55
+ if (block.type === "text")
56
+ block.text += event.delta;
57
+ break;
58
+ case "text_end":
59
+ if (block.type === "text")
60
+ block.text = event.content;
61
+ break;
62
+ case "thinking_delta":
63
+ if (block.type === "thinking")
64
+ block.thinking += event.delta;
65
+ break;
66
+ case "thinking_end":
67
+ if (block.type === "thinking") {
68
+ block.thinking = event.content;
69
+ block.thinkingSignature = event.signature;
70
+ }
71
+ break;
72
+ case "toolcall_delta": {
73
+ const json = (toolJson.get(index) ?? "") + event.delta;
74
+ toolJson.set(index, json);
75
+ if (block.type === "toolCall") {
76
+ try {
77
+ block.arguments = JSON.parse(json);
78
+ }
79
+ catch { /* incomplete JSON */ }
80
+ }
81
+ break;
82
+ }
83
+ case "toolcall_end":
84
+ partial.content[index] = event.toolCall;
85
+ toolJson.delete(index);
86
+ break;
87
+ default: throw new Error(messages.connection);
88
+ }
89
+ stream.push({ ...event, partial });
90
+ }
91
+ }
92
+ }
93
+ finally {
94
+ await reader.cancel().catch(() => { });
95
+ }
96
+ }
97
+ catch (error) {
98
+ const reason = signal?.aborted ? "aborted" : "error";
99
+ partial = { ...partial, stopReason: reason, errorMessage: signal?.aborted ? messages.cancelled : error instanceof Error ? error.message : messages.connection };
100
+ stream.push({ type: "error", reason, error: partial });
101
+ }
102
+ finally {
103
+ stream.end();
104
+ }
105
+ })();
106
+ return stream;
107
+ };
108
+ export default function extension(pi) {
109
+ pi.registerProvider(createProvider({
110
+ id: providerId, name: "A-tether · Remote Claude", baseUrl: defaultUrl,
111
+ // Always report the provider as configured so its models stay listed. A missing
112
+ // or wrong token is explained when Pi starts and on each request instead.
113
+ auth: { apiKey: {
114
+ name: "A-tether token",
115
+ async check() { return { type: "api_key", source: displayPath }; },
116
+ async resolve() { return { auth: { apiKey: "a-tether" }, source: displayPath }; },
117
+ } },
118
+ models: [{ id: "default", name: "Default (C)", api, provider: providerId, baseUrl: defaultUrl, reasoning: true,
119
+ input: ["text", "image"], contextWindow: 200000, maxTokens: 64000, cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 } }],
120
+ async fetchModels({ signal }) { return (await request("/v1/models", { signal })).json(); },
121
+ api: { stream: remoteStream, streamSimple: remoteStream },
122
+ }));
123
+ pi.on("session_start", (event, ctx) => {
124
+ if (event.reason !== "startup")
125
+ return;
126
+ try {
127
+ if (!loadSettings().token)
128
+ ctx.ui.notify(messages.token, "warning");
129
+ }
130
+ catch (error) {
131
+ ctx.ui.notify(error.message, "error");
132
+ }
133
+ });
134
+ pi.registerCommand("a-tether-status", {
135
+ description: "Check the connection to C and Claude Code login on C",
136
+ handler: async (_args, ctx) => {
137
+ try {
138
+ const health = await (await request("/v1/health", { signal: ctx.signal })).json();
139
+ ctx.ui.notify(health.loggedIn ? "C 上的 Claude Code 已登录" : health.diagnostic ? messages.backend : health.available ? messages.login : messages.unavailable, health.loggedIn ? "info" : "error");
140
+ }
141
+ catch (error) {
142
+ ctx.ui.notify(error instanceof Error ? error.message : messages.connection, "error");
143
+ }
144
+ },
145
+ });
146
+ }
@@ -0,0 +1,54 @@
1
+ export const providerId = "a-tether";
2
+ export const api = "a-tether-v1";
3
+ export const defaultUrl = "http://127.0.0.1:7310";
4
+ export const uuid = /^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/i;
5
+ export const messages = {
6
+ unauthorized: "A-tether 令牌与 C 端不一致。在 C 上运行 npx -y @a-tether/server token,再在本机运行它给出的 login 命令。",
7
+ token: "A-tether 还没有配置令牌。在 C 上运行 npx -y @a-tether/server token,再在本机运行它给出的 login 命令。",
8
+ unavailable: "C 上找不到 Claude Code,请检查服务进程的 PATH。",
9
+ login: "C 上的 Claude Code 尚未登录或登录已失效。",
10
+ quota: "Claude 额度、速率或计费限制,请在 C 上检查账户。",
11
+ backend: "C 上的 Claude Code 调用失败,具体原因见 C 端服务控制台。",
12
+ overloaded: "模型服务繁忙或暂时不可用,请稍后重试。",
13
+ context: "请求超出模型的上下文长度,请在 Pi 中压缩上下文或减少输入。",
14
+ discovery: "C 无法获取 Claude 模型目录,请检查 CLI 版本和连接。",
15
+ cancelled: "请求已取消。",
16
+ timeout: "C 上的请求超时。",
17
+ invalid: "请求格式或模型 ID 无效。",
18
+ duplicate: "请求 ID 已在使用。",
19
+ large: "请求超过 32 MiB 上限。",
20
+ connection: "A-tether 连接中断,请检查端口转发(如 SSH 隧道)和 C 端服务。",
21
+ };
22
+ // Runtime whitelist on BOTH ends. In particular, never forward env, headers,
23
+ // sessionId, filesystem paths, credentials, or callbacks from Pi.
24
+ export function generationOptions(options) {
25
+ const reasoning = options?.reasoning;
26
+ const maxTokens = options?.maxTokens;
27
+ return {
28
+ ...(reasoning && ["minimal", "low", "medium", "high", "xhigh", "max"].includes(reasoning) ? { reasoning } : {}),
29
+ ...(Number.isSafeInteger(maxTokens) && maxTokens > 0 ? { maxTokens } : {}),
30
+ };
31
+ }
32
+ // Pi partials refer to a mutable, cumulative message. Only block boundaries
33
+ // need snapshots on the wire. Streaming deltas carry just the newly arrived data.
34
+ export function wireEvent(event) {
35
+ if (event.type === "done")
36
+ return event;
37
+ const { partial, ...update } = event;
38
+ if (event.type === "start")
39
+ return { ...update, partial: { ...partial, content: [] } };
40
+ const block = partial.content[event.contentIndex];
41
+ switch (event.type) {
42
+ case "toolcall_start":
43
+ if (block.type === "toolCall")
44
+ return { ...update, block: { type: block.type, id: block.id, name: block.name, arguments: {} } };
45
+ break;
46
+ case "thinking_start":
47
+ if (block.type === "thinking")
48
+ return { ...update, block: { type: block.type, thinking: block.redacted ? block.thinking : "", redacted: block.redacted } };
49
+ break;
50
+ case "text_start": return { ...update, block: { type: "text", text: "" } };
51
+ case "thinking_end": return { ...update, signature: block.type === "thinking" ? block.thinkingSignature : undefined };
52
+ }
53
+ return update;
54
+ }
@@ -0,0 +1,108 @@
1
+ // Both ends read ~/.a-tether/settings.json. On one machine they share the file,
2
+ // so the token generated by the server works for the Pi plugin without setup.
3
+ import { randomBytes } from "node:crypto";
4
+ import { chmodSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
5
+ import { isIPv4, isIPv6 } from "node:net";
6
+ import { homedir } from "node:os";
7
+ import { dirname, join } from "node:path";
8
+ export const displayPath = "~/.a-tether/settings.json";
9
+ export const settingsPath = () => join(homedir(), ".a-tether", "settings.json");
10
+ export class SettingsError extends Error {
11
+ }
12
+ const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
13
+ // Printable ASCII only: the token travels in an HTTP header.
14
+ export const validToken = (value) => typeof value === "string" && /^[\x21-\x7e]{32,}$/.test(value);
15
+ export const generateToken = () => randomBytes(32).toString("hex");
16
+ export const loginCommand = (token) => "npx -y @a-tether/pi login " + token;
17
+ export function isLoopback(host) {
18
+ const h = host.toLowerCase();
19
+ if (h === "localhost")
20
+ return true;
21
+ if (isIPv4(h))
22
+ return h.startsWith("127.");
23
+ return isIPv6(h) && (/^(0{1,4}:){7}0{0,3}1$/.test(h) || h === "::1" || /^::ffff:127\./.test(h));
24
+ }
25
+ function readRaw(file) {
26
+ let text;
27
+ try {
28
+ text = readFileSync(file, "utf8");
29
+ }
30
+ catch (error) {
31
+ if (error.code === "ENOENT")
32
+ return undefined;
33
+ throw new SettingsError(`无法读取 ${file}:${error.message}`);
34
+ }
35
+ let data;
36
+ try {
37
+ data = JSON.parse(text);
38
+ }
39
+ catch {
40
+ throw new SettingsError(`${file} 不是合法的 JSON,请修正或删除后重试。`);
41
+ }
42
+ if (!isObject(data))
43
+ throw new SettingsError(`${file} 的内容必须是一个 JSON 对象。`);
44
+ return data;
45
+ }
46
+ export function loadSettings(file = settingsPath()) {
47
+ const raw = readRaw(file) ?? {};
48
+ const fail = (field, rule) => { throw new SettingsError(`${file} 中的 ${field} ${rule}。`); };
49
+ const section = (name) => {
50
+ const value = raw[name];
51
+ if (value === undefined)
52
+ return {};
53
+ return isObject(value) ? value : fail(name, "必须是对象");
54
+ };
55
+ const text = (obj, field) => {
56
+ const value = obj[field.split(".")[1]];
57
+ if (value === undefined)
58
+ return undefined;
59
+ return typeof value === "string" && value.trim() ? value : fail(field, "必须是非空字符串");
60
+ };
61
+ const server = section("server");
62
+ const client = section("client");
63
+ if (raw.token !== undefined && !validToken(raw.token))
64
+ fail("token", "必须是至少 32 个字符的字符串,只含字母、数字和符号,不含空白");
65
+ const port = server.port ?? 7310;
66
+ if (typeof port !== "number" || !Number.isInteger(port) || port < 1 || port > 65535)
67
+ fail("server.port", "必须是 1–65535 的整数");
68
+ const allowUsageCredits = server.allowUsageCredits ?? false;
69
+ if (typeof allowUsageCredits !== "boolean")
70
+ fail("server.allowUsageCredits", "必须是 true 或 false");
71
+ // Without client.url, Pi on the same machine follows server.port.
72
+ const url = text(client, "client.url") ?? "http://127.0.0.1:" + port;
73
+ let origin = "";
74
+ try {
75
+ const parsed = new URL(url);
76
+ if (parsed.protocol === "http:" && parsed.hostname && !parsed.username && !parsed.password &&
77
+ parsed.pathname === "/" && !parsed.search && !parsed.hash)
78
+ origin = parsed.origin;
79
+ }
80
+ catch { }
81
+ if (!origin)
82
+ fail("client.url", "必须形如 http://127.0.0.1:7310(不带路径和账号密码)");
83
+ return {
84
+ token: raw.token,
85
+ server: { host: text(server, "server.host") ?? "127.0.0.1", port: port,
86
+ claude: text(server, "server.claude") ?? "claude", allowUsageCredits: allowUsageCredits },
87
+ client: { url: origin, pi: text(client, "client.pi") },
88
+ };
89
+ }
90
+ // Replaces only the token and keeps every other field. Writes a private temp
91
+ // file and renames it, so an interrupted write never leaves half a file.
92
+ export function saveToken(token, file = settingsPath()) {
93
+ if (!validToken(token))
94
+ throw new SettingsError("令牌必须是至少 32 个字符的字符串,只含字母、数字和符号,不含空白。请完整复制 C 端打印的令牌。");
95
+ const data = { ...readRaw(file), token };
96
+ mkdirSync(dirname(file), { recursive: true, mode: 0o700 });
97
+ chmodSync(dirname(file), 0o700); // mode above only applies when the directory is new
98
+ const temp = `${file}.${process.pid}.tmp`;
99
+ try {
100
+ writeFileSync(temp, JSON.stringify(data, null, 2) + "\n", { mode: 0o600 });
101
+ chmodSync(temp, 0o600);
102
+ renameSync(temp, file);
103
+ }
104
+ catch (error) {
105
+ rmSync(temp, { force: true });
106
+ throw error;
107
+ }
108
+ }
package/package.json CHANGED
@@ -1,6 +1,46 @@
1
1
  {
2
2
  "name": "@a-tether/pi",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Pi extension and launcher that uses a remote Claude Code through an A-tether SSH tunnel.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "pi-package"
9
+ ],
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/SandyKidYao/a-tether.git",
13
+ "directory": "packages/pi"
14
+ },
15
+ "engines": {
16
+ "node": ">=22.19.0"
17
+ },
18
+ "bin": {
19
+ "a-tether-pi": "dist/frontends/pi/cli.js"
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "README.md",
24
+ "LICENSE"
25
+ ],
26
+ "pi": {
27
+ "extensions": [
28
+ "./dist/frontends/pi/extension.js"
29
+ ]
30
+ },
31
+ "peerDependencies": {
32
+ "@earendil-works/pi-ai": "*",
33
+ "@earendil-works/pi-coding-agent": "*"
34
+ },
35
+ "peerDependenciesMeta": {
36
+ "@earendil-works/pi-coding-agent": {
37
+ "optional": true
38
+ },
39
+ "@earendil-works/pi-ai": {
40
+ "optional": true
41
+ }
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ }
46
+ }