chore: remove código morto e padroniza scripts e CI
This commit is contained in:
1 parent
1bcb35d169
commit
d181c76dfd
13 files changed
+191
-412
No files matched your search
+2
-1
@@ -7,7 +7,8 @@
|
||||
"scripts": {
|
||||
"dev": "tsx src/index.ts",
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"start": "node dist/index.js"
|
||||
"start": "node dist/index.js",
|
||||
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fastify/cors": "^11.2.0",
|
||||
|
||||
@@ -51,16 +51,6 @@ app.get("/health", async () => {
|
||||
return { status: "ok" };
|
||||
});
|
||||
|
||||
const streamQuerySchema = z.object({
|
||||
url: z.string().url("URL inválida").startsWith("http", "Apenas HTTP/HTTPS permitidos"),
|
||||
// Offset opcional em bytes para retomar download.
|
||||
offset: z
|
||||
.string()
|
||||
.regex(/^\d+$/)
|
||||
.transform((value) => Number.parseInt(value, 10))
|
||||
.optional(),
|
||||
});
|
||||
|
||||
const downloadManager = new DownloadManager(agent);
|
||||
|
||||
// Helper to get session from header
|
||||
|
||||
@@ -25,7 +25,6 @@ export type DownloadTask = {
|
||||
// Map to store active task metadata in memory (for speed)
|
||||
// Ideally this would be persisted to JSON in the session folder for crash recovery
|
||||
const tasks = new Map<string, DownloadTask>();
|
||||
const agent = new Dispatcher(); // Should use the global agent from index.ts ideally, or pass it in.
|
||||
|
||||
export class DownloadManager {
|
||||
|
||||
|
||||
Reference in new issue
Block a user