skillmkt 0.4.5 → 0.4.7

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.
@@ -92,11 +92,11 @@ export async function run(ctx) {
92
92
  // 密钥:只在需要时问;粘贴的密钥用本机机器码加密存 config.yml
93
93
  let api_key = null, keyPlain = '';
94
94
  if (base_url && needKey) {
95
- const ks = await choose(L('API key 来源?', 'API key source?'), [
96
- { label: L('粘贴密钥(机器码加密后存入 config.yml)', 'Paste a key (encrypted into config.yml with this machine’s ID)'), v: 'paste' },
97
- { label: 'SKILLMKT_API_KEY', v: 'env:SKILLMKT_API_KEY' },
98
- { label: 'OMLX_API_KEY', v: 'env:OMLX_API_KEY' },
99
- { label: L('无需 key', 'No key needed'), v: null },
95
+ const ks = await choose(L('这个服务需要访问密钥,怎么提供?', 'This service needs an access key — how should it be provided?'), [
96
+ { label: L('现在粘贴进来(只输一次,自动加密保存)', 'Paste it now (entered once, saved encrypted)'), v: 'paste' },
97
+ { label: L('从环境变量 SKILLMKT_API_KEY 读(key 已在 shell 里时选)', 'Read env var SKILLMKT_API_KEY (if the key is already in your shell)'), v: 'env:SKILLMKT_API_KEY' },
98
+ { label: L('从环境变量 OMLX_API_KEY 读', 'Read env var OMLX_API_KEY'), v: 'env:OMLX_API_KEY' },
99
+ { label: L('不需要密钥', 'No key needed'), v: null },
100
100
  ]);
101
101
  if (ks.v === 'paste') {
102
102
  keyPlain = (await askSecret(L(' 密钥 > ', ' Key > '))).trim();
@@ -321,7 +321,7 @@ async function render() {
321
321
  <div class="row"><button id="probe">${t('probe_btn')}</button><span id="probe-out" class="mut"></span></div>
322
322
  <div id="eps"></div>
323
323
  <div class="frow"><span class="lab" style="width:96px">${t('l_url')}</span><input type="text" id="murl" autocomplete="off" placeholder="http://localhost:1234/v1" value="${esc(cfg.llm?.base_url || '')}"></div>
324
- <div class="frow" id="key-row" style="display:none"><span class="lab" style="width:96px">${t('l_key')}</span><input type="text" id="mkey" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" data-1p-ignore data-lpignore="true" data-form-type="other" value="${esc(cfg.llm?.api_key?.startsWith('enc:') ? t('enc_disp') : (cfg.llm?.api_key || ''))}"><span class="fhint" id="key-hint"></span>
324
+ <div class="frow" id="key-row" style="display:none"><span class="lab" style="width:96px">${t('l_key')}</span><input type="password" id="mkey" autocomplete="new-password" autocorrect="off" autocapitalize="off" spellcheck="false" data-1p-ignore data-lpignore="true" data-form-type="other" value="${esc(cfg.llm?.api_key?.startsWith('enc:') ? t('enc_disp') : (cfg.llm?.api_key || ''))}"><span class="fhint" id="key-hint"></span>
325
325
  <div class="fsub">${t('key_sub')}</div></div>
326
326
  <div class="frow" id="model-box"><span class="lab" style="width:96px">${t('l_model')}</span>
327
327
  <div class="combo"><input type="text" id="mmodel" autocomplete="off" placeholder="${t('model_ph')}" value="${esc(cfg.llm?.model || '')}">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillmkt",
3
- "version": "0.4.5",
3
+ "version": "0.4.7",
4
4
  "type": "module",
5
5
  "description": "Local-first agent skill manager: install, audit, merge, distribute.",
6
6
  "license": "MIT",