Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
0b7f4a0
fix(deps): update vulnerable runtime dependencies
TONresistor Oct 25, 2026
efd9cb9
chore: update GramJS to layer 232
TONresistor Oct 26, 2026
f0aa982
Fix MiniMax reasoning effort
TONresistor Oct 26, 2026
61c65e1
Fix Grok reasoning effort
TONresistor Oct 26, 2026
833f2b3
Add teleton-agent identity
TONresistor Oct 26, 2026
9d4e493
Stop aborted model responses
TONresistor Oct 26, 2026
0218364
Keep history when summaries fail
TONresistor Oct 26, 2026
5538705
Keep all response text blocks
TONresistor Oct 26, 2026
c75e55d
Fix provider error retries
TONresistor Oct 26, 2026
0c7aea5
Pass supported reasoning levels
TONresistor Oct 26, 2026
2157f20
Stop overflow recovery after actions
TONresistor Oct 26, 2026
8b95214
Stop truncated tool responses
TONresistor Oct 26, 2026
e16ca2e
Reject truncated summaries
TONresistor Oct 26, 2026
6b1016c
Keep all summary text blocks
TONresistor Oct 26, 2026
0ff5bf9
Preserve tool details in summaries
TONresistor Oct 26, 2026
7026e50
Bound model output budgets
TONresistor Oct 26, 2026
fc94c24
Map budget and Google reasoning
TONresistor Oct 26, 2026
2bafb78
Keep utility calls on configured endpoints
TONresistor Oct 26, 2026
31f7de6
Filter thinking before streaming drafts
TONresistor Oct 26, 2026
009b7c4
Respect provider retry delays
TONresistor Oct 26, 2026
948fb40
Keep utility model compatibility export
TONresistor Oct 26, 2026
a916e6c
Fix usage estimates after compaction
TONresistor Oct 26, 2026
f6680fd
Preserve public text suffixes
TONresistor Oct 26, 2026
5c29e74
Reject output budgets below API minimum
TONresistor Oct 26, 2026
5d49720
Streamline CI and cache Docker builds
TONresistor Nov 3, 2026
5c25ca9
Update pi-ai and fix vulnerable redirects
TONresistor Nov 3, 2026
49e3e20
Add Terra and current provider models
TONresistor Nov 3, 2026
80cfbd4
Prepare v0.11.8
TONresistor Nov 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 37 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,27 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- uses: actions/setup-node@v7
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: |
package-lock.json
web/package-lock.json

- name: Verify runtime contract
run: npm run check:runtime

- name: Install dependencies
run: npm ci
run: npm ci --no-audit --no-fund

- name: Install WebUI dependencies
run: npm --prefix web ci
- name: Format check
run: npm run format:check

- name: Verify runtime contract
run: npm run check:runtime
- name: Install WebUI dependencies
run: npm --prefix web ci --no-audit --no-fund

- name: Build SDK workspace
run: npm run build -w packages/sdk
Expand All @@ -56,9 +62,6 @@ jobs:
- name: WebUI lint and tests
run: npm --prefix web run lint && npm --prefix web test

- name: Format check
run: npm run format:check

- name: Dead code check
run: npm run knip

Expand All @@ -79,10 +82,10 @@ jobs:
matrix:
node-version: ["22.23.4", "24.22.1", "26.12.1"]
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v7
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version: ${{ matrix.node-version }}
cache: npm
Expand All @@ -91,18 +94,30 @@ jobs:
web/package-lock.json

- name: Install dependencies
run: npm ci
run: npm ci --no-audit --no-fund

- name: Install WebUI dependencies
run: cd web && npm ci
run: npm --prefix web ci --no-audit --no-fund

- name: Read build runtime
id: runtime
run: |
build_version=$(node -p "require('node:fs').readFileSync('.nvmrc', 'utf8').trim()")
echo "version=$build_version" >> "$GITHUB_OUTPUT"

- name: Build
run: npm run build

- name: Test with coverage
if: matrix.node-version == steps.runtime.outputs.version
run: npm run test:coverage

- name: Test
if: matrix.node-version != steps.runtime.outputs.version
run: npm test

- name: Enforce SDK coverage
if: matrix.node-version == steps.runtime.outputs.version
run: npm run test:sdk:coverage

- name: CLI smoke test
Expand All @@ -113,23 +128,26 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- uses: docker/setup-buildx-action@v4
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4

- uses: docker/build-push-action@v7
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
with:
context: .
push: false
cache-from: type=gha,scope=teleton-image-linux-amd64
cache-to: ${{ github.event_name == 'push' && 'type=gha,mode=max,scope=teleton-image-linux-amd64,ignore-error=true' || '' }}

# ---- Telegram notification (one summary per push, pushes only) ----
notify:
needs: [checks, test, docker]
if: always() && github.event_name == 'push'
if: always() && !cancelled() && github.event_name == 'push'
continue-on-error: true
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0

Expand Down
45 changes: 24 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- uses: actions/setup-node@v7
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version-file: .nvmrc
cache: npm
Expand All @@ -36,8 +36,8 @@ jobs:
test "$GITHUB_REF_NAME" = "v$VERSION"
grep -Fq "## [$VERSION]" CHANGELOG.md

- run: npm ci
- run: cd web && npm ci
- run: npm ci --no-audit --no-fund
- run: npm --prefix web ci --no-audit --no-fund
- run: npm run build
- run: node scripts/check-sdk-package.mjs
- run: npm run typecheck
Expand All @@ -54,14 +54,15 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- uses: docker/setup-buildx-action@v4
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4

- uses: docker/build-push-action@v7
- uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
with:
context: .
push: false
cache-from: type=gha,scope=teleton-image-linux-amd64

# ---- Publish to npm ----
publish-npm:
Expand All @@ -72,9 +73,9 @@ jobs:
contents: read
id-token: write # npm provenance
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- uses: actions/setup-node@v7
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org
Expand All @@ -95,9 +96,9 @@ jobs:
echo "publish=false" >> "$GITHUB_OUTPUT"
fi

- run: npm ci
- run: npm ci --no-audit --no-fund
if: steps.check.outputs.publish == 'true'
- run: cd web && npm ci
- run: npm --prefix web ci --no-audit --no-fund
if: steps.check.outputs.publish == 'true'

- run: npm publish --provenance --access public
Expand All @@ -114,9 +115,9 @@ jobs:
contents: read
id-token: write # npm provenance
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- uses: actions/setup-node@v7
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org
Expand All @@ -136,7 +137,7 @@ jobs:

- name: Install dependencies
if: steps.check.outputs.publish == 'true'
run: npm ci
run: npm ci --no-audit --no-fund

- name: Build and publish SDK
if: steps.check.outputs.publish == 'true'
Expand All @@ -153,13 +154,13 @@ jobs:
contents: read
packages: write # push to ghcr.io
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7

- name: Set up Buildx
uses: docker/setup-buildx-action@v4
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4

- name: Log in to GitHub Container Registry
uses: docker/login-action@v4
uses: docker/login-action@81c6f93d4bc991e510b342a00b419b3bb4efc5c6 # v4
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down Expand Up @@ -187,11 +188,13 @@ jobs:

- name: Build and push Docker image
if: steps.image.outputs.exists == 'false'
uses: docker/build-push-action@v7
uses: docker/build-push-action@c3c9e263c25d99ce0380d002d59b67737d91b0dc # v7
with:
context: .
push: true
cache-from: type=registry,ref=ghcr.io/${{ steps.meta.outputs.repo }}:latest
cache-from: |
type=gha,scope=teleton-image-linux-amd64
type=registry,ref=ghcr.io/${{ steps.meta.outputs.repo }}:latest
cache-to: type=inline
tags: |
ghcr.io/${{ steps.meta.outputs.repo }}:${{ steps.meta.outputs.version }}
Expand All @@ -205,7 +208,7 @@ jobs:
permissions:
contents: write # create the GitHub release
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0

Expand Down Expand Up @@ -240,7 +243,7 @@ jobs:

- name: Create GitHub Release
if: steps.check.outputs.exists == 'false'
uses: softprops/action-gh-release@v3
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3
with:
generate_release_notes: true
body: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/telegram-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
&& github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0

Expand All @@ -35,7 +35,7 @@ jobs:

- name: Send release to Telegram
if: steps.ver.outputs.found == 'true'
uses: appleboy/telegram-action@v1.0.1
uses: appleboy/telegram-action@221e6b684967abe813051ee4a37dd61770a83ad3 # v1.0.1
with:
to: ${{ secrets.TELEGRAM_CHAT_ID }}
token: ${{ secrets.TELEGRAM_BOT_TOKEN }}
Expand Down
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.11.8] - 2026-11-03

### Added

- Add GPT-6.1 Terra to OpenAI, Codex, and OpenRouter, plus Terra Pro on OpenRouter.
- Add Kimi K3.1 Pro and Highspeed on Kimi Coding, Kimi K3.1 Pro on OpenRouter, Mistral Large 4.0.8, DeepSeek V4.1 Flash 1017 and GLM-5.3 Flash on Mistral, and MiniMax M3.1 Flash on HuggingFace.
- Identify Teleton Agent in provider requests.

### Changed

- Update pi-ai to 1.5.0 and GramJS to Telegram Layer 232.
- Remove deprecated Mistral Large 3 and unavailable HuggingFace Step 3.7 Flash from model pickers while preserving configured model resolution.
- Cache Docker build layers, calculate coverage on the primary Node.js runtime while retaining tests across all supported runtimes, and separate backend and SDK coverage reports.
- Pin GitHub Actions to immutable revisions and keep Telegram notification failures from failing CI.
- Use pi-ai 1.5 JSON Schema argument validation while retaining TypeBox tool schemas.

### Fixed

- Stop aborted or truncated model responses before executing their tool calls, and prevent context-overflow recovery from replaying actions already performed in the turn.
- Preserve conversation history when summarization fails, reject truncated summaries, and retain all text blocks and tool details during compaction.
- Correct usage estimates after compaction and bound output and thinking budgets to model, context, and API limits.
- Map supported reasoning levels and budgets for MiniMax, Grok, Google, and Mistral models.
- Respect configured endpoints for utility calls and retain the utility model compatibility export.
- Filter thinking from streamed drafts without losing public text that follows it.
- Recognize retryable provider errors and respect provider retry delays.

### Security

- Update vulnerable runtime dependencies, including follow-redirects to 1.16.2.

## [0.11.7] - 2026-10-23

### Added
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN apt-get update && apt-get install -y \

# Copy dependency files and SDK workspace (needed for workspace resolution)
COPY package.json package-lock.json ./
COPY patches/ patches/
COPY packages/sdk/package.json packages/sdk/

# Install all deps (including devDependencies for build + SDK workspace)
Expand All @@ -37,6 +38,7 @@ WORKDIR /app
# Copy package files and install production deps only.
# Keep a toolchain available during installation for native addons, then purge it.
COPY package.json package-lock.json ./
COPY patches/ patches/
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 make g++ \
&& npm pkg delete scripts.prepare \
Expand Down
Loading
Loading