rivet-design 0.18.4 → 0.19.1
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.
- package/README.md +1 -1
- package/README.npm.md +1 -1
- package/dist/agent-variants/PreviewRuntime.d.ts +100 -0
- package/dist/agent-variants/PreviewRuntime.d.ts.map +1 -0
- package/dist/agent-variants/PreviewRuntime.js +577 -0
- package/dist/agent-variants/PreviewRuntime.js.map +1 -0
- package/dist/agent-variants/WorkspaceInventory.d.ts +81 -0
- package/dist/agent-variants/WorkspaceInventory.d.ts.map +1 -0
- package/dist/agent-variants/WorkspaceInventory.js +172 -0
- package/dist/agent-variants/WorkspaceInventory.js.map +1 -0
- package/dist/agent-variants/WorkspaceProvisioning.d.ts +40 -0
- package/dist/agent-variants/WorkspaceProvisioning.d.ts.map +1 -0
- package/dist/agent-variants/WorkspaceProvisioning.js +419 -0
- package/dist/agent-variants/WorkspaceProvisioning.js.map +1 -0
- package/dist/agent-variants/WorktreeOrchestrator.d.ts +9 -178
- package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
- package/dist/agent-variants/WorktreeOrchestrator.js +190 -2213
- package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
- package/dist/agent-variants/designContextArtifacts.d.ts +25 -0
- package/dist/agent-variants/designContextArtifacts.d.ts.map +1 -0
- package/dist/agent-variants/designContextArtifacts.js +471 -0
- package/dist/agent-variants/designContextArtifacts.js.map +1 -0
- package/dist/agent-variants/variant-project-runtime.d.ts +40 -0
- package/dist/agent-variants/variant-project-runtime.d.ts.map +1 -0
- package/dist/agent-variants/variant-project-runtime.js +3 -0
- package/dist/agent-variants/variant-project-runtime.js.map +1 -0
- package/dist/agent-variants/variantWorkspaceFiles.d.ts +44 -0
- package/dist/agent-variants/variantWorkspaceFiles.d.ts.map +1 -0
- package/dist/agent-variants/variantWorkspaceFiles.js +426 -0
- package/dist/agent-variants/variantWorkspaceFiles.js.map +1 -0
- package/dist/agent-variants/variantsTelemetry.d.ts +189 -0
- package/dist/agent-variants/variantsTelemetry.d.ts.map +1 -0
- package/dist/agent-variants/variantsTelemetry.js +160 -0
- package/dist/agent-variants/variantsTelemetry.js.map +1 -0
- package/dist/cli/commands/mcpServe.d.ts.map +1 -1
- package/dist/cli/commands/mcpServe.js +27 -2
- package/dist/cli/commands/mcpServe.js.map +1 -1
- package/dist/cli/commands/profile.d.ts.map +1 -1
- package/dist/cli/commands/profile.js +15 -1
- package/dist/cli/commands/profile.js.map +1 -1
- package/dist/cli/router.d.ts.map +1 -1
- package/dist/cli/router.js +2 -1
- package/dist/cli/router.js.map +1 -1
- package/dist/routes/library/profiles.d.ts.map +1 -1
- package/dist/routes/library/profiles.js +46 -0
- package/dist/routes/library/profiles.js.map +1 -1
- package/dist/routes/referenceProfiles.d.ts +2 -0
- package/dist/routes/referenceProfiles.d.ts.map +1 -0
- package/dist/routes/referenceProfiles.js +79 -0
- package/dist/routes/referenceProfiles.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +2 -0
- package/dist/server.js.map +1 -1
- package/dist/services/TelemetryService.d.ts +1 -1
- package/dist/services/TelemetryService.d.ts.map +1 -1
- package/dist/services/TelemetryService.js.map +1 -1
- package/dist/services/profiles/DesignProfiles.d.ts +18 -0
- package/dist/services/profiles/DesignProfiles.d.ts.map +1 -1
- package/dist/services/profiles/DesignProfiles.js +129 -0
- package/dist/services/profiles/DesignProfiles.js.map +1 -1
- package/dist/services/profiles/ProfileMedia.d.ts +1 -0
- package/dist/services/profiles/ProfileMedia.d.ts.map +1 -1
- package/dist/services/profiles/ProfileMedia.js +5 -1
- package/dist/services/profiles/ProfileMedia.js.map +1 -1
- package/dist/storage/profiles/ProfileRecords.d.ts +2 -0
- package/dist/storage/profiles/ProfileRecords.d.ts.map +1 -1
- package/dist/storage/profiles/ProfileRecords.js +34 -0
- package/dist/storage/profiles/ProfileRecords.js.map +1 -1
- package/dist/types/design-library.d.ts +50 -0
- package/dist/types/design-library.d.ts.map +1 -0
- package/dist/types/design-library.js +32 -0
- package/dist/types/design-library.js.map +1 -0
- package/dist/types/reference-onboarding.d.ts +2 -2
- package/dist/utils/skills/claude-skill.d.ts +1 -1
- package/dist/utils/skills/claude-skill.d.ts.map +1 -1
- package/dist/utils/skills/claude-skill.js +1 -1
- package/dist/utils/skills/claude-skill.js.map +1 -1
- package/dist/utils/skills/cli-guidance.d.ts +1 -1
- package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
- package/dist/utils/skills/cli-guidance.js +6 -4
- package/dist/utils/skills/cli-guidance.js.map +1 -1
- package/dist/utils/skills/codex-skill.d.ts +1 -1
- package/dist/utils/skills/codex-skill.d.ts.map +1 -1
- package/dist/utils/skills/codex-skill.js +2 -2
- package/package.json +1 -1
- package/src/ui/dist/assets/LibraryApp-Sm0rsDtm.js +36 -0
- package/src/ui/dist/assets/main-5v9Ic8BN.js +438 -0
- package/src/ui/dist/assets/main-Ky91HHF_.css +1 -0
- package/src/ui/dist/index.html +2 -2
- package/src/ui/dist/assets/LibraryApp-Cxdyy4oV.js +0 -21
- package/src/ui/dist/assets/main-B-LY2LQB.css +0 -1
- package/src/ui/dist/assets/main-CPHvvBUN.js +0 -438
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ActiveProjectContext, ActiveVariantSnapshot, DesignContextEntry, ProjectContext, VariantSessionArtifact } from './contracts';
|
|
2
|
+
import type { VariantDesignSource } from '../services/VariantHistoryService';
|
|
3
|
+
export declare const enrichDesignSource: (design: ActiveVariantSnapshot["design"]) => ActiveVariantSnapshot["design"];
|
|
4
|
+
export declare const toActiveProjectContext: (projectContext: ProjectContext) => ActiveProjectContext;
|
|
5
|
+
export declare const buildSessionArtifacts: (sessionId: string, projectContext: ProjectContext) => VariantSessionArtifact[];
|
|
6
|
+
type ResolvedDesignContextArtifact = VariantSessionArtifact & {
|
|
7
|
+
content: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const findDesignContextArtifact: (projectContext: ProjectContext, artifactId: string) => ResolvedDesignContextArtifact | undefined;
|
|
10
|
+
export declare const buildResolvedDesignContextArtifacts: (projectContext: ProjectContext) => ResolvedDesignContextArtifact[];
|
|
11
|
+
export declare const addDesignContextArtifact: (artifactsByContent: Map<string, ResolvedDesignContextArtifact & {
|
|
12
|
+
usedByVariantCount: number;
|
|
13
|
+
}>, artifact: ResolvedDesignContextArtifact) => void;
|
|
14
|
+
export declare const buildDesignContextRawUrl: (sessionId: string, artifactId: string) => string;
|
|
15
|
+
export declare const buildDesignContextViewUrl: (sessionId: string, artifactId: string) => string;
|
|
16
|
+
export declare const buildDesignContextViewerDocument: (artifact: ResolvedDesignContextArtifact) => string;
|
|
17
|
+
export declare const renderDesignMarkdown: (markdown: string, artifactLabel: string) => string;
|
|
18
|
+
export declare const renderInlineMarkdown: (value: string) => string;
|
|
19
|
+
export declare const escapeHtml: (value: string) => string;
|
|
20
|
+
export declare const resolveDesignArtifact: (entry: DesignContextEntry | undefined) => {
|
|
21
|
+
markdown: string;
|
|
22
|
+
source: VariantDesignSource;
|
|
23
|
+
} | null;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=designContextArtifacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"designContextArtifacts.d.ts","sourceRoot":"","sources":["../../src/agent-variants/designContextArtifacts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,sBAAsB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAK7E,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,qBAAqB,CAAC,QAAQ,CAAC,KACtC,qBAAqB,CAAC,QAAQ,CAMhC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,gBAAgB,cAAc,KAC7B,oBAuDF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,WAAW,MAAM,EACjB,gBAAgB,cAAc,KAC7B,sBAAsB,EAOxB,CAAC;AAEF,KAAK,6BAA6B,GAAG,sBAAsB,GAAG;IAC5D,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,gBAAgB,cAAc,EAC9B,YAAY,MAAM,KACjB,6BAA6B,GAAG,SAIlC,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAC9C,gBAAgB,cAAc,KAC7B,6BAA6B,EA+C/B,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,oBAAoB,GAAG,CACrB,MAAM,EACN,6BAA6B,GAAG;IAAE,kBAAkB,EAAE,MAAM,CAAA;CAAE,CAC/D,EACD,UAAU,6BAA6B,KACtC,IAUF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,WAAW,MAAM,EACjB,YAAY,MAAM,KACjB,MAEF,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,WAAW,MAAM,EACjB,YAAY,MAAM,KACjB,MAEF,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAC3C,UAAU,6BAA6B,KACtC,MAoMF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,UAAU,MAAM,EAChB,eAAe,MAAM,KACpB,MA0GF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,OAAO,MAAM,KAAG,MAKpD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,MAO1C,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,OAAO,kBAAkB,GAAG,SAAS,KACpC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,mBAAmB,CAAA;CAAE,GAAG,IAmBtD,CAAC"}
|
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveDesignArtifact = exports.escapeHtml = exports.renderInlineMarkdown = exports.renderDesignMarkdown = exports.buildDesignContextViewerDocument = exports.buildDesignContextViewUrl = exports.buildDesignContextRawUrl = exports.addDesignContextArtifact = exports.buildResolvedDesignContextArtifacts = exports.findDesignContextArtifact = exports.buildSessionArtifacts = exports.toActiveProjectContext = exports.enrichDesignSource = void 0;
|
|
4
|
+
const designCatalog_1 = require("../services/templates/designCatalog");
|
|
5
|
+
const DESIGN_CONTEXT_ROUTE_SEGMENT = 'design-md';
|
|
6
|
+
const DESIGN_CONTEXT_VIEW_SEGMENT = 'view';
|
|
7
|
+
const enrichDesignSource = (design) => {
|
|
8
|
+
if (!design || design.kind !== 'slug')
|
|
9
|
+
return design;
|
|
10
|
+
return {
|
|
11
|
+
...design,
|
|
12
|
+
displayName: (0, designCatalog_1.getDesignSystemBySlug)(design.slug)?.name ?? design.slug,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.enrichDesignSource = enrichDesignSource;
|
|
16
|
+
const toActiveProjectContext = (projectContext) => {
|
|
17
|
+
const sourceCount = projectContext.variantContext?.userContext.filter((source) => source.transport !== 'prompt').length ?? 0;
|
|
18
|
+
const hasSourceContextSummary = Boolean(sourceCount > 0 ||
|
|
19
|
+
(projectContext.variantContext?.rivetMetadata.length ?? 0) > 0);
|
|
20
|
+
const activeSourceContext = hasSourceContextSummary
|
|
21
|
+
? {
|
|
22
|
+
sourceCount,
|
|
23
|
+
isSourceGrounded: Boolean(sourceCount > 0 ||
|
|
24
|
+
projectContext.designContext?.length ||
|
|
25
|
+
projectContext.variantContext?.rivetMetadata.length),
|
|
26
|
+
}
|
|
27
|
+
: undefined;
|
|
28
|
+
if (projectContext.kind === 'existing') {
|
|
29
|
+
return {
|
|
30
|
+
kind: 'existing',
|
|
31
|
+
designContext: projectContext.designContext?.map((entry) => entry.kind === 'slug'
|
|
32
|
+
? { kind: 'slug', slug: entry.slug }
|
|
33
|
+
: { kind: 'markdown', label: entry.label }),
|
|
34
|
+
...(activeSourceContext ? { sourceContext: activeSourceContext } : {}),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
kind: 'fresh',
|
|
39
|
+
workspacePath: projectContext.workspacePath,
|
|
40
|
+
workspaceRoot: projectContext.workspaceRoot,
|
|
41
|
+
framework: projectContext.framework,
|
|
42
|
+
designContext: projectContext.designContext?.map((entry) => entry.kind === 'slug'
|
|
43
|
+
? { kind: 'slug', slug: entry.slug }
|
|
44
|
+
: { kind: 'markdown', label: entry.label }),
|
|
45
|
+
...(activeSourceContext ? { sourceContext: activeSourceContext } : {}),
|
|
46
|
+
...(projectContext.executionPlan
|
|
47
|
+
? {
|
|
48
|
+
executionPlan: {
|
|
49
|
+
mode: projectContext.executionPlan.mode,
|
|
50
|
+
confidence: projectContext.executionPlan.confidence,
|
|
51
|
+
reason: projectContext.executionPlan.reason,
|
|
52
|
+
assetCount: projectContext.executionPlan.assetPlan?.length ?? 0,
|
|
53
|
+
runtimeRequirementCount: projectContext.executionPlan.runtimeRequirements?.length ?? 0,
|
|
54
|
+
},
|
|
55
|
+
}
|
|
56
|
+
: {}),
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
exports.toActiveProjectContext = toActiveProjectContext;
|
|
60
|
+
const buildSessionArtifacts = (sessionId, projectContext) => {
|
|
61
|
+
const artifacts = (0, exports.buildResolvedDesignContextArtifacts)(projectContext);
|
|
62
|
+
return artifacts.map(({ content: _content, ...artifact }) => ({
|
|
63
|
+
...artifact,
|
|
64
|
+
rawUrl: (0, exports.buildDesignContextRawUrl)(sessionId, artifact.id),
|
|
65
|
+
viewUrl: (0, exports.buildDesignContextViewUrl)(sessionId, artifact.id),
|
|
66
|
+
}));
|
|
67
|
+
};
|
|
68
|
+
exports.buildSessionArtifacts = buildSessionArtifacts;
|
|
69
|
+
const findDesignContextArtifact = (projectContext, artifactId) => {
|
|
70
|
+
return (0, exports.buildResolvedDesignContextArtifacts)(projectContext).find((artifact) => artifact.id === artifactId);
|
|
71
|
+
};
|
|
72
|
+
exports.findDesignContextArtifact = findDesignContextArtifact;
|
|
73
|
+
const buildResolvedDesignContextArtifacts = (projectContext) => {
|
|
74
|
+
const designContext = projectContext.designContext;
|
|
75
|
+
if (!designContext || designContext.length === 0)
|
|
76
|
+
return [];
|
|
77
|
+
const artifactsByContent = new Map();
|
|
78
|
+
designContext.forEach((entry, slot) => {
|
|
79
|
+
if (!entry)
|
|
80
|
+
return;
|
|
81
|
+
if (entry.kind === 'slug') {
|
|
82
|
+
const markdown = (0, designCatalog_1.loadDesignSystemMarkdown)(entry.slug);
|
|
83
|
+
if (!markdown)
|
|
84
|
+
return;
|
|
85
|
+
const catalogEntry = (0, designCatalog_1.getDesignSystemBySlug)(entry.slug);
|
|
86
|
+
(0, exports.addDesignContextArtifact)(artifactsByContent, {
|
|
87
|
+
id: `design_context:${slot}:${entry.slug}`,
|
|
88
|
+
kind: 'design_context',
|
|
89
|
+
label: catalogEntry?.name ?? entry.slug,
|
|
90
|
+
...(catalogEntry?.description
|
|
91
|
+
? { summary: catalogEntry.description }
|
|
92
|
+
: {}),
|
|
93
|
+
status: 'ready',
|
|
94
|
+
source: 'static',
|
|
95
|
+
contentType: 'text/markdown',
|
|
96
|
+
content: markdown,
|
|
97
|
+
});
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
if (!entry.content)
|
|
101
|
+
return;
|
|
102
|
+
(0, exports.addDesignContextArtifact)(artifactsByContent, {
|
|
103
|
+
id: `design_context:${slot}:${entry.label}`,
|
|
104
|
+
kind: 'design_context',
|
|
105
|
+
label: entry.label,
|
|
106
|
+
status: 'ready',
|
|
107
|
+
source: 'agent_browser',
|
|
108
|
+
contentType: 'text/markdown',
|
|
109
|
+
content: entry.content,
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
return [...artifactsByContent.values()].map((artifact) => {
|
|
113
|
+
if (artifact.usedByVariantCount <= 1)
|
|
114
|
+
return artifact;
|
|
115
|
+
return {
|
|
116
|
+
...artifact,
|
|
117
|
+
summary: artifact.summary
|
|
118
|
+
? `${artifact.summary} Used by ${artifact.usedByVariantCount} directions.`
|
|
119
|
+
: `Used by ${artifact.usedByVariantCount} directions.`,
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
exports.buildResolvedDesignContextArtifacts = buildResolvedDesignContextArtifacts;
|
|
124
|
+
const addDesignContextArtifact = (artifactsByContent, artifact) => {
|
|
125
|
+
const existing = artifactsByContent.get(artifact.content);
|
|
126
|
+
if (existing) {
|
|
127
|
+
existing.usedByVariantCount += 1;
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
artifactsByContent.set(artifact.content, {
|
|
131
|
+
...artifact,
|
|
132
|
+
usedByVariantCount: 1,
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
exports.addDesignContextArtifact = addDesignContextArtifact;
|
|
136
|
+
const buildDesignContextRawUrl = (sessionId, artifactId) => {
|
|
137
|
+
return `/api/variants/${encodeURIComponent(sessionId)}/${DESIGN_CONTEXT_ROUTE_SEGMENT}/${encodeURIComponent(artifactId)}`;
|
|
138
|
+
};
|
|
139
|
+
exports.buildDesignContextRawUrl = buildDesignContextRawUrl;
|
|
140
|
+
const buildDesignContextViewUrl = (sessionId, artifactId) => {
|
|
141
|
+
return `${(0, exports.buildDesignContextRawUrl)(sessionId, artifactId)}/${DESIGN_CONTEXT_VIEW_SEGMENT}`;
|
|
142
|
+
};
|
|
143
|
+
exports.buildDesignContextViewUrl = buildDesignContextViewUrl;
|
|
144
|
+
const buildDesignContextViewerDocument = (artifact) => {
|
|
145
|
+
const title = `${artifact.label} DESIGN.md`;
|
|
146
|
+
const visualHtml = (0, exports.renderDesignMarkdown)(artifact.content, artifact.label);
|
|
147
|
+
return `<!doctype html>
|
|
148
|
+
<html lang="en">
|
|
149
|
+
<head>
|
|
150
|
+
<meta charset="utf-8" />
|
|
151
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
152
|
+
<title>${(0, exports.escapeHtml)(title)}</title>
|
|
153
|
+
<style>
|
|
154
|
+
:root {
|
|
155
|
+
color-scheme: dark;
|
|
156
|
+
--font-main: 'Satoshi', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
157
|
+
--font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
|
|
158
|
+
--main: #1C1C20;
|
|
159
|
+
--main-light: #1E1E22;
|
|
160
|
+
--main-input: #2E2E2E;
|
|
161
|
+
--main-border: #232328;
|
|
162
|
+
--main-hover: #404040;
|
|
163
|
+
--content: #ffffff;
|
|
164
|
+
--content-muted: #d1d5db;
|
|
165
|
+
--content-subtle: #9ca3af;
|
|
166
|
+
--divider: #4b5563;
|
|
167
|
+
--primary: #FF3300;
|
|
168
|
+
--primary-border: #ff6b35;
|
|
169
|
+
}
|
|
170
|
+
* { box-sizing: border-box; }
|
|
171
|
+
body {
|
|
172
|
+
margin: 0;
|
|
173
|
+
min-height: 100vh;
|
|
174
|
+
background: var(--main);
|
|
175
|
+
color: var(--content);
|
|
176
|
+
font-family: var(--font-main);
|
|
177
|
+
}
|
|
178
|
+
.page-shell {
|
|
179
|
+
min-height: 100vh;
|
|
180
|
+
padding: 22px 28px 56px;
|
|
181
|
+
}
|
|
182
|
+
.topbar {
|
|
183
|
+
display: flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
justify-content: space-between;
|
|
186
|
+
margin-bottom: 28px;
|
|
187
|
+
}
|
|
188
|
+
.brand {
|
|
189
|
+
display: inline-flex;
|
|
190
|
+
align-items: center;
|
|
191
|
+
min-height: 28px;
|
|
192
|
+
}
|
|
193
|
+
.brand-logo {
|
|
194
|
+
display: block;
|
|
195
|
+
width: 64px;
|
|
196
|
+
height: auto;
|
|
197
|
+
}
|
|
198
|
+
.avatar {
|
|
199
|
+
width: 28px;
|
|
200
|
+
height: 28px;
|
|
201
|
+
border: 1px solid var(--main-border);
|
|
202
|
+
border-radius: 8px;
|
|
203
|
+
background: var(--main-light);
|
|
204
|
+
}
|
|
205
|
+
main {
|
|
206
|
+
width: min(1120px, calc(100vw - 56px));
|
|
207
|
+
margin: 0 auto;
|
|
208
|
+
}
|
|
209
|
+
.document {
|
|
210
|
+
overflow: hidden;
|
|
211
|
+
border: 1px solid var(--main-border);
|
|
212
|
+
border-radius: 22px;
|
|
213
|
+
background: var(--main-light);
|
|
214
|
+
box-shadow: 0 18px 60px rgb(0 0 0 / 18%);
|
|
215
|
+
}
|
|
216
|
+
.document-title {
|
|
217
|
+
padding: 42px 46px 32px;
|
|
218
|
+
}
|
|
219
|
+
.eyebrow {
|
|
220
|
+
margin: 0 0 14px;
|
|
221
|
+
color: var(--content-subtle);
|
|
222
|
+
font-size: 0.68rem;
|
|
223
|
+
font-weight: 700;
|
|
224
|
+
letter-spacing: 0.16em;
|
|
225
|
+
text-transform: uppercase;
|
|
226
|
+
}
|
|
227
|
+
.file-title {
|
|
228
|
+
margin: 0;
|
|
229
|
+
color: var(--content);
|
|
230
|
+
font-size: clamp(2.35rem, 6vw, 4.9rem);
|
|
231
|
+
font-weight: 600;
|
|
232
|
+
letter-spacing: -0.07em;
|
|
233
|
+
line-height: 0.94;
|
|
234
|
+
}
|
|
235
|
+
.visual {
|
|
236
|
+
border-top: 1px solid var(--main-border);
|
|
237
|
+
max-width: none;
|
|
238
|
+
margin: 0 auto;
|
|
239
|
+
padding: 36px 46px 48px;
|
|
240
|
+
}
|
|
241
|
+
.visual-inner {
|
|
242
|
+
max-width: 720px;
|
|
243
|
+
margin: 0 auto;
|
|
244
|
+
}
|
|
245
|
+
.visual h1,
|
|
246
|
+
.visual h2,
|
|
247
|
+
.visual h3 {
|
|
248
|
+
margin: 1.2em 0 0.4em;
|
|
249
|
+
color: var(--content);
|
|
250
|
+
font-weight: 600;
|
|
251
|
+
letter-spacing: -0.02em;
|
|
252
|
+
line-height: 1.15;
|
|
253
|
+
}
|
|
254
|
+
.visual h1:first-child,
|
|
255
|
+
.visual h2:first-child,
|
|
256
|
+
.visual h3:first-child {
|
|
257
|
+
margin-top: 0;
|
|
258
|
+
}
|
|
259
|
+
.visual h1 { font-size: 1.25rem; }
|
|
260
|
+
.visual h2 { font-size: 1.1rem; }
|
|
261
|
+
.visual h3 { font-size: 1rem; }
|
|
262
|
+
.visual h2 + p,
|
|
263
|
+
.visual h2 + ul {
|
|
264
|
+
border-left: 1px solid var(--main-border);
|
|
265
|
+
padding-left: 14px;
|
|
266
|
+
}
|
|
267
|
+
.visual p,
|
|
268
|
+
.visual li,
|
|
269
|
+
.visual blockquote {
|
|
270
|
+
color: var(--content-muted);
|
|
271
|
+
font-size: 0.88rem;
|
|
272
|
+
line-height: 1.6;
|
|
273
|
+
}
|
|
274
|
+
.visual strong {
|
|
275
|
+
color: var(--content);
|
|
276
|
+
font-weight: 650;
|
|
277
|
+
}
|
|
278
|
+
.visual a {
|
|
279
|
+
color: var(--primary-border);
|
|
280
|
+
}
|
|
281
|
+
.visual ul {
|
|
282
|
+
display: grid;
|
|
283
|
+
gap: 8px;
|
|
284
|
+
padding-left: 1.1rem;
|
|
285
|
+
}
|
|
286
|
+
.visual blockquote {
|
|
287
|
+
margin: 18px 0;
|
|
288
|
+
border-left: 3px solid var(--primary);
|
|
289
|
+
padding-left: 14px;
|
|
290
|
+
color: var(--content-subtle);
|
|
291
|
+
}
|
|
292
|
+
.visual code {
|
|
293
|
+
border-radius: 6px;
|
|
294
|
+
border: 1px solid var(--main-border);
|
|
295
|
+
background: var(--main-input);
|
|
296
|
+
color: var(--content);
|
|
297
|
+
padding: 0.12rem 0.34rem;
|
|
298
|
+
font-family: var(--font-mono);
|
|
299
|
+
font-size: 0.92em;
|
|
300
|
+
}
|
|
301
|
+
pre {
|
|
302
|
+
margin: 0;
|
|
303
|
+
overflow: auto;
|
|
304
|
+
background: var(--main);
|
|
305
|
+
color: var(--content-muted);
|
|
306
|
+
padding: 16px;
|
|
307
|
+
font: 0.78rem/1.55 var(--font-mono);
|
|
308
|
+
white-space: pre-wrap;
|
|
309
|
+
word-break: break-word;
|
|
310
|
+
}
|
|
311
|
+
@media (max-width: 900px) {
|
|
312
|
+
.page-shell { padding: 18px 12px 34px; }
|
|
313
|
+
.topbar { margin-bottom: 18px; padding: 0 4px; }
|
|
314
|
+
main { width: min(100vw - 24px, 760px); }
|
|
315
|
+
.document { border-radius: 18px; }
|
|
316
|
+
.document-title { padding: 30px 24px 24px; }
|
|
317
|
+
.file-title { font-size: clamp(2rem, 12vw, 3.6rem); }
|
|
318
|
+
.visual { padding: 26px 24px 34px; }
|
|
319
|
+
}
|
|
320
|
+
</style>
|
|
321
|
+
</head>
|
|
322
|
+
<body>
|
|
323
|
+
<div class="page-shell">
|
|
324
|
+
<header class="topbar" aria-label="Rivet">
|
|
325
|
+
<div class="brand"><img class="brand-logo" src="/assets/logo.png" alt="Rivet" /></div>
|
|
326
|
+
<div class="avatar" aria-hidden="true"></div>
|
|
327
|
+
</header>
|
|
328
|
+
<main>
|
|
329
|
+
<article class="document" id="designmd-visual" aria-label="DesignMD artifact">
|
|
330
|
+
<div class="document-title">
|
|
331
|
+
<p class="eyebrow">Design Context</p>
|
|
332
|
+
<h1 class="file-title">${(0, exports.escapeHtml)(title)}</h1>
|
|
333
|
+
</div>
|
|
334
|
+
<div class="visual"><div class="visual-inner">${visualHtml}</div></div>
|
|
335
|
+
</article>
|
|
336
|
+
</main>
|
|
337
|
+
</div>
|
|
338
|
+
</body>
|
|
339
|
+
</html>`;
|
|
340
|
+
};
|
|
341
|
+
exports.buildDesignContextViewerDocument = buildDesignContextViewerDocument;
|
|
342
|
+
const renderDesignMarkdown = (markdown, artifactLabel) => {
|
|
343
|
+
const lines = markdown.replace(/\r\n/g, '\n').split('\n');
|
|
344
|
+
const output = [];
|
|
345
|
+
const paragraph = [];
|
|
346
|
+
const listItems = [];
|
|
347
|
+
const codeLines = [];
|
|
348
|
+
let isCodeBlock = false;
|
|
349
|
+
let skippedFirstH1 = false;
|
|
350
|
+
const flushParagraph = () => {
|
|
351
|
+
if (paragraph.length === 0)
|
|
352
|
+
return;
|
|
353
|
+
output.push(`<p>${(0, exports.renderInlineMarkdown)(paragraph.join(' '))}</p>`);
|
|
354
|
+
paragraph.length = 0;
|
|
355
|
+
};
|
|
356
|
+
const flushList = () => {
|
|
357
|
+
if (listItems.length === 0)
|
|
358
|
+
return;
|
|
359
|
+
output.push(`<ul>${listItems.map((item) => `<li>${(0, exports.renderInlineMarkdown)(item)}</li>`).join('')}</ul>`);
|
|
360
|
+
listItems.length = 0;
|
|
361
|
+
};
|
|
362
|
+
const flushCode = () => {
|
|
363
|
+
if (codeLines.length === 0)
|
|
364
|
+
return;
|
|
365
|
+
output.push(`<pre>${(0, exports.escapeHtml)(codeLines.join('\n'))}</pre>`);
|
|
366
|
+
codeLines.length = 0;
|
|
367
|
+
};
|
|
368
|
+
lines.forEach((line) => {
|
|
369
|
+
if (line.trim().startsWith('```')) {
|
|
370
|
+
if (isCodeBlock) {
|
|
371
|
+
flushCode();
|
|
372
|
+
isCodeBlock = false;
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
flushParagraph();
|
|
376
|
+
flushList();
|
|
377
|
+
isCodeBlock = true;
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
if (isCodeBlock) {
|
|
381
|
+
codeLines.push(line);
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
const trimmed = line.trim();
|
|
385
|
+
if (!trimmed) {
|
|
386
|
+
flushParagraph();
|
|
387
|
+
flushList();
|
|
388
|
+
return;
|
|
389
|
+
}
|
|
390
|
+
if (/^---+$/.test(trimmed)) {
|
|
391
|
+
flushParagraph();
|
|
392
|
+
flushList();
|
|
393
|
+
output.push('<hr />');
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
const headingMatch = trimmed.match(/^(#{1,6})\s+(.+)$/);
|
|
397
|
+
if (headingMatch) {
|
|
398
|
+
flushParagraph();
|
|
399
|
+
flushList();
|
|
400
|
+
const level = Math.min(headingMatch[1].length, 3);
|
|
401
|
+
const headingText = headingMatch[2].trim();
|
|
402
|
+
const isDuplicateTitle = headingText === artifactLabel ||
|
|
403
|
+
headingText === `${artifactLabel} DESIGN.md`;
|
|
404
|
+
if (level === 1 && !skippedFirstH1 && isDuplicateTitle) {
|
|
405
|
+
skippedFirstH1 = true;
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
output.push(`<h${level}>${(0, exports.renderInlineMarkdown)(headingText)}</h${level}>`);
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
const listMatch = trimmed.match(/^[-*]\s+(.+)$/);
|
|
412
|
+
if (listMatch) {
|
|
413
|
+
flushParagraph();
|
|
414
|
+
listItems.push(listMatch[1]);
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
const quoteMatch = trimmed.match(/^>\s?(.+)$/);
|
|
418
|
+
if (quoteMatch) {
|
|
419
|
+
flushParagraph();
|
|
420
|
+
flushList();
|
|
421
|
+
output.push(`<blockquote>${(0, exports.renderInlineMarkdown)(quoteMatch[1])}</blockquote>`);
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
paragraph.push(trimmed);
|
|
425
|
+
});
|
|
426
|
+
flushCode();
|
|
427
|
+
flushParagraph();
|
|
428
|
+
flushList();
|
|
429
|
+
return output.join('\n');
|
|
430
|
+
};
|
|
431
|
+
exports.renderDesignMarkdown = renderDesignMarkdown;
|
|
432
|
+
const renderInlineMarkdown = (value) => {
|
|
433
|
+
return (0, exports.escapeHtml)(value)
|
|
434
|
+
.replace(/\*\*([^*]+)\*\*/g, '<strong>$1</strong>')
|
|
435
|
+
.replace(/`([^`]+)`/g, '<code>$1</code>')
|
|
436
|
+
.replace(/\*([^*]+)\*/g, '<em>$1</em>');
|
|
437
|
+
};
|
|
438
|
+
exports.renderInlineMarkdown = renderInlineMarkdown;
|
|
439
|
+
const escapeHtml = (value) => {
|
|
440
|
+
return value
|
|
441
|
+
.replace(/&/g, '&')
|
|
442
|
+
.replace(/</g, '<')
|
|
443
|
+
.replace(/>/g, '>')
|
|
444
|
+
.replace(/"/g, '"')
|
|
445
|
+
.replace(/'/g, ''');
|
|
446
|
+
};
|
|
447
|
+
exports.escapeHtml = escapeHtml;
|
|
448
|
+
const resolveDesignArtifact = (entry) => {
|
|
449
|
+
if (!entry)
|
|
450
|
+
return null;
|
|
451
|
+
if (entry.kind === 'markdown') {
|
|
452
|
+
return {
|
|
453
|
+
markdown: entry.content,
|
|
454
|
+
source: { kind: 'markdown', label: entry.label },
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
const markdown = (0, designCatalog_1.loadDesignSystemMarkdown)(entry.slug);
|
|
458
|
+
if (!markdown)
|
|
459
|
+
return null;
|
|
460
|
+
const catalogEntry = (0, designCatalog_1.getDesignSystemBySlug)(entry.slug);
|
|
461
|
+
return {
|
|
462
|
+
markdown,
|
|
463
|
+
source: {
|
|
464
|
+
kind: 'slug',
|
|
465
|
+
slug: entry.slug,
|
|
466
|
+
label: catalogEntry?.name ?? entry.slug,
|
|
467
|
+
},
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
exports.resolveDesignArtifact = resolveDesignArtifact;
|
|
471
|
+
//# sourceMappingURL=designContextArtifacts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"designContextArtifacts.js","sourceRoot":"","sources":["../../src/agent-variants/designContextArtifacts.ts"],"names":[],"mappings":";;;AAAA,uEAG6C;AAU7C,MAAM,4BAA4B,GAAG,WAAW,CAAC;AACjD,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAEpC,MAAM,kBAAkB,GAAG,CAChC,MAAuC,EACN,EAAE;IACnC,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,IAAI,KAAK,MAAM;QAAE,OAAO,MAAM,CAAC;IACrD,OAAO;QACL,GAAG,MAAM;QACT,WAAW,EAAE,IAAA,qCAAqB,EAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,MAAM,CAAC,IAAI;KACrE,CAAC;AACJ,CAAC,C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2
|
+
import type { Framework } from '../services/ProjectDetectionService';
|
|
3
|
+
import type { TemplateBundle } from '../services/templates/viteReactTs';
|
|
4
|
+
import type { DesignContextEntry } from './contracts';
|
|
5
|
+
export interface WorktreeManagerLike {
|
|
6
|
+
createWorktrees(sessionId: string, count: number, instanceKeyPrefix?: string): Promise<string[]>;
|
|
7
|
+
forkWorktreesFrom?(sourceWorktreePath: string, sessionId: string, count: number, instanceKeyPrefix?: string): Promise<string[]>;
|
|
8
|
+
getDiff(worktreePath: string): Promise<string>;
|
|
9
|
+
getGitRoot?(): Promise<string>;
|
|
10
|
+
applyDiffToProject?(diff: string, projectPath: string): Promise<void>;
|
|
11
|
+
cleanupSession(sessionId: string, freshDestinationParent?: string): Promise<void>;
|
|
12
|
+
getFreePort(): Promise<number>;
|
|
13
|
+
findFreePortFrom(startPort: number): Promise<number>;
|
|
14
|
+
releasePort?(port: number): void;
|
|
15
|
+
startDevServer(worktreePath: string, port: number, cmd: string, args: string[], env: Record<string, string>): Promise<ChildProcess>;
|
|
16
|
+
stopDevServer(proc: ChildProcess, timeoutMs?: number): Promise<void>;
|
|
17
|
+
getProjectCwdInWorktree(worktreePath: string): Promise<string>;
|
|
18
|
+
createFreshWorktrees?(sessionId: string, count: number, template: TemplateBundle, designContext: ReadonlyArray<DesignContextEntry | undefined> | undefined, destinationParent: string): Promise<string[]>;
|
|
19
|
+
moveWorktreeToHistory?(srcWorktreePath: string, historyDir: string, folderName: string): string;
|
|
20
|
+
}
|
|
21
|
+
type DevServerProjectEnvironment = {
|
|
22
|
+
projectPath: string;
|
|
23
|
+
framework: Exclude<Framework, 'static'>;
|
|
24
|
+
packageManager: string;
|
|
25
|
+
devCommand: string;
|
|
26
|
+
defaultPort?: number;
|
|
27
|
+
buildDevCommand?: (port: number) => {
|
|
28
|
+
cmd: string;
|
|
29
|
+
args: string[];
|
|
30
|
+
env: Record<string, string>;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type StaticProjectEnvironment = {
|
|
34
|
+
projectPath: string;
|
|
35
|
+
framework: 'static';
|
|
36
|
+
entryPath: string;
|
|
37
|
+
};
|
|
38
|
+
export type ProjectEnvironment = DevServerProjectEnvironment | StaticProjectEnvironment;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=variant-project-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant-project-runtime.d.ts","sourceRoot":"","sources":["../../src/agent-variants/variant-project-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,WAAW,mBAAmB;IAClC,eAAe,CACb,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,iBAAiB,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACrB,iBAAiB,CAAC,CAChB,kBAAkB,EAAE,MAAM,EAC1B,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,iBAAiB,CAAC,EAAE,MAAM,GACzB,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACrB,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/C,UAAU,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/B,kBAAkB,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,cAAc,CACZ,SAAS,EAAE,MAAM,EACjB,sBAAsB,CAAC,EAAE,MAAM,GAC9B,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,WAAW,IAAI,OAA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,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KAC7B,CAAC;CACH,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,QAAQ,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAC1B,2BAA2B,GAC3B,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variant-project-runtime.js","sourceRoot":"","sources":["../../src/agent-variants/variant-project-runtime.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { DevServerRecipe } from '../services/VariantHistoryService';
|
|
2
|
+
import type { ProjectContext } from './contracts';
|
|
3
|
+
export declare const ALLOWED_INERT_ASSET_EXTENSIONS: Set<string>;
|
|
4
|
+
export declare function estimateOutputBytes(output: unknown): number;
|
|
5
|
+
export declare function normalizeOutput(output: unknown): unknown;
|
|
6
|
+
export declare function isStrictlyInside(child: string, parent: string): boolean;
|
|
7
|
+
export declare function resolveAssetWithinBase(base: string, requestedPath: string): string | undefined;
|
|
8
|
+
export declare function resolveStaticPreviewAssetBase(args: {
|
|
9
|
+
assetBase: string | undefined;
|
|
10
|
+
projectContext: ProjectContext;
|
|
11
|
+
}): string | undefined;
|
|
12
|
+
export declare function parseStaticPreviewOutput(output: unknown): {
|
|
13
|
+
html: string;
|
|
14
|
+
assetBase?: string;
|
|
15
|
+
} | null;
|
|
16
|
+
export declare function buildStaticPreviewDocument(input: {
|
|
17
|
+
html: string;
|
|
18
|
+
css?: string;
|
|
19
|
+
js?: string;
|
|
20
|
+
}): string;
|
|
21
|
+
export declare function countDiffFiles(diff: string): number;
|
|
22
|
+
export declare function countWorktreeFiles(destinationPath: string): number;
|
|
23
|
+
export declare const MATERIALIZE_EXCLUDE: Set<string>;
|
|
24
|
+
export declare const STATIC_PREVIEW_HISTORY_EXCLUDE: Set<string>;
|
|
25
|
+
export declare const STATIC_PREVIEW_HISTORY_FILE_EXTENSIONS: Set<string>;
|
|
26
|
+
export declare function copyStaticPreviewDirectory(src: string, dest: string): void;
|
|
27
|
+
export declare const defaultInstallDependencies: (worktreePath: string, options?: {
|
|
28
|
+
workspaceRoot: string;
|
|
29
|
+
force?: boolean;
|
|
30
|
+
signal?: AbortSignal;
|
|
31
|
+
}) => Promise<void>;
|
|
32
|
+
export declare const buildServeRecipeFromResolved: (snapshotRoot: string, dev: {
|
|
33
|
+
cwd: string;
|
|
34
|
+
cmd: string;
|
|
35
|
+
args: string[];
|
|
36
|
+
env: Record<string, string>;
|
|
37
|
+
}, port: number) => DevServerRecipe;
|
|
38
|
+
export declare const canInstallWithoutTouchingHost: (cwd: string) => boolean;
|
|
39
|
+
export declare const assertDevScriptExists: (cwd: string, scriptName: string) => void;
|
|
40
|
+
export declare function areSameVolume(a: string, b: string): boolean;
|
|
41
|
+
export declare function resolveNodeModulesSymlink(worktreePath: string): Promise<boolean>;
|
|
42
|
+
export declare const defaultMaterializeProject: (sourceWorktreePath: string, destinationPath: string) => Promise<void>;
|
|
43
|
+
export declare function synthesizeUnifiedBriefBody(prompt: string, index: number, total: number): string;
|
|
44
|
+
//# sourceMappingURL=variantWorkspaceFiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variantWorkspaceFiles.d.ts","sourceRoot":"","sources":["../../src/agent-variants/variantWorkspaceFiles.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAGzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAelD,eAAO,MAAM,8BAA8B,aA4BzC,CAAC;AAEH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAS3D;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CASxD;AAED,wBAAgB,gBAAgB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