@ferris1225/pi-subagents 2.3.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/dispatch.ts +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ferris1225/pi-subagents",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Controllable background sub-agent threads for pi: specialized roles, capability-aware thinking, direct main-model fallback, auto-fix chains, and Git worktree isolation.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/dispatch.ts CHANGED
@@ -98,8 +98,11 @@ export function defaultIsolationMode(mode: "single" | "parallel", agentName: str
98
98
  const IMAGE_FILE_PATTERN = /\.(?:png|jpe?g|webp|gif|bmp|tiff?|avif)\b/i;
99
99
  /** Frontend/UI work: the agent may screenshot and visually verify what it
100
100
  * builds, and the model cannot be swapped mid-run — vision must be on at
101
- * spawn. `\bUI\b` stays case-sensitive so ordinary words never match. */
102
- const FRONTEND_PATTERN = /\b(?:vue|react|svelte|angular|nuxt|next\.?js|vite|tailwind|screenshots?|mockups?|wireframes?|UI)\b|前端|界面|页面|样式|截图|设计稿/i;
101
+ * spawn. Only language-neutral signals: code terms and file names stay in
102
+ * English even in non-English briefs; purely semantic wording is the LLM's
103
+ * job via the vision flag, not a per-language keyword list. Word boundaries
104
+ * keep ordinary words (build, guide, reactor) from matching. */
105
+ const FRONTEND_PATTERN = /\b(?:vue|react|svelte|angular|nuxt|next\.?js|vite|tailwind|screenshots?|mockups?|wireframes?|UI)\b/i;
103
106
  const FRONTEND_FILE_PATTERN = /\.(?:vue|html?|css|svg)\b/i;
104
107
 
105
108
  /** Deterministic vision fallback: a brief that names an image file or describes