superlab 0.1.6 → 0.1.7

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
@@ -22,6 +22,8 @@ cd your-project
22
22
  superlab init
23
23
  ```
24
24
 
25
+ After `init` or `update`, start a new Codex or Claude session. If the new `/lab:*` commands still do not show up, restart the app.
26
+
25
27
  If the package has not been published yet, install from GitHub instead:
26
28
 
27
29
  ```bash
@@ -90,6 +92,30 @@ superlab update --all-projects
90
92
 
91
93
  `superlab init` writes `.superlab/install.json` inside each project and registers the project in the user-level registry so `update --all-projects` knows what to refresh.
92
94
 
95
+ Legacy projects from older `superlab` versions may already contain `.codex/`, `.claude/`, or `.superlab/` assets without `.superlab/install.json`. `superlab update` now reconstructs that metadata and upgrades the project in place.
96
+
97
+ ## Version
98
+
99
+ Show the CLI version and the current project asset version:
100
+
101
+ ```bash
102
+ superlab version
103
+ ```
104
+
105
+ Show only the current project asset version:
106
+
107
+ ```bash
108
+ superlab version --project
109
+ ```
110
+
111
+ Show a specific project:
112
+
113
+ ```bash
114
+ superlab version --target /path/to/project
115
+ ```
116
+
117
+ If a project still uses an older pre-metadata installation, `superlab version` reports `project: legacy` until you run `superlab update`.
118
+
93
119
  ## Language
94
120
 
95
121
  The installer chooses the display language from your system locale. If it detects Chinese locale values, it installs Chinese-facing command and skill text; otherwise it falls back to English.
package/README.zh-CN.md CHANGED
@@ -20,6 +20,8 @@ cd your-project
20
20
  superlab init
21
21
  ```
22
22
 
23
+ 执行完 `init` 或 `update` 后,请新开一个 Codex 或 Claude 会话;如果新的 `/lab:*` 命令仍未生效,再重启应用。
24
+
23
25
  如果 npm 还没发布,也可以直接从 GitHub 安装:
24
26
 
25
27
  ```bash
@@ -88,6 +90,30 @@ superlab update --all-projects
88
90
 
89
91
  `superlab init` 会在项目内写入 `.superlab/install.json`,并在用户级 registry 里登记项目路径,所以 `update --all-projects` 才知道要刷新哪些项目。
90
92
 
93
+ 较老版本的 `superlab` 项目可能已经有 `.codex/`、`.claude/` 或 `.superlab/` 资产,但还没有 `.superlab/install.json`。现在 `superlab update` 会自动重建这份 metadata,然后原地升级该项目。
94
+
95
+ ## 版本查询
96
+
97
+ 查看当前 CLI 版本和当前目录项目的资产版本:
98
+
99
+ ```bash
100
+ superlab version
101
+ ```
102
+
103
+ 只看当前项目资产版本:
104
+
105
+ ```bash
106
+ superlab version --project
107
+ ```
108
+
109
+ 查看指定项目:
110
+
111
+ ```bash
112
+ superlab version --target /path/to/project
113
+ ```
114
+
115
+ 如果项目还是旧的 pre-metadata 安装,`superlab version` 会显示 `project: legacy`;执行一次 `superlab update` 后就会切换到正式版本号。
116
+
91
117
  ## 语言
92
118
 
93
119
  安装器会根据系统 locale 自动猜测展示语言。检测到中文 locale 时会安装中文命令和技能文案;否则默认安装英文文案。
package/bin/superlab.cjs CHANGED
@@ -11,6 +11,13 @@ const {
11
11
  } = require("../lib/install.cjs");
12
12
  const { promptSelect } = require("../lib/init_tui.cjs");
13
13
 
14
+ function restartReminder(lang) {
15
+ if (lang === "zh") {
16
+ return "项目资产已更新。请新开一个 Codex/Claude 会话;如果仍未生效,再重启应用。";
17
+ }
18
+ return "Project assets updated. Start a new Codex/Claude session; if changes still do not appear, restart the app.";
19
+ }
20
+
14
21
  function printHelp() {
15
22
  console.log(`superlab
16
23
 
@@ -214,6 +221,7 @@ async function main() {
214
221
  for (const project of result.skipped) {
215
222
  console.log(`skipped: ${project.path} (${project.reason})`);
216
223
  }
224
+ console.log(restartReminder(detectLanguage()));
217
225
  return;
218
226
  }
219
227
 
@@ -224,6 +232,7 @@ async function main() {
224
232
  if (metadata.migration) {
225
233
  console.log(`migration: ${metadata.migration}`);
226
234
  }
235
+ console.log(restartReminder(metadata.lang));
227
236
  return;
228
237
  }
229
238
 
@@ -236,6 +245,7 @@ async function main() {
236
245
  console.log(`superlab installed into ${options.targetDir}`);
237
246
  console.log(`platform: ${options.platform}`);
238
247
  console.log(`language: ${options.lang}`);
248
+ console.log(restartReminder(options.lang));
239
249
  }
240
250
 
241
251
  main().catch((error) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superlab",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Strict /lab research workflow installer for Codex and Claude",
5
5
  "keywords": [
6
6
  "codex",