You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/src/utils
AaronLuo00 3b95aa8804 fix: address second-round review — Latin backward compat and emoji consistency
- Two-pass line splitting: first slice at maxChars (unchanged for Latin),
  then re-split only CJK-heavy segments at chunking.tokens. This preserves
  the original ~800-char segments for ASCII lines while keeping CJK chunks
  within the token budget.

- Narrow surrogate-pair adjustment to CJK Extension B+ range (D840–D87E)
  only, so emoji surrogate pairs are not affected. Mixed CJK+emoji text
  is now handled consistently regardless of composition.

- Add tests: emoji handling (2), Latin backward-compat long-line (1).

Addresses Codex P1 (oversized CJK segments) and P2s (Latin over-splitting,
emoji surrogate inconsistency).
8 months ago
..
account-id.ts feat: thread-bound subagents on Discord (#21805) 9 months ago
boolean.ts
…
chunk-items.ts
…
cjk-chars.test.ts fix: address bot review — surrogate-pair counting and CJK line splitting 8 months ago
cjk-chars.ts fix: address second-round review — Latin backward compat and emoji consistency 8 months ago
delivery-context.test.ts test: debrand generic channel fixture names 8 months ago
delivery-context.ts fix: use session origin delivery metadata in outbound targets 8 months ago
directive-tags.test.ts fix: preserve indentation when stripping reply directives (#55960) (thanks @Nanako0129) 8 months ago
directive-tags.ts fix: preserve indentation when stripping reply directives (#55960) (thanks @Nanako0129) 8 months ago
fetch-timeout.ts refactor: dedupe test and runtime seams 8 months ago
mask-api-key.test.ts Secrets: add inline allowlist review set (#38314) 9 months ago
mask-api-key.ts feat(secrets): finalize external secrets runtime and migration hardening 9 months ago
message-channel.test.ts refactor: derive channel metadata from plugin manifests 8 months ago
message-channel.ts refactor: derive channel metadata from plugin manifests 8 months ago
normalize-secret-input.test.ts fix(secrets): harden api key normalization for ByteString headers 9 months ago
normalize-secret-input.ts fix(secrets): harden api key normalization for ByteString headers 9 months ago
parse-json-compat.ts fix(config): share json compatibility parsing 8 months ago
provider-utils.ts docs: tighten subscription guidance and update MiniMax M2.5 refs 9 months ago
queue-helpers.test.ts test(queue): cover collect drain helper states 9 months ago
queue-helpers.ts refactor(queue): share drain helpers across announce and reply 9 months ago
reaction-level.test.ts test: dedupe utility and config suites 8 months ago
reaction-level.ts
…
run-with-concurrency.test.ts test: dedupe and optimize test suites 9 months ago
run-with-concurrency.ts
…
safe-json.ts
…
shell-argv.ts fix(exec): honor shell comments in allow-always analysis 9 months ago
transcript-tools.test.ts
…
transcript-tools.ts
…
usage-format.test.ts fix: keep status display on sync model metadata 8 months ago
usage-format.ts fix: keep status display on sync model metadata 8 months ago
utils-misc.test.ts test: dedupe utility and config suites 8 months ago
with-timeout.ts
…
zod-parse.ts refactor: add zod helpers for json file readers 8 months ago