@extra2001/labkit-runtime-types 0.0.0-types.1.tbbcffccdb5c75f91 → 0.0.0-types.1.tc5a440c107d253d3
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 +14 -8
- package/content-evaluator-runtime-types.json +5 -5
- package/content-evaluator.d.ts +1 -1
- package/content-evaluator.js +5 -5
- package/index.d.ts +771 -7
- package/index.js +494 -48
- package/package.json +2 -2
- package/runtime-types.json +494 -48
- package/scorer-runtime-types.json +5 -5
- package/scorer.d.ts +1 -1
- package/scorer.js +5 -5
package/README.md
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @extra2001/labkit-runtime-types
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
iLab 物理实验平台的 TypeScript 类型定义包,用于在 [LabKit](https://physics.buaaer.top/labkit-docs/) 项目中为 Behavior、Scorer 和 ContentEvaluator 提供实验模块与字段的完整类型提示。
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
> 脚手架 `npm create @extra2001/labkit-app@latest` 会自动安装与当前平台匹配的版本;日常升级请使用 `npm run upgrade`。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## 导出入口
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
| 入口 | 用途 |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| `@extra2001/labkit-runtime-types` | Behavior 基础类型(自定义仪器项目请导入项目内自动生成的 `.labkit/runtimeTypes.js`) |
|
|
12
|
+
| `@extra2001/labkit-runtime-types/scorer` | Scorer 类型(`ScorerRuntimeTypes`、`ScorerTableCellTarget`) |
|
|
13
|
+
| `@extra2001/labkit-runtime-types/content-evaluator` | ContentEvaluator 类型(`ContentEvaluatorRuntimeTypes`) |
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
## 文档
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
- [LabKit 开发者文档](https://physics.buaaer.top/labkit-docs/)
|
|
14
18
|
|
|
15
|
-
|
|
19
|
+
## 许可证
|
|
20
|
+
|
|
21
|
+
Apache-2.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"formatVersion": 1,
|
|
3
3
|
"stability": "experimental",
|
|
4
|
-
"id": "labkit-content-evaluator/v1/3.4.1/
|
|
5
|
-
"version": "0.0.0-types.1.
|
|
6
|
-
"fingerprint": "
|
|
4
|
+
"id": "labkit-content-evaluator/v1/3.4.1/2f1ae5edaea573526342cf4b3bd4390a06530f70015d8230185a2c66df3deadf",
|
|
5
|
+
"version": "0.0.0-types.1.tc5a440c107d253d3",
|
|
6
|
+
"fingerprint": "2f1ae5edaea573526342cf4b3bd4390a06530f70015d8230185a2c66df3deadf",
|
|
7
7
|
"runtime": {
|
|
8
8
|
"package": "unity-webgl-shell-vue",
|
|
9
9
|
"version": "3.4.1",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
},
|
|
12
12
|
"core": {
|
|
13
13
|
"package": "@extra2001/labkit-core",
|
|
14
|
-
"version": "0.1.
|
|
15
|
-
"typesFingerprint": "
|
|
14
|
+
"version": "0.1.1",
|
|
15
|
+
"typesFingerprint": "710d278e85e477a8f24a9a628dd9d2e21d44c295517fcacd0c6404c940b5734b",
|
|
16
16
|
"authoringApi": "experimental"
|
|
17
17
|
},
|
|
18
18
|
"compiler": {
|
package/content-evaluator.d.ts
CHANGED
|
@@ -538,4 +538,4 @@ export type ContentEvaluatorResult = { "aiReason": string; "dimensions": Array<{
|
|
|
538
538
|
export type ContentEvaluatorCompletion = { "aiReason": string; "completed": boolean; "userReason": string | { "en": string; "zh": string } }
|
|
539
539
|
export type ContentEvaluatorDefinitions = ContentDefinitionTypes
|
|
540
540
|
export type ContentEvaluatorRuntimeTypes = ContentEvaluatorRuntimeTypeMap<ContentEvaluatorItem, ContentEvaluatorHistory, ContentEvaluatorDefinitions, ContentEvaluatorResult, ContentEvaluatorCompletion>
|
|
541
|
-
export declare const contentEvaluatorMetadata: { readonly "formatVersion": 1; readonly "stability": "experimental"; readonly "id": "labkit-content-evaluator/v1/3.4.1/
|
|
541
|
+
export declare const contentEvaluatorMetadata: { readonly "formatVersion": 1; readonly "stability": "experimental"; readonly "id": "labkit-content-evaluator/v1/3.4.1/2f1ae5edaea573526342cf4b3bd4390a06530f70015d8230185a2c66df3deadf"; readonly "version": "0.0.0-types.1.tc5a440c107d253d3"; readonly "fingerprint": "2f1ae5edaea573526342cf4b3bd4390a06530f70015d8230185a2c66df3deadf"; readonly "runtime": { readonly "package": "unity-webgl-shell-vue"; readonly "version": "3.4.1"; readonly "compatibility": "exact-version-and-types-fingerprint" }; readonly "core": { readonly "package": "@extra2001/labkit-core"; readonly "version": "0.1.1"; readonly "typesFingerprint": "710d278e85e477a8f24a9a628dd9d2e21d44c295517fcacd0c6404c940b5734b"; readonly "authoringApi": "experimental" }; readonly "compiler": { readonly "typescript": "6.0.3" }; readonly "scope": { readonly "item": readonly ["id", "titleZh", "titleEn", "contextCriteria"]; readonly "history": readonly ["id", "timestamp", "operationSymbol", "paramValues", "inputValue", "output", "triggerContextValues", "contextSnapshot", "instrumentStatusSnapshot", "checkResult"]; readonly "definitions": "all" } }
|
package/content-evaluator.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const contentEvaluatorMetadata = {
|
|
2
2
|
"formatVersion": 1,
|
|
3
3
|
"stability": "experimental",
|
|
4
|
-
"id": "labkit-content-evaluator/v1/3.4.1/
|
|
5
|
-
"version": "0.0.0-types.1.
|
|
6
|
-
"fingerprint": "
|
|
4
|
+
"id": "labkit-content-evaluator/v1/3.4.1/2f1ae5edaea573526342cf4b3bd4390a06530f70015d8230185a2c66df3deadf",
|
|
5
|
+
"version": "0.0.0-types.1.tc5a440c107d253d3",
|
|
6
|
+
"fingerprint": "2f1ae5edaea573526342cf4b3bd4390a06530f70015d8230185a2c66df3deadf",
|
|
7
7
|
"runtime": {
|
|
8
8
|
"package": "unity-webgl-shell-vue",
|
|
9
9
|
"version": "3.4.1",
|
|
@@ -11,8 +11,8 @@ export const contentEvaluatorMetadata = {
|
|
|
11
11
|
},
|
|
12
12
|
"core": {
|
|
13
13
|
"package": "@extra2001/labkit-core",
|
|
14
|
-
"version": "0.1.
|
|
15
|
-
"typesFingerprint": "
|
|
14
|
+
"version": "0.1.1",
|
|
15
|
+
"typesFingerprint": "710d278e85e477a8f24a9a628dd9d2e21d44c295517fcacd0c6404c940b5734b",
|
|
16
16
|
"authoringApi": "experimental"
|
|
17
17
|
},
|
|
18
18
|
"compiler": {
|