Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
90 lines (90 loc) · 5.41 KB
/
Copy pathpackage.json
File metadata and controls
90 lines (90 loc) · 5.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
"name": "ai-ubq-fi",
"version": "0.0.0",
"private": true,
"description": "Bun TypeScript gateway for OpenAI-compatible and Codex-native APIs.",
"type": "module",
"packageManager": "bun@1.4.0",
"engines": {
"bun": "1.4.0"
},
"imports": {
"#http": "./src/runtime/http.ts",
"#kv": "./src/storage/kv.ts"
},
"scripts": {
"build": "bun --no-env-file run check",
"check": "bun --no-env-file --no-install scripts/patch-bun-types.ts && bun --no-env-file node_modules/typescript/bin/tsc --noEmit --project tsconfig.json && bun --no-env-file --no-install run check:cloudflare",
"check:cloudflare": "bun --no-env-file --no-install tools/cloudflare/generate-types.ts && bun --no-env-file --no-install node_modules/typescript/bin/tsc --noEmit --project tsconfig.cloudflare.json",
"build:native": "sh -c 'set -e; case \"$(uname -s)\" in Linux) bun --no-env-file scripts/build-permissions.ts ;; esac; exec bun --no-env-file --no-install scripts/prepare-native-runtime.ts'",
"dev": "sh -c 'if [ -f .env ]; then set -a; . ./.env; set +a; fi; export DENO_DEPLOY_TOKEN=\"${DENO_DEPLOY_TOKEN_UBIQUITY_DAO:-${DENO_DEPLOY_TOKEN:-local-dev-admin}}\"; exec bun --no-env-file --watch serve.ts --disable-admin-auth \"$@\"' --",
"dev:local": "sh -c 'if [ -z \"${CODEX_AUTH_JSON_B64:-}\" ]; then if [ -f \"$HOME/.codex/auth.json\" ]; then export CODEX_AUTH_JSON_B64=\"$(base64 < \"$HOME/.codex/auth.json\" | tr -d \"\\n\")\"; echo \"Loaded CODEX_AUTH_JSON_B64 from ~/.codex/auth.json\"; else echo \"No CODEX_AUTH_JSON_B64 and no ~/.codex/auth.json found. /v1/models will stay empty until a model snapshot is initialized.\"; fi; fi; if [ -f .env ]; then set -a; . ./.env; set +a; fi; export DENO_DEPLOY_TOKEN=\"${DENO_DEPLOY_TOKEN_UBIQUITY_DAO:-${DENO_DEPLOY_TOKEN:-local-dev-admin}}\"; exec bun --no-env-file --watch serve.ts --disable-admin-auth \"$@\"' --",
"dev:play": "bun --no-env-file run dev:local",
"ubq-ai": "bun run scripts/ubq-ai.ts",
"admin:models": "bun --no-env-file scripts/admin-models.ts",
"admin:models:spark": "bun --no-env-file scripts/admin-models.ts --spark",
"models:coverage": "bun --no-env-file run scripts/model-coverage.ts",
"upload:auth": "bun run scripts/upload-codex-auth.ts",
"keys:create": "bun run scripts/ubq-ai.ts admin keys create",
"keys:list": "bun run scripts/ubq-ai.ts admin keys list",
"keys:revoke": "bun run scripts/ubq-ai.ts admin keys revoke",
"health:check": "bun --no-env-file run scripts/health-check.ts",
"kv:probe": "bun --no-env-file scripts/kv-migrate.ts probe",
"kv:export": "bun --no-env-file scripts/kv-migrate.ts export",
"kv:analyze": "bun --no-env-file scripts/kv-migrate.ts analyze",
"kv:import-local": "bun --no-env-file scripts/kv-migrate.ts import-local",
"kv:import-remote": "bun --no-env-file scripts/kv-migrate.ts import-remote",
"kv:import-http": "bun --no-env-file scripts/kv-migrate.ts import-http",
"kv:validate": "bun --no-env-file scripts/kv-migrate.ts validate",
"kv:incident-v2": "bun --no-env-file scripts/kv-migrate.ts incident-v2",
"kv:validate-http": "bun --no-env-file scripts/kv-migrate.ts validate-http",
"kv:convert": "bun --no-env-file src/kv-conversion/cli.ts",
"benchmark:run": "bun --no-env-file benchmarks/runner.ts",
"benchmark:summary": "bun --no-env-file benchmarks/summarize.ts",
"benchmark:fixture-revision": "bun --no-env-file benchmarks/fixture-revision.ts",
"test": "bun --no-env-file scripts/test-runner.ts main",
"test:vps": "bun --no-env-file scripts/test-runner.ts vps",
"test:measurement": "bun --no-env-file scripts/test-runner.ts measurement",
"test:stress": "bun --no-env-file scripts/test-runner.ts stress",
"test:e2e": "bun --no-env-file scripts/test-runner.ts e2e",
"sentinel:test-local": "bun --no-env-file scripts/test-runner.ts sentinel",
"benchmark:test": "bun --no-env-file scripts/test-runner.ts benchmark",
"test:deploy-guards": "bun --no-env-file scripts/test-runner.ts deploy-guards",
"test:quality": "bun --no-env-file scripts/test-runner.ts quality",
"format": "sh scripts/format.sh",
"format:check": "sh scripts/format.sh --check",
"fmt": "sh scripts/format.sh",
"lint": "sh scripts/lint.sh",
"lint:eslint": "sh scripts/lint.sh",
"knip": "sh scripts/knip.sh",
"rust:quality": "bun --no-env-file scripts/rust-quality.ts",
"rust:quality:update": "bun --no-env-file scripts/rust-quality.ts --update",
"size:check": "bun --no-env-file scripts/file-size-ratchet.ts",
"size:update": "bun --no-env-file scripts/file-size-ratchet.ts --update",
"spec:drift": "bun --no-env-file --no-install scripts/check-openai-spec-drift.ts",
"verify": "sh scripts/verify.sh",
"prune:releases": "bun --no-env-file --no-install ops/prune-releases.ts",
"deploy:vps": "bun --no-env-file --no-install ops/deploy.ts",
"deploy:mac": "bun --no-env-file --no-install ops/deploy-mac.ts"
},
"dependencies": {
"@deno/kv": "0.14.0",
"@simplewebauthn/server": "13.2.2",
"@std/yaml": "npm:@jsr/std__yaml@1.0.9",
"ws": "8.18.3"
},
"devDependencies": {
"@types/bun": "1.4.0",
"@types/node": "25.6.0",
"@types/ws": "8.18.1",
"cf": "1.0.0-beta.12",
"typescript": "6.0.3",
"node-api-headers": "1.9.0",
"wrangler": "4.151.1",
"miniflare": "5.20261012.1-beta",
"esbuild": "0.28.2"
},
"patchedDependencies": {
"@deno/kv@0.14.0": "src/storage/patches/deno-kv-0.14.0.patch"
}
}