Commit 371d6db
authored
feat(ai): ToolCallingTask and AgentTask
* feat(ai): restore ToolCallingTask and AgentTask for development
* refactor(ai): update timeout handling and enhance tool parsing functionality
* refactor: enhance error handling and diagnostics across job queue and execution strategies
* feat(ai-provider): introduce ToolCallParser and enhance tool calling functionality
* fix(ai-provider): improve tool choice mapping logic
* fix: resolve remaining constructor signature issues
* refactor: enhance JsonTaskConfig to include 'defaults' property
* refactor: simplify tool choice handling in OpenAI_ToolCalling
* refactor: enable noImplicitOverride and update classes for TypeScript compliance
* refactor(ai): update timeout handling and enhance tool parsing functionality
* feat(tasks): add human-in-the-loop tasks (HumanInputTask, HumanApprovalTask)
Introduce a system for pausing task graph execution to request human input.
Three concerns are addressed: WHO (target human via string ID), HOW
(IHumanConnector interface resolved from ServiceRegistry), and WHAT
(JSON schema describing the UI to render).
- IHumanConnector: interface for reaching humans, supports single and
multi-turn interaction modes. UI layers implement this contract.
- HumanInputTask: pauses graph execution, sends schema to connector,
returns human response as output. Supports dynamic output schemas.
- HumanApprovalTask: convenience task for approve/deny pattern with
fixed {approved, reason} output schema.
- Both tasks integrate with Workflow builder (humanInput, humanApproval).
* feat(tasks): integrate human-in-the-loop with MCP elicitation protocol
* feat(tasks): redesign human-in-the-loop to unified schema-driven interface
Replace request/response model with unified IHumanRequest that supports three
interaction kinds: notify (fire-and-forget), display (show content), and elicit
(request structured input via MCP elicitation). The `kind` field determines
interaction pattern while contentSchema describes what to render.
* fix(tasks): only require action in output schema, use strict boolean
* refactor(tests): simplify HumanInputTask instantiation in tests
* fix(settings): enable ESLint code actions on save in VSCode settings
* fix(security): resolve 12 CodeQL high-severity vulnerabilities1 parent 197fc6d commit 371d6db
205 files changed
Lines changed: 3861 additions & 1586 deletions
File tree
- .vscode
- examples
- cli/src
- commands
- web/src
- packages
- ai-provider
- src
- common
- provider-anthropic
- common
- provider-chrome
- provider-gemini
- provider-hf-inference
- provider-hf-transformers
- common
- provider-llamacpp
- common
- provider-ollama
- common
- provider-openai
- common
- provider-tf-mediapipe
- common
- ai/src
- execution
- job
- provider
- task
- base
- job-queue/src/job
- knowledge-base/src
- chunk
- document
- knowledge-base
- storage/src
- queue
- tabular
- vector
- task-graph/src
- storage
- task-graph
- task
- tasks/src
- mcp-server
- task
- mcp
- scalar
- string
- vector
- util
- test/src
- binding
- samples
- test
- ai-provider
- job-queue
- mcp
- rag
- task-graph-job-queue
- task-graph-output-cache
- task-graph
- task
- util/src
- graph
- worker
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
| 16 | + | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | | - | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 7 | + | |
| 8 | + | |
13 | 9 | | |
14 | 10 | | |
15 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 7 | + | |
| 8 | + | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 7 | + | |
| 8 | + | |
14 | 9 | | |
15 | 10 | | |
16 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 19 | + | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
0 commit comments