chore: strictly remove legacy JSON field aliases from tool schemas
This commit is contained in:
1 parent
2ae343d968
commit
48f49d5d02
2 files changed
+2
-17
No files matched your search
@@ -34,9 +34,9 @@ Before making expensive active tool calls, read available MCP resources:
|
|||||||
- **Error Fixes**: The moment a tricky, undocumented, or environment-specific bug is resolved, IMMEDIATELY call `log_error_fix`. Supply `repo_name`, `error_category`, and `stack_trace` so future searches can perform embedding-based match via `search_error_fixes`.
|
- **Error Fixes**: The moment a tricky, undocumented, or environment-specific bug is resolved, IMMEDIATELY call `log_error_fix`. Supply `repo_name`, `error_category`, and `stack_trace` so future searches can perform embedding-based match via `search_error_fixes`.
|
||||||
- **Tech Debt**: If you notice an anti-pattern but deliberately skip fixing it to focus on a feature, IMMEDIATELY call `tech_debt` (action: "log") with `description`, `file_path`, `line_range`, `workaround`, `effort_estimate`, and `severity`.
|
- **Tech Debt**: If you notice an anti-pattern but deliberately skip fixing it to focus on a feature, IMMEDIATELY call `tech_debt` (action: "log") with `description`, `file_path`, `line_range`, `workaround`, `effort_estimate`, and `severity`.
|
||||||
- **Architectural Decisions (ADR) & Lifecycle Closure**:
|
- **Architectural Decisions (ADR) & Lifecycle Closure**:
|
||||||
- When selecting design patterns, crate choices, or system structure, call `decisions` (action: "log") with `author`, `affected_components`, `alternatives_considered`, `decision`, and `consequence`.
|
- When selecting design patterns, crate choices, or system structure, call `decisions` (action: "log") with `author`, `affected_components`, `alternatives_considered`, `decision`, and `consequences`.
|
||||||
- **MANDATORY Definition of Done**: When code implementing an ADR is committed, you MUST IMMEDIATELY call `decisions` (action: "update", id: "ADR-XXXX", status: "implemented", git_commit: <commit_hash>, git_branch: <branch>). NEVER leave an ADR in `accepted` once the implementing code is committed. The repository also executes `scripts/git-reconcile.py` on post-commit hooks (`just install-git-hooks`) to reconcile commit references automatically.
|
- **MANDATORY Definition of Done**: When code implementing an ADR is committed, you MUST IMMEDIATELY call `decisions` (action: "update", id: "ADR-XXXX", status: "implemented", git_commit: <commit_hash>, git_branch: <branch>). NEVER leave an ADR in `accepted` once the implementing code is committed. The repository also executes `scripts/git-reconcile.py` on post-commit hooks (`just install-git-hooks`) to reconcile commit references automatically.
|
||||||
- **Task Management**: When creating tasks, supply `priority` ('low'|'medium'|'high'|'urgent'), `assigned_agent` (e.g. subagent role), `verification_command` (automated test command), and `acceptance_criteria`.
|
- **Task Management**: When creating tasks, supply `priority` ('low'|'medium'|'high'|'urgent'), `assigned_agent` (e.g. subagent role), `verification_command` (automated test command), and `criteria`.
|
||||||
- **VCS & SVN Agnosticism**: Supply `vcs_type` ('git'|'svn'|'hg'), `vcs_revision` (git hash or svn revision like 'r12345'), and `upstream_url` to `log_code_change` and workspace tools.
|
- **VCS & SVN Agnosticism**: Supply `vcs_type` ('git'|'svn'|'hg'), `vcs_revision` (git hash or svn revision like 'r12345'), and `upstream_url` to `log_code_change` and workspace tools.
|
||||||
- **Terminal & Shell Context**: Terminal sessions and commands are automatically tracked in the server over zero-latency UDP. Query `/terminal/history` or `memory://terminal/recent` when analyzing shell execution context.
|
- **Terminal & Shell Context**: Terminal sessions and commands are automatically tracked in the server over zero-latency UDP. Query `/terminal/history` or `memory://terminal/recent` when analyzing shell execution context.
|
||||||
- **Hypotheses & Root Cause Analysis**: When diagnosing complex bugs or race conditions, call `hypotheses` (action: "log" / "query") to record test evidence and maintain reasoning trails across sessions.
|
- **Hypotheses & Root Cause Analysis**: When diagnosing complex bugs or race conditions, call `hypotheses` (action: "log" / "query") to record test evidence and maintain reasoning trails across sessions.
|
||||||
|
|||||||
@@ -647,27 +647,20 @@ pub struct TasksTool {
|
|||||||
/// Action to perform: 'add', 'update', 'delete', 'list', 'set_criteria', or 'verify'.
|
/// Action to perform: 'add', 'update', 'delete', 'list', 'set_criteria', or 'verify'.
|
||||||
pub action: TaskAction,
|
pub action: TaskAction,
|
||||||
/// Task ID (required for 'update', 'delete', 'set_criteria', 'verify').
|
/// Task ID (required for 'update', 'delete', 'set_criteria', 'verify').
|
||||||
#[serde(alias = "task_id", alias = "taskId")]
|
|
||||||
pub id: Option<String>,
|
pub id: Option<String>,
|
||||||
/// Task title (required for 'add').
|
/// Task title (required for 'add').
|
||||||
#[serde(alias = "name")]
|
|
||||||
pub title: Option<String>,
|
pub title: Option<String>,
|
||||||
/// Task description (optional for 'add').
|
/// Task description (optional for 'add').
|
||||||
#[serde(alias = "desc")]
|
|
||||||
pub description: Option<String>,
|
pub description: Option<String>,
|
||||||
/// New status: 'pending', 'completed', or 'cancelled' (for 'update').
|
/// New status: 'pending', 'completed', or 'cancelled' (for 'update').
|
||||||
pub status: Option<String>,
|
pub status: Option<String>,
|
||||||
/// Parent task ID (optional for 'add').
|
/// Parent task ID (optional for 'add').
|
||||||
#[serde(alias = "parentId", alias = "parent")]
|
|
||||||
pub parent_id: Option<String>,
|
pub parent_id: Option<String>,
|
||||||
/// List of dependency task IDs (optional for 'add').
|
/// List of dependency task IDs (optional for 'add').
|
||||||
#[serde(alias = "deps")]
|
|
||||||
pub dependencies: Option<Vec<String>>,
|
pub dependencies: Option<Vec<String>>,
|
||||||
/// Git branch filter or assignment.
|
/// Git branch filter or assignment.
|
||||||
#[serde(alias = "branch")]
|
|
||||||
pub git_branch: Option<String>,
|
pub git_branch: Option<String>,
|
||||||
/// Acceptance criteria (required for 'set_criteria').
|
/// Acceptance criteria (required for 'set_criteria').
|
||||||
#[serde(alias = "acceptance_criteria", alias = "acceptanceCriteria")]
|
|
||||||
pub criteria: Option<Vec<String>>,
|
pub criteria: Option<Vec<String>>,
|
||||||
/// Verification proof or details (optional for 'verify').
|
/// Verification proof or details (optional for 'verify').
|
||||||
pub proof: Option<String>,
|
pub proof: Option<String>,
|
||||||
@@ -709,10 +702,8 @@ pub struct MilestonesTool {
|
|||||||
/// Action to perform: 'add', 'update', or 'list'.
|
/// Action to perform: 'add', 'update', or 'list'.
|
||||||
pub action: MilestoneAction,
|
pub action: MilestoneAction,
|
||||||
/// Milestone ID (required for 'update').
|
/// Milestone ID (required for 'update').
|
||||||
#[serde(alias = "milestone_id", alias = "milestoneId")]
|
|
||||||
pub id: Option<String>,
|
pub id: Option<String>,
|
||||||
/// Milestone title (required for 'add').
|
/// Milestone title (required for 'add').
|
||||||
#[serde(alias = "name")]
|
|
||||||
pub title: Option<String>,
|
pub title: Option<String>,
|
||||||
/// New status (for 'update').
|
/// New status (for 'update').
|
||||||
pub status: Option<String>,
|
pub status: Option<String>,
|
||||||
@@ -809,7 +800,6 @@ pub struct DecisionsTool {
|
|||||||
/// Decision made (for 'log').
|
/// Decision made (for 'log').
|
||||||
pub decision: Option<String>,
|
pub decision: Option<String>,
|
||||||
/// Consequences & tradeoffs (for 'log').
|
/// Consequences & tradeoffs (for 'log').
|
||||||
#[serde(alias = "consequence")]
|
|
||||||
pub consequences: Option<String>,
|
pub consequences: Option<String>,
|
||||||
/// Search query string (for 'query').
|
/// Search query string (for 'query').
|
||||||
pub query: Option<String>,
|
pub query: Option<String>,
|
||||||
@@ -857,23 +847,18 @@ pub struct TechDebtTool {
|
|||||||
/// Action to perform: 'log', 'resolve', or 'list'.
|
/// Action to perform: 'log', 'resolve', or 'list'.
|
||||||
pub action: TechDebtAction,
|
pub action: TechDebtAction,
|
||||||
/// Tech debt ID (required for 'resolve').
|
/// Tech debt ID (required for 'resolve').
|
||||||
#[serde(alias = "tech_debt_id", alias = "debt_id")]
|
|
||||||
pub id: Option<String>,
|
pub id: Option<String>,
|
||||||
/// Tech debt description (required for 'log').
|
/// Tech debt description (required for 'log').
|
||||||
#[serde(alias = "desc")]
|
|
||||||
pub description: Option<String>,
|
pub description: Option<String>,
|
||||||
/// Optional title or summary of tech debt.
|
/// Optional title or summary of tech debt.
|
||||||
pub title: Option<String>,
|
pub title: Option<String>,
|
||||||
/// Ideal solution (optional for 'log').
|
/// Ideal solution (optional for 'log').
|
||||||
#[serde(alias = "solution", alias = "fix")]
|
|
||||||
pub ideal_solution: Option<String>,
|
pub ideal_solution: Option<String>,
|
||||||
/// Include resolved tech debt items (for 'list').
|
/// Include resolved tech debt items (for 'list').
|
||||||
pub include_resolved: Option<bool>,
|
pub include_resolved: Option<bool>,
|
||||||
/// Associated git commit hash.
|
/// Associated git commit hash.
|
||||||
#[serde(alias = "commit")]
|
|
||||||
pub git_commit: Option<String>,
|
pub git_commit: Option<String>,
|
||||||
/// Associated git branch.
|
/// Associated git branch.
|
||||||
#[serde(alias = "branch")]
|
|
||||||
pub git_branch: Option<String>,
|
pub git_branch: Option<String>,
|
||||||
/// Symbol references associated with the tech debt.
|
/// Symbol references associated with the tech debt.
|
||||||
pub symbol_references: Option<Vec<String>>,
|
pub symbol_references: Option<Vec<String>>,
|
||||||
|
|||||||
Reference in new issue
Block a user