feat: Add comprehensive tests for contentPattern and glob pattern matching

- Implemented final verification tests for contentPattern to validate behavior with empty strings, dangerous patterns, and normal patterns.
- Created glob pattern matching tests to verify regex conversion and matching functionality.
- Developed infinite loop risk tests using Worker threads to isolate potential blocking operations.
- Introduced optimized contentPattern tests to validate improvements in the findMatches function.
- Added verification tests to assess the effectiveness of contentPattern optimizations.
- Conducted safety tests for contentPattern to identify edge cases and potential vulnerabilities.
- Implemented unrestricted loop tests to analyze infinite loop risks without match limits.
- Developed tests for zero-width pattern detection logic to ensure proper handling of dangerous regex patterns.
This commit is contained in:
catlog22
2026-02-09 11:13:01 +08:00
parent dfe153778c
commit 964292ebdb
62 changed files with 7588 additions and 374 deletions

View File

@@ -38,6 +38,7 @@ import notifications from './notifications.json';
import workspace from './workspace.json';
import help from './help.json';
import cliViewer from './cli-viewer.json';
import team from './team.json';
/**
* Flattens nested JSON object to dot-separated keys
@@ -99,4 +100,5 @@ export default {
...flattenMessages(workspace, 'workspace'),
...flattenMessages(help, 'help'),
...flattenMessages(cliViewer, 'cliViewer'),
...flattenMessages(team, 'team'),
} as Record<string, string>;

View File

@@ -123,7 +123,11 @@
},
"read_file": {
"name": "read_file",
"desc": "Read file contents"
"desc": "Read a single file with optional line pagination"
},
"read_many_files": {
"name": "read_many_files",
"desc": "Read multiple files or directories with glob filtering and content search"
},
"core_memory": {
"name": "core_memory",
@@ -136,6 +140,10 @@
"smart_search": {
"name": "smart_search",
"desc": "Intelligent code search with fuzzy and semantic modes"
},
"team_msg": {
"name": "team_msg",
"desc": "Persistent JSONL message bus for Agent Team communication"
}
},
"paths": {

View File

@@ -34,7 +34,8 @@
"hooks": "Hooks",
"rules": "Rules",
"explorer": "File Explorer",
"graph": "Graph Explorer"
"graph": "Graph Explorer",
"teams": "Team Execution"
},
"sidebar": {
"collapse": "Collapse",

View File

@@ -0,0 +1,65 @@
{
"title": "Team Execution",
"description": "Visualize agent team execution status and message flow",
"selectTeam": "Select Team",
"noTeamSelected": "Select a team to view",
"members": "Members",
"messages": "Messages",
"elapsed": "Elapsed",
"autoRefresh": "Auto-refresh",
"filterByType": "Filter by type",
"filterAll": "All Types",
"stage": "Stage",
"empty": {
"title": "No Active Teams",
"description": "Use /team:coordinate to create a team and start collaborating",
"noMessages": "No Messages Yet",
"noMessagesHint": "Team was just created, waiting for the first message"
},
"pipeline": {
"title": "Pipeline Progress",
"plan": "Plan",
"impl": "Implement",
"test": "Test",
"review": "Review",
"completed": "Completed",
"inProgress": "In Progress",
"pending": "Pending",
"blocked": "Blocked"
},
"membersPanel": {
"title": "Team Members",
"active": "Active",
"idle": "Idle",
"lastAction": "Last Action",
"messageCount": "Messages",
"lastSeen": "Last Seen",
"ago": "ago"
},
"timeline": {
"title": "Message Timeline",
"loadMore": "Load More",
"showing": "Showing {showing} / {total} messages",
"filterFrom": "From",
"filterTo": "To",
"filterType": "Type",
"clearFilters": "Clear Filters",
"expandData": "Expand Data",
"collapseData": "Collapse Data",
"noRef": "No reference"
},
"messageType": {
"plan_ready": "Plan Ready",
"plan_approved": "Plan Approved",
"plan_revision": "Plan Revision",
"task_unblocked": "Task Unblocked",
"impl_complete": "Impl Complete",
"impl_progress": "Impl Progress",
"test_result": "Test Result",
"review_result": "Review Result",
"fix_required": "Fix Required",
"error": "Error",
"shutdown": "Shutdown",
"message": "Message"
}
}