@nite07/dsh-search 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +53 -2
- package/README.zh.md +54 -0
- package/cordis.patch.yml +4 -0
- package/dist/client.js +996 -0
- package/dist/index.js +968 -0
- package/dist/index.js.map +7 -0
- package/docs/BACKENDS.md +269 -0
- package/docs/PLAN.md +166 -0
- package/docs/VERIFICATION.md +73 -0
- package/icon.svg +1 -0
- package/locale/en.json +223 -0
- package/locale/zh.json +223 -0
- package/package.json +83 -4
package/locale/en.json
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Web search",
|
|
4
|
+
"description": "Multi-backend search with explicit anonymous or key access, cost tiers, bounded retries and complete Web settings. Backends start disabled; account-backed requests may incur charges."
|
|
5
|
+
},
|
|
6
|
+
"title": "Web search",
|
|
7
|
+
"intro": "{{enabled}} of {{total}} backends enabled. Choose explicit access modes, control request budgets, and inspect search activity.",
|
|
8
|
+
"loading": "Loading saved settings…",
|
|
9
|
+
"loadFailed": "Could not load settings. Reload to try again.",
|
|
10
|
+
"reload": "Reload settings",
|
|
11
|
+
"pending": "In progress…",
|
|
12
|
+
"unsaved": "You have unsaved changes.",
|
|
13
|
+
"upToDate": "All changes saved.",
|
|
14
|
+
"unsavedWithErrors": "Unsaved changes · {{errors}} validation problem(s)",
|
|
15
|
+
"saving": "Saving and confirming…",
|
|
16
|
+
"saved": "Settings saved and verified.",
|
|
17
|
+
"working": "Processing…",
|
|
18
|
+
"done": "Operation completed.",
|
|
19
|
+
"saveUnconfirmed": "Save could not be confirmed. Reload settings before saving again; do not assume the operation failed.",
|
|
20
|
+
"conflict": "Saved configuration differs from your draft. Review the latest state before saving again.",
|
|
21
|
+
"actionFailed": "The operation could not be confirmed. Search tests are never automatically replayed.",
|
|
22
|
+
"validationTitle": "Review these settings",
|
|
23
|
+
"invalidField": "Enter a valid value within the documented limits.",
|
|
24
|
+
"expectedRange": "Enter a whole number between {{min}} and {{max}}.",
|
|
25
|
+
"showField": "Show field",
|
|
26
|
+
"blockersTitle": "This configuration will not search yet",
|
|
27
|
+
"blockNoBackends": "No backend is enabled, so every search fails immediately.",
|
|
28
|
+
"blockSingleDisabled": "Single-backend mode points at {{backend}}, which is disabled.",
|
|
29
|
+
"blockMissingCredential": "Key mode without a stored credential: {{list}}.",
|
|
30
|
+
"fixIt": "Fix",
|
|
31
|
+
"general": "Search behavior",
|
|
32
|
+
"backends": "Search backends",
|
|
33
|
+
"enabledSummary": "{{enabled}}/{{total}} enabled",
|
|
34
|
+
"backendIntro": "Cost groups reflect the selected access mode. Modes are explicit: no automatic key selection, paid upgrade, or fallback.",
|
|
35
|
+
"searchBackends": "Find a backend",
|
|
36
|
+
"searchBackendsPlaceholder": "Name or id",
|
|
37
|
+
"filterBackends": "Show",
|
|
38
|
+
"filter.all": "All backends",
|
|
39
|
+
"filter.enabled": "Enabled only",
|
|
40
|
+
"filter.configured": "Credential stored",
|
|
41
|
+
"noMatch": "No backend matches this filter.",
|
|
42
|
+
"resilience": "Retries and circuit breaker",
|
|
43
|
+
"storage": "Cache and diagnostics",
|
|
44
|
+
"advancedOptions": "Advanced options",
|
|
45
|
+
"enabled": "Enabled",
|
|
46
|
+
"disabled": "Disabled",
|
|
47
|
+
"unverified": "Not verified",
|
|
48
|
+
"unverifiedHelp": "This backend has no verified API contract and cannot be enabled. An endpoint or credential does not make it supported.",
|
|
49
|
+
"anonymousNoCredential": "Anonymous mode sends no credential; stored keys are not read.",
|
|
50
|
+
"source": "Pricing and limits source",
|
|
51
|
+
"verifiedAt": "Checked",
|
|
52
|
+
"notVerified": "Not verified",
|
|
53
|
+
"noData": "No data",
|
|
54
|
+
"attemptsToday": "Attempts today",
|
|
55
|
+
"tier.free": "Free · no key",
|
|
56
|
+
"tier.allowance": "Free allowance · key required",
|
|
57
|
+
"tier.trial": "Trial credits",
|
|
58
|
+
"tier.paid": "Paid usage",
|
|
59
|
+
"tier.self-hosted": "Self-hosted",
|
|
60
|
+
"tier.unverified": "Contract unverified · cannot enable",
|
|
61
|
+
"credentialTitle": "Credential storage",
|
|
62
|
+
"credentialConfigured": "Credential configured",
|
|
63
|
+
"credentialMissing": "No credential configured",
|
|
64
|
+
"credentialHelp": "Secrets are write-only and are never returned to this page. Some references are read-only.",
|
|
65
|
+
"credentialValue": "New credential value",
|
|
66
|
+
"replaceCredential": "Replace credential",
|
|
67
|
+
"deleteCredential": "Delete credential",
|
|
68
|
+
"deleteCredentialConfirm": "Delete this saved credential? This cannot be undone.",
|
|
69
|
+
"saveBeforeCredential": "Save the configuration before changing credentials.",
|
|
70
|
+
"credentialSaved": "Credential change confirmed.",
|
|
71
|
+
"credentialFailed": "Credential change could not be confirmed. The input has been cleared; inspect the current state before trying again.",
|
|
72
|
+
"testTitle": "Test a saved backend",
|
|
73
|
+
"testHelp": "Each click sends one explicit test request using saved settings. Usage may be billed. Save changes first; failed tests are not automatically replayed by this page.",
|
|
74
|
+
"testBackend": "Backend",
|
|
75
|
+
"testQuery": "Search query",
|
|
76
|
+
"chooseBackend": "Choose an enabled backend",
|
|
77
|
+
"runTest": "Run search test",
|
|
78
|
+
"testNeedsBackend": "Save an enabled backend first; tests only use saved configuration.",
|
|
79
|
+
"testResult": "Test response",
|
|
80
|
+
"testFailure": "This backend failed",
|
|
81
|
+
"noSources": "No sources returned.",
|
|
82
|
+
"diagnosticsTitle": "Diagnostics",
|
|
83
|
+
"diagnosticsHelp": "Recent request outcomes. Clearing diagnostics does not reset daily attempt budgets.",
|
|
84
|
+
"clearCache": "Clear cache",
|
|
85
|
+
"clearDiagnostics": "Clear diagnostics",
|
|
86
|
+
"clearDiagnosticsConfirm": "Clear recent diagnostic records?",
|
|
87
|
+
"refreshDiagnostics": "Refresh diagnostics",
|
|
88
|
+
"noDiagnostics": "No recent search activity.",
|
|
89
|
+
"ok": "Succeeded",
|
|
90
|
+
"hasWarnings": "Has warnings",
|
|
91
|
+
"milliseconds": "ms",
|
|
92
|
+
"diagnostic.time": "Time",
|
|
93
|
+
"diagnostic.backend": "Backend",
|
|
94
|
+
"diagnostic.mode": "Access",
|
|
95
|
+
"diagnostic.result": "Outcome",
|
|
96
|
+
"diagnostic.attempts": "Attempts",
|
|
97
|
+
"diagnostic.duration": "Duration",
|
|
98
|
+
"diagnostic.reason": "Reason",
|
|
99
|
+
"diagnostic.message": "Detail",
|
|
100
|
+
"transferTitle": "Import, export and defaults",
|
|
101
|
+
"transferHelp": "Export removes endpoint query strings and sensitive option values. Credential references are retained, but saved secrets are never included. Review imported endpoints and references before saving.",
|
|
102
|
+
"export": "Export redacted JSON",
|
|
103
|
+
"import": "Import JSON",
|
|
104
|
+
"importLabel": "Configuration JSON",
|
|
105
|
+
"applyImport": "Validate and load draft",
|
|
106
|
+
"imported": "Imported into the draft. Review and save to apply.",
|
|
107
|
+
"importFailed": "Invalid JSON. Your current draft was kept.",
|
|
108
|
+
"restoreDefaults": "Restore defaults",
|
|
109
|
+
"defaultsConfirm": "Replace your draft with defaults? Nothing is saved until you choose Save.",
|
|
110
|
+
"defaultsRestored": "Defaults loaded into the draft. Save to apply.",
|
|
111
|
+
"discardConfirm": "Discard unsaved changes?",
|
|
112
|
+
"discard": "Discard draft",
|
|
113
|
+
"save": "Save settings",
|
|
114
|
+
"confirmYes": "Yes, continue",
|
|
115
|
+
"confirmCancel": "Cancel",
|
|
116
|
+
"choice.single": "Single backend",
|
|
117
|
+
"choice.parallel": "Parallel backends",
|
|
118
|
+
"choice.anonymous": "Anonymous",
|
|
119
|
+
"choice.key": "API key",
|
|
120
|
+
"choice.any": "Any time",
|
|
121
|
+
"choice.day": "Past day",
|
|
122
|
+
"choice.week": "Past week",
|
|
123
|
+
"choice.month": "Past month",
|
|
124
|
+
"choice.year": "Past year",
|
|
125
|
+
"choice.url": "URL",
|
|
126
|
+
"choice.url-title": "URL and title",
|
|
127
|
+
"choice.rrf": "Reciprocal rank fusion",
|
|
128
|
+
"choice.ordered": "Backend order",
|
|
129
|
+
"field.mode": "Search mode",
|
|
130
|
+
"help.mode": "Run a single selected backend or the explicitly enabled backends in parallel.",
|
|
131
|
+
"field.singleBackend": "Single backend",
|
|
132
|
+
"help.singleBackend": "Used only in single-backend mode; it must also be enabled.",
|
|
133
|
+
"field.maxResults": "Maximum results",
|
|
134
|
+
"help.maxResults": "Maximum merged sources returned to the caller.",
|
|
135
|
+
"field.concurrency": "Parallel concurrency",
|
|
136
|
+
"help.concurrency": "Maximum simultaneous backend requests.",
|
|
137
|
+
"field.overallTimeoutMs": "Overall timeout (ms)",
|
|
138
|
+
"help.overallTimeoutMs": "Deadline for the entire search, including retries.",
|
|
139
|
+
"field.language": "Language",
|
|
140
|
+
"help.language": "Chosen from a fixed list. Each backend receives its own spelling (Brave zh-hans, Serper zh-cn, SearXNG zh-CN); backends that ignore the field say so.",
|
|
141
|
+
"field.region": "Region",
|
|
142
|
+
"help.region": "Chosen from a fixed list of two-letter regions. Only backends that declare region support receive it, in their own format.",
|
|
143
|
+
"field.recency": "Publication recency",
|
|
144
|
+
"help.recency": "Applied where supported by the selected API.",
|
|
145
|
+
"field.safeSearch": "Safe search",
|
|
146
|
+
"help.safeSearch": "Request safer results where the backend supports it.",
|
|
147
|
+
"field.includeDomains": "Included domains",
|
|
148
|
+
"help.includeDomains": "Comma-separated domains; leave empty for no allowlist.",
|
|
149
|
+
"field.excludeDomains": "Excluded domains",
|
|
150
|
+
"help.excludeDomains": "Comma-separated domains to omit.",
|
|
151
|
+
"field.dedup": "Deduplication",
|
|
152
|
+
"help.dedup": "Merge duplicates by normalized URL, or URL and title.",
|
|
153
|
+
"field.fusion": "Result fusion",
|
|
154
|
+
"help.fusion": "Combine ranking by reciprocal rank or preserve backend order.",
|
|
155
|
+
"field.retry.enabled": "Enable configured retries",
|
|
156
|
+
"help.retry.enabled": "Configured HTTP retries can incur repeated charges. This page never replays a test action automatically.",
|
|
157
|
+
"field.retry.statuses": "Retry HTTP statuses",
|
|
158
|
+
"help.retry.statuses": "Only these response codes are retried, on the same backend and access mode.",
|
|
159
|
+
"field.retry.maxRetries": "Maximum retries",
|
|
160
|
+
"help.retry.maxRetries": "Additional attempts after the initial request.",
|
|
161
|
+
"field.retry.initialDelayMs": "Initial retry delay (ms)",
|
|
162
|
+
"help.retry.initialDelayMs": "Initial backoff delay.",
|
|
163
|
+
"field.retry.maxDelayMs": "Maximum retry delay (ms)",
|
|
164
|
+
"help.retry.maxDelayMs": "Upper bound on retry backoff.",
|
|
165
|
+
"field.retry.networkErrors": "Retry network errors",
|
|
166
|
+
"help.retry.networkErrors": "A failed response may still have incurred usage.",
|
|
167
|
+
"field.retry.timeouts": "Retry timeouts",
|
|
168
|
+
"help.retry.timeouts": "A timed-out request may still have incurred usage.",
|
|
169
|
+
"field.breaker.enabled": "Enable circuit breaker",
|
|
170
|
+
"help.breaker.enabled": "Temporarily pause a backend after repeated failures.",
|
|
171
|
+
"field.breaker.threshold": "Failure threshold",
|
|
172
|
+
"help.breaker.threshold": "Failures required to open the circuit.",
|
|
173
|
+
"field.breaker.cooldownMs": "Circuit cooldown (ms)",
|
|
174
|
+
"help.breaker.cooldownMs": "Time before a backend can be attempted again.",
|
|
175
|
+
"field.cache.enabled": "Enable result cache",
|
|
176
|
+
"help.cache.enabled": "Reuse matching search results within the configured lifetime.",
|
|
177
|
+
"field.cache.ttlSeconds": "Cache lifetime (seconds)",
|
|
178
|
+
"help.cache.ttlSeconds": "Maximum age of cached results.",
|
|
179
|
+
"field.cache.maxEntries": "Maximum cache entries",
|
|
180
|
+
"help.cache.maxEntries": "Bound the in-memory cache size.",
|
|
181
|
+
"field.diagnostics.enabled": "Enable diagnostics",
|
|
182
|
+
"help.diagnostics.enabled": "Keep bounded request outcome records.",
|
|
183
|
+
"field.diagnostics.maxEntries": "Maximum diagnostic records",
|
|
184
|
+
"help.diagnostics.maxEntries": "Limit the number of retained diagnostic records.",
|
|
185
|
+
"field.backend.enabled": "Enable backend",
|
|
186
|
+
"help.backend.enabled": "Only explicitly enabled, verified backends can execute searches.",
|
|
187
|
+
"field.backend.mode": "Access mode",
|
|
188
|
+
"help.backend.mode": "Choose a fixed anonymous or key mode. No automatic switching.",
|
|
189
|
+
"field.backend.endpoint": "Endpoint URL",
|
|
190
|
+
"help.backend.endpoint": "Use a trusted HTTPS endpoint, or a trusted local self-hosted endpoint. Never put secrets in the URL.",
|
|
191
|
+
"field.backend.credentialRef": "Credential reference",
|
|
192
|
+
"help.backend.credentialRef": "Reference only, not the secret value. Save this reference before managing its credential.",
|
|
193
|
+
"field.backend.timeoutMs": "Request timeout (ms)",
|
|
194
|
+
"help.backend.timeoutMs": "Deadline for each backend request.",
|
|
195
|
+
"field.backend.rateLimitPerMinute": "Attempts per minute",
|
|
196
|
+
"help.backend.rateLimitPerMinute": "Local attempt guard, not a provider billing guarantee.",
|
|
197
|
+
"field.backend.dailyAttemptLimit": "Daily attempt limit",
|
|
198
|
+
"help.backend.dailyAttemptLimit": "Local daily attempt budget; retries also consume attempts.",
|
|
199
|
+
"failure.configuration": "Invalid configuration",
|
|
200
|
+
"failure.authentication": "Authentication failed",
|
|
201
|
+
"failure.quota": "Provider quota exhausted",
|
|
202
|
+
"failure.rate-limit": "Rate limited",
|
|
203
|
+
"failure.http": "HTTP failure",
|
|
204
|
+
"failure.network": "Network failure",
|
|
205
|
+
"failure.timeout": "Timed out",
|
|
206
|
+
"failure.cancelled": "Cancelled",
|
|
207
|
+
"failure.protocol": "Unexpected response",
|
|
208
|
+
"failure.budget": "Local budget exhausted",
|
|
209
|
+
"failure.circuit-open": "Circuit open",
|
|
210
|
+
"failure.unverified": "Unverified backend",
|
|
211
|
+
"liveVerified": "Live-tested",
|
|
212
|
+
"tabsLabel": "Search settings sections",
|
|
213
|
+
"tab.behavior": "Search behavior",
|
|
214
|
+
"tab.reliability": "Reliability",
|
|
215
|
+
"tab.diagnostics": "Test & diagnostics",
|
|
216
|
+
"tab.backends": "Backends",
|
|
217
|
+
"testQueryPlaceholder": "What should this backend look for?",
|
|
218
|
+
"saveBeforeTest": "Save your changes before testing.",
|
|
219
|
+
"notSpecified": "Not specified",
|
|
220
|
+
"activeTitle": "This plugin is not the active search provider",
|
|
221
|
+
"activeOther": "The web seam currently selects “{{provider}}”. Searches keep going there until this plugin is selected.",
|
|
222
|
+
"activateSelf": "Use this plugin for web search"
|
|
223
|
+
}
|
package/locale/zh.json
ADDED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "网页搜索",
|
|
4
|
+
"description": "多后端搜索,固定选择匿名或密钥模式,提供费用分档、有限重试和完整 Web 设置。后端默认关闭,账户调用可能产生费用。"
|
|
5
|
+
},
|
|
6
|
+
"title": "网页搜索",
|
|
7
|
+
"intro": "已启用 {{enabled}}/{{total}} 个后端。明确选择访问模式,控制请求额度,查看搜索运行情况。",
|
|
8
|
+
"loading": "正在读取已保存设置…",
|
|
9
|
+
"loadFailed": "读取设置失败,请重新加载。",
|
|
10
|
+
"reload": "重新加载设置",
|
|
11
|
+
"pending": "处理中…",
|
|
12
|
+
"unsaved": "有未保存的更改。",
|
|
13
|
+
"upToDate": "所有更改已保存。",
|
|
14
|
+
"unsavedWithErrors": "有未保存的更改 · {{errors}} 处校验问题",
|
|
15
|
+
"saving": "正在保存并回读确认…",
|
|
16
|
+
"saved": "设置已保存并确认。",
|
|
17
|
+
"working": "正在处理…",
|
|
18
|
+
"done": "操作已完成。",
|
|
19
|
+
"saveUnconfirmed": "暂时无法确认保存结果。再次保存前请重新加载设置,不要直接认定操作失败。",
|
|
20
|
+
"conflict": "当前保存内容与草稿不同,请核对最新状态后再保存。",
|
|
21
|
+
"actionFailed": "无法确认操作结果。页面不会自动重新执行试搜。",
|
|
22
|
+
"validationTitle": "请检查以下设置",
|
|
23
|
+
"invalidField": "请按照说明填写有效值。",
|
|
24
|
+
"expectedRange": "请填写 {{min}} 到 {{max}} 之间的整数。",
|
|
25
|
+
"showField": "定位到该字段",
|
|
26
|
+
"blockersTitle": "这份配置目前无法搜索",
|
|
27
|
+
"blockNoBackends": "没有启用任何后端,任何搜索都会立即失败。",
|
|
28
|
+
"blockSingleDisabled": "单后端模式指向的「{{backend}}」尚未启用。",
|
|
29
|
+
"blockMissingCredential": "以下后端选了密钥模式但没有保存凭证:{{list}}。",
|
|
30
|
+
"fixIt": "去处理",
|
|
31
|
+
"general": "搜索行为",
|
|
32
|
+
"backends": "搜索后端",
|
|
33
|
+
"enabledSummary": "已启用 {{enabled}}/{{total}}",
|
|
34
|
+
"backendIntro": "费用分组随所选访问模式变化。匿名和密钥模式固定选择,不自动选密钥、不自动转付费,也不回退到其他后端。",
|
|
35
|
+
"searchBackends": "查找后端",
|
|
36
|
+
"searchBackendsPlaceholder": "名称或 id",
|
|
37
|
+
"filterBackends": "显示范围",
|
|
38
|
+
"filter.all": "全部后端",
|
|
39
|
+
"filter.enabled": "仅已启用",
|
|
40
|
+
"filter.configured": "已存凭证",
|
|
41
|
+
"noMatch": "没有符合筛选条件的后端。",
|
|
42
|
+
"resilience": "重试与熔断",
|
|
43
|
+
"storage": "缓存与诊断",
|
|
44
|
+
"advancedOptions": "高级选项",
|
|
45
|
+
"enabled": "已启用",
|
|
46
|
+
"disabled": "未启用",
|
|
47
|
+
"unverified": "未核实",
|
|
48
|
+
"unverifiedHelp": "尚未核实此后端的 API 契约,因此无法启用。仅填写端点或凭证并不代表已经支持。",
|
|
49
|
+
"anonymousNoCredential": "匿名模式不发送凭证,也不会读取已保存的密钥。",
|
|
50
|
+
"source": "价格与额度来源",
|
|
51
|
+
"verifiedAt": "核实日期",
|
|
52
|
+
"notVerified": "未核实",
|
|
53
|
+
"noData": "暂无数据",
|
|
54
|
+
"attemptsToday": "今日尝试次数",
|
|
55
|
+
"tier.free": "免费 · 无需密钥",
|
|
56
|
+
"tier.allowance": "免费额度 · 需要密钥",
|
|
57
|
+
"tier.trial": "试用额度",
|
|
58
|
+
"tier.paid": "付费用量",
|
|
59
|
+
"tier.self-hosted": "自托管",
|
|
60
|
+
"tier.unverified": "协议未核实 · 不可启用",
|
|
61
|
+
"credentialTitle": "凭证存储",
|
|
62
|
+
"credentialConfigured": "已配置凭证",
|
|
63
|
+
"credentialMissing": "未配置凭证",
|
|
64
|
+
"credentialHelp": "凭证仅可写入,不会回显。部分凭证引用只允许读取。",
|
|
65
|
+
"credentialValue": "新的凭证值",
|
|
66
|
+
"replaceCredential": "替换凭证",
|
|
67
|
+
"deleteCredential": "删除凭证",
|
|
68
|
+
"deleteCredentialConfirm": "确定删除已保存的凭证?此操作无法撤销。",
|
|
69
|
+
"saveBeforeCredential": "请先保存配置,再修改凭证。",
|
|
70
|
+
"credentialSaved": "凭证更改已确认。",
|
|
71
|
+
"credentialFailed": "无法确认凭证更改结果,输入内容已清空。请先核对当前状态,再决定是否重新操作。",
|
|
72
|
+
"testTitle": "测试已保存的后端",
|
|
73
|
+
"testHelp": "每次点击明确发起一次试搜,使用已保存的配置,可能产生费用。请先保存更改;页面不会自动重新执行失败的试搜。",
|
|
74
|
+
"testBackend": "搜索后端",
|
|
75
|
+
"testQuery": "搜索词",
|
|
76
|
+
"chooseBackend": "选择已启用的后端",
|
|
77
|
+
"runTest": "执行试搜",
|
|
78
|
+
"testNeedsBackend": "请先保存并启用一个后端;试搜只使用已保存的配置。",
|
|
79
|
+
"testResult": "试搜结果",
|
|
80
|
+
"testFailure": "此后端调用失败",
|
|
81
|
+
"noSources": "没有返回任何来源。",
|
|
82
|
+
"diagnosticsTitle": "诊断",
|
|
83
|
+
"diagnosticsHelp": "查看近期请求结果。清除诊断不会重置每日尝试额度。",
|
|
84
|
+
"clearCache": "清除缓存",
|
|
85
|
+
"clearDiagnostics": "清除诊断",
|
|
86
|
+
"clearDiagnosticsConfirm": "确定清除近期诊断记录?",
|
|
87
|
+
"refreshDiagnostics": "刷新诊断",
|
|
88
|
+
"noDiagnostics": "暂无近期搜索记录。",
|
|
89
|
+
"ok": "成功",
|
|
90
|
+
"hasWarnings": "有警告",
|
|
91
|
+
"milliseconds": "毫秒",
|
|
92
|
+
"diagnostic.time": "时间",
|
|
93
|
+
"diagnostic.backend": "后端",
|
|
94
|
+
"diagnostic.mode": "访问模式",
|
|
95
|
+
"diagnostic.result": "结果",
|
|
96
|
+
"diagnostic.attempts": "尝试次数",
|
|
97
|
+
"diagnostic.duration": "耗时",
|
|
98
|
+
"diagnostic.reason": "原因",
|
|
99
|
+
"diagnostic.message": "详情",
|
|
100
|
+
"transferTitle": "导入、导出与默认值",
|
|
101
|
+
"transferHelp": "导出会移除端点查询参数和敏感选项值,保留凭证引用,但不包含已保存的密钥。保存导入内容前,请检查端点与凭证引用。",
|
|
102
|
+
"export": "导出脱敏 JSON",
|
|
103
|
+
"import": "导入 JSON",
|
|
104
|
+
"importLabel": "配置 JSON",
|
|
105
|
+
"applyImport": "校验并载入草稿",
|
|
106
|
+
"imported": "已导入草稿,请检查后保存。",
|
|
107
|
+
"importFailed": "JSON 格式无效,当前草稿未更改。",
|
|
108
|
+
"restoreDefaults": "恢复默认值",
|
|
109
|
+
"defaultsConfirm": "将草稿替换为默认值?点击保存前不会生效。",
|
|
110
|
+
"defaultsRestored": "默认值已载入草稿,保存后生效。",
|
|
111
|
+
"discardConfirm": "确定放弃未保存的更改?",
|
|
112
|
+
"discard": "放弃草稿",
|
|
113
|
+
"save": "保存设置",
|
|
114
|
+
"confirmYes": "确定继续",
|
|
115
|
+
"confirmCancel": "取消",
|
|
116
|
+
"choice.single": "单后端",
|
|
117
|
+
"choice.parallel": "并行后端",
|
|
118
|
+
"choice.anonymous": "匿名",
|
|
119
|
+
"choice.key": "API 密钥",
|
|
120
|
+
"choice.any": "不限时间",
|
|
121
|
+
"choice.day": "最近一天",
|
|
122
|
+
"choice.week": "最近一周",
|
|
123
|
+
"choice.month": "最近一个月",
|
|
124
|
+
"choice.year": "最近一年",
|
|
125
|
+
"choice.url": "按 URL",
|
|
126
|
+
"choice.url-title": "按 URL 和标题",
|
|
127
|
+
"choice.rrf": "倒数排名融合",
|
|
128
|
+
"choice.ordered": "后端顺序",
|
|
129
|
+
"field.mode": "搜索模式",
|
|
130
|
+
"help.mode": "只请求所选的单个后端,或并行请求明确启用的后端。",
|
|
131
|
+
"field.singleBackend": "单后端选择",
|
|
132
|
+
"help.singleBackend": "仅用于单后端模式,所选后端也必须启用。",
|
|
133
|
+
"field.maxResults": "最大结果数",
|
|
134
|
+
"help.maxResults": "合并后返回的来源数量上限。",
|
|
135
|
+
"field.concurrency": "并行数量",
|
|
136
|
+
"help.concurrency": "允许同时请求的后端数量上限。",
|
|
137
|
+
"field.overallTimeoutMs": "总超时(毫秒)",
|
|
138
|
+
"help.overallTimeoutMs": "包含重试在内的整次搜索时间上限。",
|
|
139
|
+
"field.language": "语言",
|
|
140
|
+
"help.language": "从固定列表中选择。各后端会收到自己要求的写法(Brave 用 zh-hans、Serper 用 zh-cn、SearXNG 用 zh-CN);不支持该参数的后端会给出提示。",
|
|
141
|
+
"field.region": "地区",
|
|
142
|
+
"help.region": "从固定的两位地区列表中选择。只有声明支持地区的后端才会收到,并按其要求的大小写转换。",
|
|
143
|
+
"field.recency": "发布时间范围",
|
|
144
|
+
"help.recency": "所选 API 支持时才会应用。",
|
|
145
|
+
"field.safeSearch": "安全搜索",
|
|
146
|
+
"help.safeSearch": "后端支持时,请求过滤敏感内容。",
|
|
147
|
+
"field.includeDomains": "包含的域名",
|
|
148
|
+
"help.includeDomains": "用英文逗号分隔,留空表示不设允许列表。",
|
|
149
|
+
"field.excludeDomains": "排除的域名",
|
|
150
|
+
"help.excludeDomains": "用英文逗号分隔不希望出现的域名。",
|
|
151
|
+
"field.dedup": "结果去重",
|
|
152
|
+
"help.dedup": "按规范化 URL,或按 URL 和标题合并重复结果。",
|
|
153
|
+
"field.fusion": "结果融合",
|
|
154
|
+
"help.fusion": "按倒数排名合并,或保留后端顺序。",
|
|
155
|
+
"field.retry.enabled": "启用配置的重试",
|
|
156
|
+
"help.retry.enabled": "配置的 HTTP 重试可能导致重复计费。页面不会自动重新执行试搜操作。",
|
|
157
|
+
"field.retry.statuses": "允许重试的 HTTP 状态码",
|
|
158
|
+
"help.retry.statuses": "只有这些响应码会在同一个后端、同一个访问模式下重试。",
|
|
159
|
+
"field.retry.maxRetries": "最大重试次数",
|
|
160
|
+
"help.retry.maxRetries": "首次请求之外的额外尝试次数。",
|
|
161
|
+
"field.retry.initialDelayMs": "初始重试延迟(毫秒)",
|
|
162
|
+
"help.retry.initialDelayMs": "退避等待的初始时长。",
|
|
163
|
+
"field.retry.maxDelayMs": "最大重试延迟(毫秒)",
|
|
164
|
+
"help.retry.maxDelayMs": "退避等待的时长上限。",
|
|
165
|
+
"field.retry.networkErrors": "重试网络错误",
|
|
166
|
+
"help.retry.networkErrors": "没有收到响应的请求仍可能产生费用。",
|
|
167
|
+
"field.retry.timeouts": "重试超时请求",
|
|
168
|
+
"help.retry.timeouts": "超时的请求仍可能产生费用。",
|
|
169
|
+
"field.breaker.enabled": "启用熔断",
|
|
170
|
+
"help.breaker.enabled": "后端连续失败后暂时停止请求。",
|
|
171
|
+
"field.breaker.threshold": "失败阈值",
|
|
172
|
+
"help.breaker.threshold": "触发熔断所需的失败次数。",
|
|
173
|
+
"field.breaker.cooldownMs": "熔断冷却(毫秒)",
|
|
174
|
+
"help.breaker.cooldownMs": "再次允许请求该后端前的等待时间。",
|
|
175
|
+
"field.cache.enabled": "启用结果缓存",
|
|
176
|
+
"help.cache.enabled": "在有效期内复用相同搜索的结果。",
|
|
177
|
+
"field.cache.ttlSeconds": "缓存有效期(秒)",
|
|
178
|
+
"help.cache.ttlSeconds": "缓存结果允许保留的最长时间。",
|
|
179
|
+
"field.cache.maxEntries": "最大缓存条数",
|
|
180
|
+
"help.cache.maxEntries": "限制内存缓存的条目数量。",
|
|
181
|
+
"field.diagnostics.enabled": "启用诊断",
|
|
182
|
+
"help.diagnostics.enabled": "保留数量受限的请求结果记录。",
|
|
183
|
+
"field.diagnostics.maxEntries": "最大诊断条数",
|
|
184
|
+
"help.diagnostics.maxEntries": "限制保留的诊断记录数量。",
|
|
185
|
+
"field.backend.enabled": "启用后端",
|
|
186
|
+
"help.backend.enabled": "只有明确启用且已核实的后端才能执行搜索。",
|
|
187
|
+
"field.backend.mode": "访问模式",
|
|
188
|
+
"help.backend.mode": "固定使用匿名或密钥模式,不自动切换。",
|
|
189
|
+
"field.backend.endpoint": "端点 URL",
|
|
190
|
+
"help.backend.endpoint": "仅使用可信的 HTTPS 或本地自托管端点,不要在 URL 中填写密钥。",
|
|
191
|
+
"field.backend.credentialRef": "凭证引用",
|
|
192
|
+
"help.backend.credentialRef": "填写引用而非密钥本身。请先保存引用,再管理对应的凭证。",
|
|
193
|
+
"field.backend.timeoutMs": "请求超时(毫秒)",
|
|
194
|
+
"help.backend.timeoutMs": "每次后端请求的时间上限。",
|
|
195
|
+
"field.backend.rateLimitPerMinute": "每分钟尝试上限",
|
|
196
|
+
"help.backend.rateLimitPerMinute": "本地请求保护,不代表服务商账单上限。",
|
|
197
|
+
"field.backend.dailyAttemptLimit": "每日尝试上限",
|
|
198
|
+
"help.backend.dailyAttemptLimit": "本地每日尝试额度,重试也会消耗次数。",
|
|
199
|
+
"failure.configuration": "配置无效",
|
|
200
|
+
"failure.authentication": "认证失败",
|
|
201
|
+
"failure.quota": "服务商额度耗尽",
|
|
202
|
+
"failure.rate-limit": "请求限流",
|
|
203
|
+
"failure.http": "HTTP 错误",
|
|
204
|
+
"failure.network": "网络错误",
|
|
205
|
+
"failure.timeout": "请求超时",
|
|
206
|
+
"failure.cancelled": "已取消",
|
|
207
|
+
"failure.protocol": "响应异常",
|
|
208
|
+
"failure.budget": "本地额度耗尽",
|
|
209
|
+
"failure.circuit-open": "熔断中",
|
|
210
|
+
"failure.unverified": "后端未核实",
|
|
211
|
+
"liveVerified": "已实测",
|
|
212
|
+
"tabsLabel": "搜索设置分区",
|
|
213
|
+
"tab.behavior": "搜索行为",
|
|
214
|
+
"tab.reliability": "稳定性",
|
|
215
|
+
"tab.diagnostics": "试搜与诊断",
|
|
216
|
+
"tab.backends": "搜索后端",
|
|
217
|
+
"testQueryPlaceholder": "想让这个后端搜什么?",
|
|
218
|
+
"saveBeforeTest": "请先保存更改再试搜。",
|
|
219
|
+
"notSpecified": "不指定",
|
|
220
|
+
"activeTitle": "当前未启用本插件作为搜索源",
|
|
221
|
+
"activeOther": "内置搜索当前选择的是「{{provider}}」。在选中本插件之前,搜索仍会走它。",
|
|
222
|
+
"activateSelf": "设为网页搜索来源"
|
|
223
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,85 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nite07/dsh-search",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Explicit-mode multi-backend search with transparent costs and complete Web settings for DSH",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://git.nite07.com/nite/dsh-search.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://git.nite07.com/nite/dsh-search",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://git.nite07.com/nite/dsh-search/issues"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"dsh",
|
|
16
|
+
"deepseek-harness",
|
|
17
|
+
"plugin",
|
|
18
|
+
"web-search",
|
|
19
|
+
"search",
|
|
20
|
+
"cordis",
|
|
21
|
+
"llm"
|
|
22
|
+
],
|
|
23
|
+
"type": "module",
|
|
24
|
+
"exports": {
|
|
25
|
+
".": "./dist/index.js",
|
|
26
|
+
"./client": "./dist/client.js",
|
|
27
|
+
"./locale/*.json": "./locale/*.json",
|
|
28
|
+
"./icon": "./icon.svg",
|
|
29
|
+
"./package.json": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"locale",
|
|
34
|
+
"docs",
|
|
35
|
+
"icon.svg",
|
|
36
|
+
"cordis.patch.yml",
|
|
37
|
+
"README.md",
|
|
38
|
+
"LICENSE",
|
|
39
|
+
"README.zh.md"
|
|
40
|
+
],
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "node scripts/build.mjs",
|
|
43
|
+
"typecheck": "tsc --noEmit",
|
|
44
|
+
"test": "node --import tsx --test test/*.test.ts",
|
|
45
|
+
"check": "npm run typecheck && npm test && npm run build"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">=22",
|
|
49
|
+
"dsh": ">=0.2.2"
|
|
50
|
+
},
|
|
51
|
+
"peerDependencies": {
|
|
52
|
+
"@deepseek-ai/cordis": "*",
|
|
53
|
+
"@deepseek-ai/schemastery": "*",
|
|
54
|
+
"@deepseek-ai/dsh-web": "*",
|
|
55
|
+
"@deepseek-ai/dsh-credentials": "*",
|
|
56
|
+
"@deepseek-ai/dsh-config-editor": "*",
|
|
57
|
+
"@deepseek-ai/dsh-storage-domain": "*",
|
|
58
|
+
"zod": "*"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"typescript": "^7.0.2",
|
|
62
|
+
"esbuild": "^0.28.2",
|
|
63
|
+
"tsx": "^4.20.0",
|
|
64
|
+
"@types/node": "^24.0.0",
|
|
65
|
+
"@types/react": "^19.3.0"
|
|
66
|
+
},
|
|
67
|
+
"dsh": {
|
|
68
|
+
"bundle": {
|
|
69
|
+
"patch": "./cordis.patch.yml"
|
|
70
|
+
},
|
|
71
|
+
"client": {
|
|
72
|
+
"platform": "web",
|
|
73
|
+
"immediately": true,
|
|
74
|
+
"inject": [
|
|
75
|
+
"@deepseek-ai/dsh-client-runtime",
|
|
76
|
+
"@deepseek-ai/dsh-client-locale",
|
|
77
|
+
"@deepseek-ai/dsh-client-connection",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-settings"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"publishConfig": {
|
|
83
|
+
"access": "public"
|
|
84
|
+
}
|
|
85
|
+
}
|