@warlock.js/grimoire 5.57.0 → 5.59.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/CHANGELOG.md +44 -0
- package/esm/apps/check-apps.mjs +11 -5
- package/esm/apps/check-apps.mjs.map +1 -1
- package/esm/book/build.d.mts.map +1 -1
- package/esm/book/build.mjs +2 -1
- package/esm/book/build.mjs.map +1 -1
- package/esm/book/render.mjs +10 -0
- package/esm/book/render.mjs.map +1 -1
- package/esm/bookmap/build.d.mts.map +1 -1
- package/esm/bookmap/build.mjs +7 -5
- package/esm/bookmap/build.mjs.map +1 -1
- package/esm/bookmap/steps.mjs +85 -39
- package/esm/bookmap/steps.mjs.map +1 -1
- package/esm/check/check-grimoire.d.mts.map +1 -1
- package/esm/check/check-grimoire.mjs +4 -1
- package/esm/check/check-grimoire.mjs.map +1 -1
- package/esm/check/rules/criteria.mjs +21 -2
- package/esm/check/rules/criteria.mjs.map +1 -1
- package/esm/check/rules/screenshots.mjs +57 -0
- package/esm/check/rules/screenshots.mjs.map +1 -0
- package/esm/codes/codes.d.mts +12 -0
- package/esm/codes/codes.d.mts.map +1 -1
- package/esm/codes/codes.mjs +6 -0
- package/esm/codes/codes.mjs.map +1 -1
- package/esm/contracts/adapter.d.mts +28 -1
- package/esm/contracts/adapter.d.mts.map +1 -1
- package/esm/contracts/book.d.mts +2 -0
- package/esm/contracts/book.d.mts.map +1 -1
- package/esm/contracts/book.mjs.map +1 -1
- package/esm/contracts/bookmap.d.mts +19 -1
- package/esm/contracts/bookmap.d.mts.map +1 -1
- package/esm/contracts/scry.d.mts +26 -6
- package/esm/contracts/scry.d.mts.map +1 -1
- package/esm/contracts/snapshot.d.mts +14 -1
- package/esm/contracts/snapshot.d.mts.map +1 -1
- package/esm/contracts/test-results.d.mts +34 -0
- package/esm/contracts/test-results.d.mts.map +1 -1
- package/esm/contracts/written.d.mts +44 -0
- package/esm/contracts/written.d.mts.map +1 -1
- package/esm/contracts/written.mjs.map +1 -1
- package/esm/devtools/data.mjs +116 -5
- package/esm/devtools/data.mjs.map +1 -1
- package/esm/devtools/feature-map.mjs +149 -0
- package/esm/devtools/feature-map.mjs.map +1 -0
- package/esm/devtools/index.d.mts +28 -2
- package/esm/devtools/index.d.mts.map +1 -1
- package/esm/devtools/index.mjs +111 -7
- package/esm/devtools/index.mjs.map +1 -1
- package/esm/devtools/product-map.d.mts +14 -0
- package/esm/devtools/product-map.d.mts.map +1 -0
- package/esm/devtools/product-map.mjs +460 -0
- package/esm/devtools/product-map.mjs.map +1 -0
- package/esm/devtools/site.d.mts +43 -1
- package/esm/devtools/site.d.mts.map +1 -1
- package/esm/devtools/site.mjs +190 -22
- package/esm/devtools/site.mjs.map +1 -1
- package/esm/devtools/snapshot-source.mjs +24 -7
- package/esm/devtools/snapshot-source.mjs.map +1 -1
- package/esm/graph/index.d.mts +10 -1
- package/esm/graph/index.d.mts.map +1 -1
- package/esm/graph/index.mjs +3 -2
- package/esm/graph/index.mjs.map +1 -1
- package/esm/index.d.mts +5 -5
- package/esm/ownership/index.d.mts.map +1 -1
- package/esm/ownership/index.mjs +60 -1
- package/esm/ownership/index.mjs.map +1 -1
- package/esm/paths/index.d.mts +2 -0
- package/esm/paths/index.d.mts.map +1 -1
- package/esm/paths/index.mjs +3 -1
- package/esm/paths/index.mjs.map +1 -1
- package/esm/scry/compact.mjs +170 -0
- package/esm/scry/compact.mjs.map +1 -0
- package/esm/scry/format.d.mts.map +1 -1
- package/esm/scry/format.mjs +19 -2
- package/esm/scry/format.mjs.map +1 -1
- package/esm/scry/query.d.mts.map +1 -1
- package/esm/scry/query.mjs +159 -24
- package/esm/scry/query.mjs.map +1 -1
- package/esm/test-results/index.d.mts +7 -2
- package/esm/test-results/index.d.mts.map +1 -1
- package/esm/test-results/index.mjs +79 -12
- package/esm/test-results/index.mjs.map +1 -1
- package/esm/vitest/index.d.mts +6 -0
- package/esm/vitest/index.d.mts.map +1 -1
- package/esm/vitest/index.mjs +22 -6
- package/esm/vitest/index.mjs.map +1 -1
- package/esm/warlock/actions.mjs +15 -7
- package/esm/warlock/actions.mjs.map +1 -1
- package/esm/warlock/adapter.d.mts.map +1 -1
- package/esm/warlock/adapter.mjs +42 -4
- package/esm/warlock/adapter.mjs.map +1 -1
- package/esm/warlock/commands.mjs +7 -2
- package/esm/warlock/commands.mjs.map +1 -1
- package/esm/warlock/logo.mjs +12 -0
- package/esm/warlock/logo.mjs.map +1 -0
- package/esm/warlock/mcp-tools.mjs +51 -15
- package/esm/warlock/mcp-tools.mjs.map +1 -1
- package/esm/workspace/cache.mjs +194 -0
- package/esm/workspace/cache.mjs.map +1 -0
- package/esm/workspace/index.d.mts.map +1 -1
- package/esm/workspace/index.mjs +7 -3
- package/esm/workspace/index.mjs.map +1 -1
- package/esm/written/apps.mjs +4 -2
- package/esm/written/apps.mjs.map +1 -1
- package/esm/written/features.mjs +119 -6
- package/esm/written/features.mjs.map +1 -1
- package/esm/written/markdown.mjs +66 -1
- package/esm/written/markdown.mjs.map +1 -1
- package/esm/written/parse-grimoire.d.mts.map +1 -1
- package/esm/written/parse-grimoire.mjs +1 -1
- package/esm/written/parse-grimoire.mjs.map +1 -1
- package/llms-full.txt +108 -12
- package/package.json +3 -3
- package/skills/backfill-a-grimoire/SKILL.md +5 -0
- package/skills/describe-an-app/SKILL.md +12 -0
- package/skills/record-a-change/SKILL.md +10 -0
- package/skills/use-the-grimoire/SKILL.md +44 -10
- package/skills/write-a-feature/SKILL.md +37 -2
- package/ui/grimoire-static.js +61 -6
- package/ui/grimoire-view.js +2133 -316
- package/ui/grimoire.css +1030 -24
- package/ui/product-map.css +785 -0
- package/ui/product-map.js +1265 -0
package/esm/devtools/index.mjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { apps, check, feature, features, file,
|
|
1
|
+
import { apps, check, checkGroups, checkPage, feature, features, file, flowAnswer, graphOfFeature, graphOfFile, graphOfModules, graphOfPage, impact, page, release, releases, route, search, stepFiles, summary, tasks } from "./data.mjs";
|
|
2
|
+
import { productFeature, productFlow, productMap } from "./product-map.mjs";
|
|
2
3
|
import { createSnapshotSource } from "./snapshot-source.mjs";
|
|
3
|
-
import { exportGrimoireSite } from "./site.mjs";
|
|
4
|
+
import { buildProductSiteData, exportGrimoireSite, exportGrimoireSiteDetailed } from "./site.mjs";
|
|
5
|
+
import path from "node:path";
|
|
4
6
|
|
|
5
7
|
//#region ../../packages/grimoire/src/devtools/index.ts
|
|
6
8
|
/** The first value of a query parameter. */
|
|
@@ -14,16 +16,91 @@ async function grimoireDevtoolsPanel(context) {
|
|
|
14
16
|
write: context.mode !== "production",
|
|
15
17
|
mode: context.mode ?? "development",
|
|
16
18
|
...context.adapter === void 0 ? {} : { adapter: context.adapter },
|
|
17
|
-
...context.ttlMs === void 0 ? {} : { ttlMs: context.ttlMs }
|
|
19
|
+
...context.ttlMs === void 0 ? {} : { ttlMs: context.ttlMs },
|
|
20
|
+
...context.testResultsFile === void 0 ? {} : { testResultsFile: context.testResultsFile }
|
|
18
21
|
});
|
|
19
22
|
if (context.mode === "production") source.warm();
|
|
20
23
|
const answer = (read) => async (request) => read(await source.get(), request);
|
|
24
|
+
/** The product map answers: the shared flag from the request, the errors fetched per request. */
|
|
25
|
+
const product = (read) => async (request) => {
|
|
26
|
+
const snapshot = await source.get();
|
|
27
|
+
let errors = null;
|
|
28
|
+
try {
|
|
29
|
+
errors = await context.errors?.() ?? null;
|
|
30
|
+
} catch {
|
|
31
|
+
errors = null;
|
|
32
|
+
}
|
|
33
|
+
return read(snapshot, request, {
|
|
34
|
+
shared: request.shared === true,
|
|
35
|
+
errors
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
const number = (value) => {
|
|
39
|
+
if (value === void 0 || value === "") return void 0;
|
|
40
|
+
const parsed = Number(value);
|
|
41
|
+
return Number.isFinite(parsed) ? parsed : void 0;
|
|
42
|
+
};
|
|
43
|
+
const checkFilter = (query) => {
|
|
44
|
+
const filter = {};
|
|
45
|
+
const code = one(query, "code");
|
|
46
|
+
const feature = one(query, "feature");
|
|
47
|
+
const flow = one(query, "flow");
|
|
48
|
+
const severity = one(query, "severity");
|
|
49
|
+
const state = one(query, "state");
|
|
50
|
+
const offset = number(one(query, "offset"));
|
|
51
|
+
const limit = number(one(query, "limit"));
|
|
52
|
+
let any = false;
|
|
53
|
+
if (code) {
|
|
54
|
+
filter.code = code;
|
|
55
|
+
any = true;
|
|
56
|
+
}
|
|
57
|
+
if (feature) {
|
|
58
|
+
filter.feature = feature;
|
|
59
|
+
any = true;
|
|
60
|
+
}
|
|
61
|
+
if (flow) {
|
|
62
|
+
filter.flow = flow;
|
|
63
|
+
any = true;
|
|
64
|
+
}
|
|
65
|
+
if (severity === "error" || severity === "warning") {
|
|
66
|
+
filter.severity = severity;
|
|
67
|
+
any = true;
|
|
68
|
+
}
|
|
69
|
+
if (state === "expected" || state === "unexpected") {
|
|
70
|
+
filter.state = state;
|
|
71
|
+
any = true;
|
|
72
|
+
}
|
|
73
|
+
if (offset !== void 0) {
|
|
74
|
+
filter.offset = offset;
|
|
75
|
+
any = true;
|
|
76
|
+
}
|
|
77
|
+
if (limit !== void 0) {
|
|
78
|
+
filter.limit = limit;
|
|
79
|
+
any = true;
|
|
80
|
+
}
|
|
81
|
+
return any ? filter : null;
|
|
82
|
+
};
|
|
21
83
|
return {
|
|
22
84
|
id: "grimoire",
|
|
23
85
|
title: "Grimoire",
|
|
24
86
|
production: true,
|
|
25
87
|
view: new URL("../../ui/grimoire-view.js", import.meta.url),
|
|
26
|
-
assets: {
|
|
88
|
+
assets: {
|
|
89
|
+
"grimoire.css": new URL("../../ui/grimoire.css", import.meta.url),
|
|
90
|
+
"product-map.js": new URL("../../ui/product-map.js", import.meta.url),
|
|
91
|
+
"product-map.css": new URL("../../ui/product-map.css", import.meta.url)
|
|
92
|
+
},
|
|
93
|
+
files: { dir: path.join(context.root, "grimoire", "screenshots") },
|
|
94
|
+
share: {
|
|
95
|
+
view: new URL("../../ui/product-map.js", import.meta.url),
|
|
96
|
+
routes: [
|
|
97
|
+
"/product",
|
|
98
|
+
"/product/features/:feature",
|
|
99
|
+
"/product/flows/:feature/:flow"
|
|
100
|
+
],
|
|
101
|
+
assets: ["product-map.css"],
|
|
102
|
+
files: true
|
|
103
|
+
},
|
|
27
104
|
routes: [
|
|
28
105
|
{
|
|
29
106
|
path: "/summary",
|
|
@@ -58,7 +135,27 @@ async function grimoireDevtoolsPanel(context) {
|
|
|
58
135
|
},
|
|
59
136
|
{
|
|
60
137
|
path: "/flows/:feature/:flow",
|
|
61
|
-
handler: answer((snapshot, { params }) =>
|
|
138
|
+
handler: answer((snapshot, { params }) => flowAnswer(snapshot, params.feature, params.flow))
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
path: "/flows/:feature/:flow/steps/:index/files",
|
|
142
|
+
handler: answer((snapshot, { params, query }) => stepFiles(snapshot, params.feature, params.flow, params.index, {
|
|
143
|
+
set: one(query, "set"),
|
|
144
|
+
offset: one(query, "offset"),
|
|
145
|
+
limit: one(query, "limit")
|
|
146
|
+
}))
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
path: "/product",
|
|
150
|
+
handler: product((snapshot, _request, options) => productMap(snapshot, options))
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
path: "/product/features/:feature",
|
|
154
|
+
handler: product((snapshot, { params }, options) => productFeature(snapshot, params.feature, options))
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
path: "/product/flows/:feature/:flow",
|
|
158
|
+
handler: product((snapshot, { params }, options) => productFlow(snapshot, params.feature, params.flow, options))
|
|
62
159
|
},
|
|
63
160
|
{
|
|
64
161
|
path: "/apps",
|
|
@@ -82,7 +179,14 @@ async function grimoireDevtoolsPanel(context) {
|
|
|
82
179
|
},
|
|
83
180
|
{
|
|
84
181
|
path: "/check",
|
|
85
|
-
handler: answer((snapshot) =>
|
|
182
|
+
handler: answer((snapshot, { query }) => {
|
|
183
|
+
const filter = checkFilter(query);
|
|
184
|
+
return filter === null ? check(snapshot) : checkPage(snapshot, filter);
|
|
185
|
+
})
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
path: "/check/groups",
|
|
189
|
+
handler: answer((snapshot) => checkGroups(snapshot))
|
|
86
190
|
},
|
|
87
191
|
{
|
|
88
192
|
path: "/graph/file",
|
|
@@ -105,5 +209,5 @@ async function grimoireDevtoolsPanel(context) {
|
|
|
105
209
|
}
|
|
106
210
|
|
|
107
211
|
//#endregion
|
|
108
|
-
export { grimoireDevtoolsPanel as default, grimoireDevtoolsPanel, exportGrimoireSite };
|
|
212
|
+
export { buildProductSiteData, grimoireDevtoolsPanel as default, grimoireDevtoolsPanel, exportGrimoireSite, exportGrimoireSiteDetailed };
|
|
109
213
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["data.summary","data.search","data.file","data.impact","data.route","data.features","data.feature","data.flow","data.apps","data.page","data.tasks","data.releases","data.release","data.check","data.graphOfFile","data.graphOfFeature","data.graphOfPage","data.graphOfModules"],"sources":["../../../../../../../../packages/grimoire/src/devtools/index.ts"],"sourcesContent":["/**\n * `@warlock.js/grimoire/devtools`: the Grimoire tab of the devtools\n * dashboard. An app enables it in `src/config/devtools.ts`:\n *\n * ```ts\n * panels: [\"@warlock.js/grimoire/devtools\"]\n * ```\n *\n * The default export is a panel factory (devtools' `DevtoolsPanelExport`),\n * typed structurally here so this entry needs no `@warlock.js/devtools`\n * import. The browser view lives in the package's `ui/` folder. Data routes\n * open the snapshot with `routes: \"cached\"` (never booting the app) and keep\n * the generated book up to date; agent-written files are only read.\n */\nimport type { BookAdapter } from \"../contracts/adapter\";\nimport type { GrimoireSnapshot } from \"../contracts/snapshot\";\nimport * as data from \"./data\";\nimport { createSnapshotSource } from \"./snapshot-source\";\n\nexport { exportGrimoireSite } from \"./site\";\nexport type { ExportGrimoireSiteOptions } from \"./site\";\n\n/** The parts of devtools' `DevtoolsPanelRequest` the routes read. */\nexport type GrimoirePanelRequest = {\n params: Readonly<Record<string, string>>;\n query: Readonly<Record<string, string | readonly string[]>>;\n body: unknown;\n};\n\n/** Devtools' `DevtoolsPanel`, structurally. */\nexport type GrimoireDevtoolsPanel = {\n id: string;\n title: string;\n view: string | URL;\n routes?: readonly {\n method?: \"GET\" | \"POST\";\n path: string;\n handler: (request: GrimoirePanelRequest) => unknown;\n }[];\n assets?: Readonly<Record<string, string | URL>>;\n /** Safe for the production monitor: the tab only reads (see `GrimoirePanelContext.mode`). */\n production?: boolean;\n};\n\n/** What the panel factory takes: devtools passes `{ root, mode }`; the rest is for tests and custom setups. */\nexport type GrimoirePanelContext = {\n /** The app root. */\n root: string;\n /**\n * Where the dashboard runs. In `\"production\"` the tab writes no files:\n * it reads the book as it is on disk. Default: development.\n */\n mode?: \"development\" | \"production\";\n /** The adapter to open the book with. Default: the Warlock adapter, loaded on first request. */\n adapter?: BookAdapter | (() => Promise<BookAdapter>);\n /**\n * How long an opened snapshot is reused when the book did not change (ms).\n * Default in development: 2000, longer after a slow open; the old snapshot is served while a\n * background open refreshes it. Default in production: until the book changes.\n */\n ttlMs?: number;\n};\n\n/** The first value of a query parameter. */\nfunction one(query: GrimoirePanelRequest[\"query\"], name: string): string | undefined {\n const value = query[name];\n\n return Array.isArray(value) ? value[0] : (value as string | undefined);\n}\n\n/** Build the panel for the app at `root`. */\nexport async function grimoireDevtoolsPanel(\n context: GrimoirePanelContext,\n): Promise<GrimoireDevtoolsPanel> {\n // In development the tab keeps Warlock's generated files (book, book maps, indexes) up to date, so\n // the next open is incremental. In production it writes nothing. Agent-written files are only read,\n // and cached routes never boot the app.\n const source = createSnapshotSource(context.root, {\n write: context.mode !== \"production\",\n mode: context.mode ?? \"development\",\n ...(context.adapter === undefined ? {} : { adapter: context.adapter }),\n ...(context.ttlMs === undefined ? {} : { ttlMs: context.ttlMs }),\n });\n\n // In production, start opening the book now so the first tab view is fast.\n if (context.mode === \"production\") source.warm();\n\n const answer =\n <Answer>(read: (snapshot: GrimoireSnapshot, request: GrimoirePanelRequest) => Answer) =>\n async (request: GrimoirePanelRequest): Promise<Answer> =>\n read(await source.get(), request);\n\n return {\n id: \"grimoire\",\n title: \"Grimoire\",\n production: true,\n view: new URL(\"../../ui/grimoire-view.js\", import.meta.url),\n assets: { \"grimoire.css\": new URL(\"../../ui/grimoire.css\", import.meta.url) },\n routes: [\n { path: \"/summary\", handler: answer((snapshot) => data.summary(snapshot)) },\n {\n path: \"/search\",\n handler: answer((snapshot, { query }) => {\n const limit = Number(one(query, \"limit\"));\n\n return data.search(\n snapshot,\n one(query, \"q\") ?? \"\",\n Number.isFinite(limit) && limit > 0 ? limit : undefined,\n );\n }),\n },\n {\n path: \"/file\",\n handler: answer((snapshot, { query }) => data.file(snapshot, one(query, \"path\"))),\n },\n {\n path: \"/impact\",\n handler: answer((snapshot, { query }) => data.impact(snapshot, one(query, \"path\"))),\n },\n {\n path: \"/route\",\n handler: answer((snapshot, { query }) =>\n data.route(snapshot, one(query, \"method\"), one(query, \"path\")),\n ),\n },\n { path: \"/features\", handler: answer((snapshot) => data.features(snapshot)) },\n {\n path: \"/features/:feature\",\n handler: answer((snapshot, { params }) => data.feature(snapshot, params.feature)),\n },\n {\n path: \"/flows/:feature/:flow\",\n handler: answer((snapshot, { params }) => data.flow(snapshot, params.feature, params.flow)),\n },\n { path: \"/apps\", handler: answer((snapshot) => data.apps(snapshot)) },\n {\n path: \"/apps/:app/pages/:page\",\n handler: answer((snapshot, { params }) => data.page(snapshot, params.app, params.page)),\n },\n { path: \"/tasks\", handler: answer((snapshot) => data.tasks(snapshot)) },\n { path: \"/releases\", handler: answer((snapshot) => data.releases(snapshot)) },\n {\n path: \"/releases/:release\",\n handler: answer((snapshot, { params }) => data.release(snapshot, params.release)),\n },\n { path: \"/check\", handler: answer((snapshot) => data.check(snapshot)) },\n {\n path: \"/graph/file\",\n handler: answer((snapshot, { query }) => data.graphOfFile(snapshot, one(query, \"path\"))),\n },\n {\n path: \"/graph/feature/:feature\",\n handler: answer((snapshot, { params }) => data.graphOfFeature(snapshot, params.feature)),\n },\n {\n path: \"/graph/page\",\n handler: answer((snapshot, { query }) =>\n data.graphOfPage(snapshot, one(query, \"app\"), one(query, \"page\")),\n ),\n },\n { path: \"/graph/modules\", handler: answer((snapshot) => data.graphOfModules(snapshot)) },\n ],\n };\n}\n\nexport default grimoireDevtoolsPanel;\n"],"mappings":";;;;;;AAgEA,SAAS,IAAI,OAAsC,MAAkC;CACnF,MAAM,QAAQ,MAAM;CAEpB,OAAO,MAAM,QAAQ,KAAK,IAAI,MAAM,KAAM;AAC5C;;AAGA,eAAsB,sBACpB,SACgC;CAIhC,MAAM,SAAS,qBAAqB,QAAQ,MAAM;EAChD,OAAO,QAAQ,SAAS;EACxB,MAAM,QAAQ,QAAQ;EACtB,GAAI,QAAQ,YAAY,SAAY,CAAC,IAAI,EAAE,SAAS,QAAQ,QAAQ;EACpE,GAAI,QAAQ,UAAU,SAAY,CAAC,IAAI,EAAE,OAAO,QAAQ,MAAM;CAChE,CAAC;CAGD,IAAI,QAAQ,SAAS,cAAc,OAAO,KAAK;CAE/C,MAAM,UACK,SACT,OAAO,YACL,KAAK,MAAM,OAAO,IAAI,GAAG,OAAO;CAEpC,OAAO;EACL,IAAI;EACJ,OAAO;EACP,YAAY;EACZ,MAAM,IAAI,IAAI,6BAA6B,YAAY,GAAG;EAC1D,QAAQ,EAAE,gBAAgB,IAAI,IAAI,yBAAyB,YAAY,GAAG,EAAE;EAC5E,QAAQ;GACN;IAAE,MAAM;IAAY,SAAS,QAAQ,aAAaA,QAAa,QAAQ,CAAC;GAAE;GAC1E;IACE,MAAM;IACN,SAAS,QAAQ,UAAU,EAAE,YAAY;KACvC,MAAM,QAAQ,OAAO,IAAI,OAAO,OAAO,CAAC;KAExC,OAAOC,OACL,UACA,IAAI,OAAO,GAAG,KAAK,IACnB,OAAO,SAAS,KAAK,KAAK,QAAQ,IAAI,QAAQ,MACh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aC,eAAoB,UAAU,OAAO,OAAO,CAAC;GACzF;GACA;IACE,MAAM;IACN,SAAS,QAAQ,UAAU,EAAE,YAC3BC,YAAiB,UAAU,IAAI,OAAO,KAAK,GAAG,IAAI,OAAO,MAAM,CAAC,CAClE;GACF;GACA;IAAE,MAAM;IAAkB,SAAS,QAAQ,aAAaC,eAAoB,QAAQ,CAAC;GAAE;EACzF;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["data.summary","data.search","data.file","data.impact","data.route","data.features","data.feature","data.flowAnswer","data.stepFiles","data.apps","data.page","data.tasks","data.releases","data.release","data.check","data.checkPage","data.checkGroups","data.graphOfFile","data.graphOfFeature","data.graphOfPage","data.graphOfModules"],"sources":["../../../../../../../../packages/grimoire/src/devtools/index.ts"],"sourcesContent":["/**\n * `@warlock.js/grimoire/devtools`: the Grimoire tab of the devtools\n * dashboard. An app enables it in `src/config/devtools.ts`:\n *\n * ```ts\n * panels: [\"@warlock.js/grimoire/devtools\"]\n * ```\n *\n * The default export is a panel factory (devtools' `DevtoolsPanelExport`),\n * typed structurally here so this entry needs no `@warlock.js/devtools`\n * import. The browser view lives in the package's `ui/` folder. Data routes\n * open the snapshot with `routes: \"cached\"` (never booting the app) and keep\n * the generated book up to date; agent-written files are only read.\n */\nimport type { BookAdapter } from \"../contracts/adapter\";\nimport type { GrimoireSnapshot } from \"../contracts/snapshot\";\nimport path from \"node:path\";\nimport type { GrimoireCheckFilter } from \"./answers\";\nimport * as data from \"./data\";\nimport { productFeature, productFlow, productMap, type ProductErrorSummary } from \"./product-map\";\nimport { createSnapshotSource } from \"./snapshot-source\";\n\nexport { buildProductSiteData, exportGrimoireSite, exportGrimoireSiteDetailed } from \"./site\";\nexport type { ExportGrimoireSiteOptions, GrimoireSiteExport } from \"./site\";\n\n/** The parts of devtools' `DevtoolsPanelRequest` the routes read. */\nexport type GrimoirePanelRequest = {\n params: Readonly<Record<string, string>>;\n query: Readonly<Record<string, string | readonly string[]>>;\n body: unknown;\n /** `true` when the request came through a read-only share link. */\n shared?: boolean;\n};\n\n/** Devtools' `DevtoolsPanelShare`, structurally: what a share link may show. */\nexport type GrimoireDevtoolsPanelShare = {\n view: string | URL;\n routes: readonly string[];\n assets?: readonly string[];\n files?: boolean;\n};\n\n/** Devtools' `DevtoolsPanel`, structurally. */\nexport type GrimoireDevtoolsPanel = {\n id: string;\n title: string;\n view: string | URL;\n routes?: readonly {\n method?: \"GET\" | \"POST\";\n path: string;\n handler: (request: GrimoirePanelRequest) => unknown;\n }[];\n assets?: Readonly<Record<string, string | URL>>;\n /** A folder of images served next to the panel. */\n files?: { dir: string; extensions?: readonly string[] };\n /** What a read-only share link may show. */\n share?: GrimoireDevtoolsPanelShare;\n /** Safe for the production monitor: the tab only reads (see `GrimoirePanelContext.mode`). */\n production?: boolean;\n};\n\n/** What the panel factory takes: devtools passes `{ root, mode }`; the rest is for tests and custom setups. */\nexport type GrimoirePanelContext = {\n /** The app root. */\n root: string;\n /**\n * Where the dashboard runs. In `\"production\"` the tab writes no files:\n * it reads the book as it is on disk. Default: development.\n */\n mode?: \"development\" | \"production\";\n /** The adapter to open the book with. Default: the Warlock adapter, loaded on first request. */\n adapter?: BookAdapter | (() => Promise<BookAdapter>);\n /**\n * How long an opened snapshot is reused when the book did not change (ms).\n * Default in development: 2000, longer after a slow open; the old snapshot is served while a\n * background open refreshes it. Default in production: until the book changes.\n */\n ttlMs?: number;\n /**\n * Where the test results are read from (project-relative or absolute).\n * Default `grimoire/book/test-results.json`. Set it when the deploy ships\n * the results from CI; the Vitest reporter writes there with\n * `grimoireReporter({ file })`.\n */\n testResultsFile?: string;\n /** Captured error groups of the monitor (counts only), for the product map's health. Devtools passes it. */\n errors?: () => Promise<readonly ProductErrorSummary[]>;\n};\n\n/** The first value of a query parameter. */\nfunction one(query: GrimoirePanelRequest[\"query\"], name: string): string | undefined {\n const value = query[name];\n\n return Array.isArray(value) ? value[0] : (value as string | undefined);\n}\n\n/** Build the panel for the app at `root`. */\nexport async function grimoireDevtoolsPanel(\n context: GrimoirePanelContext,\n): Promise<GrimoireDevtoolsPanel> {\n // In development the tab keeps Warlock's generated files (book, book maps, indexes) up to date, so\n // the next open is incremental. In production it writes nothing. Agent-written files are only read,\n // and cached routes never boot the app.\n const source = createSnapshotSource(context.root, {\n write: context.mode !== \"production\",\n mode: context.mode ?? \"development\",\n // The panel runs inside the app's own process. Collecting route facts there boots every connector and\n // re-imports the route and event modules, which would register them twice in the live app. So the tab\n // reads the cached facts and says \"missing\" or \"stale\" until `warlock grimoire build` runs elsewhere.\n ...(context.adapter === undefined ? {} : { adapter: context.adapter }),\n ...(context.ttlMs === undefined ? {} : { ttlMs: context.ttlMs }),\n ...(context.testResultsFile === undefined ? {} : { testResultsFile: context.testResultsFile }),\n });\n\n // In production, start opening the book now so the first tab view is fast.\n if (context.mode === \"production\") source.warm();\n\n const answer =\n <Answer>(read: (snapshot: GrimoireSnapshot, request: GrimoirePanelRequest) => Answer) =>\n async (request: GrimoirePanelRequest): Promise<Answer> =>\n read(await source.get(), request);\n\n /** The product map answers: the shared flag from the request, the errors fetched per request. */\n const product =\n <Answer>(\n read: (\n snapshot: GrimoireSnapshot,\n request: GrimoirePanelRequest,\n options: { shared: boolean; errors: readonly ProductErrorSummary[] | null },\n ) => Answer,\n ) =>\n async (request: GrimoirePanelRequest): Promise<Answer> => {\n const snapshot = await source.get();\n let errors: readonly ProductErrorSummary[] | null = null;\n\n try {\n errors = (await context.errors?.()) ?? null;\n } catch {\n errors = null;\n }\n\n return read(snapshot, request, { shared: request.shared === true, errors });\n };\n\n const number = (value: string | undefined): number | undefined => {\n if (value === undefined || value === \"\") return undefined;\n\n const parsed = Number(value);\n\n return Number.isFinite(parsed) ? parsed : undefined;\n };\n\n const checkFilter = (query: GrimoirePanelRequest[\"query\"]): GrimoireCheckFilter | null => {\n const filter: GrimoireCheckFilter = {};\n const code = one(query, \"code\");\n const feature = one(query, \"feature\");\n const flow = one(query, \"flow\");\n const severity = one(query, \"severity\");\n const state = one(query, \"state\");\n const offset = number(one(query, \"offset\"));\n const limit = number(one(query, \"limit\"));\n let any = false;\n\n if (code) {\n filter.code = code;\n any = true;\n }\n if (feature) {\n filter.feature = feature;\n any = true;\n }\n if (flow) {\n filter.flow = flow;\n any = true;\n }\n if (severity === \"error\" || severity === \"warning\") {\n filter.severity = severity;\n any = true;\n }\n if (state === \"expected\" || state === \"unexpected\") {\n filter.state = state;\n any = true;\n }\n if (offset !== undefined) {\n filter.offset = offset;\n any = true;\n }\n if (limit !== undefined) {\n filter.limit = limit;\n any = true;\n }\n\n return any ? filter : null;\n };\n\n return {\n id: \"grimoire\",\n title: \"Grimoire\",\n production: true,\n view: new URL(\"../../ui/grimoire-view.js\", import.meta.url),\n assets: {\n \"grimoire.css\": new URL(\"../../ui/grimoire.css\", import.meta.url),\n \"product-map.js\": new URL(\"../../ui/product-map.js\", import.meta.url),\n \"product-map.css\": new URL(\"../../ui/product-map.css\", import.meta.url),\n },\n files: { dir: path.join(context.root, \"grimoire\", \"screenshots\") },\n share: {\n view: new URL(\"../../ui/product-map.js\", import.meta.url),\n routes: [\"/product\", \"/product/features/:feature\", \"/product/flows/:feature/:flow\"],\n assets: [\"product-map.css\"],\n files: true,\n },\n routes: [\n { path: \"/summary\", handler: answer((snapshot) => data.summary(snapshot)) },\n {\n path: \"/search\",\n handler: answer((snapshot, { query }) => {\n const limit = Number(one(query, \"limit\"));\n\n return data.search(\n snapshot,\n one(query, \"q\") ?? \"\",\n Number.isFinite(limit) && limit > 0 ? limit : undefined,\n );\n }),\n },\n {\n path: \"/file\",\n handler: answer((snapshot, { query }) => data.file(snapshot, one(query, \"path\"))),\n },\n {\n path: \"/impact\",\n handler: answer((snapshot, { query }) => data.impact(snapshot, one(query, \"path\"))),\n },\n {\n path: \"/route\",\n handler: answer((snapshot, { query }) =>\n data.route(snapshot, one(query, \"method\"), one(query, \"path\")),\n ),\n },\n { path: \"/features\", handler: answer((snapshot) => data.features(snapshot)) },\n {\n path: \"/features/:feature\",\n handler: answer((snapshot, { params }) => data.feature(snapshot, params.feature)),\n },\n {\n path: \"/flows/:feature/:flow\",\n handler: answer((snapshot, { params }) =>\n data.flowAnswer(snapshot, params.feature, params.flow),\n ),\n },\n {\n path: \"/flows/:feature/:flow/steps/:index/files\",\n handler: answer((snapshot, { params, query }) =>\n data.stepFiles(snapshot, params.feature, params.flow, params.index, {\n set: one(query, \"set\"),\n offset: one(query, \"offset\"),\n limit: one(query, \"limit\"),\n }),\n ),\n },\n {\n path: \"/product\",\n handler: product((snapshot, _request, options) => productMap(snapshot, options)),\n },\n {\n path: \"/product/features/:feature\",\n handler: product((snapshot, { params }, options) =>\n productFeature(snapshot, params.feature, options),\n ),\n },\n {\n path: \"/product/flows/:feature/:flow\",\n handler: product((snapshot, { params }, options) =>\n productFlow(snapshot, params.feature, params.flow, options),\n ),\n },\n { path: \"/apps\", handler: answer((snapshot) => data.apps(snapshot)) },\n {\n path: \"/apps/:app/pages/:page\",\n handler: answer((snapshot, { params }) => data.page(snapshot, params.app, params.page)),\n },\n { path: \"/tasks\", handler: answer((snapshot) => data.tasks(snapshot)) },\n { path: \"/releases\", handler: answer((snapshot) => data.releases(snapshot)) },\n {\n path: \"/releases/:release\",\n handler: answer((snapshot, { params }) => data.release(snapshot, params.release)),\n },\n {\n path: \"/check\",\n handler: answer((snapshot, { query }) => {\n const filter = checkFilter(query);\n\n return filter === null ? data.check(snapshot) : data.checkPage(snapshot, filter);\n }),\n },\n { path: \"/check/groups\", handler: answer((snapshot) => data.checkGroups(snapshot)) },\n {\n path: \"/graph/file\",\n handler: answer((snapshot, { query }) => data.graphOfFile(snapshot, one(query, \"path\"))),\n },\n {\n path: \"/graph/feature/:feature\",\n handler: answer((snapshot, { params }) => data.graphOfFeature(snapshot, params.feature)),\n },\n {\n path: \"/graph/page\",\n handler: answer((snapshot, { query }) =>\n data.graphOfPage(snapshot, one(query, \"app\"), one(query, \"page\")),\n ),\n },\n { path: \"/graph/modules\", handler: answer((snapshot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M,OAAO,CAC5D;GACF;GACA;IAAE,MAAM;IAAS,SAAS,QAAQ,aAAaC,KAAU,QAAQ,CAAC;GAAE;GACpE;IACE,MAAM;IACN,SAAS,QAAQ,UAAU,EAAE,aAAaC,KAAU,UAAU,OAAO,KAAK,OAAO,IAAI,CAAC;GACxF;GACA;IAAE,MAAM;IAAU,SAAS,QAAQ,aAAaC,MAAW,QAAQ,CAAC;GAAE;GACtE;IAAE,MAAM;IAAa,SAAS,QAAQ,aAAaC,SAAc,QAAQ,CAAC;GAAE;GAC5E;IACE,MAAM;IACN,SAAS,QAAQ,UAAU,EAAE,aAAaC,QAAa,UAAU,OAAO,OAAO,CAAC;GAClF;GACA;IACE,MAAM;IACN,SAAS,QAAQ,UAAU,EAAE,YAAY;KACvC,MAAM,SAAS,YAAY,KAAK;KAEhC,OAAO,WAAW,OAAOC,MAAW,QAAQ,IAAIC,UAAe,UAAU,MAAM;IACjF,CAAC;GACH;GACA;IAAE,MAAM;IAAiB,SAAS,QAAQ,aAAaC,YAAiB,QAAQ,CAAC;GAAE;GACnF;IACE,MAAM;IACN,SAAS,QAAQ,UAAU,EAAE,YAAYC,YAAiB,UAAU,IAAI,OAAO,MAAM,CAAC,CAAC;GACzF;GACA;IACE,MAAM;IACN,SAAS,QAAQ,UAAU,EAAE,aAAaC,eAAoB,UAAU,OAAO,OAAO,CAAC;GACzF;GACA;IACE,MAAM;IACN,SAAS,QAAQ,UAAU,EAAE,YAC3BC,YAAiB,UAAU,IAAI,OAAO,KAAK,GAAG,IAAI,OAAO,MAAM,CAAC,CAClE;GACF;GACA;IAAE,MAAM;IAAkB,SAAS,QAAQ,aAAaC,eAAoB,QAAQ,CAAC;GAAE;EACzF;CACF;AACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region ../../packages/grimoire/src/devtools/product-map.d.ts
|
|
2
|
+
/** One captured error group as devtools hands it to a panel: counts only. */
|
|
3
|
+
export type ProductErrorSummary = {
|
|
4
|
+
/** The route pattern (`/products/:id`), or `null` outside a request. */
|
|
5
|
+
route: string | null;
|
|
6
|
+
status: number | null;
|
|
7
|
+
name: string | null;
|
|
8
|
+
source: "request" | "log";
|
|
9
|
+
count: number;
|
|
10
|
+
firstSeen: number;
|
|
11
|
+
lastSeen: number;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
//# sourceMappingURL=product-map.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-map.d.mts","names":[],"sources":["../../../../../../../../packages/grimoire/src/devtools/product-map.ts"],"mappings":";;YAqCY;;EAEV;EACA;EACA;EACA;EACA;EACA;EACA"}
|