mirror of
https://github.com/hansjone/netxops.git
synced 2026-10-15 23:13:20 +08:00
Ship a single-string dsh.bundle.patch for CLI compatibility.
Concatenate host cordis + declarative preset into cordis.bundle.patch.yml so source dsh web boots without requiring array patch support. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
217e1f781a
commit
3655eeef73
3 changed files with 354 additions and 5 deletions
|
|
@ -3,6 +3,10 @@
|
|||
* `presets/netxops/{preset.yml,agent.cordis.yml}` so the declarative
|
||||
* `@deepseek-ai/dsh-agent-preset` row stays in sync with the directory
|
||||
* composition used on DSH ≤0.1.5.
|
||||
*
|
||||
* Also writes `cordis.bundle.patch.yml` = host cordis + preset patch.
|
||||
* DSH CLI `dsh.bundle.patch` is a single string path (not string[]); keep
|
||||
* sources split for editing but ship one concatenated entry for boot.
|
||||
*/
|
||||
|
||||
import { readFileSync, writeFileSync } from 'node:fs'
|
||||
|
|
@ -42,3 +46,15 @@ ${pluginsBody}
|
|||
const dest = join(root, 'presets/netxops.preset.patch.yml')
|
||||
writeFileSync(dest, out)
|
||||
console.log(`wrote ${dest} (${out.length} bytes)`)
|
||||
|
||||
const hostPatch = readFileSync(join(root, 'cordis.patch.yml'), 'utf8').trimEnd()
|
||||
const bundle = `# Combined host + declarative preset for dsh.bundle.patch (single string).
|
||||
# Sources: cordis.patch.yml + presets/netxops.preset.patch.yml
|
||||
# Regenerate: bun run scripts/gen-preset-patch.mjs
|
||||
|
||||
${hostPatch}
|
||||
|
||||
${out.trimStart()}`
|
||||
const bundleDest = join(root, 'cordis.bundle.patch.yml')
|
||||
writeFileSync(bundleDest, bundle)
|
||||
console.log(`wrote ${bundleDest} (${bundle.length} bytes)`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue