@metacensus/library-research 0.13.0 → 0.15.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/README.md +43 -11
- package/dist/commands/add.js +29 -12
- package/dist/commands/check.js +1 -1
- package/dist/commands/dev.js +24 -13
- package/dist/commands/reshape.d.ts +2 -0
- package/dist/commands/reshape.js +21 -0
- package/dist/context.d.ts +3 -1
- package/dist/context.js +2 -0
- package/dist/corpus.d.ts +432 -0
- package/dist/corpus.js +348 -0
- package/dist/data.d.ts +16 -12
- package/dist/data.js +38 -26
- package/dist/datasets.d.ts +8 -0
- package/dist/{roles.js → datasets.js} +35 -29
- package/dist/dev/host.d.ts +7 -1
- package/dist/dev/host.js +15 -13
- package/dist/host.d.ts +3 -1
- package/dist/host.js +6 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/dist/mount.d.ts +7 -3
- package/dist/mount.js +7 -7
- package/dist/papers.js +3 -2
- package/dist/playwright.d.ts +1 -1
- package/dist/playwright.js +24 -6
- package/dist/project-id.d.ts +4 -0
- package/dist/project-id.js +7 -0
- package/dist/react.d.ts +18 -18
- package/dist/react.js +60 -37
- package/dist/reader.d.ts +18 -4
- package/dist/reader.js +25 -2
- package/dist/schema.d.ts +10 -35
- package/dist/schema.js +57 -34
- package/dist/testing.d.ts +11 -6
- package/dist/testing.js +12 -10
- package/dist/types.d.ts +62 -13
- package/dist/vite-config.js +2 -12
- package/dist/vite.d.ts +10 -2
- package/dist/vite.js +71 -19
- package/dist/zod.d.ts +2 -0
- package/dist/zod.js +4 -0
- package/package.json +14 -14
- package/schema/corpus.schema.json +3949 -29
- package/schema/project-id.schema.json +6 -0
- package/schema/research.schema.json +33 -7
- package/dist/roles.d.ts +0 -7
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
},
|
|
15
15
|
"additionalProperties": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"pattern": "^(?!\\/)(?!.*\\.\\.)
|
|
17
|
+
"pattern": "^(?!\\/)(?!.*\\.\\.)(?=.)[^*?[\\]{}()!]*(?:\\*[^*?[\\]{}()!]*)?$",
|
|
18
|
+
"description": "a glob that is relative, has no .., has at most one *, and has none of ?[]{}()!"
|
|
18
19
|
}
|
|
19
20
|
},
|
|
20
21
|
"private": {
|
|
@@ -25,20 +26,45 @@
|
|
|
25
26
|
},
|
|
26
27
|
"additionalProperties": {
|
|
27
28
|
"type": "string",
|
|
28
|
-
"pattern": "^(?!\\/)(?!.*\\.\\.)
|
|
29
|
+
"pattern": "^(?!\\/)(?!.*\\.\\.)(?=.)[^*?[\\]{}()!]*\\*[^*?[\\]{}()!]*$",
|
|
30
|
+
"description": "a glob that is relative, has no .., has exactly one *, and has none of ?[]{}()!"
|
|
29
31
|
}
|
|
30
32
|
},
|
|
33
|
+
"roles": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^[a-z][a-z0-9-]*$"
|
|
38
|
+
},
|
|
39
|
+
"uniqueItems": true
|
|
40
|
+
},
|
|
31
41
|
"people": {
|
|
32
42
|
"type": "object",
|
|
33
43
|
"propertyNames": {
|
|
34
44
|
"type": "string"
|
|
35
45
|
},
|
|
36
46
|
"additionalProperties": {
|
|
37
|
-
"type": "
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"name": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"minLength": 1
|
|
52
|
+
},
|
|
53
|
+
"role": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"pages": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"pattern": "^[a-z0-9][a-z0-9-]*$"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"required": [
|
|
65
|
+
"name"
|
|
66
|
+
],
|
|
67
|
+
"additionalProperties": false
|
|
42
68
|
}
|
|
43
69
|
}
|
|
44
70
|
},
|
package/dist/roles.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reads each data role of the project in `dir`, the folder holding
|
|
3
|
-
* research.json, parsed by its schema in ui/roles.ts, and its corpus. A
|
|
4
|
-
* private role is read as `{ page: parsed }`, its schema parsing one page's
|
|
5
|
-
* file. Throws one line per failure.
|
|
6
|
-
*/
|
|
7
|
-
export declare function load(dir: string): Promise<Record<string, unknown>>;
|