@r_masseater/intent-book 0.0.0 → 0.2.0

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/LICENSE ADDED
@@ -0,0 +1,87 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 masseater
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ @tanstack/eslint-plugin-start
26
+
27
+ MIT License
28
+
29
+ Copyright (c) 2021-present Tanner Linsley
30
+
31
+ Permission is hereby granted, free of charge, to any person obtaining a copy
32
+ of this software and associated documentation files (the "Software"), to deal
33
+ in the Software without restriction, including without limitation the rights
34
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
35
+ copies of the Software, and to permit persons to whom the Software is
36
+ furnished to do so, subject to the following conditions:
37
+
38
+ The above copyright notice and this permission notice shall be included in all
39
+ copies or substantial portions of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
42
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
43
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
44
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
45
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
46
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
47
+ SOFTWARE.
48
+
49
+ ---
50
+
51
+ @typescript-eslint/utils
52
+
53
+ MIT License
54
+
55
+ Copyright (c) 2019 typescript-eslint and other contributors
56
+
57
+ Permission is hereby granted, free of charge, to any person obtaining a copy
58
+ of this software and associated documentation files (the "Software"), to deal
59
+ in the Software without restriction, including without limitation the rights
60
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
61
+ copies of the Software, and to permit persons to whom the Software is
62
+ furnished to do so, subject to the following conditions:
63
+
64
+ The above copyright notice and this permission notice shall be included in all
65
+ copies or substantial portions of the Software.
66
+
67
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
68
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
69
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
70
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
71
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
72
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
73
+ SOFTWARE.
74
+
75
+ ---
76
+
77
+ globals
78
+
79
+ MIT License
80
+
81
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
82
+
83
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
84
+
85
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
86
+
87
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,40 @@
1
1
  # @r_masseater/intent-book
2
2
 
3
- This version only reserves the name. Releases come from CI.
3
+ Builds a GitBook-style documentation site for people from the [TanStack Intent](https://tanstack.com/intent) agent skills (`SKILL.md`) that an npm package ships. The skills stay the single source, so the documentation agents read and the documentation people read cannot drift apart.
4
+
5
+ It requires Node.js 26 or later.
6
+
7
+ ```sh
8
+ vp dlx @r_masseater/intent-book ./path/to/package --out book
9
+ ```
10
+
11
+ ## What it builds
12
+
13
+ - One page per skill and one page per other Markdown file inside the skill directory, such as `references/` or `scripts/`, each at its own URL under the package name, such as `/@scope/name/<skill>/`. The skill name is the page title, the `description` is the lead, and the Intent fields `type` and `library_version` show as chips.
14
+ - A left navigation grouped by skill `type`, a table of contents of the page on the right, previous and next links in reading order, and a search dialog.
15
+ - `requires` shows as "Read first" links. `sources` link to their files in the repository unless they are globs. Headings that start with `CRITICAL`, `HIGH`, `MEDIUM` or `LOW` under Common Mistakes carry a severity mark.
16
+ - The `SKILL.md` an agent reads, unchanged, next to each page as `/@scope/name/<skill>.md`.
17
+ - Light and dark themes that follow the system setting, and code highlighted with Shiki.
18
+
19
+ Links between those Markdown files become links between pages. Links to any other file, such as a script or an image, or to a file outside the skills such as `skills/_artifacts/`, point to that file on GitHub when `repository` is a GitHub URL; the package directory comes from `repository.directory`. Files of a nested skill belong to that skill. Raw HTML in a skill is dropped.
20
+
21
+ ## Use it
22
+
23
+ ```text
24
+ intent-book [--out <directory>] [--base <path>] [--no-landing] [<package>...]
25
+ ```
26
+
27
+ - `<package>` is the directory of an npm package that has `skills/` and a `package.json`. It defaults to the current directory. Give several to build one site that switches between them. A directory without `skills/` is skipped when more than one is given, so a glob such as `node_modules/@scope/*` works.
28
+ - `--out` is the directory to write to. It defaults to `book`. It is replaced on every build, and a non-empty directory that this tool did not create is refused.
29
+ - `--base` is the path the site is served under, with a leading and a trailing slash. It defaults to `/`.
30
+ - `--no-landing` leaves out the `index.html` at the root, for a site that is copied into another site. The stylesheet, the script and the search index always go to `_intent-book/`, so they do not collide with the other site's files.
31
+
32
+ The output is static files. Serve it from any static host.
33
+
34
+ ## Agent skills
35
+
36
+ The package ships agent skills in `skills/`. Add `permissions: { "@r_masseater/intent-book": { skills: true } }` to `pnpm-workspace.yaml` and `vp install` links them into the skill directories of your agents.
37
+
38
+ ## License
39
+
40
+ [MIT](LICENSE)