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:
hansjone 2026-09-04 21:22:25 +08:00
commit 6677e36424
18 changed files with 746 additions and 0 deletions

23
scripts/link-preset.ps1 Normal file
View 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)."

19
scripts/link-preset.sh Normal file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
SOURCE="$REPO_ROOT/presets/netxops"
DSH_HOME="${DSH_HOME:-$HOME/.dsh}"
TARGET_PARENT="$DSH_HOME/.agent-presets"
TARGET="$TARGET_PARENT/netxops"
if [[ ! -d "$SOURCE" ]]; then
echo "Missing preset dir: $SOURCE" >&2
exit 1
fi
mkdir -p "$TARGET_PARENT"
if [[ -e "$TARGET" || -L "$TARGET" ]]; then
rm -rf "$TARGET"
fi
ln -s "$SOURCE" "$TARGET"
echo "Linked $TARGET -> $SOURCE"
echo "Restart dsh / open a new session and select preset 'netxops' (Netx Ops)."