@@ -9,7 +9,7 @@ Mirrors the behavior of scripts/bash/update-agent-context.sh:
99 2. Plan Data Extraction
1010 3. Agent File Management (create from template or update existing)
1111 4. Content Generation (technology stack, recent changes, timestamp)
12- 5. Multi-Agent Support (claude, gemini, copilot, cursor-agent, qwen, opencode, codex, windsurf, kilocode, auggie, roo, codebuddy, amp, shai, tabnine, kiro-cli, agy, bob, vibe, qodercli, kimi, trae, pi, generic)
12+ 5. Multi-Agent Support (claude, gemini, copilot, cursor-agent, qwen, opencode, codex, windsurf, kilocode, auggie, roo, codebuddy, amp, shai, tabnine, kiro-cli, agy, bob, vibe, qodercli, kimi, trae, pi, iflow, generic)
1313
1414. PARAMETER AgentType
1515Optional agent key to update a single agent. If omitted, updates all existing agent files (creating a default Claude file if none exist).
@@ -25,7 +25,7 @@ Relies on common helper functions in common.ps1
2525#>
2626param (
2727 [Parameter (Position = 0 )]
28- [ValidateSet (' claude' , ' gemini' , ' copilot' , ' cursor-agent' , ' qwen' , ' opencode' , ' codex' , ' windsurf' , ' kilocode' , ' auggie' , ' roo' , ' codebuddy' , ' amp' , ' shai' , ' tabnine' , ' kiro-cli' , ' agy' , ' bob' , ' qodercli' , ' vibe' , ' kimi' , ' trae' , ' pi' , ' generic' )]
28+ [ValidateSet (' claude' , ' gemini' , ' copilot' , ' cursor-agent' , ' qwen' , ' opencode' , ' codex' , ' windsurf' , ' kilocode' , ' auggie' , ' roo' , ' codebuddy' , ' amp' , ' shai' , ' tabnine' , ' kiro-cli' , ' agy' , ' bob' , ' qodercli' , ' vibe' , ' kimi' , ' trae' , ' pi' , ' iflow ' , ' generic' )]
2929 [string ]$AgentType
3030)
3131
@@ -65,6 +65,7 @@ $BOB_FILE = Join-Path $REPO_ROOT 'AGENTS.md'
6565$VIBE_FILE = Join-Path $REPO_ROOT ' .vibe/agents/specify-agents.md'
6666$KIMI_FILE = Join-Path $REPO_ROOT ' KIMI.md'
6767$TRAE_FILE = Join-Path $REPO_ROOT ' .trae/rules/AGENTS.md'
68+ $IFLOW_FILE = Join-Path $REPO_ROOT ' IFLOW.md'
6869
6970$TEMPLATE_FILE = Join-Path $REPO_ROOT ' .specify/templates/agent-file-template.md'
7071
@@ -411,8 +412,9 @@ function Update-SpecificAgent {
411412 ' kimi' { Update-AgentFile - TargetFile $KIMI_FILE - AgentName ' Kimi Code' }
412413 ' trae' { Update-AgentFile - TargetFile $TRAE_FILE - AgentName ' Trae' }
413414 ' pi' { Update-AgentFile - TargetFile $AGENTS_FILE - AgentName ' Pi Coding Agent' }
415+ ' iflow' { Update-AgentFile - TargetFile $IFLOW_FILE - AgentName ' iFlow CLI' }
414416 ' generic' { Write-Info ' Generic agent: no predefined context file. Use the agent-specific update script for your agent.' }
415- default { Write-Err " Unknown agent type '$Type '" ; Write-Err ' Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|generic' ; return $false }
417+ default { Write-Err " Unknown agent type '$Type '" ; Write-Err ' Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow| generic' ; return $false }
416418 }
417419}
418420
@@ -439,6 +441,7 @@ function Update-AllExistingAgents {
439441 if (Test-Path $VIBE_FILE ) { if (-not (Update-AgentFile - TargetFile $VIBE_FILE - AgentName ' Mistral Vibe' )) { $ok = $false }; $found = $true }
440442 if (Test-Path $KIMI_FILE ) { if (-not (Update-AgentFile - TargetFile $KIMI_FILE - AgentName ' Kimi Code' )) { $ok = $false }; $found = $true }
441443 if (Test-Path $TRAE_FILE ) { if (-not (Update-AgentFile - TargetFile $TRAE_FILE - AgentName ' Trae' )) { $ok = $false }; $found = $true }
444+ if (Test-Path $IFLOW_FILE ) { if (-not (Update-AgentFile - TargetFile $IFLOW_FILE - AgentName ' iFlow CLI' )) { $ok = $false }; $found = $true }
442445 if (-not $found ) {
443446 Write-Info ' No existing agent files found, creating default Claude file...'
444447 if (-not (Update-AgentFile - TargetFile $CLAUDE_FILE - AgentName ' Claude Code' )) { $ok = $false }
@@ -453,7 +456,7 @@ function Print-Summary {
453456 if ($NEW_FRAMEWORK ) { Write-Host " - Added framework: $NEW_FRAMEWORK " }
454457 if ($NEW_DB -and $NEW_DB -ne ' N/A' ) { Write-Host " - Added database: $NEW_DB " }
455458 Write-Host ' '
456- Write-Info ' Usage: ./update-agent-context.ps1 [-AgentType claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|generic]'
459+ Write-Info ' Usage: ./update-agent-context.ps1 [-AgentType claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|tabnine|kiro-cli|agy|bob|vibe|qodercli|kimi|trae|pi|iflow| generic]'
457460}
458461
459462function Main {
0 commit comments