kiro-10x-better 1.0.1 → 1.0.2

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 (3) hide show
  1. package/README.md +1 -1
  2. package/bin/cli.mjs +43 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -47,7 +47,7 @@ npx kiro-10x-better --global
47
47
  ## Recommended Kiro CLI V3 Settings
48
48
 
49
49
  1. Enable **Approve for me** and **Workflows** (`chat.enableWorkflows`).
50
- 2. Set `/effort high` (or `xhigh`) on complex tasks and restart your `kiro-cli` session.
50
+ 2. Use `/effort medium` as your daily default to save Kiro credits, and switch to `/effort high` only for complex debugging or architecture tasks. Restart your `kiro-cli` session after setup.
51
51
 
52
52
  ## License
53
53
 
package/bin/cli.mjs CHANGED
@@ -202,6 +202,47 @@ function updateGitignore(cwd, tracker) {
202
202
  console.log(" update .gitignore (added .kiro/)");
203
203
  }
204
204
 
205
+ function configureMediumEffort(homeKiroDir, tracker) {
206
+ const cliJsonPath = path.join(homeKiroDir, "settings", "cli.json");
207
+ if (!fs.existsSync(cliJsonPath)) {
208
+ return;
209
+ }
210
+
211
+ let cliConfig;
212
+ try {
213
+ const raw = fs.readFileSync(cliJsonPath, "utf8").replace(/^\uFEFF/, "");
214
+ cliConfig = JSON.parse(raw);
215
+ } catch {
216
+ console.log(" skip ~/.kiro/settings/cli.json (could not parse JSON)");
217
+ return;
218
+ }
219
+
220
+ const modelDefaults = cliConfig?.["chat.modelDefaults"];
221
+ if (!modelDefaults || typeof modelDefaults !== "object" || Array.isArray(modelDefaults)) {
222
+ return;
223
+ }
224
+
225
+ let updated = false;
226
+ for (const [modelName, entry] of Object.entries(modelDefaults)) {
227
+ if (
228
+ /(claude|opus)/i.test(modelName) &&
229
+ entry &&
230
+ typeof entry === "object" &&
231
+ !Array.isArray(entry) &&
232
+ !entry.effort
233
+ ) {
234
+ entry.effort = "medium";
235
+ updated = true;
236
+ }
237
+ }
238
+
239
+ if (updated) {
240
+ fs.writeFileSync(cliJsonPath, `${JSON.stringify(cliConfig, null, 2)}\n`, "utf8");
241
+ tracker.created.push("~/.kiro/settings/cli.json (set effort: medium)");
242
+ console.log(" update ~/.kiro/settings/cli.json (set default effort: medium)");
243
+ }
244
+ }
245
+
205
246
  async function promptYesNo(question) {
206
247
  const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
207
248
  try {
@@ -317,6 +358,7 @@ async function main() {
317
358
  path.join(homeKiroDir, "settings", "permissions.yaml"),
318
359
  { force: flags.force, label: "~/.kiro/settings/permissions.yaml", tracker }
319
360
  );
361
+ configureMediumEffort(homeKiroDir, tracker);
320
362
  }
321
363
 
322
364
  if (flags.withSkills) {
@@ -340,7 +382,7 @@ async function main() {
340
382
  }
341
383
  console.log("\nNext steps in Kiro CLI V3:");
342
384
  console.log(" 1. Enable \"Approve for me\" and Workflows (chat.enableWorkflows) in Kiro settings.");
343
- console.log(" 2. Set /effort high (or xhigh) and start a fresh kiro-cli session.");
385
+ console.log(" 2. Set /effort medium for daily work (or high for complex debugging) and start a fresh kiro-cli session.");
344
386
  }
345
387
 
346
388
  main().catch((err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kiro-10x-better",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Instant, zero-dependency CLI to set up a high-discipline Kiro CLI V3 environment with hooks, steering rules, skills, and permissions.",
5
5
  "type": "module",
6
6
  "bin": {