Fix Desktop Netx Ops preset using host standard and workflow-ptc.

Prefer Desktop's standard.patch.yml / align CLI worker-thread rows to
workflow-ptc, and refuse compositions the host cannot resolve.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-10-10 04:53:11 +08:00
parent 7a289cf409
commit 6bf5268dfb
8 changed files with 688 additions and 60 deletions

View file

@ -20,7 +20,10 @@ const root = join(dirname(fileURLToPath(import.meta.url)), '..')
const artifacts = composeNetxopsPresetArtifacts()
const declarativePath = join(root, 'presets', 'netxops.preset.patch.yml')
writeFileSync(declarativePath, artifacts.declarativePatch)
console.log(`wrote ${declarativePath} (${artifacts.declarativePatch.length} bytes) from ${artifacts.standardDir}`)
console.log(
`wrote ${declarativePath} (${artifacts.declarativePatch.length} bytes) `
+ `from ${artifacts.standardKind}: ${artifacts.standardSource}`,
)
const host = readFileSync(join(root, 'cordis.patch.yml'), 'utf8')
const bundle = `# Host-only bundle patch (web-safe).