mirror of
https://github.com/hansjone/netxops.git
synced 2026-10-09 04:00:46 +08:00
Merge nms+common into ops so login questions load execManagedNe.
One capability group now ships netx-ops (alarms + managed CLI + paths); keep tools-nms/common as aliases. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
6e591be2b5
commit
63f88bdf6c
33 changed files with 2133 additions and 446 deletions
|
|
@ -30,6 +30,7 @@ const external = [
|
|||
const entries = [
|
||||
{ entry: join(root, 'src/index.ts'), out: join(outDir, 'index.js') },
|
||||
{ entry: join(root, 'src/agent-tools.ts'), out: join(outDir, 'agent-tools.js') },
|
||||
{ entry: join(root, 'src/agent-tools-ops.ts'), out: join(outDir, 'agent-tools-ops.js') },
|
||||
{ entry: join(root, 'src/agent-tools-nms.ts'), out: join(outDir, 'agent-tools-nms.js') },
|
||||
{ entry: join(root, 'src/agent-tools-common.ts'), out: join(outDir, 'agent-tools-common.js') },
|
||||
{ entry: join(root, 'src/agent-tools-topology.ts'), out: join(outDir, 'agent-tools-topology.js') },
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ $src = Join-Path $NetxRoot "skills"
|
|||
$dst = Join-Path $opsRoot "presets\netxops\skills"
|
||||
if (-not (Test-Path $src)) { throw "missing $src" }
|
||||
|
||||
foreach ($group in @("nms", "common", "topology")) {
|
||||
foreach ($group in @("ops", "topology")) {
|
||||
$from = Join-Path $src $group
|
||||
$to = Join-Path $dst $group
|
||||
if (-not (Test-Path $from)) { throw "missing group $from" }
|
||||
|
|
@ -26,9 +26,11 @@ foreach ($group in @("nms", "common", "topology")) {
|
|||
Copy-Item $from $to -Recurse -Force
|
||||
}
|
||||
|
||||
# Drop legacy separate layout skill if present
|
||||
$legacyLayout = Join-Path $dst "topology-layout"
|
||||
if (Test-Path $legacyLayout) { Remove-Item $legacyLayout -Recurse -Force }
|
||||
# Drop legacy groups if present
|
||||
foreach ($legacy in @("nms", "common", "topology-layout")) {
|
||||
$legacyPath = Join-Path $dst $legacy
|
||||
if (Test-Path $legacyPath) { Remove-Item $legacyPath -Recurse -Force }
|
||||
}
|
||||
|
||||
@"
|
||||
# Mirrored from netx/skills — do not long-edit here
|
||||
|
|
@ -40,7 +42,7 @@ powershell -File .\scripts\sync-skills-from-netx.ps1
|
|||
```
|
||||
|
||||
Runtime prefers ``NETX_SKILLS_ROOT`` or sibling ``../netx/skills``.
|
||||
One topology skill covers canvas + dual_unit / layout recipes; DSH may still gate **tools** via topology vs topology-layout groups.
|
||||
Groups: **ops** (``netx-ops``) + **topology** (``netx-topology``). One group ↔ one skill.
|
||||
"@ | Set-Content -Encoding utf8 (Join-Path $dst "README.md")
|
||||
|
||||
Write-Host "Synced $src -> $dst"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue