codecartographer-pi 0.6.1 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,42 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-labelledby="title desc">
2
+ <title id="title">CodeCartographer logo</title>
3
+ <desc id="desc">A folded map with a highlighted route over subtle matrix-style code marks.</desc>
4
+ <defs>
5
+ <linearGradient id="bg" x1="8" y1="6" x2="56" y2="58" gradientUnits="userSpaceOnUse">
6
+ <stop offset="0" stop-color="#303431"/>
7
+ <stop offset="1" stop-color="#111312"/>
8
+ </linearGradient>
9
+ <linearGradient id="route" x1="18" y1="45" x2="48" y2="18" gradientUnits="userSpaceOnUse">
10
+ <stop offset="0" stop-color="#b8432f"/>
11
+ <stop offset="1" stop-color="#f1a84f"/>
12
+ </linearGradient>
13
+ </defs>
14
+
15
+ <rect x="4" y="4" width="56" height="56" rx="14" fill="url(#bg)"/>
16
+ <rect x="5" y="5" width="54" height="54" rx="13" fill="none" stroke="#f5efd8" stroke-opacity="0.22" stroke-width="2"/>
17
+
18
+ <!-- Matrix/code rain: intentionally sparse so it survives favicon/header size. -->
19
+ <g stroke="#63e6a4" stroke-width="2.2" stroke-linecap="round" opacity="0.42">
20
+ <path d="M15 14v5M15 25v4M49 13v7M49 28v4"/>
21
+ <path d="M25 11v4M39 49v4" opacity="0.65"/>
22
+ </g>
23
+
24
+ <!-- Simplified folded map silhouette. -->
25
+ <path d="M15 22 27 16l12 6 10-5v25l-10 6-12-6-12 6Z" fill="#f5efd8"/>
26
+ <path d="M27 16v26M39 22v26" fill="none" stroke="#141413" stroke-opacity="0.25" stroke-width="2"/>
27
+ <path d="M15 22 27 16l12 6 10-5v25l-10 6-12-6-12 6Z" fill="none" stroke="#141413" stroke-opacity="0.38" stroke-width="2" stroke-linejoin="round"/>
28
+
29
+ <!-- Cartography contour lines. -->
30
+ <g fill="none" stroke="#2c5862" stroke-width="2.2" stroke-linecap="round" opacity="0.9">
31
+ <path d="M19 29c3-2 5-2 8 0"/>
32
+ <path d="M31 29c2.5 1.3 4.5 1.1 6.5-.2"/>
33
+ <path d="M43 29c2-1.5 3.4-1.5 5 .1"/>
34
+ </g>
35
+
36
+ <!-- Dominant route/compass mark. -->
37
+ <path d="M18 43c7-10 12-11 17-12 6-1 8-7 13-13" fill="none" stroke="#141413" stroke-opacity="0.28" stroke-width="7" stroke-linecap="round"/>
38
+ <path d="M18 43c7-10 12-11 17-12 6-1 8-7 13-13" fill="none" stroke="url(#route)" stroke-width="4.5" stroke-linecap="round"/>
39
+ <circle cx="18" cy="43" r="4" fill="#141413" stroke="#f5efd8" stroke-width="2"/>
40
+ <circle cx="35" cy="31" r="3.3" fill="#141413" stroke="#f5efd8" stroke-width="2"/>
41
+ <path d="M48 11.5 52 19l-4 7.5-4-7.5Z" fill="#b8432f" stroke="#f5efd8" stroke-width="2" stroke-linejoin="round"/>
42
+ </svg>
@@ -0,0 +1,42 @@
1
+ import type { NormalizedStatus, PipelineFile } from "./types.ts";
2
+ import type { UsageFile } from "./usage.ts";
3
+ export declare const DASHBOARD_RELATIVE_PATH = "dashboard.html";
4
+ export declare const NARRATION_CACHE_RELATIVE_PATH = ".dashboard-narration.local.md";
5
+ export interface DashboardArtifactLink {
6
+ path: string;
7
+ exists: boolean;
8
+ kind: "primary" | "secondary";
9
+ }
10
+ export interface DashboardCloseoutEntry {
11
+ date: string;
12
+ phaseOrModule: string;
13
+ fileName: string;
14
+ summary?: string;
15
+ }
16
+ export interface OutputAvailability {
17
+ primary?: {
18
+ path: string;
19
+ exists: boolean;
20
+ };
21
+ secondary: Array<{
22
+ path: string;
23
+ exists: boolean;
24
+ }>;
25
+ }
26
+ export interface DashboardNarration {
27
+ content: string;
28
+ generatedAt: string;
29
+ phaseCountAtGeneration: number;
30
+ }
31
+ export interface DashboardInputs {
32
+ status: NormalizedStatus;
33
+ pipeline: PipelineFile;
34
+ usage: UsageFile;
35
+ closeouts: DashboardCloseoutEntry[];
36
+ outputsPresent: Map<string, OutputAvailability>;
37
+ packageVersion: string;
38
+ generatedAt: string;
39
+ narration?: DashboardNarration;
40
+ }
41
+ export declare function renderDashboard(inputs: DashboardInputs): string;
42
+ export declare function escapeHtml(input: string): string;