archgraph-argo 0.13.3 → 0.13.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 +16 -1
- package/package.json +1 -1
package/install-argo.ps1
CHANGED
|
@@ -33,6 +33,17 @@ $ErrorActionPreference = 'Stop'
|
|
|
33
33
|
$repoRoot = $PSScriptRoot
|
|
34
34
|
$argoDir = Join-Path $repoRoot 'argo'
|
|
35
35
|
|
|
36
|
+
# OpenCode-only model-id remap. argo/agents/*.agent.md is a single source shared
|
|
37
|
+
# verbatim across Copilot / Cursor / OpenCode (and DSH presets), so the original
|
|
38
|
+
# model binding must stay untouched there. OpenCode has no Qwen provider
|
|
39
|
+
# configured, so 'alibaba-cn/qwen3.7-plus' cannot resolve; only the OpenCode
|
|
40
|
+
# deployment artifact remaps that binding to a model id OpenCode knows
|
|
41
|
+
# (deepseek/deepseek-v4-flash-vision-exp). All other targets keep the shared
|
|
42
|
+
# source binding unchanged.
|
|
43
|
+
$OpenCodeModelRemap = @{
|
|
44
|
+
'alibaba-cn/qwen3.7-plus' = 'deepseek/deepseek-v4-flash-vision-exp'
|
|
45
|
+
}
|
|
46
|
+
|
|
36
47
|
function Copy-Tree {
|
|
37
48
|
param([string]$Source, [string]$Destination)
|
|
38
49
|
New-Item -ItemType Directory -Force -Path $Destination | Out-Null
|
|
@@ -90,7 +101,11 @@ function Convert-AgentFile {
|
|
|
90
101
|
# argument-hint) which OpenCode rejects.
|
|
91
102
|
$newFront = "---`r`n"
|
|
92
103
|
if ($desc) { $newFront += "description: `"$($desc -replace '"','\"')`"`r`n" }
|
|
93
|
-
if ($model) {
|
|
104
|
+
if ($model) {
|
|
105
|
+
$deployModel = $model
|
|
106
|
+
if ($OpenCodeModelRemap.ContainsKey($deployModel)) { $deployModel = $OpenCodeModelRemap[$deployModel] }
|
|
107
|
+
$newFront += "model: `"$deployModel`"`r`n"
|
|
108
|
+
}
|
|
94
109
|
$newFront += "mode: all`r`n---`r`n"
|
|
95
110
|
} else {
|
|
96
111
|
# Cursor markdown agent: name + description + model; drop VS Code-only fields.
|
package/package.json
CHANGED