@altnovatrail/spec 0.19.20 → 0.20.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 CHANGED
@@ -32,6 +32,8 @@ From 0.18.0 on, `@altnovatrail/spec/exportv3` takes the place of `@altnovatrail/
32
32
 
33
33
  From 0.19.0 on, `@altnovatrail/spec/exportv4` takes the place of `@altnovatrail/spec/exportv3`: the types of the part's version 4, which adds the pages from the learner's paper, each a file of its own, `Paper`, and to a profile its hint mode and its open attempts of tasks from paper, `PaperAttempt`, and to a record of the evidence log the ID of an adult's correction, `correction_id`. A consumer of 0.18 that imports `exportv3` imports `exportv4` from 0.19 on.
34
34
 
35
+ From 0.20.0 on, `@altnovatrail/spec/exportv5` takes the place of `@altnovatrail/spec/exportv4`: the types of the part's version 5, whose `PaperAttempt` no longer says where the key of each task came from, since a task from paper has no key, and whose verdict of a submission may be `so_far_correct`. A consumer of 0.19 that imports `exportv4` imports `exportv5` from 0.20 on.
36
+
35
37
  The types are declarations alone, with no code to run, so import them with `import type`; the page's JSON is data, which a module imports with `with { type: "json" }` or reads as a file:
36
38
 
37
39
  ```ts
@@ -54,7 +56,7 @@ function show(task: open.Task, manifest: open.Manifest) {
54
56
  - **`@altnovatrail/spec/deploymentv1`** holds the types of the deployment configuration's version 1: the file, `Deployment`, and the test vectors of reading it, `ReadingVector`, whose file is any JSON value, `unknown`. A type gives the shape alone: a reader checks the file against its schema and then against the rules of reading of the format's text.
55
57
  - **`@altnovatrail/spec/legalv3`** holds the types of version 3 of the legal texts: the passport, `Legal`, with each `Text` and its `TextVersion` with its `translations`, each `Set` and its `SetVersion`, and the test vectors of reading the part, `ReadingVector`, whose passport is any JSON value, `unknown`. A type gives the shape alone: a reader checks the passport against its schema and then the part against the rules of reading of the part's text.
56
58
  - **`@altnovatrail/spec/consentagev1`** holds the types of version 1 of the table of the age of digital consent: the table, `ConsentAge`, with each country's `Entry`, the `Country` codes, and the test vectors of reading the table, `ReadingVector`, whose table is any JSON value, `unknown`, and of the category, `CategoryVector`. A type gives the shape alone: a reader checks the table against its schema and then against the rules of reading of the part's text, and computes a learner's category as the part's text says.
57
- - **`@altnovatrail/spec/exportv4`** holds the types of version 4 of the format of the export: `Manifest`, `Account`, `Profile` with its `Attempt`, `PaperAttempt`, `Submission`, `Choice`, `EvidenceEntry`, `StateEntry` and `WorkInfo`, `Device`, `Work`, `Paper` with its `TaskFrame` and `Task`, `Image`, and the test vectors of reading an export, `ReadingVector`. A type gives the shape alone: a reader checks each file against its schema and then the export against the rules of reading of the part's text.
59
+ - **`@altnovatrail/spec/exportv5`** holds the types of version 5 of the format of the export: `Manifest`, `Account`, `Profile` with its `Attempt`, `PaperAttempt`, `Submission`, `Choice`, `EvidenceEntry`, `StateEntry` and `WorkInfo`, `Device`, `Work`, `Paper` with its `TaskFrame` and `Task`, `Image`, and the test vectors of reading an export, `ReadingVector`. A type gives the shape alone: a reader checks each file against its schema and then the export against the rules of reading of the part's text.
58
60
  - **`@altnovatrail/spec/canvas`** holds the types of `<novatrail-canvas>`:
59
61
  - `CanvasElement`, which describes the element's properties `tool`, `task`, `paper`, `tracing`, `workedExample`, `demoState`, `manifest`, `media`, `history`, `marks` and `filled` and its methods `exportWork()` and `exportPicture()`, the PNG of the work that the app stores;
60
62
  - `Media`, the function by which the consumer gives the files of the pictures: the canvas goes to no network;
@@ -1,7 +1,7 @@
1
1
  // Code generated by tools/types from admission/schemas; DO NOT EDIT.
2
2
 
3
3
  /**
4
- * The types of the admission table, major version 0, generated from the schemas of version 0.5 in
4
+ * The types of the admission table, major version 0, generated from the schemas of version 0.6 in
5
5
  * admission/schemas by tools/types: the same types as the Go package admissionv0, by the same names
6
6
  * — the table, and the vectors of answers of the admission function. The schemas decide what is
7
7
  * valid: a type gives the shape of a value alone, and code that reads a value from elsewhere checks
@@ -113,10 +113,10 @@ export interface CapabilityRule {
113
113
  * assessment by a rubric, the hint, the words after a correct answer — the praise of a step and the
114
114
  * question of which technique helped —, voice — the voicing of the tutor by a provider and the
115
115
  * learner's voice input, which are one capability for now —, and for a task from paper the finding
116
- * of the tasks on the photo of a page, the reading of a task's statement into a formula for the
117
- * solver, and the solving of a task for its key.
116
+ * of the tasks on the photo of a page, the reading of a task's statement for "Recognise", and the
117
+ * Check, in which a model judges the learner's work.
118
118
  */
119
- export type Capability = "handwriting_reading" | "text_reading" | "solution_analysis" | "rubric_assessment" | "hint" | "correct_answer_words" | "voice" | "task_finding" | "statement_reading" | "task_solving";
119
+ export type Capability = "handwriting_reading" | "text_reading" | "solution_analysis" | "rubric_assessment" | "hint" | "correct_answer_words" | "voice" | "task_finding" | "statement_reading" | "task_checking";
120
120
 
121
121
  /**
122
122
  * AgeCategory is the type of admission-table.schema.json#/$defs/age_category.
@@ -1,8 +1,8 @@
1
1
  // Code generated by tools/types from export/schemas; DO NOT EDIT.
2
2
 
3
3
  /**
4
- * The types of the format of the export, version 4 of the part, generated from the schemas in
5
- * export/schemas by tools/types: the same types as the Go package exportv4, by the same names — the
4
+ * The types of the format of the export, version 5 of the part, generated from the schemas in
5
+ * export/schemas by tools/types: the same types as the Go package exportv5, by the same names — the
6
6
  * files of an export, the manifest, the account, a profile with every record of it, what a device
7
7
  * holds of it and a stored work, and the vectors of reading. A field that holds the JSON of a
8
8
  * message of protobuf, or a value as the element <novatrail-canvas> gives it, is any JSON value,
@@ -1093,7 +1093,8 @@ export interface Submission {
1093
1093
  */
1094
1094
  export interface SubmissionItem {
1095
1095
  /**
1096
- * The verdict.
1096
+ * The verdict; on an attempt of a task from paper, so_far_correct too: no answer yet, and a
1097
+ * solution with no error, which counts no wrong answer.
1097
1098
  */
1098
1099
  readonly verdict: SubmissionItemVerdict;
1099
1100
  /**
@@ -1106,9 +1107,10 @@ export interface SubmissionItem {
1106
1107
  * SubmissionItemVerdict is the type of
1107
1108
  * profile.schema.json#/$defs/submission_item/properties/verdict.
1108
1109
  *
1109
- * The verdict.
1110
+ * The verdict; on an attempt of a task from paper, so_far_correct too: no answer yet, and a
1111
+ * solution with no error, which counts no wrong answer.
1110
1112
  */
1111
- export type SubmissionItemVerdict = "correct" | "not_yet" | "unreadable" | "unchecked";
1113
+ export type SubmissionItemVerdict = "correct" | "not_yet" | "unreadable" | "unchecked" | "so_far_correct";
1112
1114
 
1113
1115
  /**
1114
1116
  * SubmissionItemAnswerSlot is the type of profile.schema.json#/$defs/submission_item_answer_slot.
@@ -1120,7 +1122,8 @@ export interface SubmissionItemAnswerSlot {
1120
1122
  */
1121
1123
  readonly answer_slot: unknown;
1122
1124
  /**
1123
- * The verdict.
1125
+ * The verdict; on an attempt of a task from paper, so_far_correct too: no answer yet, and a
1126
+ * solution with no error, which counts no wrong answer.
1124
1127
  */
1125
1128
  readonly verdict: SubmissionItemAnswerSlotVerdict;
1126
1129
  /**
@@ -1137,9 +1140,10 @@ export interface SubmissionItemAnswerSlot {
1137
1140
  * SubmissionItemAnswerSlotVerdict is the type of
1138
1141
  * profile.schema.json#/$defs/submission_item_answer_slot/properties/verdict.
1139
1142
  *
1140
- * The verdict.
1143
+ * The verdict; on an attempt of a task from paper, so_far_correct too: no answer yet, and a
1144
+ * solution with no error, which counts no wrong answer.
1141
1145
  */
1142
- export type SubmissionItemAnswerSlotVerdict = "correct" | "not_yet" | "unreadable" | "unchecked";
1146
+ export type SubmissionItemAnswerSlotVerdict = "correct" | "not_yet" | "unreadable" | "unchecked" | "so_far_correct";
1143
1147
 
1144
1148
  /**
1145
1149
  * SubmissionItemAnswerSlotReason is the type of
@@ -1236,12 +1240,6 @@ export interface PaperAttempt {
1236
1240
  * When the learner last acted on it.
1237
1241
  */
1238
1242
  readonly last_action_at: Time;
1239
- /**
1240
- * Where the key of each task of the attempt's crop came from, in the order of the page, as its
1241
- * items; absent before a submission derived them. The keys themselves are the program's and never
1242
- * reach the device.
1243
- */
1244
- readonly key_sources?: readonly PaperAttemptKeySources[];
1245
1243
  /**
1246
1244
  * The attempt's wrong answers.
1247
1245
  */
@@ -1260,15 +1258,6 @@ export interface PaperAttempt {
1260
1258
  readonly submissions: readonly Submission[];
1261
1259
  }
1262
1260
 
1263
- /**
1264
- * PaperAttemptKeySources is the type of
1265
- * profile.schema.json#/$defs/paper_attempt/properties/key_sources/items.
1266
- *
1267
- * Where one task's key came from: the solver, one solution of AI, or none, when the solution gave
1268
- * no one answer a program can compare.
1269
- */
1270
- export type PaperAttemptKeySources = "solver" | "ai" | "none";
1271
-
1272
1261
  /**
1273
1262
  * Choice is the type of profile.schema.json#/$defs/choice.
1274
1263
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altnovatrail/spec",
3
- "version": "0.19.20",
3
+ "version": "0.20.0",
4
4
  "description": "The types of NovaTrail's module format for TypeScript, generated from its schemas: the parts of a module and their open views, the canonical view, the inventory, the module index and the test vectors. And the types of the element <novatrail-canvas>, the contract of the canvas and the app. And the types of the admission table, which says which AI provider may serve which age category. And the numbers and widths of the workbook's page and its test vectors, as JSON, by which a canvas lays the page out. And the types of the deployment configuration, the file /deployment.json that the app reads at its start. And the types of the legal texts' passport, which names each text, its versions and the sets of texts of the samples page. And the types of the table of the age of digital consent, which gives each country's age with the law that sets it. And the types of the files of an export, the file the owner of an account gets of a profile or of the account.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -32,8 +32,8 @@
32
32
  "./consentagev1": {
33
33
  "types": "./consentagev1/index.d.ts"
34
34
  },
35
- "./exportv4": {
36
- "types": "./exportv4/index.d.ts"
35
+ "./exportv5": {
36
+ "types": "./exportv5/index.d.ts"
37
37
  },
38
38
  "./package.json": "./package.json"
39
39
  },
@@ -45,7 +45,7 @@
45
45
  "deploymentv1",
46
46
  "legalv3",
47
47
  "consentagev1",
48
- "exportv4"
48
+ "exportv5"
49
49
  ],
50
50
  "sideEffects": false
51
51
  }