Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
3f59967
feat: rebuilt configuration, Telegram clients, and web console
krau Oct 31, 2026
47a6f8b
feat(web): added mobile card layouts and refined admin UI
krau Oct 31, 2026
a16090a
build: migrated web tooling to pnpm and node 26
krau Oct 31, 2026
e15679f
build: removed micro and pico Docker variants
krau Oct 31, 2026
81fe0c6
fix: recorded storage destinations for bot-created tasks
krau Oct 31, 2026
a60508a
feat(web): reworked login and stabilized interaction feedback
krau Oct 31, 2026
dfbad7c
feat(web): added coordinated motion across the console
krau Oct 31, 2026
695f1a4
feat(web): added persistent light and dark themes
krau Oct 31, 2026
1a6ab27
fix(web): smoothed task modal resizing between types
krau Oct 31, 2026
1e5d24e
feat: redrew logo as a folder download mark
krau Oct 31, 2026
ba11fea
refactor(web): simplified Telegram setup and removed filler copy
krau Oct 31, 2026
ea69b5e
refactor(web): shared adaptive modal height
krau Oct 31, 2026
029f7db
fix(web): added missing form validation
krau Oct 31, 2026
9638373
feat(web): added Chinese and English localization
krau Oct 31, 2026
3d0f855
feat(web): added first-run onboarding
krau Nov 1, 2026
9f86d5c
chore(deploy): removed legacy config file requirement
krau Nov 1, 2026
a7cd89d
docs: rewrote setup and migration guides
krau Nov 1, 2026
2983895
fix: showed progress and target paths for all tasks
krau Nov 1, 2026
984d3b7
fix(web): clarified saved secret fields
krau Nov 1, 2026
a070851
fix(web): refined settings layout and sidebar links
krau Nov 1, 2026
a84c0e7
feat(web): added server-side path picker
krau Nov 1, 2026
b487b64
build(deps): upgraded mygotg to v0.5.0
krau Nov 1, 2026
4998d66
fix(telegram): isolated session databases from legacy formats
krau Nov 1, 2026
b4e46f5
feat(web): added tokenized web UI access
krau Nov 1, 2026
2c75948
feat(telegram): added optional helper bot workers
krau Nov 1, 2026
b5dcede
feat(telegram): added relay-based multi-bot downloads
krau Nov 1, 2026
202d56a
feat(web): added helper bot and relay settings UI
krau Nov 1, 2026
a8781c1
docs: documented helper bots and relay downloads
krau Nov 1, 2026
054cc2e
refactor(storage): replaced name references with stable IDs
krau Nov 1, 2026
6cb391c
fix(web): added mobile layout for helper bots
krau Nov 1, 2026
116abb8
fix(web): rearranged relay and proxy fields in bot panel
krau Nov 1, 2026
e2246c8
feat(tasks): reported failed files and added retry for telegram downl…
krau Nov 1, 2026
d6c2a92
perf(transfer): capped concurrent telegram file rpc calls
krau Nov 1, 2026
a19bce8
fix(telegram): kept single-item albums and saved media over caption l…
krau Nov 1, 2026
4cd4fbf
feat(tasks): resumed queued tasks after restart
krau Nov 1, 2026
bd967e7
feat(rules): accepted storage ids in rule commands
krau Nov 1, 2026
101609b
fix(security): confined remote filenames to the task cache
krau Nov 1, 2026
82375f3
fix(storage): confined local paths and made saves atomic
krau Nov 1, 2026
31b79e6
fix(security): rejected unsafe yt-dlp flags
krau Nov 1, 2026
4f14410
fix(telegram): made split uploads safe for glob filenames
krau Nov 1, 2026
db558f8
fix(api): placed telegram files under the requested directory
krau Nov 1, 2026
c46dfc0
fix(tasks): reported partial transfer failures
krau Nov 1, 2026
765d59a
fix(tasks): propagated cancellation to progress sinks
krau Nov 1, 2026
a63a0de
fix(watch): fixed debounce race and filter parsing
krau Nov 1, 2026
5267880
perf(progress): queued single-file edits off the transfer path
krau Nov 1, 2026
6f5ad8a
perf(transfer): woke one waiter per released rpc slot
krau Nov 1, 2026
664bfc1
fix(parsed): snapshotted processing state for progress rendering
krau Nov 1, 2026
5b18da2
fix(database): scoped directory and rule deletion to their owner
krau Nov 1, 2026
c361a0a
fix(app): created private runtime directories and waited for resume
krau Nov 1, 2026
7b6ac92
fix(cli): returned non-zero on failure and guarded cache cleanup
krau Nov 1, 2026
b119088
fix(i18n): synchronized locale initialization
krau Nov 1, 2026
4aec3e6
fix(settings): reset parser maps and flagged proxy restart
krau Nov 1, 2026
b032bb1
fix(aria2): preserved cancellation and bounded cleanup
krau Nov 1, 2026
9a18420
fix(telegram): rejected private addresses for telegraph fetches
krau Nov 1, 2026
0eb3a8a
fix(tasks): deduplicated direct link urls
krau Nov 1, 2026
9d409a3
fix(batch): kept element paths and locked processing snapshots
krau Nov 1, 2026
9c0ccbc
chore: applied go fix modernizations
krau Nov 1, 2026
d564a36
fix(update): used a typed restart signal
krau Nov 1, 2026
312fd0a
fix(storage): applied the alist base path to reads
krau Nov 1, 2026
e95ab4a
feat(bot): enabled group and supergroup chats
krau Nov 1, 2026
34c9990
docs(usage): documented group chat behavior
krau Nov 1, 2026
697eda3
test(e2e): added seeded environment and API end-to-end suite
krau Nov 2, 2026
ef2c1f8
test(telegram): added fake RPC end-to-end harness
krau Nov 2, 2026
d973f3a
test(web): added playwright dependency for end-to-end suite
krau Nov 2, 2026
969209c
fix(bot): avoided mutating shared handler context
krau Nov 2, 2026
5427f4f
docs: documented end-to-end testing
krau Nov 2, 2026
3a651a6
build(deps): upgraded gotd to v0.163.0
krau Nov 2, 2026
acff6e4
refactor(storage): removed minio backend in favor of s3
krau Nov 2, 2026
a435a40
docs: updated storage docs for minio removal
krau Nov 2, 2026
d0e2714
feat(download): added resumable telegram chunk downloads
krau Nov 2, 2026
1d36d84
feat(tasks): resumed interrupted downloads after restart
krau Nov 2, 2026
aa6c42c
test(telegram): covered resume across mock restarts
krau Nov 2, 2026
d0ac75c
docs: documented resumable task recovery
krau Nov 2, 2026
a071e57
feat(relay): persisted relay state for resumable downloads
krau Nov 2, 2026
7f63b53
test(relay): covered state reuse and helper failover
krau Nov 2, 2026
c0f6ade
test(e2e): covered process restart and batch resume
krau Nov 2, 2026
fb6bd28
fix: handled previously discarded errors
krau Nov 2, 2026
09a7180
test(telegram): generated test media at runtime
krau Nov 2, 2026
e38da67
test: checked cleanup errors in test helpers
krau Nov 2, 2026
fe54da1
refactor(storage): secured paths and hardened uploads
krau Nov 2, 2026
bbc8faf
fix(parser): made JS parsing cancellable and reloadable
krau Nov 2, 2026
5c7ba92
refactor(cli): shared upload retries and graceful shutdown
krau Nov 2, 2026
8b48cc1
refactor(telegram): removed stale client and progress singletons
krau Nov 2, 2026
8f2c44c
refactor: removed dead middleware and legacy helpers
krau Nov 2, 2026
3295899
fix(web): kept storage form values as strings
krau Nov 3, 2026
77194f5
fix(web): prevented initial-load content flashes
krau Nov 3, 2026
f7bc35b
docs(cli): clarified listen address usage
krau Nov 3, 2026
2bf3072
fix(telegram): used original media filename by default
krau Nov 3, 2026
6609ddc
fix(i18n): localized filename strategy labels
krau Nov 3, 2026
3c858d9
fix(telegram): recovered canceled userbot login
krau Nov 3, 2026
b815ba0
fix(web): kept pending userbot login incomplete
krau Nov 3, 2026
001645a
feat(config): exposed transfer tuning limits
krau Nov 3, 2026
33a2fde
fix(download): retried transient chunk connection errors
krau Nov 4, 2026
787273e
refactor(bot): consolidated commands into interactive menus
krau Nov 4, 2026
4b022e3
docs(commands): documented consolidated bot commands
krau Nov 4, 2026
b31a0e4
test(strutil): updated command parser fixtures
krau Nov 4, 2026
99729d9
feat(web): added automation, parser, update, peer sync and batch save…
krau Nov 4, 2026
5283e5b
feat(v1): adopted storage IDs and canonical Telegram chat IDs
krau Nov 5, 2026
262ade8
fix(update): validated release targets before self-update
krau Nov 5, 2026
dc652dc
fix(parsers): enforced plugin API version compatibility
krau Nov 5, 2026
c4b285a
feat(web): moved console to storage-ID contracts and refreshed copy
krau Nov 5, 2026
02510e6
test(e2e): aligned API and browser suites with storage IDs
krau Nov 5, 2026
29f8593
docs: updated v1 API, storage, and parser documentation
krau Nov 5, 2026
e7246e3
chore(deploy): removed legacy config download and host port mapping
krau Nov 5, 2026
22de9e7
fix(update): aligned API downgrade handling
krau Nov 5, 2026
373c1d1
fix(storage): added Telegram connection validation
krau Nov 5, 2026
91d611a
ci: gated releases on tests
krau Nov 5, 2026
37f3ec1
ci(release): marked prerelease tags
krau Nov 5, 2026
6279c2c
build: raised Go toolchain to 1.27
krau Nov 5, 2026
199ecd0
fix(progress): finalized progress edits after task cancellation
krau Nov 5, 2026
b0689b5
feat(metadata): added Telegram message metadata and sidecar handling
krau Nov 5, 2026
012f726
docs: documented message metadata and Telegram storage options
krau Nov 5, 2026
5a0a7cc
docs: rewrite some docs to reduce slop
krau Nov 5, 2026
ba39d4a
feat(media): added instance-wide media type filtering
krau Nov 5, 2026
dec677b
docs: documented media type filtering
krau Nov 5, 2026
13e5b84
feat(tasks): added readable metadata dialog
krau Nov 5, 2026
5fc81b9
ci(release): kept prereleases off stable Docker tags
krau Nov 5, 2026
a2419e0
refactor(web): split global stylesheet by section
krau Nov 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ downloads/
data/
cache/
docs/
config.example.toml
docker-compose.*
playwright/
playwright/
web/ui/node_modules
web/dist
53 changes: 25 additions & 28 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ concurrency:
cancel-in-progress: true

jobs:
test:
uses: ./.github/workflows/ci.yml

prepare:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -47,7 +51,6 @@ jobs:
strategy:
matrix:
arch: [amd64, arm64]
type: [default, micro, pico]
fail-fast: false
runs-on: ${{ matrix.arch == 'amd64' && 'ubuntu-latest' || 'ubuntu-24.04-arm' }}

Expand All @@ -70,7 +73,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
file: ${{ matrix.type == 'default' && './Dockerfile' || format('./Dockerfile.{0}', matrix.type) }}
file: ./Dockerfile
platforms: ${{ matrix.arch == 'amd64' && 'linux/amd64' || 'linux/arm64' }}
outputs: type=image,name=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }},push-by-digest=true,name-canonical=true,push=true
build-args: |
Expand All @@ -93,7 +96,7 @@ jobs:
- name: Upload digest
uses: actions/upload-artifact@v6
with:
name: digest-${{ matrix.type }}-${{ matrix.arch }}
name: digest-${{ matrix.arch }}
path: /tmp/digests/digest
if-no-files-found: error
retention-days: 1
Expand All @@ -103,9 +106,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
packages: write
strategy:
matrix:
type: [default, micro, pico]
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand All @@ -118,43 +118,40 @@ jobs:
uses: actions/download-artifact@v7
with:
path: /tmp/digests
pattern: digest-${{ matrix.type }}-*
pattern: digest-*
merge-multiple: false

- name: Create and push manifest lists
- name: Create and push manifest list
run: |
REPO="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
VERSION="${{ needs.prepare.outputs.version }}"
MAJOR_MINOR="${{ needs.prepare.outputs.major_minor }}"
SHA="${{ needs.prepare.outputs.short_sha }}"
TYPE="${{ matrix.type }}"

DIGEST_AMD64=$(cat /tmp/digests/digest-${TYPE}-amd64/digest)
DIGEST_ARM64=$(cat /tmp/digests/digest-${TYPE}-arm64/digest)
DIGEST_AMD64=$(cat /tmp/digests/digest-amd64/digest)
DIGEST_ARM64=$(cat /tmp/digests/digest-arm64/digest)

echo "Found digests for $TYPE:"
echo "AMD64: $DIGEST_AMD64"
echo "ARM64: $DIGEST_ARM64"

TAGS=()

if [ "$TYPE" == "default" ]; then
TAGS+=("$REPO:latest")
TAGS+=("$REPO:$VERSION")
TAGS+=("$REPO:$MAJOR_MINOR")
TAGS+=("$REPO:sha-$SHA")
else
TAGS+=("$REPO:$TYPE")
TAGS+=("$REPO:$TYPE-latest")
TAGS+=("$REPO:$TYPE-$VERSION")
fi

SRC_AMD64="${REPO}@${DIGEST_AMD64}"
SRC_ARM64="${REPO}@${DIGEST_ARM64}"

echo "Creating manifest list with sources:"
echo " $SRC_AMD64"
echo " $SRC_ARM64"
if [[ "$VERSION" == *-* ]]; then
# Prereleases must not move stable channels such as latest or 1.0.
echo "Prerelease $VERSION: publishing exact and commit tags only"
TAGS=(
"$REPO:$VERSION"
"$REPO:sha-$SHA"
)
else
TAGS=(
"$REPO:latest"
"$REPO:$VERSION"
"$REPO:$MAJOR_MINOR"
"$REPO:sha-$SHA"
)
fi

for TAG in "${TAGS[@]}"; do
echo "Pushing tag: $TAG"
Expand Down
39 changes: 37 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ permissions:
packages: write

jobs:
test:
uses: ./.github/workflows/ci.yml

create-release:
name: Create Release
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -21,18 +25,26 @@ jobs:

- name: Create Release
uses: softprops/action-gh-release@v3
with:
prerelease: ${{ contains(github.ref_name, '-') }}

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 12.14.0

- name: Setup node
uses: actions/setup-node@v7
with:
node-version: 24
node-version: 26

- run: npx changelogithub
- run: pnpm dlx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

build-matrix:
name: Release Go Binary
needs: test
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -45,12 +57,35 @@ jobs:
- name: Checkout
uses: actions/checkout@v6

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.27.x"

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 12.14.0

- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: 26
cache: pnpm
cache-dependency-path: web/ui/pnpm-lock.yaml

- name: Extract version from Git Ref
id: extract_version
run: |
VERSION=$(echo "${{ github.ref }}" | sed 's/refs\/tags\/v//')
echo "VERSION=${VERSION}" >> $GITHUB_ENV

- name: Build Web UI
run: |
cd web/ui
pnpm install --frozen-lockfile
pnpm run build

- name: Release Go Binary
uses: wangyoucao577/go-release-action@v1
with:
Expand Down
100 changes: 100 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: CI

on:
push:
branches:
- main
- v1-dev
pull_request:
workflow_dispatch:
workflow_call:

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
backend:
name: Backend tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v6

- uses: actions/setup-go@v5
with:
go-version: "1.27.x"
cache: true

- name: Test
run: go test ./...

- name: Vet
run: go vet ./...

- name: API end-to-end tests
run: go test -tags=e2e ./e2e -count=1

- name: Telegram end-to-end tests
run: go test -tags=e2e ./e2e/telegram -count=1

web:
name: Web checks
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v6

- uses: pnpm/action-setup@v4
with:
version: 12.14.0

- uses: actions/setup-node@v7
with:
node-version: 26
cache: pnpm
cache-dependency-path: web/ui/pnpm-lock.yaml

- name: Install
run: pnpm --dir web/ui install --frozen-lockfile

- name: Typecheck
run: pnpm --dir web/ui run typecheck

- name: Build
run: pnpm --dir web/ui run build

web-e2e:
name: Browser end-to-end tests
needs: web
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v6

- uses: actions/setup-go@v5
with:
go-version: "1.27.x"
cache: true

- uses: pnpm/action-setup@v4
with:
version: 12.14.0

- uses: actions/setup-node@v7
with:
node-version: 26
cache: pnpm
cache-dependency-path: web/ui/pnpm-lock.yaml

- name: Install
run: pnpm --dir web/ui install --frozen-lockfile

- name: Install Chromium
run: pnpm --dir web/ui exec playwright install --with-deps chromium

- name: Browser tests
run: make e2e-web
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ testplugins/
tmp-*
saveany-bot
.codegraph/
web/ui/node_modules/
web/dist/*
!web/dist/.gitkeep
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
FROM golang:alpine AS builder
FROM node:26-alpine AS web
WORKDIR /ui
RUN npm install -g pnpm
COPY web/ui/package.json web/ui/pnpm-lock.yaml web/ui/pnpm-workspace.yaml ./
RUN pnpm install --frozen-lockfile
COPY web/ui ./
RUN pnpm run build

FROM golang:1.27-alpine AS builder

ARG VERSION="dev"
ARG GitCommit="Unknown"
Expand All @@ -11,6 +19,7 @@ RUN --mount=type=cache,target=/go/pkg/mod \
go mod download

COPY . .
COPY --from=web /dist ./web/dist
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg \
CGO_ENABLED=0 \
Expand Down
41 changes: 0 additions & 41 deletions Dockerfile.micro

This file was deleted.

Loading
Loading