@lifeaitools/rdc-skills 0.25.5 → 0.25.9

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 (66) hide show
  1. package/.claude-plugin/plugin.json +1550 -1550
  2. package/.github/workflows/self-test.yml +34 -34
  3. package/CHANGELOG.md +319 -319
  4. package/MANIFEST.md +224 -224
  5. package/README.md +367 -367
  6. package/commands/build.md +181 -181
  7. package/commands/collab.md +180 -180
  8. package/commands/deploy.md +148 -148
  9. package/commands/fixit.md +150 -150
  10. package/commands/handoff.md +173 -173
  11. package/commands/overnight.md +220 -220
  12. package/commands/plan.md +158 -158
  13. package/commands/preplan.md +131 -131
  14. package/commands/prototype.md +145 -145
  15. package/commands/report.md +99 -99
  16. package/commands/review.md +120 -120
  17. package/commands/status.md +86 -86
  18. package/commands/workitems.md +127 -127
  19. package/git-sha.json +1 -1
  20. package/guides/agent-bootstrap.md +195 -195
  21. package/guides/agents/backend.md +102 -102
  22. package/guides/agents/content.md +94 -94
  23. package/guides/agents/cs2.md +56 -56
  24. package/guides/agents/data.md +86 -86
  25. package/guides/agents/design.md +77 -77
  26. package/guides/agents/frontend.md +91 -91
  27. package/guides/agents/infrastructure.md +81 -81
  28. package/guides/agents/setup.md +272 -272
  29. package/guides/agents/verify.md +119 -119
  30. package/guides/agents/viz.md +106 -106
  31. package/hooks/check-rdc-environment.js +318 -164
  32. package/hooks/lib/box-lock.js +186 -0
  33. package/package.json +1 -1
  34. package/scripts/install-rdc-skills.js +1474 -1400
  35. package/scripts/local-install-with-stop.sh +41 -0
  36. package/scripts/probe-box-lock.mjs +179 -0
  37. package/scripts/probe-installed-hooks.mjs +60 -0
  38. package/scripts/probe-lock-holders.mjs +36 -0
  39. package/scripts/self-test.mjs +1459 -1459
  40. package/scripts/validate-publish-manifests.js +502 -502
  41. package/skills/build/SKILL.md +578 -578
  42. package/skills/channel-formatter/SKILL.md +538 -538
  43. package/skills/collab/SKILL.md +239 -239
  44. package/skills/convert/SKILL.md +138 -138
  45. package/skills/deploy/SKILL.md +541 -541
  46. package/skills/design/SKILL.md +205 -205
  47. package/skills/env/SKILL.md +139 -139
  48. package/skills/fixit/SKILL.md +203 -203
  49. package/skills/handoff/SKILL.md +236 -236
  50. package/skills/housekeeping/SKILL.md +189 -189
  51. package/skills/onramp/SKILL.md +1459 -1459
  52. package/skills/overnight/SKILL.md +251 -251
  53. package/skills/plan/SKILL.md +345 -345
  54. package/skills/preplan/SKILL.md +90 -90
  55. package/skills/prototype/SKILL.md +150 -150
  56. package/skills/regen-media/SKILL.md +94 -94
  57. package/skills/release/SKILL.md +140 -140
  58. package/skills/report/SKILL.md +100 -100
  59. package/skills/review/SKILL.md +151 -151
  60. package/skills/self-test/SKILL.md +108 -108
  61. package/skills/status/SKILL.md +99 -99
  62. package/skills/tests/MATRIX.md +55 -55
  63. package/skills/tests/onramp.test.json +87 -87
  64. package/skills/tests/rdc-regen-media.test.json +29 -29
  65. package/skills/watch/SKILL.md +84 -84
  66. package/skills/workitems/SKILL.md +151 -151
@@ -1,164 +1,318 @@
1
- #!/usr/bin/env node
2
- /**
3
- * SessionStart hook — hard gate for the RDC skills runtime.
4
- *
5
- * This hook repairs the approved install path when it can do so safely:
6
- * npm install -g @lifeaitools/rdc-skills@latest
7
- * rdc-skills-install --profile lifeai --project-root <repo> --write-startup-blocks
8
- *
9
- * It then verifies that the local MCP server answers /health and sees a real
10
- * skills catalog. If repair fails, startup is blocked before agents trust stale
11
- * copied skill files.
12
- */
13
- 'use strict';
14
-
15
- const fs = require('fs');
16
- const os = require('os');
17
- const path = require('path');
18
- const { execFileSync, execSync } = require('child_process');
19
- const hookLog = require('./hook-logger');
20
-
21
- const MIN_SKILLS = 20;
22
- const MCP_HEALTH = 'http://127.0.0.1:3110/health';
23
- const PACKAGE = '@lifeaitools/rdc-skills';
24
- const stampPath = path.join(os.tmpdir(), 'rdc-skills-environment-last-repair.json');
25
-
26
- function q(value) {
27
- return `"${String(value).replace(/"/g, '\\"')}"`;
28
- }
29
-
30
- function run(command, args, opts = {}) {
31
- return execFileSync(command, args, {
32
- encoding: 'utf8',
33
- stdio: ['ignore', 'pipe', 'pipe'],
34
- timeout: opts.timeout || 30000,
35
- cwd: opts.cwd || process.cwd(),
36
- env: { ...process.env, ...(opts.env || {}) },
37
- }).trim();
38
- }
39
-
40
- function shell(command, opts = {}) {
41
- return execSync(command, {
42
- encoding: 'utf8',
43
- stdio: ['ignore', 'pipe', 'pipe'],
44
- timeout: opts.timeout || 30000,
45
- cwd: opts.cwd || process.cwd(),
46
- env: { ...process.env, ...(opts.env || {}) },
47
- }).trim();
48
- }
49
-
50
- function commandExists(name) {
51
- try {
52
- if (process.platform === 'win32') run('where.exe', [name], { timeout: 5000 });
53
- else run('which', [name], { timeout: 5000 });
54
- return true;
55
- } catch {
56
- return false;
57
- }
58
- }
59
-
60
- function projectRoot() {
61
- try {
62
- return shell('git rev-parse --show-toplevel', { timeout: 5000 });
63
- } catch {
64
- return process.cwd();
65
- }
66
- }
67
-
68
- function globalPackageJson() {
69
- try {
70
- const root = shell('npm root -g', { timeout: 10000 });
71
- const pkg = path.join(root, '@lifeaitools', 'rdc-skills', 'package.json');
72
- if (!fs.existsSync(pkg)) return null;
73
- return JSON.parse(fs.readFileSync(pkg, 'utf8'));
74
- } catch {
75
- return null;
76
- }
77
- }
78
-
79
- async function health() {
80
- try {
81
- const res = await fetch(MCP_HEALTH, { signal: AbortSignal.timeout(4000) });
82
- if (!res.ok) return null;
83
- return await res.json();
84
- } catch {
85
- return null;
86
- }
87
- }
88
-
89
- function recentlyRepaired() {
90
- try {
91
- const data = JSON.parse(fs.readFileSync(stampPath, 'utf8'));
92
- return Date.now() - Date.parse(data.ts) < 10 * 60 * 1000;
93
- } catch {
94
- return false;
95
- }
96
- }
97
-
98
- function markRepaired(reason) {
99
- try {
100
- fs.writeFileSync(stampPath, JSON.stringify({ ts: new Date().toISOString(), reason }, null, 2));
101
- } catch {
102
- /* best effort */
103
- }
104
- }
105
-
106
- function repair(reason) {
107
- hookLog('check-rdc-environment', 'SessionStart', 'repair', { reason });
108
- shell(`npm install -g ${q(`${PACKAGE}@latest`)}`, { timeout: 120000 });
109
- shell(`rdc-skills-install --profile lifeai --project-root ${q(projectRoot())} --write-startup-blocks`, { timeout: 180000 });
110
- markRepaired(reason);
111
- }
112
-
113
- function block(message, details = {}) {
114
- hookLog('check-rdc-environment', 'SessionStart', 'block', { message, ...details });
115
- process.stdout.write(JSON.stringify({
116
- systemMessage:
117
- `HARD BLOCK RDC skills environment is not healthy.\n\n` +
118
- `${message}\n\n` +
119
- `Do not proceed with RDC work until the approved install path is repaired:\n` +
120
- `npm install -g @lifeaitools/rdc-skills@latest\n` +
121
- `rdc-skills-install --profile lifeai --project-root ${projectRoot()} --write-startup-blocks`
122
- }));
123
- process.exit(1);
124
- }
125
-
126
- async function main() {
127
- const initialPkg = globalPackageJson();
128
- const initialHealth = await health();
129
- const reasons = [];
130
-
131
- if (!initialPkg) reasons.push('global package missing');
132
- if (!commandExists('rdc-skills-install')) reasons.push('installer command missing');
133
- if (!initialHealth || initialHealth.status !== 'ok' || Number(initialHealth.skills || 0) < MIN_SKILLS) {
134
- reasons.push('local MCP health/catalog invalid');
135
- }
136
-
137
- if (reasons.length) {
138
- if (recentlyRepaired()) {
139
- block(`RDC skills still unhealthy after a recent repair attempt: ${reasons.join(', ')}`);
140
- }
141
- try {
142
- repair(reasons.join(', '));
143
- } catch (err) {
144
- block(`Automatic RDC skills repair failed: ${err.message}`, { reasons });
145
- }
146
- }
147
-
148
- const finalPkg = globalPackageJson();
149
- const finalHealth = await health();
150
- if (!finalPkg) block('Global @lifeaitools/rdc-skills package is missing after repair.');
151
- if (!commandExists('rdc-skills-install')) block('rdc-skills-install is missing after repair.');
152
- if (!finalHealth || finalHealth.status !== 'ok' || Number(finalHealth.skills || 0) < MIN_SKILLS) {
153
- block(`rdc-skills MCP is unhealthy after repair. Health: ${JSON.stringify(finalHealth)}`);
154
- }
155
-
156
- hookLog('check-rdc-environment', 'SessionStart', 'pass', {
157
- version: finalPkg.version,
158
- mcpVersion: finalHealth.version,
159
- skills: finalHealth.skills,
160
- });
161
- process.exit(0);
162
- }
163
-
164
- main().catch((err) => block(`RDC skills environment check crashed: ${err.message}`));
1
+ #!/usr/bin/env node
2
+ /**
3
+ * SessionStart hook — hard gate for the RDC skills runtime.
4
+ *
5
+ * This hook repairs the approved install path when it can do so safely:
6
+ * npm install -g @lifeaitools/rdc-skills@latest
7
+ * rdc-skills-install --profile lifeai --project-root <repo> --write-startup-blocks
8
+ *
9
+ * It then verifies that the local MCP server answers /health and sees a real
10
+ * skills catalog. If repair fails, startup is blocked before agents trust stale
11
+ * copied skill files.
12
+ */
13
+ 'use strict';
14
+
15
+ const fs = require('fs');
16
+ const os = require('os');
17
+ const path = require('path');
18
+ const { execFileSync, execSync } = require('child_process');
19
+ const hookLog = require('./hook-logger');
20
+
21
+ const MIN_SKILLS = 20;
22
+ const MCP_HEALTH = 'http://127.0.0.1:3110/health';
23
+ const PACKAGE = '@lifeaitools/rdc-skills';
24
+ const stampPath = path.join(os.tmpdir(), 'rdc-skills-environment-last-repair.json');
25
+
26
+ // Values interpolated into a shell command are VALIDATED, not quoted. cmd.exe
27
+ // expands %VAR% even inside double quotes, so no quoting function can make an
28
+ // arbitrary string safe there. A name/path that fails these is skipped, not escaped.
29
+ const SAFE_PM2_NAME = /^[A-Za-z0-9._@\-]+$/;
30
+ const SAFE_PATH = /^[A-Za-z0-9 :._\\/\-]+$/;
31
+
32
+ function q(value) {
33
+ return `"${String(value).replace(/"/g, '\\"')}"`;
34
+ }
35
+
36
+ function run(command, args, opts = {}) {
37
+ return execFileSync(command, args, {
38
+ encoding: 'utf8',
39
+ stdio: ['ignore', 'pipe', 'pipe'],
40
+ timeout: opts.timeout || 30000,
41
+ cwd: opts.cwd || process.cwd(),
42
+ env: { ...process.env, ...(opts.env || {}) },
43
+ }).trim();
44
+ }
45
+
46
+ function shell(command, opts = {}) {
47
+ return execSync(command, {
48
+ encoding: 'utf8',
49
+ stdio: ['ignore', 'pipe', 'pipe'],
50
+ timeout: opts.timeout || 30000,
51
+ cwd: opts.cwd || process.cwd(),
52
+ env: { ...process.env, ...(opts.env || {}) },
53
+ }).trim();
54
+ }
55
+
56
+ function commandExists(name) {
57
+ try {
58
+ if (process.platform === 'win32') run('where.exe', [name], { timeout: 5000 });
59
+ else run('which', [name], { timeout: 5000 });
60
+ return true;
61
+ } catch {
62
+ return false;
63
+ }
64
+ }
65
+
66
+ function projectRoot() {
67
+ try {
68
+ return shell('git rev-parse --show-toplevel', { timeout: 5000 });
69
+ } catch {
70
+ return process.cwd();
71
+ }
72
+ }
73
+
74
+ function globalPackageJson() {
75
+ try {
76
+ const root = shell('npm root -g', { timeout: 10000 });
77
+ const pkg = path.join(root, '@lifeaitools', 'rdc-skills', 'package.json');
78
+ if (!fs.existsSync(pkg)) return null;
79
+ return JSON.parse(fs.readFileSync(pkg, 'utf8'));
80
+ } catch {
81
+ return null;
82
+ }
83
+ }
84
+
85
+ async function health() {
86
+ try {
87
+ const res = await fetch(MCP_HEALTH, { signal: AbortSignal.timeout(4000) });
88
+ if (!res.ok) return null;
89
+ return await res.json();
90
+ } catch {
91
+ return null;
92
+ }
93
+ }
94
+
95
+ function recentlyRepaired() {
96
+ try {
97
+ const data = JSON.parse(fs.readFileSync(stampPath, 'utf8'));
98
+ return Date.now() - Date.parse(data.ts) < 10 * 60 * 1000;
99
+ } catch {
100
+ return false;
101
+ }
102
+ }
103
+
104
+ function markRepaired(reason) {
105
+ try {
106
+ fs.writeFileSync(stampPath, JSON.stringify({ ts: new Date().toISOString(), reason }, null, 2));
107
+ } catch {
108
+ /* best effort */
109
+ }
110
+ }
111
+
112
+ /**
113
+ * PM2 processes running FROM the global package directory.
114
+ *
115
+ * `npm install -g` upgrades by RENAMING that directory. On Windows a directory
116
+ * that is a live process's cwd cannot be renamed, so the install dies EBUSY —
117
+ * which is exactly what happened here: `rdc-skills-mcp` runs with
118
+ * pm_cwd = <npm root>/@lifeaitools/rdc-skills, the very path npm moves.
119
+ *
120
+ * Matched by CWD rather than by name so a renamed or duplicated process is still
121
+ * found the lock is held by whatever sits in that directory, not by a name.
122
+ */
123
+ function processesHoldingPackage() {
124
+ if (!commandExists('pm2')) return [];
125
+ try {
126
+ const root = shell('npm root -g', { timeout: 10000 });
127
+ const pkgDir = path.join(root, '@lifeaitools', 'rdc-skills').toLowerCase().replace(/\\/g, '/');
128
+ return JSON.parse(shell('pm2 jlist', { timeout: 15000 }))
129
+ .filter((p) => {
130
+ const cwd = String(p?.pm2_env?.pm_cwd || '').toLowerCase().replace(/\\/g, '/');
131
+ return cwd && (cwd === pkgDir || cwd.startsWith(`${pkgDir}/`));
132
+ })
133
+ .map((p) => p.name)
134
+ .filter(Boolean);
135
+ } catch {
136
+ return [];
137
+ }
138
+ }
139
+
140
+ function repair(reason) {
141
+ hookLog('check-rdc-environment', 'SessionStart', 'repair', { reason });
142
+
143
+ // Release the directory lock BEFORE npm touches it. Without this the repair
144
+ // cannot succeed while the MCP is running — it fails EBUSY, block() fires, and
145
+ // the session is hard-blocked by its own repair attempt.
146
+ // These MUST go through a shell: npm, pm2 and rdc-skills-install are .cmd shims
147
+ // on Windows, and execFileSync cannot launch a .cmd without one — measured, not
148
+ // assumed: execFileSync('npm', ['--version']) fails ENOENT here
149
+ // (scripts/probe-execfile-cmd.mjs). So the exposure is closed by VALIDATING the
150
+ // interpolated values instead of trying to quote them: q() escapes only double
151
+ // quotes, and cmd.exe still expands %VAR% inside them, which no quoting fixes.
152
+ const holders = processesHoldingPackage().filter((name) => {
153
+ if (SAFE_PM2_NAME.test(name)) return true;
154
+ hookLog('check-rdc-environment', 'SessionStart', 'skipped-unsafe-pm2-name', { name });
155
+ return false;
156
+ });
157
+ for (const name of holders) {
158
+ try {
159
+ shell(`pm2 stop ${q(name)}`, { timeout: 30000 });
160
+ hookLog('check-rdc-environment', 'SessionStart', 'stopped-for-repair', { name });
161
+ } catch {
162
+ /* already stopped, or pm2 unavailable — the install will report the truth */
163
+ }
164
+ }
165
+
166
+ try {
167
+ shell(`npm install -g ${q(`${PACKAGE}@latest`)}`, { timeout: 120000 });
168
+ const root = projectRoot();
169
+ if (!SAFE_PATH.test(root)) {
170
+ throw new Error(`refusing to shell out with an unsafe project root: ${root}`);
171
+ }
172
+ shell(`rdc-skills-install --profile lifeai --project-root ${q(root)} --write-startup-blocks`, { timeout: 180000 });
173
+ markRepaired(reason);
174
+ } finally {
175
+ // ALWAYS restart, even when the install threw. Leaving the MCP stopped would
176
+ // turn a failed repair into a worse outage than the one being repaired.
177
+ for (const name of holders) {
178
+ try {
179
+ shell(`pm2 restart ${q(name)}`, { timeout: 30000 });
180
+ } catch {
181
+ /* surfaced by the health re-check below */
182
+ }
183
+ }
184
+ }
185
+ }
186
+
187
+ /**
188
+ * ── The global package is BOX-WIDE; this hook is PER-SESSION ──────────────────
189
+ *
190
+ * Every session and every worktree runs this hook, but there is only ONE global
191
+ * npm package and ONE rdc-skills-mcp on the machine. Without coordination, N
192
+ * sessions starting together each independently conclude "unhealthy" and each run
193
+ * `npm install -g` against the same directory — they fight, and on Windows they
194
+ * fight over a directory a live process is sitting in.
195
+ *
196
+ * recentlyRepaired() did not prevent this: it gated the BLOCK path, not the REPAIR
197
+ * path, so concurrent starts all saw "not recently repaired" and all installed.
198
+ *
199
+ * A box-wide resource gets a box-wide update: exactly one session performs it, the
200
+ * rest wait for it and re-probe. Waiting is the correct behaviour for a follower —
201
+ * the leader is already fixing the thing they would have fixed.
202
+ */
203
+ // Single home: hooks/lib/box-lock.js. Kept out of this file so the verification
204
+ // probe can exercise the REAL implementation instead of a copy that drifts.
205
+ const { acquireBoxLock, releaseBoxLock, LOCK_PATH: lockPath } = require('./lib/box-lock');
206
+
207
+
208
+
209
+ /**
210
+ * Wait for the session that owns the update to finish, re-probing health.
211
+ *
212
+ * MUST stay under the SessionStart hook timeout (see HOOK_TIMEOUT_SEC in
213
+ * scripts/install-rdc-skills.js). At 90s against a 60s harness default the
214
+ * follower was killed BEFORE it could re-probe or emit a verdict, so a
215
+ * slow-but-succeeding repair looked like a hook crash to every follower.
216
+ */
217
+ async function waitForBoxRepair(timeoutMs = 45000) {
218
+ const deadline = Date.now() + timeoutMs;
219
+ while (Date.now() < deadline) {
220
+ await new Promise((r) => setTimeout(r, 3000));
221
+ const h = await health();
222
+ if (h && h.status === 'ok' && Number(h.skills || 0) >= MIN_SKILLS) return h;
223
+ if (!fs.existsSync(lockPath)) break; // leader finished; take one last look
224
+ }
225
+ return health();
226
+ }
227
+
228
+ function block(message, details = {}) {
229
+ hookLog('check-rdc-environment', 'SessionStart', 'block', { message, ...details });
230
+ process.stdout.write(JSON.stringify({
231
+ systemMessage:
232
+ `HARD BLOCK — RDC skills environment is not healthy.\n\n` +
233
+ `${message}\n\n` +
234
+ `Do not proceed with RDC work until the approved install path is repaired.\n\n` +
235
+ `STOP THE SERVER FIRST — npm upgrades by renaming the global package dir, and\n` +
236
+ `Windows cannot rename a running process's cwd. Skipping this step is what\n` +
237
+ `produces "EBUSY ... rename ... @lifeaitools/rdc-skills":\n\n` +
238
+ `pm2 stop rdc-skills-mcp\n` +
239
+ `npm install -g @lifeaitools/rdc-skills@latest\n` +
240
+ `rdc-skills-install --profile lifeai --project-root ${projectRoot()} --write-startup-blocks\n` +
241
+ `pm2 restart rdc-skills-mcp`
242
+ }));
243
+ process.exit(1);
244
+ }
245
+
246
+ async function main() {
247
+ const initialPkg = globalPackageJson();
248
+ const initialHealth = await health();
249
+ const reasons = [];
250
+
251
+ if (!initialPkg) reasons.push('global package missing');
252
+ if (!commandExists('rdc-skills-install')) reasons.push('installer command missing');
253
+ if (!initialHealth || initialHealth.status !== 'ok' || Number(initialHealth.skills || 0) < MIN_SKILLS) {
254
+ reasons.push('local MCP health/catalog invalid');
255
+ }
256
+
257
+ if (reasons.length) {
258
+ if (recentlyRepaired()) {
259
+ block(`RDC skills still unhealthy after a recent repair attempt: ${reasons.join(', ')}`);
260
+ }
261
+ if (acquireBoxLock()) {
262
+ // This session is the box's updater. block() calls process.exit(1), which
263
+ // SKIPS finally — so the error is captured here and reported only AFTER the
264
+ // lock has been released. Calling block() from inside the try/catch leaked
265
+ // the lock on exactly the path most likely to run.
266
+ let repairError = null;
267
+ try {
268
+ repair(reasons.join(', '));
269
+ } catch (err) {
270
+ repairError = err;
271
+ } finally {
272
+ releaseBoxLock();
273
+ }
274
+ if (repairError) {
275
+ block(`Automatic RDC skills repair failed: ${repairError.message}`, { reasons });
276
+ }
277
+ } else {
278
+ // Another session owns the box-wide update. Racing it is what broke this.
279
+ hookLog('check-rdc-environment', 'SessionStart', 'await-box-repair', { reasons });
280
+ await waitForBoxRepair();
281
+ // Re-evaluate from scratch rather than trusting the pre-wait `reasons`. A
282
+ // follower's only complaint is often a transient blip caused by the LEADER's
283
+ // own `pm2 restart`; blocking on that stale list hard-blocked sessions the
284
+ // leader had already fixed.
285
+ const afterReasons = [];
286
+ if (!globalPackageJson()) afterReasons.push('global package missing');
287
+ if (!commandExists('rdc-skills-install')) afterReasons.push('installer command missing');
288
+ const h = await health();
289
+ if (!h || h.status !== 'ok' || Number(h.skills || 0) < MIN_SKILLS) {
290
+ afterReasons.push('local MCP health/catalog invalid');
291
+ }
292
+ if (afterReasons.length) {
293
+ block(
294
+ 'Another session is updating the box-wide rdc-skills install and it did not '
295
+ + `become healthy in time: ${afterReasons.join(', ')}`,
296
+ { reasons, afterReasons, waited: true },
297
+ );
298
+ }
299
+ }
300
+ }
301
+
302
+ const finalPkg = globalPackageJson();
303
+ const finalHealth = await health();
304
+ if (!finalPkg) block('Global @lifeaitools/rdc-skills package is missing after repair.');
305
+ if (!commandExists('rdc-skills-install')) block('rdc-skills-install is missing after repair.');
306
+ if (!finalHealth || finalHealth.status !== 'ok' || Number(finalHealth.skills || 0) < MIN_SKILLS) {
307
+ block(`rdc-skills MCP is unhealthy after repair. Health: ${JSON.stringify(finalHealth)}`);
308
+ }
309
+
310
+ hookLog('check-rdc-environment', 'SessionStart', 'pass', {
311
+ version: finalPkg.version,
312
+ mcpVersion: finalHealth.version,
313
+ skills: finalHealth.skills,
314
+ });
315
+ process.exit(0);
316
+ }
317
+
318
+ main().catch((err) => block(`RDC skills environment check crashed: ${err.message}`));