@riebeckite/ai 0.0.0-stage → 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 +201 -0
- package/README.md +8 -2
- package/README_ja.md +9 -0
- package/assets/skills/assets/riebeckite-component.md +16 -0
- package/assets/skills/assets/riebeckite-configuration.md +13 -0
- package/assets/skills/assets/riebeckite-content-migration.md +15 -0
- package/assets/skills/assets/riebeckite-deployment.md +15 -0
- package/assets/skills/assets/riebeckite-plugin-catalog.md +14 -0
- package/assets/skills/assets/riebeckite-plugin.md +16 -0
- package/assets/skills/assets/riebeckite-site.md +14 -0
- package/assets/skills/assets/riebeckite-theme.md +15 -0
- package/assets/skills/assets/riebeckite-troubleshooting.md +15 -0
- package/assets/skills/assets/riebeckite-upgrade.md +16 -0
- package/assets/skills/references/riebeckite-component.md +124 -0
- package/assets/skills/references/riebeckite-configuration.md +96 -0
- package/assets/skills/references/riebeckite-content-migration.md +89 -0
- package/assets/skills/references/riebeckite-deployment.md +101 -0
- package/assets/skills/references/riebeckite-plugin-catalog.md +77 -0
- package/assets/skills/references/riebeckite-plugin.md +132 -0
- package/assets/skills/references/riebeckite-site.md +111 -0
- package/assets/skills/references/riebeckite-theme.md +145 -0
- package/assets/skills/references/riebeckite-troubleshooting.md +53 -0
- package/assets/skills/references/riebeckite-upgrade.md +71 -0
- package/assets/skills/riebeckite-component.md +20 -0
- package/assets/skills/riebeckite-configuration.md +19 -0
- package/assets/skills/riebeckite-content-migration.md +20 -0
- package/assets/skills/riebeckite-deployment.md +20 -0
- package/assets/skills/riebeckite-plugin-catalog.md +20 -0
- package/assets/skills/riebeckite-plugin.md +21 -0
- package/assets/skills/riebeckite-site-external.md +23 -0
- package/assets/skills/riebeckite-site.md +22 -0
- package/assets/skills/riebeckite-theme.md +19 -0
- package/assets/skills/riebeckite-troubleshooting.md +20 -0
- package/assets/skills/riebeckite-upgrade.md +20 -0
- package/dist/clients.d.ts +17 -0
- package/dist/index.d.ts +48 -0
- package/dist/index.js +260 -0
- package/package.json +52 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright Rerurate_514
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @riebeckite/ai
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
AI integration configuration for Riebeckite: generated guidance, Skills, client MCP configuration, and mutation policy.
|
|
4
|
+
|
|
5
|
+
[日本語](./README_ja.md)
|
|
6
|
+
|
|
7
|
+
`getAiSetupFiles` builds `RIEBECKITE_AI.md`, `AGENTS.md`, `CLAUDE.md`, `.github/copilot-instructions.md`, and generated Skills. `aiRuleFiles` writes the guidance and `aiSkillFiles` writes the Skills; both accept the Riebeckite version so generated files record it.
|
|
8
|
+
|
|
9
|
+
`mergeAiClientConfig` adds a project-local `riebeckite` MCP server to Claude, Cursor, VS Code, or OpenCode configuration while preserving other keys and servers. `createMutationPathPolicy` and `validateAiIntegration` define and validate the optional `integrations.ai` mutation boundary.
|
package/README_ja.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# @riebeckite/ai
|
|
2
|
+
|
|
3
|
+
Riebeckite の AI 連携設定を扱うパッケージです。生成するガイダンス、Skills、クライアントの MCP 設定、変更ポリシーを提供します。
|
|
4
|
+
|
|
5
|
+
[English](./README.md)
|
|
6
|
+
|
|
7
|
+
`getAiSetupFiles` は `RIEBECKITE_AI.md`、`AGENTS.md`、`CLAUDE.md`、`.github/copilot-instructions.md`、生成 Skills を組み立てます。`aiRuleFiles` はガイダンス、`aiSkillFiles` は Skills を生成し、どちらも Riebeckite のバージョンを受け取って生成ファイルに記録します。
|
|
8
|
+
|
|
9
|
+
`mergeAiClientConfig` は Claude、Cursor、VS Code、OpenCode のプロジェクト内設定に `riebeckite` MCP サーバーを追加し、ほかのキーとサーバーを保持します。`createMutationPathPolicy` と `validateAiIntegration` は任意の `integrations.ai` 変更境界を定義・検証します。
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Application component checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Inspect the affected route, content, Theme, and existing components.
|
|
4
|
+
- [ ] Confirm the public URL, params, and route state contract.
|
|
5
|
+
- [ ] Choose the correct ownership boundary: Plugin, Theme, application, or config.
|
|
6
|
+
- [ ] Reuse existing UI primitives and Theme tokens.
|
|
7
|
+
- [ ] Preserve route data, error states, and redirects.
|
|
8
|
+
- [ ] Use semantic HTML, accessible names, and visible focus.
|
|
9
|
+
- [ ] Check keyboard order and heading hierarchy.
|
|
10
|
+
- [ ] Check narrow layouts, long content, empty states, and reduced motion.
|
|
11
|
+
- [ ] Do not encode meaning in colour alone.
|
|
12
|
+
- [ ] Add or update focused tests where the project supports them.
|
|
13
|
+
- [ ] Run `npm run check`.
|
|
14
|
+
- [ ] Run `npm run build` when routes, rendering, or assets changed.
|
|
15
|
+
- [ ] Inspect the affected route and one unrelated route in a browser.
|
|
16
|
+
- [ ] Report URL/accessibility impact, tests, and remaining risk.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Configuration checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Inspect `riebeckite.config.ts`, `package.json`, content directory, deployment files, and extensions.
|
|
4
|
+
- [ ] Identify the smallest setting that solves the need.
|
|
5
|
+
- [ ] Preserve unknown fields and unrelated configuration.
|
|
6
|
+
- [ ] Check route impact for directory, exclude, locale, base URL, and publish strategy changes.
|
|
7
|
+
- [ ] Keep secrets in environment or provider secret storage.
|
|
8
|
+
- [ ] Report secret names only.
|
|
9
|
+
- [ ] Run `npm exec riebeckite inspect config` when the resolved value is unclear.
|
|
10
|
+
- [ ] Run `npm run check`.
|
|
11
|
+
- [ ] Run `npm run build` when paths, routes, extensions, or output changed.
|
|
12
|
+
- [ ] Inspect the affected route, canonical URL, asset, or feed.
|
|
13
|
+
- [ ] Report the setting, reason, validation, and migration/deployment impact.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Content migration checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Record the exact source set, transformation, exclusions, and rollback path.
|
|
4
|
+
- [ ] Inspect the project's frontmatter, link, and formatting conventions.
|
|
5
|
+
- [ ] Determine `filters.publishStrategy` and each affected page's visibility.
|
|
6
|
+
- [ ] Preserve unknown frontmatter keys and unrelated content.
|
|
7
|
+
- [ ] Use `@riebeckite/plugin-frontmatter-transformer` for supported bulk changes.
|
|
8
|
+
- [ ] If scripting, dry-run first and write only the declared source set.
|
|
9
|
+
- [ ] List old/new URLs, inbound links, embeds, aliases, and redirects.
|
|
10
|
+
- [ ] Apply one small reversible batch at a time.
|
|
11
|
+
- [ ] Run `npm run check` after each batch.
|
|
12
|
+
- [ ] Run `npm run build` before completion.
|
|
13
|
+
- [ ] Inspect routes, redirects, publication, feeds, sitemap, and unresolved links.
|
|
14
|
+
- [ ] Restore and replan at the first unexpected result.
|
|
15
|
+
- [ ] Report scope, exclusions, route impact, validation, and rollback path.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Deployment checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Identify provider, build command, output directory, public origin, and content source.
|
|
4
|
+
- [ ] Inspect the existing workflow and provider configuration.
|
|
5
|
+
- [ ] Confirm `dist/` contains the expected routes, assets, feeds, and redirects.
|
|
6
|
+
- [ ] Keep secrets in the provider store; report names only.
|
|
7
|
+
- [ ] For external content, verify checkout path, permissions, fetch order, and `content.directory`.
|
|
8
|
+
- [ ] Preserve base paths, locales, redirects, canonical URLs, assets, and cache headers.
|
|
9
|
+
- [ ] Run `npm run check`.
|
|
10
|
+
- [ ] Run `npm run build` and inspect the output.
|
|
11
|
+
- [ ] Deploy through the existing command or CI workflow.
|
|
12
|
+
- [ ] Verify the public origin, one deep link, assets, feeds/sitemap, and a redirect.
|
|
13
|
+
- [ ] Confirm unpublished content is not reachable.
|
|
14
|
+
- [ ] Record the previous deployment/artifact/revision as the rollback target.
|
|
15
|
+
- [ ] Report target, changes, verification, secret names, and rollback path.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Official Plugin catalog checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Write the capability and affected content/route in one sentence.
|
|
4
|
+
- [ ] Inspect `riebeckite.config.ts` and `package.json` for existing Plugins and overlap.
|
|
5
|
+
- [ ] Search the official catalog with `riebeckite_plugin_catalog` or the docs site.
|
|
6
|
+
- [ ] Read the current documentation for every serious candidate.
|
|
7
|
+
- [ ] Compare input format, output stage, configuration, companions, routes, assets, and cache impact.
|
|
8
|
+
- [ ] Confirm the package supports the project's Riebeckite version.
|
|
9
|
+
- [ ] Choose the narrowest Plugin; reject broad bundles for a single feature.
|
|
10
|
+
- [ ] Install only the required package and register it in the existing configuration style.
|
|
11
|
+
- [ ] Run `npm run check`.
|
|
12
|
+
- [ ] Run `npm run build` and inspect the affected page, route, feed, or asset.
|
|
13
|
+
- [ ] If no Plugin fits, report the gap and the recommended boundary instead of duplicating one.
|
|
14
|
+
- [ ] Report the chosen package, version, configuration, and remaining risk.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Local Plugin checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Confirm the feature belongs in a Plugin, not a Theme, component, or config.
|
|
4
|
+
- [ ] Create or locate the Plugin; never edit `node_modules`.
|
|
5
|
+
- [ ] Use `definePlugin` with a stable name and typed options.
|
|
6
|
+
- [ ] Validate options at the trust boundary.
|
|
7
|
+
- [ ] Choose the narrowest extension point.
|
|
8
|
+
- [ ] Declare `processedContentCache.version` and the correct `dependencyMode`: `none`, `tracked`, `global`, or `unsafe`.
|
|
9
|
+
- [ ] Track content reads through `context.contentSource`; do not read the filesystem directly for tracked input.
|
|
10
|
+
- [ ] Declare `outputDependencies` for emitted content-derived output.
|
|
11
|
+
- [ ] Use `rr-*`/`--rr-*` for extension CSS; leave `rb-*`/`--rb-*` unchanged.
|
|
12
|
+
- [ ] Add tests for output, options, cache mode, and output dependencies.
|
|
13
|
+
- [ ] Run `npm exec riebeckite plugin verify <path> --level full`.
|
|
14
|
+
- [ ] Run `npm run check`; run `npm run build` when registered in the site.
|
|
15
|
+
- [ ] Inspect the affected output and diagnostics.
|
|
16
|
+
- [ ] Report extension points, cache mode, dependencies, tests, and remaining risk.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Site content checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Read `riebeckite.config.ts` and identify the resolved `{{content-directory}}/` path.
|
|
4
|
+
- [ ] Check `filters.publishStrategy` and the page's current visibility fields.
|
|
5
|
+
- [ ] Inspect neighbouring pages for frontmatter, link, and formatting conventions.
|
|
6
|
+
- [ ] Confirm the page's current Public Location with `npm exec riebeckite inspect content --list`.
|
|
7
|
+
- [ ] For a rename, move, alias, locale, or deletion, list inbound links, embeds, and redirects.
|
|
8
|
+
- [ ] Preserve unknown frontmatter keys and unrelated content.
|
|
9
|
+
- [ ] Add or update a redirect before removing a public URL.
|
|
10
|
+
- [ ] Run `npm run check`.
|
|
11
|
+
- [ ] Run `npm run build` when routing, configuration, assets, or publication changed.
|
|
12
|
+
- [ ] Inspect the affected route, redirect, metadata, and assets.
|
|
13
|
+
- [ ] Confirm no unintended page became public or private.
|
|
14
|
+
- [ ] Report changed files, validation results, and unresolved link or publication risk.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Theme checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Inspect the active Theme, site CSS, layout, and representative pages.
|
|
4
|
+
- [ ] Create or locate a local Theme; never edit `node_modules`.
|
|
5
|
+
- [ ] Use `defineTheme` and typed `defineThemeSettings`.
|
|
6
|
+
- [ ] Declare labels, defaults, and bounds for every setting.
|
|
7
|
+
- [ ] Preserve `rb-*`/`--rb-*`; use `rr-*`/`--rr-*` for extension hooks.
|
|
8
|
+
- [ ] Scope selectors to `data-rb-theme`.
|
|
9
|
+
- [ ] Handle explicit dark mode separately from system dark mode.
|
|
10
|
+
- [ ] Check light, dark, and system modes.
|
|
11
|
+
- [ ] Check keyboard focus, contrast, long content, and narrow layouts.
|
|
12
|
+
- [ ] Check reduced-motion behaviour.
|
|
13
|
+
- [ ] Run `npm exec riebeckite theme preview <name>`.
|
|
14
|
+
- [ ] Run `npm run check`; run `npm run build` when registered.
|
|
15
|
+
- [ ] Report tokens/hooks changed, modes/viewports tested, and remaining risk.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Troubleshooting checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Capture the exact command, full error, project root, and versions.
|
|
4
|
+
- [ ] Identify recent changes and whether the failure is local, CI, or deployed.
|
|
5
|
+
- [ ] Reproduce with the smallest failing command.
|
|
6
|
+
- [ ] Run `npm run check`.
|
|
7
|
+
- [ ] Run `npm run doctor`.
|
|
8
|
+
- [ ] Run `npm exec riebeckite inspect config` when paths or resolved values are unclear.
|
|
9
|
+
- [ ] Run `npm exec riebeckite inspect content --list` before link/embed diagnosis.
|
|
10
|
+
- [ ] Classify the failure before editing.
|
|
11
|
+
- [ ] Test one hypothesis at a time.
|
|
12
|
+
- [ ] Fix the shared root cause, not only the first symptom.
|
|
13
|
+
- [ ] Do not disable checks or suppress diagnostics to pass.
|
|
14
|
+
- [ ] Re-run the failing command and a broader check/build.
|
|
15
|
+
- [ ] Report cause, evidence, changes, verification, and remaining risk.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Riebeckite upgrade checklist
|
|
2
|
+
|
|
3
|
+
- [ ] Record current `@riebeckite/*` versions, lockfile, and package manager.
|
|
4
|
+
- [ ] Inspect local Plugins, Themes, content formats, scripts, Skills, and deployment.
|
|
5
|
+
- [ ] Capture baseline `check`, `doctor`, and `build` results.
|
|
6
|
+
- [ ] Read release notes and migration guidance.
|
|
7
|
+
- [ ] Run `npm exec riebeckite upgrade --to <version>` as a preflight.
|
|
8
|
+
- [ ] Resolve BLOCKED or UNVERIFIED results before installing.
|
|
9
|
+
- [ ] Update all `@riebeckite/*` packages together with the package manager.
|
|
10
|
+
- [ ] Do not hand-edit the lockfile.
|
|
11
|
+
- [ ] Apply required configuration, Plugin, Theme, or content migrations.
|
|
12
|
+
- [ ] Run `npm run check`, `npm run doctor`, and `npm run build`.
|
|
13
|
+
- [ ] Inspect routes, assets, feeds, redirects, and publication state.
|
|
14
|
+
- [ ] Review Skills sync output; accept replacement only with user consent.
|
|
15
|
+
- [ ] Record the previous versions and lockfile as the rollback target.
|
|
16
|
+
- [ ] Report versions, preflight, migrations, verification, Skill decision, and rollback.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# Application component guide
|
|
2
|
+
|
|
3
|
+
Use application code for site-specific layout, page composition, interactions, and route wiring. Use a Plugin for reusable content semantics and a Theme for shared presentation.
|
|
4
|
+
|
|
5
|
+
## Choose the right boundary
|
|
6
|
+
|
|
7
|
+
| Need | Owner |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| Reusable content transformation or output | Official or local Plugin |
|
|
10
|
+
| Shared visual language across the site | Theme |
|
|
11
|
+
| One site's page layout, interaction, or route | Application component |
|
|
12
|
+
| Markdown meaning or frontmatter interpretation | Plugin or content format |
|
|
13
|
+
| Site name, locale, menu, or deployment setting | Configuration |
|
|
14
|
+
|
|
15
|
+
Do not put content semantics in a component or presentation in a Plugin.
|
|
16
|
+
|
|
17
|
+
## Route structure
|
|
18
|
+
|
|
19
|
+
The minimal scaffold uses file routes:
|
|
20
|
+
|
|
21
|
+
```tsx
|
|
22
|
+
import { createHomeRoute } from "@riebeckite/honox/server";
|
|
23
|
+
import { SiteArticle } from "../components/article";
|
|
24
|
+
import { config } from "virtual:riebeckite/config";
|
|
25
|
+
import { content } from "virtual:riebeckite/content";
|
|
26
|
+
|
|
27
|
+
export default createHomeRoute({
|
|
28
|
+
content,
|
|
29
|
+
config,
|
|
30
|
+
render: () => <SiteArticle />,
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
The content catch-all route uses `createContentRoute` with the same content/config inputs:
|
|
35
|
+
|
|
36
|
+
```tsx
|
|
37
|
+
import { createContentRoute } from "@riebeckite/honox/server";
|
|
38
|
+
import { SiteArticle } from "../components/article";
|
|
39
|
+
import { config } from "virtual:riebeckite/config";
|
|
40
|
+
import { content } from "virtual:riebeckite/content";
|
|
41
|
+
|
|
42
|
+
export default createContentRoute({
|
|
43
|
+
content,
|
|
44
|
+
config,
|
|
45
|
+
render: () => <SiteArticle />,
|
|
46
|
+
});
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
A shared article component can compose framework UI:
|
|
50
|
+
|
|
51
|
+
```tsx
|
|
52
|
+
import { Article, ArticleBody, ArticleContent } from "@riebeckite/honox/ui";
|
|
53
|
+
|
|
54
|
+
export function SiteArticle() {
|
|
55
|
+
return (
|
|
56
|
+
<Article class="site-article">
|
|
57
|
+
<ArticleContent>
|
|
58
|
+
<ArticleBody />
|
|
59
|
+
</ArticleContent>
|
|
60
|
+
</Article>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Keep the actual project imports and route file names. Do not rename a route file merely to match an example.
|
|
66
|
+
|
|
67
|
+
## Preserve the route contract
|
|
68
|
+
|
|
69
|
+
Before changing a route or component, identify:
|
|
70
|
+
|
|
71
|
+
- The public URL, params, and query behaviour.
|
|
72
|
+
- The content type and frontmatter it receives.
|
|
73
|
+
- The loading, empty, not-found, and error states.
|
|
74
|
+
- Any redirect or canonical URL behaviour.
|
|
75
|
+
- Any client-side navigation or hydration requirement.
|
|
76
|
+
|
|
77
|
+
A UI change must not silently change a public URL or make a content page unreachable.
|
|
78
|
+
|
|
79
|
+
## Accessibility and presentation
|
|
80
|
+
|
|
81
|
+
- Use landmarks, headings, lists, buttons, and links for their semantics.
|
|
82
|
+
- Every control needs an accessible name and visible focus.
|
|
83
|
+
- Preserve keyboard order; do not trap focus outside a modal.
|
|
84
|
+
- Do not rely on colour alone to convey state.
|
|
85
|
+
- Support long titles, long words, and narrow viewports without clipping.
|
|
86
|
+
- Respect `prefers-reduced-motion`; avoid motion that is required to understand content.
|
|
87
|
+
- Use Theme tokens and `rb-*` structural hooks instead of hard-coded palette values.
|
|
88
|
+
- Keep decorative images out of the accessibility tree; give meaningful images useful alternative text.
|
|
89
|
+
|
|
90
|
+
## Tests
|
|
91
|
+
|
|
92
|
+
Match the project's existing test stack. Cover:
|
|
93
|
+
|
|
94
|
+
- The route's data and parameter handling.
|
|
95
|
+
- Empty, loading, and error states.
|
|
96
|
+
- Interactive controls and keyboard paths.
|
|
97
|
+
- A representative content fixture.
|
|
98
|
+
- A regression assertion for the public URL or rendered landmark.
|
|
99
|
+
|
|
100
|
+
If the project has no component test setup, state that and verify manually rather than adding a new framework for one component.
|
|
101
|
+
|
|
102
|
+
## Commands
|
|
103
|
+
|
|
104
|
+
```sh
|
|
105
|
+
npm run check
|
|
106
|
+
npm run build
|
|
107
|
+
npm run dev
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Use `npm run build` when routes, rendering, or assets changed. Inspect the built route, not only the source.
|
|
111
|
+
|
|
112
|
+
## Common failures
|
|
113
|
+
|
|
114
|
+
| Symptom | Likely cause |
|
|
115
|
+
| --- | --- |
|
|
116
|
+
| Page renders but navigation 404s | Route file or catch-all contract changed. |
|
|
117
|
+
| Content is missing | Wrong content object, route param, or frontmatter expectation. |
|
|
118
|
+
| Layout breaks on mobile | Fixed widths, unbreakable content, or overflow hidden. |
|
|
119
|
+
| Keyboard focus disappears | CSS removal of outline or incorrect focus management. |
|
|
120
|
+
| Build passes but browser fails | Client/server boundary or hydration issue. |
|
|
121
|
+
|
|
122
|
+
## Report
|
|
123
|
+
|
|
124
|
+
State the ownership decision, changed components/routes, public URL impact, accessibility checks, tests, and any remaining visual or behavioural risk.
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Configuration guide
|
|
2
|
+
|
|
3
|
+
Configuration is the source of truth for site identity, content locations, publishing, extensions, and presentation. Change it narrowly and verify the resolved result.
|
|
4
|
+
|
|
5
|
+
## Inspect first
|
|
6
|
+
|
|
7
|
+
Read:
|
|
8
|
+
|
|
9
|
+
- `riebeckite.config.ts` (or `.js`/`.mjs`).
|
|
10
|
+
- `package.json` scripts and dependencies.
|
|
11
|
+
- The configured content directory and ignore/exclude rules.
|
|
12
|
+
- Deployment files and environment variable names.
|
|
13
|
+
- Installed Plugins and the active Theme.
|
|
14
|
+
|
|
15
|
+
Useful commands:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
npm exec riebeckite inspect config
|
|
19
|
+
npm run check
|
|
20
|
+
npm run doctor
|
|
21
|
+
npm run build
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`inspect config` shows resolved values; it is more reliable than reading only the source when defaults or environment values are involved.
|
|
25
|
+
|
|
26
|
+
## Common configuration areas
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
import { defineConfig } from "@riebeckite/core";
|
|
30
|
+
|
|
31
|
+
export default defineConfig({
|
|
32
|
+
site: {
|
|
33
|
+
title: "My site",
|
|
34
|
+
description: "A short description",
|
|
35
|
+
baseUrl: "https://example.com",
|
|
36
|
+
locale: "en",
|
|
37
|
+
},
|
|
38
|
+
content: {
|
|
39
|
+
directory: "content",
|
|
40
|
+
exclude: [".obsidian/**", "templates/**"],
|
|
41
|
+
},
|
|
42
|
+
filters: {
|
|
43
|
+
publishStrategy: "explicit",
|
|
44
|
+
},
|
|
45
|
+
plugins: [],
|
|
46
|
+
});
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Keep the actual fields and extension factories used by the project. This example is illustrative, not a schema replacement.
|
|
50
|
+
|
|
51
|
+
- `site`: title, description, public origin, default locale, and site-wide metadata.
|
|
52
|
+
- `content`: directory, excludes, and content-format settings.
|
|
53
|
+
- `filters`: publishing and collection behaviour, including `publishStrategy`.
|
|
54
|
+
- `theme`: active Theme, layout, colour mode, settings, and site stylesheets.
|
|
55
|
+
- `plugins`: official or local extension factories.
|
|
56
|
+
- Deployment settings: provider-specific files, build output, and external content checkout.
|
|
57
|
+
|
|
58
|
+
## Change rules
|
|
59
|
+
|
|
60
|
+
1. Prefer the smallest existing option over a new one.
|
|
61
|
+
2. Preserve unknown fields; do not normalize the whole file.
|
|
62
|
+
3. Change `baseUrl` only when the public origin truly changes.
|
|
63
|
+
4. Treat `content.directory`, excludes, locale, and publish strategy as route-affecting.
|
|
64
|
+
5. Do not put credentials, tokens, or private URLs in committed configuration.
|
|
65
|
+
6. Keep script names consistent with the project's existing commands.
|
|
66
|
+
7. Do not add a dependency for a value that configuration or the standard library can express.
|
|
67
|
+
|
|
68
|
+
## Validation matrix
|
|
69
|
+
|
|
70
|
+
| Change | Validate with |
|
|
71
|
+
| --- | --- |
|
|
72
|
+
| Site title, description, metadata | `npm run check`, inspect built HTML. |
|
|
73
|
+
| `baseUrl` or base path | `npm run build`, inspect canonical, assets, and links. |
|
|
74
|
+
| Content directory or excludes | `inspect config`, `inspect content --list`, `npm run build`. |
|
|
75
|
+
| Publish strategy | `inspect content --list`, verify listings/feeds/private pages. |
|
|
76
|
+
| Locale | Build and inspect language routes and canonical/alternate URLs. |
|
|
77
|
+
| Plugin or Theme settings | `npm run check`, `npm run build`, inspect affected page. |
|
|
78
|
+
| Scripts | Run the script directly; do not assume it works because it parses. |
|
|
79
|
+
|
|
80
|
+
## Secrets
|
|
81
|
+
|
|
82
|
+
Use environment variables or the deployment provider's secret store. Never commit values. When reporting, name the variable, not its contents. Do not expose secrets in URLs, logs, or generated client code.
|
|
83
|
+
|
|
84
|
+
## Common failures
|
|
85
|
+
|
|
86
|
+
| Symptom | Likely cause |
|
|
87
|
+
| --- | --- |
|
|
88
|
+
| Content is not found | Wrong `content.directory`, exclude match, or working directory. |
|
|
89
|
+
| Assets 404 after deployment | Wrong `baseUrl`, base path, or output directory. |
|
|
90
|
+
| Pages unexpectedly private | Publish strategy or frontmatter visibility. |
|
|
91
|
+
| Config change has no effect | Cached build, wrong config file, or resolved value overridden elsewhere. |
|
|
92
|
+
| Check passes but build fails | Runtime-only path, asset, or environment issue. |
|
|
93
|
+
|
|
94
|
+
## Report
|
|
95
|
+
|
|
96
|
+
State the setting changed, why the smallest option was chosen, resolved values, commands run, and any route, publication, or deployment impact.
|