@sylphx/flow 2.12.0 → 2.14.0
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/CHANGELOG.md +20 -0
- package/assets/slash-commands/review-account-security.md +2 -2
- package/assets/slash-commands/review-admin.md +2 -2
- package/assets/slash-commands/review-auth.md +2 -2
- package/assets/slash-commands/review-billing.md +2 -2
- package/assets/slash-commands/review-code-quality.md +2 -2
- package/assets/slash-commands/review-data-architecture.md +2 -2
- package/assets/slash-commands/review-database.md +2 -2
- package/assets/slash-commands/review-delivery.md +2 -2
- package/assets/slash-commands/review-discovery.md +2 -2
- package/assets/slash-commands/review-growth.md +2 -2
- package/assets/slash-commands/review-i18n.md +2 -2
- package/assets/slash-commands/review-ledger.md +2 -2
- package/assets/slash-commands/review-observability.md +2 -2
- package/assets/slash-commands/review-operability.md +2 -2
- package/assets/slash-commands/review-performance.md +2 -2
- package/assets/slash-commands/review-pricing.md +2 -2
- package/assets/slash-commands/review-privacy.md +2 -2
- package/assets/slash-commands/review-pwa.md +2 -2
- package/assets/slash-commands/review-referral.md +2 -2
- package/assets/slash-commands/review-security.md +2 -2
- package/assets/slash-commands/review-seo.md +2 -2
- package/assets/slash-commands/review-storage.md +2 -2
- package/assets/slash-commands/review-support.md +2 -2
- package/assets/slash-commands/review-trust-safety.md +2 -2
- package/assets/slash-commands/review-uiux.md +2 -2
- package/package.json +1 -1
- package/src/targets/functional/claude-code-logic.ts +46 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @sylphx/flow
|
|
2
2
|
|
|
3
|
+
## 2.14.0 (2025-12-17)
|
|
4
|
+
|
|
5
|
+
### ✨ Features
|
|
6
|
+
|
|
7
|
+
- **claude-code:** add default settings for optimal experience ([9b097bd](https://github.com/SylphxAI/flow/commit/9b097bdbe1db9770a7afd92aff9533259983a697))
|
|
8
|
+
|
|
9
|
+
### 🔧 Chores
|
|
10
|
+
|
|
11
|
+
- add bump file for v2.14.0 release ([8246ac2](https://github.com/SylphxAI/flow/commit/8246ac21da6398dcdb7e88e7d82949a4688a8b1b))
|
|
12
|
+
|
|
13
|
+
## 2.13.0 (2025-12-17)
|
|
14
|
+
|
|
15
|
+
### ✨ Features
|
|
16
|
+
|
|
17
|
+
- **commands:** add trust-safety and fill SSOT gaps ([fe67913](https://github.com/SylphxAI/flow/commit/fe67913db8183ae6c16070825f61744cf44acafa))
|
|
18
|
+
|
|
19
|
+
### ♻️ Refactoring
|
|
20
|
+
|
|
21
|
+
- **commands:** restructure all 25 review commands for open exploration ([822da5a](https://github.com/SylphxAI/flow/commit/822da5a13f7b8e3d9d448e900c8ad8615c46a918))
|
|
22
|
+
|
|
3
23
|
## 2.12.0 (2025-12-17)
|
|
4
24
|
|
|
5
25
|
### ✨ Features
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of account security in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify threats users can't protect themselves from.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of the admin platform in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify operational gaps and safety improvements.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of authentication in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify security gaps and UX friction in auth flows.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of billing and payments in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify revenue leakage and reliability improvements.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of code quality in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify code that works but shouldn't exist in its current form.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of data architecture in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify architectural weaknesses that will cause problems at scale.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of the database in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify schema problems that will hurt at scale.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of delivery gates in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify what could go wrong in production that we're not catching.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** to discover opportunities for this product.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify opportunities, then **implement improvements directly**. Don't just report — build.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **This review IS exploration** — think broadly and creatively about what could be.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of growth systems in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify growth opportunities that don't yet exist.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of internationalization in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify what would make the product feel native to each locale.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of any balance/credits/wallet system in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify financial integrity risks before they become real problems.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of observability in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify the production issues we can't debug today.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of operability in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify what will break at 3am and how we'd fix it.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of performance in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify what's making the product feel slow.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of pricing in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify monetization opportunities and pricing friction.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of privacy controls in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify compliance gaps and privacy improvements.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of PWA implementation in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify what would make the web experience feel native.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of the referral system in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify growth opportunities and fraud vectors.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of security in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify vulnerabilities and hardening opportunities not listed here.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of SEO in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify what would make this product dominate search results.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of file storage and uploads in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify security risks and cost optimization opportunities.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of support and communications in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify what would make users feel genuinely supported.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of trust and safety in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: identify abuse vectors before bad actors find them.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
|
@@ -10,8 +10,8 @@ agent: coder
|
|
|
10
10
|
|
|
11
11
|
* Perform a **deep, thorough review** of UI/UX in this codebase.
|
|
12
12
|
* **Delegate to multiple workers** to research different aspects in parallel; you act as the **final gate** to synthesize and verify quality.
|
|
13
|
-
*
|
|
14
|
-
* **Single-pass delivery**: no deferrals; deliver
|
|
13
|
+
* **Review then Act**: identify issues, then **implement fixes directly**. Don't just report — fix.
|
|
14
|
+
* **Single-pass delivery**: no deferrals; deliver complete implementation.
|
|
15
15
|
* **Explore beyond the spec**: if the current design needs fundamental rethinking, propose it.
|
|
16
16
|
|
|
17
17
|
## Tech Stack
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sylphx/flow",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.14.0",
|
|
4
4
|
"description": "One CLI to rule them all. Unified orchestration layer for Claude Code, OpenCode, Cursor and all AI development tools. Auto-detection, auto-installation, auto-upgrade.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -18,9 +18,23 @@ import { failure, success, tryCatch } from '../../core/functional/result.js';
|
|
|
18
18
|
* Claude Code settings structure
|
|
19
19
|
*/
|
|
20
20
|
export interface ClaudeCodeSettings {
|
|
21
|
+
/** Environment variables for Claude Code */
|
|
22
|
+
env?: {
|
|
23
|
+
CLAUDE_CODE_MAX_OUTPUT_TOKENS?: string;
|
|
24
|
+
[key: string]: string | undefined;
|
|
25
|
+
};
|
|
26
|
+
/** Attribution settings (empty strings to hide) */
|
|
27
|
+
attribution?: {
|
|
28
|
+
commit?: string;
|
|
29
|
+
pr?: string;
|
|
30
|
+
};
|
|
31
|
+
/** Enable extended thinking mode */
|
|
32
|
+
alwaysThinkingEnabled?: boolean;
|
|
33
|
+
/** Hook configurations */
|
|
21
34
|
hooks?: Record<
|
|
22
35
|
string,
|
|
23
36
|
Array<{
|
|
37
|
+
matcher?: string;
|
|
24
38
|
hooks: Array<{
|
|
25
39
|
type: string;
|
|
26
40
|
command: string;
|
|
@@ -30,6 +44,20 @@ export interface ClaudeCodeSettings {
|
|
|
30
44
|
[key: string]: unknown;
|
|
31
45
|
}
|
|
32
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Default Claude Code settings for optimal experience
|
|
49
|
+
*/
|
|
50
|
+
export const DEFAULT_CLAUDE_CODE_SETTINGS: Partial<ClaudeCodeSettings> = {
|
|
51
|
+
env: {
|
|
52
|
+
CLAUDE_CODE_MAX_OUTPUT_TOKENS: '128000',
|
|
53
|
+
},
|
|
54
|
+
attribution: {
|
|
55
|
+
commit: '',
|
|
56
|
+
pr: '',
|
|
57
|
+
},
|
|
58
|
+
alwaysThinkingEnabled: true,
|
|
59
|
+
};
|
|
60
|
+
|
|
33
61
|
export interface HookConfig {
|
|
34
62
|
notificationCommand?: string;
|
|
35
63
|
}
|
|
@@ -89,7 +117,8 @@ export const buildHookConfiguration = (
|
|
|
89
117
|
};
|
|
90
118
|
|
|
91
119
|
/**
|
|
92
|
-
* Merge settings with new hooks (pure)
|
|
120
|
+
* Merge settings with defaults and new hooks (pure)
|
|
121
|
+
* Preserves existing values while adding missing defaults
|
|
93
122
|
*/
|
|
94
123
|
export const mergeSettings = (
|
|
95
124
|
existingSettings: ClaudeCodeSettings,
|
|
@@ -98,7 +127,20 @@ export const mergeSettings = (
|
|
|
98
127
|
const newHooks = buildHookConfiguration(hookConfig);
|
|
99
128
|
|
|
100
129
|
return {
|
|
130
|
+
// Apply defaults first, then existing settings override
|
|
131
|
+
...DEFAULT_CLAUDE_CODE_SETTINGS,
|
|
101
132
|
...existingSettings,
|
|
133
|
+
// Deep merge env variables
|
|
134
|
+
env: {
|
|
135
|
+
...DEFAULT_CLAUDE_CODE_SETTINGS.env,
|
|
136
|
+
...(existingSettings.env || {}),
|
|
137
|
+
},
|
|
138
|
+
// Deep merge attribution
|
|
139
|
+
attribution: {
|
|
140
|
+
...DEFAULT_CLAUDE_CODE_SETTINGS.attribution,
|
|
141
|
+
...(existingSettings.attribution || {}),
|
|
142
|
+
},
|
|
143
|
+
// Merge hooks
|
|
102
144
|
hooks: {
|
|
103
145
|
...(existingSettings.hooks || {}),
|
|
104
146
|
...newHooks,
|
|
@@ -107,10 +149,12 @@ export const mergeSettings = (
|
|
|
107
149
|
};
|
|
108
150
|
|
|
109
151
|
/**
|
|
110
|
-
* Create settings with hooks (pure)
|
|
152
|
+
* Create settings with defaults and hooks (pure)
|
|
153
|
+
* Includes optimal Claude Code settings for extended output, thinking mode, and clean attribution
|
|
111
154
|
*/
|
|
112
155
|
export const createSettings = (hookConfig: HookConfig = DEFAULT_HOOKS): ClaudeCodeSettings => {
|
|
113
156
|
return {
|
|
157
|
+
...DEFAULT_CLAUDE_CODE_SETTINGS,
|
|
114
158
|
hooks: buildHookConfiguration(hookConfig),
|
|
115
159
|
};
|
|
116
160
|
};
|