superlab 0.1.1 → 0.1.3

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.
Files changed (34) hide show
  1. package/README.md +21 -18
  2. package/README.zh-CN.md +20 -16
  3. package/lib/i18n.cjs +594 -7
  4. package/lib/install.cjs +31 -0
  5. package/package-assets/claude/commands/lab/spec.md +1 -1
  6. package/package-assets/codex/prompts/lab-spec.md +1 -1
  7. package/package-assets/shared/changes/README.md +10 -0
  8. package/package-assets/shared/config/workflow.json +5 -0
  9. package/package-assets/shared/context/decisions.md +11 -0
  10. package/package-assets/shared/context/evidence-index.md +16 -0
  11. package/package-assets/shared/context/mission.md +27 -0
  12. package/package-assets/shared/context/open-questions.md +11 -0
  13. package/package-assets/shared/context/state.md +19 -0
  14. package/package-assets/shared/examples/minimal-uplift-workflow.md +4 -4
  15. package/package-assets/shared/skills/lab/SKILL.md +37 -10
  16. package/package-assets/shared/skills/lab/references/brainstorming-integration.md +21 -0
  17. package/package-assets/shared/skills/lab/references/workflow.md +1 -1
  18. package/package-assets/shared/skills/lab/stages/idea.md +13 -0
  19. package/package-assets/shared/skills/lab/stages/iterate.md +21 -0
  20. package/package-assets/shared/skills/lab/stages/report.md +19 -0
  21. package/package-assets/shared/skills/lab/stages/review.md +30 -0
  22. package/package-assets/shared/skills/lab/stages/run.md +17 -0
  23. package/package-assets/shared/skills/lab/stages/spec.md +36 -17
  24. package/package-assets/shared/skills/lab/stages/write.md +27 -3
  25. package/package-assets/shared/templates/design.md +5 -5
  26. package/package-assets/shared/templates/paper-section.tex +10 -0
  27. package/package-assets/shared/templates/paper.tex +29 -0
  28. package/package-assets/shared/templates/proposal.md +4 -4
  29. package/package-assets/shared/templates/review-checklist.md +23 -0
  30. package/package-assets/shared/templates/spec.md +4 -6
  31. package/package-assets/shared/templates/tasks.md +3 -5
  32. package/package.json +3 -3
  33. package/package-assets/shared/scripts/check_openspec.sh +0 -10
  34. package/package-assets/shared/scripts/openspec_change.sh +0 -50
@@ -1,9 +1,9 @@
1
1
  # Proposal
2
2
 
3
- ## OpenSpec Change
3
+ ## Lab Change
4
4
 
5
5
  - Change id:
6
- - Schema:
6
+ - Target path: `.superlab/changes/<change-id>/proposal.md`
7
7
 
8
8
  ## Scope
9
9
 
@@ -27,5 +27,5 @@ Why this change is worth evaluating.
27
27
 
28
28
  ## Validation
29
29
 
30
- - `openspec-cn instructions --change <change-id>` checked:
31
- - `openspec-cn validate <change-id>` status:
30
+ - Change directory created:
31
+ - Proposal/design/spec/tasks consistency checked:
@@ -1,5 +1,28 @@
1
1
  # Review Checklist
2
2
 
3
+ ## Concise Summary
4
+
5
+ - Artifact under review:
6
+ - Top review question:
7
+
8
+ ## Fatal Flaws
9
+
10
+ - Fatal flaw 1:
11
+ - Fatal flaw 2:
12
+
13
+ ## Fix Priority
14
+
15
+ 1. Highest-priority fix:
16
+ 2. Second-priority fix:
17
+ 3. Deferred fix:
18
+
19
+ ## Residual Risks
20
+
21
+ - Risk 1:
22
+ - Risk 2:
23
+
24
+ ## Checklist
25
+
3
26
  - Are the dataset and split choices stated clearly?
4
27
  - Is the baseline fair, current, and reproducible?
5
28
  - Are the primary and secondary metrics justified?
@@ -1,23 +1,21 @@
1
1
  # Spec
2
2
 
3
- ## OpenSpec Change
3
+ ## Lab Change
4
4
 
5
5
  - Change id:
6
- - Spec delta path:
6
+ - Target path: `.superlab/changes/<change-id>/spec.md`
7
7
 
8
8
  ## Requirements
9
9
 
10
10
  - The workflow must preserve sourced evidence separately from generated hypotheses.
11
- - The workflow must generate OpenSpec-compatible artifacts.
11
+ - The workflow must generate lab-native change artifacts under one change directory.
12
12
  - The workflow must support bounded experiment iteration.
13
13
  - The workflow must produce normalized evaluation summaries.
14
14
 
15
15
  ## Acceptance
16
16
 
17
17
  - Idea artifact written
18
- - OpenSpec artifacts written
19
- - `openspec-cn status --change <change-id>` reviewed
20
- - `openspec-cn validate <change-id>` passed
18
+ - Lab change artifacts written in `.superlab/changes/<change-id>/`
21
19
  - Validation run executed
22
20
  - Iteration reports generated
23
21
  - Final report generated
@@ -1,11 +1,9 @@
1
1
  # Tasks
2
2
 
3
- - [ ] Verify OpenSpec is initialized and identify the active change id.
4
- - [ ] Pull OpenSpec drafting guidance with `openspec-cn instructions --change <change-id>`.
3
+ - [ ] Identify the approved lab change id.
4
+ - [ ] Create `.superlab/changes/<change-id>/`.
5
5
  - [ ] Write the idea artifact.
6
- - [ ] Convert the idea into OpenSpec `spec-driven` artifacts.
7
- - [ ] Review `openspec-cn status --change <change-id>`.
8
- - [ ] Pass `openspec-cn validate <change-id>`.
6
+ - [ ] Convert the idea into `.superlab/changes/<change-id>/proposal.md`, `.superlab/changes/<change-id>/design.md`, `.superlab/changes/<change-id>/spec.md`, and `.superlab/changes/<change-id>/tasks.md`.
9
7
  - [ ] Run the first validation experiment.
10
8
  - [ ] Normalize and validate the evaluation summary.
11
9
  - [ ] Execute bounded iteration rounds.
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "superlab",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Strict /lab research workflow installer for Codex and Claude",
5
5
  "keywords": [
6
6
  "codex",
7
7
  "claude",
8
8
  "research",
9
9
  "workflow",
10
- "openspec",
11
- "experiments"
10
+ "experiments",
11
+ "latex"
12
12
  ],
13
13
  "author": "zhouhaoUCAS",
14
14
  "license": "MIT",
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- if command -v openspec-cn >/dev/null 2>&1; then
5
- echo "OpenSpec CLI detected: openspec-cn"
6
- exit 0
7
- fi
8
-
9
- echo "OpenSpec CLI not found. Install and expose 'openspec-cn' before using /lab." >&2
10
- exit 1
@@ -1,50 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- if ! command -v openspec-cn >/dev/null 2>&1; then
5
- echo "OpenSpec CLI not found. Install and expose 'openspec-cn' before using this helper." >&2
6
- exit 1
7
- fi
8
-
9
- if [[ $# -lt 2 ]]; then
10
- echo "Usage:" >&2
11
- echo " openspec_change.sh instructions <artifact> <change-id>" >&2
12
- echo " openspec_change.sh status <change-id>" >&2
13
- echo " openspec_change.sh validate <change-id>" >&2
14
- exit 2
15
- fi
16
-
17
- subcommand="$1"
18
- shift
19
-
20
- case "$subcommand" in
21
- instructions)
22
- if [[ $# -ne 2 ]]; then
23
- echo "Usage: openspec_change.sh instructions <artifact> <change-id>" >&2
24
- exit 2
25
- fi
26
- artifact="$1"
27
- change_id="$2"
28
- exec openspec-cn instructions "$artifact" --change "$change_id"
29
- ;;
30
- status)
31
- if [[ $# -ne 1 ]]; then
32
- echo "Usage: openspec_change.sh status <change-id>" >&2
33
- exit 2
34
- fi
35
- change_id="$1"
36
- exec openspec-cn status --change "$change_id"
37
- ;;
38
- validate)
39
- if [[ $# -ne 1 ]]; then
40
- echo "Usage: openspec_change.sh validate <change-id>" >&2
41
- exit 2
42
- fi
43
- change_id="$1"
44
- exec openspec-cn validate "$change_id"
45
- ;;
46
- *)
47
- echo "Unsupported subcommand: $subcommand" >&2
48
- exit 2
49
- ;;
50
- esac