1tube 0.1.53 → 0.1.54

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.
Files changed (71) hide show
  1. package/.env.example +27 -27
  2. package/LICENSE +21 -21
  3. package/README.md +6 -6
  4. package/deno.json +38 -38
  5. package/deno.lock +572 -572
  6. package/drizzle/20260610161429_init_logs/migration.sql +29 -29
  7. package/drizzle/20260610161429_init_logs/snapshot.json +305 -305
  8. package/drizzle/20260610161430_logs_fts/migration.sql +25 -25
  9. package/drizzle/20260610161430_logs_fts/snapshot.json +305 -305
  10. package/eslint-plugin.js +275 -275
  11. package/package.json +70 -70
  12. package/scripts/npm-cli.js +150 -150
  13. package/src/backends/deno/dep-graph.ts +404 -404
  14. package/src/backends/deno/hot-reloader.ts +471 -471
  15. package/src/backends/deno/shared-runtime.ts +218 -218
  16. package/src/backends/deno/source-rewriter.ts +637 -637
  17. package/src/backends/deno/worker-entry-colocated.ts +406 -406
  18. package/src/backends/deno/worker-entry.ts +375 -375
  19. package/src/backends/deno/worker-host.ts +2166 -2166
  20. package/src/backends/env-hot-reloader.ts +170 -170
  21. package/src/backends/vercel/bundle-profile.ts +159 -159
  22. package/src/backends/vercel/capture-config.ts +122 -122
  23. package/src/backends/vercel/wrapper.ts +359 -332
  24. package/src/backends/workerd/backend.ts +2112 -2112
  25. package/src/backends/workerd/bundle-profile.ts +246 -246
  26. package/src/backends/workerd/capnp.ts +413 -413
  27. package/src/backends/workerd/hot-reloader.ts +347 -347
  28. package/src/backends/workerd/prebuilt.ts +206 -206
  29. package/src/backends/workerd/proc-stats.ts +147 -147
  30. package/src/backends/workerd/process.ts +570 -570
  31. package/src/backends/workerd/runtime-overrides.ts +756 -756
  32. package/src/backends/workerd/shared-runtime.ts +104 -104
  33. package/src/backends/workerd/watchdog.ts +282 -282
  34. package/src/boot-progress.ts +230 -230
  35. package/src/bundler/core.ts +867 -867
  36. package/src/bundler/profile.ts +77 -77
  37. package/src/cli/build.ts +792 -792
  38. package/src/cli/deno-config.ts +83 -83
  39. package/src/cli/dep-pin.ts +126 -126
  40. package/src/cli/envelope.ts +283 -283
  41. package/src/cli/package.ts +719 -719
  42. package/src/cli/vercel-build.ts +793 -692
  43. package/src/cli.ts +12 -12
  44. package/src/discovery.ts +217 -217
  45. package/src/edge-caller.ts +141 -141
  46. package/src/edge.ts +976 -976
  47. package/src/env-file.ts +254 -254
  48. package/src/env-scope.ts +124 -124
  49. package/src/firmware-content-hash.ts +192 -192
  50. package/src/gateway/auth.ts +291 -291
  51. package/src/gateway/body-watchdog.ts +153 -153
  52. package/src/gateway/cors.ts +249 -245
  53. package/src/gateway/logging.ts +396 -396
  54. package/src/gateway/rate-limit.ts +189 -189
  55. package/src/gateway/route-prefix.ts +83 -83
  56. package/src/health.ts +156 -156
  57. package/src/launch.ts +685 -685
  58. package/src/log-buffer.ts +158 -158
  59. package/src/logs/api.ts +137 -137
  60. package/src/logs/console-marker.ts +54 -54
  61. package/src/logs/db.ts +85 -85
  62. package/src/logs/id.ts +33 -33
  63. package/src/logs/query.ts +398 -398
  64. package/src/logs/schema.ts +90 -90
  65. package/src/logs/writer.ts +390 -390
  66. package/src/manifest.ts +226 -226
  67. package/src/registry.ts +367 -367
  68. package/src/server.ts +2756 -2756
  69. package/src/supervisor.ts +184 -184
  70. package/src/version.ts +16 -16
  71. package/src/warmup-client.ts +159 -159
package/.env.example CHANGED
@@ -1,27 +1,27 @@
1
- # Supabase connection (required)
2
- SUPABASE_URL=http://127.0.0.1:54321
3
- SUPABASE_SERVICE_ROLE_KEY=
4
-
5
- # JWT secret -- must match the Supabase JWT secret for RLS compatibility
6
- JWT_SECRET=super-secret-jwt-token-with-at-least-32-characters-long
7
-
8
- # ScioBot / priprava backend
9
- SCIOBOT_URL=http://localhost:44298
10
- SCIOBOT_KEY=
11
-
12
- # AI providers
13
- GOOGLE_API_KEY=
14
- OPENAI_API_KEY=
15
- ELEVENLABS_API_KEY=
16
- TAVILY_API_KEY=
17
-
18
- # Gateway config
19
- PORT=3100
20
- FUNCTIONS_PATH=../sciobot-next/supabase/functions
21
- # INTERNAL_KEY=00000000-0000-0000-0000-000000000000 # optional, random GUID is fine
22
-
23
- # Optional: Sentry error tracking
24
- # SENTRY_DSN=
25
-
26
- # Optional: log function invocations to Supabase table
27
- # LOG_TO_DB=true
1
+ # Supabase connection (required)
2
+ SUPABASE_URL=http://127.0.0.1:54321
3
+ SUPABASE_SERVICE_ROLE_KEY=
4
+
5
+ # JWT secret -- must match the Supabase JWT secret for RLS compatibility
6
+ JWT_SECRET=super-secret-jwt-token-with-at-least-32-characters-long
7
+
8
+ # ScioBot / priprava backend
9
+ SCIOBOT_URL=http://localhost:44298
10
+ SCIOBOT_KEY=
11
+
12
+ # AI providers
13
+ GOOGLE_API_KEY=
14
+ OPENAI_API_KEY=
15
+ ELEVENLABS_API_KEY=
16
+ TAVILY_API_KEY=
17
+
18
+ # Gateway config
19
+ PORT=3100
20
+ FUNCTIONS_PATH=../sciobot-next/supabase/functions
21
+ # INTERNAL_KEY=00000000-0000-0000-0000-000000000000 # optional, random GUID is fine
22
+
23
+ # Optional: Sentry error tracking
24
+ # SENTRY_DSN=
25
+
26
+ # Optional: log function invocations to Supabase table
27
+ # LOG_TO_DB=true
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Matěj Štágl
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Matěj Štágl
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
- ![NPM Version](https://img.shields.io/npm/v/1tube)
2
- ![NuGet Version](https://img.shields.io/nuget/v/OneTube?v=2&icon=nuget)
3
-
4
- # 1tube
5
-
6
- 🕯☽ Black magic. ☾🕯
1
+ ![NPM Version](https://img.shields.io/npm/v/1tube)
2
+ ![NuGet Version](https://img.shields.io/nuget/v/OneTube?v=2&icon=nuget)
3
+
4
+ # 1tube
5
+
6
+ 🕯☽ Black magic. ☾🕯
package/deno.json CHANGED
@@ -1,38 +1,38 @@
1
- {
2
- "compilerOptions": {
3
- "strict": true,
4
- "lib": ["deno.window"]
5
- },
6
- "tasks": {
7
- "dev": "deno run --allow-all --watch src/cli.ts",
8
- "serve": "deno run --allow-all src/cli.ts",
9
- "play": "deno run --allow-all --watch src/cli.ts --dev --hmr --functions ./playground --port 3199",
10
- "play:workerd": "deno run --allow-all src/cli.ts --backend workerd --dev --hmr --functions ./playground --port 3199",
11
- "build": "deno run --allow-all src/cli.ts build",
12
- "test": "deno test --allow-all tests/"
13
- },
14
- "imports": {
15
- "@std/path": "jsr:@std/path@^1",
16
- "@std/assert": "jsr:@std/assert@^1",
17
- "hono": "npm:hono@4",
18
- "drizzle-orm": "npm:drizzle-orm@1.0.0-rc.3",
19
- "drizzle-orm/": "npm:/drizzle-orm@1.0.0-rc.3/",
20
- "esbuild": "npm:esbuild@^0.28.1",
21
- "es-module-lexer": "npm:es-module-lexer@^2",
22
- "@deno/esbuild-plugin": "jsr:@deno/esbuild-plugin@^1.2",
23
- "@deno/graph": "jsr:@deno/graph@^0.108",
24
- "@zip-js/zip-js": "jsr:@zip-js/zip-js@^2.8"
25
- },
26
- "lint": {
27
- "rules": {
28
- "exclude": [
29
- "no-import-prefix"
30
- ]
31
- }
32
- },
33
- "nodeModulesDir": "auto",
34
- "allowScripts": {
35
- "allow": [],
36
- "deny": ["npm:protobufjs@7.5.4"]
37
- }
38
- }
1
+ {
2
+ "compilerOptions": {
3
+ "strict": true,
4
+ "lib": ["deno.window"]
5
+ },
6
+ "tasks": {
7
+ "dev": "deno run --allow-all --watch src/cli.ts",
8
+ "serve": "deno run --allow-all src/cli.ts",
9
+ "play": "deno run --allow-all --watch src/cli.ts --dev --hmr --functions ./playground --port 3199",
10
+ "play:workerd": "deno run --allow-all src/cli.ts --backend workerd --dev --hmr --functions ./playground --port 3199",
11
+ "build": "deno run --allow-all src/cli.ts build",
12
+ "test": "deno test --allow-all tests/"
13
+ },
14
+ "imports": {
15
+ "@std/path": "jsr:@std/path@^1",
16
+ "@std/assert": "jsr:@std/assert@^1",
17
+ "hono": "npm:hono@4",
18
+ "drizzle-orm": "npm:drizzle-orm@1.0.0-rc.3",
19
+ "drizzle-orm/": "npm:/drizzle-orm@1.0.0-rc.3/",
20
+ "esbuild": "npm:esbuild@^0.28.1",
21
+ "es-module-lexer": "npm:es-module-lexer@^2",
22
+ "@deno/esbuild-plugin": "jsr:@deno/esbuild-plugin@^1.2",
23
+ "@deno/graph": "jsr:@deno/graph@^0.108",
24
+ "@zip-js/zip-js": "jsr:@zip-js/zip-js@^2.8"
25
+ },
26
+ "lint": {
27
+ "rules": {
28
+ "exclude": [
29
+ "no-import-prefix"
30
+ ]
31
+ }
32
+ },
33
+ "nodeModulesDir": "auto",
34
+ "allowScripts": {
35
+ "allow": [],
36
+ "deny": ["npm:protobufjs@7.5.4"]
37
+ }
38
+ }