@oh-my-pi/pi-coding-agent 5.8.0 → 6.1.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.
@@ -83,7 +83,8 @@ const THINKING_DESCRIPTIONS: Record<ThinkingLevel, string> = {
83
83
  * - behavior: Core agent behavior (compaction, modes, retries, notifications)
84
84
  * - tools: Tool-specific settings (bash, git, python, edit, MCP, skills)
85
85
  * - display: Visual/UI settings (theme, images, thinking)
86
- * - voice: Voice mode and TTSR settings
86
+ * - voice: Voice mode and TTS settings
87
+ * - ttsr: Time Traveling Stream Rules settings
87
88
  * - status: Status line configuration
88
89
  * - lsp: LSP integration settings
89
90
  * - exa: Exa search tool settings
@@ -443,7 +444,7 @@ export const SETTINGS_DEFS: SettingDef[] = [
443
444
  },
444
445
 
445
446
  // ═══════════════════════════════════════════════════════════════════════════
446
- // Voice tab - Voice mode and TTSR settings
447
+ // Voice tab - Voice mode and TTS settings
447
448
  // ═══════════════════════════════════════════════════════════════════════════
448
449
  {
449
450
  id: "voiceEnabled",
@@ -501,9 +502,13 @@ export const SETTINGS_DEFS: SettingDef[] = [
501
502
  { value: "flac", label: "FLAC", description: "Lossless compression" },
502
503
  ],
503
504
  },
505
+
506
+ // ═══════════════════════════════════════════════════════════════════════════
507
+ // TTSR tab - Time Traveling Stream Rules
508
+ // ═══════════════════════════════════════════════════════════════════════════
504
509
  {
505
510
  id: "ttsrEnabled",
506
- tab: "voice",
511
+ tab: "ttsr",
507
512
  type: "boolean",
508
513
  label: "TTSR enabled",
509
514
  description: "Time Traveling Stream Rules: interrupt agent when output matches patterns",
@@ -512,7 +517,7 @@ export const SETTINGS_DEFS: SettingDef[] = [
512
517
  },
513
518
  {
514
519
  id: "ttsrContextMode",
515
- tab: "voice",
520
+ tab: "ttsr",
516
521
  type: "enum",
517
522
  label: "TTSR context mode",
518
523
  description: "What to do with partial output when TTSR triggers",
@@ -522,7 +527,7 @@ export const SETTINGS_DEFS: SettingDef[] = [
522
527
  },
523
528
  {
524
529
  id: "ttsrRepeatMode",
525
- tab: "voice",
530
+ tab: "ttsr",
526
531
  type: "enum",
527
532
  label: "TTSR repeat mode",
528
533
  description: "How rules can repeat: once per session or after a message gap",
@@ -532,7 +537,7 @@ export const SETTINGS_DEFS: SettingDef[] = [
532
537
  },
533
538
  {
534
539
  id: "ttsrRepeatGap",
535
- tab: "voice",
540
+ tab: "ttsr",
536
541
  type: "submenu",
537
542
  label: "TTSR repeat gap",
538
543
  description: "Messages before a rule can trigger again (when repeat mode is after-gap)",
@@ -118,6 +118,7 @@ const SETTINGS_TABS: Tab[] = [
118
118
  { id: "tools", label: "Tools" },
119
119
  { id: "display", label: "Display" },
120
120
  { id: "voice", label: "Voice" },
121
+ { id: "ttsr", label: "TTSR" },
121
122
  { id: "status", label: "Status" },
122
123
  { id: "lsp", label: "LSP" },
123
124
  { id: "exa", label: "Exa" },
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env bun
2
- import { readFileSync, writeFileSync } from "node:fs";
3
- import { join, dirname } from "node:path";
4
-
5
- const vendorDir = join(dirname(import.meta.dir), "src/vendor/photon");
6
- const wasmPath = join(vendorDir, "photon_rs_bg.wasm");
7
- const b64Path = join(vendorDir, "photon_rs_bg.wasm.b64.js");
8
-
9
- const wasmBytes = readFileSync(wasmPath);
10
- const wasmB64 = wasmBytes.toString("base64");
11
- writeFileSync(b64Path, `export default "${wasmB64}";\n`);
12
-
13
- console.log(`Generated ${b64Path} (${wasmB64.length} chars)`);