@wireweave/agent-prompts 0.2.0-beta.8 → 0.2.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.js +6 -0
- package/package.json +7 -8
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The [public tool contract](../../docs/spec/TOOLING.md#5-mcp-and-agent-plugins) d
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
Use Node.js >=22.
|
|
9
|
+
Use Node.js >=22.22.2. Replace `<pinned-version>` with the release selected for your toolchain.
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
pnpm add --save-exact '@wireweave/agent-prompts@<pinned-version>'
|
package/dist/index.cjs
CHANGED
|
@@ -312,6 +312,9 @@ Wireframes are judged on layout quality, not just valid syntax. Follow these com
|
|
|
312
312
|
|
|
313
313
|
- ADAPTIVE TARGET-N GRID: When showing N peer items (cards, tiles, stat boxes, product thumbnails), lay them out as an even grid whose column count fits N \u2014 do NOT stack everything in one column. Use a row with equal-width children: row gap=4 { col flex=1 { \u2026 } col flex=1 { \u2026 } col flex=1 { \u2026 } } gives 3 equal columns. For many items, add wrap so they reflow into rows of equal columns: row gap=4 wrap { /* each item a fixed-width or flex card */ }. Keep every column the same width (flex=1, or span out of 12) and one consistent gap.
|
|
314
314
|
- SYMMETRIC MARGINS & SPACING: Use consistent, symmetric padding and gaps. Give header/main/footer the same horizontal padding (e.g. p=4) so content edges line up. Use ONE gap value within a group rather than ad-hoc per-item margins. Left and right insets should match; avoid lopsided spacing.
|
|
315
|
+
- SPACING UNITS: Use supported p/px/py/pt/pr/pb/pl and gap attributes, not an invented padding attribute. Unitless spacing is a token (p=4 is 16px; p=16 is 64px); use a literal unit for a pixel requirement (p=16px, gap=12px). An outer host gutter is not internal content padding. Give the authored content region explicit edge insets and align related headings, content and actions on those same edges.
|
|
316
|
+
- READING & ACTION HIERARCHY: Derive the reading order and primary decision from the confirmed screen/slot requirements. Use a bounded readable content column and deliberate vertical groups. Reserve primary for the main decision; keep revise/evidence/recovery controls secondary and separate navigation from the decision group. Avoid wrapping every group in a heavy bordered card. Do not invent decisions or hide required controls to simplify the layout.
|
|
317
|
+
- COMPACT INTENT: Use the confirmed viewport profile and shell slots. Keep authored board geometry fixed; host resizing is not a new responsive profile. Specify an intentional main scroll region when content exceeds its profile, with navigation reachable in that region or a separate footer. Use wrapping action rows or stacked groups with explicit gaps where space is limited. Grammar/navigation validity does not establish rendered geometry or visual acceptance.
|
|
315
318
|
- CHAT-REGION COMPOSITION: A chat / conversation / messaging screen is three stacked regions: (1) header with the contact/title, (2) main scroll holding the message list (alternate alignment \u2014 incoming left, outgoing right), and (3) a bottom input bar as a row pinned below main: row gap=2 { input "" placeholder="Message" flex=1 button "" icon="send" aria="Send" primary }. The composer is its OWN row outside the scroll area, never inside the message list.
|
|
316
319
|
- INPUT SIZING: Inputs, selects and textareas in a form should fill their container \u2014 w="full" when stacked in a col, or flex=1 when sharing a row with a button. Keep a consistent size across one form. A search field uses input with icon="search".
|
|
317
320
|
- ACCESSIBLE ICON BUTTONS: Every icon-only button needs an accessible name: button "" icon="x" aria="Close" ghost.
|
|
@@ -371,6 +374,9 @@ repeat N { \u2026 } draws its body N times \u2014 write repeat 6 { use skeletonC
|
|
|
371
374
|
# LAYOUT GUIDANCE
|
|
372
375
|
- Grid of N peer items: row [wrap] with equal col flex=1 children (column count fits N) \u2014 don't stack peers in one column.
|
|
373
376
|
- Symmetric spacing: same horizontal padding on header/main/footer; one consistent gap per group; match left/right insets.
|
|
377
|
+
- Spacing units: p/px/py and gap, NOT padding. Unitless values are tokens (p=16 is 64px); literal p=16px is 16px. Author internal edge insets; a host gutter is not padding. Align headings/content/actions intentionally.
|
|
378
|
+
- Reading/actions: follow confirmed screen/slot requirements; bounded readable column, deliberate vertical groups, one primary decision, secondary revise/evidence/recovery, separate navigation; avoid excessive bordered cards.
|
|
379
|
+
- Compact: preserve the confirmed fixed board/profile and shell slots. Use an intentional main scroll region and reachable navigation/footer, wrapping/stacked actions with gaps. Navigation validity is not geometry or visual acceptance.
|
|
374
380
|
- Chat screen: header + main scroll (message list, incoming left / outgoing right) + bottom composer row { input flex=1 button "" icon="send" aria="Send" } OUTSIDE the scroll area.
|
|
375
381
|
- Input sizing: inputs/selects fill their container (w="full" stacked, flex=1 in a row); consistent size per form.
|
|
376
382
|
|
package/dist/index.js
CHANGED
|
@@ -285,6 +285,9 @@ Wireframes are judged on layout quality, not just valid syntax. Follow these com
|
|
|
285
285
|
|
|
286
286
|
- ADAPTIVE TARGET-N GRID: When showing N peer items (cards, tiles, stat boxes, product thumbnails), lay them out as an even grid whose column count fits N \u2014 do NOT stack everything in one column. Use a row with equal-width children: row gap=4 { col flex=1 { \u2026 } col flex=1 { \u2026 } col flex=1 { \u2026 } } gives 3 equal columns. For many items, add wrap so they reflow into rows of equal columns: row gap=4 wrap { /* each item a fixed-width or flex card */ }. Keep every column the same width (flex=1, or span out of 12) and one consistent gap.
|
|
287
287
|
- SYMMETRIC MARGINS & SPACING: Use consistent, symmetric padding and gaps. Give header/main/footer the same horizontal padding (e.g. p=4) so content edges line up. Use ONE gap value within a group rather than ad-hoc per-item margins. Left and right insets should match; avoid lopsided spacing.
|
|
288
|
+
- SPACING UNITS: Use supported p/px/py/pt/pr/pb/pl and gap attributes, not an invented padding attribute. Unitless spacing is a token (p=4 is 16px; p=16 is 64px); use a literal unit for a pixel requirement (p=16px, gap=12px). An outer host gutter is not internal content padding. Give the authored content region explicit edge insets and align related headings, content and actions on those same edges.
|
|
289
|
+
- READING & ACTION HIERARCHY: Derive the reading order and primary decision from the confirmed screen/slot requirements. Use a bounded readable content column and deliberate vertical groups. Reserve primary for the main decision; keep revise/evidence/recovery controls secondary and separate navigation from the decision group. Avoid wrapping every group in a heavy bordered card. Do not invent decisions or hide required controls to simplify the layout.
|
|
290
|
+
- COMPACT INTENT: Use the confirmed viewport profile and shell slots. Keep authored board geometry fixed; host resizing is not a new responsive profile. Specify an intentional main scroll region when content exceeds its profile, with navigation reachable in that region or a separate footer. Use wrapping action rows or stacked groups with explicit gaps where space is limited. Grammar/navigation validity does not establish rendered geometry or visual acceptance.
|
|
288
291
|
- CHAT-REGION COMPOSITION: A chat / conversation / messaging screen is three stacked regions: (1) header with the contact/title, (2) main scroll holding the message list (alternate alignment \u2014 incoming left, outgoing right), and (3) a bottom input bar as a row pinned below main: row gap=2 { input "" placeholder="Message" flex=1 button "" icon="send" aria="Send" primary }. The composer is its OWN row outside the scroll area, never inside the message list.
|
|
289
292
|
- INPUT SIZING: Inputs, selects and textareas in a form should fill their container \u2014 w="full" when stacked in a col, or flex=1 when sharing a row with a button. Keep a consistent size across one form. A search field uses input with icon="search".
|
|
290
293
|
- ACCESSIBLE ICON BUTTONS: Every icon-only button needs an accessible name: button "" icon="x" aria="Close" ghost.
|
|
@@ -344,6 +347,9 @@ repeat N { \u2026 } draws its body N times \u2014 write repeat 6 { use skeletonC
|
|
|
344
347
|
# LAYOUT GUIDANCE
|
|
345
348
|
- Grid of N peer items: row [wrap] with equal col flex=1 children (column count fits N) \u2014 don't stack peers in one column.
|
|
346
349
|
- Symmetric spacing: same horizontal padding on header/main/footer; one consistent gap per group; match left/right insets.
|
|
350
|
+
- Spacing units: p/px/py and gap, NOT padding. Unitless values are tokens (p=16 is 64px); literal p=16px is 16px. Author internal edge insets; a host gutter is not padding. Align headings/content/actions intentionally.
|
|
351
|
+
- Reading/actions: follow confirmed screen/slot requirements; bounded readable column, deliberate vertical groups, one primary decision, secondary revise/evidence/recovery, separate navigation; avoid excessive bordered cards.
|
|
352
|
+
- Compact: preserve the confirmed fixed board/profile and shell slots. Use an intentional main scroll region and reachable navigation/footer, wrapping/stacked actions with gaps. Navigation validity is not geometry or visual acceptance.
|
|
347
353
|
- Chat screen: header + main scroll (message list, incoming left / outgoing right) + bottom composer row { input flex=1 button "" icon="send" aria="Send" } OUTSIDE the scroll area.
|
|
348
354
|
- Input sizing: inputs/selects fill their container (w="full" stacked, flex=1 in a row); consistent size per form.
|
|
349
355
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wireweave/agent-prompts",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.9",
|
|
4
4
|
"description": "Canonical grammar prompts for LLM agents generating Wireweave DSL (multi-page aware)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"engines": {
|
|
26
|
-
"node": ">=22.
|
|
26
|
+
"node": ">=22.22.2"
|
|
27
27
|
},
|
|
28
28
|
"lint-staged": {
|
|
29
29
|
"*.{ts,js,mjs,cjs}": [
|
|
@@ -38,18 +38,17 @@
|
|
|
38
38
|
"@commitlint/cli": "^21.2.2",
|
|
39
39
|
"@commitlint/config-conventional": "^21.2.2",
|
|
40
40
|
"@eslint/js": "^10.0.1",
|
|
41
|
-
"@packlint/cli": "^0.0.2",
|
|
42
41
|
"@types/node": "^22.20.2",
|
|
43
|
-
"eslint": "^10.
|
|
42
|
+
"eslint": "^10.15.0",
|
|
44
43
|
"husky": "^9.1.7",
|
|
45
|
-
"knip": "^6.
|
|
44
|
+
"knip": "^6.45.1",
|
|
46
45
|
"lint-staged": "^16.4.0",
|
|
47
46
|
"prettier": "^3.9.6",
|
|
48
47
|
"publint": "^0.3.24",
|
|
49
48
|
"tsup": "^8.5.1",
|
|
50
49
|
"typescript": "^5.9.3",
|
|
51
|
-
"typescript-eslint": "^8.
|
|
52
|
-
"vitest": "^4.1.
|
|
50
|
+
"typescript-eslint": "^8.72.2",
|
|
51
|
+
"vitest": "^4.1.12"
|
|
53
52
|
},
|
|
54
53
|
"keywords": [
|
|
55
54
|
"wireframe",
|
|
@@ -82,7 +81,7 @@
|
|
|
82
81
|
"format:check": "prettier --check .",
|
|
83
82
|
"knip": "knip",
|
|
84
83
|
"publint": "publint --strict",
|
|
85
|
-
"packlint": "
|
|
84
|
+
"packlint": "pnpm --dir ../.. exec node scripts/packaging-gate.mjs --check && publint --strict",
|
|
86
85
|
"clean": "rm -rf dist"
|
|
87
86
|
}
|
|
88
87
|
}
|