@behavioral-agentic-design-system/core 0.12.0 → 0.12.1
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/package.json +2 -1
- package/src/api/layers/file.ts +5 -0
- package/src/docs-trace-globs.json +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@behavioral-agentic-design-system/core",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "BADS core — tokens, shadcn/ui components, and the BADS template shell (app routes, customize tab, theme hooks). Forks consume this and re-export, keeping client repos to ~30 lines of glue.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Matthew Stephens <work@matthewstephens.com> (https://github.com/matthewlarn)",
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
"./fonts/*": "./src/fonts/*",
|
|
51
51
|
"./tokens.json": "./src/tokens.json",
|
|
52
52
|
"./tokens.default.json": "./src/tokens.default.json",
|
|
53
|
+
"./docs-trace-globs.json": "./src/docs-trace-globs.json",
|
|
53
54
|
"./lib/*": "./src/lib/*.ts",
|
|
54
55
|
"./hooks/*": "./src/hooks/*.ts",
|
|
55
56
|
"./data/*": "./src/data/*.ts",
|
package/src/api/layers/file.ts
CHANGED
|
@@ -11,6 +11,11 @@ const ROOT = process.cwd();
|
|
|
11
11
|
// re-checked against the same allowlist — never write a markdown file outside
|
|
12
12
|
// the same surface the Docs tab can show. Path traversal is blocked at the
|
|
13
13
|
// normalize step before any pattern match runs.
|
|
14
|
+
//
|
|
15
|
+
// KEEP IN SYNC WITH ../../docs-trace-globs.json — that file lists the same
|
|
16
|
+
// paths as next.config `outputFileTracingIncludes` globs so the deploy bundles
|
|
17
|
+
// every file this allowlist can serve. Add a path here → add its glob there,
|
|
18
|
+
// or it 404s on Vercel (the "Couldn't load README.md" bug).
|
|
14
19
|
const ALLOWED_ROOT_MD = new Set([
|
|
15
20
|
"BRIEF.md",
|
|
16
21
|
"README.md",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[
|
|
2
|
+
"./*.md",
|
|
3
|
+
"./layer-*/**/*.md",
|
|
4
|
+
"./layer-*/**/*.json",
|
|
5
|
+
"./docs/**/*.md",
|
|
6
|
+
"./prompts/**/*.md",
|
|
7
|
+
"./scripts/prompts/**/*.md",
|
|
8
|
+
"./.claude/skills/**/SKILL.md",
|
|
9
|
+
"./ledgers/**/*.md",
|
|
10
|
+
"./aggregator/**/*.md",
|
|
11
|
+
"./automation/**/*.md",
|
|
12
|
+
"./roi/**/*.md",
|
|
13
|
+
"./packages/core/src/tokens.json"
|
|
14
|
+
]
|