brandspec 0.2.0__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {brandspec-0.2.0 → brandspec-0.2.2}/PKG-INFO +3 -2
- {brandspec-0.2.0 → brandspec-0.2.2}/README.md +2 -1
- brandspec-0.2.2/brandspec-thumb-2.jpg +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/pyproject.toml +1 -1
- {brandspec-0.2.0 → brandspec-0.2.2}/skills/brandspec/SKILL.md +4 -1
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/cli.py +17 -4
- brandspec-0.2.2/src/brandspec/engines/mark/archetypes/chevron-monogram.json +55 -0
- brandspec-0.2.2/src/brandspec/engines/mark/archetypes/halftone-matrix.json +36 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/archetypes/line-screen-disc.json +5 -5
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/archetypes/vela-sails.json +5 -5
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/studio/assets/index.html +15 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/studio/assets/studio.css +67 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/studio/assets/studio.js +19 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/studio/server.py +6 -3
- {brandspec-0.2.0 → brandspec-0.2.2}/tests/test_cli_skill.py +12 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/tests/test_studio.py +9 -2
- {brandspec-0.2.0 → brandspec-0.2.2}/uv.lock +1 -1
- brandspec-0.2.0/brandspec-thumb-2.jpg +0 -0
- brandspec-0.2.0/src/brandspec/engines/mark/archetypes/radial-vortex.json +0 -48
- {brandspec-0.2.0 → brandspec-0.2.2}/.github/workflows/ci.yml +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/.github/workflows/publish.yml +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/.gitignore +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/.python-version +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/LICENSE +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/brandspec-thumb-1.jpg +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/docs/PRD.md +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/docs/decisions.md +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/docs/mockup-prompts.md +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/docs/specs/01-halo-join.md +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/docs/specs/02-skill-distribution.md +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/docs/specs/03-studio-review.md +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/docs/specs/04-parameter-sweep.md +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/docs/specs/05-tokens-and-kit.md +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/docs/specs/06-wordmark-and-lockup.md +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/docs/specs/07-icons-and-pattern.md +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/core/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/core/grid.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/core/paths.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/core/rounds.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/icons/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/icons/compiler.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/icons/schema.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/kit/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/kit/exporter.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/kit/schema.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/lockup/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/lockup/compiler.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/lockup/schema.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/archetypes/iso-impossible.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/archetypes/kronos-chambers.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/archetypes/ribbon-weave.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/archetypes/solaris-aperture.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/archetypes/stencil-monogram.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/artifacts.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/compiler.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/fields.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/geometry.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/schema.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/sweep.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/composer.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/renderer.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/schema.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/concourse-lightbox/background.jpg +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/concourse-lightbox/manifest.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/concrete-card/background.jpg +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/concrete-card/manifest.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/fence-billboard/background.jpg +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/fence-billboard/manifest.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/highway-billboard/background.jpg +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/highway-billboard/manifest.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/mailer-box/background.jpg +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/mailer-box/manifest.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/matte-phone/background.jpg +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/matte-phone/manifest.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/pole-banner/background.jpg +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/pole-banner/manifest.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/stacked-cards/background.jpg +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/stacked-cards/manifest.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/street-hoarding/background.jpg +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/street-hoarding/manifest.json +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/pattern/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/pattern/compiler.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/pattern/schema.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/tokens/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/tokens/contrast.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/tokens/extract.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/tokens/schema.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/wordmark/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/wordmark/compiler.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/wordmark/schema.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/inspect/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/inspect/sheet.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/studio/__init__.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/studio/assets/favicon.ico +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/studio/assets/logo.svg +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/tests/test_compiler.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/tests/test_icons_pattern.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/tests/test_mockup.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/tests/test_sweep.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/tests/test_tokens_kit.py +0 -0
- {brandspec-0.2.0 → brandspec-0.2.2}/tests/test_wordmark_lockup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: brandspec
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Deterministic brand mark compiler and visual audit CLI
|
|
5
5
|
Project-URL: Homepage, https://github.com/rafifmsn/brandspec
|
|
6
6
|
Project-URL: Repository, https://github.com/rafifmsn/brandspec
|
|
@@ -224,7 +224,8 @@ Every `brandspec build` outputs:
|
|
|
224
224
|
| `ribbon-weave` | `geometric` | `square` | Interlocking stadium links using `halo` and `halo_targets` |
|
|
225
225
|
| `iso-impossible` | `geometric` | `isometric` | Three-fold rotational folded hexagon |
|
|
226
226
|
| `line-screen-disc` | `effect` | `square` | Linearly modulated stripes clipped to a sphere with diagonal cut |
|
|
227
|
-
| `
|
|
227
|
+
| `halftone-matrix` | `effect` | `square` | Symmetric five-by-five circular halftone field pulsing from the center |
|
|
228
|
+
| `chevron-monogram` | `monogram` | `square` | Figure-ground architectural M formed by stacked chevron wedges |
|
|
228
229
|
| `stencil-monogram` | `monogram` | `square` | Modular figure-ground letterform with rounded arches |
|
|
229
230
|
| `vela-sails` | `effect` | `square` | Concave curved sails over a modulated stripe hull |
|
|
230
231
|
| `solaris-aperture` | `effect` | `polar` | Eight-blade kinetic core inside a segmented corona ring |
|
|
@@ -193,7 +193,8 @@ Every `brandspec build` outputs:
|
|
|
193
193
|
| `ribbon-weave` | `geometric` | `square` | Interlocking stadium links using `halo` and `halo_targets` |
|
|
194
194
|
| `iso-impossible` | `geometric` | `isometric` | Three-fold rotational folded hexagon |
|
|
195
195
|
| `line-screen-disc` | `effect` | `square` | Linearly modulated stripes clipped to a sphere with diagonal cut |
|
|
196
|
-
| `
|
|
196
|
+
| `halftone-matrix` | `effect` | `square` | Symmetric five-by-five circular halftone field pulsing from the center |
|
|
197
|
+
| `chevron-monogram` | `monogram` | `square` | Figure-ground architectural M formed by stacked chevron wedges |
|
|
197
198
|
| `stencil-monogram` | `monogram` | `square` | Modular figure-ground letterform with rounded arches |
|
|
198
199
|
| `vela-sails` | `effect` | `square` | Concave curved sails over a modulated stripe hull |
|
|
199
200
|
| `solaris-aperture` | `effect` | `polar` | Eight-blade kinetic core inside a segmented corona ring |
|
|
Binary file
|
|
@@ -66,7 +66,7 @@ Run `brandspec schema <engine>` to inspect the full JSON Schema for `mark`, `wor
|
|
|
66
66
|
- `halftone_grid`: `center`, `cols`, `rows`, `pitch`, `shape` (`circle`, `square`, `diamond`), `min_size`, `max_size`, `field` (`radial_decay`, `radial_grow`, `linear_x`, `linear_y`, `diagonal`, `sine_ripple`).
|
|
67
67
|
- **Layers (`layers[]`)**: `id`, `op` (`"unite"`, `"subtract"`, `"intersect"`, `"xor"`), `halo`, `halo_join` (`"round"`, `"miter"`, `"bevel"`), `halo_cap` (`"round"`, `"butt"`, `"square"`), `halo_targets`, `shapes`, `clip_to`, `symmetry`.
|
|
68
68
|
- **Symmetry (`symmetry.type`)**: `"none"`, `"mirror_x"`, `"mirror_y"`, `"mirror_xy"`, `"rotate"` (`count`, `step_deg`, `scale_step`), `"glide_x"`.
|
|
69
|
-
- **Post-process (`post`)**: `canvas_size`, `padding
|
|
69
|
+
- **Post-process (`post`)**: `canvas_size`, `padding` (in pixels, default `100`), `optical_center`, `invert`, `precision`, `fill` (default `"#000000"`, or `{"type": "linear"|"radial", "angle_deg": 0, "stops": [{"offset": 0, "color": "#..."}, ...]}`).
|
|
70
70
|
|
|
71
71
|
## Logotypes, Lockups, and Mockups
|
|
72
72
|
|
|
@@ -79,3 +79,6 @@ Run `brandspec schema <engine>` to inspect the full JSON Schema for `mark`, `wor
|
|
|
79
79
|
1. **Map concept to archetype**: Choose 2 to 3 distinct structural directions (e.g., an interlocking ribbon, a radial vortex, a modulated line screen, or a wordmark/lockup) that fit the brand metaphor. Run `brandspec init` or author `spec.json` drafts.
|
|
80
80
|
2. **Build and inspect**: Run `brandspec build` / `wordmark build` / `lockup build` and read both `metrics.json` and `sheet.png` (using your file/image reader).
|
|
81
81
|
3. **Refine once**: Check the construction grid or clearspace panel, check `metrics.json` for `warnings` (ink ratio target `0.22` to `0.55`, zero tiny islands), and check Panel 4 to ensure the silhouette reads cleanly at 24px. Adjust parameters in `spec.json`, rebuild, and deliver the final `logo.svg` + `spec.json` (and optional mockups).
|
|
82
|
+
4. **Interactive review rounds (`brandspec review`)**: Run `brandspec review --dir <path/to/out> --wait` to block for a single `POST /api/review` submission and print JSON (omit `--wait` to keep Studio open across rounds).
|
|
83
|
+
Each submission writes `review.json` and snapshots `rounds/round-N/` inside `--dir`.
|
|
84
|
+
Advancing to Round 2 requires rebuilding into `--dir` (or clearing `review.json`).
|
|
@@ -172,7 +172,12 @@ def run_studio_server(
|
|
|
172
172
|
return 1
|
|
173
173
|
|
|
174
174
|
try:
|
|
175
|
-
server, state = create_studio_server(
|
|
175
|
+
server, state = create_studio_server(
|
|
176
|
+
target_dir,
|
|
177
|
+
host="127.0.0.1",
|
|
178
|
+
port=port,
|
|
179
|
+
wait_mode=wait,
|
|
180
|
+
)
|
|
176
181
|
except OSError as exc:
|
|
177
182
|
print(f"Studio error: could not bind 127.0.0.1:{port} ({exc})", file=sys.stderr)
|
|
178
183
|
return 1
|
|
@@ -718,14 +723,22 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
718
723
|
)
|
|
719
724
|
p_skill.set_defaults(func=cmd_install_skill)
|
|
720
725
|
|
|
721
|
-
p_review = sub.add_parser(
|
|
726
|
+
p_review = sub.add_parser(
|
|
727
|
+
"review",
|
|
728
|
+
help="Start localhost visual review studio",
|
|
729
|
+
description=(
|
|
730
|
+
"Start localhost BrandSpec Studio for visual review. "
|
|
731
|
+
"Submissions write review.json and snapshot rounds/round-N/ inside --dir; "
|
|
732
|
+
"advancing to Round 2 requires rebuilding into --dir (or clearing review.json)."
|
|
733
|
+
),
|
|
734
|
+
)
|
|
722
735
|
p_review.add_argument("--dir", required=True, help="Compiled build or sweep directory")
|
|
723
|
-
p_review.add_argument("--port", type=int, default=0, help="TCP port (0
|
|
736
|
+
p_review.add_argument("--port", type=int, default=0, help="TCP port (default 0, ephemeral)")
|
|
724
737
|
p_review.add_argument("--open", action="store_true", help="Open browser automatically")
|
|
725
738
|
p_review.add_argument(
|
|
726
739
|
"--wait",
|
|
727
740
|
action="store_true",
|
|
728
|
-
help="Block until POST /api/review
|
|
741
|
+
help="Block until a single POST /api/review submission, print JSON, and exit",
|
|
729
742
|
)
|
|
730
743
|
p_review.add_argument(
|
|
731
744
|
"--timeout",
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"name": "Chevron Monogram",
|
|
4
|
+
"concept": "Figure-ground architectural M formed by stacked chevron wedges and a central pedestal",
|
|
5
|
+
"category": "monogram",
|
|
6
|
+
"unit": 40,
|
|
7
|
+
"grid": {
|
|
8
|
+
"type": "square",
|
|
9
|
+
"divisions": 8
|
|
10
|
+
},
|
|
11
|
+
"layers": [
|
|
12
|
+
{
|
|
13
|
+
"id": "top-wedge",
|
|
14
|
+
"op": "unite",
|
|
15
|
+
"shapes": [
|
|
16
|
+
{
|
|
17
|
+
"type": "grid_path",
|
|
18
|
+
"points": [[-4.0, -4.0], [4.0, -4.0], [0.0, -1.5]],
|
|
19
|
+
"closed": true,
|
|
20
|
+
"width": 0.0
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "mid-chevron",
|
|
26
|
+
"op": "unite",
|
|
27
|
+
"shapes": [
|
|
28
|
+
{
|
|
29
|
+
"type": "grid_path",
|
|
30
|
+
"points": [[-3.0, -2.375], [0.0, -0.5], [3.0, -2.375], [3.0, -1.375], [0.0, 0.5], [-3.0, -1.375]],
|
|
31
|
+
"closed": true,
|
|
32
|
+
"width": 0.0
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "base-pedestal",
|
|
38
|
+
"op": "unite",
|
|
39
|
+
"shapes": [
|
|
40
|
+
{
|
|
41
|
+
"type": "grid_path",
|
|
42
|
+
"points": [[-1.5, 0.5625], [0.0, 1.5], [1.5, 0.5625], [1.5, 4.0], [-1.5, 4.0]],
|
|
43
|
+
"closed": true,
|
|
44
|
+
"width": 0.0
|
|
45
|
+
}
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"post": {
|
|
50
|
+
"canvas_size": 1000,
|
|
51
|
+
"padding": 110,
|
|
52
|
+
"optical_center": true,
|
|
53
|
+
"precision": 2
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"name": "Halftone Matrix",
|
|
4
|
+
"concept": "Symmetric five-by-five circular halftone field pulsing from the center",
|
|
5
|
+
"category": "effect",
|
|
6
|
+
"unit": 40,
|
|
7
|
+
"grid": {
|
|
8
|
+
"type": "square",
|
|
9
|
+
"divisions": 8
|
|
10
|
+
},
|
|
11
|
+
"layers": [
|
|
12
|
+
{
|
|
13
|
+
"id": "halftone-dots",
|
|
14
|
+
"op": "unite",
|
|
15
|
+
"shapes": [
|
|
16
|
+
{
|
|
17
|
+
"type": "halftone_grid",
|
|
18
|
+
"center": [0, 0],
|
|
19
|
+
"cols": 5,
|
|
20
|
+
"rows": 5,
|
|
21
|
+
"pitch": 1.5,
|
|
22
|
+
"shape": "circle",
|
|
23
|
+
"min_size": 0.42,
|
|
24
|
+
"max_size": 1.24,
|
|
25
|
+
"field": "radial_decay"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"post": {
|
|
31
|
+
"canvas_size": 1000,
|
|
32
|
+
"padding": 110,
|
|
33
|
+
"optical_center": true,
|
|
34
|
+
"precision": 2
|
|
35
|
+
}
|
|
36
|
+
}
|
{brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/archetypes/line-screen-disc.json
RENAMED
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
"type": "line_screen",
|
|
18
18
|
"center": [0, 0],
|
|
19
19
|
"angle_deg": 0,
|
|
20
|
-
"count":
|
|
21
|
-
"pitch": 0
|
|
20
|
+
"count": 8,
|
|
21
|
+
"pitch": 1.0,
|
|
22
22
|
"length": 9.0,
|
|
23
|
-
"min_width": 0.
|
|
24
|
-
"max_width": 0.
|
|
23
|
+
"min_width": 0.26,
|
|
24
|
+
"max_width": 0.58,
|
|
25
25
|
"profile": "linear"
|
|
26
26
|
}
|
|
27
27
|
],
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
{
|
|
41
41
|
"type": "grid_path",
|
|
42
42
|
"points": [[-4.5, 1.5], [4.5, -1.5]],
|
|
43
|
-
"width": 0.
|
|
43
|
+
"width": 0.62,
|
|
44
44
|
"cap": "butt"
|
|
45
45
|
}
|
|
46
46
|
]
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"shapes": [
|
|
45
45
|
{
|
|
46
46
|
"type": "line_screen",
|
|
47
|
-
"center": [0, 2.
|
|
47
|
+
"center": [0, 2.35],
|
|
48
48
|
"angle_deg": 0,
|
|
49
|
-
"count":
|
|
50
|
-
"pitch": 0.
|
|
49
|
+
"count": 4,
|
|
50
|
+
"pitch": 0.7,
|
|
51
51
|
"length": 7.6,
|
|
52
|
-
"min_width": 0.
|
|
53
|
-
"max_width": 0.
|
|
52
|
+
"min_width": 0.22,
|
|
53
|
+
"max_width": 0.4,
|
|
54
54
|
"profile": "linear",
|
|
55
55
|
"invert_profile": true
|
|
56
56
|
}
|
|
@@ -194,6 +194,21 @@
|
|
|
194
194
|
<div id="mockups-grid" class="mockups-grid"></div>
|
|
195
195
|
</div>
|
|
196
196
|
</section>
|
|
197
|
+
|
|
198
|
+
<div id="wait-closed-layer" class="wait-closed-layer" role="dialog" aria-modal="true" aria-labelledby="wait-closed-title" hidden>
|
|
199
|
+
<div class="wait-closed-card">
|
|
200
|
+
<div class="wait-closed-icon" aria-hidden="true">
|
|
201
|
+
<svg width="20" height="20" viewBox="0 0 16 16" fill="none">
|
|
202
|
+
<path d="M3.2 8.4L6.4 11.5L12.8 4.8" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" />
|
|
203
|
+
</svg>
|
|
204
|
+
</div>
|
|
205
|
+
<h2 id="wait-closed-title">Review submitted</h2>
|
|
206
|
+
<p id="wait-closed-desc" class="wait-closed-desc"></p>
|
|
207
|
+
<p class="wait-closed-hint">
|
|
208
|
+
Return to your terminal or agent. To keep Studio open across rounds, run <code>brandspec review</code> without <code>--wait</code>.
|
|
209
|
+
</p>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
197
212
|
</div>
|
|
198
213
|
|
|
199
214
|
<script src="/assets/studio.js" defer></script>
|
|
@@ -1176,3 +1176,70 @@ textarea:focus {
|
|
|
1176
1176
|
opacity: 0.5;
|
|
1177
1177
|
cursor: default;
|
|
1178
1178
|
}
|
|
1179
|
+
|
|
1180
|
+
/* Single-submission --wait completion layer */
|
|
1181
|
+
.wait-closed-layer {
|
|
1182
|
+
position: fixed;
|
|
1183
|
+
inset: 0;
|
|
1184
|
+
z-index: 100;
|
|
1185
|
+
background: var(--bg-canvas);
|
|
1186
|
+
display: flex;
|
|
1187
|
+
align-items: center;
|
|
1188
|
+
justify-content: center;
|
|
1189
|
+
padding: 24px;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
.wait-closed-card {
|
|
1193
|
+
width: 100%;
|
|
1194
|
+
max-width: 440px;
|
|
1195
|
+
background: var(--bg-surface);
|
|
1196
|
+
border: 1px solid var(--border-hairline);
|
|
1197
|
+
border-radius: 12px;
|
|
1198
|
+
padding: 28px 24px;
|
|
1199
|
+
display: flex;
|
|
1200
|
+
flex-direction: column;
|
|
1201
|
+
align-items: flex-start;
|
|
1202
|
+
gap: 12px;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
.wait-closed-icon {
|
|
1206
|
+
width: 36px;
|
|
1207
|
+
height: 36px;
|
|
1208
|
+
border-radius: 9px;
|
|
1209
|
+
background: var(--bg-elevated);
|
|
1210
|
+
border: 1px solid var(--border-active);
|
|
1211
|
+
color: var(--text-primary);
|
|
1212
|
+
display: inline-flex;
|
|
1213
|
+
align-items: center;
|
|
1214
|
+
justify-content: center;
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
.wait-closed-card h2 {
|
|
1218
|
+
margin: 0;
|
|
1219
|
+
font-size: 16px;
|
|
1220
|
+
font-weight: 600;
|
|
1221
|
+
letter-spacing: -0.015em;
|
|
1222
|
+
color: var(--text-primary);
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
.wait-closed-desc,
|
|
1226
|
+
.wait-closed-hint {
|
|
1227
|
+
margin: 0;
|
|
1228
|
+
font-size: 13px;
|
|
1229
|
+
line-height: 1.55;
|
|
1230
|
+
color: var(--text-secondary);
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
.wait-closed-hint {
|
|
1234
|
+
font-size: 12px;
|
|
1235
|
+
color: var(--text-muted);
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
.wait-closed-card code {
|
|
1239
|
+
padding: 1px 5px;
|
|
1240
|
+
border-radius: 4px;
|
|
1241
|
+
background: var(--bg-elevated);
|
|
1242
|
+
border: 1px solid var(--border-hairline);
|
|
1243
|
+
color: var(--text-primary);
|
|
1244
|
+
font-size: 11px;
|
|
1245
|
+
}
|
|
@@ -65,12 +65,27 @@
|
|
|
65
65
|
mockupAccentSwatch: document.getElementById("mockup-accent-swatch"),
|
|
66
66
|
mockupRenderBtn: document.getElementById("mockup-render-btn"),
|
|
67
67
|
mockupsStatus: document.getElementById("mockups-status"),
|
|
68
|
+
waitClosedLayer: document.getElementById("wait-closed-layer"),
|
|
69
|
+
waitClosedDesc: document.getElementById("wait-closed-desc"),
|
|
68
70
|
};
|
|
69
71
|
|
|
70
72
|
function isAwaitingAgent() {
|
|
71
73
|
return Boolean(state.session && state.session.awaiting_agent);
|
|
72
74
|
}
|
|
73
75
|
|
|
76
|
+
function showWaitClosedLayer(record) {
|
|
77
|
+
if (state.pollHandle) {
|
|
78
|
+
window.clearInterval(state.pollHandle);
|
|
79
|
+
state.pollHandle = null;
|
|
80
|
+
}
|
|
81
|
+
const round = record && record.round ? `Round ${record.round}` : "Your review";
|
|
82
|
+
const status = record && record.status ? ` (${record.status})` : "";
|
|
83
|
+
el.waitClosedDesc.textContent =
|
|
84
|
+
`${round}${status} has been saved for the agent to review. ` +
|
|
85
|
+
"This session used --wait, so the local server closed automatically after submission.";
|
|
86
|
+
el.waitClosedLayer.hidden = false;
|
|
87
|
+
}
|
|
88
|
+
|
|
74
89
|
function renumberPins() {
|
|
75
90
|
state.pins.forEach((pin, idx) => {
|
|
76
91
|
pin.id = idx + 1;
|
|
@@ -938,6 +953,10 @@
|
|
|
938
953
|
state.pins = [];
|
|
939
954
|
state.focusedPinIndex = -1;
|
|
940
955
|
el.reviewSummary.value = "";
|
|
956
|
+
if (body.wait_mode || (state.session && state.session.wait_mode)) {
|
|
957
|
+
showWaitClosedLayer(body);
|
|
958
|
+
return;
|
|
959
|
+
}
|
|
941
960
|
await loadSession();
|
|
942
961
|
} catch (err) {
|
|
943
962
|
el.submitError.hidden = false;
|
|
@@ -275,8 +275,9 @@ def _archive_and_write_review(root_dir: Path, payload: dict[str, Any]) -> dict[s
|
|
|
275
275
|
class StudioState:
|
|
276
276
|
"""Thread-safe shared state for an active Studio HTTP session."""
|
|
277
277
|
|
|
278
|
-
def __init__(self, root_dir: Path) -> None:
|
|
278
|
+
def __init__(self, root_dir: Path, wait_mode: bool = False) -> None:
|
|
279
279
|
self.root_dir = root_dir.resolve()
|
|
280
|
+
self.wait_mode = bool(wait_mode)
|
|
280
281
|
self.lock = threading.Lock()
|
|
281
282
|
self.submitted_event = threading.Event()
|
|
282
283
|
self.submitted_review: dict[str, Any] | None = None
|
|
@@ -317,6 +318,7 @@ class StudioState:
|
|
|
317
318
|
"kit": kit_files if kit_files else None,
|
|
318
319
|
"has_mockup_templates": len(discover_templates()) > 0,
|
|
319
320
|
"awaiting_agent": awaiting_agent,
|
|
321
|
+
"wait_mode": self.wait_mode,
|
|
320
322
|
**review_state,
|
|
321
323
|
}
|
|
322
324
|
|
|
@@ -647,7 +649,7 @@ class StudioHandler(BaseHTTPRequestHandler):
|
|
|
647
649
|
"pins": normalized_pins,
|
|
648
650
|
}
|
|
649
651
|
record = self.state.save_review(clean_payload)
|
|
650
|
-
self._send_json(HTTPStatus.OK, record)
|
|
652
|
+
self._send_json(HTTPStatus.OK, {**record, "wait_mode": self.state.wait_mode})
|
|
651
653
|
|
|
652
654
|
|
|
653
655
|
class StudioHTTPServer(ThreadingHTTPServer):
|
|
@@ -659,9 +661,10 @@ def create_studio_server(
|
|
|
659
661
|
root_dir: Path,
|
|
660
662
|
host: str = "127.0.0.1",
|
|
661
663
|
port: int = 0,
|
|
664
|
+
wait_mode: bool = False,
|
|
662
665
|
) -> tuple[ThreadingHTTPServer, StudioState]:
|
|
663
666
|
"""Create a configured ThreadingHTTPServer for the studio review directory."""
|
|
664
|
-
state = StudioState(root_dir)
|
|
667
|
+
state = StudioState(root_dir, wait_mode=wait_mode)
|
|
665
668
|
handler = partial(StudioHandler, state=state)
|
|
666
669
|
server = StudioHTTPServer((host, port), handler)
|
|
667
670
|
return server, state
|
|
@@ -93,3 +93,15 @@ def test_wordmark_fonts_discovery_and_cli(monkeypatch, tmp_path: Path, capsys) -
|
|
|
93
93
|
monkeypatch.setattr("brandspec.cli._default_font_dirs", lambda: [font_dir])
|
|
94
94
|
assert main(["wordmark", "fonts", "--query", "space", "--json"]) == 0
|
|
95
95
|
assert json.loads(capsys.readouterr().out) == [str(otf)]
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
def test_review_help_documents_wait_and_round_lifecycle(capsys) -> None:
|
|
99
|
+
try:
|
|
100
|
+
main(["review", "--help"])
|
|
101
|
+
except SystemExit as exc:
|
|
102
|
+
assert exc.code == 0
|
|
103
|
+
out = capsys.readouterr().out
|
|
104
|
+
assert "review.json" in out
|
|
105
|
+
assert "rounds/round-N/" in out
|
|
106
|
+
assert "default 0, ephemeral" in out
|
|
107
|
+
assert "single POST /api/review" in out
|
|
@@ -75,6 +75,7 @@ def test_session_discovers_single_and_multi_candidate_dirs(tmp_path: Path) -> No
|
|
|
75
75
|
assert "<title>Brandspec</title>" in html_text
|
|
76
76
|
assert "Brandspec</span>" in html_text
|
|
77
77
|
assert 'id="history-pending-dot"' in html_text
|
|
78
|
+
assert 'id="wait-closed-layer"' in html_text
|
|
78
79
|
|
|
79
80
|
with urllib.request.urlopen(f"http://127.0.0.1:{port}/assets/studio.css", timeout=5) as resp:
|
|
80
81
|
css_text = resp.read().decode("utf-8")
|
|
@@ -82,13 +83,16 @@ def test_session_discovers_single_and_multi_candidate_dirs(tmp_path: Path) -> No
|
|
|
82
83
|
assert "tabular-nums" in css_text
|
|
83
84
|
assert "flex-wrap: nowrap" in css_text
|
|
84
85
|
assert "display: none !important" in css_text
|
|
86
|
+
assert ".wait-closed-layer" in css_text
|
|
85
87
|
|
|
86
88
|
with urllib.request.urlopen(f"http://127.0.0.1:{port}/assets/studio.js", timeout=5) as resp:
|
|
87
89
|
js_text = resp.read().decode("utf-8")
|
|
88
90
|
assert "renumberPins" in js_text
|
|
89
91
|
assert "nextPinId" not in js_text
|
|
90
92
|
assert "isAwaitingAgent" in js_text
|
|
93
|
+
assert "showWaitClosedLayer" in js_text
|
|
91
94
|
assert session["awaiting_agent"] is False
|
|
95
|
+
assert session["wait_mode"] is False
|
|
92
96
|
finally:
|
|
93
97
|
server.shutdown()
|
|
94
98
|
server.server_close()
|
|
@@ -99,7 +103,7 @@ def test_session_discovers_single_and_multi_candidate_dirs(tmp_path: Path) -> No
|
|
|
99
103
|
== 0
|
|
100
104
|
)
|
|
101
105
|
assert (
|
|
102
|
-
main(["build", str(ARCHETYPES_DIR / "
|
|
106
|
+
main(["build", str(ARCHETYPES_DIR / "halftone-matrix.json"), "--out-dir", str(multi_dir / "02")])
|
|
103
107
|
== 0
|
|
104
108
|
)
|
|
105
109
|
server, _ = create_studio_server(multi_dir, port=0)
|
|
@@ -143,6 +147,7 @@ def test_post_review_writes_json_and_unblocks_wait(tmp_path: Path) -> None:
|
|
|
143
147
|
)
|
|
144
148
|
assert status == 200
|
|
145
149
|
assert body["round"] == 1
|
|
150
|
+
assert body["wait_mode"] is True
|
|
146
151
|
|
|
147
152
|
threading.Thread(target=_post, daemon=True).start()
|
|
148
153
|
|
|
@@ -159,12 +164,14 @@ def test_post_review_writes_json_and_unblocks_wait(tmp_path: Path) -> None:
|
|
|
159
164
|
assert review_v1["round"] == 1
|
|
160
165
|
assert review_v1["status"] == "revise"
|
|
161
166
|
assert review_v1["pins"][0]["x_grid"] == -1.5
|
|
167
|
+
assert "wait_mode" not in review_v1
|
|
162
168
|
|
|
163
169
|
def submit_round_two(url: str, _state) -> None:
|
|
164
170
|
def _post() -> None:
|
|
165
171
|
status, sess = _http_json(f"{url}api/session")
|
|
166
172
|
assert status == 200
|
|
167
173
|
assert sess["round"] == 2
|
|
174
|
+
assert sess["wait_mode"] is True
|
|
168
175
|
assert sess["latest_review"]["round"] == 1
|
|
169
176
|
assert len(sess["round_groups"]) == 1
|
|
170
177
|
assert sess["round_groups"][0]["round"] == 1
|
|
@@ -207,7 +214,7 @@ def test_post_review_writes_json_and_unblocks_wait(tmp_path: Path) -> None:
|
|
|
207
214
|
|
|
208
215
|
# Rebuild Round 3 after Round 2 review and verify awaiting_agent resets + Round 2 stays snapshotted
|
|
209
216
|
assert (
|
|
210
|
-
main(["build", str(ARCHETYPES_DIR / "
|
|
217
|
+
main(["build", str(ARCHETYPES_DIR / "halftone-matrix.json"), "--out-dir", str(build_dir)]) == 0
|
|
211
218
|
)
|
|
212
219
|
server, _ = create_studio_server(build_dir, port=0)
|
|
213
220
|
thread = threading.Thread(target=server.serve_forever, daemon=True)
|
|
Binary file
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": 1,
|
|
3
|
-
"name": "Radial Vortex",
|
|
4
|
-
"concept": "Six-fold twisted rotational blades forming an optical aperture",
|
|
5
|
-
"category": "effect",
|
|
6
|
-
"unit": 40,
|
|
7
|
-
"grid": {
|
|
8
|
-
"type": "polar",
|
|
9
|
-
"divisions": 12
|
|
10
|
-
},
|
|
11
|
-
"layers": [
|
|
12
|
-
{
|
|
13
|
-
"id": "outer-ring",
|
|
14
|
-
"op": "unite",
|
|
15
|
-
"shapes": [
|
|
16
|
-
{
|
|
17
|
-
"type": "radial_blades",
|
|
18
|
-
"center": [0, 0],
|
|
19
|
-
"count": 6,
|
|
20
|
-
"inner_radius": 0.95,
|
|
21
|
-
"outer_radius": 4.0,
|
|
22
|
-
"angle_deg": 0,
|
|
23
|
-
"twist_deg": 42,
|
|
24
|
-
"inner_width_deg": 34,
|
|
25
|
-
"outer_width_deg": 24,
|
|
26
|
-
"curve_bias": 0.55
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"id": "core-void",
|
|
32
|
-
"op": "subtract",
|
|
33
|
-
"shapes": [
|
|
34
|
-
{
|
|
35
|
-
"type": "circle",
|
|
36
|
-
"center": [0, 0],
|
|
37
|
-
"radius": 1.1
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
"post": {
|
|
43
|
-
"canvas_size": 1000,
|
|
44
|
-
"padding": 110,
|
|
45
|
-
"optical_center": true,
|
|
46
|
-
"precision": 2
|
|
47
|
-
}
|
|
48
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/archetypes/iso-impossible.json
RENAMED
|
File without changes
|
{brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/archetypes/kronos-chambers.json
RENAMED
|
File without changes
|
|
File without changes
|
{brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/archetypes/solaris-aperture.json
RENAMED
|
File without changes
|
{brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mark/archetypes/stencil-monogram.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/mailer-box/background.jpg
RENAMED
|
File without changes
|
{brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/mailer-box/manifest.json
RENAMED
|
File without changes
|
|
File without changes
|
{brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/matte-phone/manifest.json
RENAMED
|
File without changes
|
|
File without changes
|
{brandspec-0.2.0 → brandspec-0.2.2}/src/brandspec/engines/mockup/templates/pole-banner/manifest.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|