archgraph-argo 0.8.3 → 0.8.5
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.
- package/install-argo.ps1 +9 -3
- package/package.json +1 -1
package/install-argo.ps1
CHANGED
|
@@ -63,23 +63,29 @@ function Convert-AgentFile {
|
|
|
63
63
|
|
|
64
64
|
$name = ''
|
|
65
65
|
$desc = ''
|
|
66
|
+
$model = ''
|
|
66
67
|
$nm = [regex]::Match($front, '(?m)^name:\s*(.*)$')
|
|
67
68
|
if ($nm.Success) { $name = $nm.Groups[1].Value.Trim().Trim('"').Trim("'") }
|
|
68
69
|
$dm = [regex]::Match($front, '(?m)^description:\s*(.*)$')
|
|
69
70
|
if ($dm.Success) { $desc = $dm.Groups[1].Value.Trim().Trim('"').Trim("'") }
|
|
71
|
+
$mm = [regex]::Match($front, '(?m)^model:\s*(.*)$')
|
|
72
|
+
if ($mm.Success) { $model = $mm.Groups[1].Value.Trim().Trim('"').Trim("'") }
|
|
70
73
|
|
|
71
74
|
if ($Target -eq 'opencode') {
|
|
72
75
|
# OpenCode markdown agent: description is required; mode: all keeps it
|
|
73
|
-
# usable as primary and subagent.
|
|
74
|
-
# model, user-invocable,
|
|
76
|
+
# usable as primary and subagent. Keep model so each agent pins its
|
|
77
|
+
# required model; drop VS Code-only fields (tools array, user-invocable,
|
|
78
|
+
# argument-hint) which OpenCode rejects.
|
|
75
79
|
$newFront = "---`r`n"
|
|
76
80
|
if ($desc) { $newFront += "description: `"$($desc -replace '"','\"')`"`r`n" }
|
|
81
|
+
if ($model) { $newFront += "model: `"$model`"`r`n" }
|
|
77
82
|
$newFront += "mode: all`r`n---`r`n"
|
|
78
83
|
} else {
|
|
79
|
-
# Cursor markdown agent: name + description; drop VS Code-only fields.
|
|
84
|
+
# Cursor markdown agent: name + description + model; drop VS Code-only fields.
|
|
80
85
|
$newFront = "---`r`n"
|
|
81
86
|
if ($name) { $newFront += "name: `"$name`"`r`n" }
|
|
82
87
|
if ($desc) { $newFront += "description: `"$($desc -replace '"','\"')`"`r`n" }
|
|
88
|
+
if ($model) { $newFront += "model: `"$model`"`r`n" }
|
|
83
89
|
$newFront += "---`r`n"
|
|
84
90
|
}
|
|
85
91
|
|
package/package.json
CHANGED