-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeno.json
More file actions
30 lines (30 loc) · 2.18 KB
/
deno.json
File metadata and controls
30 lines (30 loc) · 2.18 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
{
"tasks": {
"dev": "deno serve --watch --env --allow-env --allow-net --allow-read --unstable-kv serve.ts",
"dev:play": "deno task dev:local",
"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 return 503 until auth is configured.\"; fi; fi; if [ -f .env ]; then source .env; fi; deno serve --watch --allow-env --allow-net --allow-read --unstable-kv serve.ts'",
"ubq-ai": "deno run --env --allow-env --allow-net --allow-read scripts/ubq-ai.ts",
"admin:models": "sh -c 'BASE_URL=${BASE_URL:-http://localhost:8000}; if [ -z \"${DENO_DEPLOY_TOKEN:-}\" ]; then echo \"DENO_DEPLOY_TOKEN is required for admin endpoints.\" >&2; exit 1; fi; curl -sS -H \"Authorization: Bearer ${DENO_DEPLOY_TOKEN}\" ${BASE_URL}/admin/codex/models'",
"admin:models:spark": "sh -c 'BASE_URL=${BASE_URL:-http://localhost:8000}; if [ -z \"${DENO_DEPLOY_TOKEN:-}\" ]; then echo \"DENO_DEPLOY_TOKEN is required for admin endpoints.\" >&2; exit 1; fi; curl -sS -H \"Authorization: Bearer ${DENO_DEPLOY_TOKEN}\" ${BASE_URL}/admin/codex/models | jq -r \".data.models[]?.slug // empty | select(contains(\\\"-spark\\\"))\"'",
"upload:auth": "deno run --env --allow-env --allow-net --allow-read scripts/upload-codex-auth.ts",
"keys:create": "deno run --env --allow-env --allow-net --allow-read scripts/ubq-ai.ts admin keys create",
"keys:list": "deno run --env --allow-env --allow-net --allow-read scripts/ubq-ai.ts admin keys list",
"keys:revoke": "deno run --env --allow-env --allow-net --allow-read scripts/ubq-ai.ts admin keys revoke",
"health:check": "deno run --allow-net --allow-env scripts/health-check.ts",
"test": "deno test --env",
"fmt": "deno fmt",
"lint": "deno lint"
},
"fmt": {
"lineWidth": 120,
"semiColons": true
},
"deploy": {
"project": "40db2c10-0700-4d98-8f29-11f04743ff86",
"exclude": [
"**/node_modules"
],
"include": [],
"entrypoint": "serve.ts"
}
}