@inetafrica/open-claudia 2.2.6 → 2.2.7

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.2.7
4
+ - Docker image now ships `git`, `jq`, `python3`, `python3-pip`, and `build-essential` so spawned coding agents don't fall back to curling random binaries into userspace when a basic tool is missing.
5
+ - Symlink `/app/bin/cli.js` to `/usr/local/bin/open-claudia` so the CLI (used by agents for `send-file`, `task`, etc.) is on PATH from any cwd. Previously agents had to extract the packaged tgz to find it.
6
+ - Grant the `claudia` user passwordless sudo for `apt-get` / `apt` so the model can install additional packages at runtime via the normal path rather than ad-hoc binary downloads.
7
+
3
8
  ## v2.2.6
4
9
  - Kazee inbound photos: V2 socket emits attachments as `msg.media` (single) or `msg.medias` (array), not `msg.attachments`. The adapter now reads all three so images sent from Kazee web/mobile clients reach the bot instead of being silently dropped as zero-attachment text.
5
10
  - Kazee outbound files: rewrote `sendFile` to (a) upload via `POST /chat/media/:chatId` with field `media` (the actual route; the old code POSTed to `/upload` with field `file` and 404'd), then (b) post the message via the V2 socket event `message:send` with `mediaIds: [<uploadedId>]` instead of REST `sendMessage` with `media_url`. The REST path is currently broken upstream — `Chat/send_message` calls `Media.create` without the required `chat`/`bucketName`/`fileName`/`minioPath` fields and 500s with `Failed to create media record`. Going via the socket handler reuses the already-saved Media doc and avoids the duplicate create.
package/Dockerfile CHANGED
@@ -5,6 +5,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
5
5
  curl \
6
6
  ffmpeg \
7
7
  ca-certificates \
8
+ git \
9
+ jq \
10
+ python3 \
11
+ python3-pip \
12
+ build-essential \
13
+ sudo \
8
14
  && rm -rf /var/lib/apt/lists/*
9
15
 
10
16
  # Install Claude Code CLI
@@ -18,6 +24,10 @@ RUN npm install -g @openai/codex
18
24
  # node:20-slim already has uid/gid 1000 (node user). Create claudia with different IDs.
19
25
  RUN groupadd -g 1001 claudia && useradd -u 1001 -g 1001 -m -d /data claudia
20
26
 
27
+ # Allow claudia to install packages at runtime without a password
28
+ RUN echo "claudia ALL=(ALL) NOPASSWD: /usr/bin/apt-get, /usr/bin/apt" > /etc/sudoers.d/claudia-apt && \
29
+ chmod 0440 /etc/sudoers.d/claudia-apt
30
+
21
31
  # Create app directory
22
32
  WORKDIR /app
23
33
 
@@ -31,6 +41,9 @@ COPY . .
31
41
  # Ensure app files are readable regardless of host file perms
32
42
  RUN chmod -R a+rX /app
33
43
 
44
+ # Expose the open-claudia CLI on PATH so spawned agents can send files, manage tasks, etc.
45
+ RUN chmod +x /app/bin/cli.js && ln -s /app/bin/cli.js /usr/local/bin/open-claudia
46
+
34
47
  # Entrypoint auto-configures from env vars on first run
35
48
  COPY docker-entrypoint.sh /usr/local/bin/
36
49
  RUN chmod +x /usr/local/bin/docker-entrypoint.sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inetafrica/open-claudia",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "Your always-on AI coding assistant — Claude Code, Cursor Agent, and OpenAI Codex via Telegram or Kazee Chat",
5
5
  "main": "bot.js",
6
6
  "bin": {