codexmate 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7003,7 +7003,14 @@ return function render(_ctx, _cache) {
7003
7003
  role: "tab",
7004
7004
  "aria-selected": _ctx.promptsSubTab === 'claude-project',
7005
7005
  onClick: $event => (_ctx.switchPromptsSubTab('claude-project'))
7006
- }, _toDisplayString(_ctx.t('prompts.subTab.project')), 11 /* TEXT, CLASS, PROPS */, ["aria-selected", "onClick"])
7006
+ }, _toDisplayString(_ctx.t('prompts.subTab.project')), 11 /* TEXT, CLASS, PROPS */, ["aria-selected", "onClick"]),
7007
+ _createElementVNode("button", {
7008
+ type: "button",
7009
+ class: _normalizeClass(['prompts-md-tab', { active: _ctx.promptsSubTab === 'system' }]),
7010
+ role: "tab",
7011
+ "aria-selected": _ctx.promptsSubTab === 'system',
7012
+ onClick: $event => (_ctx.switchPromptsSubTab('system'))
7013
+ }, _toDisplayString(_ctx.t('prompts.subTab.system')), 11 /* TEXT, CLASS, PROPS */, ["aria-selected", "onClick"])
7007
7014
  ], 8 /* PROPS */, ["aria-label"]),
7008
7015
  (_ctx.promptsSubTab === 'claude-project')
7009
7016
  ? (_openBlock(), _createElementBlock("div", {
@@ -7041,103 +7048,25 @@ return function render(_ctx, _cache) {
7041
7048
  : _createCommentVNode("v-if", true)
7042
7049
  ]))
7043
7050
  : _createCommentVNode("v-if", true),
7044
- _createElementVNode("div", { class: "prompts-editor" }, [
7045
- _createElementVNode("div", { class: "prompts-editor-toolbar" }, [
7046
- _createElementVNode("div", { class: "form-hint" }, [
7047
- _createTextVNode(_toDisplayString(_ctx.agentsPath || _ctx.t('common.notLoaded')) + " ", 1 /* TEXT */),
7048
- (_ctx.agentsPath)
7049
- ? (_openBlock(), _createElementBlock("span", { key: 0 }, " (" + _toDisplayString(_ctx.agentsExists ? _ctx.t('common.exists') : _ctx.t('common.notExistsWillCreateOnSave')) + ") ", 1 /* TEXT */))
7050
- : _createCommentVNode("v-if", true)
7051
- ]),
7052
- _createElementVNode("div", { class: "prompts-editor-actions" }, [
7053
- _createElementVNode("div", { class: "prompts-editor-group prompts-editor-group--secondary" }, [
7054
- _createElementVNode("button", {
7055
- class: "btn-mini",
7056
- onClick: _ctx.exportAgentsContent,
7057
- disabled: _ctx.agentsLoading,
7058
- title: _ctx.t('modal.agents.export')
7059
- }, [
7060
- (_openBlock(), _createElementBlock("svg", {
7061
- class: "btn-icon-sm",
7062
- viewBox: "0 0 24 24",
7063
- fill: "none",
7064
- stroke: "currentColor",
7065
- "stroke-width": "2"
7066
- }, [
7067
- _createElementVNode("path", { d: "M12 3v12M8 11l4 4 4-4M4 17v2h16v-2" })
7068
- ]))
7069
- ], 8 /* PROPS */, ["onClick", "disabled", "title"]),
7070
- _createElementVNode("button", {
7071
- class: "btn-mini",
7072
- onClick: _ctx.copyAgentsContent,
7073
- disabled: _ctx.agentsLoading,
7074
- title: _ctx.t('modal.agents.copy')
7075
- }, [
7076
- (_openBlock(), _createElementBlock("svg", {
7077
- class: "btn-icon-sm",
7078
- viewBox: "0 0 24 24",
7079
- fill: "none",
7080
- stroke: "currentColor",
7081
- "stroke-width": "2"
7082
- }, [
7083
- _createElementVNode("rect", {
7084
- x: "9",
7085
- y: "9",
7086
- width: "13",
7087
- height: "13",
7088
- rx: "2"
7089
- }),
7090
- _createElementVNode("path", { d: "M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" })
7091
- ]))
7092
- ], 8 /* PROPS */, ["onClick", "disabled", "title"]),
7093
- _createElementVNode("button", {
7094
- class: "btn-mini",
7095
- onClick: _ctx.pasteAgentsContent,
7096
- disabled: _ctx.agentsLoading || _ctx.agentsSaving || _ctx.agentsDiffVisible,
7097
- title: _ctx.t('common.paste')
7098
- }, [
7099
- (_openBlock(), _createElementBlock("svg", {
7100
- class: "btn-icon-sm",
7101
- viewBox: "0 0 24 24",
7102
- fill: "none",
7103
- stroke: "currentColor",
7104
- "stroke-width": "2"
7105
- }, [
7106
- _createElementVNode("rect", {
7107
- x: "8",
7108
- y: "2",
7109
- width: "8",
7110
- height: "4",
7111
- rx: "1"
7112
- }),
7113
- _createElementVNode("path", { d: "M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2" })
7114
- ]))
7115
- ], 8 /* PROPS */, ["onClick", "disabled", "title"])
7116
- ]),
7117
- _createElementVNode("div", { class: "prompts-editor-group prompts-editor-group--workflow" }, [
7118
- _createElementVNode("button", {
7119
- class: "btn-mini",
7120
- onClick: _ctx.loadPromptsContent,
7121
- disabled: _ctx.agentsSaving || _ctx.agentsDiffLoading,
7122
- title: _ctx.t('common.cancel')
7123
- }, [
7124
- (_openBlock(), _createElementBlock("svg", {
7125
- class: "btn-icon-sm",
7126
- viewBox: "0 0 24 24",
7127
- fill: "none",
7128
- stroke: "currentColor",
7129
- "stroke-width": "2"
7130
- }, [
7131
- _createElementVNode("path", { d: "M18 6L6 18M6 6l12 12" })
7132
- ]))
7133
- ], 8 /* PROPS */, ["onClick", "disabled", "title"]),
7134
- (_ctx.agentsDiffVisible)
7135
- ? (_openBlock(), _createElementBlock("button", {
7136
- key: 0,
7051
+ (_ctx.promptsSubTab !== 'system')
7052
+ ? (_openBlock(), _createElementBlock("div", {
7053
+ key: 1,
7054
+ class: "prompts-editor"
7055
+ }, [
7056
+ _createElementVNode("div", { class: "prompts-editor-toolbar" }, [
7057
+ _createElementVNode("div", { class: "form-hint" }, [
7058
+ _createTextVNode(_toDisplayString(_ctx.agentsPath || _ctx.t('common.notLoaded')) + " ", 1 /* TEXT */),
7059
+ (_ctx.agentsPath)
7060
+ ? (_openBlock(), _createElementBlock("span", { key: 0 }, " (" + _toDisplayString(_ctx.agentsExists ? _ctx.t('common.exists') : _ctx.t('common.notExistsWillCreateOnSave')) + ") ", 1 /* TEXT */))
7061
+ : _createCommentVNode("v-if", true)
7062
+ ]),
7063
+ _createElementVNode("div", { class: "prompts-editor-actions" }, [
7064
+ _createElementVNode("div", { class: "prompts-editor-group prompts-editor-group--secondary" }, [
7065
+ _createElementVNode("button", {
7137
7066
  class: "btn-mini",
7138
- onClick: _ctx.resetAgentsDiffState,
7139
- disabled: _ctx.agentsSaving || _ctx.agentsDiffLoading,
7140
- title: _ctx.t('common.backToEdit')
7067
+ onClick: _ctx.exportAgentsContent,
7068
+ disabled: _ctx.agentsLoading,
7069
+ title: _ctx.t('modal.agents.export')
7141
7070
  }, [
7142
7071
  (_openBlock(), _createElementBlock("svg", {
7143
7072
  class: "btn-icon-sm",
@@ -7146,223 +7075,563 @@ return function render(_ctx, _cache) {
7146
7075
  stroke: "currentColor",
7147
7076
  "stroke-width": "2"
7148
7077
  }, [
7149
- _createElementVNode("path", { d: "M19 12H5M12 19l-7-7 7-7" })
7078
+ _createElementVNode("path", { d: "M12 3v12M8 11l4 4 4-4M4 17v2h16v-2" })
7150
7079
  ]))
7151
- ], 8 /* PROPS */, ["onClick", "disabled", "title"]))
7152
- : _createCommentVNode("v-if", true),
7153
- _createElementVNode("button", {
7154
- class: "btn-mini btn-confirm-mini",
7155
- onClick: _ctx.applyAgentsContent,
7156
- disabled: _ctx.agentsSaving || _ctx.agentsLoading || _ctx.agentsDiffLoading || (!_ctx.agentsDiffVisible && !_ctx.hasAgentsContentChanged()) || (_ctx.agentsDiffVisible && !_ctx.agentsDiffHasChanges),
7157
- title: _ctx.agentsDiffVisible ? _ctx.t('common.save') : _ctx.t('common.preview')
7158
- }, [
7159
- (_ctx.agentsDiffVisible)
7160
- ? (_openBlock(), _createElementBlock("svg", {
7161
- key: 0,
7080
+ ], 8 /* PROPS */, ["onClick", "disabled", "title"]),
7081
+ _createElementVNode("button", {
7082
+ class: "btn-mini",
7083
+ onClick: _ctx.copyAgentsContent,
7084
+ disabled: _ctx.agentsLoading,
7085
+ title: _ctx.t('modal.agents.copy')
7086
+ }, [
7087
+ (_openBlock(), _createElementBlock("svg", {
7162
7088
  class: "btn-icon-sm",
7163
7089
  viewBox: "0 0 24 24",
7164
7090
  fill: "none",
7165
7091
  stroke: "currentColor",
7166
7092
  "stroke-width": "2"
7167
7093
  }, [
7168
- _createElementVNode("path", { d: "M20 6L9 17l-5-5" })
7094
+ _createElementVNode("rect", {
7095
+ x: "9",
7096
+ y: "9",
7097
+ width: "13",
7098
+ height: "13",
7099
+ rx: "2"
7100
+ }),
7101
+ _createElementVNode("path", { d: "M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" })
7169
7102
  ]))
7170
- : (_openBlock(), _createElementBlock("svg", {
7171
- key: 1,
7103
+ ], 8 /* PROPS */, ["onClick", "disabled", "title"]),
7104
+ _createElementVNode("button", {
7105
+ class: "btn-mini",
7106
+ onClick: _ctx.pasteAgentsContent,
7107
+ disabled: _ctx.agentsLoading || _ctx.agentsSaving || _ctx.agentsDiffVisible,
7108
+ title: _ctx.t('common.paste')
7109
+ }, [
7110
+ (_openBlock(), _createElementBlock("svg", {
7172
7111
  class: "btn-icon-sm",
7173
7112
  viewBox: "0 0 24 24",
7174
7113
  fill: "none",
7175
7114
  stroke: "currentColor",
7176
7115
  "stroke-width": "2"
7177
7116
  }, [
7178
- _createElementVNode("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
7179
- _createElementVNode("circle", {
7180
- cx: "12",
7181
- cy: "12",
7182
- r: "3"
7183
- })
7117
+ _createElementVNode("rect", {
7118
+ x: "8",
7119
+ y: "2",
7120
+ width: "8",
7121
+ height: "4",
7122
+ rx: "1"
7123
+ }),
7124
+ _createElementVNode("path", { d: "M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2" })
7184
7125
  ]))
7185
- ], 8 /* PROPS */, ["onClick", "disabled", "title"])
7186
- ])
7187
- ])
7188
- ]),
7189
- _createElementVNode("div", { class: "prompt-presets-inline-row" }, [
7190
- _createElementVNode("div", { class: "prompt-presets-inline-group" }, [
7191
- _createElementVNode("label", { class: "prompt-presets-inline-label" }, _toDisplayString(_ctx.t('prompts.presets.title')), 1 /* TEXT */),
7192
- _createElementVNode("select", {
7193
- class: "form-input prompt-presets-select",
7194
- disabled: _ctx.agentsLoading || _ctx.agentsSaving || _ctx.agentsDiffVisible || !_ctx.promptPresets.length,
7195
- title: _ctx.t('prompts.presets.title'),
7196
- onChange: $event => (_ctx.applyPromptPresetSelection($event))
7197
- }, [
7198
- _createElementVNode("option", { value: "" }, _toDisplayString(_ctx.t('prompts.presets.selectPlaceholder')), 1 /* TEXT */),
7199
- (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.promptPresets, (preset) => {
7200
- return (_openBlock(), _createElementBlock("option", {
7201
- key: preset.id,
7202
- value: preset.id
7203
- }, _toDisplayString(preset.name), 9 /* TEXT, PROPS */, ["value"]))
7204
- }), 128 /* KEYED_FRAGMENT */))
7205
- ], 40 /* PROPS, NEED_HYDRATION */, ["disabled", "title", "onChange"])
7206
- ]),
7207
- _createElementVNode("div", { class: "prompt-presets-inline-group prompt-presets-inline-group--save" }, [
7208
- _withDirectives(_createElementVNode("input", {
7209
- type: "text",
7210
- class: "form-input prompt-presets-name-input",
7211
- "onUpdate:modelValue": $event => ((_ctx.promptPresetNameDraft) = $event),
7212
- placeholder: _ctx.t('prompts.presets.namePlaceholder'),
7213
- disabled: _ctx.agentsLoading || _ctx.agentsSaving || _ctx.agentsDiffVisible,
7214
- onKeydown: _withKeys(_withModifiers(_ctx.saveCurrentPromptAsPreset, ["prevent"]), ["enter"])
7215
- }, null, 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "placeholder", "disabled", "onKeydown"]), [
7216
- [_vModelText, _ctx.promptPresetNameDraft]
7217
- ]),
7218
- _createElementVNode("button", {
7219
- type: "button",
7220
- class: "btn-mini btn-confirm-mini",
7221
- onClick: _ctx.saveCurrentPromptAsPreset,
7222
- disabled: _ctx.promptPresetSaving || _ctx.agentsLoading || _ctx.agentsSaving || _ctx.agentsDiffVisible,
7223
- title: _ctx.t('prompts.presets.saveCurrent')
7224
- }, _toDisplayString(_ctx.t('prompts.presets.saveCurrent')), 9 /* TEXT, PROPS */, ["onClick", "disabled", "title"])
7225
- ])
7226
- ]),
7227
- _createElementVNode("details", { class: "prompt-presets-panel" }, [
7228
- _createElementVNode("summary", { class: "prompt-presets-summary" }, [
7229
- _createElementVNode("span", null, _toDisplayString(_ctx.t('prompts.presets.title')), 1 /* TEXT */),
7230
- _createElementVNode("small", null, _toDisplayString(_ctx.t('prompts.presets.hint')), 1 /* TEXT */)
7231
- ]),
7232
- _createElementVNode("div", { class: "form-group prompt-presets-body" }, [
7233
- _createElementVNode("div", { class: "editor-frame prompt-presets-frame" }, [
7234
- (!_ctx.promptPresets.length)
7235
- ? (_openBlock(), _createElementBlock("div", {
7236
- key: 0,
7237
- class: "state-message prompt-presets-empty"
7238
- }, _toDisplayString(_ctx.t('prompts.presets.empty')), 1 /* TEXT */))
7239
- : (_openBlock(), _createElementBlock("div", {
7240
- key: 1,
7241
- class: "prompt-presets-list"
7126
+ ], 8 /* PROPS */, ["onClick", "disabled", "title"])
7127
+ ]),
7128
+ _createElementVNode("div", { class: "prompts-editor-group prompts-editor-group--workflow" }, [
7129
+ _createElementVNode("button", {
7130
+ class: "btn-mini",
7131
+ onClick: _ctx.loadPromptsContent,
7132
+ disabled: _ctx.agentsSaving || _ctx.agentsDiffLoading,
7133
+ title: _ctx.t('common.cancel')
7242
7134
  }, [
7243
- (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.promptPresets, (preset) => {
7244
- return (_openBlock(), _createElementBlock("article", {
7245
- key: preset.id,
7246
- class: "prompt-preset-row"
7135
+ (_openBlock(), _createElementBlock("svg", {
7136
+ class: "btn-icon-sm",
7137
+ viewBox: "0 0 24 24",
7138
+ fill: "none",
7139
+ stroke: "currentColor",
7140
+ "stroke-width": "2"
7141
+ }, [
7142
+ _createElementVNode("path", { d: "M18 6L6 18M6 6l12 12" })
7143
+ ]))
7144
+ ], 8 /* PROPS */, ["onClick", "disabled", "title"]),
7145
+ (_ctx.agentsDiffVisible)
7146
+ ? (_openBlock(), _createElementBlock("button", {
7147
+ key: 0,
7148
+ class: "btn-mini",
7149
+ onClick: _ctx.resetAgentsDiffState,
7150
+ disabled: _ctx.agentsSaving || _ctx.agentsDiffLoading,
7151
+ title: _ctx.t('common.backToEdit')
7247
7152
  }, [
7248
- _createElementVNode("div", { class: "prompt-preset-main" }, [
7249
- _createElementVNode("input", {
7250
- type: "text",
7251
- class: "form-input prompt-preset-name",
7252
- value: _ctx.getPromptPresetRenameDraft(preset),
7253
- onInput: $event => (_ctx.setPromptPresetRenameDraft(preset.id, $event.target.value)),
7254
- onKeydown: _withKeys(_withModifiers($event => (_ctx.renamePromptPreset(preset)), ["prevent"]), ["enter"]),
7255
- "aria-label": _ctx.t('prompts.presets.renameAria')
7256
- }, null, 40 /* PROPS, NEED_HYDRATION */, ["value", "onInput", "onKeydown", "aria-label"]),
7257
- _createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('prompts.presets.updatedAt', { time: _ctx.formatPromptPresetTime(preset.updatedAt) })), 1 /* TEXT */),
7258
- _createElementVNode("pre", { class: "prompt-preset-preview" }, _toDisplayString(preset.content), 1 /* TEXT */)
7259
- ]),
7260
- _createElementVNode("div", { class: "prompts-editor-actions prompt-preset-actions" }, [
7261
- _createElementVNode("button", {
7262
- type: "button",
7263
- class: "btn-mini",
7264
- onClick: $event => (_ctx.renamePromptPreset(preset))
7265
- }, _toDisplayString(_ctx.t('common.save')), 9 /* TEXT, PROPS */, ["onClick"]),
7266
- _createElementVNode("button", {
7267
- type: "button",
7268
- class: "btn-mini",
7269
- onClick: $event => (_ctx.applyPromptPresetToEditor(preset))
7270
- }, _toDisplayString(_ctx.t('common.paste')), 9 /* TEXT, PROPS */, ["onClick"]),
7271
- _createElementVNode("button", {
7272
- type: "button",
7273
- class: "btn-mini btn-danger-mini",
7274
- onClick: $event => (_ctx.deletePromptPreset(preset))
7275
- }, _toDisplayString(_ctx.t('common.delete')), 9 /* TEXT, PROPS */, ["onClick"])
7276
- ])
7153
+ (_openBlock(), _createElementBlock("svg", {
7154
+ class: "btn-icon-sm",
7155
+ viewBox: "0 0 24 24",
7156
+ fill: "none",
7157
+ stroke: "currentColor",
7158
+ "stroke-width": "2"
7159
+ }, [
7160
+ _createElementVNode("path", { d: "M19 12H5M12 19l-7-7 7-7" })
7161
+ ]))
7162
+ ], 8 /* PROPS */, ["onClick", "disabled", "title"]))
7163
+ : _createCommentVNode("v-if", true),
7164
+ _createElementVNode("button", {
7165
+ class: "btn-mini btn-confirm-mini",
7166
+ onClick: _ctx.applyAgentsContent,
7167
+ disabled: _ctx.agentsSaving || _ctx.agentsLoading || _ctx.agentsDiffLoading || (!_ctx.agentsDiffVisible && !_ctx.hasAgentsContentChanged()) || (_ctx.agentsDiffVisible && !_ctx.agentsDiffHasChanges),
7168
+ title: _ctx.agentsDiffVisible ? _ctx.t('common.save') : _ctx.t('common.preview')
7169
+ }, [
7170
+ (_ctx.agentsDiffVisible)
7171
+ ? (_openBlock(), _createElementBlock("svg", {
7172
+ key: 0,
7173
+ class: "btn-icon-sm",
7174
+ viewBox: "0 0 24 24",
7175
+ fill: "none",
7176
+ stroke: "currentColor",
7177
+ "stroke-width": "2"
7178
+ }, [
7179
+ _createElementVNode("path", { d: "M20 6L9 17l-5-5" })
7180
+ ]))
7181
+ : (_openBlock(), _createElementBlock("svg", {
7182
+ key: 1,
7183
+ class: "btn-icon-sm",
7184
+ viewBox: "0 0 24 24",
7185
+ fill: "none",
7186
+ stroke: "currentColor",
7187
+ "stroke-width": "2"
7188
+ }, [
7189
+ _createElementVNode("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
7190
+ _createElementVNode("circle", {
7191
+ cx: "12",
7192
+ cy: "12",
7193
+ r: "3"
7194
+ })
7195
+ ]))
7196
+ ], 8 /* PROPS */, ["onClick", "disabled", "title"])
7197
+ ])
7198
+ ])
7199
+ ]),
7200
+ _createElementVNode("div", { class: "prompt-presets-inline-row" }, [
7201
+ _createElementVNode("div", { class: "prompt-presets-inline-group" }, [
7202
+ _createElementVNode("label", { class: "prompt-presets-inline-label" }, _toDisplayString(_ctx.t('prompts.presets.title')), 1 /* TEXT */),
7203
+ _createElementVNode("select", {
7204
+ class: "form-input prompt-presets-select",
7205
+ disabled: _ctx.agentsLoading || _ctx.agentsSaving || _ctx.agentsDiffVisible || !_ctx.promptPresets.length,
7206
+ title: _ctx.t('prompts.presets.title'),
7207
+ onChange: $event => (_ctx.applyPromptPresetSelection($event))
7208
+ }, [
7209
+ _createElementVNode("option", { value: "" }, _toDisplayString(_ctx.t('prompts.presets.selectPlaceholder')), 1 /* TEXT */),
7210
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.promptPresets, (preset) => {
7211
+ return (_openBlock(), _createElementBlock("option", {
7212
+ key: preset.id,
7213
+ value: preset.id
7214
+ }, _toDisplayString(preset.name), 9 /* TEXT, PROPS */, ["value"]))
7215
+ }), 128 /* KEYED_FRAGMENT */))
7216
+ ], 40 /* PROPS, NEED_HYDRATION */, ["disabled", "title", "onChange"])
7217
+ ]),
7218
+ _createElementVNode("div", { class: "prompt-presets-inline-group prompt-presets-inline-group--save" }, [
7219
+ _withDirectives(_createElementVNode("input", {
7220
+ type: "text",
7221
+ class: "form-input prompt-presets-name-input",
7222
+ "onUpdate:modelValue": $event => ((_ctx.promptPresetNameDraft) = $event),
7223
+ placeholder: _ctx.t('prompts.presets.namePlaceholder'),
7224
+ disabled: _ctx.agentsLoading || _ctx.agentsSaving || _ctx.agentsDiffVisible,
7225
+ onKeydown: _withKeys(_withModifiers(_ctx.saveCurrentPromptAsPreset, ["prevent"]), ["enter"])
7226
+ }, null, 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "placeholder", "disabled", "onKeydown"]), [
7227
+ [_vModelText, _ctx.promptPresetNameDraft]
7228
+ ]),
7229
+ _createElementVNode("button", {
7230
+ type: "button",
7231
+ class: "btn-mini btn-confirm-mini",
7232
+ onClick: _ctx.saveCurrentPromptAsPreset,
7233
+ disabled: _ctx.promptPresetSaving || _ctx.agentsLoading || _ctx.agentsSaving || _ctx.agentsDiffVisible,
7234
+ title: _ctx.t('prompts.presets.saveCurrent')
7235
+ }, _toDisplayString(_ctx.t('prompts.presets.saveCurrent')), 9 /* TEXT, PROPS */, ["onClick", "disabled", "title"])
7236
+ ])
7237
+ ]),
7238
+ _createElementVNode("details", { class: "prompt-presets-panel" }, [
7239
+ _createElementVNode("summary", { class: "prompt-presets-summary" }, [
7240
+ _createElementVNode("span", null, _toDisplayString(_ctx.t('prompts.presets.title')), 1 /* TEXT */),
7241
+ _createElementVNode("small", null, _toDisplayString(_ctx.t('prompts.presets.hint')), 1 /* TEXT */)
7242
+ ]),
7243
+ _createElementVNode("div", { class: "form-group prompt-presets-body" }, [
7244
+ _createElementVNode("div", { class: "editor-frame prompt-presets-frame" }, [
7245
+ (!_ctx.promptPresets.length)
7246
+ ? (_openBlock(), _createElementBlock("div", {
7247
+ key: 0,
7248
+ class: "state-message prompt-presets-empty"
7249
+ }, _toDisplayString(_ctx.t('prompts.presets.empty')), 1 /* TEXT */))
7250
+ : (_openBlock(), _createElementBlock("div", {
7251
+ key: 1,
7252
+ class: "prompt-presets-list"
7253
+ }, [
7254
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.promptPresets, (preset) => {
7255
+ return (_openBlock(), _createElementBlock("article", {
7256
+ key: preset.id,
7257
+ class: "prompt-preset-row"
7258
+ }, [
7259
+ _createElementVNode("div", { class: "prompt-preset-main" }, [
7260
+ _createElementVNode("input", {
7261
+ type: "text",
7262
+ class: "form-input prompt-preset-name",
7263
+ value: _ctx.getPromptPresetRenameDraft(preset),
7264
+ onInput: $event => (_ctx.setPromptPresetRenameDraft(preset.id, $event.target.value)),
7265
+ onKeydown: _withKeys(_withModifiers($event => (_ctx.renamePromptPreset(preset)), ["prevent"]), ["enter"]),
7266
+ "aria-label": _ctx.t('prompts.presets.renameAria')
7267
+ }, null, 40 /* PROPS, NEED_HYDRATION */, ["value", "onInput", "onKeydown", "aria-label"]),
7268
+ _createElementVNode("div", { class: "form-hint" }, _toDisplayString(_ctx.t('prompts.presets.updatedAt', { time: _ctx.formatPromptPresetTime(preset.updatedAt) })), 1 /* TEXT */),
7269
+ _createElementVNode("pre", { class: "prompt-preset-preview" }, _toDisplayString(preset.content), 1 /* TEXT */)
7270
+ ]),
7271
+ _createElementVNode("div", { class: "prompts-editor-actions prompt-preset-actions" }, [
7272
+ _createElementVNode("button", {
7273
+ type: "button",
7274
+ class: "btn-mini",
7275
+ onClick: $event => (_ctx.renamePromptPreset(preset))
7276
+ }, _toDisplayString(_ctx.t('common.save')), 9 /* TEXT, PROPS */, ["onClick"]),
7277
+ _createElementVNode("button", {
7278
+ type: "button",
7279
+ class: "btn-mini",
7280
+ onClick: $event => (_ctx.applyPromptPresetToEditor(preset))
7281
+ }, _toDisplayString(_ctx.t('common.paste')), 9 /* TEXT, PROPS */, ["onClick"]),
7282
+ _createElementVNode("button", {
7283
+ type: "button",
7284
+ class: "btn-mini btn-danger-mini",
7285
+ onClick: $event => (_ctx.deletePromptPreset(preset))
7286
+ }, _toDisplayString(_ctx.t('common.delete')), 9 /* TEXT, PROPS */, ["onClick"])
7287
+ ])
7288
+ ]))
7289
+ }), 128 /* KEYED_FRAGMENT */))
7277
7290
  ]))
7278
- }), 128 /* KEYED_FRAGMENT */))
7291
+ ])
7292
+ ])
7293
+ ]),
7294
+ _createElementVNode("div", { class: "form-group" }, [
7295
+ (_ctx.agentsDiffVisible)
7296
+ ? (_openBlock(), _createElementBlock("div", { key: 0 }, [
7297
+ (!_ctx.agentsDiffLoading && !_ctx.agentsDiffError && !_ctx.agentsDiffTruncated && (_ctx.agentsDiffStats.added || _ctx.agentsDiffStats.removed))
7298
+ ? (_openBlock(), _createElementBlock("div", {
7299
+ key: 0,
7300
+ class: "agents-diff-summary"
7301
+ }, [
7302
+ _createElementVNode("span", { class: "agents-diff-stat add" }, "+" + _toDisplayString(_ctx.agentsDiffStats.added), 1 /* TEXT */),
7303
+ _createElementVNode("span", { class: "agents-diff-stat del" }, "-" + _toDisplayString(_ctx.agentsDiffStats.removed), 1 /* TEXT */)
7304
+ ]))
7305
+ : _createCommentVNode("v-if", true),
7306
+ (_ctx.agentsDiffLoading)
7307
+ ? (_openBlock(), _createElementBlock("div", {
7308
+ key: 1,
7309
+ class: "state-message"
7310
+ }, _toDisplayString(_ctx.t('diff.generating')), 1 /* TEXT */))
7311
+ : (_ctx.agentsDiffError)
7312
+ ? (_openBlock(), _createElementBlock("div", {
7313
+ key: 2,
7314
+ class: "state-message error"
7315
+ }, _toDisplayString(_ctx.agentsDiffError), 1 /* TEXT */))
7316
+ : (_ctx.agentsDiffTruncated)
7317
+ ? (_openBlock(), _createElementBlock("div", {
7318
+ key: 3,
7319
+ class: "agents-diff-empty"
7320
+ }, _toDisplayString(_ctx.t('diff.tooLargeSkip')), 1 /* TEXT */))
7321
+ : (!_ctx.agentsDiffHasChanges)
7322
+ ? (_openBlock(), _createElementBlock("div", {
7323
+ key: 4,
7324
+ class: "agents-diff-empty"
7325
+ }, _toDisplayString(_ctx.t('diff.noChanges')), 1 /* TEXT */))
7326
+ : (_openBlock(), _createElementBlock("div", {
7327
+ key: 5,
7328
+ class: "agents-diff-view agents-diff-editor"
7329
+ }, [
7330
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.agentsDiffLines, (line, index) => {
7331
+ return (_openBlock(), _createElementBlock("div", {
7332
+ key: line.key || (line.type + '-' + index),
7333
+ class: _normalizeClass(['agents-diff-line', line.type])
7334
+ }, [
7335
+ _createElementVNode("span", { class: "agents-diff-line-sign" }, _toDisplayString(line.type === 'add' ? '+' : (line.type === 'del' ? '-' : ' ')), 1 /* TEXT */),
7336
+ _createElementVNode("span", { class: "agents-diff-line-text" }, _toDisplayString(line.value), 1 /* TEXT */)
7337
+ ], 2 /* CLASS */))
7338
+ }), 128 /* KEYED_FRAGMENT */))
7339
+ ]))
7279
7340
  ]))
7280
- ])
7281
- ])
7282
- ]),
7283
- _createElementVNode("div", { class: "form-group" }, [
7284
- (_ctx.agentsDiffVisible)
7285
- ? (_openBlock(), _createElementBlock("div", { key: 0 }, [
7286
- (!_ctx.agentsDiffLoading && !_ctx.agentsDiffError && !_ctx.agentsDiffTruncated && (_ctx.agentsDiffStats.added || _ctx.agentsDiffStats.removed))
7341
+ : _createCommentVNode("v-if", true),
7342
+ _createElementVNode("div", {
7343
+ class: _normalizeClass(['editor-frame', { 'editor-frame--loading': _ctx.agentsLoading }])
7344
+ }, [
7345
+ (_ctx.agentsLoading)
7287
7346
  ? (_openBlock(), _createElementBlock("div", {
7288
7347
  key: 0,
7289
- class: "agents-diff-summary"
7348
+ class: "editor-skeleton"
7290
7349
  }, [
7291
- _createElementVNode("span", { class: "agents-diff-stat add" }, "+" + _toDisplayString(_ctx.agentsDiffStats.added), 1 /* TEXT */),
7292
- _createElementVNode("span", { class: "agents-diff-stat del" }, "-" + _toDisplayString(_ctx.agentsDiffStats.removed), 1 /* TEXT */)
7350
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(6, (i) => {
7351
+ return _createElementVNode("div", {
7352
+ class: "skeleton-line",
7353
+ key: i
7354
+ })
7355
+ }), 64 /* STABLE_FRAGMENT */))
7293
7356
  ]))
7294
7357
  : _createCommentVNode("v-if", true),
7295
- (_ctx.agentsDiffLoading)
7296
- ? (_openBlock(), _createElementBlock("div", {
7297
- key: 1,
7298
- class: "state-message"
7299
- }, _toDisplayString(_ctx.t('diff.generating')), 1 /* TEXT */))
7300
- : (_ctx.agentsDiffError)
7301
- ? (_openBlock(), _createElementBlock("div", {
7302
- key: 2,
7303
- class: "state-message error"
7304
- }, _toDisplayString(_ctx.agentsDiffError), 1 /* TEXT */))
7305
- : (_ctx.agentsDiffTruncated)
7306
- ? (_openBlock(), _createElementBlock("div", {
7307
- key: 3,
7308
- class: "agents-diff-empty"
7309
- }, _toDisplayString(_ctx.t('diff.tooLargeSkip')), 1 /* TEXT */))
7310
- : (!_ctx.agentsDiffHasChanges)
7358
+ _withDirectives(_createElementVNode("textarea", {
7359
+ "onUpdate:modelValue": $event => ((_ctx.agentsContent) = $event),
7360
+ class: "form-input template-editor",
7361
+ spellcheck: "false",
7362
+ readonly: _ctx.agentsLoading || _ctx.agentsSaving || _ctx.agentsDiffVisible,
7363
+ onInput: _ctx.onAgentsContentInput,
7364
+ placeholder: _ctx.t(_ctx.promptsSubTab === 'claude-project' ? 'modal.agents.placeholder.claudeProject' : 'modal.agents.placeholder')
7365
+ }, null, 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "readonly", "onInput", "placeholder"]), [
7366
+ [_vModelText, _ctx.agentsContent]
7367
+ ])
7368
+ ], 2 /* CLASS */),
7369
+ (_ctx.promptsContextHint)
7370
+ ? (_openBlock(), _createElementBlock("div", {
7371
+ key: 1,
7372
+ class: _normalizeClass(['prompts-context-hint', { 'prompts-context-hint--warn': _ctx.promptsContextHint.warn }])
7373
+ }, _toDisplayString(_ctx.promptsContextHint.text), 3 /* TEXT, CLASS */))
7374
+ : _createCommentVNode("v-if", true)
7375
+ ])
7376
+ ]))
7377
+ : _createCommentVNode("v-if", true),
7378
+ (_ctx.promptsSubTab === 'system')
7379
+ ? (_openBlock(), _createElementBlock("div", { key: 2 }, [
7380
+ _createElementVNode("div", { class: "sys-prompt-controls" }, [
7381
+ _createElementVNode("div", { class: "sys-prompt-control-group" }, [
7382
+ _createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('sysPrompt.scope.label')), 1 /* TEXT */),
7383
+ _createElementVNode("select", {
7384
+ class: "form-input sys-prompt-select",
7385
+ value: _ctx.sysPromptScope,
7386
+ onChange: $event => (_ctx.switchSysPromptScope($event.target.value)),
7387
+ disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible
7388
+ }, [
7389
+ _createElementVNode("option", { value: "global" }, _toDisplayString(_ctx.t('sysPrompt.scope.global')), 1 /* TEXT */),
7390
+ _createElementVNode("option", { value: "project" }, _toDisplayString(_ctx.t('sysPrompt.scope.project')), 1 /* TEXT */)
7391
+ ], 40 /* PROPS, NEED_HYDRATION */, ["value", "onChange", "disabled"])
7392
+ ]),
7393
+ _createElementVNode("div", { class: "sys-prompt-control-group" }, [
7394
+ _createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('sysPrompt.mode.label')), 1 /* TEXT */),
7395
+ _createElementVNode("select", {
7396
+ class: "form-input sys-prompt-select",
7397
+ value: _ctx.sysPromptMode,
7398
+ onChange: $event => (_ctx.switchSysPromptMode($event.target.value)),
7399
+ disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible
7400
+ }, [
7401
+ _createElementVNode("option", { value: "append" }, _toDisplayString(_ctx.t('sysPrompt.mode.append')), 1 /* TEXT */),
7402
+ _createElementVNode("option", { value: "system" }, _toDisplayString(_ctx.t('sysPrompt.mode.system')), 1 /* TEXT */)
7403
+ ], 40 /* PROPS, NEED_HYDRATION */, ["value", "onChange", "disabled"])
7404
+ ])
7405
+ ]),
7406
+ _createElementVNode("div", { class: "prompts-editor" }, [
7407
+ _createElementVNode("div", { class: "prompts-editor-toolbar" }, [
7408
+ _createElementVNode("div", { class: "form-hint" }, [
7409
+ _createTextVNode(_toDisplayString(_ctx.sysPromptPath || _ctx.t('common.notLoaded')) + " ", 1 /* TEXT */),
7410
+ (_ctx.sysPromptPath)
7411
+ ? (_openBlock(), _createElementBlock("span", { key: 0 }, " (" + _toDisplayString(_ctx.sysPromptExists ? _ctx.t('common.exists') : _ctx.t('common.notExistsWillCreateOnSave')) + ") ", 1 /* TEXT */))
7412
+ : _createCommentVNode("v-if", true)
7413
+ ]),
7414
+ _createElementVNode("div", { class: "prompts-editor-actions" }, [
7415
+ _createElementVNode("div", { class: "prompts-editor-group prompts-editor-group--secondary" }, [
7416
+ _createElementVNode("button", {
7417
+ class: "btn-mini",
7418
+ onClick: _ctx.exportSysPromptContent,
7419
+ disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || !_ctx.sysPromptContent,
7420
+ title: _ctx.t('modal.agents.export')
7421
+ }, [
7422
+ (_openBlock(), _createElementBlock("svg", {
7423
+ class: "btn-icon-sm",
7424
+ viewBox: "0 0 24 24",
7425
+ fill: "none",
7426
+ stroke: "currentColor",
7427
+ "stroke-width": "2"
7428
+ }, [
7429
+ _createElementVNode("path", { d: "M12 3v12M8 11l4 4 4-4M4 17v2h16v-2" })
7430
+ ]))
7431
+ ], 8 /* PROPS */, ["onClick", "disabled", "title"]),
7432
+ _createElementVNode("button", {
7433
+ class: "btn-mini",
7434
+ onClick: _ctx.copySysPromptContent,
7435
+ disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || !_ctx.sysPromptContent,
7436
+ title: _ctx.t('modal.agents.copy')
7437
+ }, [
7438
+ (_openBlock(), _createElementBlock("svg", {
7439
+ class: "btn-icon-sm",
7440
+ viewBox: "0 0 24 24",
7441
+ fill: "none",
7442
+ stroke: "currentColor",
7443
+ "stroke-width": "2"
7444
+ }, [
7445
+ _createElementVNode("rect", {
7446
+ x: "9",
7447
+ y: "9",
7448
+ width: "13",
7449
+ height: "13",
7450
+ rx: "2"
7451
+ }),
7452
+ _createElementVNode("path", { d: "M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1" })
7453
+ ]))
7454
+ ], 8 /* PROPS */, ["onClick", "disabled", "title"]),
7455
+ _createElementVNode("button", {
7456
+ class: "btn-mini",
7457
+ onClick: _ctx.pasteSysPromptContent,
7458
+ disabled: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible,
7459
+ title: _ctx.t('common.paste')
7460
+ }, [
7461
+ (_openBlock(), _createElementBlock("svg", {
7462
+ class: "btn-icon-sm",
7463
+ viewBox: "0 0 24 24",
7464
+ fill: "none",
7465
+ stroke: "currentColor",
7466
+ "stroke-width": "2"
7467
+ }, [
7468
+ _createElementVNode("rect", {
7469
+ x: "8",
7470
+ y: "2",
7471
+ width: "8",
7472
+ height: "4",
7473
+ rx: "1"
7474
+ }),
7475
+ _createElementVNode("path", { d: "M16 4h2a2 2 0 012 2v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h2" })
7476
+ ]))
7477
+ ], 8 /* PROPS */, ["onClick", "disabled", "title"])
7478
+ ]),
7479
+ _createElementVNode("div", { class: "prompts-editor-group prompts-editor-group--workflow" }, [
7480
+ _createElementVNode("button", {
7481
+ class: "btn-mini",
7482
+ onClick: _ctx.cancelSysPromptEdit,
7483
+ disabled: _ctx.sysPromptSaving || _ctx.sysPromptDiffLoading,
7484
+ title: _ctx.t('common.cancel')
7485
+ }, [
7486
+ (_openBlock(), _createElementBlock("svg", {
7487
+ class: "btn-icon-sm",
7488
+ viewBox: "0 0 24 24",
7489
+ fill: "none",
7490
+ stroke: "currentColor",
7491
+ "stroke-width": "2"
7492
+ }, [
7493
+ _createElementVNode("path", { d: "M18 6L6 18M6 6l12 12" })
7494
+ ]))
7495
+ ], 8 /* PROPS */, ["onClick", "disabled", "title"]),
7496
+ (_ctx.sysPromptDiffVisible)
7497
+ ? (_openBlock(), _createElementBlock("button", {
7498
+ key: 0,
7499
+ class: "btn-mini",
7500
+ onClick: _ctx.resetSysPromptDiffState,
7501
+ disabled: _ctx.sysPromptSaving || _ctx.sysPromptDiffLoading,
7502
+ title: _ctx.t('common.backToEdit')
7503
+ }, [
7504
+ (_openBlock(), _createElementBlock("svg", {
7505
+ class: "btn-icon-sm",
7506
+ viewBox: "0 0 24 24",
7507
+ fill: "none",
7508
+ stroke: "currentColor",
7509
+ "stroke-width": "2"
7510
+ }, [
7511
+ _createElementVNode("path", { d: "M19 12H5M12 19l-7-7 7-7" })
7512
+ ]))
7513
+ ], 8 /* PROPS */, ["onClick", "disabled", "title"]))
7514
+ : _createCommentVNode("v-if", true),
7515
+ _createElementVNode("button", {
7516
+ class: "btn-mini btn-confirm-mini",
7517
+ onClick: _ctx.applySystemPrompt,
7518
+ disabled: _ctx.sysPromptSaving || _ctx.sysPromptLoading || _ctx.sysPromptDiffLoading || (!_ctx.sysPromptDiffVisible && !_ctx.hasSysPromptContentChanged()) || (_ctx.sysPromptDiffVisible && !_ctx.sysPromptDiffHasChangesValue),
7519
+ title: _ctx.sysPromptDiffVisible ? _ctx.t('common.save') : _ctx.t('common.preview')
7520
+ }, [
7521
+ (_ctx.sysPromptDiffVisible)
7522
+ ? (_openBlock(), _createElementBlock("svg", {
7523
+ key: 0,
7524
+ class: "btn-icon-sm",
7525
+ viewBox: "0 0 24 24",
7526
+ fill: "none",
7527
+ stroke: "currentColor",
7528
+ "stroke-width": "2"
7529
+ }, [
7530
+ _createElementVNode("path", { d: "M20 6L9 17l-5-5" })
7531
+ ]))
7532
+ : (_openBlock(), _createElementBlock("svg", {
7533
+ key: 1,
7534
+ class: "btn-icon-sm",
7535
+ viewBox: "0 0 24 24",
7536
+ fill: "none",
7537
+ stroke: "currentColor",
7538
+ "stroke-width": "2"
7539
+ }, [
7540
+ _createElementVNode("path", { d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" }),
7541
+ _createElementVNode("circle", {
7542
+ cx: "12",
7543
+ cy: "12",
7544
+ r: "3"
7545
+ })
7546
+ ]))
7547
+ ], 8 /* PROPS */, ["onClick", "disabled", "title"])
7548
+ ])
7549
+ ])
7550
+ ]),
7551
+ _createElementVNode("div", { class: "form-group" }, [
7552
+ (_ctx.sysPromptDiffVisible)
7553
+ ? (_openBlock(), _createElementBlock("div", { key: 0 }, [
7554
+ (!_ctx.sysPromptDiffLoading && !_ctx.sysPromptDiffError && !_ctx.sysPromptDiffTruncated && (_ctx.sysPromptDiffStats.added || _ctx.sysPromptDiffStats.removed))
7311
7555
  ? (_openBlock(), _createElementBlock("div", {
7312
- key: 4,
7313
- class: "agents-diff-empty"
7314
- }, _toDisplayString(_ctx.t('diff.noChanges')), 1 /* TEXT */))
7315
- : (_openBlock(), _createElementBlock("div", {
7316
- key: 5,
7317
- class: "agents-diff-view agents-diff-editor"
7556
+ key: 0,
7557
+ class: "agents-diff-summary"
7318
7558
  }, [
7319
- (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.agentsDiffLines, (line, index) => {
7320
- return (_openBlock(), _createElementBlock("div", {
7321
- key: line.key || (line.type + '-' + index),
7322
- class: _normalizeClass(['agents-diff-line', line.type])
7323
- }, [
7324
- _createElementVNode("span", { class: "agents-diff-line-sign" }, _toDisplayString(line.type === 'add' ? '+' : (line.type === 'del' ? '-' : ' ')), 1 /* TEXT */),
7325
- _createElementVNode("span", { class: "agents-diff-line-text" }, _toDisplayString(line.value), 1 /* TEXT */)
7326
- ], 2 /* CLASS */))
7327
- }), 128 /* KEYED_FRAGMENT */))
7559
+ _createElementVNode("span", { class: "agents-diff-stat add" }, "+" + _toDisplayString(_ctx.sysPromptDiffStats.added), 1 /* TEXT */),
7560
+ _createElementVNode("span", { class: "agents-diff-stat del" }, "-" + _toDisplayString(_ctx.sysPromptDiffStats.removed), 1 /* TEXT */)
7328
7561
  ]))
7329
- ]))
7330
- : _createCommentVNode("v-if", true),
7331
- _createElementVNode("div", {
7332
- class: _normalizeClass(['editor-frame', { 'editor-frame--loading': _ctx.agentsLoading }])
7333
- }, [
7334
- (_ctx.agentsLoading)
7335
- ? (_openBlock(), _createElementBlock("div", {
7336
- key: 0,
7337
- class: "editor-skeleton"
7562
+ : _createCommentVNode("v-if", true),
7563
+ (_ctx.sysPromptDiffLoading)
7564
+ ? (_openBlock(), _createElementBlock("div", {
7565
+ key: 1,
7566
+ class: "state-message"
7567
+ }, _toDisplayString(_ctx.t('diff.generating')), 1 /* TEXT */))
7568
+ : (_ctx.sysPromptDiffError)
7569
+ ? (_openBlock(), _createElementBlock("div", {
7570
+ key: 2,
7571
+ class: "state-message error"
7572
+ }, _toDisplayString(_ctx.sysPromptDiffError), 1 /* TEXT */))
7573
+ : (_ctx.sysPromptDiffTruncated)
7574
+ ? (_openBlock(), _createElementBlock("div", {
7575
+ key: 3,
7576
+ class: "agents-diff-empty"
7577
+ }, _toDisplayString(_ctx.t('diff.tooLargeSkip')), 1 /* TEXT */))
7578
+ : (!_ctx.sysPromptDiffHasChangesValue)
7579
+ ? (_openBlock(), _createElementBlock("div", {
7580
+ key: 4,
7581
+ class: "agents-diff-empty"
7582
+ }, _toDisplayString(_ctx.t('diff.noChanges')), 1 /* TEXT */))
7583
+ : (_openBlock(), _createElementBlock("div", {
7584
+ key: 5,
7585
+ class: "agents-diff-view agents-diff-editor"
7586
+ }, [
7587
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sysPromptDiffLines, (line, index) => {
7588
+ return (_openBlock(), _createElementBlock("div", {
7589
+ key: 'sys-prompt-diff-' + index,
7590
+ class: _normalizeClass(['agents-diff-line', line.type])
7591
+ }, [
7592
+ _createElementVNode("span", { class: "agents-diff-line-sign" }, _toDisplayString(line.type === 'add' ? '+' : (line.type === 'del' ? '-' : ' ')), 1 /* TEXT */),
7593
+ _createElementVNode("span", { class: "agents-diff-line-text" }, _toDisplayString(line.value), 1 /* TEXT */)
7594
+ ], 2 /* CLASS */))
7595
+ }), 128 /* KEYED_FRAGMENT */))
7596
+ ]))
7597
+ ]))
7598
+ : _createCommentVNode("v-if", true),
7599
+ _createElementVNode("div", {
7600
+ class: _normalizeClass(['editor-frame', { 'editor-frame--loading': _ctx.sysPromptLoading }])
7338
7601
  }, [
7339
- (_openBlock(), _createElementBlock(_Fragment, null, _renderList(6, (i) => {
7340
- return _createElementVNode("div", {
7341
- class: "skeleton-line",
7342
- key: i
7343
- })
7344
- }), 64 /* STABLE_FRAGMENT */))
7345
- ]))
7346
- : _createCommentVNode("v-if", true),
7347
- _withDirectives(_createElementVNode("textarea", {
7348
- "onUpdate:modelValue": $event => ((_ctx.agentsContent) = $event),
7349
- class: "form-input template-editor",
7350
- spellcheck: "false",
7351
- readonly: _ctx.agentsLoading || _ctx.agentsSaving || _ctx.agentsDiffVisible,
7352
- onInput: _ctx.onAgentsContentInput,
7353
- placeholder: _ctx.t(_ctx.promptsSubTab === 'claude-project' ? 'modal.agents.placeholder.claudeProject' : 'modal.agents.placeholder')
7354
- }, null, 40 /* PROPS, NEED_HYDRATION */, ["onUpdate:modelValue", "readonly", "onInput", "placeholder"]), [
7355
- [_vModelText, _ctx.agentsContent]
7602
+ (_ctx.sysPromptLoading)
7603
+ ? (_openBlock(), _createElementBlock("div", {
7604
+ key: 0,
7605
+ class: "editor-skeleton"
7606
+ }, [
7607
+ (_openBlock(), _createElementBlock(_Fragment, null, _renderList(6, (i) => {
7608
+ return _createElementVNode("div", {
7609
+ class: "skeleton-line",
7610
+ key: i
7611
+ })
7612
+ }), 64 /* STABLE_FRAGMENT */))
7613
+ ]))
7614
+ : _createCommentVNode("v-if", true),
7615
+ _withDirectives(_createElementVNode("textarea", {
7616
+ "onUpdate:modelValue": $event => ((_ctx.sysPromptContent) = $event),
7617
+ class: "form-input template-editor",
7618
+ spellcheck: "false",
7619
+ readonly: _ctx.sysPromptLoading || _ctx.sysPromptSaving || _ctx.sysPromptDiffVisible,
7620
+ placeholder: _ctx.t('sysPrompt.placeholder')
7621
+ }, null, 8 /* PROPS */, ["onUpdate:modelValue", "readonly", "placeholder"]), [
7622
+ [_vModelText, _ctx.sysPromptContent]
7623
+ ])
7624
+ ], 2 /* CLASS */),
7625
+ (_ctx.sysPromptContextHint())
7626
+ ? (_openBlock(), _createElementBlock("div", {
7627
+ key: 1,
7628
+ class: _normalizeClass(['prompts-context-hint', { 'prompts-context-hint--warn': _ctx.sysPromptContextHint().warn }])
7629
+ }, _toDisplayString(_ctx.sysPromptContextHint().text), 3 /* TEXT, CLASS */))
7630
+ : _createCommentVNode("v-if", true)
7631
+ ])
7356
7632
  ])
7357
- ], 2 /* CLASS */),
7358
- (_ctx.promptsContextHint)
7359
- ? (_openBlock(), _createElementBlock("div", {
7360
- key: 1,
7361
- class: _normalizeClass(['prompts-context-hint', { 'prompts-context-hint--warn': _ctx.promptsContextHint.warn }])
7362
- }, _toDisplayString(_ctx.promptsContextHint.text), 3 /* TEXT, CLASS */))
7363
- : _createCommentVNode("v-if", true)
7364
- ])
7365
- ])
7633
+ ]))
7634
+ : _createCommentVNode("v-if", true)
7366
7635
  ]))
7367
7636
  : _createCommentVNode("v-if", true),
7368
7637
  _createCommentVNode(" 加载状态 "),