You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Public, statically deployed website that lists TaskBeacon task repositories as a
4
4
5
5
- Gallery: list and card views, maturity + paradigm filters, last updated, repo/download links
6
6
- Task detail pages: README rendering, quick start, metadata, local access panel, optional web preview panel
7
-
- Companion detection: baseline tasks automatically pick up matching HTML repos when they share the same `slug` and the companion declares `variant: html`
7
+
- Companion detection: baseline tasks automatically pick up matching HTML repos at runtime from the shared `psyflow-web` manifest when they share the same `slug` and the companion declares `variant: html`
8
8
- Deployment: static export to GitHub Pages via GitHub Actions
4. Builds a normalized task record for each task repo.
58
-
5.Merges matching HTML companions into the main task card as `web_variant`.
58
+
5.Keeps the canonical task index focused on task repos and excludes duplicate HTML companions when a baseline task with the same `slug` exists.
59
59
60
60
Supported metadata files, in priority order:
61
61
@@ -84,6 +84,14 @@ If both exist, the website keeps the main task card and adds:
84
84
85
85
for the matched HTML companion.
86
86
87
+
The companion buttons are attached at runtime by fetching:
88
+
89
+
```text
90
+
/psyflow-web/task-manifest.json
91
+
```
92
+
93
+
This keeps `taskbeacon.github.io` independent from HTML companion rebuilds. Only the shared `psyflow-web` runner needs to refresh when new `Hxxxxxx-*` repos appear.
94
+
87
95
By default, HTML companions run through the shared `psyflow-web` GitHub Pages runner:
- Switched HTML companion discovery from build-time index merging to runtime attachment via the shared `psyflow-web` manifest.
6
+
- Added a shared client-side companion loader that fetches `/psyflow-web/task-manifest.json` and merges matching HTML previews onto canonical TaskBeacon tasks by `slug` and `T/H` task id pairing.
7
+
- Updated the gallery, featured carousel, homepage preview counters, footer summary, and task detail pages to use runtime companion data without changing the visible card layout.
8
+
- Simplified the indexer so `tasks_index.json` now stays focused on canonical task records, while HTML preview metadata lives in the `psyflow-web` manifest.
HTML/browser preview of the Balloon Analogue Risk Task built with `psyflow-web`.
4
+
The within-trial pump/cash loop, deterministic explosion sampler, risk-condition semantics, instruction text, and feedback logic are aligned to the local `T000002-bart` task; only the block and trial count are shortened for preview use.
5
+
6
+
## Layout
7
+
8
+
-`main.ts`: task-level orchestration
9
+
-`config/config.yaml`: declarative task config
10
+
-`src/run_trial.ts`: trial-level logic
11
+
-`src/utils.ts`: explosion sampler and block summary helpers
12
+
-`assets/`: task-specific balloon and audio assets
13
+
14
+
## Run
15
+
16
+
From [psyflow-web](/e:/xhmhc/TaskBeacon/psyflow-web):
HTML/browser preview of the Stop-Signal Task built with `psyflow-web`.
4
+
The within-trial procedure, go/stop condition semantics, instruction text, and adaptive SSD controller are aligned to the local `T000012-sst` task; only the block and trial count are shortened for preview use.
5
+
6
+
## Layout
7
+
8
+
-`main.ts`: task-level orchestration
9
+
-`config/config.yaml`: declarative task config
10
+
-`src/run_trial.ts`: trial-level logic
11
+
-`src/controller.ts`: adaptive SSD controller
12
+
-`src/utils.ts`: constrained condition generator and block summary helpers
13
+
14
+
## Run
15
+
16
+
From [psyflow-web](/e:/xhmhc/TaskBeacon/psyflow-web):
| Short Description | A task measuring cognitive control, context processing, and goal maintenance. |
11
10
| Created By | Zhipeng Cao (zhipeng30@foxmail.com) |
12
-
| Date Updated |2025/07/25|
13
-
| PsyFlow Version |0.1.0|
11
+
| Date Updated |2026/02/16|
12
+
| PsyFlow Version |0.1.8 |
14
13
| PsychoPy Version |2025.1.1 |
15
14
| Modality |Behavior/EEG |
16
15
| Language | Chinese |
@@ -20,6 +19,9 @@
20
19
This task is an AX-Continuous Performance Test (AX-CPT) designed to assess cognitive control and context processing. Participants are presented with a series of letter pairs (cue followed by probe). They must make a specific target response only when the cue is an 'A' and the probe is an 'X' (AX trials). For all other combinations (AY, BX, BY), a different response (or no response) is required.
21
20
22
21
## 2. Task Flow
22
+
23
+

24
+
23
25
### Block-Level Flow
24
26
| Step | Description |
25
27
|---|---|
@@ -38,6 +40,13 @@ This task is an AX-Continuous Performance Test (AX-CPT) designed to assess cogni
38
40
| 4. Feedback | Feedback (`Correct`, `Incorrect`, or `Too Slow`) is displayed. |
39
41
| 5. Inter-Trial Interval (ITI) | A blank screen is shown before the next trial. |
40
42
43
+
### Runtime Context Phases
44
+
| Phase Label | Meaning |
45
+
|---|---|
46
+
|`context_cue`| context cue stage in `src/run_trial.py` responder context. |
47
+
|`delay_fixation`| delay fixation stage in `src/run_trial.py` responder context. |
48
+
|`probe_response`| probe response stage in `src/run_trial.py` responder context. |
49
+
41
50
## 3. Configuration Summary
42
51
### a. Subject Info
43
52
| Field | Meaning |
@@ -66,9 +75,9 @@ This task is an AX-Continuous Performance Test (AX-CPT) designed to assess cogni
66
75
| cue_B | text | The cue letter 'B'. |
67
76
| probe_X | text | The probe letter 'X'. |
68
77
| probe_Y | text | The probe letter 'Y'. |
69
-
| correct_feedback | text | "æ£ç¡®" (Correct) in white. |
70
-
| incorrect_feedback | text | "错误" (Incorrect) in white. |
71
-
| no_response_feedback | text | "未ååº? (No response) in white. |
78
+
| correct_feedback | text | "正确" (Correct) in white. |
79
+
| incorrect_feedback | text | "错误" (Incorrect) in white. |
80
+
| no_response_feedback | text | "未反? (No response) in white. |
72
81
| instruction_text | textbox | Instructions explaining the task. |
73
82
| instruction_text_voice | voice | Voice instructions for the task. |
74
83
| block_break | text | Feedback shown between blocks. |
@@ -82,7 +91,7 @@ This task is an AX-Continuous Performance Test (AX-CPT) designed to assess cogni
@@ -104,9 +113,9 @@ This task is an AX-Continuous Performance Test (AX-CPT) designed to assess cogni
104
113
| feedback_no_response | 53 |
105
114
| feedback_onset | 60 |
106
115
107
-
## 4. Methods
116
+
## 4. Methods (for academic publication)
108
117
Participants perform an AX-CPT task, a continuous performance paradigm used to measure cognitive control and context processing. Each trial consists of a cue letter (A or B) followed by a probe letter (X or Y). Participants are instructed to press the 'f' key if the cue is 'A' and the probe is 'X' (AX trials). For all other cue-probe combinations (AY, BX, BY), they are instructed to press the 'j' key.
109
118
110
119
The task begins with a fixation cross, displayed for 500ms. The cue letter is then presented for 500ms, followed by a brief inter-stimulus interval (ISI) fixation of 500ms, and then the probe letter for up to 1000ms or until a response is made. Feedback (correct, incorrect, or no response) is provided for 500ms, followed by a randomized inter-trial interval between 800ms and 1200ms.
111
120
112
-
The task is structured into 4 blocks of 40 trials each (total 160 trials). Trial types (AX, AY, BX, BY) are presented in a randomized order within each block, with a higher proportion of AX trials to establish a strong context. This design allows for the examination of proactive and reactive cognitive control strategies.
121
+
The task is structured into 4 blocks of 40 trials each (total 160 trials). Trial types (AX, AY, BX, BY) are presented in a weighted randomized order within each block (`AX=40%`, `AY=10%`, `BX=10%`, `BY=40%`) to preserve strong context expectancy while retaining critical low-frequency AY/BX control trials. This design allows for the examination of proactive and reactive cognitive control strategies.
0 commit comments