Yanhu

Results issues of Yanhu

Fixes #29 ## Problem `DeleteWhiteSpace` iterates by byte index (`str[i]`) and casts each byte to `rune`. For multi-byte UTF-8 characters (Chinese, Japanese, Korean, emoji, etc.), this produces mojibake: ```go DeleteWhiteSpace("...

Fixes #388 ## Problem Passing non-string, non-Sqlizer values (like integers) to `Case().When()` or `.Else()` fails with: ``` expected string or Sqlizer, not int ``` This makes it impossible to use...

Fixes #156 ## Problem `ResultErrorPool.Wait()` drops all results that come after the last errored task: ```go p := pool.NewWithResults[int]().WithErrors().WithMaxGoroutines(1) p.Go(func() (int, error) { return 1, nil }) p.Go(func() (int, error)...

Fixes #153 ## Problem When no `WithMaxGoroutines` is called, `pool.MaxGoroutines()` returns 0 (the `cap` of a nil channel). The stream queue is then: ```go s.queue = make(chan callbackCh, 0+1) //...

## Summary Fixes #1564 `prompt_tokens` normalization is inconsistent across Anthropic access paths: | Provider | `prompt_tokens` includes cache? | |----------|----------------------------------| | Anthropic direct | ❌ No (`input_tokens` only) | |...

## Summary Fixes #964 `PGLiteSocketServer.start()` hangs forever when the underlying server fails to start (e.g. `EACCES`, `EADDRINUSE`). The error is logged and emitted via `CustomEvent`, but the Promise never rejects....

## Summary Fixes #3147 `composio install --completions` appends all completion definitions directly into `~/.config/fish/config.fish`. This causes: 1. **config.fish bloat** — hundreds of `complete -c composio` lines pollute the user's config...

stale

Fixes #198 ## Problem Package-level slice variables (`headerVaryOrigin`, `headerOriginAll`, `headerTrue`) and struct field slices (`preflightVary`, `exposedHeaders`, `maxAge`) are assigned directly to `http.Header` maps. Since `http.Header` values are `[]string`, downstream handlers...

Fixes #554 ## Problem `cron.ParseStandard("TZ=0")` panics with `slice bounds out of range` because `strings.Index(spec, " ")` returns `-1` when there is no space after the timezone prefix, causing `spec[eq+1 :...

Fixes #51 ## Problem Unescaped tags with spaces around the variable name fail to resolve: ```go // Works: tmpl, _ := mustache.ParseString("{{{String}}}") tmpl.Render(map[string]string{"String": "hi"}) // → "hi" // Broken (returns...