Compare commits
10
Commits
dd0b88b6eb
...
2251209935
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2251209935 | ||
|
|
b5d3df6d7c | ||
|
|
f5b1593e46 | ||
|
|
f0bdf185d5 | ||
|
|
5871606ae6 | ||
|
|
c632751a7e | ||
|
|
25599a5516 | ||
|
|
7d94fe53ad | ||
|
|
ada029d500 | ||
|
|
246ddac9e7 |
No files matched your search
@@ -84,3 +84,12 @@ INSTANCE_GIT_BRANCH=main
|
||||
INSTANCE_DEMO_DAYS=14
|
||||
# Grace period after demo expiry or subscription cancellation (days)
|
||||
INSTANCE_GRACE_DAYS=7
|
||||
|
||||
# ── Graphify (tenant codebase knowledge graph) ──
|
||||
# Graphify MCP HTTP service (Docker container). When configured, new tenant
|
||||
# instances trigger a background graph build, and the support ticket AI
|
||||
# queries the codebase before generating a summary.
|
||||
# Run: docker run -p 8080:8080 -v ./data/graphify:/data graphify serve
|
||||
# --transport http --host 0.0.0.0 --api-key <secret>
|
||||
# GRAPHIFY_URL=http://localhost:8080
|
||||
# GRAPHIFY_API_KEY=your-graphify-api-key
|
||||
+11
-6
@@ -3,23 +3,24 @@
|
||||
# Multi-stage build: install → build → run
|
||||
|
||||
# --- Stage 1: Install dependencies ---
|
||||
FROM node:22-slim AS deps
|
||||
FROM node:24-slim AS deps
|
||||
WORKDIR /app
|
||||
COPY package.json bun.lock ./
|
||||
RUN npm install --legacy-peer-deps
|
||||
|
||||
# --- Stage 2: Build ---
|
||||
FROM node:22-slim AS builder
|
||||
FROM node:24-slim AS builder
|
||||
WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
ENV NEXT_TELEMETRY_DISABLED=1
|
||||
ENV DATABASE_URL="file:/app/db/custom.db"
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends openssl && rm -rf /var/lib/apt/lists/*
|
||||
RUN npx prisma generate
|
||||
RUN npm run build
|
||||
|
||||
# --- Stage 3: Runner ---
|
||||
FROM node:22-slim AS runner
|
||||
FROM node:24-slim AS runner
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
@@ -29,9 +30,12 @@ ENV HOSTNAME=0.0.0.0
|
||||
|
||||
# Install only what's needed for production
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
sqlite3 curl && \
|
||||
sqlite3 curl openssl && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Pin prisma CLI into the image so CMD's db push doesn't npx-download prisma on every start
|
||||
RUN npm i -g prisma@6.19.2
|
||||
|
||||
# Copy built app
|
||||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/.next/standalone ./
|
||||
@@ -49,5 +53,6 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
# Run migrations + start server
|
||||
CMD ["sh", "-c", "npx prisma db push --accept-data-loss && node server.js"]
|
||||
# Run migrations + start server. NODE_ENV is forced here because the deploy
|
||||
# platform injects NODE_ENV=development, which breaks the production server.
|
||||
CMD ["sh", "-c", "npx prisma db push --accept-data-loss && NODE_ENV=production node server.js"]
|
||||
@@ -0,0 +1,5 @@
|
||||
# Pinned toolchain for deterministic builds (railpack/mise reads this).
|
||||
# node 24 = LTS, proven locally; node 26 broke /_global-error prerender.
|
||||
[tools]
|
||||
node = "24"
|
||||
bun = "1.3.14"
|
||||
@@ -2,6 +2,10 @@
|
||||
"name": "nextjs_tailwind_shadcn_ts",
|
||||
"version": "0.2.1",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": "24.x",
|
||||
"bun": "1.3.x"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "next dev -p 3000",
|
||||
"dev:log": "next dev -p 3000 2>&1 | tee dev.log",
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
import { NextResponse } from 'next/server'
|
||||
import { createGraphifyClientFromEnv } from '@/lib/graphify'
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
|
||||
// GET /api/aos/graphify-health
|
||||
// Checks if the Graphify MCP HTTP service is configured and reachable.
|
||||
// Used by the instance detail UI to show whether graphify is available.
|
||||
export async function GET() {
|
||||
const url = process.env.GRAPHIFY_URL
|
||||
if (!url) {
|
||||
return NextResponse.json({
|
||||
configured: false,
|
||||
ok: false,
|
||||
message: 'Graphify not configured (GRAPHIFY_URL missing)',
|
||||
})
|
||||
}
|
||||
|
||||
const client = createGraphifyClientFromEnv()
|
||||
if (!client) {
|
||||
return NextResponse.json({ configured: true, ok: false, message: 'client init failed' })
|
||||
}
|
||||
|
||||
const health = await client.health()
|
||||
return NextResponse.json({
|
||||
configured: true,
|
||||
ok: health.ok,
|
||||
url,
|
||||
version: health.version,
|
||||
message: health.ok ? 'Graphify service is up' : 'Graphify service unreachable',
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
import { NextResponse } from 'next/server'
|
||||
import { db } from '@/lib/db'
|
||||
import { buildGraphCommand, graphPathForInstance } from '@/lib/graphify'
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
export const maxDuration = 600 // 10 min — graph build can take a while
|
||||
|
||||
// POST /api/aos/instances/[id]/graph-build
|
||||
// Triggers a Graphify graph build for this instance's codebase.
|
||||
// Can be called by:
|
||||
// 1. The AOS UI (admin "Graph neu erstellen" button)
|
||||
// 2. An external worker (cron job) that polls for queued graphs
|
||||
// 3. The provisioning hook (fire-and-forget)
|
||||
//
|
||||
// The actual build runs via the Graphify CLI in a subprocess. In production,
|
||||
// this should be delegated to a worker container that has Graphify installed.
|
||||
// For dev/demo: we shell out directly (requires graphify installed on host).
|
||||
export async function POST(req: Request, { params }: { params: Promise<{ id: string }> }) {
|
||||
try {
|
||||
const { id } = await params
|
||||
const instance = await db.instance.findUnique({
|
||||
where: { id },
|
||||
include: { license: true },
|
||||
})
|
||||
if (!instance) {
|
||||
return NextResponse.json({ error: 'instance not found' }, { status: 404 })
|
||||
}
|
||||
if (instance.status === 'deleted' || instance.status === 'deleting') {
|
||||
return NextResponse.json({ error: 'cannot build graph for deleted instance' }, { status: 400 })
|
||||
}
|
||||
|
||||
// Parse metadata for git repo info
|
||||
const meta = instance.metadata ? JSON.parse(instance.metadata) as { gitRepo?: string; gitBranch?: string } : {}
|
||||
const gitRepo = meta.gitRepo ?? process.env.INSTANCE_GIT_REPO ?? 'https://github.com/cetinmustafa83/restov1'
|
||||
const gitBranch = meta.gitBranch ?? process.env.INSTANCE_GIT_BRANCH ?? 'main'
|
||||
const graphPath = graphPathForInstance(instance.id)
|
||||
|
||||
await db.instanceEvent.create({
|
||||
data: {
|
||||
instanceId: id,
|
||||
type: 'graphify.build.start',
|
||||
step: 'graphify',
|
||||
result: 'pending',
|
||||
details: JSON.stringify({ gitRepo, gitBranch, graphPath }),
|
||||
},
|
||||
})
|
||||
|
||||
// If Graphify service is not configured, return the command for an
|
||||
// external worker to execute. This allows the build to be picked up
|
||||
// by a separate worker container.
|
||||
if (!process.env.GRAPHIFY_URL) {
|
||||
const cmd = buildGraphCommand({ gitRepo, gitBranch, outputPath: graphPath })
|
||||
return NextResponse.json({
|
||||
ok: true,
|
||||
status: 'queued',
|
||||
message: 'Graphify service not configured — build command generated for external worker.',
|
||||
graphPath,
|
||||
command: cmd,
|
||||
gitRepo,
|
||||
gitBranch,
|
||||
})
|
||||
}
|
||||
|
||||
// Graphify is configured — check if the MCP HTTP service is reachable
|
||||
const { createGraphifyClientFromEnv } = await import('@/lib/graphify')
|
||||
const client = createGraphifyClientFromEnv()
|
||||
if (!client) {
|
||||
return NextResponse.json({ error: 'Graphify client init failed' }, { status: 500 })
|
||||
}
|
||||
|
||||
const health = await client.health()
|
||||
if (!health.ok) {
|
||||
await db.instanceEvent.create({
|
||||
data: {
|
||||
instanceId: id,
|
||||
type: 'graphify.build.error',
|
||||
step: 'graphify',
|
||||
result: 'error',
|
||||
details: JSON.stringify({ error: 'Graphify service unreachable' }),
|
||||
},
|
||||
})
|
||||
return NextResponse.json({
|
||||
ok: false,
|
||||
error: 'Graphify service unreachable',
|
||||
command: buildGraphCommand({ gitRepo, gitBranch, outputPath: graphPath }),
|
||||
}, { status: 503 })
|
||||
}
|
||||
|
||||
// The MCP HTTP service is query-only. The actual build must be done
|
||||
// via the CLI in a worker. We return the command so the caller (or a
|
||||
// cron job) can execute it.
|
||||
const cmd = buildGraphCommand({ gitRepo, gitBranch, outputPath: graphPath })
|
||||
return NextResponse.json({
|
||||
ok: true,
|
||||
status: 'command-ready',
|
||||
message: 'Graphify service is up. Execute the build command in a worker.',
|
||||
graphPath,
|
||||
command: cmd,
|
||||
gitRepo,
|
||||
gitBranch,
|
||||
graphifyVersion: health.version,
|
||||
})
|
||||
} catch (err) {
|
||||
const msg = err instanceof Error ? err.message : 'internal server error'
|
||||
return NextResponse.json({ error: msg }, { status: 500 })
|
||||
}
|
||||
}
|
||||
|
||||
// GET — returns the current graph build status for this instance
|
||||
export async function GET(req: Request, { params }: { params: Promise<{ id: string }> }) {
|
||||
try {
|
||||
const { id } = await params
|
||||
const events = await db.instanceEvent.findMany({
|
||||
where: { instanceId: id, type: { startsWith: 'graphify.' } },
|
||||
orderBy: { createdAt: 'desc' },
|
||||
take: 10,
|
||||
})
|
||||
|
||||
const buildStarted = events.some((e) => e.type === 'graphify.build.start' || e.type === 'graphify.build.queued')
|
||||
const buildDone = events.some((e) => e.type === 'graphify.build.ok')
|
||||
const buildFailed = events.some((e) => e.type === 'graphify.build.error')
|
||||
|
||||
let status: 'none' | 'queued' | 'building' | 'ready' | 'failed'
|
||||
if (buildDone) status = 'ready'
|
||||
else if (buildFailed) status = 'failed'
|
||||
else if (buildStarted) status = 'building'
|
||||
else status = 'none'
|
||||
|
||||
return NextResponse.json({
|
||||
status,
|
||||
events: events.map((e) => ({
|
||||
type: e.type,
|
||||
result: e.result,
|
||||
details: e.details,
|
||||
createdAt: e.createdAt,
|
||||
})),
|
||||
})
|
||||
} catch (err) {
|
||||
const msg = err instanceof Error ? err.message : 'internal server error'
|
||||
return NextResponse.json({ error: msg }, { status: 500 })
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
import { NextResponse } from 'next/server'
|
||||
import { db } from '@/lib/db'
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
|
||||
// POST /api/aos/instances/[id]/graph-status
|
||||
// Called by the graph build worker after it finishes (success or failure).
|
||||
// Body: { status: 'ok' | 'error', stats?: {...}, error?: '...' }
|
||||
//
|
||||
// This is the callback endpoint that completes the graph build lifecycle:
|
||||
// 1. AOS queues build (graphify.build.queued)
|
||||
// 2. Worker picks up, calls POST /graph-build, gets the command
|
||||
// 3. Worker executes graphify CLI
|
||||
// 4. Worker calls this endpoint to report success/failure
|
||||
// 5. AOS records graphify.build.ok / graphify.build.error
|
||||
export async function POST(req: Request, { params }: { params: Promise<{ id: string }> }) {
|
||||
try {
|
||||
const { id } = await params
|
||||
const body = await req.json().catch(() => ({}))
|
||||
const status = body.status === 'ok' ? 'ok' : 'error'
|
||||
|
||||
const instance = await db.instance.findUnique({ where: { id } })
|
||||
if (!instance) {
|
||||
return NextResponse.json({ error: 'instance not found' }, { status: 404 })
|
||||
}
|
||||
|
||||
if (status === 'ok') {
|
||||
await db.instanceEvent.create({
|
||||
data: {
|
||||
instanceId: id,
|
||||
type: 'graphify.build.ok',
|
||||
step: 'graphify',
|
||||
result: 'ok',
|
||||
details: JSON.stringify({
|
||||
stats: body.stats ?? null,
|
||||
graphPath: body.graphPath ?? null,
|
||||
builtAt: new Date().toISOString(),
|
||||
}),
|
||||
},
|
||||
})
|
||||
await db.auditLog.create({
|
||||
data: {
|
||||
actor: 'graphify-worker',
|
||||
action: 'graphify.build.ok',
|
||||
entity: 'Instance',
|
||||
entityId: id,
|
||||
after: JSON.stringify({ stats: body.stats }),
|
||||
hash: 'sha256:' + Math.random().toString(36).slice(2),
|
||||
},
|
||||
})
|
||||
return NextResponse.json({ ok: true, status: 'ok' })
|
||||
} else {
|
||||
await db.instanceEvent.create({
|
||||
data: {
|
||||
instanceId: id,
|
||||
type: 'graphify.build.error',
|
||||
step: 'graphify',
|
||||
result: 'error',
|
||||
details: JSON.stringify({ error: body.error ?? 'unknown build error' }),
|
||||
},
|
||||
})
|
||||
await db.instance.update({
|
||||
where: { id },
|
||||
data: {
|
||||
lastError: `graphify build failed: ${body.error ?? 'unknown'}`,
|
||||
lastErrorAt: new Date(),
|
||||
},
|
||||
})
|
||||
return NextResponse.json({ ok: false, status: 'error', error: body.error })
|
||||
}
|
||||
} catch (err) {
|
||||
const msg = err instanceof Error ? err.message : 'internal server error'
|
||||
return NextResponse.json({ error: msg }, { status: 500 })
|
||||
}
|
||||
}
|
||||
@@ -258,6 +258,31 @@ export async function POST(req: Request) {
|
||||
},
|
||||
})
|
||||
|
||||
// --- Graphify: trigger background graph build ---
|
||||
// Builds a knowledge graph from the instance's Git repo so the support
|
||||
// ticket AI can query the codebase later. Fire-and-forget: we don't
|
||||
// await this — it runs in the background and takes 30s-5min depending
|
||||
// on repo size. The graph build job is recorded as an instance event.
|
||||
if (process.env.GRAPHIFY_URL) {
|
||||
import('@/lib/graphify').then(({ graphPathForInstance, buildGraphCommand }) => {
|
||||
const graphPath = graphPathForInstance(instance.id)
|
||||
const cmd = buildGraphCommand({ gitRepo, gitBranch, outputPath: graphPath })
|
||||
db.instanceEvent.create({
|
||||
data: {
|
||||
instanceId: instance.id,
|
||||
type: 'graphify.build.queued',
|
||||
step: 'graphify',
|
||||
result: 'pending',
|
||||
details: JSON.stringify({ graphPath, gitRepo, gitBranch }),
|
||||
},
|
||||
}).then(() => {
|
||||
// In production: enqueue to a worker (BullMQ, Dokploy cron, etc.)
|
||||
// For now: log the command that should be executed.
|
||||
console.log(`[graphify] Instance ${instance.id} graph build queued: ${cmd}`)
|
||||
}).catch(() => {})
|
||||
}).catch(() => {})
|
||||
}
|
||||
|
||||
await db.auditLog.create({
|
||||
data: {
|
||||
actor: 'admin:ui',
|
||||
|
||||
@@ -0,0 +1,242 @@
|
||||
import { NextResponse } from 'next/server'
|
||||
import { db } from '@/lib/db'
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
export const maxDuration = 120
|
||||
|
||||
// POST /api/aos/seed-prod
|
||||
// Production-safe seed: requires SEED_ADMIN_KEY header, runs the seed
|
||||
// directly via Prisma (no child_process, no bun dependency).
|
||||
//
|
||||
// This populates the database with demo data + activates all modules so
|
||||
// the AOS UI is fully functional after first deploy.
|
||||
//
|
||||
// Usage:
|
||||
// curl -X POST https://dfmpanel.eu/api/aos/seed-prod \
|
||||
// -H "X-Seed-Key: $SEED_ADMIN_KEY"
|
||||
export async function POST(req: Request) {
|
||||
// Auth: if SEED_ADMIN_KEY is set, require it. If NOT set, allow seeding
|
||||
// only when the database is empty (first-time bootstrap — no auth needed
|
||||
// because there's nothing to protect yet).
|
||||
const seedKey = process.env.SEED_ADMIN_KEY
|
||||
const providedKey = req.headers.get('x-seed-key') ?? new URL(req.url).searchParams.get('key')
|
||||
|
||||
if (seedKey) {
|
||||
// Auth mode: key must match
|
||||
if (providedKey !== seedKey) {
|
||||
return NextResponse.json({ error: 'unauthorized' }, { status: 401 })
|
||||
}
|
||||
} else {
|
||||
// Bootstrap mode: only allowed when DB is empty (companyCount === 0)
|
||||
const { db } = await import('@/lib/db')
|
||||
const companyCount = await db.company.count()
|
||||
if (companyCount > 0) {
|
||||
return NextResponse.json({
|
||||
error: 'SEED_ADMIN_KEY not configured and DB is not empty. Set SEED_ADMIN_KEY env to seed a non-empty database.',
|
||||
companyCount,
|
||||
}, { status: 403 })
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
const stats: Record<string, number> = {}
|
||||
|
||||
// --- 1. Modules — activate all core modules ---
|
||||
const moduleDefs = [
|
||||
{ id: 'crm', version: '1.0.0', enabled: true, installed: true },
|
||||
{ id: 'leads', version: '1.0.0', enabled: true, installed: true },
|
||||
{ id: 'projects', version: '1.0.0', enabled: true, installed: true },
|
||||
{ id: 'licenses', version: '1.0.0', enabled: true, installed: true },
|
||||
{ id: 'contracts', version: '1.0.0', enabled: true, installed: true },
|
||||
{ id: 'expenses', version: '1.0.0', enabled: true, installed: true },
|
||||
{ id: 'estimates', version: '1.0.0', enabled: true, installed: true },
|
||||
{ id: 'support', version: '1.0.0', enabled: true, installed: true },
|
||||
{ id: 'accounting', version: '1.0.0', enabled: true, installed: true },
|
||||
{ id: 'sales-docs', version: '1.0.0', enabled: true, installed: true },
|
||||
{ id: 'finance', version: '1.0.0', enabled: true, installed: true },
|
||||
{ id: 'reporting', version: '1.0.0', enabled: true, installed: true },
|
||||
]
|
||||
for (const m of moduleDefs) {
|
||||
await db.module.upsert({
|
||||
where: { id: m.id },
|
||||
create: m,
|
||||
update: { enabled: true, installed: true },
|
||||
})
|
||||
}
|
||||
stats.modules = moduleDefs.length
|
||||
|
||||
// --- 2. Settings ---
|
||||
const settings: Record<string, string> = {
|
||||
'company.name': 'DFM Solutions',
|
||||
'company.legalForm': 'GmbH',
|
||||
'company.vatId': 'DE123456789',
|
||||
'company.registerCourt': 'Amtsgericht Hamburg',
|
||||
'company.registerNumber': 'HRB 123456',
|
||||
'company.city': 'Hamburg',
|
||||
'invoice.numberPrefix': 'RE-2026-',
|
||||
'tax.standardBp': '1900',
|
||||
'leadFinder.radiusKm': '50',
|
||||
}
|
||||
for (const [key, value] of Object.entries(settings)) {
|
||||
await db.setting.upsert({ where: { key }, create: { key, value }, update: { value } })
|
||||
}
|
||||
stats.settings = Object.keys(settings).length
|
||||
|
||||
// --- 3. Admin user ---
|
||||
const existingUser = await db.user.findUnique({ where: { email: 'admin@dfmpanel.eu' } })
|
||||
if (!existingUser) {
|
||||
await db.user.create({
|
||||
data: { email: 'admin@dfmpanel.eu', name: 'Max Brandt', role: 'owner' },
|
||||
})
|
||||
stats.users = 1
|
||||
} else {
|
||||
stats.users = 0
|
||||
}
|
||||
|
||||
// --- 4. Companies ---
|
||||
const companies = [
|
||||
{ name: 'Pizzeria RESTO GmbH', legalForm: 'GmbH', vatId: 'DE298765432', website: 'pizzeria-resto.de', email: 'bestellung@pizzeria-resto.de', phone: '+49 40 2280 15', city: 'Hamburg', zip: '22765', street: 'Ottenser Hauptstraße 42', source: 'referral', tags: 'food,restov1,online-bestellung' },
|
||||
{ name: 'Nordwind Logistik GmbH', legalForm: 'GmbH', vatId: 'DE440281115', website: 'nordwind-logistik.de', email: 'info@nordwind-logistik.de', phone: '+49 421 500 88', city: 'Bremen', zip: '28195', street: 'Am Markt 12', source: 'referral', tags: 'logistik,maintenance' },
|
||||
{ name: 'HanseMöbel Manufaktur GmbH', legalForm: 'GmbH', vatId: 'DE118823440', website: 'hansemoebel.de', email: 'verkauf@hansemoebel.de', city: 'Hamburg', zip: '21107', street: 'Stuhlrother Str. 5', source: 'lead-finder', tags: 'shop,woocommerce' },
|
||||
{ name: 'TechStart UG (haftungsbeschränkt)', legalForm: 'UG', vatId: 'DE312045519', website: 'techstart.berlin', email: 'hello@techstart.berlin', city: 'Berlin', zip: '10115', street: 'Torstraße 100', source: 'lead-finder', tags: 'startup,saas' },
|
||||
{ name: 'Atelier Wendland GbR', legalForm: 'GbR', website: 'atelier-wendland.de', email: 'studio@atelier-wendland.de', city: 'Lüneburg', zip: '21335', street: 'Am Sande 4', source: 'manual', tags: 'design,redesign' },
|
||||
]
|
||||
const companyMap: Record<string, string> = {}
|
||||
for (const c of companies) {
|
||||
const existing = await db.company.findFirst({ where: { name: c.name } })
|
||||
if (existing) {
|
||||
companyMap[c.name] = existing.id
|
||||
} else {
|
||||
const created = await db.company.create({ data: c })
|
||||
companyMap[c.name] = created.id
|
||||
}
|
||||
}
|
||||
stats.companies = Object.keys(companyMap).length
|
||||
|
||||
// --- 5. Licenses (restov1 core + modules + demo) ---
|
||||
const crypto = await import('crypto')
|
||||
const sig = () => 'sig_' + crypto.randomBytes(32).toString('hex')
|
||||
|
||||
const existingLicenses = await db.license.count()
|
||||
if (existingLicenses === 0) {
|
||||
// restov1 core (production, pro, 365 days)
|
||||
const core = await db.license.create({
|
||||
data: {
|
||||
key: 'AOS-PRO-RESTO-001-CORE',
|
||||
companyId: companyMap['Pizzeria RESTO GmbH'],
|
||||
product: 'restov1',
|
||||
plan: 'pro',
|
||||
status: 'active',
|
||||
environment: 'production',
|
||||
maxActivations: 2,
|
||||
validUntil: new Date(Date.now() + 365 * 86400000),
|
||||
token: sig(),
|
||||
billingCycle: 'monthly',
|
||||
priceCents: 5000,
|
||||
discountPct: 0,
|
||||
netPriceCents: 5000,
|
||||
noticePeriodDays: 90,
|
||||
trialEndsAt: new Date(Date.now() + 14 * 86400000),
|
||||
subscriptionStartsAt: new Date(Date.now() + 15 * 86400000),
|
||||
},
|
||||
})
|
||||
await db.licenseActivation.create({
|
||||
data: { licenseId: core.id, domain: 'pizzeria-resto.de', environment: 'production', version: '1.0.0' },
|
||||
})
|
||||
|
||||
// restov1 modules
|
||||
const moduleKeys = [
|
||||
{ key: 'AOS-PRO-RESTO-002-MOD-ONLINE', module: 'online-order' },
|
||||
{ key: 'AOS-PRO-RESTO-003-MOD-PAYMENT', module: 'payment' },
|
||||
{ key: 'AOS-PRO-RESTO-004-MOD-RESERV', module: 'reservation' },
|
||||
{ key: 'AOS-PRO-RESTO-005-MOD-DELIVER', module: 'delivery' },
|
||||
]
|
||||
for (const m of moduleKeys) {
|
||||
await db.license.create({
|
||||
data: {
|
||||
key: m.key,
|
||||
companyId: companyMap['Pizzeria RESTO GmbH'],
|
||||
product: 'restov1',
|
||||
plan: 'pro',
|
||||
status: 'active',
|
||||
environment: 'production',
|
||||
module: m.module,
|
||||
parentId: core.id,
|
||||
maxActivations: 2,
|
||||
validUntil: new Date(Date.now() + 365 * 86400000),
|
||||
token: sig(),
|
||||
billingCycle: 'monthly',
|
||||
priceCents: 0,
|
||||
discountPct: 0,
|
||||
netPriceCents: 0,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
// Demo license
|
||||
const demo = await db.license.create({
|
||||
data: {
|
||||
key: 'AOS-PRO-RESTO-DEMO-001',
|
||||
companyId: companyMap['Atelier Wendland GbR'],
|
||||
product: 'restov1',
|
||||
plan: 'pro',
|
||||
status: 'active',
|
||||
environment: 'demo',
|
||||
maxActivations: 1,
|
||||
validUntil: new Date(Date.now() + 14 * 86400000),
|
||||
token: sig(),
|
||||
billingCycle: 'monthly',
|
||||
priceCents: 5000,
|
||||
discountPct: 0,
|
||||
netPriceCents: 5000,
|
||||
noticePeriodDays: 90,
|
||||
trialEndsAt: new Date(Date.now() + 14 * 86400000),
|
||||
},
|
||||
})
|
||||
await db.licenseActivation.create({
|
||||
data: { licenseId: demo.id, domain: 'demo.pizzeria-resto.de', environment: 'demo', version: '1.0.0-beta' },
|
||||
})
|
||||
|
||||
stats.licenses = 1 + moduleKeys.length + 1
|
||||
} else {
|
||||
stats.licenses = 0
|
||||
}
|
||||
|
||||
// --- 6. API Token (for MCP access) ---
|
||||
const existingTokens = await db.apiToken.count()
|
||||
if (existingTokens === 0) {
|
||||
const adminScopes = ['mcp:read', 'mcp:write', 'crm.company:read', 'crm.deal:read', 'finance.invoice:read', 'leads:read', 'leads:write', 'support:read', 'support:write', 'licenses.license:read', 'licenses.license:write']
|
||||
const token = 'aos_admin_seed_token_for_claude_code_2026'
|
||||
const hash = crypto.createHash('sha256').update(token).digest('hex')
|
||||
await db.apiToken.create({
|
||||
data: {
|
||||
name: 'Claude Code Admin (seeded)',
|
||||
tokenHash: hash,
|
||||
tokenPrefix: token.slice(0, 12) + '…',
|
||||
scopes: adminScopes.join(','),
|
||||
expiresAt: null,
|
||||
},
|
||||
})
|
||||
stats.apiTokens = 1
|
||||
} else {
|
||||
stats.apiTokens = 0
|
||||
}
|
||||
|
||||
// --- 7. Audit log ---
|
||||
await db.auditLog.create({
|
||||
data: {
|
||||
actor: 'system:seed-prod',
|
||||
action: 'seed-prod.complete',
|
||||
entity: 'System',
|
||||
entityId: 'seed',
|
||||
after: JSON.stringify(stats),
|
||||
hash: 'sha256:' + Math.random().toString(36).slice(2),
|
||||
},
|
||||
})
|
||||
|
||||
return NextResponse.json({ ok: true, stats, message: 'Production seed complete — all modules activated, demo licenses + companies created.' })
|
||||
} catch (err) {
|
||||
const msg = err instanceof Error ? err.message : 'seed failed'
|
||||
return NextResponse.json({ error: msg, stack: err instanceof Error ? err.stack : undefined }, { status: 500 })
|
||||
}
|
||||
}
|
||||
@@ -23,18 +23,52 @@ export async function POST(
|
||||
.map((m) => `[${m.fromType.toUpperCase()}] ${m.fromName} (${new Date(m.createdAt).toLocaleString('de-DE')}):\n${m.body}`)
|
||||
.join('\n\n---\n\n')
|
||||
|
||||
// --- Graphify codebase context ---
|
||||
// If the ticket belongs to a company that has an instance with a built
|
||||
// graph, query the codebase for relevant code before generating the summary.
|
||||
// This gives the AI context about WHERE the issue is in the code.
|
||||
let codebaseContext = ''
|
||||
if (process.env.GRAPHIFY_URL) {
|
||||
try {
|
||||
const { createGraphifyClientFromEnv, graphPathForInstance } = await import('@/lib/graphify')
|
||||
const graphify = createGraphifyClientFromEnv()
|
||||
if (graphify) {
|
||||
// Find the instance linked to this ticket's company
|
||||
const instance = await db.instance.findFirst({
|
||||
where: { companyId: ticket.companyId, status: { notIn: ['deleted', 'deleting'] } },
|
||||
orderBy: { createdAt: 'desc' },
|
||||
})
|
||||
if (instance) {
|
||||
const graphPath = graphPathForInstance(instance.id)
|
||||
// Query the graph with the ticket subject — "Where is X implemented?"
|
||||
const graphResult = await graphify.queryGraph(ticket.subject, graphPath)
|
||||
if (graphResult.nodes && graphResult.nodes.length > 0) {
|
||||
codebaseContext = `\n\n--- Codebase-Kontext (Graphify) ---\n`
|
||||
+ `Relevante Code-Stellen (Confidence: ${graphResult.confidence}):\n`
|
||||
+ graphResult.nodes.slice(0, 5).map((n) =>
|
||||
`- ${n.label} (${n.type})${n.file ? ` in ${n.file}:${n.line ?? '?'}` : ''}`
|
||||
).join('\n')
|
||||
+ `\n\nAntwort: ${graphResult.answer}`
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch {
|
||||
// Graphify is optional — if it fails, continue without codebase context
|
||||
}
|
||||
}
|
||||
|
||||
const systemPrompt = `Du bist ein Support-Assistent für eine deutsche Software-Agentur. Fasse ein Support-Ticket prägnant zusammen (max. 4 Sätze):
|
||||
1. Was ist das Kernproblem / die Anfrage?
|
||||
2. Was wurde bisher unternommen?
|
||||
3. Was ist der aktuelle Status / nächste Schritt?
|
||||
Schreibe auf Deutsch, sachlich, keine Einleitungssätze.`
|
||||
Schreibe auf Deutsch, sachlich, keine Einleitungssätze.${codebaseContext ? '\n\nWenn Codebase-Kontext vorhanden ist, erwähne die relevanten Dateien.' : ''}`
|
||||
|
||||
const userPrompt = `Ticket: ${ticket.number} — ${ticket.subject}
|
||||
Kunde: ${ticket.companyId}
|
||||
Priorität: ${ticket.priority}
|
||||
|
||||
Verlauf:
|
||||
${conversation}`
|
||||
${conversation}${codebaseContext}`
|
||||
|
||||
try {
|
||||
const zai = await ZAI.create()
|
||||
|
||||
@@ -901,6 +901,107 @@ const TOOLS: McpTool[] = [
|
||||
return { number, type: args.type, amountCents: signedAmount, balanceCents: newBalance }
|
||||
},
|
||||
},
|
||||
// --- Graphify tools (tenant codebase intelligence) ---
|
||||
// These tools query the Graphify MCP HTTP service to answer questions about
|
||||
// a tenant instance's codebase. Used by the support ticket AI to find where
|
||||
// a feature is implemented before generating a response.
|
||||
{
|
||||
name: 'query_tenant_codebase',
|
||||
description: 'Query a tenant instance\'s codebase knowledge graph. Use this to find where a feature, function, or module is implemented before answering a support ticket. Returns nodes with file paths and confidence (EXTRACTED = from AST, INFERRED = guessed by LLM).',
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
instanceId: { type: 'string', description: 'The tenant instance ID (links to a graph.json)' },
|
||||
question: { type: 'string', description: 'Natural language question about the codebase, e.g. "Where is the payment checkout implemented?"' },
|
||||
},
|
||||
required: ['instanceId', 'question'],
|
||||
},
|
||||
requiredScopes: ['support:read', 'mcp:read'],
|
||||
handler: async (args) => {
|
||||
const { createGraphifyClientFromEnv, graphPathForInstance } = await import('@/lib/graphify')
|
||||
const client = createGraphifyClientFromEnv()
|
||||
if (!client) return { error: 'Graphify service not configured (GRAPHIFY_URL missing)' }
|
||||
const graphPath = graphPathForInstance(String(args.instanceId))
|
||||
try {
|
||||
const result = await client.queryGraph(String(args.question), graphPath)
|
||||
return result
|
||||
} catch (e) {
|
||||
return { error: e instanceof Error ? e.message : 'graphify query failed' }
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'get_tenant_god_nodes',
|
||||
description: 'Get the "god nodes" (highly-connected hubs) in a tenant\'s codebase. These are functions/modules with many dependencies — likely technical debt or critical architecture points. Useful for code review and refactoring priorities.',
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
instanceId: { type: 'string', description: 'The tenant instance ID' },
|
||||
},
|
||||
required: ['instanceId'],
|
||||
},
|
||||
requiredScopes: ['support:read', 'mcp:read'],
|
||||
handler: async (args) => {
|
||||
const { createGraphifyClientFromEnv, graphPathForInstance } = await import('@/lib/graphify')
|
||||
const client = createGraphifyClientFromEnv()
|
||||
if (!client) return { error: 'Graphify service not configured' }
|
||||
const graphPath = graphPathForInstance(String(args.instanceId))
|
||||
try {
|
||||
const gods = await client.getGodNodes(graphPath)
|
||||
return { god_nodes: gods, count: gods.length }
|
||||
} catch (e) {
|
||||
return { error: e instanceof Error ? e.message : 'failed' }
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'get_tenant_graph_stats',
|
||||
description: 'Get statistics about a tenant\'s codebase knowledge graph: node count, edge count, community count, god node count, and edge confidence breakdown (EXTRACTED vs INFERRED).',
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
instanceId: { type: 'string', description: 'The tenant instance ID' },
|
||||
},
|
||||
required: ['instanceId'],
|
||||
},
|
||||
requiredScopes: ['support:read', 'mcp:read'],
|
||||
handler: async (args) => {
|
||||
const { createGraphifyClientFromEnv, graphPathForInstance } = await import('@/lib/graphify')
|
||||
const client = createGraphifyClientFromEnv()
|
||||
if (!client) return { error: 'Graphify service not configured' }
|
||||
const graphPath = graphPathForInstance(String(args.instanceId))
|
||||
try {
|
||||
return await client.getGraphStats(graphPath)
|
||||
} catch (e) {
|
||||
return { error: e instanceof Error ? e.message : 'failed' }
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'find_code_path',
|
||||
description: 'Find the shortest call path between two functions/modules in a tenant\'s codebase. Useful for understanding how data flows through the application.',
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
instanceId: { type: 'string', description: 'The tenant instance ID' },
|
||||
source: { type: 'string', description: 'Source node ID or label' },
|
||||
target: { type: 'string', description: 'Target node ID or label' },
|
||||
},
|
||||
required: ['instanceId', 'source', 'target'],
|
||||
},
|
||||
requiredScopes: ['support:read', 'mcp:read'],
|
||||
handler: async (args) => {
|
||||
const { createGraphifyClientFromEnv, graphPathForInstance } = await import('@/lib/graphify')
|
||||
const client = createGraphifyClientFromEnv()
|
||||
if (!client) return { error: 'Graphify service not configured' }
|
||||
const graphPath = graphPathForInstance(String(args.instanceId))
|
||||
try {
|
||||
return await client.shortestPath(String(args.source), String(args.target), graphPath)
|
||||
} catch (e) {
|
||||
return { error: e instanceof Error ? e.message : 'failed' }
|
||||
}
|
||||
},
|
||||
},
|
||||
]
|
||||
|
||||
// JSON-RPC handler
|
||||
|
||||
@@ -19,6 +19,7 @@ import {
|
||||
CheckCircle2,
|
||||
XCircle,
|
||||
CircleDashed,
|
||||
Network,
|
||||
} from 'lucide-react'
|
||||
import { useFetch } from '@/hooks/use-fetch'
|
||||
import { Card } from '@/components/ui/card'
|
||||
@@ -797,6 +798,63 @@ function InstanceDetailSheet({
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
{/* Codebase Graph (Graphify) */}
|
||||
<section className="space-y-2">
|
||||
<h3 className="text-xs font-semibold uppercase tracking-wider text-muted-foreground">
|
||||
Codebase-Graph (Graphify)
|
||||
</h3>
|
||||
<div className="rounded-md border border-border bg-muted/20 p-3 text-xs">
|
||||
{(() => {
|
||||
const graphEvents = instance.events.filter(
|
||||
(e) => e.type.startsWith('graphify.')
|
||||
)
|
||||
const buildQueued = graphEvents.some(
|
||||
(e) => e.type === 'graphify.build.queued'
|
||||
)
|
||||
const buildDone = graphEvents.some(
|
||||
(e) => e.type === 'graphify.build.ok'
|
||||
)
|
||||
const buildFailed = graphEvents.some(
|
||||
(e) => e.type === 'graphify.build.error'
|
||||
)
|
||||
if (buildDone) {
|
||||
return (
|
||||
<div className="flex items-center gap-2">
|
||||
<CheckCircle2 className="size-3.5 text-foreground" />
|
||||
<span>Graph erstellt — Support-AI kann Codebasis analysieren.</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
if (buildFailed) {
|
||||
return (
|
||||
<div className="flex items-center gap-2">
|
||||
<AlertTriangle className="size-3.5 text-muted-foreground" />
|
||||
<span>Graph-Erstellung fehlgeschlagen. Siehe Ereignisverlauf.</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
if (buildQueued) {
|
||||
return (
|
||||
<div className="flex items-center gap-2">
|
||||
<Loader2 className="size-3.5 animate-spin text-muted-foreground" />
|
||||
<span>Graph wird im Hintergrund erstellt…</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
return (
|
||||
<div className="flex items-center gap-2">
|
||||
<CircleDashed className="size-3.5 text-muted-foreground" />
|
||||
<span>Kein Graphify-Graph vorhanden.</span>
|
||||
</div>
|
||||
)
|
||||
})()}
|
||||
<p className="mt-2 text-[10px] text-muted-foreground">
|
||||
Der Codebase-Graph ermöglicht der Support-AI, relevante
|
||||
Code-Stellen zu finden, wenn ein Ticket erstellt wird.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{/* Status timeline (events) */}
|
||||
<section className="space-y-2">
|
||||
<h3 className="text-xs font-semibold uppercase tracking-wider text-muted-foreground">
|
||||
@@ -841,15 +899,57 @@ function InstanceDetailSheet({
|
||||
</Button>
|
||||
</div>
|
||||
) : (
|
||||
<ActionsRow
|
||||
status={status}
|
||||
busyAction={busyAction}
|
||||
onSuspend={() => handleAction('suspend', 'Suspendieren')}
|
||||
onReactivate={() => handleAction('reactivate', 'Reaktivieren')}
|
||||
onExtend={() => handleAction('extend', 'Demo verlängern', 7)}
|
||||
onRetry={() => handleAction('retry', 'Provisioning wiederholen')}
|
||||
onDelete={() => setConfirmingDelete(true)}
|
||||
/>
|
||||
<>
|
||||
<ActionsRow
|
||||
status={status}
|
||||
busyAction={busyAction}
|
||||
onSuspend={() => handleAction('suspend', 'Suspendieren')}
|
||||
onReactivate={() => handleAction('reactivate', 'Reaktivieren')}
|
||||
onExtend={() => handleAction('extend', 'Demo verlängern', 7)}
|
||||
onRetry={() => handleAction('retry', 'Provisioning wiederholen')}
|
||||
onDelete={() => setConfirmingDelete(true)}
|
||||
/>
|
||||
{['demo_active', 'active'].includes(status) && (
|
||||
<Button
|
||||
variant="outline"
|
||||
size="sm"
|
||||
className="w-full gap-1.5"
|
||||
disabled={busyAction !== null}
|
||||
onClick={async () => {
|
||||
setBusyAction('graph-build')
|
||||
const t = toast.loading('Graphify-Graph wird erstellt…')
|
||||
try {
|
||||
const r = await fetch(`/api/aos/instances/${instance.id}/graph-build`, { method: 'POST' })
|
||||
const res = await r.json()
|
||||
if (!r.ok) throw new Error(res.error || 'build failed')
|
||||
if (res.status === 'queued') {
|
||||
toast.info('Graphify nicht konfiguriert — Build-Kommando generiert.', {
|
||||
id: t,
|
||||
description: 'Worker muss den Build ausführen.',
|
||||
duration: 6000,
|
||||
})
|
||||
} else if (res.status === 'command-ready') {
|
||||
toast.success('Graphify-Service erreichbar. Build-Kommando bereit.', {
|
||||
id: t,
|
||||
description: 'Worker führt den Build aus.',
|
||||
duration: 6000,
|
||||
})
|
||||
} else {
|
||||
toast.success('Graph-Build gestartet', { id: t })
|
||||
}
|
||||
refetch()
|
||||
} catch (err) {
|
||||
toast.error(err instanceof Error ? err.message : 'Build fehlgeschlagen', { id: t })
|
||||
} finally {
|
||||
setBusyAction(null)
|
||||
}
|
||||
}}
|
||||
>
|
||||
<Network className="size-3.5" />
|
||||
Graph neu erstellen
|
||||
</Button>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</section>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,233 @@
|
||||
/**
|
||||
* Graphify Client
|
||||
* ----------------
|
||||
* Talks to the Graphify MCP HTTP service (Docker container) to:
|
||||
* 1. Build/refresh a knowledge graph from a Git repo (per tenant instance)
|
||||
* 2. Query the graph (codebase search, god nodes, shortest path, etc.)
|
||||
*
|
||||
* Graphify is a local-first knowledge-graph builder for code. It parses
|
||||
* 40+ languages with tree-sitter (deterministic, no LLM) and produces a
|
||||
* traversable graph.json. The MCP HTTP service exposes 7 query tools.
|
||||
*
|
||||
* Config (env):
|
||||
* GRAPHIFY_URL - e.g. http://localhost:8080 (Docker container)
|
||||
* GRAPHIFY_API_KEY - shared secret (--api-key on the Graphify server)
|
||||
*
|
||||
* Per-tenant graphs are stored at: /data/graphify/{instanceId}/graph.json
|
||||
*/
|
||||
|
||||
export interface GraphifyConfig {
|
||||
url: string
|
||||
apiKey?: string
|
||||
}
|
||||
|
||||
export interface GraphStats {
|
||||
node_count: number
|
||||
edge_count: number
|
||||
community_count: number
|
||||
god_nodes: number
|
||||
extracted_edges: number
|
||||
inferred_edges: number
|
||||
ambiguous_edges: number
|
||||
}
|
||||
|
||||
export interface GraphNode {
|
||||
id: string
|
||||
label: string
|
||||
type: string
|
||||
file?: string
|
||||
line?: number
|
||||
community?: number
|
||||
is_god_node?: boolean
|
||||
}
|
||||
|
||||
export interface GraphQueryResult {
|
||||
answer: string
|
||||
nodes: GraphNode[]
|
||||
confidence: 'EXTRACTED' | 'INFERRED' | 'AMBIGUOUS' | 'NONE'
|
||||
path?: string[]
|
||||
}
|
||||
|
||||
export interface GodNode {
|
||||
id: string
|
||||
label: string
|
||||
type: string
|
||||
in_degree: number
|
||||
out_degree: number
|
||||
file?: string
|
||||
community?: number
|
||||
}
|
||||
|
||||
class GraphifyError extends Error {
|
||||
constructor(message: string, public status: number, public body?: unknown) {
|
||||
super(message)
|
||||
this.name = 'GraphifyError'
|
||||
}
|
||||
}
|
||||
|
||||
export function createGraphifyClient(config: GraphifyConfig) {
|
||||
const baseUrl = config.url.replace(/\/$/, '')
|
||||
const headers: Record<string, string> = {
|
||||
'Content-Type': 'application/json',
|
||||
}
|
||||
if (config.apiKey) {
|
||||
headers['Authorization'] = `Bearer ${config.apiKey}`
|
||||
}
|
||||
|
||||
// --- MCP JSON-RPC call ---
|
||||
async function mcpCall<T = unknown>(tool: string, args: Record<string, unknown> = {}): Promise<T> {
|
||||
const res = await fetch(`${baseUrl}/mcp`, {
|
||||
method: 'POST',
|
||||
headers,
|
||||
body: JSON.stringify({
|
||||
jsonrpc: '2.0',
|
||||
method: 'tools/call',
|
||||
params: { name: tool, arguments: args },
|
||||
id: Date.now(),
|
||||
}),
|
||||
})
|
||||
const text = await res.text()
|
||||
let json: unknown
|
||||
try {
|
||||
json = text ? JSON.parse(text) : null
|
||||
} catch {
|
||||
json = text
|
||||
}
|
||||
if (!res.ok) {
|
||||
throw new GraphifyError(
|
||||
`Graphify MCP ${tool} failed: HTTP ${res.status}`,
|
||||
res.status,
|
||||
json
|
||||
)
|
||||
}
|
||||
// MCP response: { result: { content: [{ type: 'text', text: '...' }] } }
|
||||
const result = (json as { result?: { content?: { type: string; text: string }[] } })?.result
|
||||
if (!result) return json as T
|
||||
const textContent = result.content?.find((c) => c.type === 'text')?.text
|
||||
if (!textContent) return json as T
|
||||
try {
|
||||
return JSON.parse(textContent) as T
|
||||
} catch {
|
||||
return textContent as unknown as T
|
||||
}
|
||||
}
|
||||
|
||||
// --- Graph build (CLI invocation via HTTP trigger if supported) ---
|
||||
// Note: Graphify's MCP server is read-only (query tools). To BUILD a graph,
|
||||
// we either:
|
||||
// a) Shell out to `graphify extract` + `graphify build` in a worker process
|
||||
// b) Call a custom build endpoint (if the Docker image exposes one)
|
||||
// Here we provide a high-level function that the provisioning hook calls.
|
||||
// The actual build is done via a sidecar job (see instance provisioning route).
|
||||
|
||||
// --- Query tools (read-only, exposed by Graphify MCP) ---
|
||||
|
||||
async function queryGraph(question: string, graphPath?: string): Promise<GraphQueryResult> {
|
||||
const args: Record<string, unknown> = { question }
|
||||
if (graphPath) args.graph_path = graphPath
|
||||
return mcpCall<GraphQueryResult>('query_graph', args)
|
||||
}
|
||||
|
||||
async function getNode(nodeId: string, graphPath?: string): Promise<GraphNode> {
|
||||
const args: Record<string, unknown> = { node_id: nodeId }
|
||||
if (graphPath) args.graph_path = graphPath
|
||||
return mcpCall<GraphNode>('get_node', args)
|
||||
}
|
||||
|
||||
async function getNeighbors(nodeId: string, graphPath?: string): Promise<GraphNode[]> {
|
||||
const args: Record<string, unknown> = { node_id: nodeId }
|
||||
if (graphPath) args.graph_path = graphPath
|
||||
return mcpCall<GraphNode[]>('get_neighbors', args)
|
||||
}
|
||||
|
||||
async function getCommunity(communityId: number, graphPath?: string): Promise<{
|
||||
id: number
|
||||
label: string
|
||||
nodes: GraphNode[]
|
||||
}> {
|
||||
const args: Record<string, unknown> = { community_id: communityId }
|
||||
if (graphPath) args.graph_path = graphPath
|
||||
return mcpCall('get_community', args)
|
||||
}
|
||||
|
||||
async function getGodNodes(graphPath?: string): Promise<GodNode[]> {
|
||||
const args: Record<string, unknown> = {}
|
||||
if (graphPath) args.graph_path = graphPath
|
||||
return mcpCall<GodNode[]>('god_nodes', args)
|
||||
}
|
||||
|
||||
async function getGraphStats(graphPath?: string): Promise<GraphStats> {
|
||||
const args: Record<string, unknown> = {}
|
||||
if (graphPath) args.graph_path = graphPath
|
||||
return mcpCall<GraphStats>('graph_stats', args)
|
||||
}
|
||||
|
||||
async function shortestPath(sourceId: string, targetId: string, graphPath?: string): Promise<{
|
||||
path: string[]
|
||||
length: number
|
||||
found: boolean
|
||||
}> {
|
||||
const args: Record<string, unknown> = { source: sourceId, target: targetId }
|
||||
if (graphPath) args.graph_path = graphPath
|
||||
return mcpCall('shortest_path', args)
|
||||
}
|
||||
|
||||
// --- Health check ---
|
||||
async function health(): Promise<{ ok: boolean; version?: string }> {
|
||||
try {
|
||||
const res = await fetch(`${baseUrl}/health`, { headers, signal: AbortSignal.timeout(5000) })
|
||||
if (!res.ok) return { ok: false }
|
||||
const data = await res.json().catch(() => ({ ok: true }))
|
||||
return { ok: true, version: (data as { version?: string }).version }
|
||||
} catch {
|
||||
return { ok: false }
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
mcpCall,
|
||||
queryGraph,
|
||||
getNode,
|
||||
getNeighbors,
|
||||
getCommunity,
|
||||
getGodNodes,
|
||||
getGraphStats,
|
||||
shortestPath,
|
||||
health,
|
||||
}
|
||||
}
|
||||
|
||||
export type GraphifyClient = ReturnType<typeof createGraphifyClient>
|
||||
|
||||
export function createGraphifyClientFromEnv(): GraphifyClient | null {
|
||||
const url = process.env.GRAPHIFY_URL
|
||||
if (!url) return null
|
||||
return createGraphifyClient({
|
||||
url,
|
||||
apiKey: process.env.GRAPHIFY_API_KEY,
|
||||
})
|
||||
}
|
||||
|
||||
// --- Helper: graph path per instance ---
|
||||
// Each tenant's graph is stored at /data/graphify/{instanceId}/graph.json
|
||||
export function graphPathForInstance(instanceId: string): string {
|
||||
return `/data/graphify/${instanceId}/graph.json`
|
||||
}
|
||||
|
||||
// --- Helper: build graph from a Git repo ---
|
||||
// This is a high-level function that triggers a graph build via the Graphify
|
||||
// CLI. In production, this would be a background job (e.g. via a queue or
|
||||
// Dokploy cron). Here we provide the command that should be executed.
|
||||
export function buildGraphCommand(input: {
|
||||
gitRepo: string
|
||||
gitBranch: string
|
||||
outputPath: string // /data/graphify/{instanceId}/graph.json
|
||||
}): string {
|
||||
return [
|
||||
`git clone --depth 1 -b ${input.gitBranch} ${input.gitRepo} /tmp/repo`,
|
||||
`&& graphify extract /tmp/repo --output ${input.outputPath}`,
|
||||
`&& graphify build ${input.outputPath} --update`,
|
||||
`&& graphify cluster ${input.outputPath}`,
|
||||
`&& rm -rf /tmp/repo`,
|
||||
].join(' ')
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,517 @@
|
||||
1→<p align="center">
|
||||
2→ <a href="https://graphify.com"><img src="https://raw.githubusercontent.com/Graphify-Labs/graphify/v8/docs/graphify-logo.png" width="360" height="189" alt="Graphify"/></a>
|
||||
3→</p>
|
||||
4→
|
||||
5→<p align="center">
|
||||
6→ <a href="https://trendshift.io/repositories/25296?utm_source=repository-badge&utm_medium=badge&utm_campaign=badge-repository-25296" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/repositories/25296" alt="Graphify-Labs%2Fgraphify | Trendshift" width="250" height="55"/></a>
|
||||
7→</p>
|
||||
8→
|
||||
9→<div align="center">
|
||||
10→<details><summary><b>Read this in other languages</b></summary>
|
||||
11→
|
||||
12→<a href="README.md">English</a> | <a href="docs/translations/README.zh-CN.md">简体中文</a> | <a href="docs/translations/README.ja-JP.md">日本語</a> | <a href="docs/translations/README.ko-KR.md">한국어</a> | <a href="docs/translations/README.de-DE.md">Deutsch</a> | <a href="docs/translations/README.fr-FR.md">Français</a> | <a href="docs/translations/README.es-ES.md">Español</a> | <a href="docs/translations/README.hi-IN.md">हिन्दी</a> | <a href="docs/translations/README.pt-BR.md">Português</a> | <a href="docs/translations/README.ru-RU.md">Русский</a> | <a href="docs/translations/README.ar-SA.md">العربية</a> | <a href="docs/translations/README.fa-IR.md">فارسی</a> | <a href="docs/translations/README.it-IT.md">Italiano</a> | <a href="docs/translations/README.pl-PL.md">Polski</a> | <a href="docs/translations/README.nl-NL.md">Nederlands</a> | <a href="docs/translations/README.tr-TR.md">Türkçe</a> | <a href="docs/translations/README.uk-UA.md">Українська</a> | <a href="docs/translations/README.vi-VN.md">Tiếng Việt</a> | <a href="docs/translations/README.id-ID.md">Bahasa Indonesia</a> | <a href="docs/translations/README.sv-SE.md">Svenska</a> | <a href="docs/translations/README.el-GR.md">Ελληνικά</a> | <a href="docs/translations/README.ro-RO.md">Română</a> | <a href="docs/translations/README.cs-CZ.md">Čeština</a> | <a href="docs/translations/README.fi-FI.md">Suomi</a> | <a href="docs/translations/README.da-DK.md">Dansk</a> | <a href="docs/translations/README.no-NO.md">Norsk</a> | <a href="docs/translations/README.hu-HU.md">Magyar</a> | <a href="docs/translations/README.th-TH.md">ภาษาไทย</a> | <a href="docs/translations/README.uz-UZ.md">Oʻzbekcha</a> | <a href="docs/translations/README.zh-TW.md">繁體中文</a> | <a href="docs/translations/README.fil-PH.md">Filipino</a> | <a href="docs/translations/README.he-IL.md">עברית</a>
|
||||
13→
|
||||
14→</details>
|
||||
15→</div>
|
||||
16→
|
||||
17→<p align="center">
|
||||
18→ <a href="https://pypi.org/project/graphifyy/"><img src="https://img.shields.io/pypi/v/graphifyy" alt="PyPI"/></a>
|
||||
19→ <a href="https://github.com/Graphify-Labs/graphify/actions/workflows/ci.yml"><img src="https://github.com/Graphify-Labs/graphify/actions/workflows/ci.yml/badge.svg?branch=v8" alt="CI"/></a>
|
||||
20→ <a href="LICENSE"><img src="https://img.shields.io/badge/License-Apache%202.0-blue" alt="License: Apache-2.0"/></a>
|
||||
21→ <a href="https://pepy.tech/project/graphifyy"><img src="https://img.shields.io/pepy/dt/graphifyy?color=blue&label=downloads" alt="Downloads"/></a>
|
||||
22→ <a href="https://docs.graphify.com"><img src="https://img.shields.io/badge/Docs-docs.graphify.com-0b7285?style=flat&logo=readthedocs&logoColor=white" alt="Docs"/></a>
|
||||
23→ <a href="https://app.graphify.com/login"><img src="https://img.shields.io/badge/Graphify%20Cloud-app.graphify.com-118d4f?style=flat&logoColor=white" alt="Graphify Cloud"/></a>
|
||||
24→ <a href="https://discord.gg/graphify"><img src="https://img.shields.io/badge/Discord-Join-5865F2?style=flat&logo=discord&logoColor=white" alt="Discord"/></a>
|
||||
25→ <a href="https://www.youtube.com/@graphifylabs"><img src="https://img.shields.io/badge/YouTube-Graphify%20Labs-FF0000?style=flat&logo=youtube&logoColor=white" alt="YouTube"/></a>
|
||||
26→ <a href="https://www.linkedin.com/company/graphify-labs"><img src="https://img.shields.io/badge/LinkedIn-Graphify%20Labs-0077B5?logo=linkedin" alt="LinkedIn"/></a>
|
||||
27→ <a href="https://www.ycombinator.com/companies/graphify-labs"><img src="https://img.shields.io/badge/Y%20Combinator-S26-F0652F?style=flat&logo=ycombinator&logoColor=white" alt="YC S26"/></a>
|
||||
28→</p>
|
||||
29→
|
||||
30→<p align="center">
|
||||
31→ <b>Cut agent token spend by 80%.</b> Graphify Cloud is always-on memory that governs your agents, keeps code quality high, and proves correctness with formal verification. <a href="https://app.graphify.com/login"><b>Start a free 14-day trial →</b></a>
|
||||
32→</p>
|
||||
33→
|
||||
34→Type `/graphify` in your AI coding assistant and it maps your entire project (code, docs, PDFs, images, videos) into a **knowledge graph** you can **query instead of grepping** through files.
|
||||
35→
|
||||
36→- **Code maps for free, fully local.** Code is parsed with tree-sitter AST: deterministic, no LLM, nothing leaves your machine. (Docs, PDFs, images and video use your assistant's model, or a configured API key, for a semantic pass.)
|
||||
37→- **Every edge is explained.** Each connection is tagged `EXTRACTED` (explicit in the source) or `INFERRED` (resolved by graphify), so you can tell what was read directly from what was inferred.
|
||||
38→- **Not a vector index.** No embeddings, no vector store: a real graph you traverse. Ask a question, trace the path between two things, or explain one concept.
|
||||
39→
|
||||
40→> [!NOTE]
|
||||
41→> **Want this always-on?** [Graphify Cloud](https://app.graphify.com/login) keeps the graph live across your entire SDLC: monorepo and cross-repo support, formal verification, and code review with a bird's-eye view of your SDLC, plus connectors for Sentry, Jira, and more so incidents and tickets sit in the same graph as your code. **[Start a free 14-day trial at app.graphify.com](https://app.graphify.com/login)**.
|
||||
42→
|
||||
43→<p align="center">
|
||||
44→ <img src="https://raw.githubusercontent.com/Graphify-Labs/graphify/v8/docs/graph-hero.png" alt="graphify's interactive graph.html showing the FastAPI codebase as a force-directed knowledge graph with a legend of detected communities" width="900">
|
||||
45→</p>
|
||||
46→<p align="center">
|
||||
47→ <em>The FastAPI codebase mapped by graphify. Every node is a concept, colors are detected communities, and the whole thing is clickable in graph.html.</em>
|
||||
48→</p>
|
||||
49→
|
||||
50→**Get started** (30 seconds). Needs Python 3.10+ and uv (or pipx):
|
||||
51→
|
||||
52→```bash
|
||||
53→uv tool install graphifyy # install the CLI (or: pipx install graphifyy)
|
||||
54→graphify install # detects your assistant and registers the skill
|
||||
55→```
|
||||
56→
|
||||
57→Then, in your AI assistant:
|
||||
58→
|
||||
59→```
|
||||
60→/graphify .
|
||||
61→```
|
||||
62→
|
||||
63→That's it. You get **three files**:
|
||||
64→
|
||||
65→```
|
||||
66→graphify-out/
|
||||
67→├── graph.html open in any browser: click nodes, filter, search
|
||||
68→├── GRAPH_REPORT.md the highlights: key concepts, surprising connections, suggested questions
|
||||
69→└── graph.json the full graph: query it anytime without re-reading your files
|
||||
70→```
|
||||
71→
|
||||
72→The persisted graph includes `graph.schema_version` so integrations can detect
|
||||
73→incompatible format changes, plus `graph.graphify_version` identifying the
|
||||
74→Graphify release that produced it.
|
||||
75→
|
||||
76→**One install, any assistant, any OS.** Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, and 20+ more, on macOS, Linux, and Windows: [pick your platform](#install).
|
||||
77→
|
||||
78→---
|
||||
79→
|
||||
80→## See it in action
|
||||
81→
|
||||
82→<p align="center">
|
||||
83→ <img src="https://raw.githubusercontent.com/Graphify-Labs/graphify/v8/docs/demo-path.svg" alt="graphify path query: a terminal asks for the shortest path between FastAPI and ModelField, and the answer lights up hop by hop across the knowledge graph" width="900">
|
||||
84→</p>
|
||||
85→
|
||||
86→Once the graph is built you query it instead of reading files. Real output, graphify run on the FastAPI codebase shown above:
|
||||
87→
|
||||
88→```text
|
||||
89→$ graphify explain "APIRouter"
|
||||
90→Node: APIRouter
|
||||
91→ Source: routing.py L2210
|
||||
92→ Community: 2
|
||||
93→ Degree: 47
|
||||
94→
|
||||
95→Connections (47):
|
||||
96→ --> RequestValidationError [uses] [INFERRED]
|
||||
97→ --> Dependant [uses] [INFERRED]
|
||||
98→ --> .get() [method] [EXTRACTED]
|
||||
99→ <-- __init__.py [imports] [EXTRACTED]
|
||||
100→ ...
|
||||
101→
|
||||
102→$ graphify path "FastAPI" "ModelField"
|
||||
103→Shortest path (3 hops):
|
||||
104→ FastAPI --uses--> DefaultPlaceholder <--references-- get_request_handler() --references--> ModelField
|
||||
105→```
|
||||
106→
|
||||
107→Every edge carries a **confidence tag** (`EXTRACTED` = explicit in the source, `INFERRED` = derived by resolution), so you can tell what was read directly from what was inferred. `graphify query "<question>"` returns a scoped subgraph for a plain-language question, and `graphify path A B` traces how any two things connect.
|
||||
108→
|
||||
109→---
|
||||
110→
|
||||
111→## What it does
|
||||
112→
|
||||
113→What you get out of the box:
|
||||
114→
|
||||
115→| Capability | What you get |
|
||||
116→|---|---|
|
||||
117→| **God nodes** | The most-connected concepts, so you see what everything flows through |
|
||||
118→| **Communities** | The graph split into subsystems (Leiden), with LLM-free labels |
|
||||
119→| **Cross-file links** | `calls` / `imports` / `inherits` / `mixes_in` resolved across ~40 languages via tree-sitter AST |
|
||||
120→| **Query, path, explain** | Ask a question, trace the path between two things, or explain one concept, all against `graph.json` |
|
||||
121→| **Rationale + doc refs** | `# NOTE:` / `# WHY:` comments and ADR/RFC citations become first-class nodes linked to the code |
|
||||
122→| **Beyond code** | Docs, PDFs, images, and video/audio all map into the same graph |
|
||||
123→| **Local-first** | Code is parsed locally with tree-sitter (no LLM, nothing leaves your machine); only the semantic pass over docs/media calls a backend, and only if you configure one |
|
||||
124→
|
||||
125→> [!TIP]
|
||||
126→> Running this across many repos or a monorepo? [Graphify Cloud](https://app.graphify.com/login) does it continuously and cuts agent token spend by 80%, with cross-repo links, SDLC-wide code review, formal verification, and Sentry/Jira connectors. [Start a free 14-day trial →](https://app.graphify.com/login)
|
||||
127→
|
||||
128→---
|
||||
129→
|
||||
130→## Benchmarks: 0.497 recall@10, 0 LLM credits
|
||||
131→
|
||||
132→| Benchmark | Metric | graphify | Field |
|
||||
133→|---|---|---|---|
|
||||
134→| LOCOMO (n=300) | recall@10 | **0.497** | mem0 0.048, supermemory 0.149 |
|
||||
135→| LOCOMO (n=300) | QA accuracy | 45.3% | supermemory 49.7%, mem0 27.3% |
|
||||
136→| LongMemEval-S (n=50) | QA accuracy | **76%** | tied with dense RAG |
|
||||
137→| ERPNext cross-tool (n=6) | key-fact coverage | **82.0%** | grep/read baseline 70.8% |
|
||||
138→| Graph build | LLM credits | **0** | per-token for most systems |
|
||||
139→
|
||||
140→Every system ran on the same harness with the same model and budgets, scored by a judge blind-validated against a second judge (90.6% agreement, Cohen's kappa 0.81). Full per-system tables, the code-intelligence result, and reproduction commands: **[BENCHMARKS.md](./BENCHMARKS.md)**.
|
||||
141→
|
||||
142→---
|
||||
143→
|
||||
144→## Documentation
|
||||
145→
|
||||
146→Full guides and reference live at **[docs.graphify.com](https://docs.graphify.com)**:
|
||||
147→
|
||||
148→- **[Quickstart](https://docs.graphify.com/quickstart)**: build your first graph
|
||||
149→- **[CLI reference](https://docs.graphify.com/reference/overview)**: every command and flag
|
||||
150→- **[Ask better graph questions](https://docs.graphify.com/guides/querying)**: querying patterns
|
||||
151→- **[Configuration](https://docs.graphify.com/reference/configuration)**: environment variables and tuning
|
||||
152→- **[Supported inputs](https://docs.graphify.com/concepts/supported-inputs)**: languages and file types
|
||||
153→- **[Team workflows](https://docs.graphify.com/guides/team-workflows)** and **[PR review](https://docs.graphify.com/guides/pull-requests)**
|
||||
154→- **[Troubleshooting](https://docs.graphify.com/troubleshooting)** and **[How it works](https://docs.graphify.com/concepts/architecture)**
|
||||
155→
|
||||
156→---
|
||||
157→
|
||||
158→## Prerequisites
|
||||
159→
|
||||
160→| Requirement | Minimum | Check | Install |
|
||||
161→|---|---|---|---|
|
||||
162→| Python | 3.10+ | `python --version` | [python.org](https://www.python.org/downloads/) |
|
||||
163→| uv *(recommended)* | any | `uv --version` | `curl -LsSf https://astral.sh/uv/install.sh \| sh` |
|
||||
164→| pipx *(alternative)* | any | `pipx --version` | `pip install pipx` |
|
||||
165→
|
||||
166→**macOS quick install (Homebrew):**
|
||||
167→```bash
|
||||
168→brew install python@3.12 uv
|
||||
169→```
|
||||
170→
|
||||
171→**Windows quick install:**
|
||||
172→```powershell
|
||||
173→winget install astral-sh.uv
|
||||
174→```
|
||||
175→
|
||||
176→**Ubuntu/Debian:**
|
||||
177→```bash
|
||||
178→sudo apt install python3.12 python3-pip pipx
|
||||
179→# or install uv:
|
||||
180→curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
181→```
|
||||
182→
|
||||
183→---
|
||||
184→
|
||||
185→## Install
|
||||
186→
|
||||
187→> [!IMPORTANT]
|
||||
188→> **Official package:** The PyPI package is `graphifyy` (double-y). Other `graphify*` packages on PyPI are not affiliated. The CLI command is still `graphify`.
|
||||
189→
|
||||
190→The official source repository is [Graphify-Labs/graphify](https://github.com/Graphify-Labs/graphify).
|
||||
191→
|
||||
192→The two-command quickstart is at the top of this README. This section covers the install methods, project-scoped installs, and every supported platform.
|
||||
193→
|
||||
194→**Install methods** (pick one):
|
||||
195→
|
||||
196→```bash
|
||||
197→uv tool install graphifyy # recommended, isolated env (if 'graphify' isn't found after, run: uv tool update-shell)
|
||||
198→pipx install graphifyy # alternative
|
||||
199→pip install graphifyy # may need PATH setup, see Troubleshooting below
|
||||
200→```
|
||||
201→
|
||||
202→Then run `graphify install` once. It detects which assistant you run and registers the skill, so there is no per-assistant setup. Open your AI assistant and type `/graphify .`
|
||||
203→
|
||||
204→To install the assistant skill into the current repository instead of your user
|
||||
205→profile, add `--project`:
|
||||
206→
|
||||
207→```bash
|
||||
208→graphify install --project
|
||||
209→graphify install --project --platform codex
|
||||
210→```
|
||||
211→
|
||||
212→Project-scoped installs write under the current directory, for example
|
||||
213→`.claude/skills/graphify/SKILL.md` or `.agents/skills/graphify/SKILL.md` (plus a
|
||||
214→`references/` sidecar the skill loads on demand), and
|
||||
215→print a `git add` hint for files that can be committed.
|
||||
216→Per-platform commands that support project-scoped installs accept the same flag,
|
||||
217→for example `graphify claude install --project` or `graphify codex install --project`.
|
||||
218→
|
||||
219→> [!TIP]
|
||||
220→> Hitting `command not found`, a `pip`-on-Mac/Windows issue, PowerShell quoting, `uvx` usage, git-hook PATH quirks, or strict mode? See **[Installation](https://docs.graphify.com/installation)** and **[Troubleshooting](https://docs.graphify.com/troubleshooting)**.
|
||||
221→
|
||||
222→<details>
|
||||
223→<summary><b>Pick your platform</b> (20+ assistants, click to expand)</summary>
|
||||
224→
|
||||
225→| Platform | Install command |
|
||||
226→|----------|----------------|
|
||||
227→| Claude Code (Linux/Mac) | `graphify install` |
|
||||
228→| Claude Code (Windows) | `graphify install` (auto-detected) or `graphify install --platform windows` |
|
||||
229→| CodeBuddy | `graphify install --platform codebuddy` |
|
||||
230→| Codex | `graphify install --platform codex` |
|
||||
231→| OpenCode | `graphify install --platform opencode` |
|
||||
232→| Kilo Code | `graphify install --platform kilo` |
|
||||
233→| GitHub Copilot CLI | `graphify install --platform copilot` |
|
||||
234→| VS Code Copilot Chat | `graphify vscode install` |
|
||||
235→| Aider | `graphify install --platform aider` |
|
||||
236→| OpenClaw | `graphify install --platform claw` |
|
||||
237→| Factory Droid | `graphify install --platform droid` |
|
||||
238→| Trae | `graphify install --platform trae` |
|
||||
239→| Trae CN | `graphify install --platform trae-cn` |
|
||||
240→| Gemini CLI | `graphify install --platform gemini` |
|
||||
241→| Hermes | `graphify install --platform hermes` |
|
||||
242→| Kimi Code | `graphify install --platform kimi` |
|
||||
243→| Amp | `graphify amp install` |
|
||||
244→| Agent Skills (cross-framework) | `graphify install --platform agents` (alias `--platform skills`) |
|
||||
245→| Kiro IDE/CLI | `graphify kiro install` |
|
||||
246→| Pi coding agent | `graphify install --platform pi`, plus `graphify pi guard install` for the native guard |
|
||||
247→| Cursor | `graphify cursor install` |
|
||||
248→| Devin CLI | `graphify devin install` |
|
||||
249→| Google Antigravity | `graphify antigravity install` |
|
||||
250→| Google Antigravity (Windows) | `graphify antigravity install` (auto-detected on Windows) |
|
||||
251→
|
||||
252→Codex users also need `multi_agent = true` under `[features]` in `~/.codex/config.toml` for parallel extraction. CodeBuddy uses the same Agent tool and PreToolUse hook mechanism as Claude Code. Factory Droid uses the `Task` tool for parallel subagent dispatch. OpenClaw and Aider use sequential extraction (parallel agent support is still early on those platforms). Trae uses the Agent tool for parallel subagent dispatch and does **not** support `PreToolUse` hooks, so AGENTS.md is the always-on mechanism.
|
||||
253→
|
||||
254→`--platform agents` (alias `--platform skills`) targets the generic cross-framework [Agent-Skills](https://github.com/anthropics/skills) locations: the spec's user-global `~/.agents/skills/` (read by `npx skills` and spec-compliant frameworks) for a global install, and `./.agents/skills/` for a project (`--project`) install. The bare `graphify install` stays single-platform (Claude Code) by design: use the named `agents` platform when you want the skill discoverable by any framework that reads `.agents/skills`.
|
||||
255→
|
||||
256→Pi has no `PreToolUse` hook, so `graphify pi guard install` registers a native Pi extension (via Pi's own `pi install <package directory>`) that runs the installed `graphify hook-guard` before Pi's `read`, `grep`, `find` and search-style `bash` calls. Fresh/stale graph decisions and the `GRAPHIFY_HOOK_STRICT=1` once-per-session indexed-read denial come from that same policy, so Pi matches Claude Code's hook behavior; guidance arrives as a `<system-reminder source="graphify">` steering message. It needs Pi 0.58.4 or newer: earlier versions let a steering message skip the rest of a parallel tool-call batch. The package ships inside the Graphify installation, so install Graphify persistently (`uv tool install graphifyy` or `pipx install graphifyy`, not `uvx`), restart Pi after installing or upgrading, and remove it with `graphify pi guard uninstall`. Only local file targets are inspected; the hook needs `graphify` on an absolute `PATH` entry outside the project, is bounded to a two-second, 256 KiB-in/64 KiB-out call, and fails open. The same package also loads in [Oh My Pi](https://github.com/can1357/oh-my-pi): `omp plugin install "$(graphify pi guard path)"`. The registered path contains the Python version and venv, so re-run `graphify pi guard install` after changing either, and remove the old entry with `pi remove <old path>`.
|
||||
257→
|
||||
258→> Codex uses `$graphify` instead of `/graphify`.
|
||||
259→
|
||||
260→</details>
|
||||
261→
|
||||
262→<details>
|
||||
263→<summary><b>Optional extras</b> (install only what you need)</summary>
|
||||
264→
|
||||
265→| Extra | What it adds | Install |
|
||||
266→|---|---|---|
|
||||
267→| `pdf` | PDF extraction | `uv tool install "graphifyy[pdf]"` |
|
||||
268→| `office` | `.docx` and `.xlsx` support | `uv tool install "graphifyy[office]"` |
|
||||
269→| `google` | Google Sheets rendering | `uv tool install "graphifyy[google]"` |
|
||||
270→| `video` | Video/audio transcription (faster-whisper + yt-dlp) | `uv tool install "graphifyy[video]"` |
|
||||
271→| `mcp` | MCP stdio server | `uv tool install "graphifyy[mcp]"` |
|
||||
272→| `watch` | Auto-rebuild on file changes (`graphify watch`) | `uv tool install "graphifyy[watch]"` |
|
||||
273→| `neo4j` | Neo4j push support | `uv tool install "graphifyy[neo4j]"` |
|
||||
274→| `falkordb` | FalkorDB push support | `uv tool install "graphifyy[falkordb]"` |
|
||||
275→| `svg` | SVG graph export | `uv tool install "graphifyy[svg]"` |
|
||||
276→| `leiden` | Leiden community detection (graspologic on Python < 3.13; native backend on 3.13+) | `uv tool install "graphifyy[leiden]"` |
|
||||
277→| `ollama` | Ollama local inference | `uv tool install "graphifyy[ollama]"` |
|
||||
278→| `openai` | OpenAI / OpenAI-compatible APIs | `uv tool install "graphifyy[openai]"` |
|
||||
279→| `gemini` | Google Gemini API | `uv tool install "graphifyy[gemini]"` |
|
||||
280→| `anthropic` | Anthropic Claude API (`--backend claude`, uses `ANTHROPIC_API_KEY`) | `uv tool install "graphifyy[anthropic]"` |
|
||||
281→| `bedrock` | AWS Bedrock (uses IAM, no API key) | `uv tool install "graphifyy[bedrock]"` |
|
||||
282→| `azure` | Azure OpenAI Service (`--backend azure`, uses `AZURE_OPENAI_API_KEY` + `AZURE_OPENAI_ENDPOINT`) | `uv tool install "graphifyy[openai]"` |
|
||||
283→| `sql` | SQL schema extraction | `uv tool install "graphifyy[sql]"` |
|
||||
284→| `postgres` | Live PostgreSQL introspection (`--postgres DSN`) | `uv tool install "graphifyy[postgres]"` |
|
||||
285→| `dm` | BYOND DreamMaker `.dm`/`.dme` AST extraction (may need a C compiler + `python3-dev` if no wheel matches your platform) | `uv tool install "graphifyy[dm]"` |
|
||||
286→| `terraform` | Terraform / HCL `.tf`/`.tfvars`/`.hcl` AST extraction | `uv tool install "graphifyy[terraform]"` |
|
||||
287→| `pascal` | Pascal / Delphi `.pas`/`.dpr`/`.dpk`/`.inc` AST extraction (more accurate `calls`/`inherits` edges; falls back to a regex extractor when absent) | `uv tool install "graphifyy[pascal]"` |
|
||||
288→| `ocaml` | OCaml `.ml`/`.mli` AST extraction | `uv tool install "graphifyy[ocaml]"` |
|
||||
289→| `commonlisp` | Common Lisp `.lisp`/`.cl`/`.lsp`/`.asd` AST extraction | `uv tool install "graphifyy[commonlisp]"` |
|
||||
290→| `robot` | Robot Framework `.robot`/`.resource` extraction (suites, test cases, keywords, keyword-call and resource/library import edges) | `uv tool install "graphifyy[robot]"` |
|
||||
291→| `chinese` | Chinese query segmentation (jieba) | `uv tool install "graphifyy[chinese]"` |
|
||||
292→| `all` | Everything above | `uv tool install "graphifyy[all]"` |
|
||||
293→
|
||||
294→</details>
|
||||
295→
|
||||
296→---
|
||||
297→
|
||||
298→## Make your assistant always use the graph
|
||||
299→
|
||||
300→Run this once in your project after building a graph:
|
||||
301→
|
||||
302→Run `graphify <platform> install` once in your project, for example `graphify claude install` or `graphify codex install` (or `graphify install --platform <name>`).
|
||||
303→
|
||||
304→This writes a small config file that tells your assistant to consult the knowledge graph for codebase questions, preferring scoped queries like `graphify query "<question>"` over reading the full report or grepping raw files.
|
||||
305→
|
||||
306→- **Hook platforms** (Claude Code, Gemini CLI): a hook fires automatically before search-style tool calls (and, on Claude Code, before reading source files one by one via the Read/Glob tools) and nudges your assistant toward the graph path.
|
||||
307→- **Instruction-file platforms** (Codex, OpenCode, Cursor, etc.): persistent instruction files (`AGENTS.md`, `.cursor/rules/`, etc.) provide the same query-first guidance.
|
||||
308→
|
||||
309→`GRAPH_REPORT.md` is still available for broad architecture review.
|
||||
310→
|
||||
311→Exactly which files each platform writes (CodeBuddy's `CODEBUDDY.md` + `PreToolUse` hooks, Codex's `AGENTS.md`, Kilo's native `.kilo` plugin, Cursor's `alwaysApply` rule, and so on) is covered in **[Always-on setup](https://docs.graphify.com/guides/always-on)**.
|
||||
312→
|
||||
313→To remove graphify from all platforms at once: `graphify uninstall` (add `--purge` to also delete `graphify-out/`). Or use the per-platform command (e.g. `graphify claude uninstall`).
|
||||
314→
|
||||
315→### CLI skills or MCP instructions?
|
||||
316→
|
||||
317→The instructions installed by `graphify install` and those supplied with a Graphify MCP connection describe different ways to query a graph:
|
||||
318→
|
||||
319→| Setup | Guidance to use | Query access |
|
||||
320→|---|---|---|
|
||||
321→| Local CLI and installed assistant skill | The platform instructions written by `graphify install` | Run `graphify query`, `graphify path`, and `graphify explain` against the local graph (`graphify-out/` by default). |
|
||||
322→| Connected Graphify MCP server | The connection's instructions and the tools listed by that server | Call the listed MCP tools against the graph served by that connection. Tool names and descriptions come from the server. |
|
||||
323→
|
||||
324→Both encourage scoped graph queries before broad source searches. Choose the instructions that match the tools your assistant can actually access; neither block establishes a universal precedence rule for your assistant's instruction files. If you use both integrations, identify which graph each queries and choose a primary query path instead of copying two unconditional instruction blocks into `AGENTS.md`.
|
||||
325→
|
||||
326→`graphify install` installs the local assistant integration; it does not establish an MCP connection. An MCP client does not need to run local CLI queries to use its connected server. A locally hosted server still needs its own Graphify installation and graph, while a hosted connection may serve a graph that is not present in the client's working directory. If the expected tools are missing, check the relevant CLI installation or MCP connection rather than treating the other setup's instructions as interchangeable.
|
||||
327→
|
||||
328→---
|
||||
329→
|
||||
330→## What's in the report
|
||||
331→
|
||||
332→`GRAPH_REPORT.md` summarizes the god nodes, communities, and key paths for broad architecture review. How the graph is built and what it contains: **[How graphify works](https://docs.graphify.com/concepts/architecture)**.
|
||||
333→
|
||||
334→---
|
||||
335→
|
||||
336→## What files it handles: ~40 languages
|
||||
337→
|
||||
338→graphify parses ~40 programming languages locally with tree-sitter AST, and maps docs, PDFs, images, and audio/video through an optional semantic pass. Full list: **[Supported inputs](https://docs.graphify.com/concepts/supported-inputs)**.
|
||||
339→
|
||||
340→---
|
||||
341→
|
||||
342→## Common commands
|
||||
343→
|
||||
344→```bash
|
||||
345→/graphify . # build graph for current folder
|
||||
346→/graphify ./docs --update # re-extract only changed files
|
||||
347→/graphify . --cluster-only # rerun clustering without re-extracting
|
||||
348→/graphify . --cluster-only --resolution 1.5 # more granular communities
|
||||
349→/graphify . --cluster-only --exclude-hubs 99 # suppress utility super-hubs from god-node rankings
|
||||
350→/graphify . --no-viz # skip the HTML, just the report + JSON
|
||||
351→/graphify . --wiki # build a markdown wiki from the graph
|
||||
352→graphify export callflow-html # Mermaid architecture/call-flow HTML (auto-regenerates on every git commit if hook is installed)
|
||||
353→
|
||||
354→/graphify query "what connects auth to the database?"
|
||||
355→/graphify path "UserService" "DatabasePool"
|
||||
356→/graphify explain "RateLimiter"
|
||||
357→
|
||||
358→/graphify add https://arxiv.org/abs/1706.03762 # fetch a paper and add it
|
||||
359→/graphify add <youtube-url> # transcribe and add a video
|
||||
360→
|
||||
361→graphify hook install # auto-rebuild on commit + branch checkout (run `graphify update .` after `git pull`: see "Recommended workflow" below)
|
||||
362→graphify merge-graphs a.json b.json # combine two graphs
|
||||
363→
|
||||
364→graphify prs # PR dashboard: CI state, review status, worktree mapping
|
||||
365→graphify prs 42 # deep dive on PR #42 with graph impact
|
||||
366→graphify prs --triage # AI ranks your review queue (uses whatever backend is configured)
|
||||
367→graphify prs --conflicts # PRs sharing graph communities: merge-order risk
|
||||
368→```
|
||||
369→
|
||||
370→See the [full command reference](#full-command-reference) below.
|
||||
371→
|
||||
372→---
|
||||
373→
|
||||
374→## Labeling and rendering limits
|
||||
375→
|
||||
376→- **`--batch-size`**: 100 communities per labeling call by default, sized for a ~16k-token context (~150 tokens/community). Use `--batch-size 40` for an 8k window. Context overflow is not split-retried; failed batches keep hub-derived names.
|
||||
377→- **`--missing-only`**: `label --missing-only` keeps existing labels and names only unnamed / `Community N` entries. Use `label` (full relabel) to refresh names after the community set changes.
|
||||
378→- **`.graphify_labels.json.sig`**: records the community membership signature; labels survive a re-cluster only while it matches.
|
||||
379→- **`export html`**: 5,000-node default; above it graphify renders an aggregated community view. Use `--node-limit N`. `GRAPHIFY_VIZ_NODE_LIMIT` / `.graphifyrc` `viz_node_limit=N` apply to `cluster-only`, `update`, `watch`, and hooks, not `export html`.
|
||||
380→- **Leiden fallback**: without the `leiden` extra, clustering silently uses networkx Louvain. Switching later reshuffles every community, so plan a full relabel.
|
||||
381→
|
||||
382→---
|
||||
383→
|
||||
384→## Ignoring files
|
||||
385→
|
||||
386→graphify honors `.gitignore` and supports `--exclude` patterns and a project `.graphifyignore`. Details: **[Configuration](https://docs.graphify.com/reference/configuration)**.
|
||||
387→
|
||||
388→
|
||||
389→## Project configuration
|
||||
390→
|
||||
391→Create a `.graphifyrc` in the scan root for settings that belong to the project rather than to one run. One `key=value` per line; lines beginning with `#` are comments.
|
||||
392→
|
||||
393→**Ambiguous extensions.** Some extensions mean different languages in different projects: `.inc` is PHP on pfSense, Pascal in a Delphi tree, SQL or assembly elsewhere; `.h` is C or C++; `.m` is Objective-C or MATLAB. graphify has to pick one global default, and when it picks wrong the file does not fail: it parses as the wrong language and yields a handful of incidental nodes, so the graph looks populated while the real symbols are missing. Declare what the extension means in your repo:
|
||||
394→
|
||||
395→```
|
||||
396→# .graphifyrc
|
||||
397→# A language name:
|
||||
398→language.inc=php
|
||||
399→# Or an extension graphify already knows:
|
||||
400→language.tpl=.ts
|
||||
401→# Baked into the git hooks (see Team setup):
|
||||
402→viz_node_limit=0
|
||||
403→```
|
||||
404→
|
||||
405→The declaration flows through classification, extractor selection, grammar and resolution, imports, `graphify watch`, and the AST cache (a file re-parsed under a different language never reuses the old entry), and the same `.graphifyrc` is read by `extract`, `update`, the hooks, the MCP server, and the `/graphify` skill. A typo is reported once on stderr and the scan continues with the defaults. How declarations interact with caching, incremental rebuilds, and import resolution: **[Configuration](https://docs.graphify.com/reference/configuration)**.
|
||||
406→
|
||||
407→---
|
||||
408→
|
||||
409→## Team setup
|
||||
410→
|
||||
411→Commit or share the graph so your whole team queries the same context, and review pull requests with graph context. See **[Share context with your team](https://docs.graphify.com/guides/team-workflows)** and **[Review pull requests](https://docs.graphify.com/guides/pull-requests)**.
|
||||
412→
|
||||
413→---
|
||||
414→
|
||||
415→## Using the graph directly
|
||||
416→
|
||||
417→Beyond your AI assistant, query `graph.json` straight from the CLI with `graphify query`, `graphify path`, and `graphify explain`. A name that matches several nodes is refused with the candidates listed rather than guessed. Scripts can read the outcome from the exit code: `0` an answer, `3` an ambiguous name, `4` no matching node. See **[Ask better graph questions](https://docs.graphify.com/guides/querying)** and the **[query reference](https://docs.graphify.com/reference/query)**.
|
||||
418→
|
||||
419→---
|
||||
420→
|
||||
421→## Environment variables
|
||||
422→
|
||||
423→Backends, API keys, hook behavior, and tuning are controlled by environment variables. Full table: **[Configuration](https://docs.graphify.com/reference/configuration)**.
|
||||
424→
|
||||
425→- **Claude CLI model**: `GRAPHIFY_CLAUDE_CLI_MODEL` overrides the model for the `claude-cli` backend (default: Opus). `haiku` or `sonnet` are usually enough for community naming; the semantic extraction pass benefits from a larger model.
|
||||
426→
|
||||
427→---
|
||||
428→
|
||||
429→## Privacy
|
||||
430→
|
||||
431→- **Code files**: processed locally via tree-sitter. Nothing leaves your machine. A code-only corpus requires no API key: `graphify extract` runs fully offline. On a mixed repo, add `--code-only` to index just the code and skip the docs/PDFs/images that would otherwise need an LLM.
|
||||
432→- **Video / audio**: transcribed locally with faster-whisper. Nothing leaves your machine.
|
||||
433→- **Docs, PDFs, images**: sent to your AI assistant for semantic extraction (via the `/graphify` skill, using whatever model your IDE session runs). Headless `graphify extract` requires `GEMINI_API_KEY` / `GOOGLE_API_KEY` (Gemini), `MOONSHOT_API_KEY` (Kimi), `ANTHROPIC_API_KEY` (Claude), `OPENAI_API_KEY` (OpenAI), `DEEPSEEK_API_KEY` (DeepSeek), a running Ollama instance (`OLLAMA_BASE_URL`), AWS credentials via the standard provider chain (Bedrock - no API key needed, uses IAM), or the `claude` CLI binary (Claude Code - no API key needed, uses your Claude subscription). The `--dedup-llm` flag uses the same key.
|
||||
434→- **Data residency**: `graphify extract` auto-detects which provider to use based on which API key is set (priority: Gemini → Kimi → Claude → OpenAI → DeepSeek → Azure → Bedrock → Ollama). When it auto-detects, it prints the exact environment variable that chose the provider, so a run is never a surprise. To choose explicitly, pass `--backend`, or set `GRAPHIFY_BACKEND=<name>`; set `GRAPHIFY_BACKEND=none` to disable all LLM backends (semantic extraction and the `claude -p` labeling fallback) and keep a code-only graph. For code with data-residency requirements, use `GRAPHIFY_BACKEND=ollama` / `--backend ollama` (fully local). Kimi (`MOONSHOT_API_KEY`) routes to Moonshot AI servers in China.
|
||||
435→- **No telemetry**, no usage tracking, no analytics.
|
||||
436→- **Query logging**: every `graphify query`, `graphify path`, `graphify explain`, and MCP `query_graph` call is logged to `~/.cache/graphify-queries.log` in JSON Lines format (timestamp, question, corpus, nodes returned, duration). Full subgraph responses are **not** stored by default. Set `GRAPHIFY_QUERY_LOG_DISABLE=1` to opt out, or `GRAPHIFY_QUERY_LOG=/dev/null` to silence without disabling the code path.
|
||||
437→
|
||||
438→---
|
||||
439→
|
||||
440→## Troubleshooting
|
||||
441→
|
||||
442→Common install and extraction issues and their fixes: **[Troubleshooting](https://docs.graphify.com/troubleshooting)**.
|
||||
443→
|
||||
444→---
|
||||
445→
|
||||
446→## Full command reference
|
||||
447→
|
||||
448→Every command and flag, with examples: **[CLI reference](https://docs.graphify.com/reference/overview)**.
|
||||
449→
|
||||
450→---
|
||||
451→
|
||||
452→## Learn more
|
||||
453→
|
||||
454→- [docs.graphify.com](https://docs.graphify.com): full documentation: guides, command reference, and integrations
|
||||
455→- [How it works](docs/how-it-works.md): the extraction pipeline, community detection, confidence scoring, benchmarks
|
||||
456→- [ARCHITECTURE.md](ARCHITECTURE.md): module breakdown, how to add a language
|
||||
457→- [Optional integrations](docs/docker-mcp-sqlite.md): Docker MCP Toolkit + SQLite
|
||||
458→- [The Memory Layer](https://safishamsi.gumroad.com/l/qetvlo): the book on the ideas behind graphify, the architecture end to end
|
||||
459→
|
||||
460→---
|
||||
461→
|
||||
462→## Graphify Cloud
|
||||
463→
|
||||
464→[**Graphify Cloud**](https://app.graphify.com/login) is the always-on layer built on top of graphify. Instead of a graph you rebuild on demand per folder, it keeps one live graph across your entire software development lifecycle:
|
||||
465→
|
||||
466→- **80% fewer tokens**: always-on memory means your agents stop re-reading and re-explaining the codebase every session.
|
||||
467→- **Monorepo and cross-repo**: one connected graph across every service and repository, not a graph per folder.
|
||||
468→- **Formal verification**: check architectural and dependency invariants against the live graph.
|
||||
469→- **Code review with a bird's-eye view of your SDLC**: see how a change ripples across the whole system before you merge.
|
||||
470→- **SDLC connectors**: pull in Sentry, Jira, and more, so incidents, tickets, and code live in one graph.
|
||||
471→- **Always-on**: updates continuously in the background across code, docs, and meetings.
|
||||
472→
|
||||
473→**[Start a free 14-day trial at app.graphify.com →](https://app.graphify.com/login)**
|
||||
474→
|
||||
475→---
|
||||
476→
|
||||
477→## Contributing
|
||||
478→
|
||||
479→Contributions are welcome. See **[CONTRIBUTING.md](CONTRIBUTING.md)** for the development setup, the test and CI-parity commands, the git workflow, and what makes a strong contribution (worked examples and extraction bug reports are the most useful). Architecture and how to add a language: [ARCHITECTURE.md](ARCHITECTURE.md).
|
||||
480→
|
||||
481→New here? Say hi on [Discord](https://discord.gg/graphify) or in [GitHub Discussions](https://github.com/Graphify-Labs/graphify/discussions).
|
||||
482→
|
||||
483→---
|
||||
484→
|
||||
485→## Contributors
|
||||
486→
|
||||
487→<a href="https://github.com/Graphify-Labs/graphify/graphs/contributors">
|
||||
488→ <img src="https://contrib.rocks/image?repo=Graphify-Labs/graphify" alt="graphify contributors" />
|
||||
489→</a>
|
||||
490→
|
||||
491→Made with [contrib.rocks](https://contrib.rocks).
|
||||
492→
|
||||
493→---
|
||||
494→
|
||||
495→## Translations
|
||||
496→
|
||||
497→The README is available in 32 languages. Use the language switcher at the top of this file to read it in yours, or browse [`docs/translations/`](docs/translations/). To improve a translation or add a new one, open a pull request against the matching file there.
|
||||
498→
|
||||
499→---
|
||||
500→
|
||||
501→## Building on graphify
|
||||
502→
|
||||
503→Building something in the graphify ecosystem? That is encouraged. If your project uses "graphify" in its name (for example `graphify-dashboard` or `graphify-action`), please add a short note to your README clarifying that it is community-built and not affiliated with or endorsed by Graphify Labs. "graphify" and the graphify logo are marks of Graphify Labs; please do not use them in a way that implies official status.
|
||||
504→
|
||||
505→---
|
||||
506→
|
||||
507→## Community and links
|
||||
508→
|
||||
509→<p align="center">
|
||||
510→ <a href="https://graphify.com"><img src="https://img.shields.io/badge/Website-graphify.com-4c1?style=flat&logo=googlechrome&logoColor=white" alt="Website"/></a>
|
||||
511→ <a href="https://discord.gg/graphify"><img src="https://img.shields.io/badge/Discord-Join-5865F2?style=flat&logo=discord&logoColor=white" alt="Discord"/></a>
|
||||
512→ <a href="https://x.com/graphify"><img src="https://img.shields.io/badge/X-graphify-000000?logo=x&logoColor=white" alt="X"/></a>
|
||||
513→ <a href="https://www.youtube.com/@graphifylabs"><img src="https://img.shields.io/badge/YouTube-Graphify%20Labs-FF0000?style=flat&logo=youtube&logoColor=white" alt="YouTube"/></a>
|
||||
514→ <a href="https://github.com/sponsors/safishamsi"><img src="https://img.shields.io/badge/sponsor-safishamsi-ea4aaa?logo=github-sponsors" alt="Sponsor"/></a>
|
||||
515→ <a href="https://safishamsi.gumroad.com/l/qetvlo"><img src="https://img.shields.io/badge/Book-The%20Memory%20Layer-2ea44f?style=flat&logo=gitbook&logoColor=white" alt="The Memory Layer"/></a>
|
||||
516→</p>
|
||||
517→
|
||||
Executable
+467
@@ -0,0 +1,467 @@
|
||||
Initializing deployment
|
||||
Cloning Repo github.com/cetinmustafa83/aos.git to /etc/dokploy/applications/dfm-aos-lgbcnc/code: ✅
|
||||
Cloning into '/etc/dokploy/applications/dfm-aos-lgbcnc/code'...
|
||||
remote: Enumerating objects: 1879, done.
|
||||
remote: Counting objects: 0% (1/1879)
remote: Counting objects: 1% (19/1879)
remote: Counting objects: 2% (38/1879)
remote: Counting objects: 3% (57/1879)
remote: Counting objects: 4% (76/1879)
remote: Counting objects: 5% (94/1879)
remote: Counting objects: 6% (113/1879)
remote: Counting objects: 7% (132/1879)
remote: Counting objects: 8% (151/1879)
remote: Counting objects: 9% (170/1879)
remote: Counting objects: 10% (188/1879)
remote: Counting objects: 11% (207/1879)
remote: Counting objects: 12% (226/1879)
remote: Counting objects: 13% (245/1879)
remote: Counting objects: 14% (264/1879)
remote: Counting objects: 15% (282/1879)
remote: Counting objects: 16% (301/1879)
remote: Counting objects: 17% (320/1879)
remote: Counting objects: 18% (339/1879)
remote: Counting objects: 19% (358/1879)
remote: Counting objects: 20% (376/1879)
remote: Counting objects: 21% (395/1879)
remote: Counting objects: 22% (414/1879)
remote: Counting objects: 23% (433/1879)
remote: Counting objects: 24% (451/1879)
remote: Counting objects: 25% (470/1879)
remote: Counting objects: 26% (489/1879)
remote: Counting objects: 27% (508/1879)
remote: Counting objects: 28% (527/1879)
remote: Counting objects: 29% (545/1879)
remote: Counting objects: 30% (564/1879)
remote: Counting objects: 31% (583/1879)
remote: Counting objects: 32% (602/1879)
remote: Counting objects: 33% (621/1879)
remote: Counting objects: 34% (639/1879)
remote: Counting objects: 35% (658/1879)
remote: Counting objects: 36% (677/1879)
remote: Counting objects: 37% (696/1879)
remote: Counting objects: 38% (715/1879)
remote: Counting objects: 39% (733/1879)
remote: Counting objects: 40% (752/1879)
remote: Counting objects: 41% (771/1879)
remote: Counting objects: 42% (790/1879)
remote: Counting objects: 43% (808/1879)
remote: Counting objects: 44% (827/1879)
remote: Counting objects: 45% (846/1879)
remote: Counting objects: 46% (865/1879)
remote: Counting objects: 47% (884/1879)
remote: Counting objects: 48% (902/1879)
remote: Counting objects: 49% (921/1879)
remote: Counting objects: 50% (940/1879)
remote: Counting objects: 51% (959/1879)
remote: Counting objects: 52% (978/1879)
remote: Counting objects: 53% (996/1879)
remote: Counting objects: 54% (1015/1879)
remote: Counting objects: 55% (1034/1879)
remote: Counting objects: 56% (1053/1879)
remote: Counting objects: 57% (1072/1879)
remote: Counting objects: 58% (1090/1879)
remote: Counting objects: 59% (1109/1879)
remote: Counting objects: 60% (1128/1879)
remote: Counting objects: 61% (1147/1879)
remote: Counting objects: 62% (1165/1879)
remote: Counting objects: 63% (1184/1879)
remote: Counting objects: 64% (1203/1879)
remote: Counting objects: 65% (1222/1879)
remote: Counting objects: 66% (1241/1879)
remote: Counting objects: 67% (1259/1879)
remote: Counting objects: 68% (1278/1879)
remote: Counting objects: 69% (1297/1879)
remote: Counting objects: 70% (1316/1879)
remote: Counting objects: 71% (1335/1879)
remote: Counting objects: 72% (1353/1879)
remote: Counting objects: 73% (1372/1879)
remote: Counting objects: 74% (1391/1879)
remote: Counting objects: 75% (1410/1879)
remote: Counting objects: 76% (1429/1879)
remote: Counting objects: 77% (1447/1879)
remote: Counting objects: 78% (1466/1879)
remote: Counting objects: 79% (1485/1879)
remote: Counting objects: 80% (1504/1879)
remote: Counting objects: 81% (1522/1879)
remote: Counting objects: 82% (1541/1879)
remote: Counting objects: 83% (1560/1879)
remote: Counting objects: 84% (1579/1879)
remote: Counting objects: 85% (1598/1879)
remote: Counting objects: 86% (1616/1879)
remote: Counting objects: 87% (1635/1879)
remote: Counting objects: 88% (1654/1879)
remote: Counting objects: 89% (1673/1879)
remote: Counting objects: 90% (1692/1879)
remote: Counting objects: 91% (1710/1879)
remote: Counting objects: 92% (1729/1879)
remote: Counting objects: 93% (1748/1879)
remote: Counting objects: 94% (1767/1879)
remote: Counting objects: 95% (1786/1879)
remote: Counting objects: 96% (1804/1879)
remote: Counting objects: 97% (1823/1879)
remote: Counting objects: 98% (1842/1879)
remote: CouLine truncated
|
||||
remote: Compressing objects: 0% (1/1408)
remote: Compressing objects: 1% (15/1408)
remote: Compressing objects: 2% (29/1408)
remote: Compressing objects: 3% (43/1408)
remote: Compressing objects: 4% (57/1408)
remote: Compressing objects: 5% (71/1408)
remote: Compressing objects: 6% (85/1408)
remote: Compressing objects: 7% (99/1408)
remote: Compressing objects: 8% (113/1408)
remote: Compressing objects: 9% (127/1408)
remote: Compressing objects: 10% (141/1408)
remote: Compressing objects: 11% (155/1408)
remote: Compressing objects: 12% (169/1408)
remote: Compressing objects: 13% (184/1408)
remote: Compressing objects: 14% (198/1408)
remote: Compressing objects: 15% (212/1408)
remote: Compressing objects: 16% (226/1408)
remote: Compressing objects: 17% (240/1408)
remote: Compressing objects: 18% (254/1408)
remote: Compressing objects: 19% (268/1408)
remote: Compressing objects: 20% (282/1408)
remote: Compressing objects: 21% (296/1408)
remote: Compressing objects: 22% (310/1408)
remote: Compressing objects: 23% (324/1408)
remote: Compressing objects: 24% (338/1408)
remote: Compressing objects: 25% (352/1408)
remote: Compressing objects: 26% (367/1408)
remote: Compressing objects: 27% (381/1408)
remote: Compressing objects: 28% (395/1408)
remote: Compressing objects: 29% (409/1408)
remote: Compressing objects: 30% (423/1408)
remote: Compressing objects: 31% (437/1408)
remote: Compressing objects: 32% (451/1408)
remote: Compressing objects: 33% (465/1408)
remote: Compressing objects: 34% (479/1408)
remote: Compressing objects: 35% (493/1408)
remote: Compressing objects: 36% (507/1408)
remote: Compressing objects: 37% (521/1408)
remote: Compressing objects: 38% (536/1408)
remote: Compressing objects: 39% (550/1408)
remote: Compressing objects: 40% (564/1408)
remote: Compressing objects: 41% (578/1408)
remote: Compressing objects: 42% (592/1408)
remote: Compressing objects: 43% (606/1408)
remote: Compressing objects: 44% (620/1408)
remote: Compressing objects: 45% (634/1408)
remote: Compressing objects: 46% (648/1408)
remote: Compressing objects: 47% (662/1408)
remote: Compressing objects: 48% (676/1408)
remote: Compressing objects: 49% (690/1408)
remote: Compressing objects: 50% (704/1408)
remote: Compressing objects: 51% (719/1408)
remote: Compressing objects: 52% (733/1408)
remote: Compressing objects: 53% (747/1408)
remote: Compressing objects: 54% (761/1408)
remote: Compressing objects: 55% (775/1408)
remote: Compressing objects: 56% (789/1408)
remote: Compressing objects: 57% (803/1408)
remote: Compressing objects: 58% (817/1408)
remote: Compressing objects: 59% (831/1408)
remote: Compressing objects: 60% (845/1408)
remote: Compressing objects: 61% (859/1408)
remote: Compressing objects: 62% (873/1408)
remote: Compressing objects: 63% (888/1408)
remote: Compressing objects: 64% (902/1408)
remote: Compressing objects: 65% (916/1408)
remote: Compressing objects: 66% (930/1408)
remote: Compressing objects: 67% (944/1408)
remote: Compressing objects: 68% (958/1408)
remote: Compressing objects: 69% (972/1408)
remote: Compressing objects: 70% (986/1408)
remote: Compressing objects: 71% (1000/1408)
remote: Compressing objects: 72% (1014/1408)
remote: Compressing objects: 73% (1028/1408)
remote: Compressing objects: 74% (1042/1408)
remote: Compressing objects: 75% (1056/1408)
remote: Compressing objects: 76% (1071/1408)
remote: Compressing objects: 77% (1085/1408)
remote: Compressing objects: 78% (1099/1408)
remote: Compressing objects: 79% (1113/1408)
remote: Compressing objects: 80% (1127/1408)
remote: Compressing objects: 81% (1141/1408)
remote: Compressing objects: 82% (1155/1408)
remote: Compressing objects: 83% (1169/1408)
remote: Compressing objects: 84% (1183/1408)
remote: Compressing objects: 85% (1197/1408)
remote: Compressing objects: 86% (1211/1408)
remote: Compressing objects: 87% (1225/1408)
remote: Compressing objects: 88% (1240/1408)
remote: Compressing objects: 89% (1254/1408)
remote: Compressing objects: 90% (1268/1408)
remote: Compressing objects: 91% (1282/1408)
remote: Compressing objects: 92% (1296/1408)
remote: Compressing objects: 93% (1310/1408)
remLine truncated
|
||||
Receiving objects: 0% (1/1879)
Receiving objects: 1% (19/1879)
Receiving objects: 2% (38/1879)
Receiving objects: 3% (57/1879)
Receiving objects: 4% (76/1879)
Receiving objects: 5% (94/1879)
Receiving objects: 6% (113/1879)
Receiving objects: 7% (132/1879)
Receiving objects: 8% (151/1879)
Receiving objects: 9% (170/1879)
Receiving objects: 10% (188/1879)
Receiving objects: 11% (207/1879)
Receiving objects: 12% (226/1879)
Receiving objects: 13% (245/1879)
Receiving objects: 14% (264/1879)
Receiving objects: 15% (282/1879)
Receiving objects: 16% (301/1879)
Receiving objects: 17% (320/1879)
Receiving objects: 18% (339/1879)
Receiving objects: 19% (358/1879)
Receiving objects: 20% (376/1879)
Receiving objects: 21% (395/1879)
Receiving objects: 22% (414/1879)
Receiving objects: 23% (433/1879)
Receiving objects: 24% (451/1879)
Receiving objects: 25% (470/1879)
Receiving objects: 26% (489/1879)
Receiving objects: 27% (508/1879)
Receiving objects: 28% (527/1879)
Receiving objects: 29% (545/1879)
Receiving objects: 30% (564/1879)
Receiving objects: 31% (583/1879)
Receiving objects: 32% (602/1879)
Receiving objects: 33% (621/1879)
Receiving objects: 34% (639/1879)
Receiving objects: 35% (658/1879)
Receiving objects: 36% (677/1879)
Receiving objects: 37% (696/1879)
Receiving objects: 38% (715/1879)
Receiving objects: 39% (733/1879)
Receiving objects: 40% (752/1879)
Receiving objects: 41% (771/1879)
Receiving objects: 42% (790/1879)
Receiving objects: 43% (808/1879)
Receiving objects: 44% (827/1879), 13.46 MiB | 26.90 MiB/s
Receiving objects: 45% (846/1879), 13.46 MiB | 26.90 MiB/s
Receiving objects: 46% (865/1879), 13.46 MiB | 26.90 MiB/s
Receiving objects: 47% (884/1879), 13.46 MiB | 26.90 MiB/s
Receiving objects: 48% (902/1879), 13.46 MiB | 26.90 MiB/s
Receiving objects: 49% (921/1879), 13.46 MiB | 26.90 MiB/s
Receiving objects: 50% (940/1879), 13.46 MiB | 26.90 MiB/s
Receiving objects: 51% (959/1879), 13.46 MiB | 26.90 MiB/s
Receiving objects: 51% (974/1879), 29.06 MiB | 29.05 MiB/s
Receiving objects: 52% (978/1879), 29.06 MiB | 29.05 MiB/s
Receiving objects: 53% (996/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 54% (1015/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 55% (1034/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 56% (1053/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 57% (1072/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 58% (1090/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 59% (1109/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 60% (1128/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 61% (1147/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 62% (1165/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 63% (1184/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 64% (1203/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 65% (1222/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 66% (1241/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 67% (1259/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 68% (1278/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 69% (1297/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 70% (1316/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 71% (1335/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 72% (1353/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 73% (1372/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 74% (1391/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 75% (1410/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 76% (1429/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 77% (1447/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 78% (1466/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 79% (1485/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 80% (1504/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 81% (1522/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 82% (1541/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 83% (1560/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 84% (1579/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 85% (1598/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 86% (1616/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 87% (1635/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 88% (1654/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 89% (1673/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 90% (1692/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 91% (1710/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 92% (1729/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 93% (1748/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 94% (1767/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 95% (1786/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 96% (1804/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 97% (1823/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 98% (1842/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 99% (1861/1879), 44.77 MiB | 29.84 MiB/s
Line truncated
|
||||
Receiving objects: 100% (1879/1879), 44.77 MiB | 29.84 MiB/s
Receiving objects: 100% (1879/1879), 47.78 MiB | 29.14 MiB/s, done.
|
||||
Resolving deltas: 0% (0/320)
Resolving deltas: 1% (4/320)
Resolving deltas: 2% (7/320)
Resolving deltas: 3% (10/320)
Resolving deltas: 4% (13/320)
Resolving deltas: 5% (16/320)
Resolving deltas: 6% (20/320)
Resolving deltas: 7% (23/320)
Resolving deltas: 8% (26/320)
Resolving deltas: 9% (29/320)
Resolving deltas: 10% (32/320)
Resolving deltas: 11% (36/320)
Resolving deltas: 12% (39/320)
Resolving deltas: 13% (42/320)
Resolving deltas: 14% (45/320)
Resolving deltas: 15% (48/320)
Resolving deltas: 16% (52/320)
Resolving deltas: 17% (55/320)
Resolving deltas: 18% (58/320)
Resolving deltas: 19% (61/320)
Resolving deltas: 20% (64/320)
Resolving deltas: 21% (68/320)
Resolving deltas: 22% (71/320)
Resolving deltas: 23% (74/320)
Resolving deltas: 24% (77/320)
Resolving deltas: 25% (80/320)
Resolving deltas: 26% (84/320)
Resolving deltas: 27% (87/320)
Resolving deltas: 28% (90/320)
Resolving deltas: 29% (93/320)
Resolving deltas: 30% (96/320)
Resolving deltas: 31% (100/320)
Resolving deltas: 32% (103/320)
Resolving deltas: 33% (106/320)
Resolving deltas: 34% (109/320)
Resolving deltas: 35% (112/320)
Resolving deltas: 36% (116/320)
Resolving deltas: 37% (120/320)
Resolving deltas: 38% (122/320)
Resolving deltas: 39% (125/320)
Resolving deltas: 40% (128/320)
Resolving deltas: 41% (132/320)
Resolving deltas: 42% (135/320)
Resolving deltas: 43% (138/320)
Resolving deltas: 44% (142/320)
Resolving deltas: 45% (144/320)
Resolving deltas: 46% (148/320)
Resolving deltas: 47% (151/320)
Resolving deltas: 48% (155/320)
Resolving deltas: 49% (157/320)
Resolving deltas: 50% (160/320)
Resolving deltas: 51% (164/320)
Resolving deltas: 52% (167/320)
Resolving deltas: 53% (170/320)
Resolving deltas: 54% (173/320)
Resolving deltas: 55% (176/320)
Resolving deltas: 56% (180/320)
Resolving deltas: 57% (183/320)
Resolving deltas: 58% (186/320)
Resolving deltas: 59% (189/320)
Resolving deltas: 60% (192/320)
Resolving deltas: 61% (197/320)
Resolving deltas: 62% (199/320)
Resolving deltas: 63% (202/320)
Resolving deltas: 64% (205/320)
Resolving deltas: 65% (208/320)
Resolving deltas: 66% (212/320)
Resolving deltas: 67% (215/320)
Resolving deltas: 68% (218/320)
Resolving deltas: 69% (221/320)
Resolving deltas: 70% (224/320)
Resolving deltas: 71% (228/320)
Resolving deltas: 72% (231/320)
Resolving deltas: 73% (234/320)
Resolving deltas: 74% (237/320)
Resolving deltas: 75% (240/320)
Resolving deltas: 76% (244/320)
Resolving deltas: 77% (247/320)
Resolving deltas: 78% (250/320)
Resolving deltas: 79% (253/320)
Resolving deltas: 80% (256/320)
Resolving deltas: 81% (260/320)
Resolving deltas: 82% (263/320)
Resolving deltas: 83% (266/320)
Resolving deltas: 84% (269/320)
Resolving deltas: 85% (272/320)
Resolving deltas: 86% (276/320)
Resolving deltas: 87% (279/320)
Resolving deltas: 88% (282/320)
Resolving deltas: 89% (285/320)
Resolving deltas: 90% (288/320)
Resolving deltas: 91% (292/320)
Resolving deltas: 92% (295/320)
Resolving deltas: 93% (298/320)
Resolving deltas: 94% (301/320)
Resolving deltas: 95% (304/320)
Resolving deltas: 96% (308/320)
Resolving deltas: 97% (311/320)
Resolving deltas: 98% (314/320)
Resolving deltas: 99% (317/320)
Resolving deltas: 100% (320/320)
Resolving deltas: 100% (320/320), done.
|
||||
> Installing railpack, please wait…
|
||||
____ _ _ _
|
||||
| _ \ __ _(_) |_ __ __ _ ___| | __
|
||||
| |_) / _` | | | '_ \ / _` |/ __| |/ /
|
||||
| _ < (_| | | | |_) | (_| | (__| <
|
||||
|_| \_\__,_|_|_| .__/ \__,_|\___|_|\_\
|
||||
|_|
|
||||
Railpack is now installed!
|
||||
Run 'railpack --help' to get started
|
||||
railpack-dfm-aos-lgbcnc-2Y1SV3
|
||||
Preparing Railpack build plan...
|
||||
╭─────────────────╮
|
||||
│ Railpack 0.15.4 │
|
||||
╰─────────────────╯
|
||||
↳ Found .dockerignore file, applying filters
|
||||
↳ Detected Node
|
||||
↳ Using bun package manager
|
||||
Packages
|
||||
──────────
|
||||
bun │ 1.4.4 │ railpack default (latest)
|
||||
node │ 26.13.0 │ railpack default (latest)
|
||||
Steps
|
||||
──────────
|
||||
▸ install
|
||||
$ bun install --frozen-lockfile
|
||||
▸ build
|
||||
$ bun run build
|
||||
Deploy
|
||||
──────────
|
||||
$ bun run start
|
||||
✅ Railpack prepare completed.
|
||||
Building with Railpack frontend...
|
||||
#0 building with "railpack-dfm-aos-lgbcnc-2Y1SV3" instance using docker-container driver
|
||||
#1 [internal] booting buildkit
|
||||
#1 pulling image moby/buildkit:buildx-stable-1
|
||||
#1 pulling image moby/buildkit:buildx-stable-1 1.1s done
|
||||
#1 creating container buildx_buildkit_railpack-dfm-aos-lgbcnc-2y1sv30
|
||||
#1 creating container buildx_buildkit_railpack-dfm-aos-lgbcnc-2y1sv30 0.8s done
|
||||
#1 DONE 1.8s
|
||||
#2 resolve image config for docker-image://ghcr.io/railwayapp/railpack-frontend:v0.15.4
|
||||
#2 DONE 1.3s
|
||||
#3 docker-image://ghcr.io/railwayapp/railpack-frontend:v0.15.4@sha256:7e0535e519d9d00793d0bb4e652be5d48373ab5e0c7d9b90ef6bc40147290ff7
|
||||
#3 resolve ghcr.io/railwayapp/railpack-frontend:v0.15.4@sha256:7e0535e519d9d00793d0bb4e652be5d48373ab5e0c7d9b90ef6bc40147290ff7 done
|
||||
#3 sha256:76fdf18f436616aff2234f2d325d888d31af103f333a8f491d539dce0106e849 0B / 7.90MB 0.2s
|
||||
#3 sha256:1074353eec0db2c1d81d5af2671e56e00cf5738486f5762609ea33d606f88612 0B / 3.86MB 0.2s
|
||||
#3 sha256:76fdf18f436616aff2234f2d325d888d31af103f333a8f491d539dce0106e849 6.29MB / 7.90MB 0.4s
|
||||
#3 sha256:76fdf18f436616aff2234f2d325d888d31af103f333a8f491d539dce0106e849 7.90MB / 7.90MB 0.5s done
|
||||
#3 sha256:1074353eec0db2c1d81d5af2671e56e00cf5738486f5762609ea33d606f88612 3.86MB / 3.86MB 0.7s done
|
||||
#3 extracting sha256:1074353eec0db2c1d81d5af2671e56e00cf5738486f5762609ea33d606f88612 0.1s done
|
||||
#3 DONE 0.8s
|
||||
#3 docker-image://ghcr.io/railwayapp/railpack-frontend:v0.15.4@sha256:7e0535e519d9d00793d0bb4e652be5d48373ab5e0c7d9b90ef6bc40147290ff7
|
||||
#3 extracting sha256:76fdf18f436616aff2234f2d325d888d31af103f333a8f491d539dce0106e849
|
||||
#3 extracting sha256:76fdf18f436616aff2234f2d325d888d31af103f333a8f491d539dce0106e849 0.2s done
|
||||
#3 DONE 1.0s
|
||||
#4 load build definition from railpack-plan.json
|
||||
#4 transferring dockerfile: 5.06kB done
|
||||
#4 DONE 0.0s
|
||||
#5 loading .
|
||||
#5 DONE 0.0s
|
||||
#6 [railpack] secrets hash
|
||||
#6 DONE 0.0s
|
||||
#7 docker-image://ghcr.io/railwayapp/railpack-builder:latest
|
||||
#7 resolve ghcr.io/railwayapp/railpack-builder:latest
|
||||
#7 ...
|
||||
#8 docker-image://ghcr.io/railwayapp/railpack-runtime:latest
|
||||
#8 resolve ghcr.io/railwayapp/railpack-runtime:latest 1.0s done
|
||||
#8 DONE 1.0s
|
||||
#6 [railpack] secrets hash
|
||||
#6 DONE 0.0s
|
||||
#7 docker-image://ghcr.io/railwayapp/railpack-builder:latest
|
||||
#7 resolve ghcr.io/railwayapp/railpack-builder:latest 1.0s done
|
||||
#7 DONE 1.1s
|
||||
#5 loading .
|
||||
#5 transferring context: 32B
|
||||
#5 ...
|
||||
#9 [railpack] loading secrets
|
||||
#9 resolve docker.io/library/alpine:latest 1.6s done
|
||||
#9 DONE 1.6s
|
||||
#5 loading .
|
||||
#5 ...
|
||||
#9 [railpack] loading secrets
|
||||
#9 sha256:7b229517ed222597277036d94892173207d01a731ab3a88eeb1de2e963a2c788 3.85MB / 3.85MB 0.5s done
|
||||
#9 extracting sha256:7b229517ed222597277036d94892173207d01a731ab3a88eeb1de2e963a2c788 0.2s done
|
||||
#9 DONE 2.3s
|
||||
#5 loading .
|
||||
#5 ...
|
||||
#10 [railpack] copy secrets hash
|
||||
#10 DONE 0.4s
|
||||
#5 loading .
|
||||
#5 ...
|
||||
#11 [railpack] hash used secrets
|
||||
#11 DONE 0.6s
|
||||
#5 loading .
|
||||
#5 ...
|
||||
#12 [railpack] copy used secrets hash
|
||||
#12 DONE 0.0s
|
||||
#5 loading .
|
||||
#5 transferring context: 128.50MB 3.1s done
|
||||
#5 DONE 3.1s
|
||||
#7 docker-image://ghcr.io/railwayapp/railpack-builder:latest
|
||||
#7 sha256:193926ad1d06489b7487e8ac4ae2d0874e6ff05cf65d874d2af508830fc03def 119B / 119B 0.4s done
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 3.15MB / 237.08MB 3.0s
|
||||
#7 sha256:df614908d6aba31e983953b17fd48496d27425529b3947c3d5583c4cc9c15c9a 868.40kB / 868.40kB 0.4s done
|
||||
#7 sha256:08a1e03b3da5bb4a1059032dca3216f33ddfc4a48a45db88921f5bb2e9a8fa2d 46.14MB / 53.72MB 2.7s
|
||||
#7 sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32B / 32B 0.2s done
|
||||
#7 sha256:4dc3950125ebc9ed195e1101fc6c02e2fce113ba0f53bfb05b2cdf58747df9af 62.91MB / 67.81MB 2.1s
|
||||
#7 sha256:62fe2e747f69f2f414c7e9eb1553155cf0a658398f0462557f458821dce2b29d 8.39MB / 25.64MB 2.0s
|
||||
#7 sha256:08a1e03b3da5bb4a1059032dca3216f33ddfc4a48a45db88921f5bb2e9a8fa2d 52.43MB / 53.72MB 2.9s
|
||||
#7 sha256:4dc3950125ebc9ed195e1101fc6c02e2fce113ba0f53bfb05b2cdf58747df9af 67.11MB / 67.81MB 2.3s
|
||||
#7 sha256:08a1e03b3da5bb4a1059032dca3216f33ddfc4a48a45db88921f5bb2e9a8fa2d 53.72MB / 53.72MB 2.9s done
|
||||
#7 sha256:4dc3950125ebc9ed195e1101fc6c02e2fce113ba0f53bfb05b2cdf58747df9af 67.81MB / 67.81MB 2.4s done
|
||||
#7 sha256:62fe2e747f69f2f414c7e9eb1553155cf0a658398f0462557f458821dce2b29d 10.49MB / 25.64MB 2.3s
|
||||
#7 sha256:62fe2e747f69f2f414c7e9eb1553155cf0a658398f0462557f458821dce2b29d 13.63MB / 25.64MB 2.4s
|
||||
#7 sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 0B / 49.39MB 0.2s
|
||||
#7 ...
|
||||
#8 docker-image://ghcr.io/railwayapp/railpack-runtime:latest
|
||||
#8 sha256:75dc09925ca146a3efecc887098f8f1313da0fb1b0c8d36d628b6cae320665ec 7.39MB / 7.39MB 0.4s done
|
||||
#8 sha256:ecc510c1e359bdc007b39802570bb7e4dec7d6ebccf357c3201a74299113e05e 29.84MB / 29.84MB 1.2s done
|
||||
#8 extracting sha256:ecc510c1e359bdc007b39802570bb7e4dec7d6ebccf357c3201a74299113e05e 2.3s done
|
||||
#8 extracting sha256:75dc09925ca146a3efecc887098f8f1313da0fb1b0c8d36d628b6cae320665ec 0.3s done
|
||||
#8 DONE 4.8s
|
||||
#7 docker-image://ghcr.io/railwayapp/railpack-builder:latest
|
||||
#7 sha256:62fe2e747f69f2f414c7e9eb1553155cf0a658398f0462557f458821dce2b29d 17.83MB / 25.64MB 2.6s
|
||||
#7 sha256:62fe2e747f69f2f414c7e9eb1553155cf0a658398f0462557f458821dce2b29d 22.02MB / 25.64MB 2.7s
|
||||
#7 sha256:62fe2e747f69f2f414c7e9eb1553155cf0a658398f0462557f458821dce2b29d 25.64MB / 25.64MB 2.8s done
|
||||
#7 sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 7.34MB / 49.39MB 0.6s
|
||||
#7 sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 10.49MB / 49.39MB 0.8s
|
||||
#7 sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 14.68MB / 49.39MB 1.2s
|
||||
#7 sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 17.83MB / 49.39MB 1.4s
|
||||
#7 sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 20.97MB / 49.39MB 1.5s
|
||||
#7 sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 24.12MB / 49.39MB 1.7s
|
||||
#7 sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 31.46MB / 49.39MB 1.8s
|
||||
#7 sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 34.60MB / 49.39MB 2.0s
|
||||
#7 sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 39.85MB / 49.39MB 2.1s
|
||||
#7 sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 45.09MB / 49.39MB 2.3s
|
||||
#7 sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 49.39MB / 49.39MB 2.5s done
|
||||
#7 extracting sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 5.24MB / 237.08MB 8.1s
|
||||
#7 extracting sha256:4846f29007305297af653c57bf9b60ba8f676a38695c68d98460063442581671 2.7s done
|
||||
#7 extracting sha256:62fe2e747f69f2f414c7e9eb1553155cf0a658398f0462557f458821dce2b29d
|
||||
#7 extracting sha256:62fe2e747f69f2f414c7e9eb1553155cf0a658398f0462557f458821dce2b29d 1.4s done
|
||||
#7 extracting sha256:4dc3950125ebc9ed195e1101fc6c02e2fce113ba0f53bfb05b2cdf58747df9af
|
||||
#7 ...
|
||||
#13 install apt packages: libatomic1
|
||||
#13 0.204 Get:1 http://deb.debian.org/debian trixie InRelease [140 kB]
|
||||
#13 0.299 Get:2 http://deb.debian.org/debian trixie-updates InRelease [47.3 kB]
|
||||
#13 0.324 Get:3 http://deb.debian.org/debian-security trixie-security InRelease [43.4 kB]
|
||||
#13 0.346 Get:4 http://deb.debian.org/debian trixie/main amd64 Packages [9678 kB]
|
||||
#13 0.508 Get:5 http://deb.debian.org/debian trixie-updates/main amd64 Packages [720 B]
|
||||
#13 0.532 Get:6 http://deb.debian.org/debian-security trixie-security/main amd64 Packages [270 kB]
|
||||
#13 1.526 Fetched 10.2 MB in 1s (7253 kB/s)
|
||||
#13 1.526 Reading package lists...
|
||||
#13 2.397 Reading package lists...
|
||||
#13 3.642 Building dependency tree...
|
||||
#13 3.987 Reading state information...
|
||||
#13 4.552 The following NEW packages will be installed:
|
||||
#13 4.555 libatomic1
|
||||
#13 4.689 0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
|
||||
#13 4.689 Need to get 9308 B of archives.
|
||||
#13 4.689 After this operation, 46.1 kB of additional disk space will be used.
|
||||
#13 4.689 Get:1 http://deb.debian.org/debian trixie/main amd64 libatomic1 amd64 14.2.0-19 [9308 B]
|
||||
#13 4.903 debconf: unable to initialize frontend: Dialog
|
||||
#13 4.903 debconf: (TERM is not set, so the dialog frontend is not usable.)
|
||||
#13 4.903 debconf: falling back to frontend: Readline
|
||||
#13 4.904 debconf: unable to initialize frontend: Readline
|
||||
#13 4.904 debconf: (Can't locate Term/ReadLine.pm in @INC (you may need to install the Term::ReadLine module) (@INC entries checked: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.40.1 /usr/local/share/perl/5.40.1 /usr/lib/x86_64-linux-gnu/perl5/5.40 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.40 /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/FrontEnd/Readline.pm line 8, <STDIN> line 1.)
|
||||
#13 4.904 debconf: falling back to frontend: Teletype
|
||||
#13 4.912 debconf: unable to initialize frontend: Teletype
|
||||
#13 4.912 debconf: (This frontend requires a controlling tty.)
|
||||
#13 4.912 debconf: falling back to frontend: Noninteractive
|
||||
#13 6.225 Fetched 9308 B in 0s (87.3 kB/s)
|
||||
#13 6.291 Selecting previously unselected package libatomic1:amd64.
|
||||
#13 6.291 (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 6228 files and directories currently installed.)
|
||||
#13 6.308 Preparing to unpack .../libatomic1_14.2.0-19_amd64.deb ...
|
||||
#13 6.312 Unpacking libatomic1:amd64 (14.2.0-19) ...
|
||||
#13 6.363 Setting up libatomic1:amd64 (14.2.0-19) ...
|
||||
#13 6.383 Processing triggers for libc-bin (2.41-12+deb13u4) ...
|
||||
#13 DONE 7.0s
|
||||
#7 docker-image://ghcr.io/railwayapp/railpack-builder:latest
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 6.29MB / 237.08MB 13.2s
|
||||
#7 extracting sha256:4dc3950125ebc9ed195e1101fc6c02e2fce113ba0f53bfb05b2cdf58747df9af 3.8s done
|
||||
#7 extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 done
|
||||
#7 extracting sha256:08a1e03b3da5bb4a1059032dca3216f33ddfc4a48a45db88921f5bb2e9a8fa2d
|
||||
#7 extracting sha256:08a1e03b3da5bb4a1059032dca3216f33ddfc4a48a45db88921f5bb2e9a8fa2d 1.1s done
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 9.44MB / 237.08MB 18.3s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 20.97MB / 237.08MB 23.4s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 23.07MB / 237.08MB 28.5s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 25.17MB / 237.08MB 33.6s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 26.21MB / 237.08MB 38.7s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 28.31MB / 237.08MB 43.8s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 30.41MB / 237.08MB 48.9s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 31.46MB / 237.08MB 54.0s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 34.60MB / 237.08MB 59.1s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 36.70MB / 237.08MB 64.2s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 38.80MB / 237.08MB 69.3s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 56.62MB / 237.08MB 73.7s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 69.21MB / 237.08MB 74.1s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 74.45MB / 237.08MB 79.2s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 76.55MB / 237.08MB 84.3s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 79.69MB / 237.08MB 89.4s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 82.84MB / 237.08MB 94.5s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 96.47MB / 237.08MB 95.6s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 110.10MB / 237.08MB 95.9s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 125.83MB / 237.08MB 96.2s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 138.41MB / 237.08MB 96.8s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 154.17MB / 237.08MB 97.5s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 158.33MB / 237.08MB 102.6s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 159.38MB / 237.08MB 107.7s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 160.43MB / 237.08MB 112.8s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 162.53MB / 237.08MB 117.9s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 163.58MB / 237.08MB 123.0s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 164.63MB / 237.08MB 128.1s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 164.63MB / 237.08MB 133.2s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 166.72MB / 237.08MB 138.3s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 169.87MB / 237.08MB 143.4s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 170.92MB / 237.08MB 148.5s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 173.02MB / 237.08MB 153.6s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 175.11MB / 237.08MB 158.7s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 177.21MB / 237.08MB 163.8s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 198.18MB / 237.08MB 165.3s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 211.81MB / 237.08MB 165.8s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 225.44MB / 237.08MB 166.4s
|
||||
#7 sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 237.08MB / 237.08MB 166.8s done
|
||||
#7 extracting sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f
|
||||
#7 extracting sha256:604add184d03d4cf6e2ff1c4b9013b265eb9c11570afe28ce8f9dc417b98ea3f 6.3s done
|
||||
#7 DONE 174.3s
|
||||
#7 docker-image://ghcr.io/railwayapp/railpack-builder:latest
|
||||
#7 extracting sha256:df614908d6aba31e983953b17fd48496d27425529b3947c3d5583c4cc9c15c9a 0.0s done
|
||||
#7 extracting sha256:193926ad1d06489b7487e8ac4ae2d0874e6ff05cf65d874d2af508830fc03def done
|
||||
#7 DONE 174.3s
|
||||
#14 mkdir /etc/mise
|
||||
#14 DONE 1.6s
|
||||
#15 create mise config
|
||||
#15 DONE 0.0s
|
||||
#16 install mise packages: bun, node
|
||||
#16 0.084 mise by @jdx – installing 2 tools
|
||||
#16 3.084 mise █████████░░░░░░░ 0/2 · 3.0s
|
||||
#16 3.084 bun@1.4.4 downloading 2.3s 51.8/51.8 MB · 25.5 MB/s
|
||||
#16 3.084 node@26.13.0 downloading 2.3s 41.8/62.9 MB · 18.8 MB/s
|
||||
#16 3.792 mise bun@1.4.4 1.4.4
|
||||
#16 3.806 mise ✓ bun@1.4.4 3.1s bun-linux-x64.zip
|
||||
#16 5.420 mise node@26.13.0 v26.13.0
|
||||
#16 5.580 mise node@26.13.0 11.20.0
|
||||
#16 5.606 mise ✓ node@26.13.0 4.9s node-v26.13.0-linux-x64.tar.gz
|
||||
#16 5.606 mise ████████████████ 2/2 · installed 2 tools in 5.5s
|
||||
#16 DONE 6.2s
|
||||
#17 copy / /app
|
||||
#17 DONE 0.6s
|
||||
#18 mkdir -p /app/node_modules/.cache
|
||||
#18 DONE 0.1s
|
||||
#19 bun install --frozen-lockfile
|
||||
#19 0.105 bun install v1.4.4 (38afee6c8)
|
||||
#19 ...
|
||||
#20 copy /mise/shims
|
||||
#20 DONE 0.1s
|
||||
#21 copy /mise/installs
|
||||
#21 DONE 5.6s
|
||||
#19 bun install --frozen-lockfile
|
||||
#19 ...
|
||||
#22 copy /usr/local/bin/mise
|
||||
#22 DONE 3.0s
|
||||
#19 bun install --frozen-lockfile
|
||||
#19 ...
|
||||
#23 copy /etc/mise/config.toml
|
||||
#23 DONE 0.1s
|
||||
#24 copy /root/.local/state/mise
|
||||
#24 DONE 0.1s
|
||||
#19 bun install --frozen-lockfile
|
||||
#19 14.66
|
||||
#19 14.66 $ prisma generate || true
|
||||
#19 16.63 Prisma schema loaded from prisma/schema.prisma
|
||||
#19 17.61
|
||||
#19 17.61 ✔ Generated Prisma Client (v6.19.2) to ./node_modules/@prisma/client in 492ms
|
||||
#19 17.61
|
||||
#19 17.61 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)
|
||||
#19 17.61
|
||||
#19 17.61 Tip: Need your database queries to be 1000x faster? Accelerate offers you that and more: https://pris.ly/tip-2-accelerate
|
||||
#19 17.61
|
||||
#19 17.74
|
||||
#19 17.74 + @tailwindcss/postcss@4.1.18
|
||||
#19 17.74 + @types/react@19.2.8
|
||||
#19 17.74 + @types/react-dom@19.2.3
|
||||
#19 17.74 + bun-types@1.3.6
|
||||
#19 17.74 + eslint@9.39.2
|
||||
#19 17.74 + eslint-config-next@16.1.3
|
||||
#19 17.74 + tailwindcss@4.1.18
|
||||
#19 17.74 + tw-animate-css@1.4.0
|
||||
#19 17.74 + typescript@5.9.3
|
||||
#19 17.74 + @dnd-kit/core@6.3.1
|
||||
#19 17.74 + @dnd-kit/sortable@10.0.0
|
||||
#19 17.74 + @dnd-kit/utilities@3.2.2
|
||||
#19 17.74 + @hookform/resolvers@5.2.2
|
||||
#19 17.74 + @hugeicons/core-free-icons@4.3.5
|
||||
#19 17.74 + @hugeicons/react@1.1.10
|
||||
#19 17.74 + @mdxeditor/editor@3.52.3
|
||||
#19 17.74 + @prisma/client@6.19.2
|
||||
#19 17.74 + @radix-ui/react-accordion@1.2.12
|
||||
#19 17.74 + @radix-ui/react-alert-dialog@1.1.15
|
||||
#19 17.74 + @radix-ui/react-aspect-ratio@1.1.8
|
||||
#19 17.74 + @radix-ui/react-avatar@1.1.11
|
||||
#19 17.74 + @radix-ui/react-checkbox@1.3.3
|
||||
#19 17.74 + @radix-ui/react-collapsible@1.1.12
|
||||
#19 17.74 + @radix-ui/react-context-menu@2.2.16
|
||||
#19 17.74 + @radix-ui/react-dialog@1.1.15
|
||||
#19 17.74 + @radix-ui/react-dropdown-menu@2.1.16
|
||||
#19 17.74 + @radix-ui/react-hover-card@1.1.15
|
||||
#19 17.74 + @radix-ui/react-label@2.1.8
|
||||
#19 17.74 + @radix-ui/react-menubar@1.1.16
|
||||
#19 17.74 + @radix-ui/react-navigation-menu@1.2.14
|
||||
#19 17.74 + @radix-ui/react-popover@1.1.15
|
||||
#19 17.74 + @radix-ui/react-progress@1.1.8
|
||||
#19 17.74 + @radix-ui/react-radio-group@1.3.8
|
||||
#19 17.74 + @radix-ui/react-scroll-area@1.2.10
|
||||
#19 17.74 + @radix-ui/react-select@2.2.6
|
||||
#19 17.74 + @radix-ui/react-separator@1.1.8
|
||||
#19 17.74 + @radix-ui/react-slider@1.3.6
|
||||
#19 17.74 + @radix-ui/react-slot@1.2.4
|
||||
#19 17.74 + @radix-ui/react-switch@1.2.6
|
||||
#19 17.74 + @radix-ui/react-tabs@1.1.13
|
||||
#19 17.74 + @radix-ui/react-toast@1.2.15
|
||||
#19 17.74 + @radix-ui/react-toggle@1.1.10
|
||||
#19 17.74 + @radix-ui/react-toggle-group@1.1.11
|
||||
#19 17.74 + @radix-ui/react-tooltip@1.2.8
|
||||
#19 17.74 + @reactuses/core@6.1.9
|
||||
#19 17.74 + @tanstack/react-query@5.90.19
|
||||
#19 17.74 + @tanstack/react-table@8.21.3
|
||||
#19 17.74 + class-variance-authority@0.7.1
|
||||
#19 17.74 + clsx@2.1.1
|
||||
#19 17.74 + cmdk@1.1.1
|
||||
#19 17.74 + date-fns@4.1.0
|
||||
#19 17.74 + embla-carousel-react@8.6.0
|
||||
#19 17.74 + framer-motion@14.7.1
|
||||
#19 17.74 + imapflow@2.9.1
|
||||
#19 17.74 + input-otp@1.4.2
|
||||
#19 17.74 + lucide-react@1.62.0
|
||||
#19 17.74 + motion@12.43.0
|
||||
#19 17.74 + next@16.1.3
|
||||
#19 17.74 + next-auth@4.24.13
|
||||
#19 17.74 + next-intl@4.7.0
|
||||
#19 17.74 + next-themes@0.4.6
|
||||
#19 17.74 + prisma@6.19.2
|
||||
#19 17.74 + react@19.2.3
|
||||
#19 17.74 + react-day-picker@9.13.0
|
||||
#19 17.74 + react-dom@19.2.3
|
||||
#19 17.74 + react-hook-form@7.71.1
|
||||
#19 17.74 + react-markdown@10.1.0
|
||||
#19 17.74 + react-resizable-panels@3.0.6
|
||||
#19 17.74 + react-syntax-highlighter@15.6.6
|
||||
#19 17.74 + recharts@2.15.4
|
||||
#19 17.74 + sharp@0.34.5
|
||||
#19 17.74 + sonner@2.0.7
|
||||
#19 17.74 + tailwind-merge@3.7.0
|
||||
#19 17.74 + tailwindcss-animate@1.0.7
|
||||
#19 17.74 + uuid@11.1.0
|
||||
#19 17.74 + vaul@1.1.2
|
||||
#19 17.74 + z-ai-web-dev-sdk@0.0.18
|
||||
#19 17.74 + zod@4.3.5
|
||||
#19 17.74 + zustand@5.0.10
|
||||
#19 17.74
|
||||
#19 17.74 858 packages installed [17.64s]
|
||||
#19 DONE 21.1s
|
||||
#25 copy / /app
|
||||
#25 DONE 5.7s
|
||||
#26 bun run build
|
||||
#26 2.808 $ prisma generate && next build --webpack && cp -r .next/static .next/standalone/.next/ && cp -r public .next/standalone/
|
||||
#26 3.955 Prisma schema loaded from prisma/schema.prisma
|
||||
#26 5.215 ┌─────────────────────────────────────────────────────────┐
|
||||
#26 5.215 │ Update available 6.19.2 -> 8.0.0-rc.28 │
|
||||
#26 5.215 │ │
|
||||
#26 5.215 │ This is a major update - please follow the guide at │
|
||||
#26 5.215 │ https://pris.ly/d/major-version-upgrade │
|
||||
#26 5.215 │ │
|
||||
#26 5.215 │ Run the following to update │
|
||||
#26 5.215 │ npm i --save-dev prisma@latest │
|
||||
#26 5.215 │ npm i @prisma/client@latest │
|
||||
#26 5.215 └─────────────────────────────────────────────────────────┘
|
||||
#26 5.215
|
||||
#26 5.215 ✔ Generated Prisma Client (v6.19.2) to ./node_modules/@prisma/client in 764ms
|
||||
#26 5.215
|
||||
#26 5.215 Start by importing your Prisma Client (See: https://pris.ly/d/importing-client)
|
||||
#26 5.215
|
||||
#26 5.215 Tip: Want to turn off tips and other hints? https://pris.ly/tip-4-nohints
|
||||
#26 5.215
|
||||
#26 7.326 ⚠ You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env
|
||||
#26 8.827 ▲ Next.js 16.1.3 (webpack)
|
||||
#26 8.828
|
||||
#26 8.884 Creating an optimized production build ...
|
||||
#26 13.82 (node:57) [DEP0205] DeprecationWarning: `module.register()` is deprecated. Use `module.registerHooks()` instead.
|
||||
#26 13.82 (Use `node --trace-deprecation ...` to show where the warning was created)
|
||||
#26 41.07 (node:92) [DEP0205] DeprecationWarning: `module.register()` is deprecated. Use `module.registerHooks()` instead.
|
||||
#26 41.07 (Use `node --trace-deprecation ...` to show where the warning was created)
|
||||
#26 58.46 ✓ Compiled successfully in 45s
|
||||
#26 58.46 Skipping validation of types
|
||||
#26 58.60 Collecting page data using 3 workers ...
|
||||
#26 61.54 Generating static pages using 3 workers (0/4) ...
|
||||
#26 61.94 Generating static pages using 3 workers (1/4)
|
||||
#26 61.94 Each child in a list should have a unique "key" prop.
|
||||
#26 61.94
|
||||
#26 61.94 Check the top-level render call using <__next_viewport_boundary__>. See https://react.dev/link/warning-keys for more information.
|
||||
#26 61.94 Each child in a list should have a unique "key" prop.
|
||||
#26 61.94
|
||||
#26 61.94 Check the top-level render call using <A>. See https://react.dev/link/warning-keys for more information.
|
||||
#26 61.94 Each child in a list should have a unique "key" prop.
|
||||
#26 61.94
|
||||
#26 61.94 Check the top-level render call using <meta>. See https://react.dev/link/warning-keys for more information.
|
||||
#26 61.94 Each child in a list should have a unique "key" prop.
|
||||
#26 61.94
|
||||
#26 61.94 Check the top-level render call using <head>. See https://react.dev/link/warning-keys for more information.
|
||||
#26 61.94 Each child in a list should have a unique "key" prop.
|
||||
#26 61.94
|
||||
#26 61.94 Check the top-level render call using <meta>. See https://react.dev/link/warning-keys for more information.
|
||||
#26 61.94 Each child in a list should have a unique "key" prop.
|
||||
#26 61.94
|
||||
#26 61.94 Check the top-level render call using <html>. See https://react.dev/link/warning-keys for more information.
|
||||
#26 62.25 Each child in a list should have a unique "key" prop.
|
||||
#26 62.25
|
||||
#26 62.25 Check the top-level render call using <meta>. See https://react.dev/link/warning-keys for more information.
|
||||
#26 62.25 Each child in a list should have a unique "key" prop.
|
||||
#26 62.25
|
||||
#26 62.25 Check the top-level render call using <head>. See https://react.dev/link/warning-keys for more information.
|
||||
#26 62.25 Each child in a list should have a unique "key" prop.
|
||||
#26 62.25
|
||||
#26 62.25 Check the top-level render call using <__next_viewport_boundary__>. See https://react.dev/link/warning-keys for more information.
|
||||
#26 62.25 Each child in a list should have a unique "key" prop.
|
||||
#26 62.25
|
||||
#26 62.25 Check the top-level render call using <html>. See https://react.dev/link/warning-keys for more information.
|
||||
#26 62.25 Each child in a list should have a unique "key" prop.
|
||||
#26 62.25
|
||||
#26 62.25 Check the top-level render call using <meta>. See https://react.dev/link/warning-keys for more information.
|
||||
#26 62.25 Each child in a list should have a unique "key" prop.
|
||||
#26 62.25
|
||||
#26 62.25 Check the top-level render call using <head>. See https://react.dev/link/warning-keys for more information.
|
||||
#26 62.25 Error occurred prerendering page "/_global-error". Read more: https://nextjs.org/docs/messages/prerender-error
|
||||
#26 62.25 TypeError: Cannot read properties of null (reading 'useContext')
|
||||
#26 62.25 at A (.next/server/chunks/6117.js:11:9382) {
|
||||
#26 62.25 digest: '4089451167'
|
||||
#26 62.25 }
|
||||
#26 62.25 Export encountered an error on /_global-error/page: /_global-error, exiting the build.
|
||||
#26 62.39 ⨯ Next.js build worker exited with code: 1 and signal: null
|
||||
#26 62.44 error: script "build" exited with code 1
|
||||
#26 ERROR: process "bun run build" did not complete successfully: exit code: 1
|
||||
------
|
||||
> bun run build:
|
||||
62.25
|
||||
62.25 Check the top-level render call using <head>. See https://react.dev/link/warning-keys for more information.
|
||||
62.25 Error occurred prerendering page "/_global-error". Read more: https://nextjs.org/docs/messages/prerender-error
|
||||
62.25 TypeError: Cannot read properties of null (reading 'useContext')
|
||||
62.25 at A (.next/server/chunks/6117.js:11:9382) {
|
||||
62.25 digest: '4089451167'
|
||||
62.25 }
|
||||
62.25 Export encountered an error on /_global-error/page: /_global-error, exiting the build.
|
||||
62.39 ⨯ Next.js build worker exited with code: 1 and signal: null
|
||||
62.44 error: script "build" exited with code 1
|
||||
------
|
||||
ERROR: failed to build: failed to solve: process "bun run build" did not complete successfully: exit code: 1
|
||||
❌ Railpack build failed
|
||||
railpack-dfm-aos-lgbcnc-2Y1SV3 removed
|
||||
Error occurred ❌, check the logs for details.
|
||||
Reference in new issue
Block a user