• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 18750248659
58%

Build:
DEFAULT BRANCH: main
Ran 23 Oct 2025 01:44PM UTC
Jobs 1
Files 147
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Oct 2025 01:36PM UTC coverage: 46.738% (+0.6%) from 46.147%
18750248659

push

github

web-flow
feat(config): Add merge strategy support for `system_prompt` field (#295)

`assistant.system_prompt` can now be configured with custom merge
strategies, allowing users to append to inherited prompts instead of
replacing them. The field is now optional, supporting five merge
strategies; `append`, `append_space`, `append_line`, `append_paragraph`,
and `replace` (default).

Users can configure this via CLI using either a simple string (which
uses `replace` strategy) or an object with explicit strategy:

```sh
jp query --cfg assistant.system_prompt="New prompt"
jp query --cfg assistant.system_prompt:='{"value":"Additional context","strategy":"append_space"}'
```

The change introduces a general infrastructure for merge strategies
through a new `jp_config::types` module. The `StringWithMerge` type
wraps strings with configurable merge behavior, serving as a foundation
for future config fields that need similar flexibility.

This lays groundwork for extending merge strategies to other config
options, enabling more sophisticated configuration layering and
inheritance patterns.

---------

Signed-off-by: Jean Mertz <git@jeanmertz.com>

207 of 253 new or added lines in 5 files covered. (81.82%)

7122 of 15238 relevant lines covered (46.74%)

15.05 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
91.18
1.81% crates/jp_config/src/assistant.rs
3
29.5
-0.07% crates/jp_cli/src/cmd/query.rs
3
98.13
crates/jp_config/src/internal/merge.rs
39
25.0
crates/jp_config/src/types/string.rs
Jobs
ID Job ID Ran Files Coverage
1 18750248659.1 23 Oct 2025 01:44PM UTC 147
46.74
GitHub Action Run
Source Files on build 18750248659
  • Tree
  • List 147
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18750248659
  • 980486e1 on github
  • Prev Build on main (#18719375322)
  • Next Build on main (#18752023794)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc