Skip to content

feat(onesec): align tool schemas, docs, and registry startup validation#170

Merged
duguwanglong merged 2 commits intomainfrom
feat/onesec-tools-schema-and-api-reference
Apr 23, 2026
Merged

feat(onesec): align tool schemas, docs, and registry startup validation#170
duguwanglong merged 2 commits intomainfrom
feat/onesec-tools-schema-and-api-reference

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

Summary

This PR updates OneSEC grouped tools and the onesec-use API reference so agents get clearer guidance on time windows, credential configuration, and field names.

Changes

  • API reference: Clarify paginated vs recent EDR actions, recommend explicit time_from/time_to, add time-window table and templates.
  • EDR YAML + handler: Require registry_type for edr_delete_registry_startup; align registry_path/registry_type descriptions with the API payload; soften wording on optional time for paginated endpoints (server default window as fallback only).
  • All grouped tools: Replace api_key|secret single-field wording with separate API Key and Secret configuration.
  • DNS: Add domain_list as an alias for domain list parameters.
  • Ops / software: Refresh "common fields" hints to match current schema names.
  • Tests: Cover registry startup delete validation and successful request JSON.

Testing

uv run pytest tests/tool/test_onesec_api_tool.py -q — 18 passed.

Made with Cursor

xiami762 added 2 commits April 23, 2026 15:44
- Document explicit time windows and recent vs paginated EDR actions
- Require registry_type for edr_delete_registry_startup; fix YAML field docs
- Update grouped tool descriptions for separate API Key/Secret config
- Add DNS domain_list alias; refresh ops/software common field hints
- Add tests for registry startup delete validation and request payload

Made-with: Cursor
- Validate and forward incident_id for threat timeline and recent timeline APIs
- Clarify recent vs incidents time windows and timeline prerequisites in docs/YAML
- Add EDR tests for 24h recent window, timeline validation, and JSON payloads
- Add high-risk write operation tests (cases 31-40) for OneSEC threat/EDR actions

Made-with: Cursor
@duguwanglong duguwanglong merged commit 874decf into main Apr 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants