declare-cc 0.3.5 → 0.3.6
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/bin/install.js +2 -3
- package/commands/declare/init.md +7 -4
- package/package.json +1 -1
package/bin/install.js
CHANGED
|
@@ -1507,9 +1507,8 @@ function install(isGlobal, runtime = 'claude') {
|
|
|
1507
1507
|
fs.writeFileSync(pkgJsonDest, '{"type":"commonjs"}\n');
|
|
1508
1508
|
console.log(` ${green}✓${reset} Wrote package.json (CommonJS mode)`);
|
|
1509
1509
|
|
|
1510
|
-
// Copy hooks
|
|
1511
|
-
|
|
1512
|
-
const hooksSrc = path.join(src, 'hooks', 'dist');
|
|
1510
|
+
// Copy hooks (replaces '.claude' with runtime-specific config dir in .js files)
|
|
1511
|
+
const hooksSrc = path.join(src, 'hooks');
|
|
1513
1512
|
if (fs.existsSync(hooksSrc)) {
|
|
1514
1513
|
const hooksDest = path.join(targetDir, 'hooks');
|
|
1515
1514
|
fs.mkdirSync(hooksDest, { recursive: true });
|
package/commands/declare/init.md
CHANGED
|
@@ -30,7 +30,10 @@ If the `existing` array is non-empty, present the existing files to the user and
|
|
|
30
30
|
|
|
31
31
|
**Step 3: Report results.**
|
|
32
32
|
|
|
33
|
-
Show the user a summary of what was created
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
Show the user a brief summary of what was created (file name + one-line purpose). If a commit was made, mention the hash.
|
|
34
|
+
|
|
35
|
+
Then immediately prompt the user to start declaring:
|
|
36
|
+
|
|
37
|
+
> **Ready. Run `/declare:future` to declare what's true when this project succeeds.**
|
|
38
|
+
|
|
39
|
+
Do not suggest editing files manually or running `/declare:status`. The next step is always `/declare:future`.
|
package/package.json
CHANGED