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/
//localhost:3300/api/packages/bytelyst/npm/:_authToken=${GITEA_NPM_TOKEN}
//localhost:3300/api/packages/bytelyst/npm/:_authToken=d9ecc7b835d56ff66e95e47eb36872e273a4eeed
strict-ssl=false

View File

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

View File

@ -45,4 +45,4 @@ USER nextjs
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}..."
local GITEA_CONTAINER="gitea-npm-registry"
local docker_host_ip
docker_host_ip=$(detect_docker_host_ip)
# Check if already running
if docker ps --format '{{.Names}}' | grep -q "^${GITEA_CONTAINER}$"; then
@ -381,7 +383,8 @@ phase2_gitea() {
--restart unless-stopped \
-p "${GITEA_PORT}:3000" \
-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__packages__ENABLED=true \
-e INSTALL_LOCK=true \

View File

@ -1,6 +1,6 @@
{
"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",
"type": "module",
"exports": {

View File

@ -1,28 +1,77 @@
{
"name": "@bytelyst/ui",
"version": "0.1.0",
"version": "0.1.1",
"type": "module",
"scripts": {
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
"build-storybook": "storybook build",
"build": "tsc"
},
"exports": {
".": "./src/index.ts",
"./button": "./src/components/Button.tsx",
"./toast": "./src/components/Toast.tsx",
"./modal": "./src/components/Modal.tsx",
"./confirm-dialog": "./src/components/ConfirmDialog.tsx",
"./badge": "./src/components/Badge.tsx",
"./empty-state": "./src/components/EmptyState.tsx",
"./input": "./src/components/Input.tsx",
"./textarea": "./src/components/Textarea.tsx",
"./card": "./src/components/Card.tsx",
"./label": "./src/components/Label.tsx",
"./select": "./src/components/Select.tsx",
"./separator": "./src/components/Separator.tsx",
"./sidebar": "./src/components/Sidebar.tsx",
"./stat-card": "./src/components/StatCard.tsx",
"./loading-spinner": "./src/components/LoadingSpinner.tsx"
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./button": {
"types": "./dist/components/Button.d.ts",
"import": "./dist/components/Button.js"
},
"./toast": {
"types": "./dist/components/Toast.d.ts",
"import": "./dist/components/Toast.js"
},
"./modal": {
"types": "./dist/components/Modal.d.ts",
"import": "./dist/components/Modal.js"
},
"./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": {
"react": "^18.0.0 || ^19.0.0",
@ -45,5 +94,11 @@
"@storybook/addon-a11y": "^8.5.0",
"storybook": "^8.5.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",
"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
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/*
# Create an isolated venv for sidecar deps (avoids Debian PEP 668 restrictions).