The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
Refine Store discovery with illustrated features and compact icon lists (#173)
Deeabf9314d4593
diff --git a/desktop/assets/store/README.md b/desktop/assets/store/README.mdindex 84aece81f..ff10dfb9a 100644--- a/desktop/assets/store/README.md+++ b/desktop/assets/store/README.md@@ -1,8 +1,20 @@# Store previews-These are bundled example outputs, so Discover works without external image services.-They illustrate existing harnesses; editorial features are only shown when their package-is present in the live catalog. They are not claims of automatic engineering validation.+All Store artwork is bundled, so browsing needs no external image service. Featured+stories only appear when their tool is present in the live catalog.++## Editorial illustrations++`editorial-*.png` are eleven original illustrations generated with the built-in+imagegen tool. The exact prompts and file mapping are in+[`editorial-prompts.json`](../../tool/store_artwork/editorial-prompts.json).+Discover uses three features (coding, 3D design, circuits); each discipline uses+one feature. All catalog rows use app icons. These illustrations depict a craft,+not an app screenshot or a claimed agent result.++## Original example outputs++These assets are real example outputs, not claims of automatic engineering validation.- `blender-studio.png`: original procedural Blender scene, made for Harness. Reproduce with`desktop/tool/store_artwork/render.py` using the Blender harness's `bpy` environment.@@ -28,7 +40,8 @@ source is `desktop/tool/render_store_mark.swift`; regenerate from `desktop/` wit## Exploration previews`projects/` contains unaltered copies of the repository's showcase outputs.-Discovery and category pages use these; individual harness pages keep their existing artwork.+These remain available for deliberate editorial features. Discovery and categories now use+app icons for browsing; individual harness pages keep their existing artwork.| Bundled image | Source under `store/showcase/` || --- | --- |@@ -46,18 +59,19 @@ Discovery and category pages use these; individual harness pages keep their exis| `projects/yosys.jpg` | `yosys/fibonacci-cpu.jpg` || `projects/orca-slicer.jpg` | `orca-slicer/spacer.jpg` |-New packages can supply example images in their Store metadata. If no preview is available,-the card displays the package mark. Shared viewers never appear as creative projects.+New packages can supply example images in their Store metadata for their detail pages.+Shared viewers never appear as creative projects.-## Browse covers+## Curated artwork library-Every currently listed domain harness has an explicit cover in `store_cover_art.dart`.-The 48 covers include 13 upstream images and 35 original Harness outputs or viewer captures.-Coding agents keep their compact engine marks. Individual harness pages and the prompt-showcase retain their existing example images.+The 48 covers in `store_cover_art.dart` include 13 upstream images and 35 original Harness+outputs or viewer captures. They are retained as a sourced artwork library, not displayed+as a thumbnail grid. Discover and category features use the editorial illustrations+above; their browsing collections use app icons. Individual harness pages retain their+existing examples and artwork.The UI frames useful image regions without modifying the bundled originals. Upstream-covers illustrate the tool, not the result of the adjacent suggested prompt. Their image+covers illustrate the tool, not a claimed result of a suggested prompt. Their imagecredit control links to the source; license notices are bundled alongside the images.`sources.json` records the catalog ID, exact source, retrieval URL, and SHA-256 for each file.Retrieved 2026-09-20. Source artwork retains its own terms; the repository's MIT license@@ -132,7 +146,7 @@ screenshots, with the corresponding software notices preserved.For wrapped tools with no useful published artwork, the cover shows an original projectoutput or Harness's own viewer. For example, Godogen's upstream thumbnail is a text title-card; the Store shows our playable Neon Drift game. The local AI runtimes are command-line+card; the library includes our playable Neon Drift game. The local AI runtimes are command-linetools, so their covers show the original Harness model-control interfaces. Selectionnotes for these cases are in `sources.json`.diff --git a/desktop/assets/store/editorial-circuit.png b/desktop/assets/store/editorial-circuit.pngnew file mode 100644index 000000000..4300fcb70Binary files /dev/null and b/desktop/assets/store/editorial-circuit.png differdiff --git a/desktop/assets/store/editorial-code.png b/desktop/assets/store/editorial-code.pngnew file mode 100644index 000000000..1ccfb6144Binary files /dev/null and b/desktop/assets/store/editorial-code.png differdiff --git a/desktop/assets/store/editorial-games.png b/desktop/assets/store/editorial-games.pngnew file mode 100644index 000000000..0cf080b89Binary files /dev/null and b/desktop/assets/store/editorial-games.png differdiff --git a/desktop/assets/store/editorial-local-ai.png b/desktop/assets/store/editorial-local-ai.pngnew file mode 100644index 000000000..4a5f6fd2eBinary files /dev/null and b/desktop/assets/store/editorial-local-ai.png differdiff --git a/desktop/assets/store/editorial-media.png b/desktop/assets/store/editorial-media.pngnew file mode 100644index 000000000..cb111beeeBinary files /dev/null and b/desktop/assets/store/editorial-media.png differdiff --git a/desktop/assets/store/editorial-music.png b/desktop/assets/store/editorial-music.pngnew file mode 100644index 000000000..012e590b5Binary files /dev/null and b/desktop/assets/store/editorial-music.png differdiff --git a/desktop/assets/store/editorial-productivity.png b/desktop/assets/store/editorial-productivity.pngnew file mode 100644index 000000000..00e238bccBinary files /dev/null and b/desktop/assets/store/editorial-productivity.png differdiff --git a/desktop/assets/store/editorial-research.png b/desktop/assets/store/editorial-research.pngnew file mode 100644index 000000000..712a26591Binary files /dev/null and b/desktop/assets/store/editorial-research.png differdiff --git a/desktop/assets/store/editorial-science.png b/desktop/assets/store/editorial-science.pngnew file mode 100644index 000000000..4e468089cBinary files /dev/null and b/desktop/assets/store/editorial-science.png differdiff --git a/desktop/assets/store/editorial-shape.png b/desktop/assets/store/editorial-shape.pngnew file mode 100644index 000000000..01a09c0beBinary files /dev/null and b/desktop/assets/store/editorial-shape.png differdiff --git a/desktop/assets/store/editorial-simulation.png b/desktop/assets/store/editorial-simulation.pngnew file mode 100644index 000000000..bdb12aca2Binary files /dev/null and b/desktop/assets/store/editorial-simulation.png differdiff --git a/desktop/design/review/store-discover.png b/desktop/design/review/store-discover.pngnew file mode 100644index 000000000..bb6d74991Binary files /dev/null and b/desktop/design/review/store-discover.png differdiff --git a/desktop/design/review/store-engineering.png b/desktop/design/review/store-engineering.pngnew file mode 100644index 000000000..1cf658b53Binary files /dev/null and b/desktop/design/review/store-engineering.png differdiff --git a/desktop/design/store-browsing.md b/desktop/design/store-browsing.mdnew file mode 100644index 000000000..cf814f65b--- /dev/null+++ b/desktop/design/store-browsing.md@@ -0,0 +1,52 @@+# Store browsing++A few illustrated stories invite curiosity; compact app icons make the catalog easy+to scan. This follows the hierarchy in the Mac App Store Discover, Develop, Create,+and Arcade references: one hero or three features, then collections of icon rows.+See [Discover](https://apps.apple.com/us/mac/discover) and+[Apple’s discovery guide](https://developer.apple.com/app-store/discoverability/).++- Search stays large, focused on arrival, and fixed above scrolling content.+- Discover opens with three original illustrations for coding, 3D design, and+ circuits. Features open actual tools and only appear when those tools exist in+ the machine’s catalog. Narrow windows show the stories in a horizontal shelf.+- Coding agents are the first icon collection, followed by new releases, eligible+ community favorites, and a curated invitation to try another craft.+- Each discipline has one illustrated feature, followed by the same icon rows as+ Discover and search. Compact discipline links use icons and live counts.+- Browsing rows have no launch or install buttons. The entire row opens the+ harness page. That page shows Get before local installation, Update when an+ update is available, or New Harness when ready. Resume appears alongside New+ only when existing work is available; the pair has equal widths. These states+ never overlap. Resume lists matches across machines and never creates work.+- Columns adapt to window width and text size. Back navigation preserves filters+ and scroll position. Individual harness pages keep their existing examples.++## Collection data++**New & updated** orders available harnesses by their actual last catalog publication+change. This is a snapshot bundled with the app release, not a live publication feed.+The generator reads the `store-catalog` branch, ignores install-ref-only changes,+and records first publication and last metadata/package revision change. It gives+unknown entries no invented date. Refresh the snapshot for a release with:++```sh+git fetch origin store-catalog+node desktop/tool/store_catalog_history.mjs+```++**Top rated** uses the Store’s live community ratings: highest average first, review+count breaking ties. A harness needs at least three reviews; the shelf appears when+at least two available tools qualify. Ratings cannot establish usage or downloads,+so the Store does not label this collection “Most popular.” Viewers are excluded.++## Artwork++Eleven original editorial illustrations share a tactile paper-sculpture style and+navy, cobalt, coral, mint, cream, and yellow palette. They were generated with the+built-in imagegen tool; the exact [prompts](../tool/store_artwork/editorial-prompts.json)+and [assets](../assets/store/) are committed together. They illustrate disciplines,+not claimed agent output. Text stays in the UI for readability and accessibility.++Existing screenshots and source artwork remain available for tool detail pages and+future deliberate features. Having a cover does not put it in a browsing row.diff --git a/desktop/lib/store/store_catalog_history.g.dart b/desktop/lib/store/store_catalog_history.g.dartnew file mode 100644index 000000000..fd97ce71f--- /dev/null+++ b/desktop/lib/store/store_catalog_history.g.dart@@ -0,0 +1,197 @@+// Generated by desktop/tool/store_catalog_history.mjs.+// Publication source: c0034c2d7dc072384d57e0562f994e51e483c2ff+// A snapshot for this app release; unknown tools are never assigned fake dates.+const storeCatalogHistory = <String, ({String addedAt, String updatedAt})>{+ 'autonomous/ableton-ai': (+ addedAt: '2026-09-18T02:52:29.000Z',+ updatedAt: '2026-09-18T04:18:33.000Z',+ ),+ 'autonomous/autonomous-circuit': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/autonomous-grid': (+ addedAt: '2026-09-18T07:20:25.000Z',+ updatedAt: '2026-09-20T07:04:49.000Z',+ ),+ 'autonomous/autonomous-workshop': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/autoresearch-mlx': (+ addedAt: '2026-09-18T02:52:29.000Z',+ updatedAt: '2026-09-18T04:18:33.000Z',+ ),+ 'autonomous/blender': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/bonsai-mcp': (+ addedAt: '2026-09-18T02:52:29.000Z',+ updatedAt: '2026-09-18T04:18:33.000Z',+ ),+ 'autonomous/circuitjs': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/comfy-mcp': (+ addedAt: '2026-09-18T02:52:29.000Z',+ updatedAt: '2026-09-18T04:18:33.000Z',+ ),+ 'autonomous/creative-direction': (+ addedAt: '2026-09-19T16:47:24.000Z',+ updatedAt: '2026-09-20T08:21:01.000Z',+ ),+ 'autonomous/data-studio': (+ addedAt: '2026-09-19T19:26:36.000Z',+ updatedAt: '2026-09-20T08:21:01.000Z',+ ),+ 'autonomous/dimos': (+ addedAt: '2026-09-18T02:52:29.000Z',+ updatedAt: '2026-09-18T04:18:33.000Z',+ ),+ 'autonomous/drone-pilot': (+ addedAt: '2026-09-19T16:47:24.000Z',+ updatedAt: '2026-09-20T10:41:34.000Z',+ ),+ 'autonomous/excalidraw': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/foam-agent': (+ addedAt: '2026-09-18T02:52:29.000Z',+ updatedAt: '2026-09-18T04:18:33.000Z',+ ),+ 'autonomous/freecad': (+ addedAt: '2026-09-19T19:26:36.000Z',+ updatedAt: '2026-09-20T02:53:00.000Z',+ ),+ 'autonomous/game-master': (+ addedAt: '2026-09-19T16:47:24.000Z',+ updatedAt: '2026-09-20T11:45:05.000Z',+ ),+ 'autonomous/generative-art': (+ addedAt: '2026-09-19T16:47:24.000Z',+ updatedAt: '2026-09-20T03:19:57.000Z',+ ),+ 'autonomous/godogen': (+ addedAt: '2026-09-17T06:19:35.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/home-assistant': (+ addedAt: '2026-09-19T19:26:36.000Z',+ updatedAt: '2026-09-20T16:15:08.000Z',+ ),+ 'autonomous/jev-browser': (+ addedAt: '2026-09-19T17:24:55.000Z',+ updatedAt: '2026-09-20T14:36:44.000Z',+ ),+ 'autonomous/jev-sheets': (+ addedAt: '2026-09-19T17:24:55.000Z',+ updatedAt: '2026-09-20T14:36:44.000Z',+ ),+ 'autonomous/juce-agent-toolkit': (+ addedAt: '2026-09-18T02:52:29.000Z',+ updatedAt: '2026-09-18T04:18:33.000Z',+ ),+ 'autonomous/kicad': (+ addedAt: '2026-09-18T08:31:05.000Z',+ updatedAt: '2026-09-18T08:31:05.000Z',+ ),+ 'autonomous/lab-bench': (+ addedAt: '2026-09-19T16:47:24.000Z',+ updatedAt: '2026-09-20T13:10:38.000Z',+ ),+ 'autonomous/machine-monitor': (+ addedAt: '2026-09-20T23:16:16.000Z',+ updatedAt: '2026-09-20T23:16:16.000Z',+ ),+ 'autonomous/manim': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/marimo': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/marp': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/mlx-lm': (+ addedAt: '2026-09-20T07:04:49.000Z',+ updatedAt: '2026-09-20T07:04:49.000Z',+ ),+ 'autonomous/mujoco': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/music-studio': (+ addedAt: '2026-09-19T16:47:24.000Z',+ updatedAt: '2026-09-20T03:19:57.000Z',+ ),+ 'autonomous/ollama': (+ addedAt: '2026-09-20T07:04:49.000Z',+ updatedAt: '2026-09-20T07:04:49.000Z',+ ),+ 'autonomous/openmontage': (+ addedAt: '2026-09-17T08:49:09.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/openscad': (+ addedAt: '2026-09-19T19:26:36.000Z',+ updatedAt: '2026-09-20T05:16:06.000Z',+ ),+ 'autonomous/orca-slicer': (+ addedAt: '2026-09-19T19:26:36.000Z',+ updatedAt: '2026-09-20T06:34:49.000Z',+ ),+ 'autonomous/phaser': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/rdkit': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/remotion': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/roundtable': (+ addedAt: '2026-09-20T10:44:03.000Z',+ updatedAt: '2026-09-20T11:02:44.000Z',+ ),+ 'autonomous/score': (+ addedAt: '2026-09-19T19:26:36.000Z',+ updatedAt: '2026-09-20T08:23:36.000Z',+ ),+ 'autonomous/simskill': (+ addedAt: '2026-09-18T02:52:29.000Z',+ updatedAt: '2026-09-18T04:18:33.000Z',+ ),+ 'autonomous/strudel': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/text-to-cad': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/typst': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+ 'autonomous/vllm': (+ addedAt: '2026-09-20T07:04:49.000Z',+ updatedAt: '2026-09-20T07:04:49.000Z',+ ),+ 'autonomous/voxel-worlds': (+ addedAt: '2026-09-19T16:47:24.000Z',+ updatedAt: '2026-09-20T10:41:34.000Z',+ ),+ 'autonomous/yosys': (+ addedAt: '2026-09-17T05:18:32.000Z',+ updatedAt: '2026-09-18T03:26:29.000Z',+ ),+};diff --git a/desktop/lib/store/store_category.dart b/desktop/lib/store/store_category.dartindex ce8dd5c14..d0ca791bc 100644--- a/desktop/lib/store/store_category.dart+++ b/desktop/lib/store/store_category.dart@@ -5,12 +5,13 @@ import '../core/dsh_catalog.dart';import '../shared/theme/app_theme.dart' as grid;import '../shared/widgets/skeleton.dart';import 'store_listing.dart';+import 'store_featured_art.dart';import 'store_exploration.dart';import 'store_explore_widgets.dart';import 'store_models.dart';-/// A discipline has its own invitation, real examples, and tools to try. Search-/// and the complete index keep their compact rows; individual pages are unchanged.+/// A short invitation and an icon-led catalog. Product details and examples+/// remain one click away; browsing never turns into a wall of screenshots.class StoreCategory extends StatefulWidget {const StoreCategory({super.key,@@ -22,7 +23,6 @@ class StoreCategory extends StatefulWidget {required this.ratingFor,required this.installed,required this.onOpen,- required this.actionsFor,});final String name;@@ -33,7 +33,6 @@ class StoreCategory extends StatefulWidget {final StoreRating Function(DshEntry) ratingFor;final bool Function(String) installed;final ValueChanged<String> onOpen;- final Widget Function(DshEntry) actionsFor;@overrideState<StoreCategory> createState() => _StoreCategoryState();@@ -73,7 +72,6 @@ class _StoreCategoryState extends State<StoreCategory> {final ratingFor = widget.ratingFor;final installed = widget.installed;final onOpen = widget.onOpen;- final actionsFor = widget.actionsFor;final installedCount = widget.entries.where((e) => installed(e.id)).length;final entries = _installedOnly? widget.entries.where((e) => installed(e.id)).toList()@@ -98,20 +96,17 @@ class _StoreCategoryState extends State<StoreCategory> {children: [_DisciplineHero(name: name,- discipline: discipline,entry: example,headline: discipline.headline,description: discipline.description,onOpen: example == null ? null : () => onOpen(example.id),),- const SizedBox(height: 32),+ const SizedBox(height: 26),StoreExploreHeading(- title: coding- ? 'The agents you already know.'- : discipline.invitation,+ title: coding ? 'Coding agents' : 'Explore $name',subtitle: entries.isEmpty && !loaded? null- : '${entries.length} ${coding ? (entries.length == 1 ? 'coding agent' : 'coding agents') : (entries.length == 1 ? 'harness' : 'harnesses')} to explore.',+ : '${entries.length} ${coding ? (entries.length == 1 ? 'coding agent' : 'coding agents') : (entries.length == 1 ? 'harness' : 'harnesses')}',),const SizedBox(height: 14),Wrap(@@ -191,20 +186,13 @@ class _StoreCategoryState extends State<StoreCategory> {),],)- else if (coding)- StoreListing(- entries: entries,- ratingFor: ratingFor,- onOpen: onOpen,- actionsFor: actionsFor,- )else- StoreProjectGrid(+ StoreListing(entries: entries,ratingFor: ratingFor,onOpen: onOpen,- actionsFor: actionsFor,),+if (related.isNotEmpty) ...[const SizedBox(height: 36),const StoreExploreHeading(@@ -229,10 +217,6 @@ class _StoreCategoryState extends State<StoreCategory> {],),],- if (entries.isNotEmpty && !coding) ...[- const SizedBox(height: 40),- const StoreLearningNote(),- ],],),),@@ -246,112 +230,127 @@ class _StoreCategoryState extends State<StoreCategory> {class _DisciplineHero extends StatelessWidget {const _DisciplineHero({required this.name,- required this.discipline,required this.entry,required this.headline,required this.description,required this.onOpen,});final String name;- final StoreDiscipline discipline;final DshEntry? entry;final String headline;final String description;final VoidCallback? onOpen;@override- Widget build(BuildContext context) => LayoutBuilder(- builder: (context, box) {- final narrow =- box.maxWidth < 650 || MediaQuery.textScalerOf(context).scale(14) > 20;- final compact = box.maxWidth < 1000;- final copy = Padding(- padding: EdgeInsets.all(compact ? 26 : 36),- child: Column(- crossAxisAlignment: CrossAxisAlignment.start,- children: [- Text(- name.toUpperCase(),- style: const TextStyle(- fontSize: 11,- letterSpacing: 2,- fontWeight: FontWeight.w700,- color: Color(0xff344437),- ),- ),- const SizedBox(height: 22),- Text(- headline,- style: TextStyle(- fontSize: compact ? 35 : 43,- height: 1.05,- letterSpacing: -1.6,- fontWeight: FontWeight.w700,- color: const Color(0xff182b24),- ),- ),- const SizedBox(height: 18),- Text(- description,- style: const TextStyle(- fontSize: 14,- height: 1.6,- color: Color(0xff37473d),- ),- ),- if (entry != null) ...[- const SizedBox(height: 22),- TextButton.icon(- key: const ValueKey('store-category-feature'),- onPressed: onOpen,- iconAlignment: IconAlignment.end,- icon: const Icon(LucideIcons.arrowUpRight300, size: 16),- style: TextButton.styleFrom(- foregroundColor: const Color(0xff182b24),- backgroundColor: Colors.white.withValues(alpha: .55),- padding: const EdgeInsets.symmetric(- horizontal: 18,- vertical: 14,+ Widget build(BuildContext context) => Column(+ key: const ValueKey('store-category-hero'),+ crossAxisAlignment: CrossAxisAlignment.stretch,+ children: [+ Text(+ name,+ style: TextStyle(+ fontSize: 34,+ height: 1.15,+ letterSpacing: -1,+ fontWeight: FontWeight.w700,+ color: grid.AppPalette.textPrimary,+ ),+ ),+ const SizedBox(height: 20),+ LayoutBuilder(+ builder: (context, box) {+ final compact =+ box.maxWidth < 740 ||+ MediaQuery.textScalerOf(context).scale(14) > 20;+ final copy = Padding(+ padding: const EdgeInsets.all(26),+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ Text(+ 'GET STARTED',+ style: TextStyle(+ fontSize: 10,+ letterSpacing: 1.2,+ fontWeight: FontWeight.w700,+ color: grid.AppPalette.accentOnSurface,),- shape: const StadiumBorder(),),- label: Text('Explore ${entry!.name}'),- ),- ],- ],- ),- );- final art = entry == null- ? null- : AspectRatio(- aspectRatio: narrow ? 1.8 : 1.35,- child: Padding(- padding: const EdgeInsets.all(18),- child: ClipRRect(- borderRadius: BorderRadius.circular(14),- child: StoreProjectArt(entry: entry!),+ const SizedBox(height: 12),+ Text(+ headline.replaceAll('\n', ' '),+ style: TextStyle(+ fontSize: 27,+ height: 1.15,+ letterSpacing: -.5,+ fontWeight: FontWeight.w700,+ color: grid.AppPalette.textPrimary,+ ),),- ),- );- return Container(- key: const ValueKey('store-category-hero'),- clipBehavior: Clip.antiAlias,- decoration: BoxDecoration(- color: discipline.color,- borderRadius: BorderRadius.circular(24),- ),- child: narrow || art == null- ? Column(- crossAxisAlignment: CrossAxisAlignment.stretch,- children: [copy, ?art],- )- : Row(- children: [- Expanded(flex: 11, child: copy),- Expanded(flex: 10, child: art),+ const SizedBox(height: 12),+ Text(+ description,+ style: TextStyle(+ fontSize: 14,+ height: 1.5,+ color: grid.AppPalette.textSecondary,+ ),+ ),+ if (entry != null) ...[+ const SizedBox(height: 20),+ Row(+ children: [+ StoreAppIcon(entry: entry!, size: 30),+ const SizedBox(width: 10),+ Expanded(+ child: Text(+ 'Explore ${entry!.name}',+ style: TextStyle(+ fontSize: 13,+ fontWeight: FontWeight.w600,+ color: grid.AppPalette.textPrimary,+ ),+ ),+ ),+ Icon(+ LucideIcons.arrowRight300,+ size: 16,+ color: grid.AppPalette.textSecondary,+ ),+ ],+ ),],- ),- );- },+ ],+ ),+ );+ final art = entry == null+ ? null+ : AspectRatio(+ aspectRatio: 2,+ child: StoreFeaturedArt(category: name, entry: entry!),+ );+ final body = compact || art == null+ ? Column(+ crossAxisAlignment: CrossAxisAlignment.stretch,+ children: [copy, ?art],+ )+ : Row(+ children: [+ Expanded(child: copy),+ Expanded(child: art),+ ],+ );+ return entry == null+ ? body+ : StoreExploreCard(+ key: const ValueKey('store-category-feature'),+ color: storeDiscipline(name).color,+ onTap: onOpen!,+ semanticLabel: 'Explore ${entry!.name}',+ child: body,+ );+ },+ ),+ ],);}diff --git a/desktop/lib/store/store_collections.dart b/desktop/lib/store/store_collections.dartnew file mode 100644index 000000000..086fe7221--- /dev/null+++ b/desktop/lib/store/store_collections.dart@@ -0,0 +1,42 @@+import '../core/dsh_catalog.dart';+import 'store_catalog_history.g.dart';+import 'store_models.dart';++/// Real publication history bundled with this app release. Membership still+/// comes from the machine's live catalog, so unavailable tools never appear.+List<DshEntry> storeRecentlyUpdated(Iterable<DshEntry> entries) {+ final known = entries+ .where(+ (entry) =>+ !entry.isEngine &&+ !entry.isViewerPackage &&+ storeCatalogHistory.containsKey(entry.id),+ )+ .toList();+ known.sort((a, b) {+ final aTime = storeCatalogHistory[a.id]!.updatedAt;+ final bTime = storeCatalogHistory[b.id]!.updatedAt;+ final order = bTime.compareTo(aTime);+ return order != 0 ? order : a.name.compareTo(b.name);+ });+ return known;+}++/// Community stars are not downloads. Require several reviews per tool and+/// omit unrated tools instead of manufacturing a popularity chart.+List<DshEntry> storeTopRated(+ Iterable<DshEntry> entries,+ StoreRating Function(DshEntry) ratingFor,+) {+ final rated = entries+ .where((entry) => !entry.isViewerPackage && ratingFor(entry).count >= 3)+ .toList();+ rated.sort((a, b) {+ final ar = ratingFor(a), br = ratingFor(b);+ final stars = br.average.compareTo(ar.average);+ if (stars != 0) return stars;+ final reviews = br.count.compareTo(ar.count);+ return reviews != 0 ? reviews : a.name.compareTo(b.name);+ });+ return rated;+}diff --git a/desktop/lib/store/store_discover.dart b/desktop/lib/store/store_discover.dartindex 7b5bf57af..e2c477be1 100644--- a/desktop/lib/store/store_discover.dart+++ b/desktop/lib/store/store_discover.dart@@ -4,22 +4,23 @@ import 'package:lucide_icons_flutter/lucide_icons.dart';import '../core/dsh_catalog.dart';import '../shared/theme/app_theme.dart' as grid;import '../shared/widgets/skeleton.dart';-import '../widgets/engine_identity.dart';+import 'store_collections.dart';import 'store_editorial.dart';import 'store_exploration.dart';import 'store_explore_widgets.dart';+import 'store_featured_art.dart';+import 'store_listing.dart';import 'store_models.dart';-/// Invitations to explore, backed by the catalog on this machine. No invented-/// availability, popularity, or ratings; each preview opens its actual harness.-class StoreDiscover extends StatefulWidget {+/// Three editorial features invite exploration before the icon collections. The catalog itself+/// uses the same recognizable icons and rows as categories and search.+class StoreDiscover extends StatelessWidget {const StoreDiscover({super.key,required this.entries,required this.loaded,required this.ratingFor,required this.onOpen,- required this.actionsFor,required this.onCategory,required this.onAll,required this.onEngines,@@ -29,65 +30,41 @@ class StoreDiscover extends StatefulWidget {final bool loaded;final StoreRating Function(DshEntry) ratingFor;final ValueChanged<String> onOpen;- final Widget Function(DshEntry) actionsFor;final ValueChanged<String> onCategory;final VoidCallback onAll;final VoidCallback onEngines;- @override- State<StoreDiscover> createState() => _StoreDiscoverState();-}--class _StoreDiscoverState extends State<StoreDiscover> {- final _paths = GlobalKey();-- void _explore() {- final target = _paths.currentContext;- if (target == null) return;- Scrollable.ensureVisible(- target,- alignment: .03,- duration: MediaQuery.disableAnimationsOf(context)- ? Duration.zero- : const Duration(milliseconds: 350),- curve: Curves.easeOutCubic,- );- }-@overrideWidget build(BuildContext context) {grid.AppTheme.watch(context);- final byId = {for (final entry in widget.entries) entry.id: entry};- final samples = [- for (final id in [- 'autonomous/blender',- 'autonomous/text-to-cad',- 'autonomous/mujoco',- 'autonomous/godogen',- 'autonomous/phaser',- 'autonomous/marimo',- ])- ?byId[id],- ].take(3).toList();+ final byId = {for (final entry in entries) entry.id: entry};+ // Editorial stories share an art direction and open actual catalog entries.+ final features = [+ ?(byId['codex'] ?? byId['claude']),+ ?byId['autonomous/blender'],+ ?(byId['autonomous/autonomous-circuit'] ?? byId['autonomous/copper']),+ ];final engines = [for (final id in ['claude', 'codex', 'cursor']) ?byId[id],];- final crafts = widget.entries- .where((e) => !e.isEngine && !e.isViewerPackage)+ final crafts = entries+ .where((entry) => !entry.isEngine && !entry.isViewerPackage).toList();const picks = ['autonomous/text-to-cad',- 'autonomous/score',+ 'autonomous/strudel','autonomous/marimo',- 'autonomous/mujoco','autonomous/remotion','autonomous/roundtable',+ 'autonomous/marp',];crafts.sort((a, b) {final ai = picks.indexOf(a.id), bi = picks.indexOf(b.id);final rank = (ai < 0 ? 999 : ai).compareTo(bi < 0 ? 999 : bi);return rank == 0 ? a.name.compareTo(b.name) : rank;});+ final recent = storeRecentlyUpdated(crafts).take(6).toList();+ final topRated = storeTopRated(entries, ratingFor).take(6).toList();final categories = [for (final name in [...storeCategoryDomains.keys, 'Other'])if (name != 'Coding' &&@@ -106,52 +83,151 @@ class _StoreDiscoverState extends State<StoreDiscover> {child: Column(crossAxisAlignment: CrossAxisAlignment.stretch,children: [+ Column(+ key: const ValueKey('store-curiosity-hero'),+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ Text(+ 'Follow your curiosity.',+ style: TextStyle(+ fontSize: 34,+ height: 1.15,+ letterSpacing: -1.1,+ fontWeight: FontWeight.w700,+ color: grid.AppPalette.textPrimary,+ ),+ ),+ const SizedBox(height: 8),+ Text(+ 'Start with code. Build across disciplines.',+ style: TextStyle(+ fontSize: 15,+ height: 1.4,+ color: grid.AppPalette.textSecondary,+ ),+ ),+ ],+ ),+ if (features.isNotEmpty) ...[+ const SizedBox(height: 24),+ LayoutBuilder(+ builder: (context, constraints) {+ final scale =+ MediaQuery.textScalerOf(context).scale(14) / 14;+ final wide =+ constraints.maxWidth >= 980 &&+ scale <= 1.25 &&+ features.length == 3;+ final width = wide+ ? (constraints.maxWidth - 40) / 3+ : (constraints.maxWidth * .86).clamp(280.0, 520.0);+ final cards = [+ for (final entry in features)+ SizedBox(+ width: width,+ child: _FeaturedStory(+ entry: entry,+ onTap: () => onOpen(entry.id),+ ),+ ),+ ];+ return SingleChildScrollView(+ key: const PageStorageKey('store-featured-scroll'),+ scrollDirection: Axis.horizontal,+ child: Row(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ for (var i = 0; i < cards.length; i++) ...[+ if (i > 0) const SizedBox(width: 20),+ cards[i],+ ],+ ],+ ),+ );+ },+ ),+ ],if (engines.isNotEmpty) ...[- const SizedBox(height: 4),- _CodingStart(+ const SizedBox(height: 24),+ StoreExploreHeading(+ title: 'Your starting point: code.',+ action: 'All coding agents',+ onAction: onEngines,+ ),+ const SizedBox(height: 6),+ StoreListing(entries: engines,- onOpen: widget.onOpen,- actionsFor: widget.actionsFor,- onAll: widget.onEngines,+ ratingFor: ratingFor,+ onOpen: onOpen,),],- const SizedBox(height: 22),- _CuriosityHero(- samples: samples,- onOpen: widget.onOpen,- onExplore: categories.isEmpty ? widget.onEngines : _explore,- ),- if (categories.isNotEmpty) ...[- const SizedBox(height: 40),+ if (recent.isNotEmpty) ...[+ const SizedBox(height: 28),+ const StoreExploreHeading(+ title: 'New & updated',+ subtitle:+ 'The latest additions and updates in this release.',+ ),+ const SizedBox(height: 8),+ StoreListing(+ key: const ValueKey('store-recent-collection'),+ rowKeyPrefix: 'store-recent',+ entries: recent,+ ratingFor: ratingFor,+ onOpen: onOpen,+ ),+ ],+ if (topRated.length >= 2) ...[+ const SizedBox(height: 28),+ const StoreExploreHeading(+ title: 'Top rated',+ subtitle: 'Rated by the people building with them.',+ ),+ const SizedBox(height: 8),+ StoreListing(+ key: const ValueKey('store-top-rated-collection'),+ rowKeyPrefix: 'store-top-rated',+ showRanks: true,+ entries: topRated,+ ratingFor: ratingFor,+ onOpen: onOpen,+ ),+ ],+ if (crafts.isNotEmpty) ...[+ const SizedBox(height: 32),StoreExploreHeading(- key: _paths,- title: 'Choose your next superpower.',- subtitle: 'Same curiosity. New tools. What do you want to make next?',+ title: 'A little beyond your comfort zone.',+ subtitle: 'Pick a tool. Try a small idea. See where it takes you.',action: 'Browse all',- onAction: widget.onAll,+ onAction: onAll,),- const SizedBox(height: 22),+ const SizedBox(height: 8),+ StoreListing(+ entries: crafts.take(6).toList(),+ ratingFor: ratingFor,+ onOpen: onOpen,+ ),+ const SizedBox(height: 32),+ const StoreExploreHeading(title: 'Explore disciplines'),+ const SizedBox(height: 16),LayoutBuilder(builder: (context, constraints) {final scale =MediaQuery.textScalerOf(context).scale(14) / 14;- final columns =- constraints.maxWidth >= 1080 && scale <= 1.25- ? 3- : constraints.maxWidth >= 620 && scale <= 1.5- ? 2- : 1;+ final columns = (constraints.maxWidth / (320 * scale))+ .floor()+ .clamp(1, 3);final width =- (constraints.maxWidth - (columns - 1) * 20) /+ (constraints.maxWidth - (columns - 1) * 16) /columns;return Wrap(- spacing: 20,- runSpacing: 20,+ spacing: 16,+ runSpacing: 16,children: [for (final name in categories)SizedBox(width: width,- child: _CuriosityPath(+ child: _DisciplineLink(key: ValueKey('store-category:$name'),name: name,entries: crafts@@ -160,32 +236,35 @@ class _StoreDiscoverState extends State<StoreDiscover> {storeCategoryFor(entry) == name,).toList(),- onTap: () => widget.onCategory(name),+ onTap: () => onCategory(name),),),],);},),- const SizedBox(height: 42),- const StoreExploreHeading(- title: 'It started with a prompt.',- subtitle: 'Borrow a starting point. Make it your own.',+ const SizedBox(height: 32),+ Text(+ 'For polymaths in the making.',+ style: TextStyle(+ fontSize: 16,+ fontWeight: FontWeight.w600,+ color: grid.AppPalette.textPrimary,+ ),),- const SizedBox(height: 22),- StoreProjectGrid(- entries: crafts.take(6).toList(),- showExamples: true,- ratingFor: widget.ratingFor,- onOpen: widget.onOpen,- actionsFor: widget.actionsFor,+ const SizedBox(height: 6),+ Text(+ 'Learn the next craft through the things you build.',+ style: TextStyle(+ fontSize: 14,+ height: 1.5,+ color: grid.AppPalette.textSecondary,+ ),),- const SizedBox(height: 40),- const StoreLearningNote(),- ] else if (!widget.loaded) ...[+ ] else if (!loaded) ...[const SizedBox(height: 32),const SkeletonBlock(- child: Skeleton(height: 240, radius: 20),+ child: Skeleton(height: 160, radius: 16),),] else ...[const SizedBox(height: 32),@@ -208,305 +287,101 @@ class _StoreDiscoverState extends State<StoreDiscover> {}}-class _CuriosityHero extends StatelessWidget {- const _CuriosityHero({- required this.samples,- required this.onOpen,- required this.onExplore,- });- final List<DshEntry> samples;- final ValueChanged<String> onOpen;- final VoidCallback onExplore;-- @override- Widget build(BuildContext context) => LayoutBuilder(- builder: (context, box) {- final narrow =- box.maxWidth < 650 || MediaQuery.textScalerOf(context).scale(14) > 20;- final compact = box.maxWidth < 1000;- // The robot fits the portrait tile; wide artwork keeps its composition- // and lettering in the landscape tiles beside it.- final portrait =- samples- .where((entry) => entry.id == 'autonomous/mujoco')- .firstOrNull ??- samples.firstOrNull;- final landscapes = samples.where((entry) => entry != portrait).toList();- const ink = Color(0xff182b24);- final copy = Padding(- padding: EdgeInsets.all(compact ? 28 : 38),- child: Column(- crossAxisAlignment: CrossAxisAlignment.start,- children: [- const Text(- 'FOR POLYMATHS IN THE MAKING',- style: TextStyle(- fontSize: 10,- letterSpacing: 1.6,- fontWeight: FontWeight.w700,- color: Color(0xff45543a),- ),- ),- const SizedBox(height: 24),- Text(- 'Follow your\ncuriosity.',- style: TextStyle(- fontSize: compact ? 43 : 54,- height: .98,- letterSpacing: -2.5,- fontWeight: FontWeight.w700,- color: ink,- ),- ),- const SizedBox(height: 24),- const Text(- 'Start with code. Build across disciplines.',- style: TextStyle(- fontSize: 16,- height: 1.4,- fontWeight: FontWeight.w600,- color: ink,- ),- ),- const SizedBox(height: 10),- const Text(- 'Your ideas can take you into unfamiliar crafts.\nThis is a place to follow them.',- style: TextStyle(- fontSize: 14,- height: 1.6,- color: Color(0xff45543a),- ),- ),- const SizedBox(height: 26),- FilledButton.icon(- onPressed: onExplore,- iconAlignment: IconAlignment.end,- style: FilledButton.styleFrom(- backgroundColor: ink,- foregroundColor: Colors.white,- padding: const EdgeInsets.symmetric(- horizontal: 22,- vertical: 18,- ),- ),- icon: const Icon(LucideIcons.arrowDown300, size: 16),- label: const Text('Explore disciplines'),- ),- ],- ),- );- final art = samples.isEmpty- ? null- : Padding(- padding: const EdgeInsets.all(24),- child: Row(- crossAxisAlignment: CrossAxisAlignment.center,- children: [- Expanded(- child: _HeroProject(- entry: portrait!,- tall: samples.length > 1,- onTap: () => onOpen(portrait.id),- ),- ),- if (samples.length > 1) ...[- const SizedBox(width: 14),- Expanded(- child: Column(- children: [- for (final entry in landscapes) ...[- _HeroProject(- entry: entry,- onTap: () => onOpen(entry.id),- ),- if (entry != landscapes.last)- const SizedBox(height: 14),- ],- ],- ),- ),- ],- ],- ),- );- return Container(- key: const ValueKey('store-curiosity-hero'),- decoration: BoxDecoration(- color: const Color(0xffdfefbc),- borderRadius: BorderRadius.circular(24),- ),- clipBehavior: Clip.antiAlias,- child: narrow || art == null- ? Column(- crossAxisAlignment: CrossAxisAlignment.stretch,- children: [copy, ?art],- )- : Row(- children: [- Expanded(flex: 11, child: copy),- Expanded(flex: 10, child: art),- ],- ),- );- },- );-}--class _HeroProject extends StatelessWidget {- const _HeroProject({- required this.entry,- required this.onTap,- this.tall = false,- });+class _FeaturedStory extends StatelessWidget {+ const _FeaturedStory({required this.entry, required this.onTap});final DshEntry entry;final VoidCallback onTap;- final bool tall;@override- Widget build(BuildContext context) => Material(- key: ValueKey('store-feature:${entry.id}'),- color: const Color(0xff22302b),- borderRadius: BorderRadius.circular(14),- clipBehavior: Clip.antiAlias,- child: InkWell(+ Widget build(BuildContext context) {+ final category = entry.isEngine+ ? 'Coding'+ : entry.id == 'autonomous/blender'+ ? 'Design'+ : 'Engineering';+ final headline = switch (category) {+ 'Coding' => 'Build what comes next.',+ 'Design' => 'Give your ideas shape.',+ _ => 'Build something real.',+ };+ final scale = MediaQuery.textScalerOf(context).scale(14) / 14;+ return StoreExploreCard(+ key: ValueKey('store-feature:${entry.id}'),+ color: storeDiscipline(category).color,onTap: onTap,+ semanticLabel: 'Explore ${entry.name}',child: Column(+ crossAxisAlignment: CrossAxisAlignment.stretch,children: [- AspectRatio(- aspectRatio: tall ? .94 : 1.65,- child: StoreProjectArt(entry: entry),- ),Padding(- padding: const EdgeInsets.all(12),- child: Row(+ padding: const EdgeInsets.all(18),+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.start,children: [- Expanded(+ Text(+ category.toUpperCase(),+ style: TextStyle(+ fontSize: 10,+ letterSpacing: 1.1,+ fontWeight: FontWeight.w700,+ color: grid.AppPalette.accentOnSurface,+ ),+ ),+ const SizedBox(height: 8),+ SizedBox(+ height: 50 * scale,child: Text(- entry.name,- maxLines: 2,- overflow: TextOverflow.ellipsis,- style: const TextStyle(- fontSize: 12,- color: Colors.white,- fontWeight: FontWeight.w600,+ headline,+ style: TextStyle(+ fontSize: 21,+ height: 1.15,+ letterSpacing: -.4,+ fontWeight: FontWeight.w700,+ color: grid.AppPalette.textPrimary,),),),- const SizedBox(width: 4),- const Icon(- LucideIcons.arrowUpRight300,- size: 14,- color: Color(0xffdfefbc),+ Row(+ children: [+ StoreAppIcon(entry: entry, size: 24),+ const SizedBox(width: 8),+ Expanded(+ child: Text(+ 'Explore ${entry.name}',+ maxLines: 1,+ overflow: TextOverflow.ellipsis,+ style: TextStyle(+ fontSize: 12,+ color: grid.AppPalette.textSecondary,+ ),+ ),+ ),+ Icon(+ LucideIcons.arrowRight300,+ size: 15,+ color: grid.AppPalette.textSecondary,+ ),+ ],),],),),- ],- ),- ),- );-}--class _CodingStart extends StatelessWidget {- const _CodingStart({- required this.entries,- required this.onOpen,- required this.actionsFor,- required this.onAll,- });- final List<DshEntry> entries;- final ValueChanged<String> onOpen;- final Widget Function(DshEntry) actionsFor;- final VoidCallback onAll;-- @override- Widget build(BuildContext context) => Column(- crossAxisAlignment: CrossAxisAlignment.stretch,- children: [- Row(- children: [- Expanded(- child: Text(- 'Your starting point: code.',- style: TextStyle(- fontSize: 14,- fontWeight: FontWeight.w600,- color: grid.AppPalette.textSecondary,- ),+ AspectRatio(+ aspectRatio: 2,+ child: StoreFeaturedArt(+ key: ValueKey('store-feature-art:${entry.id}'),+ category: category,+ entry: entry,),),- TextButton(onPressed: onAll, child: const Text('All coding agents')),],),- const SizedBox(height: 8),- LayoutBuilder(- builder: (context, box) {- final columns =- box.maxWidth >= 1020 &&- MediaQuery.textScalerOf(context).scale(14) <= 18- ? 3- : 1;- final width = (box.maxWidth - (columns - 1) * 12) / columns;- return Wrap(- spacing: 12,- runSpacing: 12,- children: [- for (final entry in entries)- SizedBox(- width: width,- child: Material(- key: ValueKey('store-card:${entry.id}'),- color: grid.AppSurface.recess,- borderRadius: BorderRadius.circular(14),- clipBehavior: Clip.antiAlias,- child: InkWell(- onTap: () => onOpen(entry.id),- child: Padding(- padding: const EdgeInsets.symmetric(- horizontal: 14,- vertical: 10,- ),- child: Column(- crossAxisAlignment: CrossAxisAlignment.start,- children: [- Row(- children: [- EngineMark(- engine: entry.id,- displayName: entry.name,- size: 30,- ),- const SizedBox(width: 10),- Expanded(- child: Text(- entry.name,- style: TextStyle(- fontSize: 13,- fontWeight: FontWeight.w600,- color: grid.AppPalette.textPrimary,- ),- ),- ),- ],- ),- const SizedBox(height: 12),- actionsFor(entry),- ],- ),- ),- ),- ),- ),- ],- );- },- ),- ],- );+ );+ }}-class _CuriosityPath extends StatelessWidget {- const _CuriosityPath({+class _DisciplineLink extends StatelessWidget {+ const _DisciplineLink({super.key,required this.name,required this.entries,@@ -520,90 +395,47 @@ class _CuriosityPath extends StatelessWidget {Widget build(BuildContext context) {final discipline = storeDiscipline(name);final example = discipline.example(entries)!;- final scale = MediaQuery.textScalerOf(context).scale(14) / 14;- final marks = [- example,- ...entries.where((entry) => entry.id != example.id),- ].take(3);return StoreExploreCard(color: discipline.color,onTap: onTap,semanticLabel: 'Explore $name',- child: Column(- crossAxisAlignment: CrossAxisAlignment.stretch,- children: [- AspectRatio(aspectRatio: 2.1, child: StoreProjectArt(entry: example)),- Container(height: 3, color: discipline.color),- SizedBox(- height: 151 * scale,- child: Padding(- padding: const EdgeInsets.all(20),+ child: Padding(+ padding: const EdgeInsets.all(18),+ child: Row(+ children: [+ StoreAppIcon(entry: example, size: 48),+ const SizedBox(width: 14),+ Expanded(child: Column(crossAxisAlignment: CrossAxisAlignment.start,children: [- Row(- children: [- Expanded(- child: Text(- name,- maxLines: 1,- overflow: TextOverflow.ellipsis,- style: TextStyle(- fontSize: 22,- height: 1.15,- letterSpacing: -.4,- fontWeight: FontWeight.w700,- color: grid.AppPalette.textPrimary,- ),- ),- ),- Icon(- LucideIcons.arrowUpRight300,- size: 18,- color: grid.AppPalette.textSecondary,- ),- ],+ Text(+ name,+ style: TextStyle(+ fontSize: 16,+ fontWeight: FontWeight.w600,+ color: grid.AppPalette.textPrimary,+ ),),- const SizedBox(height: 8),+ const SizedBox(height: 5),Text(- discipline.headline.replaceAll('\n', ' '),- maxLines: 2,- overflow: TextOverflow.ellipsis,+ '${entries.length} ${entries.length == 1 ? 'harness' : 'harnesses'}',style: TextStyle(- fontSize: 13,- height: 1.4,+ fontSize: 12,color: grid.AppPalette.textSecondary,),),- const Spacer(),- Row(- children: [- for (final entry in marks) ...[- Tooltip(- message: entry.name,- child: EngineMark(- engine: entry.id,- displayName: entry.name,- size: 24,- ),- ),- const SizedBox(width: 7),- ],- const Spacer(),- Text(- '${entries.length} ${entries.length == 1 ? 'harness' : 'harnesses'}',- style: TextStyle(- fontSize: 12,- color: grid.AppPalette.textSecondary,- ),- ),- ],- ),],),),- ),- ],+ const SizedBox(width: 8),+ Icon(+ LucideIcons.chevronRight300,+ size: 16,+ color: grid.AppPalette.textSecondary,+ ),+ ],+ ),),);}diff --git a/desktop/lib/store/store_editorial.dart b/desktop/lib/store/store_editorial.dartindex f77903420..36bb1c2f4 100644--- a/desktop/lib/store/store_editorial.dart+++ b/desktop/lib/store/store_editorial.dart@@ -195,6 +195,38 @@ const storeStories = <String, StoreStory>{),};+/// Brief captions for icon lists. Full technical descriptions stay on each+/// harness page and in package metadata; community tools retain their own copy.+const _browseBenefits = <String, String>{+ 'autonomous/ableton-ai': 'Turn a small loop into a whole mood.',+ 'autonomous/autoresearch-mlx': 'Train, compare, and follow the evidence.',+ 'autonomous/bonsai-mcp': 'Shape a building. Explore its spaces.',+ 'autonomous/comfy-mcp': 'Explore images. Keep the recipe.',+ 'autonomous/creative-direction': 'Give your next idea an identity.',+ 'autonomous/dimos': 'Send a rover on a new adventure.',+ 'autonomous/drone-pilot': 'Plan a flight. See the bigger picture.',+ 'autonomous/foam-agent': 'Change a shape. Follow the flow.',+ 'autonomous/freecad': 'Make a custom part that fits your idea.',+ 'autonomous/game-master': 'Invent a game. Play with the rules.',+ 'autonomous/generative-art': 'Draw with code. Explore the variations.',+ 'autonomous/godogen': 'Build a world you can play.',+ 'autonomous/home-assistant': 'Make your home work your way.',+ 'autonomous/jev-browser': 'Turn web pages into answers you can use.',+ 'autonomous/juce-agent-toolkit': 'Shape a synth. Find your sound.',+ 'autonomous/kicad': 'Design a board. Explore every connection.',+ 'autonomous/lab-bench': 'Turn a good question into an experiment.',+ 'autonomous/mlx-lm': 'Explore language models on your Mac.',+ 'autonomous/openscad': 'Code a shape. Make it your own.',+ 'autonomous/orca-slicer': 'Prepare your next 3D print.',+ 'autonomous/score': 'Put the music in your head on the page.',+ 'autonomous/simskill': 'Change the lights. Make a city flow.',+ 'autonomous/vllm': 'Put your own models to work.',+ 'autonomous/voxel-worlds': 'Build a place you can step inside.',+};++String storeBrowseBenefit(DshEntry entry) =>+ _browseBenefits[entry.id] ?? storeBenefit(entry);+String storeBenefit(DshEntry entry) =>storeStories[entry.id]?.benefit ??entry.description ??@@ -212,6 +244,7 @@ bool storeMatches(DshEntry entry, String query) {entry.description,entry.tagline,storeBenefit(entry),+ storeBrowseBenefit(entry),...?storeStories[entry.id]?.prompts,storeProjectExamples[entry.id]?.prompt,storeProjectExamples[entry.id]?.title,diff --git a/desktop/lib/store/store_explore_widgets.dart b/desktop/lib/store/store_explore_widgets.dartindex 4e37ea3ca..050ed2fe5 100644--- a/desktop/lib/store/store_explore_widgets.dart+++ b/desktop/lib/store/store_explore_widgets.dart@@ -1,16 +1,13 @@import 'package:flutter/material.dart';-import 'package:flutter/services.dart';import 'package:lucide_icons_flutter/lucide_icons.dart';import 'package:url_launcher/url_launcher.dart';import '../core/dsh_catalog.dart';import '../shared/theme/app_theme.dart' as grid;-import '../shared/widgets/app_icon_button.dart';import '../widgets/engine_identity.dart';import 'store_editorial.dart';import 'store_cover_art.dart';import 'store_exploration.dart';-import 'store_models.dart';class StoreExploreHeading extends StatelessWidget {const StoreExploreHeading({@@ -36,10 +33,10 @@ class StoreExploreHeading extends StatelessWidget {Text(title,style: TextStyle(- fontSize: 25,+ fontSize: 21,height: 1.15,fontWeight: FontWeight.w700,- letterSpacing: -.7,+ letterSpacing: -.4,color: grid.AppPalette.textPrimary,),),@@ -189,9 +186,9 @@ class _CoverCredit extends StatelessWidget {'${cover.description}\n${cover.credit} · ${cover.license}\nView source',child: Material(color: const Color(0xc91a1b1e),- borderRadius: BorderRadius.circular(20),+ borderRadius: BorderRadius.circular(16),child: InkWell(- borderRadius: BorderRadius.circular(20),+ borderRadius: BorderRadius.circular(16),onTap: () async {final messenger = ScaffoldMessenger.maybeOf(context);try {@@ -247,7 +244,7 @@ class _StoreExploreCardState extends State<StoreExploreCard> {@overrideWidget build(BuildContext context) {final active = _hovered || _focused;- final radius = BorderRadius.circular(20);+ final radius = BorderRadius.circular(16);return AnimatedContainer(duration: MediaQuery.disableAnimationsOf(context)? Duration.zero@@ -287,271 +284,3 @@ class _StoreExploreCardState extends State<StoreExploreCard> {);}}--class StoreProjectGrid extends StatelessWidget {- const StoreProjectGrid({- super.key,- required this.entries,- required this.ratingFor,- required this.onOpen,- required this.actionsFor,- this.showExamples = false,- });- final List<DshEntry> entries;- final StoreRating Function(DshEntry) ratingFor;- final ValueChanged<String> onOpen;- final Widget Function(DshEntry) actionsFor;- final bool showExamples;-- @override- Widget build(BuildContext context) => LayoutBuilder(- builder: (context, box) {- final scale = MediaQuery.textScalerOf(context).scale(14) / 14;- final columns = box.maxWidth >= 1080 && scale <= 1.25- ? 3- : box.maxWidth >= 620 && scale <= 1.5- ? 2- : 1;- final width = (box.maxWidth - (columns - 1) * 20) / columns;- return Wrap(- spacing: 20,- runSpacing: 20,- children: [- for (final entry in entries)- SizedBox(- width: width,- child: _ProjectCard(- key: ValueKey('store-card:${entry.id}'),- entry: entry,- rating: ratingFor(entry),- onOpen: () => onOpen(entry.id),- actions: actionsFor(entry),- showExample: showExamples,- ),- ),- ],- );- },- );-}--class _ProjectCard extends StatelessWidget {- const _ProjectCard({- super.key,- required this.entry,- required this.rating,- required this.onOpen,- required this.actions,- required this.showExample,- });- final DshEntry entry;- final StoreRating rating;- final VoidCallback onOpen;- final Widget actions;- final bool showExample;-- @override- Widget build(BuildContext context) {- final scale = MediaQuery.textScalerOf(context).scale(14) / 14;- // Upstream covers describe the tool, not the result of our example prompt.- final cover = showExample ? null : storeCoverArt[entry.id];- final prompt = storeProjectPrompt(entry);- final title = cover == null- ? storeProjectTitle(entry)- : prompt == null- ? null- : storeBenefit(entry);- Future<void> copyPrompt() async {- await Clipboard.setData(ClipboardData(text: prompt!));- if (context.mounted) {- ScaffoldMessenger.of(context)- .showSnackBar(const SnackBar(content: Text('Prompt copied')));- }- }-- return StoreExploreCard(- color: storeDiscipline(storeCategoryFor(entry)).color,- onTap: onOpen,- child: Column(- crossAxisAlignment: CrossAxisAlignment.stretch,- children: [- AspectRatio(- aspectRatio: 1.65,- child: StoreProjectArt(entry: entry, showExample: showExample),- ),- SizedBox(- height: 288 * scale,- child: Padding(- padding: const EdgeInsets.all(20),- child: Column(- crossAxisAlignment: CrossAxisAlignment.start,- children: [- Row(- children: [- EngineMark(- engine: entry.id,- displayName: entry.name,- size: 26,- ),- const SizedBox(width: 10),- Expanded(- child: Text(- entry.name,- maxLines: 2,- overflow: TextOverflow.ellipsis,- style: TextStyle(- fontSize: 18,- height: 1.15,- fontWeight: FontWeight.w600,- color: grid.AppPalette.textPrimary,- ),- ),- ),- if (entry.hasUpdate)- Tooltip(- message: 'Update available',- child: Icon(- LucideIcons.arrowUpCircle300,- size: 16,- color: grid.AppPalette.accentOnSurface,- ),- ),- ],- ),- const SizedBox(height: 12),- if (title != null) ...[- Text(- title,- maxLines: 2,- overflow: TextOverflow.ellipsis,- style: TextStyle(- fontSize: 14,- height: 1.3,- fontWeight: FontWeight.w600,- color: grid.AppPalette.textPrimary,- ),- ),- const SizedBox(height: 8),- ],- Text(- prompt == null- ? storeBenefit(entry)- : cover == null- ? '“$prompt”'- : 'Try: “$prompt”',- maxLines: title == null ? 3 : 2,- overflow: TextOverflow.ellipsis,- style: TextStyle(- fontSize: 13,- height: 1.45,- color: grid.AppPalette.textSecondary,- ),- ),- const Spacer(),- Row(- children: [- if (!rating.isEmpty) ...[- const Icon(- Icons.star_rounded,- size: 14,- color: Color(0xffd39c44),- ),- const SizedBox(width: 4),- Text(- '${rating.average.toStringAsFixed(1)} · ${rating.count}',- style: TextStyle(- fontSize: 12,- color: grid.AppPalette.textSecondary,- ),- ),- if (prompt != null) ...[- const SizedBox(width: 8),- AppIconButton(- key: ValueKey('store-copy-idea:${entry.id}'),- icon: LucideIcons.copy300,- size: 14,- tooltip: 'Copy prompt',- onPressed: copyPrompt,- ),- ],- ] else if (prompt != null) ...[- TextButton.icon(- key: ValueKey('store-copy-idea:${entry.id}'),- onPressed: copyPrompt,- style: TextButton.styleFrom(- foregroundColor: grid.AppPalette.textSecondary,- padding: const EdgeInsets.symmetric(horizontal: 4),- minimumSize: const Size(0, 34),- ),- icon: const Icon(LucideIcons.copy300, size: 13),- label: const Text(- 'Copy prompt',- style: TextStyle(fontSize: 12),- ),- ),- ] else ...[- Text(- 'Explore',- style: TextStyle(- fontSize: 12,- fontWeight: FontWeight.w600,- color: grid.AppPalette.textSecondary,- ),- ),- const SizedBox(width: 6),- Icon(- LucideIcons.arrowUpRight300,- size: 14,- color: grid.AppPalette.textSecondary,- ),- ],- ],- ),- const SizedBox(height: 8),- actions,- ],- ),- ),- ),- ],- ),- );- }-}--class StoreLearningNote extends StatelessWidget {- const StoreLearningNote({super.key});-- @override- Widget build(BuildContext context) => Container(- padding: const EdgeInsets.all(28),- decoration: BoxDecoration(- border: Border(top: BorderSide(color: grid.AppPalette.divider)),- ),- child: Column(- crossAxisAlignment: CrossAxisAlignment.start,- children: [- Text(- 'Learn the next craft through the things you build.',- style: TextStyle(- fontSize: 23,- height: 1.2,- letterSpacing: -.5,- fontWeight: FontWeight.w600,- color: grid.AppPalette.textPrimary,- ),- ),- const SizedBox(height: 12),- Text(- 'Give an agent an idea. Inspect what it makes. Change a detail and try again. '- 'Your curiosity sets the direction; your judgment shapes what comes next.',- style: TextStyle(- fontSize: 14,- height: 1.6,- color: grid.AppPalette.textSecondary,- ),- ),- ],- ),- );-}diff --git a/desktop/lib/store/store_featured_art.dart b/desktop/lib/store/store_featured_art.dartnew file mode 100644index 000000000..376f6d2fa--- /dev/null+++ b/desktop/lib/store/store_featured_art.dart@@ -0,0 +1,44 @@+import 'package:flutter/material.dart';++import '../core/dsh_catalog.dart';+import 'store_listing.dart';++/// Original editorial illustrations, kept separate from real project output.+/// These appear only in featured stories, never in the catalog's icon rows.+const storeFeaturedArt = <String, String>{+ 'Coding': 'assets/store/editorial-code.png',+ 'Design': 'assets/store/editorial-shape.png',+ 'Engineering': 'assets/store/editorial-circuit.png',+ 'Media': 'assets/store/editorial-media.png',+ 'Music': 'assets/store/editorial-music.png',+ 'Productivity': 'assets/store/editorial-productivity.png',+ 'Science & Data': 'assets/store/editorial-science.png',+ 'Simulation': 'assets/store/editorial-simulation.png',+ 'Games': 'assets/store/editorial-games.png',+ 'Research': 'assets/store/editorial-research.png',+ 'Local AI': 'assets/store/editorial-local-ai.png',+};++class StoreFeaturedArt extends StatelessWidget {+ const StoreFeaturedArt({+ super.key,+ required this.category,+ required this.entry,+ });+ final String category;+ final DshEntry entry;++ @override+ Widget build(BuildContext context) {+ final asset = storeFeaturedArt[category];+ final fallback = Center(child: StoreAppIcon(entry: entry, size: 72));+ return asset == null+ ? fallback+ : Image.asset(+ asset,+ fit: BoxFit.cover,+ semanticLabel: '$category editorial illustration',+ errorBuilder: (_, _, _) => fallback,+ );+ }+}diff --git a/desktop/lib/store/store_harness_actions.dart b/desktop/lib/store/store_harness_actions.dartindex 793f683c0..5b1bc1468 100644--- a/desktop/lib/store/store_harness_actions.dart+++ b/desktop/lib/store/store_harness_actions.dart@@ -90,8 +90,8 @@ Future<bool> resumeStoreHarness(return true;}-/// The same two launch actions for every installed engine and domain harness.-/// One target resumes directly; multiple targets always ask which one.+/// Launch actions on a harness page. Resume appears only with an existing+/// target: one resumes directly, and multiple targets ask which one.class StoreHarnessActions extends StatefulWidget {const StoreHarnessActions({super.key,@@ -195,157 +195,175 @@ class _StoreHarnessActionsState extends State<StoreHarnessActions> {fontSize: size,fontWeight: FontWeight.w600,);- final tooltip = targets.isEmpty- ? 'No harness to resume yet. Start a new harness.'- : multiple+ final tooltip = multiple? 'Choose a harness to resume'- : targets.single.tooltip;+ : targets.firstOrNull?.tooltip ?? '';final menuWidth = math.min(420.0, MediaQuery.sizeOf(context).width - 40);- return Wrap(- spacing: 8,- runSpacing: 8,- alignment: widget.prominent- ? WrapAlignment.center- : WrapAlignment.start,- crossAxisAlignment: WrapCrossAlignment.center,- children: [- MenuAnchor(- controller: _menu,- childFocusNode: _buttonFocus,- consumeOutsideTap: true,- alignmentOffset: const Offset(0, grid.AppControl.menuGap),- style: grid.AppMenu.style(maxHeight: 360),- menuChildren: [- SizedBox(- width: menuWidth,- child: Padding(- padding: const EdgeInsets.fromLTRB(18, 12, 18, 8),- child: Text(- 'Recent harnesses',- style: TextStyle(- fontSize: 12,- fontWeight: FontWeight.w600,- color: grid.AppPalette.textSecondary,+ // Measure the longer label at the user's text size. Matching fixed widths+ // keep the pair balanced, while Wrap stacks them on narrow pages.+ final label = TextPainter(+ text: TextSpan(text: 'Resume Harness', style: textStyle),+ textDirection: Directionality.of(context),+ textScaler: MediaQuery.textScalerOf(context),+ )..layout();+ final preferredWidth = math.max(+ widget.prominent ? 190.0 : 145.0,+ label.width.ceilToDouble() + padding.horizontal + (multiple ? 20 : 0),+ );+ label.dispose();+ return LayoutBuilder(+ builder: (context, constraints) {+ final buttonWidth = math.min(preferredWidth, constraints.maxWidth);+ return Wrap(+ spacing: 8,+ runSpacing: 8,+ alignment: widget.prominent+ ? WrapAlignment.center+ : WrapAlignment.start,+ crossAxisAlignment: WrapCrossAlignment.center,+ children: [+ if (targets.isNotEmpty)+ MenuAnchor(+ controller: _menu,+ childFocusNode: _buttonFocus,+ consumeOutsideTap: true,+ alignmentOffset: const Offset(0, grid.AppControl.menuGap),+ style: grid.AppMenu.style(maxHeight: 360),+ menuChildren: [+ SizedBox(+ width: menuWidth,+ child: Padding(+ padding: const EdgeInsets.fromLTRB(18, 12, 18, 8),+ child: Text(+ 'Recent harnesses',+ style: TextStyle(+ fontSize: 12,+ fontWeight: FontWeight.w600,+ color: grid.AppPalette.textSecondary,+ ),+ ),+ ),),- ),- ),- ),- for (var i = 0; i < targets.length; i++)- SizedBox(- width: menuWidth,- child: Tooltip(- message: targets[i].tooltip,- child: AppMenuItem(- key: ValueKey(- 'store-resume-choice:${targets[i].destinationId}',+ for (var i = 0; i < targets.length; i++)+ SizedBox(+ width: menuWidth,+ child: Tooltip(+ message: targets[i].tooltip,+ child: AppMenuItem(+ key: ValueKey(+ 'store-resume-choice:${targets[i].destinationId}',+ ),+ focusNode: i == 0 ? _firstChoiceFocus : null,+ metrics: AppMenuRowMetrics.roomy,+ icon: LucideIcons.history300,+ label: targets[i].title,+ detail: targets[i].detail,+ trailing: targets[i].machine.nodeOnline == false+ ? Tooltip(+ message: 'Machine offline',+ child: Icon(+ LucideIcons.cloudOff300,+ size: 14,+ color: grid.AppPalette.textFaint,+ ),+ )+ : null,+ onPressed: () => _resume(targets[i]),+ ),+ ),),- focusNode: i == 0 ? _firstChoiceFocus : null,- metrics: AppMenuRowMetrics.roomy,- icon: LucideIcons.history300,- label: targets[i].title,- detail: targets[i].detail,- trailing: targets[i].machine.nodeOnline == false- ? Tooltip(- message: 'Machine offline',- child: Icon(- LucideIcons.cloudOff300,+ ],+ builder: (context, controller, _) => Focus(+ onKeyEvent: (_, event) {+ if (event is KeyDownEvent &&+ event.logicalKey == LogicalKeyboardKey.arrowDown &&+ multiple &&+ !_busy) {+ _openMenu();+ return KeyEventResult.handled;+ }+ return KeyEventResult.ignored;+ },+ child: Tooltip(+ message: tooltip,+ child: OutlinedButton(+ key: ValueKey('store-resume:${widget.harnessId}'),+ focusNode: _buttonFocus,+ onPressed: _busy || targets.isEmpty+ ? null+ : () {+ if (multiple) {+ if (controller.isOpen) {+ controller.close();+ } else {+ _openMenu();+ }+ } else {+ _resume(targets.single);+ }+ },+ style: OutlinedButton.styleFrom(+ minimumSize: Size(buttonWidth, height),+ maximumSize: Size(buttonWidth, double.infinity),+ padding: padding,+ foregroundColor: targets.isEmpty+ ? grid.AppPalette.textPrimary+ : grid.AppPalette.windowBg,+ backgroundColor: targets.isEmpty+ ? Colors.transparent+ : grid.AppPalette.textPrimary,+ side: BorderSide(color: grid.AppPalette.divider),+ textStyle: textStyle,+ shape: const StadiumBorder(),+ ),+ child: Row(+ mainAxisSize: MainAxisSize.min,+ children: [+ const Flexible(child: Text('Resume Harness')),+ if (multiple) ...[+ const SizedBox(width: 6),+ Icon(+ LucideIcons.chevronDown300,+ key: ValueKey(+ 'store-resume-chevron:${widget.harnessId}',+ ),size: 14,- color: grid.AppPalette.textFaint,),- )- : null,- onPressed: () => _resume(targets[i]),+ ],+ ],+ ),+ ),),),),- ],- builder: (context, controller, _) => Focus(- onKeyEvent: (_, event) {- if (event is KeyDownEvent &&- event.logicalKey == LogicalKeyboardKey.arrowDown &&- multiple &&- !_busy) {- _openMenu();- return KeyEventResult.handled;- }- return KeyEventResult.ignored;- },- child: Tooltip(- message: tooltip,- child: OutlinedButton(- key: ValueKey('store-resume:${widget.harnessId}'),- focusNode: _buttonFocus,- onPressed: _busy || targets.isEmpty- ? null- : () {- if (multiple) {- if (controller.isOpen) {- controller.close();- } else {- _openMenu();- }- } else {- _resume(targets.single);- }- },- style: OutlinedButton.styleFrom(- minimumSize: Size(0, height),- padding: padding,- foregroundColor: targets.isEmpty- ? grid.AppPalette.textPrimary- : grid.AppPalette.windowBg,- backgroundColor: targets.isEmpty- ? Colors.transparent- : grid.AppPalette.textPrimary,- side: BorderSide(color: grid.AppPalette.divider),- textStyle: textStyle,- shape: const StadiumBorder(),- ),- child: Row(- mainAxisSize: MainAxisSize.min,- children: [- const Flexible(child: Text('Resume Harness')),- if (multiple) ...[- const SizedBox(width: 6),- Icon(- LucideIcons.chevronDown300,- key: ValueKey(- 'store-resume-chevron:${widget.harnessId}',- ),- size: 14,- ),- ],- ],- ),+ FilledButton(+ key:+ widget.newButtonKey ??+ ValueKey('store-new:${widget.harnessId}'),+ onPressed: _busy || widget.onNew == null+ ? null+ : () {+ _menu.close();+ unawaited(_run(widget.onNew!));+ },+ style: FilledButton.styleFrom(+ minimumSize: Size(buttonWidth, height),+ maximumSize: Size(buttonWidth, double.infinity),+ padding: padding,+ foregroundColor: targets.isEmpty+ ? grid.AppPalette.windowBg+ : grid.AppPalette.textPrimary,+ backgroundColor: targets.isEmpty+ ? grid.AppPalette.textPrimary+ : grid.AppSurface.selectedFill,+ textStyle: textStyle,+ shape: const StadiumBorder(),),+ child: const Text('New Harness'),),- ),- ),- FilledButton(- key:- widget.newButtonKey ??- ValueKey('store-new:${widget.harnessId}'),- onPressed: _busy || widget.onNew == null- ? null- : () {- _menu.close();- unawaited(_run(widget.onNew!));- },- style: FilledButton.styleFrom(- minimumSize: Size(0, height),- padding: padding,- foregroundColor: targets.isEmpty- ? grid.AppPalette.windowBg- : grid.AppPalette.textPrimary,- backgroundColor: targets.isEmpty- ? grid.AppPalette.textPrimary- : grid.AppSurface.selectedFill,- textStyle: textStyle,- shape: const StadiumBorder(),- ),- child: const Text('New Harness'),- ),- ],+ ],+ );+ },);},);diff --git a/desktop/lib/store/store_listing.dart b/desktop/lib/store/store_listing.dartindex c23bf07fe..9e8aa9607 100644--- a/desktop/lib/store/store_listing.dart+++ b/desktop/lib/store/store_listing.dart@@ -6,41 +6,70 @@ import '../widgets/engine_identity.dart';import 'store_editorial.dart';import 'store_models.dart';-/// Compact, responsive rows for search, the complete index, and coding agents.+/// One consistent app identity across discovery, categories, and search.+/// Vendor marks retain their aspect ratio and their light/dark treatments.+class StoreAppIcon extends StatelessWidget {+ const StoreAppIcon({super.key, required this.entry, this.size = 56});+ final DshEntry entry;+ final double size;++ @override+ Widget build(BuildContext context) => Container(+ width: size,+ height: size,+ padding: EdgeInsets.all(size * .12),+ decoration: BoxDecoration(+ color: grid.AppSurface.recess,+ borderRadius: BorderRadius.circular(size * .23),+ border: Border.all(color: grid.AppPalette.divider),+ ),+ child: EngineMark(+ engine: entry.id,+ displayName: entry.name,+ size: size * .76,+ ),+ );+}++/// Icon rows are the default catalog presentation. Reserve large imagery for+/// editorial features, so tools with different output formats scan alike.class StoreListing extends StatelessWidget {const StoreListing({super.key,required this.entries,required this.ratingFor,required this.onOpen,- required this.actionsFor,+ this.rowKeyPrefix = 'store-card',+ this.showRanks = false,});final List<DshEntry> entries;final StoreRating Function(DshEntry) ratingFor;final ValueChanged<String> onOpen;- final Widget Function(DshEntry) actionsFor;+ final String rowKeyPrefix;+ final bool showRanks;@overrideWidget build(BuildContext context) => LayoutBuilder(builder: (context, box) {- final columns = box.maxWidth >= 1120- ? 3- : box.maxWidth >= 720- ? 2- : 1;- final width = (box.maxWidth - (columns - 1) * 24) / columns;+ final scale = MediaQuery.textScalerOf(context).scale(14) / 14;+ final columns = (box.maxWidth / (340 * scale)).floor().clamp(1, 3);+ final width = (box.maxWidth - (columns - 1) * 28) / columns;+ final reserveRating = entries.any((entry) => !ratingFor(entry).isEmpty);+ final reserveUpdate = entries.any((entry) => entry.hasUpdate);return Wrap(- spacing: 24,+ spacing: 28,children: [for (final entry in entries)SizedBox(width: width,child: _ProductRow(- key: ValueKey('store-card:${entry.id}'),+ key: ValueKey('$rowKeyPrefix:${entry.id}'),+ rank: showRanks ? entries.indexOf(entry) + 1 : null,entry: entry,rating: ratingFor(entry),+ reserveRating: reserveRating,+ reserveUpdate: reserveUpdate,onOpen: () => onOpen(entry.id),- actions: actionsFor(entry),),),],@@ -54,39 +83,62 @@ class _ProductRow extends StatelessWidget {super.key,required this.entry,required this.rating,+ required this.reserveRating,+ required this.reserveUpdate,required this.onOpen,- required this.actions,+ this.rank,});final DshEntry entry;final StoreRating rating;+ final bool reserveRating;+ final bool reserveUpdate;final VoidCallback onOpen;- final Widget actions;+ final int? rank;@override- Widget build(BuildContext context) => Material(- color: Colors.transparent,- child: InkWell(- onTap: onOpen,- borderRadius: BorderRadius.circular(10),- child: Container(- constraints: const BoxConstraints(minHeight: 94),- padding: const EdgeInsets.symmetric(vertical: 14, horizontal: 6),- decoration: BoxDecoration(- border: Border(bottom: BorderSide(color: grid.AppPalette.divider)),- ),- child: Column(- crossAxisAlignment: CrossAxisAlignment.start,- children: [- Row(- children: [- EngineMark(engine: entry.id, displayName: entry.name, size: 42),- const SizedBox(width: 12),- Expanded(- child: Column(- crossAxisAlignment: CrossAxisAlignment.start,- mainAxisSize: MainAxisSize.min,- children: [- Text(+ Widget build(BuildContext context) {+ final scale = MediaQuery.textScalerOf(context).scale(12) / 12;+ final benefit = entry.isEngine+ ? entry.tagline ??+ engineIdentity(entry.id).tagline ??+ storeBenefit(entry)+ : storeBrowseBenefit(entry);+ return Material(+ color: Colors.transparent,+ child: InkWell(+ onTap: onOpen,+ borderRadius: BorderRadius.circular(12),+ child: Container(+ padding: const EdgeInsets.symmetric(vertical: 18, horizontal: 4),+ decoration: BoxDecoration(+ border: Border(bottom: BorderSide(color: grid.AppPalette.divider)),+ ),+ child: Row(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ if (rank != null) ...[+ SizedBox(+ width: 18,+ child: Text(+ '$rank',+ style: TextStyle(+ fontSize: 16,+ fontWeight: FontWeight.w600,+ color: grid.AppPalette.textSecondary,+ ),+ ),+ ),+ const SizedBox(width: 6),+ ],+ StoreAppIcon(entry: entry),+ const SizedBox(width: 14),+ Expanded(+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ Tooltip(+ message: entry.name,+ child: Text(entry.name,maxLines: 1,overflow: TextOverflow.ellipsis,@@ -96,9 +148,12 @@ class _ProductRow extends StatelessWidget {color: grid.AppPalette.textPrimary,),),- const SizedBox(height: 4),- Text(- storeBenefit(entry),+ ),+ const SizedBox(height: 4),+ SizedBox(+ height: 32 * scale,+ child: Text(+ benefit,maxLines: 2,overflow: TextOverflow.ellipsis,style: TextStyle(@@ -107,53 +162,49 @@ class _ProductRow extends StatelessWidget {color: grid.AppPalette.textSecondary,),),- if (entry.hasUpdate) ...[- const SizedBox(height: 4),- Text(- 'Update available',- style: TextStyle(- fontSize: 11,- color: grid.AppPalette.accentOnSurface,- ),+ ),+ if (reserveUpdate) ...[+ const SizedBox(height: 4),+ Text(+ entry.hasUpdate ? 'Update available' : ' ',+ style: TextStyle(+ fontSize: 11,+ color: grid.AppPalette.accentOnSurface,),- ],- if (!rating.isEmpty) ...[- const SizedBox(height: 4),- Row(- children: [- Icon(- Icons.star_rounded,- size: 12,- color: grid.AppPalette.textSecondary,- ),- const SizedBox(width: 3),- Text(- '${rating.average.toStringAsFixed(1)} · ${rating.count}',- style: TextStyle(- fontSize: 11,- color: grid.AppPalette.textSecondary,+ ),+ ],+ if (reserveRating) ...[+ const SizedBox(height: 4),+ SizedBox(+ height: 14 * scale,+ child: rating.isEmpty+ ? null+ : Row(+ children: [+ Icon(+ Icons.star_rounded,+ size: 12,+ color: grid.AppPalette.textSecondary,+ ),+ const SizedBox(width: 3),+ Text(+ '${rating.average.toStringAsFixed(1)} · ${rating.count}',+ style: TextStyle(+ fontSize: 11,+ color: grid.AppPalette.textSecondary,+ ),+ ),+ ],),- ),- ],- ),- ],+ ),],- ),+ ],),- ],- ),- const SizedBox(height: 12),- if (entry.isViewerPackage)- TextButton(- key: ValueKey('store-action:${entry.id}'),- onPressed: onOpen,- child: const Text('View'),- )- else- actions,- ],+ ),+ ],+ ),),),- ),- );+ );+ }}diff --git a/desktop/lib/store/store_screen.dart b/desktop/lib/store/store_screen.dartindex 0dbc6b262..7d8090e9e 100644--- a/desktop/lib/store/store_screen.dart+++ b/desktop/lib/store/store_screen.dart@@ -406,39 +406,6 @@ class _StoreTabState extends State<StoreTab> {);}- Widget _actionsFor(DshEntry entry) {- final local = widget.notifier.localMachineState;- if (!entry.isViewerPackage &&- (_installedOnMachine(local, entry.id) ||- storeResumeTargets(widget.notifier, entry.id).isNotEmpty)) {- return StoreHarnessActions(- notifier: widget.notifier,- harnessId: entry.id,- recent: widget.recentHarnesses,- newButtonKey: ValueKey('store-action:${entry.id}'),- onNew: local == null || local.dsh.runs[entry.id]?.inProgress == true- ? null- : () => openStoreAgent(- context,- widget.notifier,- entry.id,- local.machine.machineId,- ),- );- }- return TextButton(- key: ValueKey('store-action:${entry.id}'),- onPressed: () => _openPage(entry.id),- style: TextButton.styleFrom(- backgroundColor: grid.AppSurface.selectedFill,- foregroundColor: grid.AppPalette.accentOnSurface,- minimumSize: const Size(70, 34),- shape: const StadiumBorder(),- ),- child: Text(entry.isViewerPackage ? 'View' : 'Get'),- );- }-@overrideWidget build(BuildContext context) {grid.AppTheme.watch(context);@@ -567,7 +534,6 @@ class _StoreTabState extends State<StoreTab> {StoreController.keyFor(entry),),onOpen: _openPage,- actionsFor: _actionsFor,onCategory: (name) =>_show(_Category(name)),onAll: () => _show(const _All()),@@ -590,7 +556,6 @@ class _StoreTabState extends State<StoreTab> {.loaded ??false,onOpen: _openPage,- actionsFor: _actionsFor,),),),@@ -744,7 +709,6 @@ class _Shelf$View extends StatelessWidget {required this.installedOn,required this.loaded,required this.onOpen,- required this.actionsFor,});final _Listed shelf;@@ -755,7 +719,6 @@ class _Shelf$View extends StatelessWidget {final List<MachineState> Function(String id) installedOn;final bool loaded;final ValueChanged<String> onOpen;- final Widget Function(DshEntry) actionsFor;String get _title => switch (shelf) {_All() => 'All harnesses',@@ -782,7 +745,6 @@ class _Shelf$View extends StatelessWidget {ratingFor: (entry) => store.ratingOf(StoreController.keyFor(entry)),installed: (id) => installedOn(id).isNotEmpty,onOpen: onOpen,- actionsFor: actionsFor,);}return SingleChildScrollView(@@ -835,7 +797,6 @@ class _Shelf$View extends StatelessWidget {ratingFor: (entry) =>store.ratingOf(StoreController.keyFor(entry)),onOpen: onOpen,- actionsFor: actionsFor,),if (entries.isEmpty && shelf is _Search)Wrap(@@ -1125,8 +1086,8 @@ class _ProductPageState extends State<_ProductPage> {(localInstalled || _canGetOnMachine(local, entry));final showLaunch =!entry.isViewerPackage &&- (localInstalled ||- storeResumeTargets(widget.notifier, entry.id).isNotEmpty);+ !hasUpdate &&+ localInstalled;// A package that has not published its own examples yet still leads with// prompts — the editorial ones — so every page reads the same way.final examples = entry.examples.isNotEmpty@@ -1268,7 +1229,7 @@ class _ProductPageState extends State<_ProductPage> {],),const SizedBox(height: 34),- if (showAction && (!showLaunch || hasUpdate))+ if (showAction && !showLaunch)Center(child: FilledButton(key: const ValueKey('store-primary-action'),@@ -1317,18 +1278,13 @@ class _ProductPageState extends State<_ProductPage> {),],if (showLaunch) ...[- if (hasUpdate) const SizedBox(height: 16),Center(child: StoreHarnessActions(notifier: widget.notifier,harnessId: entry.id,recent: widget.recentHarnesses,prominent: true,- newButtonKey: ValueKey(- hasUpdate- ? 'store-open-current'- : 'store-primary-action',- ),+ newButtonKey: const ValueKey('store-primary-action'),onNew: local != null && !busy && !installing? () => _open(local.machine.machineId): null,diff --git a/desktop/test/store_collections_test.dart b/desktop/test/store_collections_test.dartnew file mode 100644index 000000000..0b20f6b56--- /dev/null+++ b/desktop/test/store_collections_test.dart@@ -0,0 +1,63 @@+import 'package:flutter_test/flutter_test.dart';+import 'package:harness/core/dsh_catalog.dart';+import 'package:harness/store/store_collections.dart';+import 'package:harness/store/store_models.dart';++DshEntry _entry(String name, {String kind = 'agent'}) =>+ DshEntry(id: name, name: name, engine: 'codex', kind: kind);++StoreRating _rating(String id, double average, int count) => StoreRating(+ harnessId: id,+ average: average,+ count: count,+ histogram: const [],+);++void main() {+ test('recent collection uses publication history and live membership', () {+ final entries = [+ _entry('autonomous/blender'),+ _entry('unpublished/tool'),+ _entry('autonomous/machine-monitor'),+ _entry('autonomous/cad-viewer', kind: 'viewer'),+ ];+ expect(storeRecentlyUpdated(entries).map((e) => e.id), [+ 'autonomous/machine-monitor',+ 'autonomous/blender',+ ]);+ // A known package must not leak into another machine's smaller catalog.+ expect(storeRecentlyUpdated([entries.first]).map((e) => e.id), [+ 'autonomous/blender',+ ]);+ });++ test(+ 'top rated requires reviews, ranks stars before volume, excludes viewers',+ () {+ final entries = [+ _entry('many-reviews'),+ _entry('one-review'),+ _entry('highest'),+ _entry('tie-fewer-reviews'),+ _entry('unrated'),+ _entry('viewer', kind: 'viewer'),+ ];+ final ratings = {+ 'many-reviews': _rating('many-reviews', 4.5, 30),+ 'one-review': _rating('one-review', 5, 1),+ 'highest': _rating('highest', 4.8, 3),+ 'tie-fewer-reviews': _rating('tie-fewer-reviews', 4.5, 4),+ 'viewer': _rating('viewer', 5, 50),+ };+ final result = storeTopRated(+ entries,+ (entry) => ratings[entry.id] ?? StoreRating.none(entry.id),+ );+ expect(result.map((e) => e.id), [+ 'highest',+ 'many-reviews',+ 'tie-fewer-reviews',+ ]);+ },+ );+}diff --git a/desktop/test/store_discover_test.dart b/desktop/test/store_discover_test.dartindex 404defa07..d336e6b87 100644--- a/desktop/test/store_discover_test.dart+++ b/desktop/test/store_discover_test.dart@@ -23,6 +23,7 @@ import 'package:harness/store/store_cover_art.dart';import 'package:harness/store/store_explore_widgets.dart';import 'package:harness/store/store_editorial.dart';import 'package:harness/store/store_exploration.dart';+import 'package:harness/store/store_featured_art.dart';import 'package:harness/store/store_models.dart';import 'package:harness/store/store_screen.dart';@@ -101,12 +102,13 @@ class _App extends AppNotifier {}class _Api implements StoreApi {- _Api({this.unavailable = false});+ _Api({this.unavailable = false, this.items = const []});final bool unavailable;+ final List<StoreRating> items;@overrideFuture<List<StoreRating>> ratings() async {if (unavailable) throw StateError('service unavailable');- return [];+ return items;}@override@@ -135,6 +137,7 @@ Future<(_App, GlobalKey)> _open(List<DshEntry>? entries,String? initialHarness,bool unavailable = false,+ List<StoreRating> ratings = const [],double width = 1440,double height = 1000,double scale = 1,@@ -188,7 +191,7 @@ Future<(_App, GlobalKey)> _open(enabled: () => true,child: StoreTab(notifier: app,- api: _Api(unavailable: unavailable),+ api: _Api(unavailable: unavailable, items: ratings),initialHarness: initialHarness,),),@@ -212,6 +215,7 @@ Future<(_App, GlobalKey)> _open(for (final asset in {...storeProjectAssets.values,...storeCoverArt.values.map((cover) => cover.asset),+ ...storeFeaturedArt.values,'assets/store/blender-studio.png',}) {await precacheImage(AssetImage(asset), context);@@ -1006,56 +1010,111 @@ void main() {});testWidgets(- 'a project card copies its full prompt without opening the page',+ 'discovery has three illustrated features and categories have one',(tester) async {- String? copied;- tester.binding.defaultBinaryMessenger.setMockMethodCallHandler(- SystemChannels.platform,- (call) async {- if (call.method == 'Clipboard.setData') {- copied = (call.arguments as Map)['text'] as String;- }- return null;- },- );- addTearDown(- () => tester.binding.defaultBinaryMessenger.setMockMethodCallHandler(- SystemChannels.platform,- null,- ),- );final (_, key) = await _open(tester);- await tester.tap(- find.byKey(const ValueKey('store-shelf-category:Design')),+ expect(find.byType(StoreProjectArt), findsNothing);+ expect(find.byType(StoreFeaturedArt), findsNWidgets(3));+ expect(+ find.byKey(const ValueKey('store-feature-art:codex')),+ findsOneWidget,);- await tester.pumpAndSettle();- final copy = find.byKey(- const ValueKey('store-copy-idea:autonomous/blender'),+ expect(+ find.byKey(const ValueKey('store-feature-art:autonomous/blender')),+ findsOneWidget,);- await tester.ensureVisible(copy);- await tester.pumpAndSettle();- await _capture(tester, key, 'project-prompts');- await tester.tap(copy);- await tester.pumpAndSettle();expect(- copied,- storeProjectPrompt(- _catalog.firstWhere((e) => e.id == 'autonomous/blender'),- ),+ find.byKey(const ValueKey('store-feature-art:autonomous/copper')),+ findsOneWidget,);- expect(copied, contains('armchair'));+ final category = find.byKey(const ValueKey('store-category:Design'));expect(- find.byKey(const ValueKey('store-page:autonomous/blender')),- findsNothing,+ find.descendant(of: category, matching: find.byType(EngineMark)),+ findsOneWidget,);- expect(find.text('Prompt copied'), findsOneWidget);+ await tester.ensureVisible(category);+ await _capture(tester, key, 'discover-disciplines');+ await tester.tap(category);+ await tester.pumpAndSettle();+ expect(find.byType(StoreProjectArt), findsNothing);+ expect(find.byType(StoreFeaturedArt), findsOneWidget);+ for (final entry in _catalog.where(+ (entry) =>+ storeCategoryFor(entry) == 'Design' && !entry.isViewerPackage,+ )) {+ final row = find.byKey(ValueKey('store-card:${entry.id}'));+ expect(row, findsOneWidget);+ expect(+ find.descendant(of: row, matching: find.byType(EngineMark)),+ findsOneWidget,+ );+ }+ expect(tester.takeException(), isNull);},);+ testWidgets('top rated appears only with enough community reviews', (+ tester,+ ) async {+ final (_, key) = await _open(+ tester,+ ratings: [+ for (final (id, average, count) in [+ ('autonomous/blender', 4.8, 5),+ ('autonomous/strudel', 4.5, 8),+ ('autonomous/marp', 5.0, 1),+ ])+ StoreRating(+ harnessId: id,+ average: average,+ count: count,+ histogram: const [],+ ),+ ],+ );+ expect(+ find.byKey(const ValueKey('store-recent-collection')),+ findsOneWidget,+ );+ expect(+ find.byKey(const ValueKey('store-top-rated-collection')),+ findsOneWidget,+ );+ final first = find.byKey(+ const ValueKey('store-top-rated:autonomous/blender'),+ );+ expect(first, findsOneWidget);+ expect(+ find.descendant(of: first, matching: find.text('1')),+ findsOneWidget,+ );+ expect(+ find.byKey(const ValueKey('store-top-rated:autonomous/strudel')),+ findsOneWidget,+ );+ expect(+ find.byKey(const ValueKey('store-top-rated:autonomous/marp')),+ findsNothing,+ );+ await tester.ensureVisible(find.text('Top rated'));+ await _capture(tester, key, 'discover-top-rated');+ await tester.tap(first);+ await tester.pumpAndSettle();+ expect(+ find.byKey(const ValueKey('store-page:autonomous/blender')),+ findsOneWidget,+ );+ expect(tester.takeException(), isNull);+ });+testWidgets('unavailable reviews do not become a release notice in discovery or detail',(tester) async {await _open(tester, unavailable: true);+ expect(+ find.byKey(const ValueKey('store-top-rated-collection')),+ findsNothing,+ );expect(find.textContaining('not available'), findsNothing);await tester.tap(find.byKey(const ValueKey('store-feature:autonomous/blender')),@@ -1085,7 +1144,7 @@ void main() {});testWidgets(- 'Open launches the installed harness and cancel abandons only its draft',+ 'a browse row opens details; New Harness starts work from the page',(tester) async {final (app, _) = await _open(tester);await tester.tap(@@ -1094,11 +1153,19 @@ void main() {await tester.pumpAndSettle();final count = app.swarms.length;await tester.ensureVisible(- find.byKey(const ValueKey('store-action:autonomous/blender')),+ find.byKey(const ValueKey('store-card:autonomous/blender')),);await tester.tap(- find.byKey(const ValueKey('store-action:autonomous/blender')),+ find.byKey(const ValueKey('store-card:autonomous/blender')),+ );+ await tester.pumpAndSettle();+ expect(+ find.byKey(const ValueKey('store-page:autonomous/blender')),+ findsOneWidget,);+ expect(app.swarms.length, count);+ expect(find.text('Resume Harness'), findsNothing);+ await tester.tap(find.byKey(const ValueKey('store-primary-action')));await tester.pumpAndSettle();expect(find.byKey(const ValueKey('create-agent-submit')), findsOneWidget);expect(diff --git a/desktop/test/store_harness_actions_test.dart b/desktop/test/store_harness_actions_test.dartindex 14973a040..79cb5bb17 100644--- a/desktop/test/store_harness_actions_test.dart+++ b/desktop/test/store_harness_actions_test.dart@@ -180,9 +180,7 @@ void main() {await tester.pumpAndSettle();}- testWidgets('no choices disables Resume; New Harness stays available', (- tester,- ) async {+ testWidgets('no choices shows only New Harness', (tester) async {final app = createApp();addTearDown(app.dispose);app.machineStates['m']!.agents = [];@@ -194,14 +192,7 @@ void main() {created++;},);- expect(- tester- .widget<OutlinedButton>(- find.byKey(const ValueKey('store-resume:codex')),- )- .onPressed,- isNull,- );+ expect(find.byKey(const ValueKey('store-resume:codex')), findsNothing);expect(find.byKey(const ValueKey('store-resume-chevron:codex')),findsNothing,@@ -234,6 +225,10 @@ void main() {},);expect(find.byKey(ValueKey('store-resume-chevron:$id')), findsNothing);+ expect(+ tester.getSize(find.byKey(ValueKey('store-resume:$id'))).width,+ tester.getSize(find.byKey(ValueKey('store-new:$id'))).width,+ );await tester.tap(find.text('Resume Harness'));await tester.pumpAndSettle();expect(find.text('Recent harnesses'), findsNothing);@@ -266,6 +261,10 @@ void main() {find.byKey(const ValueKey('store-resume-chevron:codex')),findsOneWidget,);+ expect(+ tester.getSize(find.byKey(const ValueKey('store-resume:codex'))).width,+ tester.getSize(find.byKey(const ValueKey('store-new:codex'))).width,+ );await tester.tap(find.text('Resume Harness'));await tester.pumpAndSettle();expect(diff --git a/desktop/test/store_page_test.dart b/desktop/test/store_page_test.dartindex 41f6a4669..c82774abf 100644--- a/desktop/test/store_page_test.dart+++ b/desktop/test/store_page_test.dart@@ -281,9 +281,10 @@ void main() {expect(find.text('Your projects and files are kept.'), findsOneWidget);expect(find.text('aaaaaaaa'), findsOneWidget);expect(- _key('store-open-current'),- viewer ? findsNothing : findsOneWidget,+ find.text('Resume Harness'),+ findsNothing,);+ expect(find.text('New Harness'), findsNothing);app.updateGate = Completer<String?>();await tester.tap(_key('store-primary-action'));await tester.pump();@@ -301,6 +302,7 @@ void main() {_in('store-primary-action', find.text('Update')),findsOneWidget,);+ expect(find.text('New Harness'), findsNothing);app.updateGate = null;await tester.tap(_key('store-primary-action'));await tester.pumpAndSettle();@@ -328,7 +330,7 @@ void main() {}testWidgets(- 'launch actions stay available with an update; the page handles package updates',+ 'a row with an update opens details; launch and update actions stay on the page',(tester) async {const entry = DshEntry(id: 'acme/updateable',@@ -346,12 +348,14 @@ void main() {await tester.enterText(_key('store-search'), 'Updateable');await tester.pumpAndSettle();expect(- _in('store-action:${entry.id}', find.text('New Harness')),- findsOneWidget,+ find.text('New Harness'),+ findsNothing,);await tester.tap(_key('store-card:${entry.id}'));await tester.pumpAndSettle();expect(_key('store-page:${entry.id}'), findsOneWidget);+ expect(_in('store-primary-action', find.text('Update')), findsOneWidget);+ expect(find.text('New Harness'), findsNothing);expect(app.updates, isEmpty);app.machineStates['machine-1']!.dsh.replace(const [DshEntry(@@ -1126,7 +1130,7 @@ void main() {expect(_key('store-catalog:Coding'), findsOneWidget);expect(_key('store-card:autonomous/marp'), findsNothing);expect(- find.textContaining('coding agents to explore.'),+ find.textContaining(RegExp(r'^\d+ coding agents$')),findsOneWidget,);},@@ -1154,7 +1158,7 @@ void main() {expect(_key('store-shelf-category:Other'), findsOneWidget);await tester.tap(_key('store-shelf-category:Other'));await tester.pumpAndSettle();- expect(find.text('1 harness to explore.'), findsOneWidget);+ expect(find.text('1 harness'), findsOneWidget);expect(_key('store-card:someone/loom'), findsOneWidget);await tester.tap(_key('store-shelf-category:Productivity'));@@ -1242,11 +1246,11 @@ void main() {final tabs = app.swarms.length;expect(- _in('store-action:autonomous/typst', find.text('Get')),- findsOneWidget,+ find.text('Get'),+ findsNothing,);- await tester.ensureVisible(_key('store-action:autonomous/typst'));- await tester.tap(_key('store-action:autonomous/typst'));+ await tester.ensureVisible(_key('store-card:autonomous/typst'));+ await tester.tap(_key('store-card:autonomous/typst'));await tester.pumpAndSettle();expect(_key('store-page:autonomous/typst'), findsOneWidget);expect(_in('store-primary-action', find.text('Get')), findsOneWidget);@@ -1262,18 +1266,23 @@ void main() {await tester.tap(_key('store-back'));await tester.pumpAndSettle();- // Once installed locally, the same card becomes Open and stays local.+ // Installation never changes browsing into a launch action. The same+ // card opens details, whose New Harness action stays local.app.machineStates['machine-1']!.dsh.replace(app.machineStates['remote']!.dsh.entries,);app.changed();await tester.pumpAndSettle();expect(- _in('store-action:autonomous/typst', find.text('New Harness')),- findsOneWidget,+ find.text('New Harness'),+ findsNothing,);- await tester.ensureVisible(_key('store-action:autonomous/typst'));- await tester.tap(_key('store-action:autonomous/typst'));+ await tester.ensureVisible(_key('store-card:autonomous/typst'));+ await tester.tap(_key('store-card:autonomous/typst'));+ await tester.pumpAndSettle();+ expect(_key('store-page:autonomous/typst'), findsOneWidget);+ expect(_in('store-primary-action', find.text('New Harness')), findsOneWidget);+ await tester.tap(_key('store-primary-action'));await tester.pumpAndSettle();expect(tester@@ -1285,7 +1294,10 @@ void main() {await tester.pumpAndSettle();// Remote-only packages never leak into the local catalog.- expect(_key('store-action:autonomous/manim'), findsNothing);+ await tester.enterText(_key('store-search'), 'Manim');+ await tester.pumpAndSettle();+ expect(_key('store-card:autonomous/manim'), findsNothing);+ expect(find.text('0 results'), findsOneWidget);expect(app.swarms.length, tabs);});@@ -1321,16 +1333,20 @@ void main() {);},);- void expectGet() =>- expect(_in('store-action:$id', find.text('Get')), findsOneWidget);- expectGet(); // Discover.+ void expectBrowseOnly() {+ expect(_key('store-card:$id'), findsOneWidget);+ expect(find.text('Resume Harness'), findsNothing);+ expect(find.text('New Harness'), findsNothing);+ expect(find.text('Get'), findsNothing);+ }+ expectBrowseOnly(); // Discover.await tester.tap(_key('store-shelf-category:$category'));await tester.pumpAndSettle();- expectGet();+ expectBrowseOnly();await tester.enterText(_key('store-search'), name);await tester.pumpAndSettle();- expectGet();- await tester.tap(_key('store-action:$id'));+ expectBrowseOnly();+ await tester.tap(_key('store-card:$id'));await tester.pumpAndSettle();expect(_key('store-page:$id'), findsOneWidget);expect(_in('store-primary-action', find.text('Get')), findsOneWidget);diff --git a/desktop/test/store_screen_test.dart b/desktop/test/store_screen_test.dartindex aeeef2727..7e54bf68c 100644--- a/desktop/test/store_screen_test.dart+++ b/desktop/test/store_screen_test.dart@@ -611,14 +611,14 @@ void main() {of: find.byKey(const ValueKey('store-card:claude')),matching: find.text('New Harness'),),- findsOneWidget,+ findsNothing,);expect(find.descendant(of: find.byKey(const ValueKey('store-card:codex')),matching: find.text('Get'),),- findsOneWidget,+ findsNothing,);await tester.ensureVisible(diff --git a/desktop/test/store_viewers_test.dart b/desktop/test/store_viewers_test.dartindex 342b43566..f4c1236a5 100644--- a/desktop/test/store_viewers_test.dart+++ b/desktop/test/store_viewers_test.dart@@ -140,37 +140,31 @@ void main() {},);- testWidgets('a viewer package in a listing is viewed, never got or opened', (+ testWidgets('a viewer row opens details without launch buttons', (tester,) async {final opened = <String>[];- final acted = <String>[];await _show(tester,StoreListing(entries: const [_cadViewer],ratingFor: (entry) => StoreRating.none(entry.id),onOpen: opened.add,- actionsFor: (entry) => TextButton(- onPressed: () => acted.add(entry.id),- child: const Text('New Harness'),- ),),);final action = find.byKey(- const ValueKey('store-action:autonomous/cad-viewer'),+ const ValueKey('store-card:autonomous/cad-viewer'),);expect(- find.descendant(of: action, matching: find.text('View')),- findsOneWidget,+ find.descendant(of: action, matching: find.byType(TextButton)),+ findsNothing,);await tester.tap(action);expect(opened, ['autonomous/cad-viewer']);- expect(acted, isEmpty);});testWidgets(- 'a category whose harnesses have no artwork wears the first one\'s mark',+ 'a category uses its featured app icon instead of an image',(tester) async {tester.view.devicePixelRatio = 1;tester.view.physicalSize = const Size(1200, 1400);@@ -190,7 +184,6 @@ void main() {loaded: true,ratingFor: (entry) => StoreRating.none(entry.id),onOpen: (_) {},- actionsFor: (_) => const SizedBox(),onCategory: (category) => picked = category,onAll: () {},onEngines: () {},@@ -200,7 +193,7 @@ void main() {expect(play, findsOneWidget);expect(find.descendant(of: play, matching: find.byType(EngineMark)),- findsNWidgets(2),+ findsOneWidget,);expect(testerdiff --git a/desktop/tool/store_artwork/editorial-prompts.json b/desktop/tool/store_artwork/editorial-prompts.jsonnew file mode 100644index 000000000..9cce6d3ec--- /dev/null+++ b/desktop/tool/store_artwork/editorial-prompts.json@@ -0,0 +1,60 @@+{+ "tool": "Built-in image_gen.imagegen",+ "artwork": [+ {+ "id": "shape",+ "asset": "desktop/assets/store/editorial-shape.png",+ "prompt": "Use case: ads-marketing. Asset type: original editorial illustration for the Harness Store, software for curious engineers exploring new disciplines. Create a beautiful premium magazine-cover illustration, no words or logos. Style: bold playful geometric paper-cut collage, sculptural depth with restrained soft shadows, tactile fine grain, expertly art-directed composition, confident limited colors: midnight navy, electric cobalt, coral, mint, warm cream and a little golden yellow. Optimistic, clever and grown-up. Wide landscape 2:1 canvas, full bleed, strong readable silhouette at 500px wide; main subject occupies central 75% width and 70% height with breathing room. Not a screenshot, not a software interface, no mock windows, no fine print, no literal app icons, no watermark. Use large intentional shapes, avoid a confetti mess or stock-AI glowing circuitry. Subject: the joy of creating in 3D. An elegant impossible playground of one coral sculptural arch, a cobalt folded ribbon, a mint sphere, and a cream wireframe shape transforming into a solid object, arranged as one striking connected sculptural composition. Deep midnight navy ground. The forms should feel designed and playful, not like a photo of objects on a desk. Sparse carefully placed construction arcs suggest modeling and imagination. This is the feature 'Give your ideas shape.' Do not include that text."+ },+ {+ "id": "circuit",+ "asset": "desktop/assets/store/editorial-circuit.png",+ "prompt": "Use case: ads-marketing. Asset type: original editorial illustration for the Harness Store, software for curious engineers exploring new disciplines. Create a beautiful premium magazine-cover illustration, no words or logos. Style: bold playful geometric paper-cut collage, sculptural depth with restrained soft shadows, tactile fine grain, expertly art-directed composition, confident limited colors: midnight navy, electric cobalt, coral, mint, warm cream and a little golden yellow. Optimistic, clever and grown-up. Wide landscape 2:1 canvas, full bleed, strong readable silhouette at 500px wide; main subject occupies central 75% width and 70% height with breathing room. Not a screenshot, not a software interface, no mock windows, no fine print, no literal app icons, no watermark. Use large intentional shapes, avoid a confetti mess or stock-AI glowing circuitry. Subject: an idea becoming a physical invention. A beautiful oversized golden circular electrical contact and coral switch joined by thick cream right-angle conductive tracks, a few cobalt and mint electronic component shapes, on a deep midnight navy ground. Compose a playful stylized machine, a tactile geometric cut-paper invention with one central hero and beautiful visual rhythm. Editorial metaphor for circuit design, emphatically not a realistic PCB screenshot or detailed technical diagram. This is the feature 'Build something real.' Do not include that text."+ },+ {+ "id": "code",+ "asset": "desktop/assets/store/editorial-code.png",+ "prompt": "Use case: ads-marketing. Asset type: original editorial illustration for the Harness Store, software for curious engineers exploring new disciplines. Beautiful premium magazine illustration. Style: bold playful geometric paper-cut collage with sculptural depth, restrained soft shadows and subtle tactile grain. Strong grown-up art direction. Limited complementary palette of midnight navy, electric cobalt, coral, mint, warm cream and golden yellow. Wide landscape 2:1 canvas full bleed, readable at 500px; main subject central 75% of width and 70% of height, with breathing room. No words, logos, watermark, interface, mock windows, or screenshots. Not a stock AI glowing brain. Few large intentional shapes, one strong visual idea, optimistic and inventive. Keep small details minimal. Subject: Coding: oversized coral and mint curly braces and cobalt slash-shaped geometric forms interlocking like a beautiful inventive construction toy, with a small warm golden spark at their meeting point. Cream ground, bold rhythmic shapes suggesting the joy of building with code."+ },+ {+ "id": "media",+ "asset": "desktop/assets/store/editorial-media.png",+ "prompt": "Use case: ads-marketing. Asset type: original editorial illustration for the Harness Store, software for curious engineers exploring new disciplines. Beautiful premium magazine illustration. Style: bold playful geometric paper-cut collage with sculptural depth, restrained soft shadows and subtle tactile grain. Strong grown-up art direction. Limited complementary palette of midnight navy, electric cobalt, coral, mint, warm cream and golden yellow. Wide landscape 2:1 canvas full bleed, readable at 500px; main subject central 75% of width and 70% of height, with breathing room. No words, logos, watermark, interface, mock windows, or screenshots. Not a stock AI glowing brain. Few large intentional shapes, one strong visual idea, optimistic and inventive. Keep small details minimal. Subject: Media and film: a beautiful cobalt film-strip ribbon looping through a coral circular lens, a warm golden play triangle, simple cream and mint frames suggesting light, movement and storytelling. Deep navy ground; one coherent sculptural composition."+ },+ {+ "id": "music",+ "asset": "desktop/assets/store/editorial-music.png",+ "prompt": "Use case: ads-marketing. Asset type: original editorial illustration for the Harness Store, software for curious engineers exploring new disciplines. Beautiful premium magazine illustration. Style: bold playful geometric paper-cut collage with sculptural depth, restrained soft shadows and subtle tactile grain. Strong grown-up art direction. Limited complementary palette of midnight navy, electric cobalt, coral, mint, warm cream and golden yellow. Wide landscape 2:1 canvas full bleed, readable at 500px; main subject central 75% of width and 70% of height, with breathing room. No words, logos, watermark, interface, mock windows, or screenshots. Not a stock AI glowing brain. Few large intentional shapes, one strong visual idea, optimistic and inventive. Keep small details minimal. Subject: Music: a broad coral ribbon flowing into a sculptural cobalt musical note and a mint waveform, with a few cream piano-key shapes forming its base. Golden circle like a sounding note. Deep navy ground, lyrical and rhythmical, beautiful negative space."+ },+ {+ "id": "productivity",+ "asset": "desktop/assets/store/editorial-productivity.png",+ "prompt": "Use case: ads-marketing. Asset type: original editorial illustration for the Harness Store, software for curious engineers exploring new disciplines. Beautiful premium magazine illustration. Style: bold playful geometric paper-cut collage with sculptural depth, restrained soft shadows and subtle tactile grain. Strong grown-up art direction. Limited complementary palette of midnight navy, electric cobalt, coral, mint, warm cream and golden yellow. Wide landscape 2:1 canvas full bleed, readable at 500px; main subject central 75% of width and 70% of height, with breathing room. No words, logos, watermark, interface, mock windows, or screenshots. Not a stock AI glowing brain. Few large intentional shapes, one strong visual idea, optimistic and inventive. Keep small details minimal. Subject: Productivity: a beautifully composed fan of cream pages, one cobalt presentation rectangle, a mint spreadsheet grid with large squares, and a coral pencil sweeping a bold curved stroke to link them. Warm golden ground, deliberate tactile geometric collage, no letters or actual UI."+ },+ {+ "id": "science",+ "asset": "desktop/assets/store/editorial-science.png",+ "prompt": "Use case: ads-marketing. Asset type: original editorial illustration for the Harness Store, software for curious engineers exploring new disciplines. Beautiful premium magazine illustration. Style: bold playful geometric paper-cut collage with sculptural depth, restrained soft shadows and subtle tactile grain. Strong grown-up art direction. Limited complementary palette of midnight navy, electric cobalt, coral, mint, warm cream and golden yellow. Wide landscape 2:1 canvas full bleed, readable at 500px; main subject central 75% of width and 70% of height, with breathing room. No words, logos, watermark, interface, mock windows, or screenshots. Not a stock AI glowing brain. Few large intentional shapes, one strong visual idea, optimistic and inventive. Keep small details minimal. Subject: Science and data: one oversized clear geometric flask with mint fluid, a coral orbital ring circling a golden sphere, and cobalt bar-chart shapes growing beside it. A coherent tactile paper sculpture about following a question into an experiment. Deep navy ground."+ },+ {+ "id": "simulation",+ "asset": "desktop/assets/store/editorial-simulation.png",+ "prompt": "Use case: ads-marketing. Asset type: original editorial illustration for the Harness Store, software for curious engineers exploring new disciplines. Beautiful premium magazine illustration. Style: bold playful geometric paper-cut collage with sculptural depth, restrained soft shadows and subtle tactile grain. Strong grown-up art direction. Limited complementary palette of midnight navy, electric cobalt, coral, mint, warm cream and golden yellow. Wide landscape 2:1 canvas full bleed, readable at 500px; main subject central 75% of width and 70% of height, with breathing room. No words, logos, watermark, interface, mock windows, or screenshots. Not a stock AI glowing brain. Few large intentional shapes, one strong visual idea, optimistic and inventive. Keep small details minimal. Subject: Simulation: a delightful small geometric robot arm in cream, coral and cobalt tracing a mint orbital path around a golden ball, a sweeping curved trajectory and a few grid lines suggesting a world to experiment in. Deep navy ground, elegant and playful rather than toy packaging."+ },+ {+ "id": "games",+ "asset": "desktop/assets/store/editorial-games.png",+ "prompt": "Use case: ads-marketing. Asset type: original editorial illustration for the Harness Store, software for curious engineers exploring new disciplines. Beautiful premium magazine illustration. Style: bold playful geometric paper-cut collage with sculptural depth, restrained soft shadows and subtle tactile grain. Strong grown-up art direction. Limited complementary palette of midnight navy, electric cobalt, coral, mint, warm cream and golden yellow. Wide landscape 2:1 canvas full bleed, readable at 500px; main subject central 75% of width and 70% of height, with breathing room. No words, logos, watermark, interface, mock windows, or screenshots. Not a stock AI glowing brain. Few large intentional shapes, one strong visual idea, optimistic and inventive. Keep small details minimal. Subject: Games: an imaginative miniature world built from cobalt platforms, a coral archway, a mint floating island, a golden star, and a cream game-controller cross as a sculptural landscape element. Original game-making metaphor, beautiful tactile collage, deep navy ground, no existing game characters."+ },+ {+ "id": "research",+ "asset": "desktop/assets/store/editorial-research.png",+ "prompt": "Use case: ads-marketing. Asset type: original editorial illustration for the Harness Store, software for curious engineers exploring new disciplines. Beautiful premium magazine illustration. Style: bold playful geometric paper-cut collage with sculptural depth, restrained soft shadows and subtle tactile grain. Strong grown-up art direction. Limited complementary palette of midnight navy, electric cobalt, coral, mint, warm cream and golden yellow. Wide landscape 2:1 canvas full bleed, readable at 500px; main subject central 75% of width and 70% of height, with breathing room. No words, logos, watermark, interface, mock windows, or screenshots. Not a stock AI glowing brain. Few large intentional shapes, one strong visual idea, optimistic and inventive. Keep small details minimal. Subject: Research: one large cream magnifying lens bringing a coral question-mark-like curve and mint connected geometric ideas into focus, with a cobalt folded page behind. Clever collage about finding a question worth exploring. Deep navy ground. No literal text or numbers."+ },+ {+ "id": "local-ai",+ "asset": "desktop/assets/store/editorial-local-ai.png",+ "prompt": "Use case: ads-marketing. Asset type: original editorial illustration for the Harness Store, software for curious engineers exploring new disciplines. Beautiful premium magazine illustration. Style: bold playful geometric paper-cut collage with sculptural depth, restrained soft shadows and subtle tactile grain. Strong grown-up art direction. Limited complementary palette of midnight navy, electric cobalt, coral, mint, warm cream and golden yellow. Wide landscape 2:1 canvas full bleed, readable at 500px; main subject central 75% of width and 70% of height, with breathing room. No words, logos, watermark, interface, mock windows, or screenshots. Not a stock AI glowing brain. Few large intentional shapes, one strong visual idea, optimistic and inventive. Keep small details minimal. Subject: Local AI: three small handsome cream and cobalt desktop-computer blocks connected by one broad mint looping line, with a coral geometric spark at their center. A warm golden circle suggests a model brought home. Deep navy ground; intimate personal computing, not a huge datacenter."+ }+ ]+}diff --git a/desktop/tool/store_catalog_history.mjs b/desktop/tool/store_catalog_history.mjsnew file mode 100644index 000000000..258b19cf0--- /dev/null+++ b/desktop/tool/store_catalog_history.mjs@@ -0,0 +1,41 @@+#!/usr/bin/env node+// A release snapshot of actual Store publications, not filesystem mtimes or+// download estimates. Refresh after `git fetch origin store-catalog`.+import {execFileSync} from 'node:child_process';+import {writeFileSync, readFileSync, readdirSync} from 'node:fs';+import {fileURLToPath} from 'node:url';+const root = fileURLToPath(new URL('../..', import.meta.url));+const git = (...args) => execFileSync('git', ['-C', root, ...args], {encoding:'utf8', maxBuffer:32*1024*1024}).trim();+const ref = process.argv[2] || 'origin/store-catalog';+const history = new Map();+const commits = git('rev-list', '--reverse', ref).split('\n');+for (const commit of commits) {+ const at = new Date(git('show', '-s', '--format=%cI', commit)).toISOString();+ const catalog = JSON.parse(git('show', `${commit}:catalog.json`));+ for (const entry of catalog.entries) {+ if (entry.kind === 'viewer') continue;+ // A publisher advances the install ref on every publication. Only a change+ // to the package revision or metadata makes this entry newly updated.+ const fingerprint = JSON.stringify(Object.fromEntries(Object.entries(entry).filter(([key]) => key !== 'ref').sort(([a],[b]) => a.localeCompare(b))));+ const previous = history.get(entry.id);+ history.set(entry.id, {+ addedAt: previous?.addedAt ?? at,+ updatedAt: previous?.fingerprint === fingerprint ? previous.updatedAt : at,+ fingerprint,+ });+ }+}+const listed = readdirSync(`${root}/store/agents`).flatMap(name => {+ try {+ const facts = JSON.parse(readFileSync(`${root}/store/agents/${name}/store.json`));+ const manifest = JSON.parse(readFileSync(`${root}/store/agents/${name}/harness.json`));+ return facts.listed === false ? [] : [manifest.id];+ } catch { return []; }+});+const entries = listed.filter(id => history.has(id)).sort().map(id => {+ const item = history.get(id);+ return ` '${id}': (\n addedAt: '${item.addedAt}',\n updatedAt: '${item.updatedAt}',\n ),`;+});+const text = `// Generated by desktop/tool/store_catalog_history.mjs.\n// Publication source: ${git('rev-parse', ref)}\n// A snapshot for this app release; unknown tools are never assigned fake dates.\nconst storeCatalogHistory = <String, ({String addedAt, String updatedAt})>{\n${entries.join('\n')}\n};\n`;+writeFileSync(`${root}/desktop/lib/store/store_catalog_history.g.dart`, text);+console.log(`Recorded publication history for ${entries.length} listed harnesses.`);diff --git a/docs/app.md b/docs/app.mdindex e87faa016..752ebf7e3 100644--- a/docs/app.md+++ b/docs/app.md@@ -29,7 +29,16 @@ conversation where the engine supports it.matched, with a session preview on the right built from cached recent turns. Type `>` for commandsonly (also ⇧⌘P).-In the **Harness Store**, installed tools offer **Resume Harness** and **New Harness**.+The **Harness Store** keeps search at the top while you browse. Discover opens with three+illustrated features, then icon collections for coding, new and updated harnesses in this+release, and other crafts. A Top rated collection appears once at least two tools have+three community reviews each. Each discipline has one feature and compact icon rows.+Open a tool for its full examples and details.++Store rows open details without starting work. A tool's page shows **Get** if it is not+installed on this computer, **Update** when an update is available, or **New Harness**+when it is ready. **Resume Harness** appears beside New only when existing work can+be resumed; the two buttons have equal widths. Launch buttons appear only on this page.Resume returns to the existing harness, including one on another machine. With one matching harnessit opens directly; with several, a dropdown shows each harness's name, machine and project. Recentvisits appear first. An open tab is focused; a closed tab is reopened around the same running agent.