codexmate 0.1.36 → 0.1.37

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.
@@ -1,5 +1,5 @@
1
1
  window.__CODEXMATE_WEB_UI_RENDER__ = (() => {
2
- const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass, withModifiers: _withModifiers, withKeys: _withKeys, renderList: _renderList, Fragment: _Fragment, vModelSelect: _vModelSelect, withDirectives: _withDirectives, vModelText: _vModelText, vModelCheckbox: _vModelCheckbox, vShow: _vShow, Teleport: _Teleport, createBlock: _createBlock, vModelDynamic: _vModelDynamic, normalizeStyle: _normalizeStyle, isMemoSame: _isMemoSame, withMemo: _withMemo, resolveComponent: _resolveComponent, createVNode: _createVNode } = Vue
2
+ const { toDisplayString: _toDisplayString, openBlock: _openBlock, createElementBlock: _createElementBlock, createCommentVNode: _createCommentVNode, createTextVNode: _createTextVNode, createElementVNode: _createElementVNode, normalizeClass: _normalizeClass, withModifiers: _withModifiers, withKeys: _withKeys, renderList: _renderList, Fragment: _Fragment, vModelSelect: _vModelSelect, withDirectives: _withDirectives, vModelText: _vModelText, vModelCheckbox: _vModelCheckbox, vShow: _vShow, Teleport: _Teleport, createBlock: _createBlock, vModelDynamic: _vModelDynamic, normalizeStyle: _normalizeStyle, resolveDynamicComponent: _resolveDynamicComponent, withCtx: _withCtx, isMemoSame: _isMemoSame, withMemo: _withMemo, resolveComponent: _resolveComponent, createVNode: _createVNode } = Vue
3
3
 
4
4
  return function render(_ctx, _cache) {
5
5
  const _component_session_message_actions = _resolveComponent("session-message-actions")
@@ -594,90 +594,120 @@ return function render(_ctx, _cache) {
594
594
  ])
595
595
  ])
596
596
  ]),
597
- _createElementVNode("div", { class: "side-rail-lang" }, [
598
- _createElementVNode("div", { class: "side-rail-lang-actions" }, [
599
- _createElementVNode("div", { class: "side-language-menu" }, [
600
- _createElementVNode("button", {
601
- type: "button",
602
- class: "language-settings-link",
603
- "aria-label": _ctx.t('settings.language.sideLabel', { language: _ctx.currentLanguageLabel() }),
604
- "aria-expanded": _ctx.languageMenuOpen ? 'true' : 'false',
605
- "aria-haspopup": "menu",
606
- onClick: _ctx.toggleLanguageMenu,
607
- onKeydown: _withKeys(_withModifiers(_ctx.closeLanguageMenu, ["prevent"]), ["esc"])
608
- }, [
609
- _createTextVNode(_toDisplayString(_ctx.currentLanguageLabel()) + " ", 1 /* TEXT */),
610
- (_openBlock(), _createElementBlock("svg", {
611
- viewBox: "0 0 16 16",
612
- fill: "none",
613
- stroke: "currentColor",
614
- "stroke-width": "1.8",
615
- "stroke-linecap": "round",
616
- "stroke-linejoin": "round",
617
- "aria-hidden": "true"
618
- }, [
619
- _createElementVNode("path", { d: "M4 6l4 4 4-4" })
620
- ]))
621
- ], 40 /* PROPS, NEED_HYDRATION */, ["aria-label", "aria-expanded", "onClick", "onKeydown"]),
622
- (_ctx.languageMenuOpen)
623
- ? (_openBlock(), _createElementBlock("div", {
624
- key: 0,
625
- class: "side-language-dropdown",
626
- role: "menu",
627
- onFocusout: _ctx.handleLanguageMenuFocusOut
628
- }, [
629
- (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.languageOptions(), (option) => {
630
- return (_openBlock(), _createElementBlock("button", {
631
- key: option.code,
632
- type: "button",
633
- class: _normalizeClass(["side-language-option", { active: option.code === _ctx.lang }]),
634
- role: "menuitemradio",
635
- "aria-checked": option.code === _ctx.lang ? 'true' : 'false',
636
- onClick: $event => (_ctx.selectLanguage(option.code))
637
- }, [
638
- _createElementVNode("span", null, _toDisplayString(option.nativeName), 1 /* TEXT */),
639
- _createElementVNode("small", null, _toDisplayString(option.englishName), 1 /* TEXT */),
640
- (option.code === _ctx.lang)
641
- ? (_openBlock(), _createElementBlock("svg", {
642
- key: 0,
643
- viewBox: "0 0 16 16",
644
- fill: "none",
645
- stroke: "currentColor",
646
- "stroke-width": "2",
647
- "stroke-linecap": "round",
648
- "stroke-linejoin": "round",
649
- "aria-hidden": "true"
650
- }, [
651
- _createElementVNode("path", { d: "M3.5 8.5l3 3 6-7" })
652
- ]))
653
- : _createCommentVNode("v-if", true)
654
- ], 10 /* CLASS, PROPS */, ["aria-checked", "onClick"]))
655
- }), 128 /* KEYED_FRAGMENT */))
656
- ], 40 /* PROPS, NEED_HYDRATION */, ["onFocusout"]))
657
- : _createCommentVNode("v-if", true)
658
- ]),
597
+ _createElementVNode("div", { class: "side-rail-footer" }, [
598
+ _createElementVNode("button", {
599
+ type: "button",
600
+ class: "side-rail-action side-announcement-button",
601
+ onClick: _ctx.openProviderCacheAnnouncementModal
602
+ }, [
603
+ (_openBlock(), _createElementBlock("svg", {
604
+ class: "side-rail-action-icon",
605
+ viewBox: "0 0 20 20",
606
+ fill: "none",
607
+ stroke: "currentColor",
608
+ "stroke-width": "1.7",
609
+ "stroke-linecap": "round",
610
+ "stroke-linejoin": "round",
611
+ "aria-hidden": "true"
612
+ }, [
613
+ _createElementVNode("path", { d: "M15 8.5a5 5 0 0 0-10 0c0 2.75-1 4.25-2 5.5h14c-1-1.25-2-2.75-2-5.5Z" }),
614
+ _createElementVNode("path", { d: "M8 16a2 2 0 0 0 4 0" })
615
+ ])),
616
+ _createElementVNode("span", null, _toDisplayString(_ctx.t('announcement.providerCache.open')), 1 /* TEXT */),
617
+ (_openBlock(), _createElementBlock("svg", {
618
+ class: "side-rail-action-chevron",
619
+ viewBox: "0 0 16 16",
620
+ fill: "none",
621
+ stroke: "currentColor",
622
+ "stroke-width": "1.8",
623
+ "stroke-linecap": "round",
624
+ "stroke-linejoin": "round",
625
+ "aria-hidden": "true"
626
+ }, [
627
+ _createElementVNode("path", { d: "M6 4l4 4-4 4" })
628
+ ]))
629
+ ], 8 /* PROPS */, ["onClick"]),
630
+ _createElementVNode("div", { class: "side-language-menu" }, [
659
631
  _createElementVNode("button", {
660
632
  type: "button",
661
- class: "side-announcement-button",
662
- "aria-label": _ctx.t('announcement.providerCache.open'),
663
- title: _ctx.t('announcement.providerCache.open'),
664
- onClick: _ctx.openProviderCacheAnnouncementModal
633
+ class: "side-rail-action",
634
+ "aria-label": _ctx.t('settings.language.sideLabel', { language: _ctx.currentLanguageLabel() }),
635
+ "aria-expanded": _ctx.languageMenuOpen ? 'true' : 'false',
636
+ "aria-haspopup": "menu",
637
+ onClick: _ctx.toggleLanguageMenu,
638
+ onKeydown: _withKeys(_withModifiers(_ctx.closeLanguageMenu, ["prevent"]), ["esc"])
665
639
  }, [
666
640
  (_openBlock(), _createElementBlock("svg", {
641
+ class: "side-rail-action-icon",
667
642
  viewBox: "0 0 20 20",
668
643
  fill: "none",
669
644
  stroke: "currentColor",
670
- "stroke-width": "1.7",
645
+ "stroke-width": "1.6",
646
+ "aria-hidden": "true"
647
+ }, [
648
+ _createElementVNode("circle", {
649
+ cx: "10",
650
+ cy: "10",
651
+ r: "7.5"
652
+ }),
653
+ _createElementVNode("ellipse", {
654
+ cx: "10",
655
+ cy: "10",
656
+ rx: "3.25",
657
+ ry: "7.5"
658
+ }),
659
+ _createElementVNode("path", { d: "M2.5 10h15" })
660
+ ])),
661
+ _createElementVNode("span", null, _toDisplayString(_ctx.currentLanguageLabel()), 1 /* TEXT */),
662
+ (_openBlock(), _createElementBlock("svg", {
663
+ class: "side-rail-action-chevron",
664
+ viewBox: "0 0 16 16",
665
+ fill: "none",
666
+ stroke: "currentColor",
667
+ "stroke-width": "1.8",
671
668
  "stroke-linecap": "round",
672
669
  "stroke-linejoin": "round",
673
- width: "16",
674
- height: "16",
675
670
  "aria-hidden": "true"
676
671
  }, [
677
- _createElementVNode("path", { d: "M15 8.5a5 5 0 0 0-10 0c0 2.75-1 4.25-2 5.5h14c-1-1.25-2-2.75-2-5.5Z" }),
678
- _createElementVNode("path", { d: "M8 16a2 2 0 0 0 4 0" })
672
+ _createElementVNode("path", { d: "M4 6l4 4 4-4" })
679
673
  ]))
680
- ], 8 /* PROPS */, ["aria-label", "title", "onClick"])
674
+ ], 40 /* PROPS, NEED_HYDRATION */, ["aria-label", "aria-expanded", "onClick", "onKeydown"]),
675
+ (_ctx.languageMenuOpen)
676
+ ? (_openBlock(), _createElementBlock("div", {
677
+ key: 0,
678
+ class: "side-language-dropdown",
679
+ role: "menu",
680
+ onFocusout: _ctx.handleLanguageMenuFocusOut
681
+ }, [
682
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.languageOptions(), (option) => {
683
+ return (_openBlock(), _createElementBlock("button", {
684
+ key: option.code,
685
+ type: "button",
686
+ class: _normalizeClass(["side-language-option", { active: option.code === _ctx.lang }]),
687
+ role: "menuitemradio",
688
+ "aria-checked": option.code === _ctx.lang ? 'true' : 'false',
689
+ onClick: $event => (_ctx.selectLanguage(option.code))
690
+ }, [
691
+ _createElementVNode("span", null, _toDisplayString(option.nativeName), 1 /* TEXT */),
692
+ _createElementVNode("small", null, _toDisplayString(option.englishName), 1 /* TEXT */),
693
+ (option.code === _ctx.lang)
694
+ ? (_openBlock(), _createElementBlock("svg", {
695
+ key: 0,
696
+ viewBox: "0 0 16 16",
697
+ fill: "none",
698
+ stroke: "currentColor",
699
+ "stroke-width": "2",
700
+ "stroke-linecap": "round",
701
+ "stroke-linejoin": "round",
702
+ "aria-hidden": "true"
703
+ }, [
704
+ _createElementVNode("path", { d: "M3.5 8.5l3 3 6-7" })
705
+ ]))
706
+ : _createCommentVNode("v-if", true)
707
+ ], 10 /* CLASS, PROPS */, ["aria-checked", "onClick"]))
708
+ }), 128 /* KEYED_FRAGMENT */))
709
+ ], 40 /* PROPS, NEED_HYDRATION */, ["onFocusout"]))
710
+ : _createCommentVNode("v-if", true)
681
711
  ])
682
712
  ])
683
713
  ]))
@@ -4883,43 +4913,96 @@ return function render(_ctx, _cache) {
4883
4913
  key: 1,
4884
4914
  class: "feature-empty"
4885
4915
  }, _toDisplayString(_ctx.t('features.empty')), 1 /* TEXT */))
4886
- : _createCommentVNode("v-if", true),
4887
- (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.indexResults.results, (result) => {
4888
- return (_openBlock(), _createElementBlock("article", {
4889
- key: result.session.key + result.nodeId,
4890
- class: "feature-record"
4891
- }, [
4892
- _createElementVNode("header", { class: "feature-record-heading" }, [
4893
- _createElementVNode("h4", null, _toDisplayString(result.session.title || result.session.sessionId), 1 /* TEXT */),
4894
- _createElementVNode("span", { class: "feature-source" }, _toDisplayString(result.session.source), 1 /* TEXT */)
4895
- ]),
4896
- _createElementVNode("small", {
4897
- class: "feature-path",
4898
- title: result.session.cwd
4899
- }, _toDisplayString(result.session.cwd), 9 /* TEXT, PROPS */, ["title"]),
4900
- _createElementVNode("pre", { class: "feature-excerpt" }, _toDisplayString(result.snippet), 1 /* TEXT */),
4901
- _createElementVNode("div", { class: "feature-record-actions" }, [
4902
- _createElementVNode("button", {
4903
- type: "button",
4904
- class: "btn-mini",
4905
- onClick: $event => (_ctx.openIndexedMessage(result))
4906
- }, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick"]),
4907
- _createElementVNode("label", { class: "evidence-select" }, [
4908
- _createElementVNode("input", {
4909
- type: "checkbox",
4910
- checked: _ctx.isEvidenceSelected(result),
4911
- onChange: $event => (_ctx.toggleEvidence(result))
4912
- }, null, 40 /* PROPS, NEED_HYDRATION */, ["checked", "onChange"]),
4913
- _createTextVNode(_toDisplayString(_ctx.t('evidence.select')), 1 /* TEXT */)
4914
- ])
4915
- ]),
4916
- _createElementVNode("details", { class: "feature-disclosure" }, [
4917
- _createElementVNode("summary", null, _toDisplayString(_ctx.t('features.context')), 1 /* TEXT */),
4918
- _createElementVNode("pre", null, _toDisplayString(result.before), 1 /* TEXT */),
4919
- _createElementVNode("pre", null, _toDisplayString(result.after), 1 /* TEXT */)
4920
- ])
4921
- ]))
4922
- }), 128 /* KEYED_FRAGMENT */))
4916
+ : (_openBlock(), _createElementBlock(_Fragment, { key: 2 }, [
4917
+ _createElementVNode("div", {
4918
+ class: "feature-actions index-result-views",
4919
+ role: "group",
4920
+ "aria-label": _ctx.t('features.resultView')
4921
+ }, [
4922
+ _createElementVNode("button", {
4923
+ type: "button",
4924
+ class: "btn-mini",
4925
+ "aria-pressed": _ctx.indexResultView === 'messages',
4926
+ onClick: $event => (_ctx.setIndexResultView('messages'))
4927
+ }, _toDisplayString(_ctx.t('features.byMessage')), 9 /* TEXT, PROPS */, ["aria-pressed", "onClick"]),
4928
+ _createElementVNode("button", {
4929
+ type: "button",
4930
+ class: "btn-mini",
4931
+ "aria-pressed": _ctx.indexResultView === 'sessions',
4932
+ onClick: $event => (_ctx.setIndexResultView('sessions'))
4933
+ }, _toDisplayString(_ctx.t('features.bySession')), 9 /* TEXT, PROPS */, ["aria-pressed", "onClick"])
4934
+ ], 8 /* PROPS */, ["aria-label"]),
4935
+ (_ctx.indexResultView === 'sessions' && _ctx.indexResults.truncated)
4936
+ ? (_openBlock(), _createElementBlock("p", {
4937
+ key: 0,
4938
+ class: "feature-hint"
4939
+ }, _toDisplayString(_ctx.t('features.groupedTruncated')), 1 /* TEXT */))
4940
+ : _createCommentVNode("v-if", true),
4941
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.indexResultRows, (row) => {
4942
+ return (_openBlock(), _createBlock(_resolveDynamicComponent(_ctx.indexResultView === 'sessions' ? 'details' : 'div'), {
4943
+ key: row.key,
4944
+ class: _normalizeClass(_ctx.indexResultView === 'sessions' ? 'feature-disclosure index-result-group' : 'index-message-row')
4945
+ }, {
4946
+ default: _withCtx(() => [
4947
+ (_ctx.indexResultView === 'sessions')
4948
+ ? (_openBlock(), _createElementBlock("summary", { key: 0 }, [
4949
+ _createElementVNode("strong", null, _toDisplayString(row.session.title || row.session.sessionId), 1 /* TEXT */),
4950
+ _createElementVNode("span", { class: "feature-source" }, _toDisplayString(row.session.source), 1 /* TEXT */),
4951
+ _createElementVNode("span", { class: "feature-meta" }, _toDisplayString(_ctx.t('features.returnedMatches', { count: row.hits.length })), 1 /* TEXT */),
4952
+ (row.session.cwd)
4953
+ ? (_openBlock(), _createElementBlock("span", {
4954
+ key: 0,
4955
+ class: "index-group-path",
4956
+ title: row.session.cwd
4957
+ }, _toDisplayString(row.session.cwd), 9 /* TEXT, PROPS */, ["title"]))
4958
+ : _createCommentVNode("v-if", true)
4959
+ ]))
4960
+ : _createCommentVNode("v-if", true),
4961
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(row.hits, (result) => {
4962
+ return (_openBlock(), _createElementBlock("article", {
4963
+ key: result.nodeId,
4964
+ class: "feature-record"
4965
+ }, [
4966
+ (_ctx.indexResultView === 'messages')
4967
+ ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [
4968
+ _createElementVNode("header", { class: "feature-record-heading" }, [
4969
+ _createElementVNode("h4", null, _toDisplayString(result.session.title || result.session.sessionId), 1 /* TEXT */),
4970
+ _createElementVNode("span", { class: "feature-source" }, _toDisplayString(result.session.source), 1 /* TEXT */)
4971
+ ]),
4972
+ _createElementVNode("small", {
4973
+ class: "feature-path",
4974
+ title: result.session.cwd
4975
+ }, _toDisplayString(result.session.cwd), 9 /* TEXT, PROPS */, ["title"])
4976
+ ], 64 /* STABLE_FRAGMENT */))
4977
+ : _createCommentVNode("v-if", true),
4978
+ _createElementVNode("pre", { class: "feature-excerpt" }, _toDisplayString(result.snippet), 1 /* TEXT */),
4979
+ _createElementVNode("div", { class: "feature-record-actions" }, [
4980
+ _createElementVNode("button", {
4981
+ type: "button",
4982
+ class: "btn-mini",
4983
+ onClick: $event => (_ctx.openIndexedMessage(result))
4984
+ }, _toDisplayString(_ctx.t('features.source')), 9 /* TEXT, PROPS */, ["onClick"]),
4985
+ _createElementVNode("label", { class: "evidence-select" }, [
4986
+ _createElementVNode("input", {
4987
+ type: "checkbox",
4988
+ checked: _ctx.isEvidenceSelected(result),
4989
+ onChange: $event => (_ctx.toggleEvidence(result))
4990
+ }, null, 40 /* PROPS, NEED_HYDRATION */, ["checked", "onChange"]),
4991
+ _createTextVNode(_toDisplayString(_ctx.t('evidence.select')), 1 /* TEXT */)
4992
+ ])
4993
+ ]),
4994
+ _createElementVNode("details", { class: "feature-disclosure" }, [
4995
+ _createElementVNode("summary", null, _toDisplayString(_ctx.t('features.context')), 1 /* TEXT */),
4996
+ _createElementVNode("pre", null, _toDisplayString(result.before), 1 /* TEXT */),
4997
+ _createElementVNode("pre", null, _toDisplayString(result.after), 1 /* TEXT */)
4998
+ ])
4999
+ ]))
5000
+ }), 128 /* KEYED_FRAGMENT */))
5001
+ ]),
5002
+ _: 2 /* DYNAMIC */
5003
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class"]))
5004
+ }), 128 /* KEYED_FRAGMENT */))
5005
+ ], 64 /* STABLE_FRAGMENT */))
4923
5006
  ], 64 /* STABLE_FRAGMENT */))
4924
5007
  : _createCommentVNode("v-if", true)
4925
5008
  ]))
@@ -8984,12 +9067,6 @@ return function render(_ctx, _cache) {
8984
9067
  _createElementVNode("span", { class: "skills-flow-count" }, _toDisplayString(_ctx.skillsList.length), 1 /* TEXT */)
8985
9068
  ]),
8986
9069
  _createElementVNode("div", { class: "skills-flow-actions" }, [
8987
- _createElementVNode("button", {
8988
- type: "button",
8989
- class: "skills-action-btn",
8990
- onClick: _ctx.backupCurrentSkills,
8991
- disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy || _ctx.skillsList.length === 0
8992
- }, _toDisplayString(_ctx.skillsBackingUp ? _ctx.t('market.backup.running') : _ctx.t('market.backup.action')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
8993
9070
  _createElementVNode("button", {
8994
9071
  type: "button",
8995
9072
  class: "skills-action-btn",
@@ -9032,6 +9109,28 @@ return function render(_ctx, _cache) {
9032
9109
  ], 8 /* PROPS */, ["onClick", "disabled"])
9033
9110
  ])
9034
9111
  ]),
9112
+ _createElementVNode("div", { class: "skills-flow-actions" }, [
9113
+ _createElementVNode("button", {
9114
+ type: "button",
9115
+ class: "skills-action-btn",
9116
+ onClick: _ctx.backupCurrentSkills,
9117
+ disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy || _ctx.skillsList.length === 0
9118
+ }, _toDisplayString(_ctx.skillsBackingUp ? _ctx.t('market.backup.running') : _ctx.t('market.backup.export')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
9119
+ _createElementVNode("button", {
9120
+ type: "button",
9121
+ class: "skills-action-btn",
9122
+ onClick: $event => (_ctx.triggerSkillsZipImport('backup')),
9123
+ disabled: _ctx.loading || !!_ctx.initError || _ctx.skillsMarketBusy
9124
+ }, _toDisplayString(_ctx.skillsZipImporting ? _ctx.t('modal.skills.actions.zipImporting') : _ctx.t('market.backup.import')), 9 /* TEXT, PROPS */, ["onClick", "disabled"]),
9125
+ _createElementVNode("input", {
9126
+ ref: "skillsBackupImportInput",
9127
+ type: "file",
9128
+ accept: ".zip,application/zip",
9129
+ hidden: "",
9130
+ onChange: $event => (_ctx.handleSkillsZipImportChange($event, 'backup')),
9131
+ onCancel: $event => (delete $event.target.dataset.targetApp)
9132
+ }, null, 40 /* PROPS, NEED_HYDRATION */, ["onChange", "onCancel"])
9133
+ ]),
9035
9134
  (_ctx.skillsList.length > 0)
9036
9135
  ? (_openBlock(), _createElementBlock("div", {
9037
9136
  key: 0,
@@ -10114,33 +10213,45 @@ return function render(_ctx, _cache) {
10114
10213
  role: "tab",
10115
10214
  "aria-selected": _ctx.promptsSubTab === 'codex',
10116
10215
  onClick: $event => (_ctx.switchPromptsSubTab('codex'))
10117
- }, _toDisplayString(_ctx.t('prompts.subTab.codex')), 11 /* TEXT, CLASS, PROPS */, ["aria-selected", "onClick"]),
10216
+ }, [
10217
+ _createElementVNode("span", null, "AGENTS.md"),
10218
+ _createElementVNode("span", { class: "prompts-file-badge" }, "Codex")
10219
+ ], 10 /* CLASS, PROPS */, ["aria-selected", "onClick"]),
10118
10220
  _createElementVNode("button", {
10119
10221
  type: "button",
10120
10222
  class: _normalizeClass(['prompts-md-tab', { active: _ctx.promptsSubTab === 'opencode' }]),
10121
10223
  role: "tab",
10122
10224
  "aria-selected": _ctx.promptsSubTab === 'opencode',
10123
10225
  onClick: $event => (_ctx.switchPromptsSubTab('opencode'))
10124
- }, _toDisplayString(_ctx.t('prompts.subTab.opencode')), 11 /* TEXT, CLASS, PROPS */, ["aria-selected", "onClick"]),
10226
+ }, [
10227
+ _createElementVNode("span", null, "AGENTS.md"),
10228
+ _createElementVNode("span", { class: "prompts-file-badge" }, "OpenCode")
10229
+ ], 10 /* CLASS, PROPS */, ["aria-selected", "onClick"]),
10125
10230
  _createElementVNode("button", {
10126
10231
  type: "button",
10127
10232
  class: _normalizeClass(['prompts-md-tab', { active: _ctx.promptsSubTab === 'claude-project' }]),
10128
10233
  role: "tab",
10129
10234
  "aria-selected": _ctx.promptsSubTab === 'claude-project',
10130
10235
  onClick: $event => (_ctx.switchPromptsSubTab('claude-project'))
10131
- }, _toDisplayString(_ctx.t('prompts.subTab.project')), 11 /* TEXT, CLASS, PROPS */, ["aria-selected", "onClick"]),
10236
+ }, [
10237
+ _createElementVNode("span", null, "CLAUDE.md"),
10238
+ _createElementVNode("span", { class: "prompts-file-badge" }, "Claude")
10239
+ ], 10 /* CLASS, PROPS */, ["aria-selected", "onClick"]),
10132
10240
  _createElementVNode("button", {
10133
10241
  type: "button",
10134
10242
  class: _normalizeClass(['prompts-md-tab', { active: _ctx.promptsSubTab === 'system' }]),
10135
10243
  role: "tab",
10136
10244
  "aria-selected": _ctx.promptsSubTab === 'system',
10137
10245
  onClick: $event => (_ctx.switchPromptsSubTab('system'))
10138
- }, _toDisplayString(_ctx.t('prompts.subTab.system')), 11 /* TEXT, CLASS, PROPS */, ["aria-selected", "onClick"])
10246
+ }, [
10247
+ _createElementVNode("span", null, "SYSTEM.md"),
10248
+ _createElementVNode("span", { class: "prompts-file-badge" }, "Pi")
10249
+ ], 10 /* CLASS, PROPS */, ["aria-selected", "onClick"])
10139
10250
  ], 8 /* PROPS */, ["aria-label"]),
10140
10251
  (_ctx.promptsSubTab === 'claude-project')
10141
10252
  ? (_openBlock(), _createElementBlock("div", {
10142
10253
  key: 0,
10143
- class: "project-path-selector"
10254
+ class: "project-path-selector prompts-target-card"
10144
10255
  }, [
10145
10256
  _createElementVNode("label", { class: "project-path-label" }, _toDisplayString(_ctx.t('prompts.project.pathLabel')), 1 /* TEXT */),
10146
10257
  _createElementVNode("div", { class: "project-path-row" }, [
@@ -10303,6 +10414,62 @@ return function render(_ctx, _cache) {
10303
10414
  ]))
10304
10415
  ], 8 /* PROPS */, ["onClick", "disabled", "title"])
10305
10416
  ], 8 /* PROPS */, ["aria-label"]),
10417
+ (_ctx.promptsPreviewEnabled && !_ctx.agentsDiffVisible)
10418
+ ? (_openBlock(), _createElementBlock("div", {
10419
+ key: 0,
10420
+ class: "prompts-editor-group prompts-editor-group--reading"
10421
+ }, [
10422
+ _createElementVNode("button", {
10423
+ type: "button",
10424
+ class: "btn-mini prompts-outline-toggle",
10425
+ "aria-expanded": !_ctx.promptsOutlineCollapsed,
10426
+ "aria-controls": "prompts-agents-outline",
10427
+ "aria-label": _ctx.t('prompts.editor.outline'),
10428
+ title: _ctx.t('prompts.editor.outline'),
10429
+ onClick: $event => (_ctx.promptsOutlineCollapsed = !_ctx.promptsOutlineCollapsed)
10430
+ }, [
10431
+ (_openBlock(), _createElementBlock("svg", {
10432
+ class: "btn-icon-sm",
10433
+ viewBox: "0 0 24 24",
10434
+ fill: "none",
10435
+ stroke: "currentColor",
10436
+ "stroke-width": "2"
10437
+ }, [
10438
+ _createElementVNode("rect", {
10439
+ x: "3",
10440
+ y: "4",
10441
+ width: "18",
10442
+ height: "16",
10443
+ rx: "2"
10444
+ }),
10445
+ _createElementVNode("path", { d: "M10 4v16" })
10446
+ ]))
10447
+ ], 8 /* PROPS */, ["aria-expanded", "aria-label", "title", "onClick"]),
10448
+ _createElementVNode("button", {
10449
+ type: "button",
10450
+ class: "btn-mini prompts-split-collapse-btn",
10451
+ "aria-pressed": !_ctx.promptsPreviewCollapsed,
10452
+ title: _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
10453
+ "aria-label": _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
10454
+ onClick: $event => (_ctx.togglePromptsPreviewCollapsed())
10455
+ }, [
10456
+ (_openBlock(), _createElementBlock("svg", {
10457
+ class: "btn-icon-sm",
10458
+ viewBox: "0 0 24 24",
10459
+ fill: "none",
10460
+ stroke: "currentColor",
10461
+ "stroke-width": "2"
10462
+ }, [
10463
+ _createElementVNode("path", { d: "M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z" }),
10464
+ _createElementVNode("circle", {
10465
+ cx: "12",
10466
+ cy: "12",
10467
+ r: "3"
10468
+ })
10469
+ ]))
10470
+ ], 8 /* PROPS */, ["aria-pressed", "title", "aria-label", "onClick"])
10471
+ ]))
10472
+ : _createCommentVNode("v-if", true),
10306
10473
  _createElementVNode("div", {
10307
10474
  class: "prompts-editor-group prompts-editor-group--workflow prompts-editor-group--view",
10308
10475
  role: "group",
@@ -10657,27 +10824,34 @@ return function render(_ctx, _cache) {
10657
10824
  ])
10658
10825
  ], 8 /* PROPS */, ["aria-label"]),
10659
10826
  _createElementVNode("div", {
10660
- class: _normalizeClass(['editor-frame prompts-editor-frame', { 'editor-frame--loading': _ctx.agentsLoading, 'prompts-editor-frame--split': _ctx.promptsPreviewEnabled, 'prompts-editor-frame--preview-collapsed': _ctx.promptsPreviewCollapsed, 'prompts-editor-frame--mobile-preview': _ctx.promptsPreviewEnabled && _ctx.promptsMobileView === 'preview' }])
10827
+ class: _normalizeClass(['editor-frame prompts-editor-frame', { 'prompts-editor-frame--outline': _ctx.promptsPreviewEnabled && !_ctx.promptsOutlineCollapsed, 'editor-frame--loading': _ctx.agentsLoading, 'prompts-editor-frame--split': _ctx.promptsPreviewEnabled, 'prompts-editor-frame--preview-collapsed': _ctx.promptsPreviewCollapsed, 'prompts-editor-frame--mobile-preview': _ctx.promptsPreviewEnabled && _ctx.promptsMobileView === 'preview' }])
10661
10828
  }, [
10662
10829
  (_ctx.promptsPreviewEnabled)
10663
- ? (_openBlock(), _createElementBlock("button", {
10830
+ ? _withDirectives((_openBlock(), _createElementBlock("nav", {
10664
10831
  key: 0,
10665
- type: "button",
10666
- class: _normalizeClass(["prompts-split-collapse-btn", { 'prompts-split-collapse-btn--collapsed': _ctx.promptsPreviewCollapsed }]),
10667
- title: _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
10668
- "aria-label": _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
10669
- onClick: $event => (_ctx.togglePromptsPreviewCollapsed())
10832
+ id: "prompts-agents-outline",
10833
+ class: "prompts-outline",
10834
+ "aria-label": _ctx.t('prompts.editor.outline')
10670
10835
  }, [
10671
- (_openBlock(), _createElementBlock("svg", {
10672
- class: "prompts-split-collapse-icon",
10673
- viewBox: "0 0 24 24",
10674
- fill: "none",
10675
- stroke: "currentColor",
10676
- "stroke-width": "2"
10677
- }, [
10678
- _createElementVNode("path", { d: "M9 6l6 6-6 6" })
10679
- ]))
10680
- ], 10 /* CLASS, PROPS */, ["title", "aria-label", "onClick"]))
10836
+ _createElementVNode("div", { class: "prompts-outline-title" }, _toDisplayString(_ctx.t('prompts.editor.outline')), 1 /* TEXT */),
10837
+ (!_ctx.agentsPreviewHeadings.length)
10838
+ ? (_openBlock(), _createElementBlock("p", {
10839
+ key: 0,
10840
+ class: "form-hint"
10841
+ }, _toDisplayString(_ctx.t('prompts.editor.outlineEmpty')), 1 /* TEXT */))
10842
+ : _createCommentVNode("v-if", true),
10843
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.agentsPreviewHeadings, (heading) => {
10844
+ return (_openBlock(), _createElementBlock("button", {
10845
+ key: heading.index,
10846
+ type: "button",
10847
+ class: "prompts-outline-item",
10848
+ style: _normalizeStyle({ '--outline-depth': heading.depth }),
10849
+ onClick: $event => (_ctx.jumpToPromptsHeading('agents', heading.index))
10850
+ }, _toDisplayString(heading.text), 13 /* TEXT, STYLE, PROPS */, ["onClick"]))
10851
+ }), 128 /* KEYED_FRAGMENT */))
10852
+ ], 8 /* PROPS */, ["aria-label"])), [
10853
+ [_vShow, !_ctx.promptsOutlineCollapsed]
10854
+ ])
10681
10855
  : _createCommentVNode("v-if", true),
10682
10856
  (_ctx.agentsLoading)
10683
10857
  ? (_openBlock(), _createElementBlock("div", {
@@ -10709,6 +10883,7 @@ return function render(_ctx, _cache) {
10709
10883
  (_ctx.promptsPreviewEnabled)
10710
10884
  ? (_openBlock(), _createElementBlock("div", {
10711
10885
  key: 0,
10886
+ ref: "promptsAgentsPreviewPane",
10712
10887
  class: "prompts-preview-pane"
10713
10888
  }, [
10714
10889
  (_ctx.promptsPreviewLibsMissing)
@@ -10726,7 +10901,7 @@ return function render(_ctx, _cache) {
10726
10901
  class: "prompts-preview-body",
10727
10902
  innerHTML: _ctx.agentsPreviewHtml
10728
10903
  }, null, 8 /* PROPS */, ["innerHTML"]))
10729
- ]))
10904
+ ], 512 /* NEED_PATCH */))
10730
10905
  : _createCommentVNode("v-if", true)
10731
10906
  ])
10732
10907
  ], 2 /* CLASS */),
@@ -10741,7 +10916,7 @@ return function render(_ctx, _cache) {
10741
10916
  : _createCommentVNode("v-if", true),
10742
10917
  (_ctx.promptsSubTab === 'system')
10743
10918
  ? (_openBlock(), _createElementBlock("div", { key: 2 }, [
10744
- _createElementVNode("div", { class: "sys-prompt-controls" }, [
10919
+ _createElementVNode("div", { class: "sys-prompt-controls prompts-target-card" }, [
10745
10920
  _createElementVNode("div", { class: "sys-prompt-control-group" }, [
10746
10921
  _createElementVNode("label", {
10747
10922
  class: "form-label",
@@ -10784,8 +10959,12 @@ return function render(_ctx, _cache) {
10784
10959
  : _createCommentVNode("v-if", true)
10785
10960
  ]),
10786
10961
  _createElementVNode("div", { class: "sys-prompt-control-group" }, [
10787
- _createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('sysPrompt.scope.label')), 1 /* TEXT */),
10962
+ _createElementVNode("label", {
10963
+ class: "form-label",
10964
+ for: "sys-prompt-scope-select"
10965
+ }, _toDisplayString(_ctx.t('sysPrompt.scope.label')), 1 /* TEXT */),
10788
10966
  _createElementVNode("select", {
10967
+ id: "sys-prompt-scope-select",
10789
10968
  class: "form-input sys-prompt-select",
10790
10969
  value: _ctx.sysPromptScope,
10791
10970
  onChange: $event => (_ctx.switchSysPromptScope($event.target.value)),
@@ -10800,8 +10979,12 @@ return function render(_ctx, _cache) {
10800
10979
  key: 0,
10801
10980
  class: "sys-prompt-control-group"
10802
10981
  }, [
10803
- _createElementVNode("label", { class: "form-label" }, _toDisplayString(_ctx.t('sysPrompt.mode.label')), 1 /* TEXT */),
10982
+ _createElementVNode("label", {
10983
+ class: "form-label",
10984
+ for: "sys-prompt-mode-select"
10985
+ }, _toDisplayString(_ctx.t('sysPrompt.mode.label')), 1 /* TEXT */),
10804
10986
  _createElementVNode("select", {
10987
+ id: "sys-prompt-mode-select",
10805
10988
  class: "form-input sys-prompt-select",
10806
10989
  value: _ctx.sysPromptMode,
10807
10990
  onChange: $event => (_ctx.switchSysPromptMode($event.target.value)),
@@ -10952,6 +11135,62 @@ return function render(_ctx, _cache) {
10952
11135
  ]))
10953
11136
  ], 8 /* PROPS */, ["onClick", "disabled", "title"])
10954
11137
  ], 8 /* PROPS */, ["aria-label"]),
11138
+ (_ctx.promptsPreviewEnabled && !_ctx.sysPromptDiffVisible)
11139
+ ? (_openBlock(), _createElementBlock("div", {
11140
+ key: 0,
11141
+ class: "prompts-editor-group prompts-editor-group--reading"
11142
+ }, [
11143
+ _createElementVNode("button", {
11144
+ type: "button",
11145
+ class: "btn-mini prompts-outline-toggle",
11146
+ "aria-expanded": !_ctx.promptsOutlineCollapsed,
11147
+ "aria-controls": "prompts-sys-outline",
11148
+ "aria-label": _ctx.t('prompts.editor.outline'),
11149
+ title: _ctx.t('prompts.editor.outline'),
11150
+ onClick: $event => (_ctx.promptsOutlineCollapsed = !_ctx.promptsOutlineCollapsed)
11151
+ }, [
11152
+ (_openBlock(), _createElementBlock("svg", {
11153
+ class: "btn-icon-sm",
11154
+ viewBox: "0 0 24 24",
11155
+ fill: "none",
11156
+ stroke: "currentColor",
11157
+ "stroke-width": "2"
11158
+ }, [
11159
+ _createElementVNode("rect", {
11160
+ x: "3",
11161
+ y: "4",
11162
+ width: "18",
11163
+ height: "16",
11164
+ rx: "2"
11165
+ }),
11166
+ _createElementVNode("path", { d: "M10 4v16" })
11167
+ ]))
11168
+ ], 8 /* PROPS */, ["aria-expanded", "aria-label", "title", "onClick"]),
11169
+ _createElementVNode("button", {
11170
+ type: "button",
11171
+ class: "btn-mini prompts-split-collapse-btn",
11172
+ "aria-pressed": !_ctx.promptsPreviewCollapsed,
11173
+ title: _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
11174
+ "aria-label": _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
11175
+ onClick: $event => (_ctx.togglePromptsPreviewCollapsed())
11176
+ }, [
11177
+ (_openBlock(), _createElementBlock("svg", {
11178
+ class: "btn-icon-sm",
11179
+ viewBox: "0 0 24 24",
11180
+ fill: "none",
11181
+ stroke: "currentColor",
11182
+ "stroke-width": "2"
11183
+ }, [
11184
+ _createElementVNode("path", { d: "M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z" }),
11185
+ _createElementVNode("circle", {
11186
+ cx: "12",
11187
+ cy: "12",
11188
+ r: "3"
11189
+ })
11190
+ ]))
11191
+ ], 8 /* PROPS */, ["aria-pressed", "title", "aria-label", "onClick"])
11192
+ ]))
11193
+ : _createCommentVNode("v-if", true),
10955
11194
  _createElementVNode("div", {
10956
11195
  class: "prompts-editor-group prompts-editor-group--workflow prompts-editor-group--view",
10957
11196
  role: "group",
@@ -11213,27 +11452,34 @@ return function render(_ctx, _cache) {
11213
11452
  ])
11214
11453
  ], 8 /* PROPS */, ["aria-label"]),
11215
11454
  _createElementVNode("div", {
11216
- class: _normalizeClass(['editor-frame prompts-editor-frame', { 'editor-frame--loading': _ctx.sysPromptLoading, 'prompts-editor-frame--split': _ctx.promptsPreviewEnabled, 'prompts-editor-frame--preview-collapsed': _ctx.promptsPreviewCollapsed, 'prompts-editor-frame--mobile-preview': _ctx.promptsPreviewEnabled && _ctx.promptsMobileView === 'preview' }])
11455
+ class: _normalizeClass(['editor-frame prompts-editor-frame', { 'prompts-editor-frame--outline': _ctx.promptsPreviewEnabled && !_ctx.promptsOutlineCollapsed, 'editor-frame--loading': _ctx.sysPromptLoading, 'prompts-editor-frame--split': _ctx.promptsPreviewEnabled, 'prompts-editor-frame--preview-collapsed': _ctx.promptsPreviewCollapsed, 'prompts-editor-frame--mobile-preview': _ctx.promptsPreviewEnabled && _ctx.promptsMobileView === 'preview' }])
11217
11456
  }, [
11218
11457
  (_ctx.promptsPreviewEnabled)
11219
- ? (_openBlock(), _createElementBlock("button", {
11458
+ ? _withDirectives((_openBlock(), _createElementBlock("nav", {
11220
11459
  key: 0,
11221
- type: "button",
11222
- class: _normalizeClass(["prompts-split-collapse-btn", { 'prompts-split-collapse-btn--collapsed': _ctx.promptsPreviewCollapsed }]),
11223
- title: _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
11224
- "aria-label": _ctx.promptsPreviewCollapsed ? _ctx.t('prompts.editor.expandPreview') : _ctx.t('prompts.editor.collapsePreview'),
11225
- onClick: $event => (_ctx.togglePromptsPreviewCollapsed())
11460
+ id: "prompts-sys-outline",
11461
+ class: "prompts-outline",
11462
+ "aria-label": _ctx.t('prompts.editor.outline')
11226
11463
  }, [
11227
- (_openBlock(), _createElementBlock("svg", {
11228
- class: "prompts-split-collapse-icon",
11229
- viewBox: "0 0 24 24",
11230
- fill: "none",
11231
- stroke: "currentColor",
11232
- "stroke-width": "2"
11233
- }, [
11234
- _createElementVNode("path", { d: "M9 6l6 6-6 6" })
11235
- ]))
11236
- ], 10 /* CLASS, PROPS */, ["title", "aria-label", "onClick"]))
11464
+ _createElementVNode("div", { class: "prompts-outline-title" }, _toDisplayString(_ctx.t('prompts.editor.outline')), 1 /* TEXT */),
11465
+ (!_ctx.sysPreviewHeadings.length)
11466
+ ? (_openBlock(), _createElementBlock("p", {
11467
+ key: 0,
11468
+ class: "form-hint"
11469
+ }, _toDisplayString(_ctx.t('prompts.editor.outlineEmpty')), 1 /* TEXT */))
11470
+ : _createCommentVNode("v-if", true),
11471
+ (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sysPreviewHeadings, (heading) => {
11472
+ return (_openBlock(), _createElementBlock("button", {
11473
+ key: heading.index,
11474
+ type: "button",
11475
+ class: "prompts-outline-item",
11476
+ style: _normalizeStyle({ '--outline-depth': heading.depth }),
11477
+ onClick: $event => (_ctx.jumpToPromptsHeading('sys', heading.index))
11478
+ }, _toDisplayString(heading.text), 13 /* TEXT, STYLE, PROPS */, ["onClick"]))
11479
+ }), 128 /* KEYED_FRAGMENT */))
11480
+ ], 8 /* PROPS */, ["aria-label"])), [
11481
+ [_vShow, !_ctx.promptsOutlineCollapsed]
11482
+ ])
11237
11483
  : _createCommentVNode("v-if", true),
11238
11484
  (_ctx.sysPromptLoading)
11239
11485
  ? (_openBlock(), _createElementBlock("div", {
@@ -11264,6 +11510,7 @@ return function render(_ctx, _cache) {
11264
11510
  (_ctx.promptsPreviewEnabled)
11265
11511
  ? (_openBlock(), _createElementBlock("div", {
11266
11512
  key: 0,
11513
+ ref: "promptsSysPreviewPane",
11267
11514
  class: "prompts-preview-pane"
11268
11515
  }, [
11269
11516
  (_ctx.promptsPreviewLibsMissing)
@@ -11281,7 +11528,7 @@ return function render(_ctx, _cache) {
11281
11528
  class: "prompts-preview-body",
11282
11529
  innerHTML: _ctx.sysPromptPreviewHtml
11283
11530
  }, null, 8 /* PROPS */, ["innerHTML"]))
11284
- ]))
11531
+ ], 512 /* NEED_PATCH */))
11285
11532
  : _createCommentVNode("v-if", true)
11286
11533
  ])
11287
11534
  ], 2 /* CLASS */),