{"_id":"@atharva-again/pi-tg","_rev":"5-0b9a33c8f0db304f17f4685abc3c7df1","name":"@atharva-again/pi-tg","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"@atharva-again/pi-tg","version":"0.1.0","keywords":["pi","telegram","bot","agent"],"author":{"name":"Pi contributors"},"license":"MIT","_id":"@atharva-again/pi-tg@0.1.0","maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"bin":{"pi-tg":"dist/cli.js"},"dist":{"shasum":"b3be7d565f81a57c70311af28e5118cb0c456e02","tarball":"https://registry.npmjs.org/@atharva-again/pi-tg/-/pi-tg-0.1.0.tgz","fileCount":39,"integrity":"sha512-Mq7sOFBZcAolUNfIbPLCMISRz9vGIRUdi8bPae3i9cVHG0BNarTVLe9GYh5eqFSXYr3/RtXjOnJ+w+cHNzIEzw==","signatures":[{"sig":"MEUCIQCBur38EbXkHfI8xtIQ4b2NGIzLeuN4UjNfOzg8hp8KNwIgfdf9nJtlClWYCEcBGJRssbYf07t9M6yZ6FkcLHfwbRM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":617554},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"68f0e858712f3cd605c685a6a474b42b69c35443","scripts":{"test":"vitest --run","build":"tsgo -p tsconfig.build.json && shx chmod +x dist/cli.js","clean":"shx rm -rf dist","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"atharva-again","email":"atharva.verma18@gmail.com"},"_npmVersion":"11.13.0","description":"Telegram client for pi","directories":{},"_nodeVersion":"24.16.0","dependencies":{"@earendil-works/pi-agent-core":"^0.80.3","@earendil-works/pi-coding-agent":"https://registry.npmjs.org/@atharva-again/pi-coding-agent/-/pi-coding-agent-0.80.3-pi-tg.1.tgz"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/pi-tg_0.1.0_1783320392816_0.4481742626305798","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@atharva-again/pi-tg","version":"0.1.1","keywords":["pi","telegram","bot","agent"],"author":{"name":"Pi contributors"},"license":"MIT","_id":"@atharva-again/pi-tg@0.1.1","maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"homepage":"https://github.com/atharva-again/pi#readme","bugs":{"url":"https://github.com/atharva-again/pi/issues"},"bin":{"pi-tg":"dist/cli.js"},"dist":{"shasum":"32e5d3436d178b561f74745d934066798777e4ec","tarball":"https://registry.npmjs.org/@atharva-again/pi-tg/-/pi-tg-0.1.1.tgz","fileCount":39,"integrity":"sha512-1wPTC0aNrbXyrP/08mPPSgid6zW5fPlULqCcCDOJl9QQ3ahgCGR5iPoomzC3Vur/dQMhsKjOCaW1RfN7ktFypg==","signatures":[{"sig":"MEYCIQCVXkoMNIv1yY3zfQdwi9zvg0XvRdTL4c0v3Zp8lS6mfgIhALDJhJX8VQgl8aLYX78g83SFdVddBWqHMEntaHSS4/6L","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":617964},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"68f0e858712f3cd605c685a6a474b42b69c35443","scripts":{"test":"vitest --run","build":"tsgo -p tsconfig.build.json && shx chmod +x dist/cli.js","clean":"shx rm -rf dist","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"atharva-again","email":"atharva.verma18@gmail.com"},"repository":{"url":"git+https://github.com/atharva-again/pi.git","type":"git","directory":"packages/telegram"},"_npmVersion":"11.13.0","description":"Telegram client for pi","directories":{},"_nodeVersion":"24.16.0","dependencies":{"@earendil-works/pi-agent-core":"^0.80.3","@earendil-works/pi-coding-agent":"https://registry.npmjs.org/@atharva-again/pi-coding-agent/-/pi-coding-agent-0.80.3-pi-tg.1.tgz"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/pi-tg_0.1.1_1783320833864_0.1597364334818725","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@atharva-again/pi-tg","version":"0.1.2","keywords":["pi","telegram","bot","agent"],"author":{"name":"Pi contributors"},"license":"MIT","_id":"@atharva-again/pi-tg@0.1.2","maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"homepage":"https://github.com/atharva-again/pi#readme","bugs":{"url":"https://github.com/atharva-again/pi/issues"},"bin":{"pi-tg":"dist/cli.js"},"dist":{"shasum":"6ff273537922ea29402c84f33cfc727daf1e1921","tarball":"https://registry.npmjs.org/@atharva-again/pi-tg/-/pi-tg-0.1.2.tgz","fileCount":39,"integrity":"sha512-Pg20by7zlpuoOCsKT9Fmvn48FoptByzDUBLIYF3dRDPz4YlpOk2n24Ov0iCLTfrZPWk1n9ks6n7+ZYp1q5gqBQ==","signatures":[{"sig":"MEYCIQCAA5Ybek7NmwFgGxpAxED0oqPur+gTw4hlqCoNb4+DkgIhAKeoTmO4TIxbaxA+l1+mv/nNdRHcjahBm0FF5/S1YxMn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":620354},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"f1b4758b848ef960cf32a9522929bf4f46b0dd85","scripts":{"test":"vitest --run","build":"tsgo -p tsconfig.build.json && shx chmod +x dist/cli.js","clean":"shx rm -rf dist","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"atharva-again","email":"atharva.verma18@gmail.com"},"repository":{"url":"git+https://github.com/atharva-again/pi.git","type":"git","directory":"packages/telegram"},"_npmVersion":"11.13.0","description":"Telegram client for pi","directories":{},"_nodeVersion":"24.16.0","dependencies":{"@earendil-works/pi-agent-core":"^0.80.3","@earendil-works/pi-coding-agent":"https://registry.npmjs.org/@atharva-again/pi-coding-agent/-/pi-coding-agent-0.80.3-pi-tg.1.tgz"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/pi-tg_0.1.2_1783323552529_0.9270496005307909","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@atharva-again/pi-tg","version":"0.1.3","keywords":["pi","telegram","bot","agent"],"author":{"name":"Pi contributors"},"license":"MIT","_id":"@atharva-again/pi-tg@0.1.3","maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"homepage":"https://github.com/atharva-again/pi#readme","bugs":{"url":"https://github.com/atharva-again/pi/issues"},"bin":{"pi-tg":"dist/cli.js"},"dist":{"shasum":"96f469e61873e5ad314fe46d6220935b34abe33e","tarball":"https://registry.npmjs.org/@atharva-again/pi-tg/-/pi-tg-0.1.3.tgz","fileCount":39,"integrity":"sha512-N/YKbluIabfS5pNW+d92Zk6YbZ/gM1Rj/CwrIifuPcyYKBi8H6xNr/67tsIEwz3wBSqZd5C/KxRdK5f60Hhx3g==","signatures":[{"sig":"MEYCIQDRUhO39I8d6lrZT9iXhNx1l80ZyqFpI3w/jB9u/yJ/ewIhAJifXSugWgvm3ZSDaOEJM0r4Zx46KMj7+CkEsaeJfqhe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":621526},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=22.19.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"67187e9eb7a8323df6bff308386e2a3b2591ca05","scripts":{"test":"vitest --run","build":"tsgo -p tsconfig.build.json && shx chmod +x dist/cli.js","clean":"shx rm -rf dist","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"atharva-again","email":"atharva.verma18@gmail.com"},"repository":{"url":"git+https://github.com/atharva-again/pi.git","type":"git","directory":"packages/telegram"},"_npmVersion":"11.13.0","description":"Telegram client for pi","directories":{},"_nodeVersion":"24.16.0","dependencies":{"@earendil-works/pi-agent-core":"^0.80.3","@earendil-works/pi-coding-agent":"https://registry.npmjs.org/@atharva-again/pi-coding-agent/-/pi-coding-agent-0.80.3-pi-tg.1.tgz"},"_hasShrinkwrap":false,"devDependencies":{"shx":"0.4.0","vitest":"4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/pi-tg_0.1.3_1783326517578_0.0903293921567172","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@atharva-again/pi-tg","version":"0.1.4","description":"Telegram client for pi","homepage":"https://github.com/atharva-again/pi#readme","repository":{"type":"git","url":"git+https://github.com/atharva-again/pi.git","directory":"packages/telegram"},"bugs":{"url":"https://github.com/atharva-again/pi/issues"},"type":"module","bin":{"pi-tg":"dist/cli.js"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"clean":"shx rm -rf dist","build":"tsgo -p tsconfig.build.json && shx chmod +x dist/cli.js","test":"vitest --run","prepublishOnly":"npm run clean && npm run build"},"keywords":["pi","telegram","bot","agent"],"author":{"name":"Pi contributors"},"license":"MIT","engines":{"node":">=22.19.0"},"dependencies":{"@earendil-works/pi-agent-core":"https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-0.80.9.tgz","@earendil-works/pi-ai":"https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.80.9.tgz","@earendil-works/pi-coding-agent":"https://registry.npmjs.org/@atharva-again/pi-coding-agent/-/pi-coding-agent-0.80.9-pi-tg.0.tgz","@earendil-works/pi-tui":"https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-0.80.9.tgz"},"devDependencies":{"shx":"0.4.0","vitest":"4.1.9"},"_id":"@atharva-again/pi-tg@0.1.4","_integrity":"sha512-eGWXL1T6ryt8Qct/0tiKlhAEcn8v68eAjyZhv0Xz4jD4ui8tGEL/kGl71TxKU9YNE7Sy5SfJwrSxu7HxWaRZKQ==","_resolved":"/tmp/pi-tg-0.1.4-smoke/package/atharva-again-pi-tg-0.1.4.tgz","_from":"file:/tmp/pi-tg-0.1.4-smoke/package/atharva-again-pi-tg-0.1.4.tgz","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-eGWXL1T6ryt8Qct/0tiKlhAEcn8v68eAjyZhv0Xz4jD4ui8tGEL/kGl71TxKU9YNE7Sy5SfJwrSxu7HxWaRZKQ==","shasum":"9b36b66abbb2c271e273b557d060325e7b770363","tarball":"https://registry.npmjs.org/@atharva-again/pi-tg/-/pi-tg-0.1.4.tgz","fileCount":39,"unpackedSize":624281,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAlyg2iq+0EXD6dOQeGrJOeXtNDwZY7Kdp3vtOYtxURCAiEAkqTYlchF04uIxTmA7N/wklFk+G/U3t+ljllxYApf/ZQ="}]},"_npmUser":{"name":"atharva-again","email":"atharva.verma18@gmail.com"},"directories":{},"maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-tg_0.1.4_1784228251900_0.36827259537494816"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-06T06:46:32.606Z","modified":"2026-07-16T18:57:32.171Z","0.1.0":"2026-07-06T06:46:32.956Z","0.1.1":"2026-07-06T06:53:54.001Z","0.1.2":"2026-07-06T07:39:12.664Z","0.1.3":"2026-07-06T08:28:37.709Z","0.1.4":"2026-07-16T18:57:32.026Z"},"bugs":{"url":"https://github.com/atharva-again/pi/issues"},"author":{"name":"Pi contributors"},"license":"MIT","homepage":"https://github.com/atharva-again/pi#readme","keywords":["pi","telegram","bot","agent"],"repository":{"type":"git","url":"git+https://github.com/atharva-again/pi.git","directory":"packages/telegram"},"description":"Telegram client for pi","maintainers":[{"name":"atharva-again","email":"atharva.verma18@gmail.com"}],"readme":"# pi Telegram\n\nExperimental Telegram client for pi, published as `@atharva-again/pi-tg` with the `pi-tg` binary.\n\n## Quick start\n\n1. Install the package:\n\n```bash\nnpm install -g @atharva-again/pi-tg\n```\n\n2. Create a Telegram bot with [@BotFather](https://t.me/BotFather).\n3. Find your Telegram numeric user ID with [@userinfobot](https://t.me/userinfobot).\n4. Run setup:\n\n```bash\npi-tg setup\npi-tg doctor\npi-tg\n```\n\nSetup writes `~/.pi/agent/telegram/config.json` with `0600` permissions. Flags and\n`PI_TELEGRAM_*` environment variables still work and override the saved config.\n\nThe bot uses the same pi provider configuration and credentials as the CLI.\nAuthorized Telegram users inherit the filesystem and shell permissions of the\nuser running `pi-tg`.\n\n## Non-interactive start\n\n```bash\nPI_TELEGRAM_BOT_TOKEN=123:abc \\\nPI_TELEGRAM_ALLOWED_USERS=123456789 \\\npi-tg\n```\n\n## Telegram UX\n\n- A normal DM is one pi session by default.\n- Telegram registers Pi's 22 built-in slash commands plus Telegram-native `/start` and `/help`.\n- Workspace extension, prompt, and skill commands are added to the per-chat slash menu when a Pi runtime is available.\n- `/scoped_models` is the Telegram-safe alias for Pi's `/scoped-models` command.\n- Menu-like commands use inline buttons, confirmations, document upload/download, and per-chat pending prompts.\n- Workspace changes are available from `/settings` and `/session` buttons without adding an extra slash command.\n- Normal messages are sent to pi with full tool access as the user running `pi-tg`.\n\n## Commands\n\nTelegram-native commands:\n\n- `/start` - start the Telegram client and show help\n- `/help` - show help and command list\n\nPi commands:\n\n- `/settings` - button menu for model, thinking, scoped models, workspace, session, auth, trust, and reload actions\n- `/model` - provider/model picker followed by thinking-level buttons; also accepts `/model provider/model [thinking]`\n- `/scoped_models` - session-scoped model checklist for Pi model cycling\n- `/export` - choose HTML or JSONL and receive the export as a Telegram document\n- `/import` - import a local JSONL path or upload a `.jsonl` Telegram document\n- `/share` - confirm and create a Pi share link through the local `gh` CLI\n- `/copy` - send the last assistant response as copyable Telegram text\n- `/name` - show or set the session name; no-arg flow prompts for a new name\n- `/session` - session dashboard with action buttons\n- `/changelog` - paginated changelog viewer\n- `/hotkeys` - explain Telegram equivalents for TUI hotkeys\n- `/fork` - pick a prior user message with buttons or pass an entry id\n- `/clone` - confirmation flow for cloning the current session\n- `/tree` - compact tree view with buttons to navigate branches\n- `/trust` - show Telegram/process trust state and local trust guidance\n- `/login` - local-login guidance; credentials are not collected in chat\n- `/logout` - local-logout guidance for destructive credential removal\n- `/new` - confirmation flow for a new session\n- `/compact` - compact now or prompt for custom instructions\n- `/resume` - recent-session picker or `/resume <id-or-path>`\n- `/reload` - reload keybindings, extensions, skills, prompts, and themes\n- `/quit` - private-chat confirmation to stop `pi-tg`\n","readmeFilename":"README.md"}