Add comprehensive developer tooling for Gitea integration: CLI Tool (cmd/gitea-cli/): - gitea-cli auth login/logout/status - Authentication management - gitea-cli upload release-asset - Chunked upload with progress - gitea-cli upload resume - Resume interrupted uploads - gitea-cli upload list - List pending upload sessions - Parallel chunk uploads with configurable workers - SHA256 checksum verification - Progress bar with speed and ETA display Go SDK (sdk/go/): - GiteaClient with token authentication - User, Repository, Release, Attachment types - ChunkedUpload with parallel workers - Progress callbacks for upload tracking - Functional options pattern (WithChunkSize, WithParallel, etc.) Python SDK (sdk/python/): - GiteaClient with requests-based HTTP - Full type hints and dataclasses - ThreadPoolExecutor for parallel uploads - Resume capability for interrupted uploads - Exception hierarchy (APIError, UploadError, etc.) TypeScript SDK (sdk/typescript/): - Full TypeScript types and interfaces - Async/await API design - Browser and Node.js compatible - Web Crypto API for checksums - ESM and CJS build outputs All SDKs support: - Chunked uploads for large files - Parallel upload workers - Progress tracking with callbacks - Checksum verification - Resume interrupted uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
{
|
|
"name": "@gitea/sdk",
|
|
"version": "1.0.0",
|
|
"description": "Official TypeScript/JavaScript SDK for the Gitea API with chunked upload support",
|
|
"main": "dist/index.js",
|
|
"module": "dist/index.mjs",
|
|
"types": "dist/index.d.ts",
|
|
"files": [
|
|
"dist",
|
|
"src"
|
|
],
|
|
"scripts": {
|
|
"build": "tsup src/index.ts --format cjs,esm --dts",
|
|
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
"lint": "eslint src --ext .ts",
|
|
"test": "vitest",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"keywords": [
|
|
"gitea",
|
|
"git",
|
|
"api",
|
|
"sdk",
|
|
"client",
|
|
"upload",
|
|
"chunked"
|
|
],
|
|
"author": "The Gitea Authors",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/go-gitea/gitea.git",
|
|
"directory": "sdk/typescript"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/go-gitea/gitea/issues"
|
|
},
|
|
"homepage": "https://docs.gitea.io/sdk/typescript",
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.10.0",
|
|
"eslint": "^8.55.0",
|
|
"tsup": "^8.0.0",
|
|
"typescript": "^5.3.0",
|
|
"vitest": "^1.0.0"
|
|
}
|
|
}
|