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

dcdpr / jp / 18714491347
58%

Build:
DEFAULT BRANCH: main
Ran 22 Oct 2025 11:23AM UTC
Jobs 1
Files 145
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

22 Oct 2025 11:20AM UTC coverage: 45.702% (-0.2%) from 45.919%
18714491347

push

github

web-flow
feat(tools): Add interactive tool inquiry system (#289)

Tools can now ask questions and request user input during execution
through a new inquiry system.

If a tool returns a string that can be parsed into the
`jp_tool::Outcome` type, and the outcome is `Outcome::NeedsInput`, the
user will be prompted for additional input, after which the tool will be
called again with the provided answer.

This change is backward-compatible, as tools that return a string that
cannot be parsed into `Outcome` will result in that string being treated
as the tool's output, similar to how it was before.

This change is generic, and can be used by any tool type supported by JP
(MCP, local, or builtin), but realistically only local or builtin tools
will have dedicated support for this.

To start, file operations automatically prompt for confirmation when
overwriting existing files or deleting files with uncommitted changes,
making destructive operations possible, but not automatic.

A future addition can allow defining automated responses to specific
tool questions through the configuration system, e.g. if you always want
to overwrite existing files with the `fs_create_file` tool, you should
be able to configure this.

A new `jp_tool` crate contains shared types including `Outcome`,
`Question`, and `AnswerType` for the inquiry system.

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

26 of 179 new or added lines in 17 files covered. (14.53%)

7 existing lines in 6 files now uncovered.

6806 of 14892 relevant lines covered (45.7%)

15.31 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% .config/jp/tools/src/github.rs
1
0.0
0.0% .config/jp/tools/src/web.rs
1
0.0
0.0% crates/jp_cli/src/cmd.rs
2
0.0
0.0% .config/jp/tools/src/cargo/test.rs
2
0.0
0.0% .config/jp/tools/src/git.rs
3
66.67
crates/jp_tool/src/lib.rs
4
0.0
0.0% .config/jp/tools/src/cargo.rs
6
42.62
0.0% .config/jp/tools/src/lib.rs
6
0.0
0.0% .config/jp/tools/src/main.rs
11
71.43
-4.08% .config/jp/tools/src/fs/modify_file.rs
14
0.0
0.0% .config/jp/tools/src/fs/delete_file.rs
15
0.0
0.0% .config/jp/tools/src/fs/create_file.rs
19
1.64
-0.04% crates/jp_llm/src/tool.rs
24
0.0
0.0% .config/jp/tools/src/fs.rs
44
36.51
-4.0% crates/jp_cli/src/cmd/query/event.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% .config/jp/tools/src/cargo.rs
1
0.0
0.0% .config/jp/tools/src/fs/delete_file.rs
1
42.62
0.0% .config/jp/tools/src/lib.rs
1
36.51
-4.0% crates/jp_cli/src/cmd/query/event.rs
1
1.64
-0.04% crates/jp_llm/src/tool.rs
2
0.0
0.0% .config/jp/tools/src/fs/create_file.rs
Jobs
ID Job ID Ran Files Coverage
1 18714491347.1 22 Oct 2025 11:23AM UTC 145
45.7
GitHub Action Run
Source Files on build 18714491347
  • Tree
  • List 145
  • Changed 17
  • Source Changed 17
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18714491347
  • 7a9f3be0 on github
  • Prev Build on main (#18708933405)
  • Next Build on main (#18714798896)
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