paseo-plugin-genui 0.0.0-stage → 0.1.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.
- package/LICENSE +202 -0
- package/OVERVIEW.md +21 -0
- package/README.md +77 -2
- package/assets/fonts/Excalifont-OFL.txt +109 -0
- package/assets/fonts/Excalifont-Regular-latin.woff2 +0 -0
- package/assets/icon.png +0 -0
- package/assets/icon.svg +1 -0
- package/assets/screenshot-chat.png +0 -0
- package/assets/screenshot-gallery.png +0 -0
- package/assets/screenshot-playground.png +0 -0
- package/client/components/content.tsx +468 -0
- package/client/components/data.tsx +967 -0
- package/client/components/dev.tsx +998 -0
- package/client/components/diagram.tsx +513 -0
- package/client/components/inputs.tsx +994 -0
- package/client/components/layout.tsx +239 -0
- package/client/components/media.tsx +428 -0
- package/client/components/project.tsx +641 -0
- package/client/components/widgets.tsx +836 -0
- package/client/gallery.tsx +449 -0
- package/client/live-ui.tsx +525 -0
- package/client/loaders.ts +342 -0
- package/client/markdown.tsx +172 -0
- package/client/node-renderer.tsx +149 -0
- package/client/render.tsx +186 -0
- package/client/runtime.ts +103 -0
- package/client/settings.tsx +57 -0
- package/client/web.ts +186 -0
- package/gallery/Acceptance-baseline.ui +1 -0
- package/gallery/Acceptance-checklist.ui +14 -0
- package/gallery/Acceptance-evidence.ui +9 -0
- package/gallery/Acceptance.ui +1 -0
- package/gallery/Badge.ui +3 -0
- package/gallery/Benchmark-context.ui +8 -0
- package/gallery/Benchmark-hyperfine.ui +1 -0
- package/gallery/Benchmark-runs-list.ui +9 -0
- package/gallery/Benchmark-runs.ui +1 -0
- package/gallery/Benchmark-vitest.ui +1 -0
- package/gallery/Benchmark.ui +9 -0
- package/gallery/Board-bb-tasks.ui +1 -0
- package/gallery/Board-gh-issues.ui +1 -0
- package/gallery/Board-gh-prs.ui +1 -0
- package/gallery/Board.ui +12 -0
- package/gallery/Button-destructive.ui +4 -0
- package/gallery/Button.ui +5 -0
- package/gallery/Calendar.ui +15 -0
- package/gallery/CalendarHeatmap-short.ui +11 -0
- package/gallery/CalendarHeatmap.ui +4 -0
- package/gallery/Callout.ui +4 -0
- package/gallery/Card.ui +4 -0
- package/gallery/Carousel.ui +8 -0
- package/gallery/Changes-paths.ui +1 -0
- package/gallery/Changes-uncommitted.ui +1 -0
- package/gallery/Changes.ui +1 -0
- package/gallery/Chart-area.ui +3 -0
- package/gallery/Chart-funnel.ui +3 -0
- package/gallery/Chart-heatmap.ui +11 -0
- package/gallery/Chart-pie.ui +3 -0
- package/gallery/Chart-radar.ui +3 -0
- package/gallery/Chart-scatter.ui +4 -0
- package/gallery/Chart-stacked.ui +5 -0
- package/gallery/Chart.ui +3 -0
- package/gallery/Checklist.ui +6 -0
- package/gallery/Choice.ui +8 -0
- package/gallery/Code.ui +3 -0
- package/gallery/Commits-limit.ui +1 -0
- package/gallery/Commits.ui +1 -0
- package/gallery/Compare-conditions.ui +4 -0
- package/gallery/Compare-three.ui +7 -0
- package/gallery/Compare.ui +4 -0
- package/gallery/Coverage-go.ui +1 -0
- package/gallery/Coverage-lcov.ui +1 -0
- package/gallery/Coverage-python.ui +1 -0
- package/gallery/Coverage.ui +1 -0
- package/gallery/DateInput.ui +5 -0
- package/gallery/Decision-percent.ui +10 -0
- package/gallery/Decision.ui +12 -0
- package/gallery/Dependencies-audit.ui +1 -0
- package/gallery/Dependencies-both.ui +1 -0
- package/gallery/Dependencies-list.ui +7 -0
- package/gallery/Dependencies-pip.ui +1 -0
- package/gallery/Dependencies-pnpm.ui +1 -0
- package/gallery/Dependencies.ui +1 -0
- package/gallery/Details.ui +4 -0
- package/gallery/Diagram-flow.ui +16 -0
- package/gallery/Diagram-sequence.ui +15 -0
- package/gallery/Diagram.ui +16 -0
- package/gallery/Diff.ui +3 -0
- package/gallery/Divider.ui +5 -0
- package/gallery/EditableTable.ui +9 -0
- package/gallery/Entity-list.ui +6 -0
- package/gallery/Entity.ui +8 -0
- package/gallery/Environments.ui +1 -0
- package/gallery/Estimate-points.ui +6 -0
- package/gallery/Estimate.ui +8 -0
- package/gallery/File.ui +4 -0
- package/gallery/Findings-biome.ui +1 -0
- package/gallery/Findings-eslint.ui +1 -0
- package/gallery/Findings-oxlint.ui +1 -0
- package/gallery/Findings-review.ui +1 -0
- package/gallery/Findings-ruff.ui +1 -0
- package/gallery/Findings-sarif.ui +1 -0
- package/gallery/Findings-ship.ui +11 -0
- package/gallery/Findings-tsc.ui +1 -0
- package/gallery/Findings.ui +7 -0
- package/gallery/Flashcards.ui +3 -0
- package/gallery/FollowUps.ui +4 -0
- package/gallery/Form.ui +8 -0
- package/gallery/Gallery-links.ui +8 -0
- package/gallery/Gallery-strip.ui +14 -0
- package/gallery/Gallery.ui +10 -0
- package/gallery/Gauge.ui +7 -0
- package/gallery/Grid.ui +8 -0
- package/gallery/Hotspots-photo.ui +8 -0
- package/gallery/Hotspots.ui +11 -0
- package/gallery/Icon.ui +5 -0
- package/gallery/Image.ui +4 -0
- package/gallery/ImageSearch-aspects.ui +6 -0
- package/gallery/ImageSearch.ui +4 -0
- package/gallery/Input.ui +5 -0
- package/gallery/Json-api.ui +1 -0
- package/gallery/Json.ui +8 -0
- package/gallery/KeyValue.ui +3 -0
- package/gallery/List-dots.ui +8 -0
- package/gallery/List.ui +8 -0
- package/gallery/ListEditor.ui +5 -0
- package/gallery/Logs-jsonl.ui +1 -0
- package/gallery/Logs-lines.ui +11 -0
- package/gallery/Logs-python.ui +1 -0
- package/gallery/Logs.ui +1 -0
- package/gallery/Map-city.ui +8 -0
- package/gallery/Map.ui +8 -0
- package/gallery/Metric.ui +3 -0
- package/gallery/OptionCards-multi.ui +10 -0
- package/gallery/OptionCards.ui +10 -0
- package/gallery/Pipeline-checks.ui +1 -0
- package/gallery/Pipeline-passed.ui +1 -0
- package/gallery/Pipeline-running.ui +1 -0
- package/gallery/Pipeline-stages.ui +13 -0
- package/gallery/Pipeline.ui +1 -0
- package/gallery/Plan.ui +9 -0
- package/gallery/Progress.ui +4 -0
- package/gallery/Provenance-deploy.ui +6 -0
- package/gallery/Provenance-no-receipt.ui +1 -0
- package/gallery/Provenance.ui +1 -0
- package/gallery/PullRequest.ui +1 -0
- package/gallery/Quiz.ui +6 -0
- package/gallery/Radio.ui +5 -0
- package/gallery/Rating.ui +5 -0
- package/gallery/Roadmap-sprint.ui +8 -0
- package/gallery/Roadmap-year.ui +9 -0
- package/gallery/Roadmap.ui +12 -0
- package/gallery/Row.ui +3 -0
- package/gallery/SegmentedBar-status.ui +8 -0
- package/gallery/SegmentedBar.ui +8 -0
- package/gallery/Select.ui +5 -0
- package/gallery/Slider.ui +7 -0
- package/gallery/Snippet.ui +3 -0
- package/gallery/Sources-chips.ui +4 -0
- package/gallery/Sources.ui +8 -0
- package/gallery/Sparkline.ui +6 -0
- package/gallery/Stack.ui +7 -0
- package/gallery/StackTrace-aggregate.ui +1 -0
- package/gallery/StackTrace-browser.ui +1 -0
- package/gallery/StackTrace-go.ui +1 -0
- package/gallery/StackTrace-java.ui +1 -0
- package/gallery/StackTrace-python.ui +1 -0
- package/gallery/StackTrace-rust.ui +1 -0
- package/gallery/StackTrace.ui +1 -0
- package/gallery/Status.ui +9 -0
- package/gallery/Stepper.ui +5 -0
- package/gallery/Steps.ui +8 -0
- package/gallery/Swatches-long-names.ui +4 -0
- package/gallery/Swatches-picker.ui +5 -0
- package/gallery/Swatches.ui +10 -0
- package/gallery/Table.ui +7 -0
- package/gallery/Tabs.ui +8 -0
- package/gallery/Tests-junit.ui +1 -0
- package/gallery/Tests-vitest-junit.ui +1 -0
- package/gallery/Tests-vitest.ui +1 -0
- package/gallery/Tests.ui +9 -0
- package/gallery/Text.ui +4 -0
- package/gallery/TextArea.ui +5 -0
- package/gallery/Threads-ids.ui +1 -0
- package/gallery/Threads.ui +1 -0
- package/gallery/Timeline.ui +8 -0
- package/gallery/Timer.ui +4 -0
- package/gallery/Toggle.ui +5 -0
- package/gallery/Transcript-text.ui +1 -0
- package/gallery/Transcript-untimed.ui +1 -0
- package/gallery/Transcript-whisper.ui +1 -0
- package/gallery/Transcript.ui +1 -0
- package/gallery/Tree.ui +3 -0
- package/gallery/Treemap-du.ui +1 -0
- package/gallery/Treemap-esbuild.ui +1 -0
- package/gallery/Treemap-tree.ui +7 -0
- package/gallery/Treemap.ui +18 -0
- package/gallery/Walkthrough.ui +9 -0
- package/gallery/Waterfall-har.ui +1 -0
- package/gallery/Waterfall-trace.ui +1 -0
- package/gallery/Waterfall.ui +11 -0
- package/gallery/data/acceptance/coil/viewport-lifecycle.json +25 -0
- package/gallery/data/acceptance/coil-gate.json +153 -0
- package/gallery/data/acceptance/orbit-baseline.json +163 -0
- package/gallery/data/acceptance/shots/gate-cell-opened.png +0 -0
- package/gallery/data/acceptance/shots/gate-light.png +0 -0
- package/gallery/data/acceptance/shots/gate-phone-dark.png +0 -0
- package/gallery/data/activity.json +1 -0
- package/gallery/data/bb-tasks-orb.json +420 -0
- package/gallery/data/biome.json +229 -0
- package/gallery/data/compare/status-after.png +0 -0
- package/gallery/data/compare/status-before.png +0 -0
- package/gallery/data/compare/status-dark-2x.png +0 -0
- package/gallery/data/compare/status-rerender.png +0 -0
- package/gallery/data/coverage-py.json +1 -0
- package/gallery/data/coverage-summary.json +1 -0
- package/gallery/data/coverage.out +23 -0
- package/gallery/data/deploys.json +1 -0
- package/gallery/data/device-runs.json +285 -0
- package/gallery/data/du-node-modules.txt +359 -0
- package/gallery/data/esbuild-meta.json +292 -0
- package/gallery/data/eslint.json +266 -0
- package/gallery/data/eslint.sarif +343 -0
- package/gallery/data/findings-review.json +76 -0
- package/gallery/data/gh-issues-nextjs.json +293 -0
- package/gallery/data/gh-pr-checks.json +272 -0
- package/gallery/data/gh-prs-nextjs.json +419 -0
- package/gallery/data/gh-run-failed.json +1 -0
- package/gallery/data/gh-run-passed.json +1 -0
- package/gallery/data/gh-run-running.json +1 -0
- package/gallery/data/github-release.json +57 -0
- package/gallery/data/hyperfine-startup.json +187 -0
- package/gallery/data/lcov.info +234 -0
- package/gallery/data/logs/media-sync.log +127 -0
- package/gallery/data/logs/thumbnailer.jsonl +17 -0
- package/gallery/data/logs/vitest-run.log +89 -0
- package/gallery/data/npm-audit.json +672 -0
- package/gallery/data/npm-outdated.json +179 -0
- package/gallery/data/oxlint.json +156 -0
- package/gallery/data/pip-outdated.json +68 -0
- package/gallery/data/pnpm-outdated.json +58 -0
- package/gallery/data/provenance/devicectl-install.json +35 -0
- package/gallery/data/provenance/install-timeout.log +4 -0
- package/gallery/data/provenance/iphone-install.json +72 -0
- package/gallery/data/provenance/iphone-no-receipt.json +57 -0
- package/gallery/data/provenance/live-home.jpg +0 -0
- package/gallery/data/provenance/live-probe.txt +10 -0
- package/gallery/data/provenance/xcodebuild-2811.log +19 -0
- package/gallery/data/provenance/xcodebuild-4712.log +19 -0
- package/gallery/data/pytest-junit.xml +64 -0
- package/gallery/data/python-org-trace.json +35 -0
- package/gallery/data/python-org.har +31 -0
- package/gallery/data/retry.ts +13 -0
- package/gallery/data/ruff.json +261 -0
- package/gallery/data/src/durations.py +63 -0
- package/gallery/data/src/json-logic.ts +156 -0
- package/gallery/data/src/mapMath.ts +135 -0
- package/gallery/data/src/semver/bump.go +73 -0
- package/gallery/data/traces/browser-error.json +5 -0
- package/gallery/data/traces/go/main.go +27 -0
- package/gallery/data/traces/go-panic.txt +16 -0
- package/gallery/data/traces/java-caused-by.txt +15 -0
- package/gallery/data/traces/node-aggregate.txt +30 -0
- package/gallery/data/traces/node-cause.txt +21 -0
- package/gallery/data/traces/py/deploy.json +5 -0
- package/gallery/data/traces/py/deploy.py +17 -0
- package/gallery/data/traces/py/settings.py +19 -0
- package/gallery/data/traces/python-chain.txt +30 -0
- package/gallery/data/traces/rust/main.rs +11 -0
- package/gallery/data/traces/rust-panic.txt +16 -0
- package/gallery/data/traces/shop/cart.mjs +19 -0
- package/gallery/data/traces/shop/pricing.mjs +12 -0
- package/gallery/data/traces/shop/status.mjs +9 -0
- package/gallery/data/traces/web/app.js +11 -0
- package/gallery/data/traces/web/index.html +1 -0
- package/gallery/data/traces/web/search.js +10 -0
- package/gallery/data/transcript/call-noisy.wav +0 -0
- package/gallery/data/transcript/call.json +362 -0
- package/gallery/data/transcript/call.wav +0 -0
- package/gallery/data/transcript/mlx-whisper-tiny.en-noisy.json +1 -0
- package/gallery/data/transcript/whisper-cpp-base.en-noisy.json +658 -0
- package/gallery/data/transcript/whisper-cpp-base.en.json +658 -0
- package/gallery/data/transcript/whisper-cpp-base.en.srt +16 -0
- package/gallery/data/transcript/whisper-cpp-tiny.en-noisy.json +619 -0
- package/gallery/data/tsc.txt +4 -0
- package/gallery/data/vitest-bench.json +119 -0
- package/gallery/data/vitest-junit.xml +133 -0
- package/gallery/data/vitest-report.json +612 -0
- package/gallery/images/bell.svg +10 -0
- package/gallery/images/bike.svg +47 -0
- package/gallery/images/footer-planet.webp +0 -0
- package/gallery/images/front-light.svg +13 -0
- package/gallery/images/golden-hour.webp +0 -0
- package/gallery/images/option-flowers.webp +0 -0
- package/gallery/images/option-hilltop.webp +0 -0
- package/gallery/images/option-meadow.webp +0 -0
- package/gallery/images/option-sky.webp +0 -0
- package/gallery/images/u-lock.svg +10 -0
- package/index.client.tsx +164 -0
- package/index.server.ts +216 -0
- package/package.json +50 -4
- package/paseo-plugin.json +14 -0
- package/server/data-source.ts +407 -0
- package/server/project.ts +981 -0
- package/server/web/address.ts +57 -0
- package/server/web/cache.ts +85 -0
- package/server/web/commons.ts +126 -0
- package/server/web/geocode.ts +40 -0
- package/server/web/image.ts +35 -0
- package/server/web/lookups.ts +248 -0
- package/server/web/net.ts +210 -0
- package/shared/core/acceptance.ts +744 -0
- package/shared/core/ast.ts +76 -0
- package/shared/core/benchmark.ts +743 -0
- package/shared/core/catalog.ts +733 -0
- package/shared/core/compare.ts +225 -0
- package/shared/core/coverage.ts +456 -0
- package/shared/core/data.ts +334 -0
- package/shared/core/decisions.ts +527 -0
- package/shared/core/dependencies.ts +604 -0
- package/shared/core/diagnostics.ts +24 -0
- package/shared/core/environments.ts +212 -0
- package/shared/core/evaluate.ts +737 -0
- package/shared/core/fields.ts +66 -0
- package/shared/core/findings.ts +1172 -0
- package/shared/core/form.ts +69 -0
- package/shared/core/index.ts +44 -0
- package/shared/core/junit.ts +252 -0
- package/shared/core/lexer.ts +275 -0
- package/shared/core/logs.ts +496 -0
- package/shared/core/markdown.ts +2374 -0
- package/shared/core/parser.ts +355 -0
- package/shared/core/perf-units.ts +228 -0
- package/shared/core/pipeline.ts +679 -0
- package/shared/core/project.ts +472 -0
- package/shared/core/provenance.ts +725 -0
- package/shared/core/stack-trace.ts +718 -0
- package/shared/core/streaming.ts +136 -0
- package/shared/core/test-results.ts +562 -0
- package/shared/core/thread-activity.ts +203 -0
- package/shared/core/tracking.ts +887 -0
- package/shared/core/transcript.ts +1364 -0
- package/shared/core/treemap.ts +446 -0
- package/shared/core/types.ts +70 -0
- package/shared/core/validate.ts +574 -0
- package/shared/core/waterfall.ts +536 -0
- package/shared/diagram/flowchart.ts +205 -0
- package/shared/diagram/layout.ts +440 -0
- package/shared/diagram/markdown.ts +135 -0
- package/shared/diagram/sequence.ts +122 -0
- package/shared/diagram/zoom.ts +114 -0
- package/shared/fallback.ts +120 -0
- package/shared/genui.test.ts +122 -0
- package/shared/instructions.ts +144 -0
- package/shared/logic/calendarMath.ts +130 -0
- package/shared/logic/chartMath.ts +289 -0
- package/shared/logic/choose-logic.ts +196 -0
- package/shared/logic/compare-logic.ts +270 -0
- package/shared/logic/content-model.ts +227 -0
- package/shared/logic/environments-logic.ts +53 -0
- package/shared/logic/explain-logic.ts +315 -0
- package/shared/logic/fieldLogic.ts +138 -0
- package/shared/logic/gallery-search.ts +71 -0
- package/shared/logic/icons.ts +322 -0
- package/shared/logic/json-logic.ts +153 -0
- package/shared/logic/mapMath.ts +133 -0
- package/shared/logic/project-logic.ts +39 -0
- package/shared/logic/references-model.ts +201 -0
- package/shared/logic/sketch.ts +165 -0
- package/shared/logic/supersession.ts +77 -0
- package/shared/logic/values.ts +133 -0
- package/shared/logic/widget-logic.ts +163 -0
- package/shared/rpc.ts +252 -0
- package/shared/segment.ts +81 -0
- package/shared/settings.ts +12 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import type { ComponentType } from "react";
|
|
2
|
+
import type { ComponentName } from "../shared/core/catalog";
|
|
3
|
+
import type { Props } from "../shared/logic/values";
|
|
4
|
+
import {
|
|
5
|
+
Badge,
|
|
6
|
+
Callout,
|
|
7
|
+
Entity,
|
|
8
|
+
File,
|
|
9
|
+
Icon,
|
|
10
|
+
Image,
|
|
11
|
+
KeyValue,
|
|
12
|
+
List,
|
|
13
|
+
Metric,
|
|
14
|
+
Sources,
|
|
15
|
+
Text,
|
|
16
|
+
} from "./components/content";
|
|
17
|
+
import {
|
|
18
|
+
Calendar,
|
|
19
|
+
CalendarHeatmap,
|
|
20
|
+
Chart,
|
|
21
|
+
Code,
|
|
22
|
+
Diff,
|
|
23
|
+
Gauge,
|
|
24
|
+
Progress,
|
|
25
|
+
SegmentedBar,
|
|
26
|
+
Snippet,
|
|
27
|
+
Sparkline,
|
|
28
|
+
Steps,
|
|
29
|
+
Table,
|
|
30
|
+
Timeline,
|
|
31
|
+
Tree,
|
|
32
|
+
} from "./components/data";
|
|
33
|
+
import {
|
|
34
|
+
Benchmark,
|
|
35
|
+
Coverage,
|
|
36
|
+
Dependencies,
|
|
37
|
+
Findings,
|
|
38
|
+
Json,
|
|
39
|
+
Logs,
|
|
40
|
+
Pipeline,
|
|
41
|
+
StackTrace,
|
|
42
|
+
Tests,
|
|
43
|
+
Treemap,
|
|
44
|
+
Waterfall,
|
|
45
|
+
} from "./components/dev";
|
|
46
|
+
import { Diagram } from "./components/diagram";
|
|
47
|
+
import {
|
|
48
|
+
Button,
|
|
49
|
+
ButtonGroup,
|
|
50
|
+
Checklist,
|
|
51
|
+
Choice,
|
|
52
|
+
DateInput,
|
|
53
|
+
EditableTable,
|
|
54
|
+
FollowUps,
|
|
55
|
+
Form,
|
|
56
|
+
Input,
|
|
57
|
+
ListEditor,
|
|
58
|
+
OptionCards,
|
|
59
|
+
Radio,
|
|
60
|
+
Rating,
|
|
61
|
+
Select,
|
|
62
|
+
Slider,
|
|
63
|
+
Stepper,
|
|
64
|
+
Swatches,
|
|
65
|
+
TextArea,
|
|
66
|
+
Toggle,
|
|
67
|
+
} from "./components/inputs";
|
|
68
|
+
import { Card, Carousel, Details, Divider, Grid, Row, Stack, Tabs } from "./components/layout";
|
|
69
|
+
import { Gallery, Hotspots, ImageSearch, MapView } from "./components/media";
|
|
70
|
+
import {
|
|
71
|
+
Acceptance,
|
|
72
|
+
Changes,
|
|
73
|
+
Commits,
|
|
74
|
+
Compare,
|
|
75
|
+
Environments,
|
|
76
|
+
Provenance,
|
|
77
|
+
PullRequest,
|
|
78
|
+
Threads,
|
|
79
|
+
Transcript,
|
|
80
|
+
} from "./components/project";
|
|
81
|
+
import {
|
|
82
|
+
Board,
|
|
83
|
+
Decision,
|
|
84
|
+
Estimate,
|
|
85
|
+
Plan,
|
|
86
|
+
Roadmap,
|
|
87
|
+
Status,
|
|
88
|
+
Flashcards,
|
|
89
|
+
Quiz,
|
|
90
|
+
Timer,
|
|
91
|
+
Walkthrough,
|
|
92
|
+
} from "./components/widgets";
|
|
93
|
+
import { ErrorLine, LoadingPlaceholder, NodeBoundary, registerRenderers, RenderNode, RenderNodes } from "./node-renderer";
|
|
94
|
+
|
|
95
|
+
export const RENDERERS = {
|
|
96
|
+
Card,
|
|
97
|
+
Row,
|
|
98
|
+
Stack,
|
|
99
|
+
Grid,
|
|
100
|
+
Tabs,
|
|
101
|
+
Details,
|
|
102
|
+
Divider,
|
|
103
|
+
Text,
|
|
104
|
+
Callout,
|
|
105
|
+
Metric,
|
|
106
|
+
Badge,
|
|
107
|
+
Icon,
|
|
108
|
+
KeyValue,
|
|
109
|
+
Image,
|
|
110
|
+
File,
|
|
111
|
+
Table,
|
|
112
|
+
Chart,
|
|
113
|
+
Sparkline,
|
|
114
|
+
Progress,
|
|
115
|
+
Steps,
|
|
116
|
+
Timeline,
|
|
117
|
+
Tree,
|
|
118
|
+
Code,
|
|
119
|
+
Snippet,
|
|
120
|
+
Diff,
|
|
121
|
+
Diagram,
|
|
122
|
+
Slider,
|
|
123
|
+
Stepper,
|
|
124
|
+
Toggle,
|
|
125
|
+
Choice,
|
|
126
|
+
Radio,
|
|
127
|
+
Select,
|
|
128
|
+
Checklist,
|
|
129
|
+
ListEditor,
|
|
130
|
+
Input,
|
|
131
|
+
TextArea,
|
|
132
|
+
DateInput,
|
|
133
|
+
Rating,
|
|
134
|
+
Button,
|
|
135
|
+
Form,
|
|
136
|
+
Timer,
|
|
137
|
+
Quiz,
|
|
138
|
+
Flashcards,
|
|
139
|
+
Carousel,
|
|
140
|
+
OptionCards,
|
|
141
|
+
Swatches,
|
|
142
|
+
EditableTable,
|
|
143
|
+
FollowUps,
|
|
144
|
+
Entity,
|
|
145
|
+
Sources,
|
|
146
|
+
Hotspots,
|
|
147
|
+
Walkthrough,
|
|
148
|
+
List,
|
|
149
|
+
Calendar,
|
|
150
|
+
Gauge,
|
|
151
|
+
CalendarHeatmap,
|
|
152
|
+
SegmentedBar,
|
|
153
|
+
ImageSearch,
|
|
154
|
+
Gallery,
|
|
155
|
+
Map: MapView,
|
|
156
|
+
Changes,
|
|
157
|
+
Commits,
|
|
158
|
+
PullRequest,
|
|
159
|
+
Threads,
|
|
160
|
+
Tests,
|
|
161
|
+
Json,
|
|
162
|
+
Plan,
|
|
163
|
+
Decision,
|
|
164
|
+
Estimate,
|
|
165
|
+
Environments,
|
|
166
|
+
Board,
|
|
167
|
+
Roadmap,
|
|
168
|
+
Status,
|
|
169
|
+
Findings,
|
|
170
|
+
Coverage,
|
|
171
|
+
Pipeline,
|
|
172
|
+
Dependencies,
|
|
173
|
+
Benchmark,
|
|
174
|
+
Waterfall,
|
|
175
|
+
Treemap,
|
|
176
|
+
Logs,
|
|
177
|
+
StackTrace,
|
|
178
|
+
Compare,
|
|
179
|
+
Provenance,
|
|
180
|
+
Acceptance,
|
|
181
|
+
Transcript,
|
|
182
|
+
} satisfies Record<ComponentName, ComponentType<{ props: Props }>>;
|
|
183
|
+
|
|
184
|
+
registerRenderers(RENDERERS, ButtonGroup);
|
|
185
|
+
|
|
186
|
+
export { ErrorLine, LoadingPlaceholder, NodeBoundary, RenderNode, RenderNodes };
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { PluginTheme } from "@getpaseo/plugin";
|
|
2
|
+
import { createContext, useCallback, useContext, useState } from "react";
|
|
3
|
+
import type { Action, Value } from "../shared/core/types";
|
|
4
|
+
import type { Tone } from "../shared/logic/values";
|
|
5
|
+
import { readStorage, writeStorage } from "./web";
|
|
6
|
+
|
|
7
|
+
export type ImageUrl =
|
|
8
|
+
| { readonly ok: true; readonly url: string }
|
|
9
|
+
| { readonly ok: false; readonly error: string; readonly off?: boolean };
|
|
10
|
+
|
|
11
|
+
export type TextFile =
|
|
12
|
+
| { readonly ok: true; readonly text: string }
|
|
13
|
+
| { readonly ok: false; readonly error: string };
|
|
14
|
+
|
|
15
|
+
export interface UiRuntime {
|
|
16
|
+
setValue(name: string, value: Value): void;
|
|
17
|
+
run(actions: readonly Action[]): Promise<void>;
|
|
18
|
+
openFile: ((path: string, line?: number) => boolean | Promise<boolean>) | null;
|
|
19
|
+
loadImage: ((src: string) => Promise<ImageUrl>) | null;
|
|
20
|
+
readText: ((path: string) => Promise<TextFile>) | null;
|
|
21
|
+
loadAudio: ((src: string) => Promise<ImageUrl>) | null;
|
|
22
|
+
playAudio: ((dataUrl: string) => Promise<void>) | null;
|
|
23
|
+
answer: string | null;
|
|
24
|
+
superseded: boolean;
|
|
25
|
+
agentId: string | null;
|
|
26
|
+
blockKey: string | null;
|
|
27
|
+
theme: PluginTheme;
|
|
28
|
+
compact: boolean;
|
|
29
|
+
platform: "ios" | "android" | "web";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const UiRuntimeContext = createContext<UiRuntime | null>(null);
|
|
33
|
+
|
|
34
|
+
export function useUiRuntime(): UiRuntime {
|
|
35
|
+
const runtime = useContext(UiRuntimeContext);
|
|
36
|
+
if (runtime === null) throw new Error("useUiRuntime used outside a rendered UI");
|
|
37
|
+
return runtime;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export const CardDepthContext = createContext(0);
|
|
41
|
+
export const InTableContext = createContext(false);
|
|
42
|
+
|
|
43
|
+
export function toneColor(theme: PluginTheme, t: Tone): string {
|
|
44
|
+
switch (t) {
|
|
45
|
+
case "good":
|
|
46
|
+
return theme.colors.statusSuccess;
|
|
47
|
+
case "warn":
|
|
48
|
+
return theme.colors.statusWarning;
|
|
49
|
+
case "bad":
|
|
50
|
+
return theme.colors.statusDanger;
|
|
51
|
+
case "info":
|
|
52
|
+
return theme.colors.accent;
|
|
53
|
+
default:
|
|
54
|
+
return theme.colors.foreground;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function toneMutedColor(theme: PluginTheme, t: Tone): string {
|
|
59
|
+
if (t === "neutral") return theme.colors.foregroundMuted;
|
|
60
|
+
return toneColor(theme, t);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function propsKey(value: unknown): string {
|
|
64
|
+
const json = JSON.stringify(value) ?? "";
|
|
65
|
+
let hash = 0x811c9dc5;
|
|
66
|
+
for (let index = 0; index < json.length; index++) {
|
|
67
|
+
hash ^= json.charCodeAt(index);
|
|
68
|
+
hash = Math.imul(hash, 0x01000193);
|
|
69
|
+
}
|
|
70
|
+
return (hash >>> 0).toString(36);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function usePersistedState<T>(
|
|
74
|
+
id: string,
|
|
75
|
+
initial: T,
|
|
76
|
+
accept: (stored: unknown) => T | null,
|
|
77
|
+
): [T, (next: T | ((previous: T) => T)) => void] {
|
|
78
|
+
const { blockKey } = useUiRuntime();
|
|
79
|
+
const key = blockKey === null ? `genui:mem:${id}` : `${blockKey}:local:${id}`;
|
|
80
|
+
const [value, setValue] = useState<T>(() => {
|
|
81
|
+
const raw = readStorage(key);
|
|
82
|
+
if (raw === null) return initial;
|
|
83
|
+
try {
|
|
84
|
+
const parsed: unknown = JSON.parse(raw);
|
|
85
|
+
return accept(parsed) ?? initial;
|
|
86
|
+
} catch {
|
|
87
|
+
return initial;
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
const update = useCallback(
|
|
92
|
+
(next: T | ((previous: T) => T)) => {
|
|
93
|
+
setValue((previous) => {
|
|
94
|
+
const resolved = typeof next === "function" ? (next as (prev: T) => T)(previous) : next;
|
|
95
|
+
writeStorage(key, JSON.stringify(resolved));
|
|
96
|
+
return resolved;
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
[key],
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
return [value, update];
|
|
103
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useSettings, type PluginSurfaceProps } from "@getpaseo/plugin/client";
|
|
2
|
+
import { SettingsCard, SettingsSection, SettingsSwitch } from "@getpaseo/plugin/client/ui";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Text, View } from "react-native";
|
|
5
|
+
import { genuiSettings } from "../shared/settings";
|
|
6
|
+
|
|
7
|
+
export function GenUiSettingsScreen({ theme }: PluginSurfaceProps) {
|
|
8
|
+
const settings = useSettings(genuiSettings);
|
|
9
|
+
|
|
10
|
+
if (settings.status === "loading") {
|
|
11
|
+
return (
|
|
12
|
+
<View style={{ padding: 16 }}>
|
|
13
|
+
<Text style={{ color: theme.colors.foregroundMuted, fontSize: 13 }}>Loading settings…</Text>
|
|
14
|
+
</View>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (settings.status !== "ready") {
|
|
19
|
+
return (
|
|
20
|
+
<View style={{ padding: 16 }}>
|
|
21
|
+
<Text style={{ color: theme.colors.statusDanger, fontSize: 13 }}>{settings.error}</Text>
|
|
22
|
+
</View>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const { values, revision, save } = settings;
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<View style={{ gap: 16 }}>
|
|
30
|
+
<SettingsSection title="Agent instructions">
|
|
31
|
+
<SettingsCard>
|
|
32
|
+
<SettingsSwitch
|
|
33
|
+
label="Automatically teach new agents Generative UI"
|
|
34
|
+
hint="Appends the 86-component ```ui and ```app reference to new agents' system prompt on creation."
|
|
35
|
+
value={values.autoInstructions}
|
|
36
|
+
onValueChange={(autoInstructions) => {
|
|
37
|
+
void save({ ...values, autoInstructions }, revision);
|
|
38
|
+
}}
|
|
39
|
+
/>
|
|
40
|
+
</SettingsCard>
|
|
41
|
+
</SettingsSection>
|
|
42
|
+
|
|
43
|
+
<SettingsSection title="Network and web lookups">
|
|
44
|
+
<SettingsCard>
|
|
45
|
+
<SettingsSwitch
|
|
46
|
+
label="Web lookups"
|
|
47
|
+
hint="Lets ImageSearch (Wikimedia Commons), Map (Photon geocoding and OpenStreetMap tiles), and https Image links fetch through the Paseo daemon with private-IP protection and caching."
|
|
48
|
+
value={values.webLookups}
|
|
49
|
+
onValueChange={(webLookups) => {
|
|
50
|
+
void save({ ...values, webLookups }, revision);
|
|
51
|
+
}}
|
|
52
|
+
/>
|
|
53
|
+
</SettingsCard>
|
|
54
|
+
</SettingsSection>
|
|
55
|
+
</View>
|
|
56
|
+
);
|
|
57
|
+
}
|
package/client/web.ts
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import type { PluginTheme } from "@getpaseo/plugin";
|
|
2
|
+
import { Platform } from "react-native";
|
|
3
|
+
|
|
4
|
+
interface WebStorage {
|
|
5
|
+
getItem(key: string): string | null;
|
|
6
|
+
setItem(key: string, value: string): void;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface WebIframeElement {
|
|
10
|
+
title: string;
|
|
11
|
+
srcdoc: string;
|
|
12
|
+
referrerPolicy: string;
|
|
13
|
+
readonly contentWindow: unknown;
|
|
14
|
+
readonly style: {
|
|
15
|
+
width: string;
|
|
16
|
+
height: string;
|
|
17
|
+
border: string;
|
|
18
|
+
display: string;
|
|
19
|
+
borderRadius: string;
|
|
20
|
+
backgroundColor: string;
|
|
21
|
+
};
|
|
22
|
+
setAttribute(name: string, value: string): void;
|
|
23
|
+
remove(): void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface WebContainerElement {
|
|
27
|
+
innerHTML: string;
|
|
28
|
+
appendChild(child: WebIframeElement): void;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface WebMessageEvent {
|
|
32
|
+
readonly source: unknown;
|
|
33
|
+
readonly data: unknown;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface WebGlobal {
|
|
37
|
+
readonly localStorage?: WebStorage;
|
|
38
|
+
readonly document?: {
|
|
39
|
+
createElement(tag: "iframe"): WebIframeElement;
|
|
40
|
+
};
|
|
41
|
+
readonly window?: {
|
|
42
|
+
addEventListener(type: "message", listener: (event: WebMessageEvent) => void): void;
|
|
43
|
+
removeEventListener(type: "message", listener: (event: WebMessageEvent) => void): void;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const memoryStore = new Map<string, string>();
|
|
48
|
+
|
|
49
|
+
function getWeb(): WebGlobal | null {
|
|
50
|
+
if (Platform.OS !== "web") return null;
|
|
51
|
+
return globalThis as unknown as WebGlobal;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function readStorage(key: string): string | null {
|
|
55
|
+
const web = getWeb();
|
|
56
|
+
if (web?.localStorage) {
|
|
57
|
+
try {
|
|
58
|
+
return web.localStorage.getItem(key);
|
|
59
|
+
} catch {
|
|
60
|
+
// Fall back to memory store
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return memoryStore.get(key) ?? null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function writeStorage(key: string, value: string): void {
|
|
67
|
+
memoryStore.set(key, value);
|
|
68
|
+
const web = getWeb();
|
|
69
|
+
if (web?.localStorage) {
|
|
70
|
+
try {
|
|
71
|
+
web.localStorage.setItem(key, value);
|
|
72
|
+
} catch {
|
|
73
|
+
// Ignore quota errors
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function canRenderWebIframe(): boolean {
|
|
79
|
+
const web = getWeb();
|
|
80
|
+
return Platform.OS === "web" && Boolean(web?.document && web?.window);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const CSP =
|
|
84
|
+
"default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src data: blob:; font-src data:; media-src data: blob:";
|
|
85
|
+
|
|
86
|
+
const BASE_STYLES = `*,*::before,*::after{box-sizing:border-box}
|
|
87
|
+
html,body{margin:0;padding:0;background:transparent}
|
|
88
|
+
html{color:var(--foreground);font-family:ui-sans-serif,system-ui,sans-serif;font-size:14px;line-height:1.5}
|
|
89
|
+
code,kbd,pre,samp{font-family:ui-monospace,monospace}
|
|
90
|
+
img,video,canvas{max-width:100%}
|
|
91
|
+
button,input,select,textarea{font:inherit;color:inherit;margin:0}
|
|
92
|
+
button{cursor:pointer;padding:6px 12px;border:1px solid var(--border);border-radius:8px;background:var(--background);line-height:1.25}
|
|
93
|
+
input,select,textarea{padding:6px 10px;border:1px solid var(--border);border-radius:8px;background:var(--background)}`;
|
|
94
|
+
|
|
95
|
+
const BOOTSTRAP = `(function(){
|
|
96
|
+
var host=window.parent,last=-1;
|
|
97
|
+
function post(m){m.source="genui-app";host.postMessage(m,"*");}
|
|
98
|
+
function measure(){
|
|
99
|
+
var b=document.body,h=Math.ceil(Math.max(document.documentElement.getBoundingClientRect().height,b?b.scrollHeight:0));
|
|
100
|
+
if(h!==last){last=h;post({type:"height",height:h});}
|
|
101
|
+
}
|
|
102
|
+
var ro=new ResizeObserver(measure);
|
|
103
|
+
ro.observe(document.documentElement);
|
|
104
|
+
document.addEventListener("DOMContentLoaded",function(){if(document.body)ro.observe(document.body);measure();});
|
|
105
|
+
addEventListener("load",measure);
|
|
106
|
+
addEventListener("error",function(e){post({type:"error",message:String(e.message||"Script error")});});
|
|
107
|
+
})();`;
|
|
108
|
+
|
|
109
|
+
function buildSrcdoc(html: string, theme: PluginTheme): string {
|
|
110
|
+
const c = theme.colors;
|
|
111
|
+
const vars = [
|
|
112
|
+
`--background:${c.surface0}`,
|
|
113
|
+
`--card:${c.surface1}`,
|
|
114
|
+
`--muted:${c.surface2}`,
|
|
115
|
+
`--border:${c.border}`,
|
|
116
|
+
`--foreground:${c.foreground}`,
|
|
117
|
+
`--muted-foreground:${c.foregroundMuted}`,
|
|
118
|
+
`--subtle-foreground:${c.foregroundMuted}`,
|
|
119
|
+
`--primary:${c.accent}`,
|
|
120
|
+
`--primary-foreground:${c.accentForeground}`,
|
|
121
|
+
`--accent:${c.accent}`,
|
|
122
|
+
`--success:${c.statusSuccess}`,
|
|
123
|
+
`--warning:${c.statusWarning}`,
|
|
124
|
+
`--destructive:${c.statusDanger}`,
|
|
125
|
+
].join(";");
|
|
126
|
+
const doctype = "<!doctype html>";
|
|
127
|
+
const metaCsp = '<meta http-equiv="Content-Security-Policy" content="' + CSP + '">';
|
|
128
|
+
const metaVp = '<meta name="viewport" content="width=device-width,initial-scale=1">';
|
|
129
|
+
const styleBase = "<style>" + BASE_STYLES + "</style>";
|
|
130
|
+
const styleTheme = '<style id="genui-theme">:root{' + vars + "}</style>";
|
|
131
|
+
const scriptBoot = "<script>" + BOOTSTRAP + "</script>";
|
|
132
|
+
return [doctype, metaCsp, metaVp, styleBase, styleTheme, scriptBoot, html].join("\n");
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function mountSandboxedAppIframe(
|
|
136
|
+
hostRef: unknown,
|
|
137
|
+
options: {
|
|
138
|
+
html: string;
|
|
139
|
+
theme: PluginTheme;
|
|
140
|
+
height: number;
|
|
141
|
+
onHeight(height: number): void;
|
|
142
|
+
onError(message: string): void;
|
|
143
|
+
},
|
|
144
|
+
): () => void {
|
|
145
|
+
const web = getWeb();
|
|
146
|
+
if (!web?.document || !web.window || !hostRef || typeof hostRef !== "object") {
|
|
147
|
+
return () => {};
|
|
148
|
+
}
|
|
149
|
+
const container = hostRef as WebContainerElement;
|
|
150
|
+
if (typeof container.appendChild !== "function") return () => {};
|
|
151
|
+
|
|
152
|
+
const iframe = web.document.createElement("iframe");
|
|
153
|
+
iframe.title = "Interactive App";
|
|
154
|
+
iframe.setAttribute("sandbox", "allow-scripts");
|
|
155
|
+
iframe.referrerPolicy = "no-referrer";
|
|
156
|
+
iframe.style.width = "100%";
|
|
157
|
+
iframe.style.height = `${options.height}px`;
|
|
158
|
+
iframe.style.border = "0";
|
|
159
|
+
iframe.style.display = "block";
|
|
160
|
+
iframe.style.borderRadius = "8px";
|
|
161
|
+
iframe.style.backgroundColor = "transparent";
|
|
162
|
+
iframe.srcdoc = buildSrcdoc(options.html, options.theme);
|
|
163
|
+
|
|
164
|
+
container.innerHTML = "";
|
|
165
|
+
container.appendChild(iframe);
|
|
166
|
+
|
|
167
|
+
const onMessage = (event: WebMessageEvent) => {
|
|
168
|
+
if (event.source !== iframe.contentWindow) return;
|
|
169
|
+
if (typeof event.data !== "object" || event.data === null) return;
|
|
170
|
+
const data = event.data as Record<string, unknown>;
|
|
171
|
+
if (data.source !== "genui-app") return;
|
|
172
|
+
if (data.type === "height" && typeof data.height === "number" && Number.isFinite(data.height)) {
|
|
173
|
+
const clamped = Math.min(1400, Math.max(80, Math.ceil(data.height)));
|
|
174
|
+
iframe.style.height = `${clamped}px`;
|
|
175
|
+
options.onHeight(clamped);
|
|
176
|
+
} else if (data.type === "error" && typeof data.message === "string") {
|
|
177
|
+
options.onError(data.message.slice(0, 500));
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
web.window.addEventListener("message", onMessage);
|
|
182
|
+
return () => {
|
|
183
|
+
web.window?.removeEventListener("message", onMessage);
|
|
184
|
+
iframe.remove();
|
|
185
|
+
};
|
|
186
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Acceptance(Load("data/acceptance/orbit-baseline.json"))
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Acceptance({title: "Waitlist: go live", criteria: [
|
|
2
|
+
{name: "Mail provider 2FA on", status: "passed", by: "owner", at: "2026-10-08", method: "Logged out and in; a code was asked"},
|
|
3
|
+
{name: "Rate-limit rule on /api/waitlist", status: "verified", by: "agent", at: "2026-10-08", method: "12 quick curls from one machine", run: "rule 3c8d09ea", note: "Requests 11–14 in 10 s answered 429, other paths unaffected, lifted after 10 s.", evidence: {url: "https://developers.cloudflare.com/waf/rate-limiting-rules/", label: "Cloudflare: rate limiting rules"}},
|
|
4
|
+
{name: "WCAG 2.2 AA over 12 join states", status: "passed", by: "agent", method: "axe-core 4.10.3", note: "0 violations after fixing heading order, section spacing and greyed error text.", evidence: "docs/evidence/waitlist-a11y-2026-10-08.md"},
|
|
5
|
+
{name: "Mail provider webhooks: marketing and hard bounce", status: "done", by: "owner", at: "2026-10-08", run: "ids 5104417, 5104418", note: "Ticked with the ids; the result of the Verify step (a POST without the header answers 401) is not recorded."},
|
|
6
|
+
{name: "Sender domain orbit.example.com authenticated", status: "unverified", by: "agent", note: "The mail provider's API reports the domain verified. The box stays open until a test mail arrives From hello@orbit.example.com."},
|
|
7
|
+
{name: "The hero's action opens the email field in place", status: "not tested", note: "The action changed on 2026-10-08; the browser smoke predates the change and must be re-run. happy-dom covers only the focus hand-off.", evidence: "src/website/waitlist.test.ts"},
|
|
8
|
+
{name: "Manual screen-reader walk of the join", status: "pending", needs: "Walk the join with VoiceOver", note: "The axe-core audit is automated; the manual walk is an owner step."},
|
|
9
|
+
{name: "Public TestFlight link disabled or capped", needs: "Disable the public link or set a tester limit in App Store Connect", note: "While the link is open and uncapped, anyone who has it skips the waitlist.", evidence: {url: "https://developer.apple.com/help/app-store-connect/test-a-beta-version/invite-external-testers", label: "Apple: invite external testers"}},
|
|
10
|
+
{name: "Counsel review of consent without double opt-in", status: "pending", needs: "Send counsel docs/compliance/ and the legal memo"},
|
|
11
|
+
{name: "Launch-week mail plan", status: "needs decision", note: "Stay on Free and accept queued welcomes (up to about a day), or move to a Starter tier that covers the expected peak."},
|
|
12
|
+
{name: "Deploy from production and smoke the live site", status: "not tested", method: "npm run smoke -- https://orbit.example.com", note: "Waits on the owner steps above."},
|
|
13
|
+
{name: "Anonymous tracking for campaigns", status: "blocked", required: false, note: "Saving fails with “email not verified” although the sender and the domain are verified; the owner is asking the mail provider's support. Not needed before the first newsletter campaign."}
|
|
14
|
+
]})
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Acceptance({title: "Acceptance component, round 4", criteria: [
|
|
2
|
+
{name: "The gate example renders with no error lines", status: "passed", by: "gallery-shot.mjs", method: "Chromium at 1300 px; WebKit iPhone 15 emulation at 393 px, dark", at: "2026-10-10T02:02:37Z", evidence: [{image: "data/acceptance/shots/gate-light.png", label: "Desktop, light"}, {image: "data/acceptance/shots/gate-phone-dark.png", label: "Phone, dark"}]},
|
|
3
|
+
{name: "A cell opens its evidence at the marked lines", status: "passed", by: "gallery-shot.mjs", method: "--click on the paused-layout cell", at: "2026-10-10T02:02:37Z", evidence: "data/acceptance/shots/gate-cell-opened.png"},
|
|
4
|
+
{name: "An owner's complete: true is contradicted, not trusted", status: "passed", by: "vitest", evidence: {path: "data/acceptance/coil-gate.json", line: 3, label: "The gate result says it is complete"}},
|
|
5
|
+
{name: "Logic and fallback tests pass", status: "passed", by: "vitest", method: "npx vitest run core/acceptance.test.ts core/markdown-a4.test.ts", evidence: {text: " Test Files 2 passed (2)\n Tests 26 passed (26)", label: "vitest"}},
|
|
6
|
+
{name: "A screen reader names every cell", status: "claimed", by: "the builder", note: "Each cell is a disclosure button named “criterion · column: status”. Not walked with VoiceOver.", evidence: {url: "https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/", label: "WAI-ARIA disclosure pattern"}},
|
|
7
|
+
{name: "Renders in a DOM test", status: "no match", method: "npx vitest run -t \"Acceptance renders in a DOM\"", note: "The repo has no DOM test environment, so the filter matched nothing.", evidence: " Test Files 46 skipped (46)\n Tests 564 skipped (564)"},
|
|
8
|
+
{name: "Renders on a physical iPhone", status: "not tested", needs: "Open the gallery on your iPhone", note: "Checked in WebKit with iPhone emulation only."}
|
|
9
|
+
]})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Acceptance(Load("data/acceptance/coil-gate.json"))
|
package/gallery/Badge.ui
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Benchmark([
|
|
2
|
+
{name: "Presented FPS, staging reuse off → on", before: 112.583, after: 114.88, unit: "fps", better: "higher", context: {device: "iPhone", thermal: "Nominal", workload: "replay ticks 147–347", build: "same binary"}},
|
|
3
|
+
{name: "p99 presentation cadence, staging reuse off → on", before: 16.67, after: 16.67, unit: "ms", context: {device: "iPhone", thermal: "Nominal", workload: "replay ticks 147–347", build: "same binary"}},
|
|
4
|
+
{name: "Render FPS, 60 → 120 Hz request", before: [58.19, 58.04], after: [70.13, 67.9], unit: "fps", better: "higher", varies: "display", context: {device: "iPhone", workload: "matched replay"}, contextBefore: {display: "60 Hz"}, contextAfter: {display: "120 Hz"}},
|
|
5
|
+
{name: "p95 frame time, 60 → 120 Hz request", before: [18.43, 18.49], after: [22.36, 25.01], unit: "ms", varies: "display", context: {device: "iPhone", workload: "matched replay"}, contextBefore: {display: "60 Hz"}, contextAfter: {display: "120 Hz"}},
|
|
6
|
+
{name: "Delivered FPS, binary archive off → on", before: 45.464, after: 48.849, unit: "fps", better: "higher", varies: "archive", context: {device: "iPhone", workload: "2 min live match, 7 bots"}, contextBefore: {archive: "off", thermal: "Serious throughout"}, contextAfter: {archive: "on, warm", thermal: "Fair → serious"}},
|
|
7
|
+
{name: "Presented FPS, earlier report → what you saw", before: 113.16, after: 72.9, unit: "fps", better: "higher", context: {device: "iPhone", workload: "30 s replay"}, contextBefore: {build: "resource-preparation candidate", thermal: "Nominal", display: "120 Hz requested"}, contextAfter: {build: "FPS counter build", thermal: "Fair / serious"}}
|
|
8
|
+
])
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Benchmark(Load("data/hyperfine-startup.json"))
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Benchmark([
|
|
2
|
+
{name: "Binary archive off", metrics: {fps: 45.464, p99_ms: 41.675}, context: {workload: "2 min live match, 7 bots", thermal: "Serious"}},
|
|
3
|
+
{name: "Binary archive on, warm", metrics: {fps: 48.849, p99_ms: 41.675}, context: {workload: "2 min live match, 7 bots", thermal: "Fair → serious"}},
|
|
4
|
+
{name: "Probe correction + resource batching", metrics: {fps: 49.825, p99_ms: 29.173}, context: {workload: "2 min live match, 7 bots"}},
|
|
5
|
+
{name: "ThinLTO experiment", metrics: {fps: 49.683, p99_ms: 33.34}, context: {workload: "2 min live match, 7 bots"}},
|
|
6
|
+
{name: "Staging reuse enabled", metrics: {fps: 43.259, p99_ms: 33.34}, context: {workload: "2 min live match, 7 bots"}},
|
|
7
|
+
{name: "Direct arena writes", metrics: {fps: 37.7, p99_ms: 33.34}, context: {workload: "2 min live match, 7 bots", thermal: "Fair / serious"}},
|
|
8
|
+
{name: "Relaunch after the live match", status: "failed", metrics: {}, context: {workload: "live match, 2 bots", thermal: "Serious"}, note: "Stopped during GPU warm-up"}
|
|
9
|
+
])
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Benchmark(Load("data/device-runs.json"))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Benchmark(Load("data/vitest-bench.json"))
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Benchmark([
|
|
2
|
+
{name: "Cold start", before: 412, after: 298, unit: "ms", stddev: 14},
|
|
3
|
+
{name: "p95 /api/search", before: 184, after: 191, unit: "ms", stddev: 9},
|
|
4
|
+
{name: "p99 /api/search", before: 402, after: 455, unit: "ms", stddev: 12},
|
|
5
|
+
{name: "Throughput", before: 1840, after: 2310, unit: "req/s", better: "higher"},
|
|
6
|
+
{name: "app.js (gzip)", before: 148.2, after: 131.6, unit: "KB"},
|
|
7
|
+
{name: "Peak memory", before: 212, after: 213, unit: "MB"},
|
|
8
|
+
{name: "Test suite", before: 48.6, after: 49.1, unit: "s", note: "vitest run, 1,214 tests"}
|
|
9
|
+
])
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Board(Load("data/bb-tasks-orb.json"))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Board(Load("data/gh-issues-nextjs.json"))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Board(Load("data/gh-prs-nextjs.json"), ["Draft", "Open", "Merged", "Closed"])
|
package/gallery/Board.ui
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Board([
|
|
2
|
+
{key: "LCH-31", title: "Pricing page: annual toggle and EU VAT note", status: "in_progress", priority: "high", labels: ["web", "billing"], owner: "Marta Rossi", due: "2026-10-14", agentsWorking: 2, detail: "Toggle between monthly and annual plans; show VAT-inclusive prices for EU visitors.\n\n- [x] Toggle\n- [ ] VAT copy reviewed by finance"},
|
|
3
|
+
{key: "LCH-28", title: "Onboarding checklist in the empty project view", status: "in_review", priority: "medium", labels: ["app"], owner: "Jon Park", due: "2026-10-12", url: "https://github.com/get-bb/bb/issues/5268"},
|
|
4
|
+
{key: "LCH-25", title: "Press kit: screenshots at 2× for light and dark", status: "in_progress", priority: "medium", labels: ["marketing"], owner: "Ana Lima", due: "2026-10-07"},
|
|
5
|
+
{key: "LCH-33", title: "Status page on status.orbit.example.com", status: "todo", priority: "low", labels: ["infra"], due: "2026-10-23"},
|
|
6
|
+
{key: "LCH-34", title: "Load test the signup flow at 5× launch traffic", status: "todo", priority: "urgent", labels: ["infra", "launch-blocker"], owner: "Dev Patel", due: "2026-10-16"},
|
|
7
|
+
{key: "LCH-35", title: "Launch-day runbook and on-call rota", status: "todo", priority: "high", owner: "Dev Patel", due: "2026-10-21"},
|
|
8
|
+
{key: "LCH-29", title: "Waitlist invite emails (3 waves)", status: "blocked", priority: "high", labels: ["email"], owner: "Marta Rossi", due: "2026-10-09", detail: "Waiting on the sending domain's DKIM record."},
|
|
9
|
+
{key: "LCH-21", title: "Brand refresh: logo, colour tokens, favicon", status: "done", priority: "medium", labels: ["design"], owner: "Ana Lima"},
|
|
10
|
+
{key: "LCH-19", title: "Privacy policy and DPA reviewed by counsel", status: "done", priority: "high", labels: ["legal"], owner: "Jon Park"},
|
|
11
|
+
{key: "LCH-36", title: "Product Hunt listing copy", status: "backlog", priority: "none", labels: ["marketing"]}
|
|
12
|
+
])
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Card("The tests pass. What next?", [
|
|
2
|
+
Button("Open the PR", Send("Open a PR for this branch"), variant: "primary", icon: "GitPullRequest"),
|
|
3
|
+
Button("Run the e2e suite first", Send("Run the e2e suite first"), icon: "Play"),
|
|
4
|
+
Button("Copy branch name", Copy("fix/upload-race"), icon: "Copy")
|
|
5
|
+
])
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Card("Release plan", [
|
|
2
|
+
Calendar([
|
|
3
|
+
{date: "2026-10-05", title: "Feature freeze", tone: "warn"},
|
|
4
|
+
{date: "2026-10-09", title: "RC 1"},
|
|
5
|
+
{date: "2026-10-09", title: "Docs review"},
|
|
6
|
+
{date: "2026-10-14", title: "RC 2"},
|
|
7
|
+
{date: "2026-10-20", title: "Security review", tone: "bad"},
|
|
8
|
+
{date: "2026-10-20", title: "Changelog draft"},
|
|
9
|
+
{date: "2026-10-20", title: "Perf pass"},
|
|
10
|
+
{date: "2026-10-20", title: "Translations"},
|
|
11
|
+
{date: "2026-10-27", title: "Release 3.0", tone: "good"},
|
|
12
|
+
{date: "2026-11-03", title: "Retro", tone: "neutral"},
|
|
13
|
+
{date: "2026-11-17", title: "3.0.1 patch"}
|
|
14
|
+
])
|
|
15
|
+
])
|