mirror of
https://github.com/hansjone/netxops.git
synced 2026-10-10 12:13:17 +08:00
Initial Netx Ops DSH agent preset (UME + managed CLI).
Portable persona and playbooks for DeepSeek Harness; tools via netx MCP.
This commit is contained in:
commit
6677e36424
18 changed files with 746 additions and 0 deletions
23
scripts/link-preset.ps1
Normal file
23
scripts/link-preset.ps1
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Link presets/netxops into the DSH user agent-presets root (Windows junction).
|
||||
$ErrorActionPreference = "Stop"
|
||||
$RepoRoot = Split-Path -Parent $PSScriptRoot
|
||||
$Source = Join-Path $RepoRoot "presets\netxops"
|
||||
$DshHome = if ($env:DSH_HOME) { $env:DSH_HOME } else { Join-Path $env:USERPROFILE ".dsh" }
|
||||
$TargetParent = Join-Path $DshHome ".agent-presets"
|
||||
$Target = Join-Path $TargetParent "netxops"
|
||||
|
||||
if (-not (Test-Path $Source)) {
|
||||
throw "Missing preset dir: $Source"
|
||||
}
|
||||
New-Item -ItemType Directory -Force -Path $TargetParent | Out-Null
|
||||
if (Test-Path $Target) {
|
||||
$item = Get-Item $Target -Force
|
||||
if ($item.Attributes -band [IO.FileAttributes]::ReparsePoint) {
|
||||
cmd /c "rmdir `"$Target`""
|
||||
} else {
|
||||
throw "Target exists and is not a junction: $Target — remove or rename it first."
|
||||
}
|
||||
}
|
||||
cmd /c "mklink /J `"$Target`" `"$Source`""
|
||||
Write-Host "Linked $Target -> $Source"
|
||||
Write-Host "Restart dsh / open a new session and select preset 'netxops' (Netx Ops)."
|
||||
Loading…
Add table
Add a link
Reference in a new issue