archgraph-argo 0.6.2 → 0.6.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/argo/rules/archgraph.instructions.md +42 -33
- package/argo/schema/archimate3.2.md +7153 -0
- package/install-argo.ps1 +30 -3
- package/package.json +1 -1
- package/argo/schema/archimate3.2.pdf +0 -0
package/install-argo.ps1
CHANGED
|
@@ -158,8 +158,26 @@ if ($SkipDeps) {
|
|
|
158
158
|
if ($SkipEnv) {
|
|
159
159
|
Write-Host 'Skipped .env generation (-SkipEnv).'
|
|
160
160
|
} else {
|
|
161
|
+
$envPath = Join-Path $ArgoRoot '.env'
|
|
162
|
+
|
|
163
|
+
# Load existing values so we can skip prompting for variables that already
|
|
164
|
+
# hold a non-empty value. Missing or empty variables still get prompted.
|
|
165
|
+
$existing = @{}
|
|
166
|
+
if (Test-Path $envPath) {
|
|
167
|
+
foreach ($line in Get-Content $envPath) {
|
|
168
|
+
$line = $line.Trim()
|
|
169
|
+
if (-not $line -or $line.StartsWith('#')) { continue }
|
|
170
|
+
$sep = $line.IndexOf('=')
|
|
171
|
+
if ($sep -le 0) { continue }
|
|
172
|
+
$key = $line.Substring(0, $sep).Trim()
|
|
173
|
+
if ($key) {
|
|
174
|
+
$existing[$key] = $line.Substring($sep + 1).Trim()
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
161
179
|
Write-Host ''
|
|
162
|
-
Write-Host '==> Configure .env (press Enter to leave a value empty
|
|
180
|
+
Write-Host '==> Configure .env (existing non-empty values are kept; press Enter to leave a value empty)'
|
|
163
181
|
$envKeys = @(
|
|
164
182
|
'ARGO_EMBEDDING_BASE_URL',
|
|
165
183
|
'ARGO_EMBEDDING_MODEL',
|
|
@@ -176,11 +194,20 @@ if ($SkipEnv) {
|
|
|
176
194
|
|
|
177
195
|
$lines = @('# Argo live-provider and Neo4j configuration.')
|
|
178
196
|
foreach ($key in $envKeys) {
|
|
179
|
-
$
|
|
197
|
+
$existingValue = $null
|
|
198
|
+
if ($existing.ContainsKey($key)) {
|
|
199
|
+
$existingValue = $existing[$key]
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
if ($null -ne $existingValue -and -not [string]::IsNullOrWhiteSpace([string]$existingValue)) {
|
|
203
|
+
$value = $existingValue
|
|
204
|
+
} else {
|
|
205
|
+
$value = Read-Host $key
|
|
206
|
+
}
|
|
207
|
+
|
|
180
208
|
$lines += "$key=$value"
|
|
181
209
|
}
|
|
182
210
|
|
|
183
|
-
$envPath = Join-Path $ArgoRoot '.env'
|
|
184
211
|
[System.IO.File]::WriteAllLines(
|
|
185
212
|
$envPath,
|
|
186
213
|
$lines,
|
package/package.json
CHANGED
|
Binary file
|