Skill update round trip / roundtrip (false, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, ubuntu-latest, symlink, latest) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (false, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, macos-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, ubuntu-latest, symlink, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, copy, 1.5.17) (push) Canceled after 0s
Skill update round trip / roundtrip (true, windows-latest, symlink, 1.5.17) (push) Canceled after 0s
26 lines
913 B
JavaScript
26 lines
913 B
JavaScript
'use strict'
|
|
|
|
const NODE_PTY_JOB_EXPORTS = ['listJobProcessIds', 'terminateJob', 'assignCurrentProcessToJob']
|
|
|
|
function assertNodePtyJobOwnership({ nativeName, native, platform = process.platform }) {
|
|
if (platform !== 'win32' || nativeName !== 'conpty') {
|
|
return
|
|
}
|
|
const exported = native?.module ?? native
|
|
const missing = NODE_PTY_JOB_EXPORTS.filter((name) => typeof exported?.[name] !== 'function')
|
|
if (missing.length === 0) {
|
|
return
|
|
}
|
|
throw new Error(
|
|
[
|
|
`node-pty's conpty native is missing ${missing.join(', ')}.`,
|
|
`Resolved from: ${native?.dir ?? 'unknown'}`,
|
|
'That build cannot own a PTY tree, so terminatePtyJob degrades to "unavailable"',
|
|
'and pane teardown falls back to guessing by PID ancestry.',
|
|
'Rebuild node-pty from source so config/patches/node-pty@1.1.0.patch applies.'
|
|
].join(' ')
|
|
)
|
|
}
|
|
|
|
module.exports = { assertNodePtyJobOwnership }
|