CyberStrikeAI/internal/handler
Sycun 35508eb614 feat(pi): add the Pi agent runtime with native workflow and retrieval engines
Introduce an isolated Node worker that hosts the Pi SDK while Go keeps
business state, permissions, MCP execution, evidence and delivery checks.
The worker is published per source fingerprint, streams events back to Go
and supports tool callbacks, cancellation, session resume and per-model
transport settings.

Agent dispatch, tool search, plan/task tools and migration controls are
wired on top of it: large tool catalogs load through Pi tool_search, the
conversation task board keeps its existing tools, and legacy mode/route
values still resolve. Workflow gains a native DAG with versioned JSON
checkpoints, and knowledge retrieval moves to native documents, splitter,
HTTP embeddings, vector search and reranking.
2026-11-12 17:55:33 +08:00
..
agent.go feat(pi): add the Pi agent runtime with native workflow and retrieval engines 2026-11-12 17:55:33 +08:00
agent_multi_json_runner.go feat(pi): add the Pi agent runtime with native workflow and retrieval engines 2026-11-12 17:55:33 +08:00
agent_progress_callback_test.go fix: reconcile same-timestamp messages and close test databases 2026-10-09 11:09:22 +08:00
agent_single_json_runner.go feat(pi): add the Pi agent runtime with native workflow and retrieval engines 2026-11-12 17:55:33 +08:00
agent_trace_provenance_test.go fix: preserve compaction provenance through resume and harden memory retrieval 2026-10-12 17:56:43 +08:00
asset.go Add files via upload 2026-08-18 20:20:39 +08:00
asset_test.go Add files via upload 2026-08-18 20:20:39 +08:00
async_agent_runs.go feat: make agent task timeout configurable 2026-10-31 16:43:25 +08:00
async_agent_runs_test.go feat(api): add durable asynchronous conversation runs 2026-10-23 11:45:15 +08:00
attackchain.go fix: close review findings in context memory, attack chain and blackboard 2026-10-12 23:16:33 +08:00
attackchain_concurrency_test.go fix: preserve attack-chain summary provenance and evidence access 2026-10-12 20:58:45 +08:00
audit.go Add files via upload 2026-08-18 20:20:39 +08:00
audit_export_csv.go Add files via upload 2026-08-18 20:20:39 +08:00
audit_query.go Add files via upload 2026-08-18 20:20:39 +08:00
audit_query_test.go Add files via upload 2026-08-18 20:20:39 +08:00
auth.go fix: validate login and role inputs and protect task access 2026-10-06 01:36:31 +08:00
auth_login_validation_test.go fix: validate login and role inputs and protect task access 2026-10-06 01:36:31 +08:00
batch_hitl.go feat: add batch task approval settings and fix modal dropdown scrolling 2026-09-13 18:02:43 +08:00
batch_hitl_test.go feat: add batch task approval settings and fix modal dropdown scrolling 2026-09-13 18:02:43 +08:00
batch_queue_executor.go feat(pi): add the Pi agent runtime with native workflow and retrieval engines 2026-11-12 17:55:33 +08:00
batch_task_manager.go fix: normalize missing deletes and empty REST lists 2026-10-10 18:02:02 +08:00
batch_task_manager_test.go Add files via upload 2026-08-18 20:20:39 +08:00
batch_task_mcp.go Add files via upload 2026-08-18 20:20:39 +08:00
c2.go fix: normalize missing deletes and empty REST lists 2026-10-10 18:02:02 +08:00
c2_listener_validation_test.go fix: validate callback hosts before generating payloads 2026-10-06 02:57:09 +08:00
c2_profile_validation_test.go fix: preserve task terminal state and file navigation paths 2026-10-06 01:48:12 +08:00
c2_task_access_test.go fix: validate login and role inputs and protect task access 2026-10-06 01:36:31 +08:00
chat_uploads.go Add files via upload 2026-08-18 20:20:39 +08:00
config.go feat(pi): add the Pi agent runtime with native workflow and retrieval engines 2026-11-12 17:55:33 +08:00
config_eino_resilience_test.go Add files via upload 2026-08-18 20:20:39 +08:00
config_file.go feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
config_header_boundaries_test.go fix(headers): mask private names and stabilize empty audit configuration 2026-11-02 17:22:52 +08:00
config_header_secrets.go fix(headers): mask private names and stabilize empty audit configuration 2026-11-02 17:22:52 +08:00
config_probe_headers.go fix(headers): isolate credentials across audit, redirects and probes 2026-11-02 17:18:12 +08:00
config_secrets.go fix(headers): mask private names and stabilize empty audit configuration 2026-11-02 17:22:52 +08:00
config_secrets_test.go fix: mask stored credentials and validate agent saves 2026-10-06 02:04:14 +08:00
config_testopenai_headers_test.go test(headers): 覆盖自定义请求头注入与测试连接链路 2026-10-30 20:16:27 +08:00
conversation.go feat: add vulnerability retest branches with an isolated evidence log 2026-10-10 07:21:20 +08:00
conversation_delete_task_test.go Add files via upload 2026-08-18 20:20:39 +08:00
conversation_plantask_test.go Add files via upload 2026-08-18 20:20:39 +08:00
conversation_process_details_test.go Fix finalization cleanup for pending tool executions 2026-08-23 19:57:17 +08:00
conversation_rbac_test.go Add files via upload 2026-08-18 20:20:39 +08:00
eino_empty_response_continue.go feat: make agent task timeout configurable 2026-10-31 16:43:25 +08:00
eino_resume_segment.go Add files via upload 2026-08-18 20:20:39 +08:00
eino_single_agent.go feat(pi): add the Pi agent runtime with native workflow and retrieval engines 2026-11-12 17:55:33 +08:00
external_mcp.go fix: preserve MCP stop state and validate recovery evidence before mutation 2026-10-09 14:12:27 +08:00
external_mcp_activation_test.go fix: keep MCP activation flags consistent across start and stop 2026-10-09 14:15:24 +08:00
external_mcp_request.go fix: preserve MCP stop state and validate recovery evidence before mutation 2026-10-09 14:12:27 +08:00
external_mcp_test.go fix: snapshot MCP configuration and make tool deadline failures consistent 2026-10-09 10:58:12 +08:00
finalization_auto_continue.go Fix finalization cleanup for pending tool executions 2026-08-23 19:57:17 +08:00
finalization_auto_continue_test.go Fix finalization cleanup for pending tool executions 2026-08-23 19:57:17 +08:00
finalization_helpers.go fix: validate workflows and preserve execution outcomes 2026-10-06 02:32:32 +08:00
fofa.go fix: use supported FOFA region return field and preserve asset location 2026-10-16 16:14:39 +08:00
fofa_fields.go fix: use supported FOFA region return field and preserve asset location 2026-10-16 16:14:39 +08:00
fofa_fields_test.go fix: use supported FOFA region return field and preserve asset location 2026-10-16 16:14:39 +08:00
fofa_test.go Add files via upload 2026-08-18 20:20:39 +08:00
form_validation_test.go fix: validate form edits and enforce task result ownership 2026-10-06 02:20:28 +08:00
hitl.go feat: reconcile SQLite tables and columns at startup 2026-10-10 20:45:39 +08:00
hitl_audit_agent.go Fix audit model thinking compatibility 2026-10-30 16:11:07 +08:00
hitl_audit_agent_test.go feat: add TypeSafe Jev as HITL audit backend 2026-09-22 21:15:53 +08:00
hitl_audit_backend.go feat: add TypeSafe Jev as HITL audit backend 2026-09-22 21:15:53 +08:00
hitl_audit_backend_test.go feat: add TypeSafe Jev as HITL audit backend 2026-09-22 21:15:53 +08:00
hitl_audit_reasoning.go Fix audit model thinking compatibility 2026-10-30 16:11:07 +08:00
hitl_audit_reasoning_test.go Fix audit model thinking compatibility 2026-10-30 16:11:07 +08:00
hitl_cognition.go Add files via upload 2026-08-18 20:20:39 +08:00
hitl_context.go Add files via upload 2026-08-18 20:20:39 +08:00
hitl_context_test.go fix: reconcile same-timestamp messages and close test databases 2026-10-09 11:09:22 +08:00
hitl_execution.go Add files via upload 2026-08-18 20:20:39 +08:00
hitl_execution_test.go Add files via upload 2026-08-18 20:20:39 +08:00
hitl_logs.go feat: reconcile SQLite tables and columns at startup 2026-10-10 20:45:39 +08:00
hitl_restart_test.go fix: reconcile same-timestamp messages and close test databases 2026-10-09 11:09:22 +08:00
hitl_task_cancel_integration_test.go fix: retain cancellation labels after approval interruptions 2026-10-06 03:11:11 +08:00
hitl_whitelist_test.go Add files via upload 2026-08-18 20:20:39 +08:00
knowledge.go fix: retain knowledge indexing errors and explain failure causes 2026-10-06 03:02:14 +08:00
knowledge_index_error_test.go fix: retain knowledge indexing errors and explain failure causes 2026-10-06 03:02:14 +08:00
markdown_agent_validation.go fix: mask stored credentials and validate agent saves 2026-10-06 02:04:14 +08:00
markdown_agent_validation_test.go fix: mask stored credentials and validate agent saves 2026-10-06 02:04:14 +08:00
markdown_agents.go fix: mask stored credentials and validate agent saves 2026-10-06 02:04:14 +08:00
monitor.go feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
multi_agent.go feat(pi): add the Pi agent runtime with native workflow and retrieval engines 2026-11-12 17:55:33 +08:00
multi_agent_prepare.go feat(api): add durable asynchronous conversation runs 2026-10-23 11:45:15 +08:00
notification.go feat: reconcile SQLite tables and columns at startup 2026-10-10 20:45:39 +08:00
notification_rbac_test.go Add files via upload 2026-08-18 20:20:39 +08:00
openapi.go feat(api): add durable asynchronous conversation runs 2026-10-23 11:45:15 +08:00
openapi_agent_runs.go feat(api): add durable asynchronous conversation runs 2026-10-23 11:45:15 +08:00
openapi_i18n.go Remove conversation grouping feature 2026-08-26 15:00:09 +08:00
openapi_i18n_test.go Add files via upload 2026-08-18 20:20:39 +08:00
plain_text_finalization_test.go fix: validate login and role inputs and protect task access 2026-10-06 01:36:31 +08:00
project.go feat: verify attack-chain nodes against real tool calls 2026-10-13 00:10:33 +08:00
project_context.go Merge main and reconcile project resume with checkpoint index limits 2026-10-16 11:15:11 +08:00
project_legacy_update_test.go fix: preserve human intent through planning and restart while keeping legacy edits 2026-10-12 19:34:24 +08:00
project_memory_scope_test.go feat: verify attack-chain nodes against real tool calls 2026-10-13 00:10:33 +08:00
project_resolve.go Add files via upload 2026-08-18 20:20:39 +08:00
project_resume_test.go fix: restore project artifacts and test outcomes when resuming tasks 2026-10-15 22:02:22 +08:00
rbac.go fix(rbac): revoke only affected role sessions 2026-10-10 15:42:42 +08:00
rbac_admin_guard_test.go fix(rbac): protect built-in administrator from losing access 2026-10-19 16:44:14 +08:00
rbac_boundary_test.go Add files via upload 2026-08-18 20:20:39 +08:00
rbac_context.go Add files via upload 2026-08-18 20:20:39 +08:00
rbac_role_sessions_test.go fix(rbac): revoke only affected role sessions 2026-10-10 15:42:42 +08:00
rbac_test.go Add files via upload 2026-08-18 20:20:39 +08:00
rest_semantics_test.go fix: normalize missing deletes and empty REST lists 2026-10-10 18:02:02 +08:00
robot.go Add files via upload 2026-08-18 20:20:39 +08:00
robot_mode_test.go Add files via upload 2026-08-18 20:20:39 +08:00
robot_rbac_test.go Add files via upload 2026-08-18 20:20:39 +08:00
robot_wecom_test.go Add files via upload 2026-08-18 20:20:39 +08:00
role.go fix: validate login and role inputs and protect task access 2026-10-06 01:36:31 +08:00
role_validation.go fix: validate login and role inputs and protect task access 2026-10-06 01:36:31 +08:00
role_validation_test.go fix: validate login and role inputs and protect task access 2026-10-06 01:36:31 +08:00
run_workflow_json.go feat(api): add durable asynchronous conversation runs 2026-10-23 11:45:15 +08:00
skills.go Add files via upload 2026-08-18 20:20:39 +08:00
sse_keepalive.go Add files via upload 2026-08-18 20:20:39 +08:00
sse_keepalive_test.go Add files via upload 2026-08-18 20:20:39 +08:00
storage.go feat: add runtime storage cleanup with per-category retention (#310) (#313) 2026-09-25 14:46:23 +08:00
task_cancel_terminal_test.go fix: preserve task cancellation through final events 2026-10-06 03:09:04 +08:00
task_deadline.go feat: make agent task timeout configurable 2026-10-31 16:43:25 +08:00
task_deadline_test.go fix: distinguish task deadlines from child operation timeouts 2026-10-15 14:24:31 +08:00
task_event_bus.go Add files via upload 2026-08-18 20:20:39 +08:00
task_lifecycle.go feat(api): add durable asynchronous conversation runs 2026-10-23 11:45:15 +08:00
task_manager.go feat(headers): 支持为 AI 渠道配置自定义 HTTP 请求头 2026-10-30 20:13:56 +08:00
task_manager_eino_execute_test.go Add files via upload 2026-08-18 20:20:39 +08:00
task_manager_order_test.go 修复多会话任务栏抖动、会话跳回与停止失效 (#264) 2026-08-19 13:54:30 +08:00
task_manager_tool_cancel_test.go 修复多会话任务栏抖动、会话跳回与停止失效 (#264) 2026-08-19 13:54:30 +08:00
task_process_cleanup_test.go feat: manage task process lifetimes and preserve turn history 2026-09-16 17:52:58 +08:00
task_timeout_test.go feat: make agent task timeout configurable 2026-10-31 16:43:25 +08:00
terminal.go Add files via upload 2026-08-18 20:20:39 +08:00
terminal_stream_unix.go Add files via upload 2026-08-18 20:20:39 +08:00
terminal_stream_windows.go Add files via upload 2026-08-18 20:20:39 +08:00
terminal_ws_unix.go Add files via upload 2026-08-18 20:20:39 +08:00
terminal_ws_windows.go Add files via upload 2026-08-18 20:20:39 +08:00
token_usage.go Add token usage tracking and UI refinements 2026-08-24 00:05:05 +08:00
tool_guard.go fix: reject stale concurrent interception rule saves 2026-10-10 17:18:13 +08:00
tool_guard_conflict_test.go fix: reject stale concurrent interception rule saves 2026-10-10 17:18:13 +08:00
tool_guard_test.go fix: reject stale concurrent interception rule saves 2026-10-10 17:18:13 +08:00
update.go fix: serialize installation updates and recover interrupted adoption and rollback 2026-10-09 10:58:12 +08:00
update_http_test.go fix: serialize installation updates and recover interrupted adoption and rollback 2026-10-09 10:58:12 +08:00
vulnerability.go fix(vulnerability): allow standalone manual findings and validate links 2026-10-10 16:03:42 +08:00
vulnerability_alert.go Add files via upload 2026-08-18 20:20:39 +08:00
vulnerability_alert_test.go Add files via upload 2026-08-18 20:20:39 +08:00
vulnerability_create_test.go fix(vulnerability): allow standalone manual findings and validate links 2026-10-10 16:03:42 +08:00
vulnerability_download.go feat(vulnerabilities): offer Markdown and Word report downloads 2026-10-30 09:29:44 +08:00
vulnerability_download_test.go feat(vulnerabilities): offer Markdown and Word report downloads 2026-10-30 09:29:44 +08:00
vulnerability_retest.go feat: add vulnerability retest branches with an isolated evidence log 2026-10-10 07:21:20 +08:00
vulnerability_retest_test.go feat: add vulnerability retest branches with an isolated evidence log 2026-10-10 07:21:20 +08:00
webshell.go fix: normalize missing deletes and empty REST lists 2026-10-10 18:02:02 +08:00
webshell_context.go Add files via upload 2026-08-18 20:20:39 +08:00
webshell_context_test.go Add files via upload 2026-08-18 20:20:39 +08:00
webshell_encoding_test.go Add files via upload 2026-08-18 20:20:39 +08:00
webshell_os_test.go Add files via upload 2026-08-18 20:20:39 +08:00
webshell_probe.go Add files via upload 2026-08-18 20:20:39 +08:00
webshell_probe_test.go Add files via upload 2026-08-18 20:20:39 +08:00
webshell_rbac_test.go Add files via upload 2026-08-18 20:20:39 +08:00
webshell_secrets.go fix: mask stored credentials and validate agent saves 2026-10-06 02:04:14 +08:00
webshell_secrets_test.go fix: mask stored credentials and validate agent saves 2026-10-06 02:04:14 +08:00
wechat_robot.go Add files via upload 2026-08-18 20:20:39 +08:00
workflow.go fix: validate workflows and preserve execution outcomes 2026-10-06 02:32:32 +08:00
workflow_bug_sheet_test.go fix: validate workflows and preserve execution outcomes 2026-10-06 02:32:32 +08:00
workflow_integration.go feat: make agent task timeout configurable 2026-10-31 16:43:25 +08:00
workflow_package.go Add files via upload 2026-08-18 20:20:39 +08:00
workflow_package_test.go Add files via upload 2026-08-18 20:20:39 +08:00
workflow_progress_delivery_test.go test: verify workflow activity delivery and record bug audit results 2026-10-06 03:44:22 +08:00
workflow_run.go Add files via upload 2026-08-18 20:20:39 +08:00