@codeenginestudio/harness-creator 1.0.1 → 1.0.4

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 (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/install.mjs +10 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeenginestudio/harness-creator",
3
- "version": "1.0.1",
3
+ "version": "1.0.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "CES Harness Creator — install wizard",
@@ -26,21 +26,19 @@ async function promptScope() {
26
26
 
27
27
  async function ensureSuperpowers() {
28
28
  if (isPluginInstalled('superpowers')) return;
29
- const install = await p.confirm({ message: 'superpowers is required. Install it?' });
30
- if (p.isCancel(install) || !install) { p.cancel('Cannot continue without superpowers.'); process.exit(1); }
31
- const s = p.spinner();
32
- s.start('Installing superpowers...');
33
- try {
34
- runClaudeCommand('plugin marketplace add obra/superpowers');
35
- s.stop('superpowers installed');
36
- } catch (err) { s.stop('superpowers install failed'); throw err; }
29
+ p.note(
30
+ 'Run this first, then re-run the installer:\n\n claude plugin install superpowers@obra',
31
+ 'superpowers is required'
32
+ );
33
+ p.cancel('Install superpowers first.');
34
+ process.exit(1);
37
35
  }
38
36
 
39
- async function installPlugin() {
37
+ async function installPlugin(scope) {
40
38
  const s = p.spinner();
41
39
  s.start('Installing ces-harness-creator...');
42
40
  try {
43
- runClaudeCommand(`plugin marketplace add ${PLUGIN_PATH}`);
41
+ runClaudeCommand(`plugin marketplace add --scope ${scope} ${PLUGIN_PATH}`);
44
42
  s.stop('ces-harness-creator installed');
45
43
  } catch (err) { s.stop('ces-harness-creator install failed'); throw err; }
46
44
  }
@@ -48,9 +46,9 @@ async function installPlugin() {
48
46
  async function main() {
49
47
  p.intro('CES Harness Creator — Install Wizard');
50
48
  if (!checkClaude()) { p.cancel('Claude Code not found. Install from: https://claude.ai/code'); process.exit(1); }
51
- await promptScope();
49
+ const scope = await promptScope();
52
50
  await ensureSuperpowers();
53
- await installPlugin();
51
+ await installPlugin(scope);
54
52
  p.outro('Done. Open Claude Code and run /ces-harness-creator');
55
53
  }
56
54