chore(platform): align docker and package outputs

This commit is contained in:
root 2026-03-29 23:40:14 +00:00
parent 1b7a68c8a8
commit eba6c7a641
8 changed files with 85 additions and 26 deletions

2
.npmrc
View File

@ -1,3 +1,3 @@
@bytelyst:registry=http://localhost:3300/api/packages/bytelyst/npm/ @bytelyst:registry=http://localhost:3300/api/packages/bytelyst/npm/
//localhost:3300/api/packages/bytelyst/npm/:_authToken=${GITEA_NPM_TOKEN} //localhost:3300/api/packages/bytelyst/npm/:_authToken=d9ecc7b835d56ff66e95e47eb36872e273a4eeed
strict-ssl=false strict-ssl=false

View File

@ -49,4 +49,4 @@ USER nextjs
EXPOSE 3001 EXPOSE 3001
CMD ["node", "server.js"] CMD ["npm", "start"]

View File

@ -45,4 +45,4 @@ USER nextjs
EXPOSE 3003 EXPOSE 3003
CMD ["node", "server.js"] CMD ["npm", "start"]

View File

@ -368,6 +368,8 @@ phase2_gitea() {
log "Phase 2: Setting up Gitea npm registry on port ${GITEA_PORT}..." log "Phase 2: Setting up Gitea npm registry on port ${GITEA_PORT}..."
local GITEA_CONTAINER="gitea-npm-registry" local GITEA_CONTAINER="gitea-npm-registry"
local docker_host_ip
docker_host_ip=$(detect_docker_host_ip)
# Check if already running # Check if already running
if docker ps --format '{{.Names}}' | grep -q "^${GITEA_CONTAINER}$"; then if docker ps --format '{{.Names}}' | grep -q "^${GITEA_CONTAINER}$"; then
@ -381,7 +383,8 @@ phase2_gitea() {
--restart unless-stopped \ --restart unless-stopped \
-p "${GITEA_PORT}:3000" \ -p "${GITEA_PORT}:3000" \
-v gitea-data:/data \ -v gitea-data:/data \
-e GITEA__server__ROOT_URL="http://localhost:${GITEA_PORT}/" \ -e GITEA__server__DOMAIN="${docker_host_ip}" \
-e GITEA__server__ROOT_URL="http://${docker_host_ip}:${GITEA_PORT}/" \
-e GITEA__server__HTTP_PORT=3000 \ -e GITEA__server__HTTP_PORT=3000 \
-e GITEA__packages__ENABLED=true \ -e GITEA__packages__ENABLED=true \
-e INSTALL_LOCK=true \ -e INSTALL_LOCK=true \

View File

@ -1,6 +1,6 @@
{ {
"name": "@bytelyst/llm-router", "name": "@bytelyst/llm-router",
"version": "0.1.0", "version": "0.1.1",
"description": "Pure-code LLM router for free-tier API providers with round-robin, fallback, and health tracking", "description": "Pure-code LLM router for free-tier API providers with round-robin, fallback, and health tracking",
"type": "module", "type": "module",
"exports": { "exports": {

View File

@ -1,28 +1,77 @@
{ {
"name": "@bytelyst/ui", "name": "@bytelyst/ui",
"version": "0.1.0", "version": "0.1.1",
"type": "module", "type": "module",
"scripts": { "scripts": {
"storybook": "storybook dev -p 6006", "storybook": "storybook dev -p 6006",
"build-storybook": "storybook build" "build-storybook": "storybook build",
"build": "tsc"
}, },
"exports": { "exports": {
".": "./src/index.ts", ".": {
"./button": "./src/components/Button.tsx", "types": "./dist/index.d.ts",
"./toast": "./src/components/Toast.tsx", "import": "./dist/index.js"
"./modal": "./src/components/Modal.tsx", },
"./confirm-dialog": "./src/components/ConfirmDialog.tsx", "./button": {
"./badge": "./src/components/Badge.tsx", "types": "./dist/components/Button.d.ts",
"./empty-state": "./src/components/EmptyState.tsx", "import": "./dist/components/Button.js"
"./input": "./src/components/Input.tsx", },
"./textarea": "./src/components/Textarea.tsx", "./toast": {
"./card": "./src/components/Card.tsx", "types": "./dist/components/Toast.d.ts",
"./label": "./src/components/Label.tsx", "import": "./dist/components/Toast.js"
"./select": "./src/components/Select.tsx", },
"./separator": "./src/components/Separator.tsx", "./modal": {
"./sidebar": "./src/components/Sidebar.tsx", "types": "./dist/components/Modal.d.ts",
"./stat-card": "./src/components/StatCard.tsx", "import": "./dist/components/Modal.js"
"./loading-spinner": "./src/components/LoadingSpinner.tsx" },
"./confirm-dialog": {
"types": "./dist/components/ConfirmDialog.d.ts",
"import": "./dist/components/ConfirmDialog.js"
},
"./badge": {
"types": "./dist/components/Badge.d.ts",
"import": "./dist/components/Badge.js"
},
"./empty-state": {
"types": "./dist/components/EmptyState.d.ts",
"import": "./dist/components/EmptyState.js"
},
"./input": {
"types": "./dist/components/Input.d.ts",
"import": "./dist/components/Input.js"
},
"./textarea": {
"types": "./dist/components/Textarea.d.ts",
"import": "./dist/components/Textarea.js"
},
"./card": {
"types": "./dist/components/Card.d.ts",
"import": "./dist/components/Card.js"
},
"./label": {
"types": "./dist/components/Label.d.ts",
"import": "./dist/components/Label.js"
},
"./select": {
"types": "./dist/components/Select.d.ts",
"import": "./dist/components/Select.js"
},
"./separator": {
"types": "./dist/components/Separator.d.ts",
"import": "./dist/components/Separator.js"
},
"./sidebar": {
"types": "./dist/components/Sidebar.d.ts",
"import": "./dist/components/Sidebar.js"
},
"./stat-card": {
"types": "./dist/components/StatCard.d.ts",
"import": "./dist/components/StatCard.js"
},
"./loading-spinner": {
"types": "./dist/components/LoadingSpinner.d.ts",
"import": "./dist/components/LoadingSpinner.js"
}
}, },
"peerDependencies": { "peerDependencies": {
"react": "^18.0.0 || ^19.0.0", "react": "^18.0.0 || ^19.0.0",
@ -45,5 +94,11 @@
"@storybook/addon-a11y": "^8.5.0", "@storybook/addon-a11y": "^8.5.0",
"storybook": "^8.5.0", "storybook": "^8.5.0",
"vite": "^6.0.0" "vite": "^6.0.0"
} },
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md"
]
} }

View File

@ -8,5 +8,6 @@
"rootDir": "src", "rootDir": "src",
"declaration": true "declaration": true
}, },
"include": ["src"] "include": ["src"],
"exclude": ["src/**/*.stories.tsx"]
} }

View File

@ -94,7 +94,7 @@ RUN pnpm --filter @lysnrai/extraction-service deploy --legacy /app/deploy
FROM node:22-slim FROM node:22-slim
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends python3 python3-venv supervisor \ && apt-get install -y --no-install-recommends python3 python3-venv supervisor wget \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Create an isolated venv for sidecar deps (avoids Debian PEP 668 restrictions). # Create an isolated venv for sidecar deps (avoids Debian PEP 668 restrictions).