1tube 0.1.52 → 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.
- package/.env.example +27 -27
- package/LICENSE +21 -21
- package/README.md +6 -6
- package/deno.json +38 -38
- package/deno.lock +572 -572
- package/drizzle/20260610161429_init_logs/migration.sql +29 -29
- package/drizzle/20260610161429_init_logs/snapshot.json +305 -305
- package/drizzle/20260610161430_logs_fts/migration.sql +25 -25
- package/drizzle/20260610161430_logs_fts/snapshot.json +305 -305
- package/eslint-plugin.js +275 -275
- package/package.json +70 -70
- package/scripts/npm-cli.js +150 -150
- package/src/backends/deno/dep-graph.ts +404 -404
- package/src/backends/deno/hot-reloader.ts +471 -471
- package/src/backends/deno/shared-runtime.ts +218 -218
- package/src/backends/deno/source-rewriter.ts +637 -637
- package/src/backends/deno/worker-entry-colocated.ts +406 -406
- package/src/backends/deno/worker-entry.ts +375 -375
- package/src/backends/deno/worker-host.ts +2166 -2166
- package/src/backends/env-hot-reloader.ts +170 -170
- package/src/backends/vercel/bundle-profile.ts +159 -159
- package/src/backends/vercel/capture-config.ts +122 -122
- package/src/backends/vercel/wrapper.ts +359 -332
- package/src/backends/workerd/backend.ts +2112 -2112
- package/src/backends/workerd/bundle-profile.ts +246 -246
- package/src/backends/workerd/capnp.ts +413 -413
- package/src/backends/workerd/hot-reloader.ts +347 -347
- package/src/backends/workerd/prebuilt.ts +206 -206
- package/src/backends/workerd/proc-stats.ts +147 -147
- package/src/backends/workerd/process.ts +570 -570
- package/src/backends/workerd/runtime-overrides.ts +756 -756
- package/src/backends/workerd/shared-runtime.ts +104 -104
- package/src/backends/workerd/watchdog.ts +282 -282
- package/src/boot-progress.ts +230 -230
- package/src/bundler/core.ts +867 -867
- package/src/bundler/profile.ts +77 -77
- package/src/cli/build.ts +792 -792
- package/src/cli/deno-config.ts +83 -83
- package/src/cli/dep-pin.ts +126 -126
- package/src/cli/envelope.ts +283 -283
- package/src/cli/package.ts +719 -719
- package/src/cli/vercel-build.ts +793 -692
- package/src/cli.ts +12 -12
- package/src/discovery.ts +217 -217
- package/src/edge-caller.ts +141 -141
- package/src/edge.ts +976 -976
- package/src/env-file.ts +254 -254
- package/src/env-scope.ts +124 -124
- package/src/firmware-content-hash.ts +192 -192
- package/src/gateway/auth.ts +291 -291
- package/src/gateway/body-watchdog.ts +153 -153
- package/src/gateway/cors.ts +249 -245
- package/src/gateway/logging.ts +396 -396
- package/src/gateway/rate-limit.ts +189 -189
- package/src/gateway/route-prefix.ts +83 -83
- package/src/health.ts +156 -156
- package/src/launch.ts +685 -685
- package/src/log-buffer.ts +158 -158
- package/src/logs/api.ts +137 -137
- package/src/logs/console-marker.ts +54 -54
- package/src/logs/db.ts +85 -85
- package/src/logs/id.ts +33 -33
- package/src/logs/query.ts +398 -398
- package/src/logs/schema.ts +90 -90
- package/src/logs/writer.ts +390 -390
- package/src/manifest.ts +226 -226
- package/src/registry.ts +367 -367
- package/src/server.ts +2756 -2753
- package/src/supervisor.ts +184 -184
- package/src/version.ts +16 -16
- 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
|
-

|
|
2
|
-

|
|
3
|
-
|
|
4
|
-
# 1tube
|
|
5
|
-
|
|
6
|
-
🕯☽ Black magic. ☾🕯
|
|
1
|
+

|
|
2
|
+

|
|
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
|
+
}
|