@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.
- package/README.md +14 -30
- package/package.json +14 -19
package/README.md
CHANGED
|
@@ -1,43 +1,27 @@
|
|
|
1
1
|
# @wireweave/agent-prompts
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Versioned grammar prompts derived from the Wireweave language contract.
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
|
|
7
|
+
## Installation
|
|
8
8
|
|
|
9
|
-
|
|
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
|
-
##
|
|
18
|
-
|
|
19
|
-
```ts
|
|
20
|
-
import { buildGrammarPrompt, buildCompactGrammarPrompt } from '@wireweave/agent-prompts'
|
|
15
|
+
## Development
|
|
21
16
|
|
|
22
|
-
|
|
23
|
-
const system = buildGrammarPrompt()
|
|
17
|
+
Run from the monorepo root after the [workspace setup](../../README.md).
|
|
24
18
|
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
39
|
-
"@commitlint/config-conventional": "^21.
|
|
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
|
-
"@
|
|
43
|
-
"
|
|
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.
|
|
47
|
-
"lint-staged": "^
|
|
48
|
-
"prettier": "^3.
|
|
49
|
-
"publint": "^0.3.
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"typescript": "^
|
|
53
|
-
"
|
|
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
|
}
|