co-mono/packages/coding-agent/src/core
Zeno Jiricek f869cc4ae5 feat: add bash-style array slicing for $@ in prompt templates
Implements support for ${@:N} and ${@:N:L} syntax to slice argument arrays
in prompt templates, following bash conventions.

Syntax:
- ${@:N} - All arguments from Nth position onwards (1-indexed)
- ${@:N:L} - L arguments starting from Nth position

Features:
- Bash-style slicing familiar to shell users
- 1-indexed for consistency with $1, $2, etc.
- Processes before simple $@ to avoid conflicts
- No recursive substitution of patterns in arguments
- Comprehensive edge case handling

Examples:
- ${@:2} with ["a", "b", "c"] -> "b c"
- ${@:2:1} with ["a", "b", "c"] -> "b"
- ${@:99} with ["a", "b"] -> "" (empty, out of range)

Test coverage: 24 new tests, all passing (73 total)

Closes #769
2026-01-16 12:05:53 +01:00
..
compaction Fix compaction turn prefix summarization (#738) 2026-01-15 03:23:34 +01:00
export-html Finalize OpenAI Codex compatibility (#737) 2026-01-16 00:58:36 +01:00
extensions feat(coding-agent): add input event for extension input interception (#761) 2026-01-16 02:41:56 +01:00
tools Support pi-internal:// scheme in read tool 2026-01-16 02:31:59 +01:00
agent-session.ts Add retry logic to OpenAI Codex provider 2026-01-16 03:15:59 +01:00
auth-storage.ts Revert "Remove Anthropic OAuth support" 2026-01-09 06:00:20 +01:00
bash-executor.ts fix(coding-agent): UTF-8 corruption in remote bash execution 2026-01-10 13:55:02 +01:00
event-bus.ts Fix event bus async error handling, clear pending messages on session switch, improve SDK docs 2026-01-04 22:04:50 +01:00
exec.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
footer-data-provider.ts fix(coding-agent): footer git branch not updating after external branch switches 2026-01-11 23:27:22 +01:00
index.ts Rename /branch command to /fork 2026-01-11 23:12:31 +01:00
keybindings.ts refactor: use configurable keybindings for all UI hints (#724) 2026-01-14 15:42:03 +01:00
messages.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
model-registry.ts refactor: add ModelRegistry.getApiKeyForProvider() for cleaner abstraction 2026-01-13 18:12:09 +01:00
model-resolver.ts feat(ai): add support for MiniMax China (minimax-cn) provider (#725) 2026-01-14 15:41:47 +01:00
prompt-templates.ts feat: add bash-style array slicing for $@ in prompt templates 2026-01-16 12:05:53 +01:00
sdk.ts refactor: add ModelRegistry.getApiKeyForProvider() for cleaner abstraction 2026-01-13 18:12:09 +01:00
session-manager.ts fix(coding-agent): make /new create a new session file 2026-01-12 17:06:33 +01:00
settings-manager.ts Rename /branch command to /fork 2026-01-11 23:12:31 +01:00
skills.ts Centralize frontmatter parsing + parse frontmatter with yaml library (#728) 2026-01-16 00:31:53 +01:00
system-prompt.ts Finalize OpenAI Codex compatibility (#737) 2026-01-16 00:58:36 +01:00
timings.ts Release v0.27.1 2025-12-22 19:28:26 +01:00