@opendatacapture/instrument-guidelines 2.6.0 → 2.7.1
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/AGENTS.md +7 -4
- package/package.json +15 -19
package/AGENTS.md
CHANGED
|
@@ -151,7 +151,8 @@ interface ConstantInstrumentMeasure<TData, TLanguage extends InstrumentLanguage>
|
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
type InstrumentMeasure<TData, TLanguage extends InstrumentLanguage> =
|
|
154
|
-
ComputedInstrumentMeasure<TData, TLanguage>
|
|
154
|
+
| ComputedInstrumentMeasure<TData, TLanguage>
|
|
155
|
+
| ConstantInstrumentMeasure<TData, TLanguage>;
|
|
155
156
|
|
|
156
157
|
type InstrumentMeasures<TData, TLanguage extends InstrumentLanguage> = {
|
|
157
158
|
[key: string]: InstrumentMeasure<TData, TLanguage>;
|
|
@@ -197,7 +198,8 @@ type SeriesParams<TItemName extends string = string, TData = any> = {
|
|
|
197
198
|
};
|
|
198
199
|
|
|
199
200
|
type SeriesContent<TItemName extends string = string, TData = any> =
|
|
200
|
-
|
|
201
|
+
| ScalarInstrumentInternal[]
|
|
202
|
+
| { items: ScalarInstrumentInternal[]; params?: SeriesParams<TItemName, TData> };
|
|
201
203
|
|
|
202
204
|
interface SeriesInstrument<TLanguage extends InstrumentLanguage> extends BaseInstrument<TLanguage> {
|
|
203
205
|
content: SeriesContent;
|
|
@@ -385,7 +387,8 @@ type DynamicFieldsetField<TLanguage, TFieldsetValue, TValue> = {
|
|
|
385
387
|
|
|
386
388
|
type Fieldset<TLanguage, TFieldset> = {
|
|
387
389
|
[K in keyof TFieldset]:
|
|
388
|
-
DynamicFieldsetField<TLanguage, TFieldset, TFieldset[K]>
|
|
390
|
+
| DynamicFieldsetField<TLanguage, TFieldset, TFieldset[K]>
|
|
391
|
+
| ScalarField<TLanguage, TFieldset[K]>;
|
|
389
392
|
};
|
|
390
393
|
|
|
391
394
|
interface RecordArrayField<TLanguage, TValue> extends BaseField<TLanguage> {
|
|
@@ -520,7 +523,7 @@ content: {
|
|
|
520
523
|
/** Enter fullscreen automatically when the instrument content is shown */
|
|
521
524
|
defaultFullscreen?: boolean;
|
|
522
525
|
|
|
523
|
-
/** Show an initial screen to select a language before the instrument begins */
|
|
526
|
+
/** Show an initial screen to select a language before the instrument begins, unless the host has already chosen one */
|
|
524
527
|
enableLanguageSelect?: boolean;
|
|
525
528
|
|
|
526
529
|
/** Show a button above the instrument to change languages */
|
package/package.json
CHANGED
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendatacapture/instrument-guidelines",
|
|
3
|
-
"
|
|
4
|
-
"version": "2.6.0",
|
|
3
|
+
"version": "2.7.1",
|
|
5
4
|
"description": "Guidelines for authoring Open Data Capture instruments, intended to be read by an AI agent (e.g. Claude Code).",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"agent",
|
|
7
|
+
"claude",
|
|
8
|
+
"guidelines",
|
|
9
|
+
"instrument",
|
|
10
|
+
"opendatacapture"
|
|
11
|
+
],
|
|
6
12
|
"license": "Apache-2.0",
|
|
7
|
-
"publishConfig": {
|
|
8
|
-
"access": "public"
|
|
9
|
-
},
|
|
10
13
|
"repository": {
|
|
11
14
|
"type": "git",
|
|
12
15
|
"url": "https://github.com/DouglasNeuroInformatics/OpenDataCapture.git",
|
|
13
16
|
"directory": "packages/instrument-guidelines"
|
|
14
17
|
},
|
|
15
|
-
"keywords": [
|
|
16
|
-
"opendatacapture",
|
|
17
|
-
"instrument",
|
|
18
|
-
"agent",
|
|
19
|
-
"guidelines",
|
|
20
|
-
"claude"
|
|
21
|
-
],
|
|
22
|
-
"exports": {
|
|
23
|
-
"./AGENTS.md": "./AGENTS.md",
|
|
24
|
-
"./package.json": "./package.json"
|
|
25
|
-
},
|
|
26
18
|
"bin": {
|
|
27
19
|
"instrument-guidelines": "./bin/cli.mjs"
|
|
28
20
|
},
|
|
@@ -30,8 +22,12 @@
|
|
|
30
22
|
"bin",
|
|
31
23
|
"AGENTS.md"
|
|
32
24
|
],
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
"
|
|
25
|
+
"type": "module",
|
|
26
|
+
"exports": {
|
|
27
|
+
"./AGENTS.md": "./AGENTS.md",
|
|
28
|
+
"./package.json": "./package.json"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
36
32
|
}
|
|
37
33
|
}
|