jarvis-ai-agent 1.0.0

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/.env.example ADDED
@@ -0,0 +1,6 @@
1
+ TELEGRAM_BOT_TOKEN=
2
+ CODEX_MODEL=
3
+ POLL_TIMEOUT_SECONDS=30
4
+ MAX_REPLY_CHARS=3500
5
+ USER_TIMEZONE=Africa/Lagos
6
+ SCHEDULER_INTERVAL_MS=15000
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Youssef
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 ADDED
@@ -0,0 +1,129 @@
1
+ # Jarvis AI Agent
2
+
3
+ This folder contains a Telegram long-polling bot that listens for text messages, asks a selected local AI CLI to draft a response, and sends the reply back to the user.
4
+
5
+ Jarvis now keeps its own local user profiles, saved memories, recent conversation context, and scheduled reminder tasks.
6
+
7
+ ## Install
8
+
9
+ From npm after publish:
10
+
11
+ ```sh
12
+ npm install -g jarvis-ai-agent
13
+ jarvis-agent
14
+ ```
15
+
16
+ From a public GitHub repo before publish:
17
+
18
+ ```sh
19
+ npm install -g github:<owner>/jarvis-ai-agent
20
+ jarvis-agent
21
+ ```
22
+
23
+ To stop a running instance:
24
+
25
+ ```sh
26
+ jarvis-agent-stop
27
+ ```
28
+
29
+ ## Files
30
+
31
+ - `bot.js`: main polling service
32
+ - `start-jarvis.js`: portable Node bootstrapper
33
+ - `stop-jarvis.js`: portable Node stopper
34
+ - `build-shareable.js`: creates a clean copy without secrets or local runtime state
35
+ - `skills/`: project-local custom skills that are synced into the global Codex home on startup
36
+ - `scripts/install-local-skill.js`: installs a skill folder into this agent's local `skills/` directory
37
+ - `.env`: local configuration
38
+ - `.env.example`: starter configuration template for a fresh machine
39
+ - `data/jarvis-store.json`: local user profiles, memory, and scheduled tasks
40
+
41
+ ## Start it
42
+
43
+ Open a terminal in this folder and run:
44
+
45
+ ```sh
46
+ npm start
47
+ ```
48
+
49
+ To stop it:
50
+
51
+ ```sh
52
+ npm stop
53
+ ```
54
+
55
+ To create a clean copy for another computer:
56
+
57
+ ```sh
58
+ npm run share
59
+ ```
60
+
61
+ The package also exposes matching global commands:
62
+
63
+ ```sh
64
+ jarvis-agent
65
+ jarvis-agent-stop
66
+ jarvis-agent-share
67
+ ```
68
+
69
+ ## Install On Another Computer
70
+
71
+ 1. Install Node.js 18 or newer.
72
+ 2. Install Codex CLI.
73
+ 3. Run `codex login` on that computer.
74
+ 4. Install Jarvis with `npm install -g jarvis-ai-agent` or `npm install -g github:<owner>/jarvis-ai-agent`.
75
+ 5. Go to the installed package directory if you want to edit `.env` in place, or clone the repo and run it locally.
76
+ 6. Copy `.env.example` to `.env`.
77
+ 7. Set `TELEGRAM_BOT_TOKEN` in `.env`.
78
+ 8. Run `jarvis-agent`.
79
+
80
+ ## Notes
81
+
82
+ - Only text messages are handled right now.
83
+ - Replies are generated through the currently selected CLI tool for that chat: Codex CLI, Claude CLI, or OpenCode CLI.
84
+ - Jarvis uses the global Codex config (`~/.codex`). Skills are synced into `~/.codex/skills/jarvis-local` on every start.
85
+ - User memory and tasks are stored locally in `data/jarvis-store.json`.
86
+ - Telegram polling restart state is stored in `data/runtime-state.json`.
87
+ - Secrets and machine-specific state are listed in `.gitignore` so they are easier not to share by accident.
88
+ - `npm run share` creates a sibling folder ending in `-shareable` without `.env`, logs, and runtime state files.
89
+ - npm package binaries are `jarvis-agent`, `jarvis-agent-stop`, `jarvis-agent-share`, and `jarvis-agent-install-skill`.
90
+
91
+ ## Commands
92
+
93
+ - `/start_agent`
94
+ - `/end_agent`
95
+ - `/model`
96
+ - `/new`
97
+ - `/restart`
98
+ - `/help`
99
+ - `/skills`
100
+ - `/profile`
101
+ - `/profile set <key> <value>`
102
+ - `/remember <fact>`
103
+ - `/memories`
104
+ - `/forget <memory-id>`
105
+ - `/schedule YYYY-MM-DD HH:mm | task`
106
+ - `/tasks`
107
+ - `/done <task-id>`
108
+
109
+ ## Agent Mode
110
+
111
+ - Jarvis only answers free-form AI requests after you send `/start_agent`.
112
+ - Send `/end_agent` to stop AI replies for that user chat.
113
+ - Send `/model` to open a Telegram button flow and choose Codex CLI, Claude CLI, or OpenCode CLI for that chat.
114
+ - If you choose OpenCode CLI, Jarvis will load the full `opencode models` list from the terminal and let you browse all available models in Telegram before using it.
115
+ - Send `/new` to clear the recent conversation context for that chat while keeping profile, memories, tasks, and the selected CLI tool.
116
+ - Send `/restart` to restart the bot through the launcher.
117
+ - Command messages like `/help`, `/profile`, `/tasks`, and memory commands still work even when AI replies are off.
118
+
119
+ ## Skills
120
+
121
+ - Local skills live in `skills/` inside the agent directory.
122
+ - On startup, `start-jarvis.js` copies those skills into `~/.codex/skills/jarvis-local` so Codex can use them.
123
+ - Use `/skills` in Telegram to see the installed local skills.
124
+ - Each skill also becomes a slash command automatically after restart.
125
+ - Skill commands use underscores, for example `/coding_helper`.
126
+ - Selecting a skill command runs that skill immediately.
127
+ - You can also pass input with the command, for example `/coding_helper fix this Python error`.
128
+ - The starter pack includes `Assistant Core`, `Coding Helper`, `Research Helper`, `Task Manager`, and `Writing Helper`.
129
+ - A local `Skill Installer` skill is included too, along with `scripts/install-local-skill.js` for project-local skill installs.
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ require("../scripts/install-local-skill.js");
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ require("../build-shareable.js");
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ require("../stop-jarvis.js");
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+
4
+ require("../start-jarvis.js");