@ultimat3/manifest 30.8.0 → 31.0.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/CLAUDE.md +1 -1
- package/README.md +3 -6
- package/package.json +8 -8
- package/src/index.ts +4 -18
- package/src/schema.ts +3 -7
package/CLAUDE.md
CHANGED
|
@@ -183,7 +183,7 @@ by the CLI, not imported.
|
|
|
183
183
|
## Commands
|
|
184
184
|
|
|
185
185
|
```
|
|
186
|
-
bun test packages/manifest
|
|
186
|
+
bun test ./packages/manifest/
|
|
187
187
|
bun run --filter @ultimat3/manifest typecheck
|
|
188
188
|
x manifest # build + emit
|
|
189
189
|
x verify # drift + contract gate, and the AGENTS.md check under the `manifest` step
|
package/README.md
CHANGED
|
@@ -144,7 +144,7 @@ never run `x manifest`. Enforced, not documented: both codes below can actually
|
|
|
144
144
|
|
|
145
145
|
## Local docs: read, never emitted
|
|
146
146
|
|
|
147
|
-
`
|
|
147
|
+
`scanInstalledDocs()` reads an installed package tree and returns `DocEntry`
|
|
148
148
|
values; `searchDocs()` ranks them against a question. This is what `x docs "how does job() retry"`
|
|
149
149
|
answers from — offline, from `node_modules`, with no filename known in advance.
|
|
150
150
|
|
|
@@ -194,11 +194,8 @@ never writes, and it never synthesises a sentence.
|
|
|
194
194
|
### Error classes
|
|
195
195
|
|
|
196
196
|
Every error class `src/index.ts` exports, for `instanceof` inside one process. Across a wire or
|
|
197
|
-
a job boundary the class is gone and the `code` is what survives — match on that.
|
|
197
|
+
a job boundary the class is gone and the `code` is what survives — match on that. Every other refusal (as of 31.0.0) has no exported class: match its `code`.
|
|
198
198
|
|
|
199
199
|
| Class | Code | Declared in |
|
|
200
200
|
|---|---|---|
|
|
201
|
-
| `
|
|
202
|
-
| `AgentsMdTooLargeError` | `X_AGENTS_MD_TOO_LARGE` | `src/errors.ts` |
|
|
203
|
-
| `ManifestBreakingError` | `X_MANIFEST_BREAKING` | `src/errors.ts` |
|
|
204
|
-
| `ManifestDriftError` | `X_MANIFEST_DRIFT` | `src/errors.ts` |
|
|
201
|
+
| `ManifestFactInvalidError` | `X_MANIFEST_FACT_INVALID` | `src/errors.ts` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ultimat3/manifest",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "31.0.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": "
|
|
47
|
-
"@ultimat3/core": "
|
|
48
|
-
"@ultimat3/entity": "
|
|
49
|
-
"@ultimat3/jobs": "
|
|
50
|
-
"@ultimat3/query": "
|
|
51
|
-
"@ultimat3/realtime": "
|
|
52
|
-
"@ultimat3/schema": "
|
|
46
|
+
"@ultimat3/action": "31.0.0",
|
|
47
|
+
"@ultimat3/core": "31.0.0",
|
|
48
|
+
"@ultimat3/entity": "31.0.0",
|
|
49
|
+
"@ultimat3/jobs": "31.0.0",
|
|
50
|
+
"@ultimat3/query": "31.0.0",
|
|
51
|
+
"@ultimat3/realtime": "31.0.0",
|
|
52
|
+
"@ultimat3/schema": "31.0.0"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/src/index.ts
CHANGED
|
@@ -12,14 +12,9 @@ export {
|
|
|
12
12
|
export type { ManifestSources } from './build';
|
|
13
13
|
export { buildManifest } from './build';
|
|
14
14
|
export type { ChangeKind, ManifestChange, ManifestDiff } from './diff';
|
|
15
|
-
export { diffManifest
|
|
15
|
+
export { diffManifest } from './diff';
|
|
16
16
|
export type { DocEntry, DocEntryKind } from './docs-scan';
|
|
17
|
-
export {
|
|
18
|
-
headerComment,
|
|
19
|
-
scanInstalledDocs,
|
|
20
|
-
scanPackageDocs,
|
|
21
|
-
shortName,
|
|
22
|
-
} from './docs-scan';
|
|
17
|
+
export { headerComment, scanInstalledDocs, shortName } from './docs-scan';
|
|
23
18
|
export type { DocHit } from './docs-search';
|
|
24
19
|
export { nearestTopics, searchDocs } from './docs-search';
|
|
25
20
|
export { tokenize } from './docs-tokens';
|
|
@@ -30,20 +25,11 @@ export {
|
|
|
30
25
|
assertNoDrift,
|
|
31
26
|
emitManifest,
|
|
32
27
|
MANIFEST_FILENAME,
|
|
33
|
-
manifestJson,
|
|
34
28
|
readManifest,
|
|
35
29
|
verifyBuildId,
|
|
36
30
|
} from './emit';
|
|
37
31
|
export type { ManifestErrorCode } from './errors';
|
|
38
|
-
export {
|
|
39
|
-
AgentsMdMissingError,
|
|
40
|
-
AgentsMdTooLargeError,
|
|
41
|
-
MANIFEST_ERROR_CODES,
|
|
42
|
-
MANIFEST_ERROR_TITLES,
|
|
43
|
-
ManifestBreakingError,
|
|
44
|
-
ManifestDriftError,
|
|
45
|
-
ManifestFactInvalidError,
|
|
46
|
-
} from './errors';
|
|
32
|
+
export { ManifestFactInvalidError } from './errors';
|
|
47
33
|
export type { ModuleFacts, ObservedEdge } from './graph';
|
|
48
34
|
export { buildGraph, findNode, impactOf, nodeId, pathBetween } from './graph';
|
|
49
35
|
export type {
|
|
@@ -79,7 +65,7 @@ export type {
|
|
|
79
65
|
RouteFact,
|
|
80
66
|
TaskFact,
|
|
81
67
|
} from './schema';
|
|
82
|
-
export {
|
|
68
|
+
export { isManifest, MANIFEST_VERSION } from './schema';
|
|
83
69
|
export type {
|
|
84
70
|
SubjectFact,
|
|
85
71
|
SubjectTableFact,
|
package/src/schema.ts
CHANGED
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
// though every other field here is a plain literal: the manifest's `render` field means the same
|
|
10
10
|
// thing as the route's, and two spellings of one closed set is what `'spa'` escaped through.
|
|
11
11
|
import type { HydrateStrategy, OfflineStrategy, RenderMode } from '@ultimat3/core';
|
|
12
|
+
import type { JsonValue } from '@ultimat3/schema';
|
|
12
13
|
import type { SubjectFact } from './schema-subjects';
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -23,13 +24,8 @@ import type { SubjectFact } from './schema-subjects';
|
|
|
23
24
|
*/
|
|
24
25
|
export const MANIFEST_VERSION = 1;
|
|
25
26
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
| number
|
|
29
|
-
| boolean
|
|
30
|
-
| null
|
|
31
|
-
| readonly JsonValue[]
|
|
32
|
-
| { readonly [key: string]: JsonValue };
|
|
27
|
+
// `@ultimat3/schema`'s one declaration, re-exported for this package's callers — never restated.
|
|
28
|
+
export type { JsonValue };
|
|
33
29
|
|
|
34
30
|
export interface RouteFact {
|
|
35
31
|
readonly url: string;
|