mirror of
https://github.com/hansjone/netxops.git
synced 2026-10-11 16:35:44 +08:00
Add Host-global thinking and reply language controls.
Inject systemPrompt sections from Netx Ops settings so every preset can switch CoT and final-reply language without changing API/alarm lang. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
53c47fbc6a
commit
d52c05e774
14 changed files with 652 additions and 25 deletions
|
|
@ -42,6 +42,8 @@ const STATUS_POLL_MS = 2_000
|
|||
export interface NetxopsSettings {
|
||||
apiUrl?: string
|
||||
lang?: string
|
||||
thinkingLanguage?: string
|
||||
replyLanguage?: string
|
||||
tokenCredentialRef?: string
|
||||
alarmPushEnabled?: boolean
|
||||
alarmDeliverDsh?: boolean
|
||||
|
|
@ -73,6 +75,8 @@ interface CredentialState {
|
|||
export interface NetxopsCardState extends CardShell {
|
||||
apiUrl: CardFieldState
|
||||
lang: CardFieldState
|
||||
thinkingLanguage: CardFieldState
|
||||
replyLanguage: CardFieldState
|
||||
groupOpsInPreset: CardFieldState
|
||||
groupOpsPublic: CardFieldState
|
||||
groupTopologyInPreset: CardFieldState
|
||||
|
|
@ -172,6 +176,8 @@ export class NetxopsCardController {
|
|||
[
|
||||
textField('apiUrl'),
|
||||
textField('lang'),
|
||||
textField('thinkingLanguage'),
|
||||
textField('replyLanguage'),
|
||||
textField('nmsProvider'),
|
||||
textField('kbRoot'),
|
||||
booleanFieldPersistFalse('groupOpsInPreset'),
|
||||
|
|
@ -521,6 +527,8 @@ export class NetxopsCardController {
|
|||
...this.form.shell(),
|
||||
apiUrl: this.form.field('apiUrl'),
|
||||
lang: this.form.field('lang'),
|
||||
thinkingLanguage: this.form.field('thinkingLanguage'),
|
||||
replyLanguage: this.form.field('replyLanguage'),
|
||||
nmsProvider: this.form.field('nmsProvider'),
|
||||
kbRoot: this.form.field('kbRoot'),
|
||||
groupOpsInPreset: this.form.field('groupOpsInPreset'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue