@nelsonlongxiang/dsh-prompt-templates 0.13.3 → 0.13.4
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.
- package/lib/client/Library.js +6 -2
- package/lib/client.js +2 -3
- package/lib/client.js.map +1 -1
- package/package.json +1 -1
package/lib/client/Library.js
CHANGED
|
@@ -241,7 +241,10 @@ export function TemplateLibrary({ sessionId, face, t, header, headerExtra }) {
|
|
|
241
241
|
session_id: incoming.scope === 'session' ? sessionId : null,
|
|
242
242
|
description: incoming.description,
|
|
243
243
|
category: incoming.category,
|
|
244
|
-
|
|
244
|
+
// Import never silently enables scheduled injection — the interval
|
|
245
|
+
// and mode survive so a manual toggle starts it as configured, but
|
|
246
|
+
// the switch itself stays off until the user turns it on.
|
|
247
|
+
inject_enabled: false,
|
|
245
248
|
inject_every: incoming.inject_every,
|
|
246
249
|
mode: incoming.mode,
|
|
247
250
|
});
|
|
@@ -254,7 +257,8 @@ export function TemplateLibrary({ sessionId, face, t, header, headerExtra }) {
|
|
|
254
257
|
content: pair.incoming.content,
|
|
255
258
|
description: pair.incoming.description,
|
|
256
259
|
category: pair.incoming.category,
|
|
257
|
-
|
|
260
|
+
// Overwrite updates content and placement, never the inject switch:
|
|
261
|
+
// the target's own on/off state survives the sync.
|
|
258
262
|
inject_every: pair.incoming.inject_every,
|
|
259
263
|
mode: pair.incoming.mode,
|
|
260
264
|
});
|
package/lib/client.js
CHANGED
|
@@ -196,7 +196,7 @@ window.__ModuleLoader__.load({
|
|
|
196
196
|
/** Canonical public source repository for the panel's metadata link. */
|
|
197
197
|
const GITHUB_REPOSITORY_URL = "https://github.com/NelsonLongXiang/dsh-prompt-templates";
|
|
198
198
|
/** Build-injected package version; `dev` only exists in unbundled unit tests. */
|
|
199
|
-
const PLUGIN_VERSION = "0.13.
|
|
199
|
+
const PLUGIN_VERSION = "0.13.4";
|
|
200
200
|
/** Header count: current-tab size when idle, matched/searchable when searching. */
|
|
201
201
|
function templateCountLabel(matched, searchable, searching) {
|
|
202
202
|
return searching ? `${matched}/${searchable}` : String(matched);
|
|
@@ -802,7 +802,7 @@ window.__ModuleLoader__.load({
|
|
|
802
802
|
session_id: incoming.scope === "session" ? sessionId : null,
|
|
803
803
|
description: incoming.description,
|
|
804
804
|
category: incoming.category,
|
|
805
|
-
inject_enabled:
|
|
805
|
+
inject_enabled: false,
|
|
806
806
|
inject_every: incoming.inject_every,
|
|
807
807
|
mode: incoming.mode
|
|
808
808
|
})).ok) created += 1;
|
|
@@ -812,7 +812,6 @@ window.__ModuleLoader__.load({
|
|
|
812
812
|
content: pair.incoming.content,
|
|
813
813
|
description: pair.incoming.description,
|
|
814
814
|
category: pair.incoming.category,
|
|
815
|
-
inject_enabled: pair.incoming.inject_enabled,
|
|
816
815
|
inject_every: pair.incoming.inject_every,
|
|
817
816
|
mode: pair.incoming.mode
|
|
818
817
|
})).ok) overwrite -= 1;
|
package/lib/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","names":["css","IconQueueOutlineRegular","IconSendOutlineRegular","IconCopyOutlineRegular","IconGlobeOutlineRegular","IconEditOutlineRegular","IconTrashOutlineRegular","IconDownloadOutlineRegular","IconPlusOutlineRegular","css","css","css","#actions","#pendingAutoOpen","#sessions","#conversation","#require","#targetSession","#targetVersion","#targetListeners","#inputOf"],"sources":["client/api.js","client/filter.js","client/share.js","client/meta.js","client/Library.js","client/Panel.js","client/PanelButton.js","client/PromptTab.js","client/tab.js","client/store.js","variables.js","client/service.js","client/locales.js","client/index.js"],"sourcesContent":["/**\n * Browser-side API over the host's `/plugins/dsh-prompt-templates` routes.\n * One fetch helper per verb; every response settles into the same\n * `{ ok: true; value } | { ok: false; error }` envelope the panel face\n * consumes, so callers never see transport details.\n */\nconst BASE = '/plugins/dsh-prompt-templates';\n/** Load the full template set (global + every session's). */\nexport async function listTemplates() {\n const response = await fetch(`${BASE}/templates`, { cache: 'no-store' });\n if (!response.ok)\n return [];\n const body = await response.json();\n return [...body.items ?? []];\n}\n/** Poll a session's latest scheduled injection; null when none since boot (badges hide). */\nexport async function injectStatus(sessionId) {\n const response = await fetch(`${BASE}/inject-status?session_id=${encodeURIComponent(sessionId)}`, { cache: 'no-store' });\n if (!response.ok)\n return null;\n const body = await response.json();\n return body.status ?? null;\n}\n/** Load a session recent scheduled injections, newest first (empty when none). */\nexport async function injectionHistory(sessionId) {\n const response = await fetch(`${BASE}/inject-status?session_id=${encodeURIComponent(sessionId)}`, { cache: 'no-store' });\n if (!response.ok)\n return [];\n const body = await response.json();\n return [...body.history ?? []];\n}\n/** Load every user category tab (global + all sessions'; the panel filters). */\nexport async function listCategories() {\n const response = await fetch(`${BASE}/categories`, { cache: 'no-store' });\n if (!response.ok)\n return [];\n const body = await response.json();\n return [...body.items ?? []];\n}\n/** Create one category tab. */\nexport async function createCategory(request) {\n return mutate('POST', '/categories', request);\n}\n/** Delete one category tab (its templates fall back to the default tab). */\nexport async function deleteCategory(name, scope, sessionId) {\n const params = new URLSearchParams({ scope });\n if (sessionId !== null)\n params.set('session_id', sessionId);\n return mutate('DELETE', `/categories/${encodeURIComponent(name)}?${params.toString()}`);\n}\n/** Create one template. */\nexport async function createTemplate(request) {\n return mutate('POST', '/templates', request);\n}\n/** Patch one template by id. */\nexport async function updateTemplate(id, request) {\n return mutate('PATCH', `/templates/${encodeURIComponent(id)}`, request);\n}\n/** Promote one session template to the global partition. */\nexport async function makeTemplateGlobal(id) {\n return mutate('POST', `/templates/${encodeURIComponent(id)}/make-global`, {});\n}\n/** Delete one template by id. */\nexport async function deleteTemplate(id) {\n return mutate('DELETE', `/templates/${encodeURIComponent(id)}`);\n}\n/** Run one mutating request and settle it into the action envelope. */\nasync function mutate(method, path, body) {\n try {\n const response = await fetch(`${BASE}${path}`, {\n method,\n headers: body === undefined ? undefined : { 'content-type': 'application/json' },\n body: body === undefined ? undefined : JSON.stringify(body),\n cache: 'no-store',\n });\n if (!response.ok) {\n const payload = await response.json().catch(() => null);\n return {\n ok: false,\n error: payload?.error ?? { code: `http:${response.status}`, message: response.statusText },\n };\n }\n return { ok: true, value: await response.json().catch(() => undefined) };\n }\n catch (error) {\n return { ok: false, error: { code: 'network-error', message: String(error) } };\n }\n}\n","/**\n * Filter the panel's rows. A non-empty query is global across every category\n * while respecting privacy: every global template and only the current\n * session's private templates are searchable. With no query, the active tab\n * keeps its normal partition/category semantics.\n */\n/** All templates a search is allowed to inspect (global + current session). */\nexport function searchableTemplateRows(templates, sessionId) {\n return templates.filter(row => row.scope === 'global' || (row.scope === 'session' && row.session_id === sessionId));\n}\nexport function filterTemplateRows(templates, query, effectiveTab, activeCategory, sessionId) {\n const needle = query.trim().toLowerCase();\n const matches = (row) => row.name.toLowerCase().includes(needle) || row.content.toLowerCase().includes(needle);\n if (needle !== '') {\n return searchableTemplateRows(templates, sessionId).filter(matches);\n }\n return templates.filter((row) => {\n if (effectiveTab === 'global')\n return row.scope === 'global' && row.category === null;\n if (effectiveTab === 'session')\n return row.scope === 'session' && row.session_id === sessionId && row.category === null;\n return activeCategory !== undefined\n && row.category === activeCategory.name\n && row.scope === activeCategory.scope\n && (activeCategory.scope === 'global' || row.session_id === sessionId);\n });\n}\n","/** Payload format marker and version (v1). */\nexport const SHARE_FORMAT = 'dsh-prompt-templates';\nexport const SHARE_VERSION = 1;\n/** Build the clipboard payload for a share action. */\nexport function buildSharePayload(templates, categories = []) {\n return {\n format: SHARE_FORMAT,\n version: SHARE_VERSION,\n kind: 'templates',\n templates: [...templates],\n categories: [...categories],\n };\n}\n/** Parse a pasted payload; a one-line error string on any mismatch. */\nexport function parseSharePayload(text) {\n let raw;\n try {\n raw = JSON.parse(text);\n }\n catch {\n return { ok: false, error: 'invalid JSON' };\n }\n if (raw === null || typeof raw !== 'object')\n return { ok: false, error: 'payload is not an object' };\n const value = raw;\n if (value.format !== SHARE_FORMAT)\n return { ok: false, error: 'unknown format' };\n if (value.version !== SHARE_VERSION)\n return { ok: false, 'error': 'unsupported version ' + String(value.version) };\n if (value.kind !== 'templates')\n return { ok: false, error: 'unknown kind' };\n if (!Array.isArray(value.templates) || value.templates.length === 0)\n return { ok: false, error: 'no templates' };\n return {\n ok: true,\n payload: { ...value, categories: Array.isArray(value.categories) ? value.categories : [] },\n };\n}\n/** Plan the import against the target's rows: same name + same scope collides. */\nexport function planShareImport(payload, existing, existingCategories) {\n const create = [];\n const overwrite = [];\n for (const incoming of payload.templates) {\n const clash = existing.find(row => row.name === incoming.name && row.scope === incoming.scope);\n if (clash === undefined)\n create.push(incoming);\n else\n overwrite.push({ incoming, target: clash });\n }\n const have = new Set(existingCategories.map(cat => cat.scope + ':' + cat.name));\n const missingCategories = (payload.categories ?? []).filter(cat => !have.has(cat.scope + ':' + cat.name));\n return { create, overwrite, missingCategories };\n}\n","/** Canonical public source repository for the panel's metadata link. */\nexport const GITHUB_REPOSITORY_URL = 'https://github.com/NelsonLongXiang/dsh-prompt-templates';\n/** Build-injected package version; `dev` only exists in unbundled unit tests. */\nexport const PLUGIN_VERSION = typeof __PROMPT_TEMPLATES_VERSION__ === 'string'\n ? __PROMPT_TEMPLATES_VERSION__\n : 'dev';\n/** Header count: current-tab size when idle, matched/searchable when searching. */\nexport function templateCountLabel(matched, searchable, searching) {\n return searching ? `${matched}/${searchable}` : String(matched);\n}\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n/**\n * The template library: the search bar, category tabs, row list, inline\n * forms, and footer shared by BOTH surfaces — the floating shell.overlay\n * panel and the right-sidebar tab body. This component owns the list state\n * (rows, categories, query, active tab, in-place edit) and loads on mount;\n * each host surface decides placement around it. The delivery target is\n * passed in as `sessionId` (the overlay reads it from its composer-entry\n * attachment; the sidebar tab reads it straight from its standard props).\n */\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport { IconCopyOutlineRegular, IconDownloadOutlineRegular, IconEditOutlineRegular, IconGlobeOutlineRegular, IconPlusOutlineRegular, IconQueueOutlineRegular, IconSendOutlineRegular, IconTrashOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives';\nimport { filterTemplateRows, searchableTemplateRows } from \"./filter.js\";\nimport { buildSharePayload, parseSharePayload, planShareImport } from \"./share.js\";\nimport { GITHUB_REPOSITORY_URL, PLUGIN_VERSION, templateCountLabel } from \"./meta.js\";\nimport css from './Panel.module.css';\nfunction TemplateRow({ template, onInsert, onSend, onInterject, onEdit, onDelete, onShare, onMakeGlobal, onToggleInject, sortable, onDragStart, onDropOn, t }) {\n const injectTitle = template.inject_enabled && template.inject_every !== null\n ? `${t('panel.inject')} · ${template.inject_every}${template.mode === 'visible' ? ' · ' + t('panel.modeVisible') : ''}`\n : t('panel.inject');\n return (_jsxs(\"div\", { className: css.row, \"data-prompt-template\": true, onMouseDown: (e) => { e.preventDefault(); }, draggable: sortable, onDragStart: () => { if (sortable)\n onDragStart(template.id); }, onDragOver: (e) => { if (sortable)\n e.preventDefault(); }, onDrop: (e) => { if (sortable) {\n e.preventDefault();\n e.stopPropagation();\n onDropOn(template.id);\n } }, children: [_jsxs(\"button\", { type: \"button\", className: css.insert, onClick: () => { onInsert(template.content); }, title: t('panel.insert'), children: [_jsx(\"span\", { className: css.name, children: template.name }), _jsx(\"span\", { className: css.preview, children: template.content })] }), _jsxs(\"button\", { type: \"button\", className: template.inject_enabled ? css.injectBtnActive : css.injectBtn, onClick: () => { onToggleInject(template); }, \"aria-label\": t('panel.inject'), \"aria-pressed\": template.inject_enabled, title: injectTitle, children: [\"\\u27F3\", template.inject_enabled && template.inject_every !== null ? template.inject_every : ''] }), _jsx(\"button\", { type: \"button\", className: css.interjectBtn, onClick: () => { onInterject(template.content); }, \"aria-label\": t('panel.interject'), title: t('panel.interject'), children: _jsx(IconQueueOutlineRegular, { size: 12 }) }), _jsx(\"button\", { type: \"button\", className: css.sendBtn, onClick: () => { onSend(template.content); }, \"aria-label\": t('panel.sendNow'), title: t('panel.sendNow'), children: _jsx(IconSendOutlineRegular, { size: 12 }) }), _jsx(\"button\", { type: \"button\", className: css.shareBtn, onClick: () => { onShare(template); }, \"aria-label\": t('panel.share'), title: t('panel.share'), children: _jsx(IconCopyOutlineRegular, { size: 12 }) }), onMakeGlobal !== undefined && (_jsx(\"button\", { type: \"button\", className: css.globalBtn, onClick: () => { onMakeGlobal(template.id); }, \"aria-label\": t('panel.makeGlobal'), title: t('panel.makeGlobal'), children: _jsx(IconGlobeOutlineRegular, { size: 12 }) })), _jsx(\"button\", { type: \"button\", className: css.editBtn, onClick: () => { onEdit(template.id); }, \"aria-label\": t('panel.edit'), title: t('panel.edit'), children: _jsx(IconEditOutlineRegular, { size: 12 }) }), _jsx(\"button\", { type: \"button\", className: css.deleteBtn, onClick: () => { onDelete(template.id); }, \"aria-label\": t('panel.delete'), children: _jsx(IconTrashOutlineRegular, { size: 12 }) })] }));\n}\n/** The template inline form: creation (with scope + category pickers) and in-place edit. */\nfunction TemplateForm({ initial, allowScope, sessionId, categories, t, submitLabel, onSubmit, onDone, onCancel }) {\n const [name, setName] = useState(initial?.name ?? '');\n const [content, setContent] = useState(initial?.content ?? '');\n // Edit seeds BOTH pickers with the row's stored facts, so opening a\n // category tab's edit form pre-selects that category (and the matching\n // scope) instead of resetting to 全局/无分类.\n const [scope, setScope] = useState(initial?.scope ?? 'global');\n const [category, setCategory] = useState(initial?.category ?? null);\n // Auto-inject facts: the interval edits as text so a half-typed value never\n // silently rounds; it is parsed (and rejected) on submit only.\n const [injectOn, setInjectOn] = useState(initial?.injectEnabled ?? false);\n const [injectEvery, setInjectEvery] = useState(initial?.injectEvery != null ? String(initial.injectEvery) : '5');\n const [mode, setMode] = useState(initial?.mode ?? 'inject');\n const [busy, setBusy] = useState(false);\n const [error, setError] = useState(null);\n const submit = useCallback(async () => {\n const trimmedName = name.trim();\n const trimmedContent = content.trim();\n if (trimmedName === '' || trimmedContent === '')\n return;\n if (allowScope && scope === 'session' && sessionId === null) {\n setError(t('panel.error'));\n return;\n }\n let every = null;\n if (injectOn) {\n const parsed = Number(injectEvery);\n if (!Number.isInteger(parsed) || parsed < 1) {\n setError(t('panel.error'));\n return;\n }\n every = parsed;\n }\n setBusy(true);\n setError(null);\n const ok = await onSubmit(trimmedName, trimmedContent, scope, category, injectOn, every, mode);\n setBusy(false);\n if (!ok) {\n setError(t('panel.error'));\n return;\n }\n onDone();\n }, [name, content, scope, category, injectOn, injectEvery, mode, allowScope, sessionId, onSubmit, t, onDone]);\n // Categories selectable for the CURRENT scope pick (matching partition).\n const scopeCategories = categories.filter((cat) => cat.scope === scope && (cat.scope === 'global' || cat.session_id === sessionId));\n return (_jsxs(\"div\", { className: css.addForm, \"data-prompt-add\": true, children: [_jsx(\"input\", { className: css.nameInput, type: \"text\", placeholder: t('panel.addName'), value: name, onChange: (e) => { setName(e.target.value); }, \"aria-label\": t('panel.addName') }), _jsx(\"textarea\", { className: css.contentInput, placeholder: t('panel.addContent'), value: content, onChange: (e) => { setContent(e.target.value); }, rows: 3, \"aria-label\": t('panel.addContent') }), _jsx(\"div\", { className: css.variablesHint, children: t('panel.variablesHint') }), _jsxs(\"div\", { className: css.injectRow, children: [_jsxs(\"label\", { className: css.injectLabel, children: [_jsx(\"input\", { type: \"checkbox\", checked: injectOn, onChange: (e) => { setInjectOn(e.target.checked); } }), t('panel.inject')] }), injectOn && (_jsxs(\"label\", { className: css.injectLabel, children: [_jsx(\"input\", { className: css.injectEveryInput, type: \"number\", min: 1, step: 1, value: injectEvery, onChange: (e) => { setInjectEvery(e.target.value); }, \"aria-label\": t('panel.injectEvery') }), t('panel.injectEvery')] })), injectOn && (_jsx(\"label\", { className: css.injectLabel, title: t('panel.modeHint'), children: _jsxs(\"select\", { value: mode, onChange: (e) => { setMode(e.target.value); }, \"aria-label\": t('panel.modeLabel'), children: [_jsx(\"option\", { value: \"inject\", children: t('panel.modeInject') }), _jsx(\"option\", { value: \"visible\", children: t('panel.modeVisible') })] }) }))] }), _jsxs(\"div\", { className: css.addRow, children: [allowScope && (_jsx(\"label\", { className: css.scopeLabel, children: _jsxs(\"select\", { value: scope, onChange: (e) => { setScope(e.target.value); setCategory(null); }, \"aria-label\": \"scope\", children: [_jsx(\"option\", { value: \"global\", children: t('panel.global') }), _jsx(\"option\", { value: \"session\", disabled: sessionId === null, children: t('panel.session') })] }) })), _jsx(\"label\", { className: css.scopeLabel, children: _jsxs(\"select\", { value: category ?? '', onChange: (e) => { setCategory(e.target.value === '' ? null : e.target.value); }, \"aria-label\": t('panel.category'), children: [_jsx(\"option\", { value: \"\", children: t('panel.categoryNone') }), scopeCategories.map((cat) => _jsx(\"option\", { value: cat.name, children: cat.name }, `${cat.scope}:${cat.name}`))] }) }), _jsxs(\"div\", { className: css.addActions, children: [error !== null && _jsx(\"span\", { className: css.error, role: \"alert\", children: error }), onCancel !== undefined && (_jsx(\"button\", { type: \"button\", className: css.cancelBtn, onClick: onCancel, disabled: busy, children: t('panel.addCancel') })), _jsx(\"button\", { type: \"button\", className: css.saveBtn, onClick: () => void submit(), disabled: busy || name.trim() === '' || content.trim() === '', children: submitLabel })] })] })] }));\n}\n/** Inline form creating one category tab: name + scope (global, or the current session). */\nfunction CategoryForm({ sessionId, createCategory, t, onDone }) {\n const [name, setName] = useState('');\n const [scope, setScope] = useState('global');\n const [busy, setBusy] = useState(false);\n const [error, setError] = useState(null);\n const submit = async () => {\n const trimmed = name.trim();\n if (trimmed === '')\n return;\n if (scope === 'session' && sessionId === null) {\n setError(t('panel.error'));\n return;\n }\n setBusy(true);\n setError(null);\n const result = await createCategory({\n name: trimmed,\n scope,\n session_id: scope === 'session' ? sessionId : null,\n });\n setBusy(false);\n if (!result.ok) {\n setError(t('panel.error'));\n return;\n }\n onDone();\n };\n return (_jsxs(\"div\", { className: css.addForm, \"data-prompt-category-add\": true, children: [_jsx(\"input\", { className: css.nameInput, type: \"text\", placeholder: t('panel.categoryName'), value: name, onChange: (e) => { setName(e.target.value); }, \"aria-label\": t('panel.categoryName') }), _jsxs(\"div\", { className: css.addRow, children: [_jsx(\"label\", { className: css.scopeLabel, children: _jsxs(\"select\", { value: scope, onChange: (e) => { setScope(e.target.value); }, \"aria-label\": \"scope\", children: [_jsx(\"option\", { value: \"global\", children: t('panel.global') }), _jsx(\"option\", { value: \"session\", disabled: sessionId === null, children: t('panel.session') })] }) }), _jsxs(\"div\", { className: css.addActions, children: [error !== null && _jsx(\"span\", { className: css.error, role: \"alert\", children: error }), _jsx(\"button\", { type: \"button\", className: css.saveBtn, onClick: () => void submit(), disabled: busy || name.trim() === '', children: t('panel.addSave') })] })] })] }));\n}\n/**\n * The shared template library: toolbar (title + row count), live search,\n * category tabs, the row list with inline edit/create forms, and the\n * footer. Loads everything on mount; the parent decides placement and\n * lifetime (the overlay mounts it only while open, the sidebar tab mounts\n * it for the tab's lifetime).\n * @param props - target session, shared verbs, locale, optional title-row takeover.\n */\nexport function TemplateLibrary({ sessionId, face, t, header, headerExtra }) {\n const { refresh, refreshCategories, createCategory, removeCategory, create, update, remove, makeGlobal, insert, send, interject, injectStatus, injectionHistory } = face;\n const [templates, setTemplates] = useState([]);\n const [categories, setCategories] = useState([]);\n const [showAdd, setShowAdd] = useState(false);\n // Live search filter over name + content, case-insensitive.\n const [query, setQuery] = useState('');\n // In-place editing: the id whose row swaps to the edit form, null = none.\n const [editingId, setEditingId] = useState(null);\n // Active tab: 'global' / 'session' (the implicit default tabs) or\n // `cat:<scope>:<name>` for one user-created category tab.\n const [activeTab, setActiveTab] = useState('global');\n const [showCatForm, setShowCatForm] = useState(false);\n // Row drag-sort: the id currently being dragged (HTML5 DnD).\n const dragRowRef = useRef(null);\n // Row-toggle failures surface above the list until the next good write.\n const [rowError, setRowError] = useState(null);\n const load = useCallback(async () => {\n const items = await refresh();\n setTemplates(items);\n }, [refresh]);\n const loadCategories = useCallback(async () => {\n setCategories(await refreshCategories());\n }, [refreshCategories]);\n useEffect(() => {\n void load();\n void loadCategories();\n }, [load, loadCategories]);\n // Toolbar badge `⟳N`: the target session's latest scheduled injection,\n // polled every 30s (and re-read whenever the target changes). null hides\n // the badge — the route is memory-only, so polling stays O(1).\n const [injected, setInjected] = useState(null);\n const pollStatus = useCallback(async () => {\n if (sessionId === null) {\n setInjected(null);\n return;\n }\n setInjected(await injectStatus(sessionId));\n }, [injectStatus, sessionId]);\n useEffect(() => {\n void pollStatus();\n const timer = setInterval(() => { void pollStatus(); }, 30_000);\n return () => { clearInterval(timer); };\n }, [pollStatus]);\n // Badge dropdown: the recent-injection history for the target session,\n // fetched on demand (on open, on target change, and whenever a new\n // injection lands while open) so the 30s badge poll stays O(1).\n const [historyOpen, setHistoryOpen] = useState(false);\n const [history, setHistory] = useState([]);\n const loadHistory = useCallback(async () => {\n if (sessionId === null) {\n setHistory([]);\n return;\n }\n setHistory(await injectionHistory(sessionId));\n }, [injectionHistory, sessionId]);\n useEffect(() => {\n if (historyOpen)\n void loadHistory();\n }, [historyOpen, loadHistory, injected]);\n useEffect(() => { setHistoryOpen(false); }, [sessionId]);\n // Clipboard sharing: one template per row, one category per tab. The\n // payload carries raw rows (variables stay literal — they re-expand on\n // the receiving instance). Import plans against the loaded rows first,\n // so the same-name overwrite risk is one explicit confirm (owner ruling).\n const [notice, setNotice] = useState(null);\n const [showImport, setShowImport] = useState(false);\n const [importText, setImportText] = useState('');\n const [importBusy, setImportBusy] = useState(false);\n useEffect(() => {\n if (notice === null)\n return;\n const timer = setTimeout(() => { setNotice(null); }, 3000);\n return () => { clearTimeout(timer); };\n }, [notice]);\n const copyPayload = useCallback(async (payload) => {\n try {\n await navigator.clipboard.writeText(payload);\n setNotice(t('panel.shareCopied'));\n }\n catch {\n setNotice(t('panel.shareFailed'));\n }\n }, [t]);\n const handleShareTemplate = useCallback((template) => {\n return copyPayload(JSON.stringify(buildSharePayload([template])));\n }, [copyPayload]);\n const handleShareCategory = useCallback((cat) => {\n const members = templates.filter(row => row.category === cat.name\n && row.scope === cat.scope\n && (cat.scope === 'global' || row.session_id === cat.session_id));\n if (members.length === 0) {\n setNotice(t('panel.shareEmpty'));\n return;\n }\n return copyPayload(JSON.stringify(buildSharePayload(members, [cat])));\n }, [templates, copyPayload, t]);\n const handleImport = useCallback(async () => {\n const parsed = parseSharePayload(importText.trim());\n if (!parsed.ok) {\n setRowError(t('panel.importBad') + ' (' + parsed.error + ')');\n return;\n }\n const plan = planShareImport(parsed.payload, templates, categories);\n let overwrite = 0;\n if (plan.overwrite.length > 0) {\n // Same name + same scope is the overwrite risk: one explicit ask,\n // declining skips those rows (nothing is silently replaced).\n if (window.confirm(t('panel.overwriteRisk') + ' ' + plan.overwrite.length))\n overwrite = plan.overwrite.length;\n }\n setImportBusy(true);\n for (const cat of plan.missingCategories) {\n await createCategory({ name: cat.name, scope: cat.scope, session_id: cat.session_id });\n }\n let created = 0;\n let skipped = 0;\n for (const incoming of plan.create) {\n if (incoming.scope === 'session' && sessionId === null) {\n skipped += 1;\n continue;\n }\n const result = await create({\n name: incoming.name,\n content: incoming.content,\n scope: incoming.scope,\n session_id: incoming.scope === 'session' ? sessionId : null,\n description: incoming.description,\n category: incoming.category,\n inject_enabled: incoming.inject_enabled,\n inject_every: incoming.inject_every,\n mode: incoming.mode,\n });\n if (result.ok)\n created += 1;\n }\n if (overwrite > 0) {\n for (const pair of plan.overwrite) {\n const result = await update(pair.target.id, {\n content: pair.incoming.content,\n description: pair.incoming.description,\n category: pair.incoming.category,\n inject_enabled: pair.incoming.inject_enabled,\n inject_every: pair.incoming.inject_every,\n mode: pair.incoming.mode,\n });\n if (!result.ok)\n overwrite -= 1;\n }\n }\n if (overwrite === 0 && plan.overwrite.length > 0 && created === 0 && skipped === plan.create.length) {\n // nothing happened at all — keep the form open for inspection\n setImportBusy(false);\n return;\n }\n const declined = plan.overwrite.length > 0 && overwrite === 0 ? plan.overwrite.length : 0;\n const skippedTotal = skipped + declined;\n setImportBusy(false);\n setShowImport(false);\n setImportText('');\n setNotice(t('panel.importDone') + ' ' + created + ' / ' + overwrite + ' / ' + skippedTotal);\n void load();\n void loadCategories();\n }, [importText, templates, categories, sessionId, create, update, createCategory, load, loadCategories, t]);\n const handleInsert = useCallback((content) => {\n if (sessionId === null)\n return;\n insert(sessionId, content);\n }, [insert, sessionId]);\n const handleSend = useCallback((content) => {\n if (sessionId === null)\n return;\n send(sessionId, content);\n }, [send, sessionId]);\n const handleInterject = useCallback((content) => {\n if (sessionId === null)\n return;\n interject(sessionId, content);\n }, [interject, sessionId]);\n const handleRemove = useCallback(async (id) => {\n const result = await remove(id);\n if (result.ok)\n void load();\n }, [remove, load]);\n const handleMakeGlobal = useCallback(async (id) => {\n const result = await makeGlobal(id);\n if (result.ok)\n void load();\n }, [makeGlobal, load]);\n // Flip one row's auto-inject switch. First-time setup (no interval yet)\n // routes into the edit form, where the interval gets typed and confirmed.\n // A failed toggle surfaces the envelope error next to the list instead of\n // failing silently — the switch only flips after a confirmed write.\n const handleToggleInject = useCallback(async (template) => {\n if (!template.inject_enabled && template.inject_every === null) {\n setEditingId(template.id);\n return;\n }\n const result = await update(template.id, { inject_enabled: !template.inject_enabled });\n if (result.ok) {\n setRowError(null);\n void load();\n }\n else {\n setRowError(result.error.message);\n }\n }, [update, load]);\n // Visible user-category tabs: global ones always, session ones only for\n // the current session.\n const visibleCategories = categories.filter((cat) => cat.scope === 'global' || (cat.scope === 'session' && cat.session_id === sessionId));\n const activeCategory = activeTab.startsWith('cat:')\n ? visibleCategories.find((cat) => `cat:${cat.scope}:${cat.name}` === activeTab)\n : undefined;\n // A deleted (or no-longer-visible) category tab falls back to 全局.\n const effectiveTab = activeTab.startsWith('cat:') && activeCategory === undefined ? 'global' : activeTab;\n // With no query the active tab owns the list. A query searches across every\n // category, but never leaks another session's private templates.\n const needle = query.trim().toLowerCase();\n const tabRows = filterTemplateRows(templates, query, effectiveTab, activeCategory, sessionId);\n const searchableCount = searchableTemplateRows(templates, sessionId).length;\n const countLabel = templateCountLabel(tabRows.length, searchableCount, needle !== '');\n // Drop one dragged row onto another: reorder within the tab by writing the\n // full position sequence back (idempotent and partition-local).\n const handleRowDrop = (targetId) => {\n const draggedId = dragRowRef.current;\n dragRowRef.current = null;\n if (draggedId === null || draggedId === targetId)\n return;\n const ids = tabRows.map((row) => row.id);\n const from = ids.indexOf(draggedId);\n const to = ids.indexOf(targetId);\n if (from === -1 || to === -1)\n return;\n ids.splice(to, 0, ...ids.splice(from, 1));\n void (async () => {\n await Promise.all(ids.map((id, index) => update(id, { position: index })));\n void load();\n })();\n };\n /** One list row: the edit form while being edited, the rendered row otherwise. */\n const renderTemplateRow = (row) => (editingId === row.id\n ? (_jsx(TemplateForm, { initial: { name: row.name, content: row.content, scope: row.scope, category: row.category, injectEnabled: row.inject_enabled, injectEvery: row.inject_every, mode: row.mode }, allowScope: false, sessionId: sessionId, categories: visibleCategories, t: t, submitLabel: t('panel.addSave'), onSubmit: async (name, content, _scope, category, injectEnabled, injectEvery, mode) => {\n // Disabling keeps the stored interval: only enabling sends a new one.\n const result = await update(row.id, {\n name,\n content,\n category,\n inject_enabled: injectEnabled,\n ...(injectEnabled ? { inject_every: injectEvery, mode } : {}),\n });\n return result.ok;\n }, onDone: () => { setEditingId(null); void load(); }, onCancel: () => { setEditingId(null); } }, row.id))\n : (_jsx(TemplateRow, { template: row, onInsert: (c) => { handleInsert(c); }, onSend: (c) => { handleSend(c); }, onInterject: (c) => { handleInterject(c); }, onEdit: (id) => { setEditingId(id); }, onDelete: (id) => { void handleRemove(id); }, onShare: (tpl) => { void handleShareTemplate(tpl); }, onMakeGlobal: row.scope === 'session' ? (id) => { void handleMakeGlobal(id); } : undefined, onToggleInject: (tpl) => { void handleToggleInject(tpl); }, sortable: needle === '', onDragStart: (id) => { dragRowRef.current = id; }, onDropOn: (id) => { handleRowDrop(id); }, t: t }, row.id)));\n return (_jsxs(\"div\", { className: css.library, \"data-prompt-library\": true, children: [_jsxs(\"div\", { className: header !== undefined ? `${css.toolbar} ${css.toolbarDraggable}` : css.toolbar, title: header?.hint, onPointerDown: header?.onPointerDown, onPointerMove: header?.onPointerMove, onPointerUp: header?.onPointerUp, onDoubleClick: header?.onDoubleClick, children: [_jsxs(\"span\", { className: css.titleGroup, children: [_jsx(\"span\", { className: css.title, children: t('panel.title') }), _jsx(\"span\", { className: css.countBadge, \"data-template-count\": true, title: needle !== '' ? t('panel.searchCount') : t('panel.tabCount'), children: countLabel }), injected !== null && (_jsxs(\"button\", { type: \"button\", className: `${css.injectBadge} ${css.injectBadgeButton}`, \"data-prompt-injected\": true, title: `${t('panel.injectedAt')} ${injected.turn} · ${new Date(injected.at).toLocaleTimeString()} · ${injected.templates.join(', ')}`, \"aria-label\": t('panel.historyTitle'), \"aria-expanded\": historyOpen, onClick: () => { setHistoryOpen(open => !open); }, children: [\"\\u27F3\", injected.turn] })), _jsx(\"button\", { type: \"button\", className: css.importBtn, onClick: () => { setShowImport(v => !v); }, \"aria-label\": t('panel.import'), \"aria-expanded\": showImport, title: t('panel.import'), children: _jsx(IconDownloadOutlineRegular, { size: 12 }) })] }), headerExtra] }), notice !== null && _jsx(\"div\", { className: css.notice, role: \"status\", children: notice }), showImport && (_jsxs(\"div\", { className: css.importForm, \"data-prompt-import\": true, children: [_jsx(\"textarea\", { className: css.contentInput, rows: 4, value: importText, onChange: (e) => { setImportText(e.target.value); }, placeholder: t('panel.importPlaceholder'), \"aria-label\": t('panel.import') }), _jsxs(\"div\", { className: css.importActions, children: [_jsx(\"button\", { type: \"button\", className: css.saveBtn, onClick: () => { void handleImport(); }, disabled: importBusy, children: t('panel.importRun') }), _jsx(\"button\", { type: \"button\", className: css.cancelBtn, onClick: () => { setShowImport(false); setImportText(''); }, disabled: importBusy, children: t('panel.importCancel') })] })] })), historyOpen && (_jsxs(\"div\", { className: css.injectHistory, \"data-prompt-inject-history\": true, role: \"dialog\", \"aria-label\": t('panel.historyTitle'), children: [_jsx(\"div\", { className: css.injectHistoryTitle, children: t('panel.historyTitle') }), history.length === 0 && _jsx(\"div\", { className: css.injectHistoryEmpty, children: t('panel.historyEmpty') }), history.map(entry => (_jsxs(\"div\", { className: css.injectHistoryItem, children: [_jsxs(\"div\", { className: css.injectHistoryHead, children: [\"\\u27F3\", entry.turn, \" \\u00B7 \", new Date(entry.at).toLocaleTimeString(), \" \\u00B7 \", entry.templates.join(', ')] }), _jsx(\"div\", { className: css.injectHistoryContent, children: entry.content })] }, `${entry.turn}-${entry.at}`)))] })), _jsx(\"div\", { className: css.searchBar, children: _jsx(\"input\", { type: \"search\", className: css.searchInput, value: query, onChange: (e) => { setQuery(e.target.value); }, placeholder: t('panel.search'), \"aria-label\": t('panel.search') }) }), _jsxs(\"div\", { className: css.tabsBar, children: [_jsx(\"button\", { type: \"button\", className: effectiveTab === 'global' ? `${css.tab} ${css.tabActive}` : css.tab, onClick: () => { setActiveTab('global'); }, children: t('panel.global') }), _jsx(\"button\", { type: \"button\", className: effectiveTab === 'session' ? `${css.tab} ${css.tabActive}` : css.tab, onClick: () => { setActiveTab('session'); }, disabled: sessionId === null, children: t('panel.session') }), visibleCategories.map((cat) => {\n const key = `cat:${cat.scope}:${cat.name}`;\n return (_jsxs(\"span\", { className: effectiveTab === key ? `${css.tab} ${css.tabActive}` : css.tab, children: [_jsx(\"button\", { type: \"button\", onClick: () => { setActiveTab(key); }, children: cat.name }), _jsx(\"button\", { type: \"button\", className: css.tabShare, \"aria-label\": t('panel.shareCategory'), title: t('panel.shareCategory'), onClick: () => { void handleShareCategory(cat); }, children: _jsx(IconCopyOutlineRegular, { size: 11 }) }), _jsx(\"button\", { type: \"button\", className: css.tabDelete, \"aria-label\": t('panel.deleteCategory'), title: t('panel.deleteCategory'), onClick: () => {\n void (async () => {\n const result = await removeCategory(cat.name, cat.scope, cat.session_id);\n if (result.ok) {\n if (effectiveTab === key)\n setActiveTab('global');\n void loadCategories();\n void load();\n }\n })();\n }, children: \"\\u00D7\" })] }, key));\n }), _jsx(\"button\", { type: \"button\", className: css.tabAdd, \"aria-label\": t('panel.newCategory'), title: t('panel.newCategory'), onClick: () => { setShowCatForm(v => !v); }, children: _jsx(IconPlusOutlineRegular, { size: 10 }) })] }), showCatForm && (_jsx(CategoryForm, { sessionId: sessionId, createCategory: createCategory, t: t, onDone: () => { setShowCatForm(false); void loadCategories(); } })), _jsxs(\"div\", { className: css.body, children: [rowError !== null && (_jsxs(\"div\", { className: css.error, role: \"alert\", \"data-prompt-row-error\": true, children: [t('panel.error'), \" \\u00B7 \", rowError] })), tabRows.length === 0 && !showAdd && !showCatForm && (_jsx(\"div\", { className: css.empty, children: needle !== '' ? t('panel.noMatch') : t('panel.empty') })), tabRows.length > 0 && (_jsx(\"div\", { className: css.group, onDragOver: (e) => { e.preventDefault(); }, children: tabRows.map(row => renderTemplateRow(row)) })), showAdd && (_jsx(TemplateForm, { sessionId: sessionId, categories: visibleCategories, t: t, allowScope: true, submitLabel: t('panel.addSave'), onSubmit: async (name, content, scope, category, injectEnabled, injectEvery, mode) => {\n const result = await create({\n name,\n content,\n scope,\n session_id: scope === 'session' ? sessionId : null,\n category,\n inject_enabled: injectEnabled,\n inject_every: injectEvery,\n mode,\n });\n return result.ok;\n }, onDone: () => { setShowAdd(false); void load(); }, onCancel: () => { setShowAdd(false); } }))] }), _jsxs(\"div\", { className: css.footer, children: [_jsxs(\"span\", { className: css.meta, children: [_jsxs(\"span\", { \"data-plugin-version\": true, children: [\"v\", PLUGIN_VERSION] }), _jsx(\"a\", { className: css.githubLink, href: GITHUB_REPOSITORY_URL, target: \"_blank\", rel: \"noopener noreferrer\", title: t('panel.github'), children: \"GitHub \\u2197\" })] }), _jsxs(\"button\", { type: \"button\", className: css.addBtn, onClick: () => { setShowAdd(v => !v); }, children: [_jsx(IconPlusOutlineRegular, { size: 12 }), \" \", t('panel.add')] })] })] }));\n}\n","import { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Quick prompt panel: the right-anchored floating surface registered into\n * shell.overlay. The shell owns only placement (drag-by-title, persisted\n * position) and visibility; the template library itself — search, tabs,\n * rows, forms, footer — is the shared TemplateLibrary component, also\n * mounted by the right-sidebar tab. The current session arrives through\n * the composer entry attachment (targetSession), never the session list.\n */\nimport { useRef, useState, useSyncExternalStore } from 'react';\nimport { TemplateLibrary } from \"./Library.js\";\nimport css from './Panel.module.css';\nconst PANEL_WIDTH = 320;\n/**\n * Clamp a restored panel position into the current viewport so a placement\n * saved on a wider screen (or a monitor that is no longer attached) can never\n * render the panel unreachable off-screen. Null passes through untouched.\n * @param position - the persisted placement, if any.\n * @returns the clamped placement.\n */\nfunction clampToViewport(position) {\n if (position === null)\n return null;\n const maxX = Math.max(0, window.innerWidth - PANEL_WIDTH);\n const maxY = Math.max(0, window.innerHeight - 40);\n return {\n x: Math.min(Math.max(position.x, 0), maxX),\n y: Math.min(Math.max(position.y, 0), maxY),\n };\n}\n/**\n * The prompt-templates floating panel shell.\n * @param props - runtime kit, injected face members, store handle, and locale.\n */\nexport function PromptPanel(props) {\n const { useStore, refresh, refreshCategories, createCategory, removeCategory, create, update, remove, makeGlobal, insert, send, interject, injectStatus, injectionHistory, targetSession, targetVersion, subscribeTarget, panelPosition, savePanelPosition, resetPanelPosition, actions, t, } = props;\n const open = useStore(s => s.open);\n // Re-render whenever the delivery target changes: the composer entry\n // attaches its session whenever its composer becomes the visible one, so\n // switching conversations bumps the version and the open panel re-reads\n // the target. Without this the panel's handlers keep the previous\n // render's sessionId closure and sends after a switch land nowhere.\n useSyncExternalStore(subscribeTarget, targetVersion);\n // Delivery target: the composer entry attachment, never the session list.\n // The 0.2.0 session list has no selection field (SessionListState.current\n // is gone), so guessing ids[0] would target the newest list row — a\n // foreign session on any busy host.\n const currentSession = targetSession();\n const sessionId = currentSession ?? null;\n // Drag placement: seeded from the persisted position, live-updated while\n // dragging, committed to the settings document on release. A null with no\n // drag in flight keeps the CSS right-anchored default. The restored value\n // is clamped into the current viewport: a position saved on a wider screen\n // or a second monitor would otherwise render the panel off-screen forever.\n const persisted = clampToViewport(panelPosition());\n const [dragPos, setDragPos] = useState(null);\n const dragRef = useRef(null);\n const panelRef = useRef(null);\n // Drag-by-title: capture the pointer, track the offset, clamp so the\n // header always stays reachable inside the viewport, commit on release.\n const onHeaderPointerDown = (event) => {\n if (event.button !== 0)\n return;\n const target = event.target;\n if (target.closest('button'))\n return;\n const panel = panelRef.current;\n if (panel === null)\n return;\n const rect = panel.getBoundingClientRect();\n dragRef.current = { pointerId: event.pointerId, offX: event.clientX - rect.left, offY: event.clientY - rect.top };\n // jsdom lacks the pointer-capture API; feature-detect before using it.\n if (Reflect.has(event.currentTarget, 'setPointerCapture')) {\n event.currentTarget.setPointerCapture(event.pointerId);\n }\n };\n const onHeaderPointerMove = (event) => {\n const drag = dragRef.current;\n if (drag === null || event.pointerId !== drag.pointerId)\n return;\n const width = panelRef.current?.getBoundingClientRect().width ?? PANEL_WIDTH;\n const maxX = Math.max(0, window.innerWidth - width);\n const maxY = Math.max(0, window.innerHeight - 40);\n const x = Math.min(Math.max(event.clientX - drag.offX, 0), maxX);\n const y = Math.min(Math.max(event.clientY - drag.offY, 0), maxY);\n setDragPos({ x, y });\n };\n const onHeaderPointerUp = (event) => {\n const drag = dragRef.current;\n if (drag === null || event.pointerId !== drag.pointerId)\n return;\n dragRef.current = null;\n if (Reflect.has(event.currentTarget, 'releasePointerCapture')) {\n event.currentTarget.releasePointerCapture(event.pointerId);\n }\n if (dragPos !== null)\n savePanelPosition(dragPos);\n };\n // Double-click the title to forget the placement and re-anchor right.\n const onHeaderDoubleClick = () => {\n setDragPos(null);\n resetPanelPosition();\n };\n if (!open)\n return null;\n const placement = dragPos ?? persisted;\n // With bottom:auto the fixed panel's height is content-driven, so a long\n // list would stretch past the viewport with no internal scroll. Cap the\n // height at (viewport - top - margin); the flex column + body's\n // min-height/overflow then keeps the list scrolling inside the panel.\n const placementStyle = placement === null\n ? undefined\n : {\n left: placement.x,\n top: placement.y,\n right: 'auto',\n bottom: 'auto',\n maxHeight: `calc(100vh - ${placement.y}px - 16px)`,\n };\n // The library verbs are the face minus the overlay-only placement knobs.\n const libraryFace = {\n refresh, refreshCategories, createCategory, removeCategory,\n create, update, remove, makeGlobal,\n insert, send, interject, injectStatus, injectionHistory,\n };\n return (_jsx(\"div\", { className: css.panel, \"data-prompt-panel\": true, ref: panelRef, style: placementStyle, children: _jsx(TemplateLibrary, { sessionId: sessionId, face: libraryFace, t: t, header: {\n onPointerDown: onHeaderPointerDown,\n onPointerMove: onHeaderPointerMove,\n onPointerUp: onHeaderPointerUp,\n onDoubleClick: onHeaderDoubleClick,\n hint: t('panel.dragHint'),\n }, headerExtra: (_jsx(\"button\", { type: \"button\", className: css.closeBtn, onClick: () => { actions.close(); }, \"aria-label\": t('panel.close'), children: \"\\u00D7\" })) }) }));\n}\n","import { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Composer entry button: toggles the quick prompt panel. Registered into\n * conversation.input.right (the tool row, before the send button). The\n * session-scoped inject face carries the toggle verb, which routes through\n * ctx.promptPanel to the panel's store. The standard kit delivers this\n * composer's sessionId as a prop; the button attaches the panel to that\n * session whenever its composer becomes the visible one — on mount, on\n * session change, and at click — so inserts and sends land in the\n * conversation the user is looking at, even right after a switch.\n */\nimport { useEffect } from 'react';\nimport css from './PanelButton.module.css';\n/**\n * The composer tool-row button.\n * @param props - runtime kit (the composer's sessionId), the toggle + attach verbs, and the locale seat.\n */\nexport function PanelButton({ toggle, attachSession, sessionId, t }) {\n // Keep the panel's delivery target glued to this composer: the effect\n // fires when this composer becomes the visible one (mount or session\n // swap), not only at click time — otherwise switching sessions leaves\n // the panel pointing at the previous conversation whose input scope may\n // be gone, and send/insert would silently drop.\n useEffect(() => {\n if (sessionId !== undefined)\n attachSession(sessionId);\n }, [sessionId, attachSession]);\n return (_jsx(\"button\", { type: \"button\", className: css.button, onClick: () => {\n if (sessionId !== undefined)\n attachSession(sessionId);\n toggle();\n }, \"aria-label\": t('panel.open'), \"aria-pressed\": \"false\", title: t('panel.title'), children: _jsx(\"span\", { className: css.glyph, children: \"\\u25A4\" }) }));\n}\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { TemplateLibrary } from \"./Library.js\";\nimport css from './Panel.module.css';\n/**\n * The prompt-templates sidebar tab body.\n * @param props - runtime kit (carries sessionId), injected face members, locale.\n */\nexport function PromptTab(props) {\n const { sessionId, refresh, refreshCategories, createCategory, removeCategory, create, update, remove, makeGlobal, insert, send, interject, injectStatus, injectionHistory, t, } = props;\n return (_jsx(\"div\", { className: css.tabBody, \"data-prompt-tab\": true, children: _jsx(TemplateLibrary, { sessionId: sessionId, face: { refresh, refreshCategories, createCategory, removeCategory, create, update, remove, makeGlobal, insert, send, interject, injectStatus, injectionHistory }, t: t }) }));\n}\n","/** The tab kind this plugin owns — the name openTab and the guide dispatch by. */\nexport const PROMPT_TEMPLATES_KIND = 'promptTemplates';\n/**\n * This implementation's identity in the tab system, and the key its body\n * registers under in the 'sidebar.right.pane.tab' seat (a package name is\n * the natural value, exactly as the builtin files tab does).\n */\nexport const PROMPT_TEMPLATES_ID = '@nelsonlongxiang/dsh-prompt-templates';\n/** Guide entry identity within this provider. */\nconst GUIDE_ENTRY_ID = 'prompt-templates';\n/**\n * The prompt-templates type's registry definition.\n * @param t - namespace-bound translate, read fresh on every label call\n * (a language change needs no re-registration).\n * @returns the definition to register.\n */\nexport function promptTemplatesTabDefinition(t) {\n return {\n id: PROMPT_TEMPLATES_ID,\n kind: PROMPT_TEMPLATES_KIND,\n // A page type: no patterns, opened by kind, recognizes no address.\n // Omitted priority defaults to 'extension' — correct for a type from\n // outside the product, and the band that outranks builtin viewers.\n title: () => t('tab.title'),\n guide: [{\n id: GUIDE_ENTRY_ID,\n order: 20,\n title: () => t('tab.guideTitle'),\n description: () => t('tab.guideDescription'),\n }],\n };\n}\n","/**\n * Panel store owned by the shell.overlay entry: the open flag plus the\n * ever-opened marker. The composer button reaches the same state through\n * ctx.promptPanel (the controller holds the entry's bound actions); inserts\n * go through the controller's session-input path, never this store. The\n * ever-opened marker lets the settings-driven default-open apply exactly\n * once: any manual toggle or open marks the panel user-owned, so a late\n * settings load can never reopen what the user closed.\n *\n * Module level exports the factory only (de-facto singleton prohibition —\n * see ui-layout's store).\n */\nimport { defineStore } from '@deepseek-ai/dsh-client-store';\n/**\n * Complete write set for the panel.\n * @returns the store handle (spec + type + identity + factory in one).\n */\nexport function createPromptPanelStore() {\n const handle = defineStore({\n init: () => ({ open: false, everOpened: false }),\n actions: {\n toggle: (d) => {\n d.everOpened = true;\n d.open = !d.open;\n },\n open: (d) => {\n d.everOpened = true;\n d.open = true;\n },\n close: (d) => {\n d.everOpened = true;\n d.open = false;\n },\n // One-shot settings-driven default open: a no-op once the user has\n // ever touched the panel (either direction).\n openOnce: (d) => {\n if (d.everOpened)\n return;\n d.everOpened = true;\n d.open = true;\n },\n },\n });\n return handle;\n}\n/** Complete write set for the persisted preferences. */\nexport function createPromptPanelPrefsStore() {\n return defineStore({\n persist: 'prompt-templates.panel',\n init: () => ({ defaultOpen: false, panel: null }),\n actions: {\n setPosition: (d, x, y) => { d.panel = { x: Math.round(x), y: Math.round(y) }; },\n resetPosition: (d) => { d.panel = null; },\n },\n });\n}\n","/**\n * Template-variable expansion, shared by the host scheduled-injection path\n * and the composer delivery verbs (insert / send / interject). Client-safe:\n * no host-only imports, so the browser tsconfig project bundles it too.\n *\n * Semantics: a variable expands ONLY when its value is available in the\n * delivery context; unavailable and unknown placeholders stay literal, so\n * the user sees what did not resolve instead of a silent deletion. Storage\n * always keeps the raw template — expansion is a delivery-time concern.\n * @module dsh-prompt-templates/variables\n */\n/** Variable names the expander understands (the advertised set). */\nexport const TEMPLATE_VARIABLES = ['date', 'time', 'datetime', 'weekday', 'session', 'turn'];\n/** The placeholder namespace: a double-brace name with optional inner spacing. */\nconst PATTERN = /\\{\\{\\s*(date|time|datetime|weekday|session|turn)\\s*\\}\\}/g;\nconst WEEKDAYS = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];\nfunction pad(value) {\n return String(value).padStart(2, '0');\n}\n/** Expand every resolvable placeholder in the content; the rest passes through. */\nexport function expandTemplateVariables(content, context) {\n const now = context.now ?? new Date();\n const date = now.getFullYear() + '-' + pad(now.getMonth() + 1) + '-' + pad(now.getDate());\n const clock = pad(now.getHours()) + ':' + pad(now.getMinutes());\n return content.replace(PATTERN, (match, name) => {\n switch (name) {\n case 'date': return date;\n case 'time': return clock;\n case 'datetime': return date + ' ' + clock;\n case 'weekday': return WEEKDAYS[now.getDay()] ?? match;\n case 'session': return context.sessionId ?? match;\n case 'turn': return context.turn !== undefined ? String(context.turn) : match;\n default: return match;\n }\n });\n}\n","import { expandTemplateVariables } from \"../variables.js\";\n/**\n * Cross-entry panel face (ctx.promptPanel).\n */\nexport class PromptPanelController {\n #actions;\n #sessions;\n #conversation;\n #pendingAutoOpen = false;\n /** Session whose composer entry last opened the panel (delivery target). */\n #targetSession;\n /** Bumped every time the delivery target changes; drives the open panel's re-render. */\n #targetVersion = 0;\n #targetListeners = new Set();\n /**\n * Adopt the shell.overlay entry's bound store actions. Called from that\n * registration's inject hook; a re-register overwrites the stale set. A\n * default-open that arrived before the entry's first render is applied\n * here, once wiring exists.\n * @param actions - bound actions of the panel store instance.\n */\n attach(actions) {\n this.#actions = actions;\n if (this.#pendingAutoOpen) {\n this.#pendingAutoOpen = false;\n actions.openOnce();\n }\n }\n /**\n * Bind the session-scope resolution services needed for inserts.\n * @param deps - sessions and conversation services from the plugin closure.\n */\n bind(deps) {\n this.#sessions = deps.sessions;\n this.#conversation = deps.conversation;\n }\n /** Flip the panel open/closed. */\n toggle() {\n this.#require().toggle();\n }\n /**\n * Record the panel's delivery target. Called by the session-scoped\n * composer entry when its session becomes the visible one (mount or\n * session change) and again at click time, so the target always follows\n * the conversation the user is looking at — switching sessions must not\n * leave the panel pointed at a detached composer whose scope (and\n * send/insert path) has gone away.\n */\n setTargetSession(sessionId) {\n if (this.#targetSession === sessionId)\n return;\n this.#targetSession = sessionId;\n this.#targetVersion += 1;\n for (const notify of this.#targetListeners)\n notify();\n }\n /** The session whose composer last opened the panel, if any. */\n targetSession() {\n return this.#targetSession;\n }\n /** Monotonic change counter of the delivery target (snapshot for useSyncExternalStore). */\n targetVersion() {\n return this.#targetVersion;\n }\n /** Subscribe to delivery-target changes; returns the unsubscribe function. */\n subscribeTarget(notify) {\n this.#targetListeners.add(notify);\n return () => { this.#targetListeners.delete(notify); };\n }\n /**\n * Apply the settings-driven default open, at most once per store lifetime\n * and never after any user interaction with the panel. Before the entry's\n * first render the request parks as pending and attach() replays it.\n */\n openOnce() {\n if (this.#actions === undefined) {\n this.#pendingAutoOpen = true;\n return;\n }\n this.#actions.openOnce();\n }\n /**\n * Insert one template's content into a session's composer draft at the\n * live caret position (selection, when a range is selected, is replaced).\n * The caret path goes through the input face's provide-channel pair —\n * capture the caret span with its draft revision, then apply through the\n * face so the editor lands it as one undoable edit. The pair declines on\n * a stale revision or a locked admission transaction (submitting /\n * adjudicating), and older runtimes without the channel simply lack the\n * member; both fall back to an end-append over the draft snapshot (empty\n * draft takes the content verbatim, non-empty joins with a newline).\n * @param sessionId - target session.\n * @param content - template content.\n */\n insert(sessionId, content) {\n const input = this.#inputOf(sessionId);\n if (input === undefined)\n return;\n const text = expandTemplateVariables(content, { sessionId });\n const actions = input.actions;\n if (actions !== undefined) {\n try {\n const span = actions.captureInsertion();\n if (span !== undefined && actions.insertText(text, span))\n return;\n }\n catch {\n // The channel is best-effort; the append path below always works.\n }\n }\n const draft = input.state.getSnapshot().draft;\n input.setDraft(draft === '' ? text : `${draft}\\n${text}`);\n }\n /**\n * Interject one template: steer it into the running agent turn. With\n * steer mode the content interrupts the current turn at its next step\n * (the same delivery as Cmd/Ctrl+Enter插话发送), rather than queuing\n * after it. The user's own draft is left untouched.\n * @param sessionId - target session.\n * @param content - template content.\n */\n interject(sessionId, content) {\n const input = this.#inputOf(sessionId);\n if (input === undefined)\n return;\n input.setDraft(expandTemplateVariables(content, { sessionId }));\n input.submit('steer');\n }\n /**\n * Fill the draft with one template's content and submit it immediately —\n * the same transaction as typing the text and pressing send.\n * @param sessionId - target session.\n * @param content - template content.\n */\n send(sessionId, content) {\n const input = this.#inputOf(sessionId);\n if (input === undefined)\n return;\n input.setDraft(expandTemplateVariables(content, { sessionId }));\n input.submit();\n }\n /** Resolve a session's input facade, or undefined when out of reach. */\n #inputOf(sessionId) {\n const sessions = this.#sessions;\n const conversation = this.#conversation;\n if (sessions === undefined || conversation === undefined)\n return undefined;\n const actx = sessions.scope(sessionId);\n if (actx === undefined)\n return undefined;\n return conversation.input.for(actx);\n }\n #require() {\n if (this.#actions === undefined) {\n throw new Error('prompt-panel: panel actions not wired (shell.overlay entry not mounted)');\n }\n return this.#actions;\n }\n}\n","/** Locale keys for the prompt-templates surface. */\n/** Chinese dictionary. */\nexport const zh = {\n 'panel.title': '快捷提示词',\n 'panel.dragHint': '拖动移动,双击复位',\n 'panel.sendNow': '直接发送',\n 'panel.open': '打开提示词面板',\n 'panel.close': '关闭提示词面板',\n 'panel.empty': '暂无模板',\n 'panel.search': '搜索全部模板…',\n 'panel.searchCount': '匹配数 / 可搜索总数',\n 'panel.tabCount': '当前分类模板数',\n 'panel.injectedAt': '定时注入至轮次',\n 'panel.historyTitle': '最近定时注入',\n 'panel.historyEmpty': '本次启动后还没有定时注入',\n 'panel.github': '在 GitHub 查看源码',\n 'panel.noMatch': '没有匹配的模板',\n 'panel.global': '全局模板',\n 'panel.session': '会话模板',\n 'panel.add': '新增',\n 'panel.addName': '模板名称',\n 'panel.addContent': '模板内容',\n 'panel.addSave': '保存',\n 'panel.addCancel': '取消',\n 'panel.insert': '插入',\n 'panel.interject': '插话打断',\n 'panel.newCategory': '新增分类',\n 'panel.categoryName': '分类名称',\n 'panel.categoryNone': '不设分类',\n 'panel.category': '分类',\n 'panel.deleteCategory': '删除分类',\n 'panel.delete': '删除',\n 'panel.edit': '编辑',\n 'panel.makeGlobal': '设为全局',\n 'panel.inject': '定时注入',\n 'panel.injectEvery': '注入间隔(轮)',\n 'panel.variablesHint': '支持变量:{{date}} {{time}} {{datetime}} {{weekday}} {{session}} {{turn}}(发送/注入时展开,不可得时保留原文)',\n 'panel.share': '分享',\n 'panel.shareCategory': '分享此分类(含全部模板)',\n 'panel.shareCopied': '已复制分享内容,粘贴到目标实例的导入框即可',\n 'panel.shareFailed': '复制失败(剪贴板不可用)',\n 'panel.shareEmpty': '此分类暂无模板,没有可分享内容',\n 'panel.import': '导入',\n 'panel.importPlaceholder': '粘贴分享 JSON…',\n 'panel.importRun': '执行导入',\n 'panel.importCancel': '取消',\n 'panel.importBad': '分享内容无法识别',\n 'panel.overwriteRisk': '存在同名模板,是否覆盖?将更新现有模板条数:',\n 'panel.importDone': '导入完成(新建/覆盖/跳过):',\n 'panel.modeLabel': '注入呈现方式',\n 'panel.modeInject': '静默注入',\n 'panel.modeVisible': '对话流可见',\n 'panel.modeHint': '静默:只进模型上下文(对话流不显示,基座设计);可见:以用户消息样式显示在对话流中,带\"⚙️ 定时注入\"标记',\n 'panel.error': '操作失败',\n 'panel.inserted': '已插入',\n 'panel.none': '无',\n 'tab.title': '提示词',\n 'tab.guideTitle': '提示词模板',\n 'tab.guideDescription': '模板库:插入、发送、定时注入',\n};\n/** English dictionary. */\nexport const en = {\n 'panel.title': 'Quick prompts',\n 'panel.dragHint': 'Drag to move, double-click to reset',\n 'panel.sendNow': 'Send now',\n 'panel.open': 'Open prompt panel',\n 'panel.close': 'Close prompt panel',\n 'panel.empty': 'No templates yet',\n 'panel.search': 'Search all templates…',\n 'panel.searchCount': 'Matches / total searchable',\n 'panel.tabCount': 'Templates in current tab',\n 'panel.injectedAt': 'Scheduled injection at turn',\n 'panel.historyTitle': 'Recent injections',\n 'panel.historyEmpty': 'No scheduled injections since boot',\n 'panel.github': 'View source on GitHub',\n 'panel.noMatch': 'No matching templates',\n 'panel.global': 'Global templates',\n 'panel.session': 'Session templates',\n 'panel.add': 'Add',\n 'panel.addName': 'Template name',\n 'panel.addContent': 'Template content',\n 'panel.addSave': 'Save',\n 'panel.addCancel': 'Cancel',\n 'panel.insert': 'Insert',\n 'panel.interject': 'Interject (steer)',\n 'panel.newCategory': 'New category',\n 'panel.categoryName': 'Category name',\n 'panel.categoryNone': 'No category',\n 'panel.category': 'Category',\n 'panel.deleteCategory': 'Delete category',\n 'panel.delete': 'Delete',\n 'panel.edit': 'Edit',\n 'panel.makeGlobal': 'Make global',\n 'panel.inject': 'Auto-inject',\n 'panel.injectEvery': 'Every (rounds)',\n 'panel.variablesHint': 'Variables: {{date}} {{time}} {{datetime}} {{weekday}} {{session}} {{turn}} (expanded at delivery; unresolved stay literal)',\n 'panel.share': 'Share',\n 'panel.shareCategory': 'Share this category (all templates)',\n 'panel.shareCopied': 'Share payload copied — paste it into the target instance import box',\n 'panel.shareFailed': 'Copy failed (clipboard unavailable)',\n 'panel.shareEmpty': 'This category has no templates to share',\n 'panel.import': 'Import',\n 'panel.importPlaceholder': 'Paste share JSON…',\n 'panel.importRun': 'Import',\n 'panel.importCancel': 'Cancel',\n 'panel.importBad': 'Unrecognized share payload',\n 'panel.overwriteRisk': 'Same-name templates exist. Overwrite? Rows to update:',\n 'panel.importDone': 'Import done (created/overwritten/skipped):',\n 'panel.modeLabel': 'Injection delivery',\n 'panel.modeInject': 'Silent (model-only)',\n 'panel.modeVisible': 'Visible in chat',\n 'panel.modeHint': 'Silent: model context only (omitted from the chat transcript by base design); Visible: rendered as a user message in the chat flow, headed by a ⚙️ scheduled-injection marker',\n 'panel.error': 'Operation failed',\n 'panel.inserted': 'Inserted',\n 'panel.none': 'None',\n 'tab.title': 'Prompts',\n 'tab.guideTitle': 'Prompt templates',\n 'tab.guideDescription': 'Template library: insert, send, auto-inject',\n};\n","import { listTemplates, listCategories, injectStatus, injectionHistory, createCategory, deleteCategory, createTemplate, updateTemplate, deleteTemplate, makeTemplateGlobal, } from \"./api.js\";\nimport { PromptPanel } from \"./Panel.js\";\nimport { PanelButton } from \"./PanelButton.js\";\nimport { PromptTab } from \"./PromptTab.js\";\nimport { PROMPT_TEMPLATES_ID, promptTemplatesTabDefinition } from \"./tab.js\";\nimport { createPromptPanelStore } from \"./store.js\";\nimport { PromptPanelController } from \"./service.js\";\nimport { en, zh } from \"./locales.js\";\nexport { PromptPanel } from \"./Panel.js\";\nexport { PanelButton } from \"./PanelButton.js\";\nexport { PromptTab } from \"./PromptTab.js\";\nexport { PROMPT_TEMPLATES_KIND, PROMPT_TEMPLATES_ID, promptTemplatesTabDefinition } from \"./tab.js\";\nexport { PromptPanelController } from \"./service.js\";\n/** Dictionary namespace owned by this plugin. */\nconst NS = 'promptTemplates';\n/** Required services: slots, sessions, locale, conversation, and settings scope. */\nexport const inject = ['slots', 'sessions', 'locale', 'conversation'];\n/** The promptTemplates settings section (registered host-side; optional). */\n/**\n * Client plugin body: the shell.overlay panel owns the store; the controller\n * bridges its actions to the composer entry and performs inserts.\n * @param ctx - client root context.\n */\nexport function apply(ctx) {\n ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'ui-prompt-templates: dictionaries');\n const controller = new PromptPanelController();\n controller.bind({ sessions: ctx.sessions, conversation: ctx.conversation });\n ctx.effect(() => ctx.reflect.provide('promptPanel', controller), 'ui-prompt-templates: panel service');\n // The library verbs, created exactly once and shared by BOTH surfaces:\n // the floating panel face and the sidebar tab body. The `refresh`\n // identity feeds the load-effect dependency arrays, so a fresh object per\n // inject evaluation would loop the effects. refresh pulls EVERYTHING and\n // the component groups rows — a server-side session_id filter would hide\n // the global rows (their session_id is NULL and never matches).\n const verbs = {\n refresh: listTemplates,\n refreshCategories: listCategories,\n createCategory: (request) => {\n return createCategory(request);\n },\n removeCategory: (name, scope, sessionId) => {\n return deleteCategory(name, scope, sessionId);\n },\n create: (request) => {\n return createTemplate(request);\n },\n update: (id, request) => {\n return updateTemplate(id, request);\n },\n remove: (id) => {\n return deleteTemplate(id);\n },\n makeGlobal: (id) => {\n return makeTemplateGlobal(id);\n },\n insert: (sessionId, content) => {\n controller.insert(sessionId, content);\n },\n send: (sessionId, content) => {\n controller.send(sessionId, content);\n },\n interject: (sessionId, content) => {\n controller.interject(sessionId, content);\n },\n injectStatus,\n injectionHistory,\n };\n // Persisted prefs binding, filled by the overlay seat's inject (the seat\n // owns the store instance; the face reads through these closures).\n let prefsActions;\n let prefsSnapshot;\n const panelFace = {\n ...verbs,\n targetSession: () => controller.targetSession() ?? null,\n targetVersion: () => controller.targetVersion(),\n subscribeTarget: (notify) => controller.subscribeTarget(notify),\n panelPosition: () => prefsSnapshot?.().panel ?? null,\n savePanelPosition: (position) => {\n prefsActions?.setPosition(position.x, position.y);\n },\n resetPanelPosition: () => {\n prefsActions?.resetPosition();\n },\n };\n // The shell.overlay entry: root scope, owns the panel store; the inject\n // hook hands the bound actions to the controller and the shared face.\n ctx.slots.inject('shell.overlay', () => ctx.slots.register({\n name: 'shell.overlay',\n id: 'prompt-templates',\n order: 10,\n locale: NS,\n store: createPromptPanelStore,\n inject: (actions, store) => {\n // attach is a side effect on the controller; the face is the data verbs.\n controller.attach(actions);\n if (store !== undefined) {\n const s = store;\n prefsActions = s.actions;\n prefsSnapshot = () => s.getSnapshot();\n }\n return panelFace;\n },\n }, PromptPanel));\n // The composer entry: session scope, attaches the panel to this composer's\n // session at click time and toggles it via the controller.\n ctx.slots.inject('conversation.input.right', () => ctx.slots.register({\n name: 'conversation.input.right',\n id: 'prompt-templates',\n order: 10,\n locale: NS,\n inject: () => ({\n toggle: () => { controller.toggle(); },\n attachSession: (sessionId) => { controller.setTargetSession(sessionId); },\n }),\n }, PanelButton));\n // The right-sidebar tab: a page type (opened by kind from the guide '+'\n // picker) whose body lands in the session-scoped\n // 'sidebar.right.pane.tab' seat under the definition's own id — the\n // body's standard props carry the sessionId of the session the sidebar\n // is viewing, so no composer attachment is needed. Optional injection:\n // on a base without the sidebar services the whole block (type AND\n // body) simply never activates, and the floating panel keeps working.\n ctx.inject(['sidebarRightTabs'], (ctx) => {\n const t = ctx.locale.bind(NS);\n ctx.effect(() => ctx.sidebarRightTabs.register(promptTemplatesTabDefinition(t)), 'ui-prompt-templates: sidebar tab type');\n ctx.slots.inject('sidebar.right.pane.tab', () => ctx.slots.register({\n name: 'sidebar.right.pane.tab',\n key: PROMPT_TEMPLATES_ID,\n locale: NS,\n inject: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;GACJ,IAAI;GACJ,MAAM,YAAY;IACd,GAAG;IACH,qBAAqB,WAAW,cAAc,KAAK;IACnD,qBAAqB,WAAW,cAAc;IAC9C,kBAAkB,WAAW,WAAW,gBAAgB,MAAM;IAC9D,qBAAqB,gBAAgB,CAAC,CAAC,SAAS;IAChD,oBAAoB,aAAa;KAC7B,cAAc,YAAY,SAAS,GAAG,SAAS,CAAC;IACpD;IACA,0BAA0B;KACtB,cAAc,cAAc;IAChC;GACJ;GAGA,IAAI,MAAM,OAAO,uBAAuB,IAAI,MAAM,SAAS;IACvD,MAAM;IACN,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,OAAO;IACP,SAAS,SAAS,UAAU;KAExB,WAAW,OAAO,OAAO;KACzB,IAAI,UAAU,KAAA,GAAW;MACrB,MAAM,IAAI;MACV,eAAe,EAAE;MACjB,sBAAsB,EAAE,YAAY;KACxC;KACA,OAAO;IACX;GACJ,GAAG,WAAW,CAAC;GAGf,IAAI,MAAM,OAAO,kCAAkC,IAAI,MAAM,SAAS;IAClE,MAAM;IACN,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,eAAe;KACX,cAAc;MAAE,WAAW,OAAO;KAAG;KACrC,gBAAgB,cAAc;MAAE,WAAW,iBAAiB,SAAS;KAAG;IAC5E;GACJ,GAAG,WAAW,CAAC;GAQf,IAAI,OAAO,CAAC,kBAAkB,IAAI,QAAQ;IACtC,MAAM,IAAI,IAAI,OAAO,KAAK,EAAE;IAC5B,IAAI,aAAa,IAAI,iBAAiB,SAAS,6BAA6B,CAAC,CAAC,GAAG,uCAAuC;IACxH,IAAI,MAAM,OAAO,gCAAgC,IAAI,MAAM,SAAS;KAChE,MAAM;KACN,KAAK;KACL,QAAQ;KACR,cAAc;IAClB,GAAG,SAAS,CAAC;GACjB,CAAC;EACL"}
|
|
1
|
+
{"version":3,"file":"client.js","names":["css","IconQueueOutlineRegular","IconSendOutlineRegular","IconCopyOutlineRegular","IconGlobeOutlineRegular","IconEditOutlineRegular","IconTrashOutlineRegular","IconDownloadOutlineRegular","IconPlusOutlineRegular","css","css","css","#actions","#pendingAutoOpen","#sessions","#conversation","#require","#targetSession","#targetVersion","#targetListeners","#inputOf"],"sources":["client/api.js","client/filter.js","client/share.js","client/meta.js","client/Library.js","client/Panel.js","client/PanelButton.js","client/PromptTab.js","client/tab.js","client/store.js","variables.js","client/service.js","client/locales.js","client/index.js"],"sourcesContent":["/**\n * Browser-side API over the host's `/plugins/dsh-prompt-templates` routes.\n * One fetch helper per verb; every response settles into the same\n * `{ ok: true; value } | { ok: false; error }` envelope the panel face\n * consumes, so callers never see transport details.\n */\nconst BASE = '/plugins/dsh-prompt-templates';\n/** Load the full template set (global + every session's). */\nexport async function listTemplates() {\n const response = await fetch(`${BASE}/templates`, { cache: 'no-store' });\n if (!response.ok)\n return [];\n const body = await response.json();\n return [...body.items ?? []];\n}\n/** Poll a session's latest scheduled injection; null when none since boot (badges hide). */\nexport async function injectStatus(sessionId) {\n const response = await fetch(`${BASE}/inject-status?session_id=${encodeURIComponent(sessionId)}`, { cache: 'no-store' });\n if (!response.ok)\n return null;\n const body = await response.json();\n return body.status ?? null;\n}\n/** Load a session recent scheduled injections, newest first (empty when none). */\nexport async function injectionHistory(sessionId) {\n const response = await fetch(`${BASE}/inject-status?session_id=${encodeURIComponent(sessionId)}`, { cache: 'no-store' });\n if (!response.ok)\n return [];\n const body = await response.json();\n return [...body.history ?? []];\n}\n/** Load every user category tab (global + all sessions'; the panel filters). */\nexport async function listCategories() {\n const response = await fetch(`${BASE}/categories`, { cache: 'no-store' });\n if (!response.ok)\n return [];\n const body = await response.json();\n return [...body.items ?? []];\n}\n/** Create one category tab. */\nexport async function createCategory(request) {\n return mutate('POST', '/categories', request);\n}\n/** Delete one category tab (its templates fall back to the default tab). */\nexport async function deleteCategory(name, scope, sessionId) {\n const params = new URLSearchParams({ scope });\n if (sessionId !== null)\n params.set('session_id', sessionId);\n return mutate('DELETE', `/categories/${encodeURIComponent(name)}?${params.toString()}`);\n}\n/** Create one template. */\nexport async function createTemplate(request) {\n return mutate('POST', '/templates', request);\n}\n/** Patch one template by id. */\nexport async function updateTemplate(id, request) {\n return mutate('PATCH', `/templates/${encodeURIComponent(id)}`, request);\n}\n/** Promote one session template to the global partition. */\nexport async function makeTemplateGlobal(id) {\n return mutate('POST', `/templates/${encodeURIComponent(id)}/make-global`, {});\n}\n/** Delete one template by id. */\nexport async function deleteTemplate(id) {\n return mutate('DELETE', `/templates/${encodeURIComponent(id)}`);\n}\n/** Run one mutating request and settle it into the action envelope. */\nasync function mutate(method, path, body) {\n try {\n const response = await fetch(`${BASE}${path}`, {\n method,\n headers: body === undefined ? undefined : { 'content-type': 'application/json' },\n body: body === undefined ? undefined : JSON.stringify(body),\n cache: 'no-store',\n });\n if (!response.ok) {\n const payload = await response.json().catch(() => null);\n return {\n ok: false,\n error: payload?.error ?? { code: `http:${response.status}`, message: response.statusText },\n };\n }\n return { ok: true, value: await response.json().catch(() => undefined) };\n }\n catch (error) {\n return { ok: false, error: { code: 'network-error', message: String(error) } };\n }\n}\n","/**\n * Filter the panel's rows. A non-empty query is global across every category\n * while respecting privacy: every global template and only the current\n * session's private templates are searchable. With no query, the active tab\n * keeps its normal partition/category semantics.\n */\n/** All templates a search is allowed to inspect (global + current session). */\nexport function searchableTemplateRows(templates, sessionId) {\n return templates.filter(row => row.scope === 'global' || (row.scope === 'session' && row.session_id === sessionId));\n}\nexport function filterTemplateRows(templates, query, effectiveTab, activeCategory, sessionId) {\n const needle = query.trim().toLowerCase();\n const matches = (row) => row.name.toLowerCase().includes(needle) || row.content.toLowerCase().includes(needle);\n if (needle !== '') {\n return searchableTemplateRows(templates, sessionId).filter(matches);\n }\n return templates.filter((row) => {\n if (effectiveTab === 'global')\n return row.scope === 'global' && row.category === null;\n if (effectiveTab === 'session')\n return row.scope === 'session' && row.session_id === sessionId && row.category === null;\n return activeCategory !== undefined\n && row.category === activeCategory.name\n && row.scope === activeCategory.scope\n && (activeCategory.scope === 'global' || row.session_id === sessionId);\n });\n}\n","/** Payload format marker and version (v1). */\nexport const SHARE_FORMAT = 'dsh-prompt-templates';\nexport const SHARE_VERSION = 1;\n/** Build the clipboard payload for a share action. */\nexport function buildSharePayload(templates, categories = []) {\n return {\n format: SHARE_FORMAT,\n version: SHARE_VERSION,\n kind: 'templates',\n templates: [...templates],\n categories: [...categories],\n };\n}\n/** Parse a pasted payload; a one-line error string on any mismatch. */\nexport function parseSharePayload(text) {\n let raw;\n try {\n raw = JSON.parse(text);\n }\n catch {\n return { ok: false, error: 'invalid JSON' };\n }\n if (raw === null || typeof raw !== 'object')\n return { ok: false, error: 'payload is not an object' };\n const value = raw;\n if (value.format !== SHARE_FORMAT)\n return { ok: false, error: 'unknown format' };\n if (value.version !== SHARE_VERSION)\n return { ok: false, 'error': 'unsupported version ' + String(value.version) };\n if (value.kind !== 'templates')\n return { ok: false, error: 'unknown kind' };\n if (!Array.isArray(value.templates) || value.templates.length === 0)\n return { ok: false, error: 'no templates' };\n return {\n ok: true,\n payload: { ...value, categories: Array.isArray(value.categories) ? value.categories : [] },\n };\n}\n/** Plan the import against the target's rows: same name + same scope collides. */\nexport function planShareImport(payload, existing, existingCategories) {\n const create = [];\n const overwrite = [];\n for (const incoming of payload.templates) {\n const clash = existing.find(row => row.name === incoming.name && row.scope === incoming.scope);\n if (clash === undefined)\n create.push(incoming);\n else\n overwrite.push({ incoming, target: clash });\n }\n const have = new Set(existingCategories.map(cat => cat.scope + ':' + cat.name));\n const missingCategories = (payload.categories ?? []).filter(cat => !have.has(cat.scope + ':' + cat.name));\n return { create, overwrite, missingCategories };\n}\n","/** Canonical public source repository for the panel's metadata link. */\nexport const GITHUB_REPOSITORY_URL = 'https://github.com/NelsonLongXiang/dsh-prompt-templates';\n/** Build-injected package version; `dev` only exists in unbundled unit tests. */\nexport const PLUGIN_VERSION = typeof __PROMPT_TEMPLATES_VERSION__ === 'string'\n ? __PROMPT_TEMPLATES_VERSION__\n : 'dev';\n/** Header count: current-tab size when idle, matched/searchable when searching. */\nexport function templateCountLabel(matched, searchable, searching) {\n return searching ? `${matched}/${searchable}` : String(matched);\n}\n","import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n/**\n * The template library: the search bar, category tabs, row list, inline\n * forms, and footer shared by BOTH surfaces — the floating shell.overlay\n * panel and the right-sidebar tab body. This component owns the list state\n * (rows, categories, query, active tab, in-place edit) and loads on mount;\n * each host surface decides placement around it. The delivery target is\n * passed in as `sessionId` (the overlay reads it from its composer-entry\n * attachment; the sidebar tab reads it straight from its standard props).\n */\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport { IconCopyOutlineRegular, IconDownloadOutlineRegular, IconEditOutlineRegular, IconGlobeOutlineRegular, IconPlusOutlineRegular, IconQueueOutlineRegular, IconSendOutlineRegular, IconTrashOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives';\nimport { filterTemplateRows, searchableTemplateRows } from \"./filter.js\";\nimport { buildSharePayload, parseSharePayload, planShareImport } from \"./share.js\";\nimport { GITHUB_REPOSITORY_URL, PLUGIN_VERSION, templateCountLabel } from \"./meta.js\";\nimport css from './Panel.module.css';\nfunction TemplateRow({ template, onInsert, onSend, onInterject, onEdit, onDelete, onShare, onMakeGlobal, onToggleInject, sortable, onDragStart, onDropOn, t }) {\n const injectTitle = template.inject_enabled && template.inject_every !== null\n ? `${t('panel.inject')} · ${template.inject_every}${template.mode === 'visible' ? ' · ' + t('panel.modeVisible') : ''}`\n : t('panel.inject');\n return (_jsxs(\"div\", { className: css.row, \"data-prompt-template\": true, onMouseDown: (e) => { e.preventDefault(); }, draggable: sortable, onDragStart: () => { if (sortable)\n onDragStart(template.id); }, onDragOver: (e) => { if (sortable)\n e.preventDefault(); }, onDrop: (e) => { if (sortable) {\n e.preventDefault();\n e.stopPropagation();\n onDropOn(template.id);\n } }, children: [_jsxs(\"button\", { type: \"button\", className: css.insert, onClick: () => { onInsert(template.content); }, title: t('panel.insert'), children: [_jsx(\"span\", { className: css.name, children: template.name }), _jsx(\"span\", { className: css.preview, children: template.content })] }), _jsxs(\"button\", { type: \"button\", className: template.inject_enabled ? css.injectBtnActive : css.injectBtn, onClick: () => { onToggleInject(template); }, \"aria-label\": t('panel.inject'), \"aria-pressed\": template.inject_enabled, title: injectTitle, children: [\"\\u27F3\", template.inject_enabled && template.inject_every !== null ? template.inject_every : ''] }), _jsx(\"button\", { type: \"button\", className: css.interjectBtn, onClick: () => { onInterject(template.content); }, \"aria-label\": t('panel.interject'), title: t('panel.interject'), children: _jsx(IconQueueOutlineRegular, { size: 12 }) }), _jsx(\"button\", { type: \"button\", className: css.sendBtn, onClick: () => { onSend(template.content); }, \"aria-label\": t('panel.sendNow'), title: t('panel.sendNow'), children: _jsx(IconSendOutlineRegular, { size: 12 }) }), _jsx(\"button\", { type: \"button\", className: css.shareBtn, onClick: () => { onShare(template); }, \"aria-label\": t('panel.share'), title: t('panel.share'), children: _jsx(IconCopyOutlineRegular, { size: 12 }) }), onMakeGlobal !== undefined && (_jsx(\"button\", { type: \"button\", className: css.globalBtn, onClick: () => { onMakeGlobal(template.id); }, \"aria-label\": t('panel.makeGlobal'), title: t('panel.makeGlobal'), children: _jsx(IconGlobeOutlineRegular, { size: 12 }) })), _jsx(\"button\", { type: \"button\", className: css.editBtn, onClick: () => { onEdit(template.id); }, \"aria-label\": t('panel.edit'), title: t('panel.edit'), children: _jsx(IconEditOutlineRegular, { size: 12 }) }), _jsx(\"button\", { type: \"button\", className: css.deleteBtn, onClick: () => { onDelete(template.id); }, \"aria-label\": t('panel.delete'), children: _jsx(IconTrashOutlineRegular, { size: 12 }) })] }));\n}\n/** The template inline form: creation (with scope + category pickers) and in-place edit. */\nfunction TemplateForm({ initial, allowScope, sessionId, categories, t, submitLabel, onSubmit, onDone, onCancel }) {\n const [name, setName] = useState(initial?.name ?? '');\n const [content, setContent] = useState(initial?.content ?? '');\n // Edit seeds BOTH pickers with the row's stored facts, so opening a\n // category tab's edit form pre-selects that category (and the matching\n // scope) instead of resetting to 全局/无分类.\n const [scope, setScope] = useState(initial?.scope ?? 'global');\n const [category, setCategory] = useState(initial?.category ?? null);\n // Auto-inject facts: the interval edits as text so a half-typed value never\n // silently rounds; it is parsed (and rejected) on submit only.\n const [injectOn, setInjectOn] = useState(initial?.injectEnabled ?? false);\n const [injectEvery, setInjectEvery] = useState(initial?.injectEvery != null ? String(initial.injectEvery) : '5');\n const [mode, setMode] = useState(initial?.mode ?? 'inject');\n const [busy, setBusy] = useState(false);\n const [error, setError] = useState(null);\n const submit = useCallback(async () => {\n const trimmedName = name.trim();\n const trimmedContent = content.trim();\n if (trimmedName === '' || trimmedContent === '')\n return;\n if (allowScope && scope === 'session' && sessionId === null) {\n setError(t('panel.error'));\n return;\n }\n let every = null;\n if (injectOn) {\n const parsed = Number(injectEvery);\n if (!Number.isInteger(parsed) || parsed < 1) {\n setError(t('panel.error'));\n return;\n }\n every = parsed;\n }\n setBusy(true);\n setError(null);\n const ok = await onSubmit(trimmedName, trimmedContent, scope, category, injectOn, every, mode);\n setBusy(false);\n if (!ok) {\n setError(t('panel.error'));\n return;\n }\n onDone();\n }, [name, content, scope, category, injectOn, injectEvery, mode, allowScope, sessionId, onSubmit, t, onDone]);\n // Categories selectable for the CURRENT scope pick (matching partition).\n const scopeCategories = categories.filter((cat) => cat.scope === scope && (cat.scope === 'global' || cat.session_id === sessionId));\n return (_jsxs(\"div\", { className: css.addForm, \"data-prompt-add\": true, children: [_jsx(\"input\", { className: css.nameInput, type: \"text\", placeholder: t('panel.addName'), value: name, onChange: (e) => { setName(e.target.value); }, \"aria-label\": t('panel.addName') }), _jsx(\"textarea\", { className: css.contentInput, placeholder: t('panel.addContent'), value: content, onChange: (e) => { setContent(e.target.value); }, rows: 3, \"aria-label\": t('panel.addContent') }), _jsx(\"div\", { className: css.variablesHint, children: t('panel.variablesHint') }), _jsxs(\"div\", { className: css.injectRow, children: [_jsxs(\"label\", { className: css.injectLabel, children: [_jsx(\"input\", { type: \"checkbox\", checked: injectOn, onChange: (e) => { setInjectOn(e.target.checked); } }), t('panel.inject')] }), injectOn && (_jsxs(\"label\", { className: css.injectLabel, children: [_jsx(\"input\", { className: css.injectEveryInput, type: \"number\", min: 1, step: 1, value: injectEvery, onChange: (e) => { setInjectEvery(e.target.value); }, \"aria-label\": t('panel.injectEvery') }), t('panel.injectEvery')] })), injectOn && (_jsx(\"label\", { className: css.injectLabel, title: t('panel.modeHint'), children: _jsxs(\"select\", { value: mode, onChange: (e) => { setMode(e.target.value); }, \"aria-label\": t('panel.modeLabel'), children: [_jsx(\"option\", { value: \"inject\", children: t('panel.modeInject') }), _jsx(\"option\", { value: \"visible\", children: t('panel.modeVisible') })] }) }))] }), _jsxs(\"div\", { className: css.addRow, children: [allowScope && (_jsx(\"label\", { className: css.scopeLabel, children: _jsxs(\"select\", { value: scope, onChange: (e) => { setScope(e.target.value); setCategory(null); }, \"aria-label\": \"scope\", children: [_jsx(\"option\", { value: \"global\", children: t('panel.global') }), _jsx(\"option\", { value: \"session\", disabled: sessionId === null, children: t('panel.session') })] }) })), _jsx(\"label\", { className: css.scopeLabel, children: _jsxs(\"select\", { value: category ?? '', onChange: (e) => { setCategory(e.target.value === '' ? null : e.target.value); }, \"aria-label\": t('panel.category'), children: [_jsx(\"option\", { value: \"\", children: t('panel.categoryNone') }), scopeCategories.map((cat) => _jsx(\"option\", { value: cat.name, children: cat.name }, `${cat.scope}:${cat.name}`))] }) }), _jsxs(\"div\", { className: css.addActions, children: [error !== null && _jsx(\"span\", { className: css.error, role: \"alert\", children: error }), onCancel !== undefined && (_jsx(\"button\", { type: \"button\", className: css.cancelBtn, onClick: onCancel, disabled: busy, children: t('panel.addCancel') })), _jsx(\"button\", { type: \"button\", className: css.saveBtn, onClick: () => void submit(), disabled: busy || name.trim() === '' || content.trim() === '', children: submitLabel })] })] })] }));\n}\n/** Inline form creating one category tab: name + scope (global, or the current session). */\nfunction CategoryForm({ sessionId, createCategory, t, onDone }) {\n const [name, setName] = useState('');\n const [scope, setScope] = useState('global');\n const [busy, setBusy] = useState(false);\n const [error, setError] = useState(null);\n const submit = async () => {\n const trimmed = name.trim();\n if (trimmed === '')\n return;\n if (scope === 'session' && sessionId === null) {\n setError(t('panel.error'));\n return;\n }\n setBusy(true);\n setError(null);\n const result = await createCategory({\n name: trimmed,\n scope,\n session_id: scope === 'session' ? sessionId : null,\n });\n setBusy(false);\n if (!result.ok) {\n setError(t('panel.error'));\n return;\n }\n onDone();\n };\n return (_jsxs(\"div\", { className: css.addForm, \"data-prompt-category-add\": true, children: [_jsx(\"input\", { className: css.nameInput, type: \"text\", placeholder: t('panel.categoryName'), value: name, onChange: (e) => { setName(e.target.value); }, \"aria-label\": t('panel.categoryName') }), _jsxs(\"div\", { className: css.addRow, children: [_jsx(\"label\", { className: css.scopeLabel, children: _jsxs(\"select\", { value: scope, onChange: (e) => { setScope(e.target.value); }, \"aria-label\": \"scope\", children: [_jsx(\"option\", { value: \"global\", children: t('panel.global') }), _jsx(\"option\", { value: \"session\", disabled: sessionId === null, children: t('panel.session') })] }) }), _jsxs(\"div\", { className: css.addActions, children: [error !== null && _jsx(\"span\", { className: css.error, role: \"alert\", children: error }), _jsx(\"button\", { type: \"button\", className: css.saveBtn, onClick: () => void submit(), disabled: busy || name.trim() === '', children: t('panel.addSave') })] })] })] }));\n}\n/**\n * The shared template library: toolbar (title + row count), live search,\n * category tabs, the row list with inline edit/create forms, and the\n * footer. Loads everything on mount; the parent decides placement and\n * lifetime (the overlay mounts it only while open, the sidebar tab mounts\n * it for the tab's lifetime).\n * @param props - target session, shared verbs, locale, optional title-row takeover.\n */\nexport function TemplateLibrary({ sessionId, face, t, header, headerExtra }) {\n const { refresh, refreshCategories, createCategory, removeCategory, create, update, remove, makeGlobal, insert, send, interject, injectStatus, injectionHistory } = face;\n const [templates, setTemplates] = useState([]);\n const [categories, setCategories] = useState([]);\n const [showAdd, setShowAdd] = useState(false);\n // Live search filter over name + content, case-insensitive.\n const [query, setQuery] = useState('');\n // In-place editing: the id whose row swaps to the edit form, null = none.\n const [editingId, setEditingId] = useState(null);\n // Active tab: 'global' / 'session' (the implicit default tabs) or\n // `cat:<scope>:<name>` for one user-created category tab.\n const [activeTab, setActiveTab] = useState('global');\n const [showCatForm, setShowCatForm] = useState(false);\n // Row drag-sort: the id currently being dragged (HTML5 DnD).\n const dragRowRef = useRef(null);\n // Row-toggle failures surface above the list until the next good write.\n const [rowError, setRowError] = useState(null);\n const load = useCallback(async () => {\n const items = await refresh();\n setTemplates(items);\n }, [refresh]);\n const loadCategories = useCallback(async () => {\n setCategories(await refreshCategories());\n }, [refreshCategories]);\n useEffect(() => {\n void load();\n void loadCategories();\n }, [load, loadCategories]);\n // Toolbar badge `⟳N`: the target session's latest scheduled injection,\n // polled every 30s (and re-read whenever the target changes). null hides\n // the badge — the route is memory-only, so polling stays O(1).\n const [injected, setInjected] = useState(null);\n const pollStatus = useCallback(async () => {\n if (sessionId === null) {\n setInjected(null);\n return;\n }\n setInjected(await injectStatus(sessionId));\n }, [injectStatus, sessionId]);\n useEffect(() => {\n void pollStatus();\n const timer = setInterval(() => { void pollStatus(); }, 30_000);\n return () => { clearInterval(timer); };\n }, [pollStatus]);\n // Badge dropdown: the recent-injection history for the target session,\n // fetched on demand (on open, on target change, and whenever a new\n // injection lands while open) so the 30s badge poll stays O(1).\n const [historyOpen, setHistoryOpen] = useState(false);\n const [history, setHistory] = useState([]);\n const loadHistory = useCallback(async () => {\n if (sessionId === null) {\n setHistory([]);\n return;\n }\n setHistory(await injectionHistory(sessionId));\n }, [injectionHistory, sessionId]);\n useEffect(() => {\n if (historyOpen)\n void loadHistory();\n }, [historyOpen, loadHistory, injected]);\n useEffect(() => { setHistoryOpen(false); }, [sessionId]);\n // Clipboard sharing: one template per row, one category per tab. The\n // payload carries raw rows (variables stay literal — they re-expand on\n // the receiving instance). Import plans against the loaded rows first,\n // so the same-name overwrite risk is one explicit confirm (owner ruling).\n const [notice, setNotice] = useState(null);\n const [showImport, setShowImport] = useState(false);\n const [importText, setImportText] = useState('');\n const [importBusy, setImportBusy] = useState(false);\n useEffect(() => {\n if (notice === null)\n return;\n const timer = setTimeout(() => { setNotice(null); }, 3000);\n return () => { clearTimeout(timer); };\n }, [notice]);\n const copyPayload = useCallback(async (payload) => {\n try {\n await navigator.clipboard.writeText(payload);\n setNotice(t('panel.shareCopied'));\n }\n catch {\n setNotice(t('panel.shareFailed'));\n }\n }, [t]);\n const handleShareTemplate = useCallback((template) => {\n return copyPayload(JSON.stringify(buildSharePayload([template])));\n }, [copyPayload]);\n const handleShareCategory = useCallback((cat) => {\n const members = templates.filter(row => row.category === cat.name\n && row.scope === cat.scope\n && (cat.scope === 'global' || row.session_id === cat.session_id));\n if (members.length === 0) {\n setNotice(t('panel.shareEmpty'));\n return;\n }\n return copyPayload(JSON.stringify(buildSharePayload(members, [cat])));\n }, [templates, copyPayload, t]);\n const handleImport = useCallback(async () => {\n const parsed = parseSharePayload(importText.trim());\n if (!parsed.ok) {\n setRowError(t('panel.importBad') + ' (' + parsed.error + ')');\n return;\n }\n const plan = planShareImport(parsed.payload, templates, categories);\n let overwrite = 0;\n if (plan.overwrite.length > 0) {\n // Same name + same scope is the overwrite risk: one explicit ask,\n // declining skips those rows (nothing is silently replaced).\n if (window.confirm(t('panel.overwriteRisk') + ' ' + plan.overwrite.length))\n overwrite = plan.overwrite.length;\n }\n setImportBusy(true);\n for (const cat of plan.missingCategories) {\n await createCategory({ name: cat.name, scope: cat.scope, session_id: cat.session_id });\n }\n let created = 0;\n let skipped = 0;\n for (const incoming of plan.create) {\n if (incoming.scope === 'session' && sessionId === null) {\n skipped += 1;\n continue;\n }\n const result = await create({\n name: incoming.name,\n content: incoming.content,\n scope: incoming.scope,\n session_id: incoming.scope === 'session' ? sessionId : null,\n description: incoming.description,\n category: incoming.category,\n // Import never silently enables scheduled injection — the interval\n // and mode survive so a manual toggle starts it as configured, but\n // the switch itself stays off until the user turns it on.\n inject_enabled: false,\n inject_every: incoming.inject_every,\n mode: incoming.mode,\n });\n if (result.ok)\n created += 1;\n }\n if (overwrite > 0) {\n for (const pair of plan.overwrite) {\n const result = await update(pair.target.id, {\n content: pair.incoming.content,\n description: pair.incoming.description,\n category: pair.incoming.category,\n // Overwrite updates content and placement, never the inject switch:\n // the target's own on/off state survives the sync.\n inject_every: pair.incoming.inject_every,\n mode: pair.incoming.mode,\n });\n if (!result.ok)\n overwrite -= 1;\n }\n }\n if (overwrite === 0 && plan.overwrite.length > 0 && created === 0 && skipped === plan.create.length) {\n // nothing happened at all — keep the form open for inspection\n setImportBusy(false);\n return;\n }\n const declined = plan.overwrite.length > 0 && overwrite === 0 ? plan.overwrite.length : 0;\n const skippedTotal = skipped + declined;\n setImportBusy(false);\n setShowImport(false);\n setImportText('');\n setNotice(t('panel.importDone') + ' ' + created + ' / ' + overwrite + ' / ' + skippedTotal);\n void load();\n void loadCategories();\n }, [importText, templates, categories, sessionId, create, update, createCategory, load, loadCategories, t]);\n const handleInsert = useCallback((content) => {\n if (sessionId === null)\n return;\n insert(sessionId, content);\n }, [insert, sessionId]);\n const handleSend = useCallback((content) => {\n if (sessionId === null)\n return;\n send(sessionId, content);\n }, [send, sessionId]);\n const handleInterject = useCallback((content) => {\n if (sessionId === null)\n return;\n interject(sessionId, content);\n }, [interject, sessionId]);\n const handleRemove = useCallback(async (id) => {\n const result = await remove(id);\n if (result.ok)\n void load();\n }, [remove, load]);\n const handleMakeGlobal = useCallback(async (id) => {\n const result = await makeGlobal(id);\n if (result.ok)\n void load();\n }, [makeGlobal, load]);\n // Flip one row's auto-inject switch. First-time setup (no interval yet)\n // routes into the edit form, where the interval gets typed and confirmed.\n // A failed toggle surfaces the envelope error next to the list instead of\n // failing silently — the switch only flips after a confirmed write.\n const handleToggleInject = useCallback(async (template) => {\n if (!template.inject_enabled && template.inject_every === null) {\n setEditingId(template.id);\n return;\n }\n const result = await update(template.id, { inject_enabled: !template.inject_enabled });\n if (result.ok) {\n setRowError(null);\n void load();\n }\n else {\n setRowError(result.error.message);\n }\n }, [update, load]);\n // Visible user-category tabs: global ones always, session ones only for\n // the current session.\n const visibleCategories = categories.filter((cat) => cat.scope === 'global' || (cat.scope === 'session' && cat.session_id === sessionId));\n const activeCategory = activeTab.startsWith('cat:')\n ? visibleCategories.find((cat) => `cat:${cat.scope}:${cat.name}` === activeTab)\n : undefined;\n // A deleted (or no-longer-visible) category tab falls back to 全局.\n const effectiveTab = activeTab.startsWith('cat:') && activeCategory === undefined ? 'global' : activeTab;\n // With no query the active tab owns the list. A query searches across every\n // category, but never leaks another session's private templates.\n const needle = query.trim().toLowerCase();\n const tabRows = filterTemplateRows(templates, query, effectiveTab, activeCategory, sessionId);\n const searchableCount = searchableTemplateRows(templates, sessionId).length;\n const countLabel = templateCountLabel(tabRows.length, searchableCount, needle !== '');\n // Drop one dragged row onto another: reorder within the tab by writing the\n // full position sequence back (idempotent and partition-local).\n const handleRowDrop = (targetId) => {\n const draggedId = dragRowRef.current;\n dragRowRef.current = null;\n if (draggedId === null || draggedId === targetId)\n return;\n const ids = tabRows.map((row) => row.id);\n const from = ids.indexOf(draggedId);\n const to = ids.indexOf(targetId);\n if (from === -1 || to === -1)\n return;\n ids.splice(to, 0, ...ids.splice(from, 1));\n void (async () => {\n await Promise.all(ids.map((id, index) => update(id, { position: index })));\n void load();\n })();\n };\n /** One list row: the edit form while being edited, the rendered row otherwise. */\n const renderTemplateRow = (row) => (editingId === row.id\n ? (_jsx(TemplateForm, { initial: { name: row.name, content: row.content, scope: row.scope, category: row.category, injectEnabled: row.inject_enabled, injectEvery: row.inject_every, mode: row.mode }, allowScope: false, sessionId: sessionId, categories: visibleCategories, t: t, submitLabel: t('panel.addSave'), onSubmit: async (name, content, _scope, category, injectEnabled, injectEvery, mode) => {\n // Disabling keeps the stored interval: only enabling sends a new one.\n const result = await update(row.id, {\n name,\n content,\n category,\n inject_enabled: injectEnabled,\n ...(injectEnabled ? { inject_every: injectEvery, mode } : {}),\n });\n return result.ok;\n }, onDone: () => { setEditingId(null); void load(); }, onCancel: () => { setEditingId(null); } }, row.id))\n : (_jsx(TemplateRow, { template: row, onInsert: (c) => { handleInsert(c); }, onSend: (c) => { handleSend(c); }, onInterject: (c) => { handleInterject(c); }, onEdit: (id) => { setEditingId(id); }, onDelete: (id) => { void handleRemove(id); }, onShare: (tpl) => { void handleShareTemplate(tpl); }, onMakeGlobal: row.scope === 'session' ? (id) => { void handleMakeGlobal(id); } : undefined, onToggleInject: (tpl) => { void handleToggleInject(tpl); }, sortable: needle === '', onDragStart: (id) => { dragRowRef.current = id; }, onDropOn: (id) => { handleRowDrop(id); }, t: t }, row.id)));\n return (_jsxs(\"div\", { className: css.library, \"data-prompt-library\": true, children: [_jsxs(\"div\", { className: header !== undefined ? `${css.toolbar} ${css.toolbarDraggable}` : css.toolbar, title: header?.hint, onPointerDown: header?.onPointerDown, onPointerMove: header?.onPointerMove, onPointerUp: header?.onPointerUp, onDoubleClick: header?.onDoubleClick, children: [_jsxs(\"span\", { className: css.titleGroup, children: [_jsx(\"span\", { className: css.title, children: t('panel.title') }), _jsx(\"span\", { className: css.countBadge, \"data-template-count\": true, title: needle !== '' ? t('panel.searchCount') : t('panel.tabCount'), children: countLabel }), injected !== null && (_jsxs(\"button\", { type: \"button\", className: `${css.injectBadge} ${css.injectBadgeButton}`, \"data-prompt-injected\": true, title: `${t('panel.injectedAt')} ${injected.turn} · ${new Date(injected.at).toLocaleTimeString()} · ${injected.templates.join(', ')}`, \"aria-label\": t('panel.historyTitle'), \"aria-expanded\": historyOpen, onClick: () => { setHistoryOpen(open => !open); }, children: [\"\\u27F3\", injected.turn] })), _jsx(\"button\", { type: \"button\", className: css.importBtn, onClick: () => { setShowImport(v => !v); }, \"aria-label\": t('panel.import'), \"aria-expanded\": showImport, title: t('panel.import'), children: _jsx(IconDownloadOutlineRegular, { size: 12 }) })] }), headerExtra] }), notice !== null && _jsx(\"div\", { className: css.notice, role: \"status\", children: notice }), showImport && (_jsxs(\"div\", { className: css.importForm, \"data-prompt-import\": true, children: [_jsx(\"textarea\", { className: css.contentInput, rows: 4, value: importText, onChange: (e) => { setImportText(e.target.value); }, placeholder: t('panel.importPlaceholder'), \"aria-label\": t('panel.import') }), _jsxs(\"div\", { className: css.importActions, children: [_jsx(\"button\", { type: \"button\", className: css.saveBtn, onClick: () => { void handleImport(); }, disabled: importBusy, children: t('panel.importRun') }), _jsx(\"button\", { type: \"button\", className: css.cancelBtn, onClick: () => { setShowImport(false); setImportText(''); }, disabled: importBusy, children: t('panel.importCancel') })] })] })), historyOpen && (_jsxs(\"div\", { className: css.injectHistory, \"data-prompt-inject-history\": true, role: \"dialog\", \"aria-label\": t('panel.historyTitle'), children: [_jsx(\"div\", { className: css.injectHistoryTitle, children: t('panel.historyTitle') }), history.length === 0 && _jsx(\"div\", { className: css.injectHistoryEmpty, children: t('panel.historyEmpty') }), history.map(entry => (_jsxs(\"div\", { className: css.injectHistoryItem, children: [_jsxs(\"div\", { className: css.injectHistoryHead, children: [\"\\u27F3\", entry.turn, \" \\u00B7 \", new Date(entry.at).toLocaleTimeString(), \" \\u00B7 \", entry.templates.join(', ')] }), _jsx(\"div\", { className: css.injectHistoryContent, children: entry.content })] }, `${entry.turn}-${entry.at}`)))] })), _jsx(\"div\", { className: css.searchBar, children: _jsx(\"input\", { type: \"search\", className: css.searchInput, value: query, onChange: (e) => { setQuery(e.target.value); }, placeholder: t('panel.search'), \"aria-label\": t('panel.search') }) }), _jsxs(\"div\", { className: css.tabsBar, children: [_jsx(\"button\", { type: \"button\", className: effectiveTab === 'global' ? `${css.tab} ${css.tabActive}` : css.tab, onClick: () => { setActiveTab('global'); }, children: t('panel.global') }), _jsx(\"button\", { type: \"button\", className: effectiveTab === 'session' ? `${css.tab} ${css.tabActive}` : css.tab, onClick: () => { setActiveTab('session'); }, disabled: sessionId === null, children: t('panel.session') }), visibleCategories.map((cat) => {\n const key = `cat:${cat.scope}:${cat.name}`;\n return (_jsxs(\"span\", { className: effectiveTab === key ? `${css.tab} ${css.tabActive}` : css.tab, children: [_jsx(\"button\", { type: \"button\", onClick: () => { setActiveTab(key); }, children: cat.name }), _jsx(\"button\", { type: \"button\", className: css.tabShare, \"aria-label\": t('panel.shareCategory'), title: t('panel.shareCategory'), onClick: () => { void handleShareCategory(cat); }, children: _jsx(IconCopyOutlineRegular, { size: 11 }) }), _jsx(\"button\", { type: \"button\", className: css.tabDelete, \"aria-label\": t('panel.deleteCategory'), title: t('panel.deleteCategory'), onClick: () => {\n void (async () => {\n const result = await removeCategory(cat.name, cat.scope, cat.session_id);\n if (result.ok) {\n if (effectiveTab === key)\n setActiveTab('global');\n void loadCategories();\n void load();\n }\n })();\n }, children: \"\\u00D7\" })] }, key));\n }), _jsx(\"button\", { type: \"button\", className: css.tabAdd, \"aria-label\": t('panel.newCategory'), title: t('panel.newCategory'), onClick: () => { setShowCatForm(v => !v); }, children: _jsx(IconPlusOutlineRegular, { size: 10 }) })] }), showCatForm && (_jsx(CategoryForm, { sessionId: sessionId, createCategory: createCategory, t: t, onDone: () => { setShowCatForm(false); void loadCategories(); } })), _jsxs(\"div\", { className: css.body, children: [rowError !== null && (_jsxs(\"div\", { className: css.error, role: \"alert\", \"data-prompt-row-error\": true, children: [t('panel.error'), \" \\u00B7 \", rowError] })), tabRows.length === 0 && !showAdd && !showCatForm && (_jsx(\"div\", { className: css.empty, children: needle !== '' ? t('panel.noMatch') : t('panel.empty') })), tabRows.length > 0 && (_jsx(\"div\", { className: css.group, onDragOver: (e) => { e.preventDefault(); }, children: tabRows.map(row => renderTemplateRow(row)) })), showAdd && (_jsx(TemplateForm, { sessionId: sessionId, categories: visibleCategories, t: t, allowScope: true, submitLabel: t('panel.addSave'), onSubmit: async (name, content, scope, category, injectEnabled, injectEvery, mode) => {\n const result = await create({\n name,\n content,\n scope,\n session_id: scope === 'session' ? sessionId : null,\n category,\n inject_enabled: injectEnabled,\n inject_every: injectEvery,\n mode,\n });\n return result.ok;\n }, onDone: () => { setShowAdd(false); void load(); }, onCancel: () => { setShowAdd(false); } }))] }), _jsxs(\"div\", { className: css.footer, children: [_jsxs(\"span\", { className: css.meta, children: [_jsxs(\"span\", { \"data-plugin-version\": true, children: [\"v\", PLUGIN_VERSION] }), _jsx(\"a\", { className: css.githubLink, href: GITHUB_REPOSITORY_URL, target: \"_blank\", rel: \"noopener noreferrer\", title: t('panel.github'), children: \"GitHub \\u2197\" })] }), _jsxs(\"button\", { type: \"button\", className: css.addBtn, onClick: () => { setShowAdd(v => !v); }, children: [_jsx(IconPlusOutlineRegular, { size: 12 }), \" \", t('panel.add')] })] })] }));\n}\n","import { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Quick prompt panel: the right-anchored floating surface registered into\n * shell.overlay. The shell owns only placement (drag-by-title, persisted\n * position) and visibility; the template library itself — search, tabs,\n * rows, forms, footer — is the shared TemplateLibrary component, also\n * mounted by the right-sidebar tab. The current session arrives through\n * the composer entry attachment (targetSession), never the session list.\n */\nimport { useRef, useState, useSyncExternalStore } from 'react';\nimport { TemplateLibrary } from \"./Library.js\";\nimport css from './Panel.module.css';\nconst PANEL_WIDTH = 320;\n/**\n * Clamp a restored panel position into the current viewport so a placement\n * saved on a wider screen (or a monitor that is no longer attached) can never\n * render the panel unreachable off-screen. Null passes through untouched.\n * @param position - the persisted placement, if any.\n * @returns the clamped placement.\n */\nfunction clampToViewport(position) {\n if (position === null)\n return null;\n const maxX = Math.max(0, window.innerWidth - PANEL_WIDTH);\n const maxY = Math.max(0, window.innerHeight - 40);\n return {\n x: Math.min(Math.max(position.x, 0), maxX),\n y: Math.min(Math.max(position.y, 0), maxY),\n };\n}\n/**\n * The prompt-templates floating panel shell.\n * @param props - runtime kit, injected face members, store handle, and locale.\n */\nexport function PromptPanel(props) {\n const { useStore, refresh, refreshCategories, createCategory, removeCategory, create, update, remove, makeGlobal, insert, send, interject, injectStatus, injectionHistory, targetSession, targetVersion, subscribeTarget, panelPosition, savePanelPosition, resetPanelPosition, actions, t, } = props;\n const open = useStore(s => s.open);\n // Re-render whenever the delivery target changes: the composer entry\n // attaches its session whenever its composer becomes the visible one, so\n // switching conversations bumps the version and the open panel re-reads\n // the target. Without this the panel's handlers keep the previous\n // render's sessionId closure and sends after a switch land nowhere.\n useSyncExternalStore(subscribeTarget, targetVersion);\n // Delivery target: the composer entry attachment, never the session list.\n // The 0.2.0 session list has no selection field (SessionListState.current\n // is gone), so guessing ids[0] would target the newest list row — a\n // foreign session on any busy host.\n const currentSession = targetSession();\n const sessionId = currentSession ?? null;\n // Drag placement: seeded from the persisted position, live-updated while\n // dragging, committed to the settings document on release. A null with no\n // drag in flight keeps the CSS right-anchored default. The restored value\n // is clamped into the current viewport: a position saved on a wider screen\n // or a second monitor would otherwise render the panel off-screen forever.\n const persisted = clampToViewport(panelPosition());\n const [dragPos, setDragPos] = useState(null);\n const dragRef = useRef(null);\n const panelRef = useRef(null);\n // Drag-by-title: capture the pointer, track the offset, clamp so the\n // header always stays reachable inside the viewport, commit on release.\n const onHeaderPointerDown = (event) => {\n if (event.button !== 0)\n return;\n const target = event.target;\n if (target.closest('button'))\n return;\n const panel = panelRef.current;\n if (panel === null)\n return;\n const rect = panel.getBoundingClientRect();\n dragRef.current = { pointerId: event.pointerId, offX: event.clientX - rect.left, offY: event.clientY - rect.top };\n // jsdom lacks the pointer-capture API; feature-detect before using it.\n if (Reflect.has(event.currentTarget, 'setPointerCapture')) {\n event.currentTarget.setPointerCapture(event.pointerId);\n }\n };\n const onHeaderPointerMove = (event) => {\n const drag = dragRef.current;\n if (drag === null || event.pointerId !== drag.pointerId)\n return;\n const width = panelRef.current?.getBoundingClientRect().width ?? PANEL_WIDTH;\n const maxX = Math.max(0, window.innerWidth - width);\n const maxY = Math.max(0, window.innerHeight - 40);\n const x = Math.min(Math.max(event.clientX - drag.offX, 0), maxX);\n const y = Math.min(Math.max(event.clientY - drag.offY, 0), maxY);\n setDragPos({ x, y });\n };\n const onHeaderPointerUp = (event) => {\n const drag = dragRef.current;\n if (drag === null || event.pointerId !== drag.pointerId)\n return;\n dragRef.current = null;\n if (Reflect.has(event.currentTarget, 'releasePointerCapture')) {\n event.currentTarget.releasePointerCapture(event.pointerId);\n }\n if (dragPos !== null)\n savePanelPosition(dragPos);\n };\n // Double-click the title to forget the placement and re-anchor right.\n const onHeaderDoubleClick = () => {\n setDragPos(null);\n resetPanelPosition();\n };\n if (!open)\n return null;\n const placement = dragPos ?? persisted;\n // With bottom:auto the fixed panel's height is content-driven, so a long\n // list would stretch past the viewport with no internal scroll. Cap the\n // height at (viewport - top - margin); the flex column + body's\n // min-height/overflow then keeps the list scrolling inside the panel.\n const placementStyle = placement === null\n ? undefined\n : {\n left: placement.x,\n top: placement.y,\n right: 'auto',\n bottom: 'auto',\n maxHeight: `calc(100vh - ${placement.y}px - 16px)`,\n };\n // The library verbs are the face minus the overlay-only placement knobs.\n const libraryFace = {\n refresh, refreshCategories, createCategory, removeCategory,\n create, update, remove, makeGlobal,\n insert, send, interject, injectStatus, injectionHistory,\n };\n return (_jsx(\"div\", { className: css.panel, \"data-prompt-panel\": true, ref: panelRef, style: placementStyle, children: _jsx(TemplateLibrary, { sessionId: sessionId, face: libraryFace, t: t, header: {\n onPointerDown: onHeaderPointerDown,\n onPointerMove: onHeaderPointerMove,\n onPointerUp: onHeaderPointerUp,\n onDoubleClick: onHeaderDoubleClick,\n hint: t('panel.dragHint'),\n }, headerExtra: (_jsx(\"button\", { type: \"button\", className: css.closeBtn, onClick: () => { actions.close(); }, \"aria-label\": t('panel.close'), children: \"\\u00D7\" })) }) }));\n}\n","import { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Composer entry button: toggles the quick prompt panel. Registered into\n * conversation.input.right (the tool row, before the send button). The\n * session-scoped inject face carries the toggle verb, which routes through\n * ctx.promptPanel to the panel's store. The standard kit delivers this\n * composer's sessionId as a prop; the button attaches the panel to that\n * session whenever its composer becomes the visible one — on mount, on\n * session change, and at click — so inserts and sends land in the\n * conversation the user is looking at, even right after a switch.\n */\nimport { useEffect } from 'react';\nimport css from './PanelButton.module.css';\n/**\n * The composer tool-row button.\n * @param props - runtime kit (the composer's sessionId), the toggle + attach verbs, and the locale seat.\n */\nexport function PanelButton({ toggle, attachSession, sessionId, t }) {\n // Keep the panel's delivery target glued to this composer: the effect\n // fires when this composer becomes the visible one (mount or session\n // swap), not only at click time — otherwise switching sessions leaves\n // the panel pointing at the previous conversation whose input scope may\n // be gone, and send/insert would silently drop.\n useEffect(() => {\n if (sessionId !== undefined)\n attachSession(sessionId);\n }, [sessionId, attachSession]);\n return (_jsx(\"button\", { type: \"button\", className: css.button, onClick: () => {\n if (sessionId !== undefined)\n attachSession(sessionId);\n toggle();\n }, \"aria-label\": t('panel.open'), \"aria-pressed\": \"false\", title: t('panel.title'), children: _jsx(\"span\", { className: css.glyph, children: \"\\u25A4\" }) }));\n}\n","import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { TemplateLibrary } from \"./Library.js\";\nimport css from './Panel.module.css';\n/**\n * The prompt-templates sidebar tab body.\n * @param props - runtime kit (carries sessionId), injected face members, locale.\n */\nexport function PromptTab(props) {\n const { sessionId, refresh, refreshCategories, createCategory, removeCategory, create, update, remove, makeGlobal, insert, send, interject, injectStatus, injectionHistory, t, } = props;\n return (_jsx(\"div\", { className: css.tabBody, \"data-prompt-tab\": true, children: _jsx(TemplateLibrary, { sessionId: sessionId, face: { refresh, refreshCategories, createCategory, removeCategory, create, update, remove, makeGlobal, insert, send, interject, injectStatus, injectionHistory }, t: t }) }));\n}\n","/** The tab kind this plugin owns — the name openTab and the guide dispatch by. */\nexport const PROMPT_TEMPLATES_KIND = 'promptTemplates';\n/**\n * This implementation's identity in the tab system, and the key its body\n * registers under in the 'sidebar.right.pane.tab' seat (a package name is\n * the natural value, exactly as the builtin files tab does).\n */\nexport const PROMPT_TEMPLATES_ID = '@nelsonlongxiang/dsh-prompt-templates';\n/** Guide entry identity within this provider. */\nconst GUIDE_ENTRY_ID = 'prompt-templates';\n/**\n * The prompt-templates type's registry definition.\n * @param t - namespace-bound translate, read fresh on every label call\n * (a language change needs no re-registration).\n * @returns the definition to register.\n */\nexport function promptTemplatesTabDefinition(t) {\n return {\n id: PROMPT_TEMPLATES_ID,\n kind: PROMPT_TEMPLATES_KIND,\n // A page type: no patterns, opened by kind, recognizes no address.\n // Omitted priority defaults to 'extension' — correct for a type from\n // outside the product, and the band that outranks builtin viewers.\n title: () => t('tab.title'),\n guide: [{\n id: GUIDE_ENTRY_ID,\n order: 20,\n title: () => t('tab.guideTitle'),\n description: () => t('tab.guideDescription'),\n }],\n };\n}\n","/**\n * Panel store owned by the shell.overlay entry: the open flag plus the\n * ever-opened marker. The composer button reaches the same state through\n * ctx.promptPanel (the controller holds the entry's bound actions); inserts\n * go through the controller's session-input path, never this store. The\n * ever-opened marker lets the settings-driven default-open apply exactly\n * once: any manual toggle or open marks the panel user-owned, so a late\n * settings load can never reopen what the user closed.\n *\n * Module level exports the factory only (de-facto singleton prohibition —\n * see ui-layout's store).\n */\nimport { defineStore } from '@deepseek-ai/dsh-client-store';\n/**\n * Complete write set for the panel.\n * @returns the store handle (spec + type + identity + factory in one).\n */\nexport function createPromptPanelStore() {\n const handle = defineStore({\n init: () => ({ open: false, everOpened: false }),\n actions: {\n toggle: (d) => {\n d.everOpened = true;\n d.open = !d.open;\n },\n open: (d) => {\n d.everOpened = true;\n d.open = true;\n },\n close: (d) => {\n d.everOpened = true;\n d.open = false;\n },\n // One-shot settings-driven default open: a no-op once the user has\n // ever touched the panel (either direction).\n openOnce: (d) => {\n if (d.everOpened)\n return;\n d.everOpened = true;\n d.open = true;\n },\n },\n });\n return handle;\n}\n/** Complete write set for the persisted preferences. */\nexport function createPromptPanelPrefsStore() {\n return defineStore({\n persist: 'prompt-templates.panel',\n init: () => ({ defaultOpen: false, panel: null }),\n actions: {\n setPosition: (d, x, y) => { d.panel = { x: Math.round(x), y: Math.round(y) }; },\n resetPosition: (d) => { d.panel = null; },\n },\n });\n}\n","/**\n * Template-variable expansion, shared by the host scheduled-injection path\n * and the composer delivery verbs (insert / send / interject). Client-safe:\n * no host-only imports, so the browser tsconfig project bundles it too.\n *\n * Semantics: a variable expands ONLY when its value is available in the\n * delivery context; unavailable and unknown placeholders stay literal, so\n * the user sees what did not resolve instead of a silent deletion. Storage\n * always keeps the raw template — expansion is a delivery-time concern.\n * @module dsh-prompt-templates/variables\n */\n/** Variable names the expander understands (the advertised set). */\nexport const TEMPLATE_VARIABLES = ['date', 'time', 'datetime', 'weekday', 'session', 'turn'];\n/** The placeholder namespace: a double-brace name with optional inner spacing. */\nconst PATTERN = /\\{\\{\\s*(date|time|datetime|weekday|session|turn)\\s*\\}\\}/g;\nconst WEEKDAYS = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];\nfunction pad(value) {\n return String(value).padStart(2, '0');\n}\n/** Expand every resolvable placeholder in the content; the rest passes through. */\nexport function expandTemplateVariables(content, context) {\n const now = context.now ?? new Date();\n const date = now.getFullYear() + '-' + pad(now.getMonth() + 1) + '-' + pad(now.getDate());\n const clock = pad(now.getHours()) + ':' + pad(now.getMinutes());\n return content.replace(PATTERN, (match, name) => {\n switch (name) {\n case 'date': return date;\n case 'time': return clock;\n case 'datetime': return date + ' ' + clock;\n case 'weekday': return WEEKDAYS[now.getDay()] ?? match;\n case 'session': return context.sessionId ?? match;\n case 'turn': return context.turn !== undefined ? String(context.turn) : match;\n default: return match;\n }\n });\n}\n","import { expandTemplateVariables } from \"../variables.js\";\n/**\n * Cross-entry panel face (ctx.promptPanel).\n */\nexport class PromptPanelController {\n #actions;\n #sessions;\n #conversation;\n #pendingAutoOpen = false;\n /** Session whose composer entry last opened the panel (delivery target). */\n #targetSession;\n /** Bumped every time the delivery target changes; drives the open panel's re-render. */\n #targetVersion = 0;\n #targetListeners = new Set();\n /**\n * Adopt the shell.overlay entry's bound store actions. Called from that\n * registration's inject hook; a re-register overwrites the stale set. A\n * default-open that arrived before the entry's first render is applied\n * here, once wiring exists.\n * @param actions - bound actions of the panel store instance.\n */\n attach(actions) {\n this.#actions = actions;\n if (this.#pendingAutoOpen) {\n this.#pendingAutoOpen = false;\n actions.openOnce();\n }\n }\n /**\n * Bind the session-scope resolution services needed for inserts.\n * @param deps - sessions and conversation services from the plugin closure.\n */\n bind(deps) {\n this.#sessions = deps.sessions;\n this.#conversation = deps.conversation;\n }\n /** Flip the panel open/closed. */\n toggle() {\n this.#require().toggle();\n }\n /**\n * Record the panel's delivery target. Called by the session-scoped\n * composer entry when its session becomes the visible one (mount or\n * session change) and again at click time, so the target always follows\n * the conversation the user is looking at — switching sessions must not\n * leave the panel pointed at a detached composer whose scope (and\n * send/insert path) has gone away.\n */\n setTargetSession(sessionId) {\n if (this.#targetSession === sessionId)\n return;\n this.#targetSession = sessionId;\n this.#targetVersion += 1;\n for (const notify of this.#targetListeners)\n notify();\n }\n /** The session whose composer last opened the panel, if any. */\n targetSession() {\n return this.#targetSession;\n }\n /** Monotonic change counter of the delivery target (snapshot for useSyncExternalStore). */\n targetVersion() {\n return this.#targetVersion;\n }\n /** Subscribe to delivery-target changes; returns the unsubscribe function. */\n subscribeTarget(notify) {\n this.#targetListeners.add(notify);\n return () => { this.#targetListeners.delete(notify); };\n }\n /**\n * Apply the settings-driven default open, at most once per store lifetime\n * and never after any user interaction with the panel. Before the entry's\n * first render the request parks as pending and attach() replays it.\n */\n openOnce() {\n if (this.#actions === undefined) {\n this.#pendingAutoOpen = true;\n return;\n }\n this.#actions.openOnce();\n }\n /**\n * Insert one template's content into a session's composer draft at the\n * live caret position (selection, when a range is selected, is replaced).\n * The caret path goes through the input face's provide-channel pair —\n * capture the caret span with its draft revision, then apply through the\n * face so the editor lands it as one undoable edit. The pair declines on\n * a stale revision or a locked admission transaction (submitting /\n * adjudicating), and older runtimes without the channel simply lack the\n * member; both fall back to an end-append over the draft snapshot (empty\n * draft takes the content verbatim, non-empty joins with a newline).\n * @param sessionId - target session.\n * @param content - template content.\n */\n insert(sessionId, content) {\n const input = this.#inputOf(sessionId);\n if (input === undefined)\n return;\n const text = expandTemplateVariables(content, { sessionId });\n const actions = input.actions;\n if (actions !== undefined) {\n try {\n const span = actions.captureInsertion();\n if (span !== undefined && actions.insertText(text, span))\n return;\n }\n catch {\n // The channel is best-effort; the append path below always works.\n }\n }\n const draft = input.state.getSnapshot().draft;\n input.setDraft(draft === '' ? text : `${draft}\\n${text}`);\n }\n /**\n * Interject one template: steer it into the running agent turn. With\n * steer mode the content interrupts the current turn at its next step\n * (the same delivery as Cmd/Ctrl+Enter插话发送), rather than queuing\n * after it. The user's own draft is left untouched.\n * @param sessionId - target session.\n * @param content - template content.\n */\n interject(sessionId, content) {\n const input = this.#inputOf(sessionId);\n if (input === undefined)\n return;\n input.setDraft(expandTemplateVariables(content, { sessionId }));\n input.submit('steer');\n }\n /**\n * Fill the draft with one template's content and submit it immediately —\n * the same transaction as typing the text and pressing send.\n * @param sessionId - target session.\n * @param content - template content.\n */\n send(sessionId, content) {\n const input = this.#inputOf(sessionId);\n if (input === undefined)\n return;\n input.setDraft(expandTemplateVariables(content, { sessionId }));\n input.submit();\n }\n /** Resolve a session's input facade, or undefined when out of reach. */\n #inputOf(sessionId) {\n const sessions = this.#sessions;\n const conversation = this.#conversation;\n if (sessions === undefined || conversation === undefined)\n return undefined;\n const actx = sessions.scope(sessionId);\n if (actx === undefined)\n return undefined;\n return conversation.input.for(actx);\n }\n #require() {\n if (this.#actions === undefined) {\n throw new Error('prompt-panel: panel actions not wired (shell.overlay entry not mounted)');\n }\n return this.#actions;\n }\n}\n","/** Locale keys for the prompt-templates surface. */\n/** Chinese dictionary. */\nexport const zh = {\n 'panel.title': '快捷提示词',\n 'panel.dragHint': '拖动移动,双击复位',\n 'panel.sendNow': '直接发送',\n 'panel.open': '打开提示词面板',\n 'panel.close': '关闭提示词面板',\n 'panel.empty': '暂无模板',\n 'panel.search': '搜索全部模板…',\n 'panel.searchCount': '匹配数 / 可搜索总数',\n 'panel.tabCount': '当前分类模板数',\n 'panel.injectedAt': '定时注入至轮次',\n 'panel.historyTitle': '最近定时注入',\n 'panel.historyEmpty': '本次启动后还没有定时注入',\n 'panel.github': '在 GitHub 查看源码',\n 'panel.noMatch': '没有匹配的模板',\n 'panel.global': '全局模板',\n 'panel.session': '会话模板',\n 'panel.add': '新增',\n 'panel.addName': '模板名称',\n 'panel.addContent': '模板内容',\n 'panel.addSave': '保存',\n 'panel.addCancel': '取消',\n 'panel.insert': '插入',\n 'panel.interject': '插话打断',\n 'panel.newCategory': '新增分类',\n 'panel.categoryName': '分类名称',\n 'panel.categoryNone': '不设分类',\n 'panel.category': '分类',\n 'panel.deleteCategory': '删除分类',\n 'panel.delete': '删除',\n 'panel.edit': '编辑',\n 'panel.makeGlobal': '设为全局',\n 'panel.inject': '定时注入',\n 'panel.injectEvery': '注入间隔(轮)',\n 'panel.variablesHint': '支持变量:{{date}} {{time}} {{datetime}} {{weekday}} {{session}} {{turn}}(发送/注入时展开,不可得时保留原文)',\n 'panel.share': '分享',\n 'panel.shareCategory': '分享此分类(含全部模板)',\n 'panel.shareCopied': '已复制分享内容,粘贴到目标实例的导入框即可',\n 'panel.shareFailed': '复制失败(剪贴板不可用)',\n 'panel.shareEmpty': '此分类暂无模板,没有可分享内容',\n 'panel.import': '导入',\n 'panel.importPlaceholder': '粘贴分享 JSON…',\n 'panel.importRun': '执行导入',\n 'panel.importCancel': '取消',\n 'panel.importBad': '分享内容无法识别',\n 'panel.overwriteRisk': '存在同名模板,是否覆盖?将更新现有模板条数:',\n 'panel.importDone': '导入完成(新建/覆盖/跳过):',\n 'panel.modeLabel': '注入呈现方式',\n 'panel.modeInject': '静默注入',\n 'panel.modeVisible': '对话流可见',\n 'panel.modeHint': '静默:只进模型上下文(对话流不显示,基座设计);可见:以用户消息样式显示在对话流中,带\"⚙️ 定时注入\"标记',\n 'panel.error': '操作失败',\n 'panel.inserted': '已插入',\n 'panel.none': '无',\n 'tab.title': '提示词',\n 'tab.guideTitle': '提示词模板',\n 'tab.guideDescription': '模板库:插入、发送、定时注入',\n};\n/** English dictionary. */\nexport const en = {\n 'panel.title': 'Quick prompts',\n 'panel.dragHint': 'Drag to move, double-click to reset',\n 'panel.sendNow': 'Send now',\n 'panel.open': 'Open prompt panel',\n 'panel.close': 'Close prompt panel',\n 'panel.empty': 'No templates yet',\n 'panel.search': 'Search all templates…',\n 'panel.searchCount': 'Matches / total searchable',\n 'panel.tabCount': 'Templates in current tab',\n 'panel.injectedAt': 'Scheduled injection at turn',\n 'panel.historyTitle': 'Recent injections',\n 'panel.historyEmpty': 'No scheduled injections since boot',\n 'panel.github': 'View source on GitHub',\n 'panel.noMatch': 'No matching templates',\n 'panel.global': 'Global templates',\n 'panel.session': 'Session templates',\n 'panel.add': 'Add',\n 'panel.addName': 'Template name',\n 'panel.addContent': 'Template content',\n 'panel.addSave': 'Save',\n 'panel.addCancel': 'Cancel',\n 'panel.insert': 'Insert',\n 'panel.interject': 'Interject (steer)',\n 'panel.newCategory': 'New category',\n 'panel.categoryName': 'Category name',\n 'panel.categoryNone': 'No category',\n 'panel.category': 'Category',\n 'panel.deleteCategory': 'Delete category',\n 'panel.delete': 'Delete',\n 'panel.edit': 'Edit',\n 'panel.makeGlobal': 'Make global',\n 'panel.inject': 'Auto-inject',\n 'panel.injectEvery': 'Every (rounds)',\n 'panel.variablesHint': 'Variables: {{date}} {{time}} {{datetime}} {{weekday}} {{session}} {{turn}} (expanded at delivery; unresolved stay literal)',\n 'panel.share': 'Share',\n 'panel.shareCategory': 'Share this category (all templates)',\n 'panel.shareCopied': 'Share payload copied — paste it into the target instance import box',\n 'panel.shareFailed': 'Copy failed (clipboard unavailable)',\n 'panel.shareEmpty': 'This category has no templates to share',\n 'panel.import': 'Import',\n 'panel.importPlaceholder': 'Paste share JSON…',\n 'panel.importRun': 'Import',\n 'panel.importCancel': 'Cancel',\n 'panel.importBad': 'Unrecognized share payload',\n 'panel.overwriteRisk': 'Same-name templates exist. Overwrite? Rows to update:',\n 'panel.importDone': 'Import done (created/overwritten/skipped):',\n 'panel.modeLabel': 'Injection delivery',\n 'panel.modeInject': 'Silent (model-only)',\n 'panel.modeVisible': 'Visible in chat',\n 'panel.modeHint': 'Silent: model context only (omitted from the chat transcript by base design); Visible: rendered as a user message in the chat flow, headed by a ⚙️ scheduled-injection marker',\n 'panel.error': 'Operation failed',\n 'panel.inserted': 'Inserted',\n 'panel.none': 'None',\n 'tab.title': 'Prompts',\n 'tab.guideTitle': 'Prompt templates',\n 'tab.guideDescription': 'Template library: insert, send, auto-inject',\n};\n","import { listTemplates, listCategories, injectStatus, injectionHistory, createCategory, deleteCategory, createTemplate, updateTemplate, deleteTemplate, makeTemplateGlobal, } from \"./api.js\";\nimport { PromptPanel } from \"./Panel.js\";\nimport { PanelButton } from \"./PanelButton.js\";\nimport { PromptTab } from \"./PromptTab.js\";\nimport { PROMPT_TEMPLATES_ID, promptTemplatesTabDefinition } from \"./tab.js\";\nimport { createPromptPanelStore } from \"./store.js\";\nimport { PromptPanelController } from \"./service.js\";\nimport { en, zh } from \"./locales.js\";\nexport { PromptPanel } from \"./Panel.js\";\nexport { PanelButton } from \"./PanelButton.js\";\nexport { PromptTab } from \"./PromptTab.js\";\nexport { PROMPT_TEMPLATES_KIND, PROMPT_TEMPLATES_ID, promptTemplatesTabDefinition } from \"./tab.js\";\nexport { PromptPanelController } from \"./service.js\";\n/** Dictionary namespace owned by this plugin. */\nconst NS = 'promptTemplates';\n/** Required services: slots, sessions, locale, conversation, and settings scope. */\nexport const inject = ['slots', 'sessions', 'locale', 'conversation'];\n/** The promptTemplates settings section (registered host-side; optional). */\n/**\n * Client plugin body: the shell.overlay panel owns the store; the controller\n * bridges its actions to the composer entry and performs inserts.\n * @param ctx - client root context.\n */\nexport function apply(ctx) {\n ctx.effect(() => ctx.locale.register(NS, { zh, en }), 'ui-prompt-templates: dictionaries');\n const controller = new PromptPanelController();\n controller.bind({ sessions: ctx.sessions, conversation: ctx.conversation });\n ctx.effect(() => ctx.reflect.provide('promptPanel', controller), 'ui-prompt-templates: panel service');\n // The library verbs, created exactly once and shared by BOTH surfaces:\n // the floating panel face and the sidebar tab body. The `refresh`\n // identity feeds the load-effect dependency arrays, so a fresh object per\n // inject evaluation would loop the effects. refresh pulls EVERYTHING and\n // the component groups rows — a server-side session_id filter would hide\n // the global rows (their session_id is NULL and never matches).\n const verbs = {\n refresh: listTemplates,\n refreshCategories: listCategories,\n createCategory: (request) => {\n return createCategory(request);\n },\n removeCategory: (name, scope, sessionId) => {\n return deleteCategory(name, scope, sessionId);\n },\n create: (request) => {\n return createTemplate(request);\n },\n update: (id, request) => {\n return updateTemplate(id, request);\n },\n remove: (id) => {\n return deleteTemplate(id);\n },\n makeGlobal: (id) => {\n return makeTemplateGlobal(id);\n },\n insert: (sessionId, content) => {\n controller.insert(sessionId, content);\n },\n send: (sessionId, content) => {\n controller.send(sessionId, content);\n },\n interject: (sessionId, content) => {\n controller.interject(sessionId, content);\n },\n injectStatus,\n injectionHistory,\n };\n // Persisted prefs binding, filled by the overlay seat's inject (the seat\n // owns the store instance; the face reads through these closures).\n let prefsActions;\n let prefsSnapshot;\n const panelFace = {\n ...verbs,\n targetSession: () => controller.targetSession() ?? null,\n targetVersion: () => controller.targetVersion(),\n subscribeTarget: (notify) => controller.subscribeTarget(notify),\n panelPosition: () => prefsSnapshot?.().panel ?? null,\n savePanelPosition: (position) => {\n prefsActions?.setPosition(position.x, position.y);\n },\n resetPanelPosition: () => {\n prefsActions?.resetPosition();\n },\n };\n // The shell.overlay entry: root scope, owns the panel store; the inject\n // hook hands the bound actions to the controller and the shared face.\n ctx.slots.inject('shell.overlay', () => ctx.slots.register({\n name: 'shell.overlay',\n id: 'prompt-templates',\n order: 10,\n locale: NS,\n store: createPromptPanelStore,\n inject: (actions, store) => {\n // attach is a side effect on the controller; the face is the data verbs.\n controller.attach(actions);\n if (store !== undefined) {\n const s = store;\n prefsActions = s.actions;\n prefsSnapshot = () => s.getSnapshot();\n }\n return panelFace;\n },\n }, PromptPanel));\n // The composer entry: session scope, attaches the panel to this composer's\n // session at click time and toggles it via the controller.\n ctx.slots.inject('conversation.input.right', () => ctx.slots.register({\n name: 'conversation.input.right',\n id: 'prompt-templates',\n order: 10,\n locale: NS,\n inject: () => ({\n toggle: () => { controller.toggle(); },\n attachSession: (sessionId) => { controller.setTargetSession(sessionId); },\n }),\n }, PanelButton));\n // The right-sidebar tab: a page type (opened by kind from the guide '+'\n // picker) whose body lands in the session-scoped\n // 'sidebar.right.pane.tab' seat under the definition's own id — the\n // body's standard props carry the sessionId of the session the sidebar\n // is viewing, so no composer attachment is needed. Optional injection:\n // on a base without the sidebar services the whole block (type AND\n // body) simply never activates, and the floating panel keeps working.\n ctx.inject(['sidebarRightTabs'], (ctx) => {\n const t = ctx.locale.bind(NS);\n ctx.effect(() => ctx.sidebarRightTabs.register(promptTemplatesTabDefinition(t)), 'ui-prompt-templates: sidebar tab type');\n ctx.slots.inject('sidebar.right.pane.tab', () => ctx.slots.register({\n name: 'sidebar.right.pane.tab',\n key: PROMPT_TEMPLATES_ID,\n locale: NS,\n inject: () => verbs,\n }, PromptTab));\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;EAMA,MAAM,OAAO;;EAEb,eAAsB,gBAAgB;GAClC,MAAM,WAAW,MAAM,MAAM,GAAG,KAAK,aAAa,EAAE,OAAO,WAAW,CAAC;GACvE,IAAI,CAAC,SAAS,IACV,OAAO,CAAC;GAEZ,OAAO,CAAC,IAAG,MADQ,SAAS,KAAK,EAAA,CACjB,SAAS,CAAC,CAAC;EAC/B;;EAEA,eAAsB,aAAa,WAAW;GAC1C,MAAM,WAAW,MAAM,MAAM,GAAG,KAAK,4BAA4B,mBAAmB,SAAS,KAAK,EAAE,OAAO,WAAW,CAAC;GACvH,IAAI,CAAC,SAAS,IACV,OAAO;GAEX,QAAO,MADY,SAAS,KAAK,EAAA,CACrB,UAAU;EAC1B;;EAEA,eAAsB,iBAAiB,WAAW;GAC9C,MAAM,WAAW,MAAM,MAAM,GAAG,KAAK,4BAA4B,mBAAmB,SAAS,KAAK,EAAE,OAAO,WAAW,CAAC;GACvH,IAAI,CAAC,SA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AAQ;IACR,eAAe;KACX,cAAc;MAAE,WAAW,OAAO;KAAG;KACrC,gBAAgB,cAAc;MAAE,WAAW,iBAAiB,SAAS;KAAG;IAC5E;GACJ,GAAG,WAAW,CAAC;GAQf,IAAI,OAAO,CAAC,kBAAkB,IAAI,QAAQ;IACtC,MAAM,IAAI,IAAI,OAAO,KAAK,EAAE;IAC5B,IAAI,aAAa,IAAI,iBAAiB,SAAS,6BAA6B,CAAC,CAAC,GAAG,uCAAuC;IACxH,IAAI,MAAM,OAAO,gCAAgC,IAAI,MAAM,SAAS;KAChE,MAAM;KACN,KAAK;KACL,QAAQ;KACR,cAAc;IAClB,GAAG,SAAS,CAAC;GACjB,CAAC;EACL"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nelsonlongxiang/dsh-prompt-templates",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4",
|
|
4
4
|
"description": "Quick prompt templates for DeepSeek Harness: global and per-session templates, a browser panel, and a pure-TS node:sqlite persistence backend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|