@haposoft/cafekit 0.9.6 → 0.9.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/bin/install.js CHANGED
@@ -1073,12 +1073,14 @@ function configureAddressing(addressingConfig, platforms = ['claude']) {
1073
1073
  let content = fs.readFileSync(claudeMdFile, 'utf8');
1074
1074
 
1075
1075
  // Build the addressing section (short instruction + user-chosen term)
1076
- const addressingSection = `## Xưng hô (Addressing - Context Overflow Indicator)
1076
+ const addressingSection = `## Addressing (Context Overflow Indicator)
1077
1077
 
1078
- AI luôn gọi người dùng là "${userAddress}" trong suốt conversation. Nếu AI ngừng gọi như vậy, đó là dấu hiệu context đã bị compact — hãy báo người dùng cân nhắc \`/clear\`.`;
1078
+ The AI always addresses the user as "${userAddress}" throughout the conversation. If the AI stops doing so, it is a sign the context has been compacted/truncated — tell the user to consider \`/clear\`.`;
1079
1079
 
1080
- // Match from ## Xưng hô to the next ## header or end of file
1081
- const regex = /## Xưng hô \(Addressing - Context Overflow Indicator\)[\s\S]*?(?=\n##|\n*$)/;
1080
+ // Match the addressing section by its shared marker ("Context Overflow
1081
+ // Indicator"), covering both the older Vietnamese heading and the new one,
1082
+ // up to the next ## header or end of file. Keeps reinstall idempotent.
1083
+ const regex = /##[^\n]*Context Overflow Indicator[^\n]*[\s\S]*?(?=\n##|\n*$)/;
1082
1084
 
1083
1085
  if (regex.test(content)) {
1084
1086
  // Replace existing section
@@ -1092,7 +1094,7 @@ AI luôn gọi người dùng là "${userAddress}" trong suốt conversation. N
1092
1094
  }
1093
1095
 
1094
1096
  fs.writeFileSync(claudeMdFile, content, 'utf8');
1095
- console.log(` ✓ Xưng hô configured in CLAUDE.md: AI gọi user là "${userAddress}"`);
1097
+ console.log(` ✓ Addressing configured in CLAUDE.md: AI calls the user "${userAddress}"`);
1096
1098
  } catch (error) {
1097
1099
  console.error(' ✗ Failed to configure addressing in CLAUDE.md');
1098
1100
  console.error(` Error: ${error.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haposoft/cafekit",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "Claude Code-first spec-driven workflow for AI coding assistants. Bundles CafeKit hapo: skills, runtime hooks, agents, and installer scaffolding.",
5
5
  "author": "Haposoft <nghialt@haposoft.com>",
6
6
  "license": "MIT",
@@ -127,6 +127,6 @@ When generating specs or structured project output, use the user's preferred lan
127
127
  - Do not provide unsolicited code explanations unless asked.
128
128
  - Do not apologize; correct the issue and continue.
129
129
 
130
- ## Xưng hô (Addressing - Context Overflow Indicator)
130
+ ## Addressing (Context Overflow Indicator)
131
131
 
132
- AI luôn gọi người dùng là "anh" trong suốt conversation. Nếu AI ngừng gọi như vậy, đó là dấu hiệu context đã bị compact — hãy báo người dùng cân nhắc `/clear`.
132
+ The AI always addresses the user as "anh" throughout the conversation. If the AI stops doing so, it is a sign the context has been compacted/truncated — tell the user to consider `/clear`.