@ultimat3/manifest 31.34.0 → 31.35.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/package.json +8 -8
- package/src/docs-wiki.ts +12 -4
- package/src/index.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/manifest",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.35.0",
|
|
4
4
|
"description": "x.manifest.json: deterministic generated facts, contract diff, AGENTS.md budget",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ultimate",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"test": "bun test"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@ultimat3/action": "31.
|
|
47
|
-
"@ultimat3/core": "31.
|
|
48
|
-
"@ultimat3/entity": "31.
|
|
49
|
-
"@ultimat3/jobs": "31.
|
|
50
|
-
"@ultimat3/query": "31.
|
|
51
|
-
"@ultimat3/realtime": "31.
|
|
52
|
-
"@ultimat3/schema": "31.
|
|
46
|
+
"@ultimat3/action": "31.35.0",
|
|
47
|
+
"@ultimat3/core": "31.35.0",
|
|
48
|
+
"@ultimat3/entity": "31.35.0",
|
|
49
|
+
"@ultimat3/jobs": "31.35.0",
|
|
50
|
+
"@ultimat3/query": "31.35.0",
|
|
51
|
+
"@ultimat3/realtime": "31.35.0",
|
|
52
|
+
"@ultimat3/schema": "31.35.0"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/src/docs-wiki.ts
CHANGED
|
@@ -216,9 +216,17 @@ export function wikiSection(markdown: string, anchor: string): string | undefine
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
/**
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
219
|
+
* The error reference's page set: the index `Error-Codes` and one `Error-Codes-<owner>` per owner.
|
|
220
|
+
* The one predicate `x docs` and its section reader both exclude by — `x errors explain` is the one
|
|
221
|
+
* way to a code, and indexing a thousand rows would bury every other answer.
|
|
222
|
+
*/
|
|
223
|
+
export const isErrorCodesPage = (page: string): boolean =>
|
|
224
|
+
page === 'Error-Codes' || page.startsWith('Error-Codes-');
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Every page in a shipped `wiki/` directory but the error reference (`isErrorCodesPage`). A
|
|
228
|
+
* directory that is not there is no pages, not a throw — the caller decides whether that is a
|
|
229
|
+
* broken install.
|
|
222
230
|
*/
|
|
223
231
|
export async function scanWikiDocs(dir: string, origin: WikiOrigin): Promise<readonly DocEntry[]> {
|
|
224
232
|
let files: readonly string[];
|
|
@@ -230,7 +238,7 @@ export async function scanWikiDocs(dir: string, origin: WikiOrigin): Promise<rea
|
|
|
230
238
|
const pages = [...files]
|
|
231
239
|
.sort()
|
|
232
240
|
.map(wikiPageOf)
|
|
233
|
-
.filter((page): page is string => page !== undefined && page
|
|
241
|
+
.filter((page): page is string => page !== undefined && !isErrorCodesPage(page));
|
|
234
242
|
const perPage = await Promise.all(
|
|
235
243
|
pages.map(async (page) => {
|
|
236
244
|
// A listed page can vanish or turn unreadable before it is read — `bun update` rewrites the
|
package/src/index.ts
CHANGED
|
@@ -19,7 +19,13 @@ export type { DocHit } from './docs-search';
|
|
|
19
19
|
export { nearestTopics, searchDocs } from './docs-search';
|
|
20
20
|
export { tokenize } from './docs-tokens';
|
|
21
21
|
export type { WikiHeading, WikiOrigin } from './docs-wiki';
|
|
22
|
-
export {
|
|
22
|
+
export {
|
|
23
|
+
githubSlug,
|
|
24
|
+
isErrorCodesPage,
|
|
25
|
+
scanWikiDocs,
|
|
26
|
+
wikiHeadings,
|
|
27
|
+
wikiSection,
|
|
28
|
+
} from './docs-wiki';
|
|
23
29
|
export type { EmitInput, EmitResult } from './emit';
|
|
24
30
|
export {
|
|
25
31
|
assertNoDrift,
|