@wireweave/agent-prompts 0.2.0-beta.6 → 0.2.0-beta.8

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.
Files changed (2) hide show
  1. package/README.md +14 -30
  2. package/package.json +14 -19
package/README.md CHANGED
@@ -1,43 +1,27 @@
1
1
  # @wireweave/agent-prompts
2
2
 
3
- Canonical grammar-guide prompts that teach an LLM to generate Wireweave DSL.
3
+ Versioned grammar prompts derived from the Wireweave language contract.
4
4
 
5
- ## What it does
5
+ The [public tool contract](../../docs/spec/TOOLING.md#5-mcp-and-agent-plugins) defines this package's APIs, behavior, configuration and compatibility. The [language contract](../../docs/spec/LANGUAGE.md) defines the DSL. [Package metadata](package.json) owns package versions, exports, dependencies and scripts.
6
6
 
7
- Exports the Wireweave DSL grammar guide as ready-to-inject prompt strings. Each function returns a single Markdown-flavoured string that you drop verbatim into an LLM system message so the model emits valid `.wf` wireframes — including the multi-page canvas model (multiple top-level `page` declarations, `at(x, y)` positioning, `viewport="WxH"`).
7
+ ## Installation
8
8
 
9
- It is the single source of truth for the grammar guide; downstream consumers (`agent-harness`, `api-server`, future plugins) import it so they stay in sync with `@wireweave/core`. The package has no runtime dependencies.
10
-
11
- ## Install
9
+ Use Node.js >=22.13.0. Replace `<pinned-version>` with the release selected for your toolchain.
12
10
 
13
11
  ```bash
14
- pnpm add @wireweave/agent-prompts
12
+ pnpm add --save-exact '@wireweave/agent-prompts@<pinned-version>'
15
13
  ```
16
14
 
17
- ## Usage
18
-
19
- ```ts
20
- import { buildGrammarPrompt, buildCompactGrammarPrompt } from '@wireweave/agent-prompts'
15
+ ## Development
21
16
 
22
- // Full guide (~180 lines) — generation phase.
23
- const system = buildGrammarPrompt()
17
+ Run from the monorepo root after the [workspace setup](../../README.md).
24
18
 
25
- // Compact guide (~60 lines) — analyze / plan phases, fewer tokens.
26
- const compact = buildCompactGrammarPrompt()
19
+ ```bash
20
+ pnpm --filter @wireweave/agent-prompts run build
21
+ pnpm --filter @wireweave/agent-prompts run typecheck
22
+ pnpm --filter @wireweave/agent-prompts run lint
23
+ pnpm --filter @wireweave/agent-prompts run test
24
+ pnpm --filter @wireweave/agent-prompts run format:check
27
25
  ```
28
26
 
29
- ## API
30
-
31
- ### `buildGrammarPrompt(): string`
32
-
33
- The full grammar guide for the generation phase. Covers syntax structure, the multi-page canvas model, the renderer surface (`render` / `renderCanvas` / `renderPage`), the layout / content / form / nav / data / feedback / overlay / utility component contracts, and how to map common UI concepts to DSL components.
34
-
35
- ### `buildCompactGrammarPrompt(): string`
36
-
37
- A condensed grammar guide for the analyze / plan phases, where the full guide is more than needed.
38
-
39
- Part of the [Wireweave monorepo](https://github.com/wireweave/wireweave).
40
-
41
- ## License
42
-
43
- MIT
27
+ License: MIT.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireweave/agent-prompts",
3
- "version": "0.2.0-beta.6",
3
+ "version": "0.2.0-beta.8",
4
4
  "description": "Canonical grammar prompts for LLM agents generating Wireweave DSL (multi-page aware)",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -35,24 +35,21 @@
35
35
  ]
36
36
  },
37
37
  "devDependencies": {
38
- "@commitlint/cli": "^21.0.1",
39
- "@commitlint/config-conventional": "^21.0.1",
38
+ "@commitlint/cli": "^21.2.2",
39
+ "@commitlint/config-conventional": "^21.2.2",
40
40
  "@eslint/js": "^10.0.1",
41
41
  "@packlint/cli": "^0.0.2",
42
- "@release-it/conventional-changelog": "^10.0.4",
43
- "@types/node": "^22.0.0",
44
- "eslint": "^10.4.0",
42
+ "@types/node": "^22.20.2",
43
+ "eslint": "^10.10.0",
45
44
  "husky": "^9.1.7",
46
- "knip": "^6.14.2",
47
- "lint-staged": "^17.0.5",
48
- "prettier": "^3.8.3",
49
- "publint": "^0.3.21",
50
- "release-it": "^19.2.3",
51
- "tsup": "^8.3.5",
52
- "typescript": "^5.7.2",
53
- "typescript-eslint": "^8.60.0",
54
- "vitest": "^3.1.1",
55
- "@wireweave/core": "3.1.0-beta.9"
45
+ "knip": "^6.35.1",
46
+ "lint-staged": "^16.4.0",
47
+ "prettier": "^3.9.6",
48
+ "publint": "^0.3.24",
49
+ "tsup": "^8.5.1",
50
+ "typescript": "^5.9.3",
51
+ "typescript-eslint": "^8.70.0",
52
+ "vitest": "^4.1.11"
56
53
  },
57
54
  "keywords": [
58
55
  "wireframe",
@@ -86,8 +83,6 @@
86
83
  "knip": "knip",
87
84
  "publint": "publint --strict",
88
85
  "packlint": "packlint check",
89
- "clean": "rm -rf dist",
90
- "release": "release-it",
91
- "release:beta": "release-it --preRelease=beta"
86
+ "clean": "rm -rf dist"
92
87
  }
93
88
  }