rename(phase 1): CapaKraken → Nexus across code, UI, docs, CI (#61)
CI / Architecture Guardrails (push) Successful in 2m38s
CI / Assistant Split Regression (push) Successful in 3m33s
CI / Typecheck (push) Successful in 3m51s
CI / Lint (push) Successful in 5m2s
CI / E2E Tests (push) Has been cancelled
CI / Fresh-Linux Docker Deploy (push) Has been cancelled
CI / Release Images (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled

rename(phase 1): CapaKraken → Nexus across code, UI, docs, CI (#61)

Co-authored-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com>
Co-committed-by: Hartmut Nörenberg <hn@hartmut-noerenberg.com>
This commit was merged in pull request #61.
This commit is contained in:
2026-05-21 16:28:40 +02:00
committed by Hartmut
parent d9a7ec0338
commit b41c1d2501
943 changed files with 24548 additions and 16832 deletions
@@ -1,4 +1,4 @@
import { DEFAULT_OPENAI_MODEL } from "@capakraken/shared";
import { DEFAULT_OPENAI_MODEL } from "@nexus/shared";
import { TRPCError } from "@trpc/server";
import type {
ChatCompletion,
@@ -95,14 +95,18 @@ export async function generateProjectNarrative(
);
const progressPercent = totalDays > 0 ? Math.round((elapsedDays / totalDays) * 100) : 0;
const totalDemandHeadcount = project.demandRequirements.reduce((sum, demand) => sum + demand.headcount, 0);
const totalDemandHeadcount = project.demandRequirements.reduce(
(sum, demand) => sum + demand.headcount,
0,
);
const filledDemandHeadcount = project.demandRequirements.reduce(
(sum, demand) => sum + Math.min(demand._count.assignments, demand.headcount),
0,
);
const staffingPercent = totalDemandHeadcount > 0
? Math.round((filledDemandHeadcount / totalDemandHeadcount) * 100)
: 100;
const staffingPercent =
totalDemandHeadcount > 0
? Math.round((filledDemandHeadcount / totalDemandHeadcount) * 100)
: 100;
const totalCostCents = project.assignments.reduce((sum, assignment) => {
const days = countBusinessDays(assignment.startDate, assignment.endDate);
@@ -144,7 +148,8 @@ ${dataContext}`;
messages: [
{
role: "system",
content: "You are a project management analyst providing brief executive summaries. Be factual and action-oriented.",
content:
"You are a project management analyst providing brief executive summaries. Be factual and action-oriented.",
},
{ role: "user", content: prompt },
],