@qzsy/dsh-command-palette 1.3.1 → 1.4.1

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.
Binary file
package/icon.svg CHANGED
@@ -1,12 +1,12 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="Command palette">
2
- <defs>
3
- <linearGradient id="cpbg" x1="8" y1="6" x2="56" y2="60" gradientUnits="userSpaceOnUse">
4
- <stop offset="0" stop-color="#5B8CFF"/>
5
- <stop offset="1" stop-color="#3466DB"/>
6
- </linearGradient>
7
- </defs>
8
- <rect x="4" y="4" width="56" height="56" rx="16" fill="url(#cpbg)"/>
9
- <circle cx="28" cy="27" r="10.5" fill="none" stroke="#FFFFFF" stroke-width="4"/>
10
- <path d="M36 35.5 45 44.5" fill="none" stroke="#FFFFFF" stroke-width="4" stroke-linecap="round"/>
11
- <path d="M23.5 27h9M28 22.5v9" fill="none" stroke="#FFFFFF" stroke-width="2.4" stroke-linecap="round" opacity="0.75"/>
12
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="Command palette">
2
+ <defs>
3
+ <linearGradient id="cpbg" x1="8" y1="6" x2="56" y2="60" gradientUnits="userSpaceOnUse">
4
+ <stop offset="0" stop-color="#5B8CFF"/>
5
+ <stop offset="1" stop-color="#3466DB"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <rect x="4" y="4" width="56" height="56" rx="16" fill="url(#cpbg)"/>
9
+ <circle cx="28" cy="27" r="10.5" fill="none" stroke="#FFFFFF" stroke-width="4"/>
10
+ <path d="M36 35.5 45 44.5" fill="none" stroke="#FFFFFF" stroke-width="4" stroke-linecap="round"/>
11
+ <path d="M23.5 27h9M28 22.5v9" fill="none" stroke="#FFFFFF" stroke-width="2.4" stroke-linecap="round" opacity="0.75"/>
12
+ </svg>
package/locale/en.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "meta": {
3
- "title": "Command Palette",
4
- "description": "Command+K palette for sessions, workspaces, files, and actions with mixed Chinese/English pinyin search and live session status."
5
- }
6
- }
1
+ {
2
+ "meta": {
3
+ "title": "Command Palette",
4
+ "description": "Command+K palette for sessions, workspaces, files, and actions with mixed Chinese/English pinyin search and live session status."
5
+ }
6
+ }
package/locale/zh.json CHANGED
@@ -1,6 +1,6 @@
1
- {
2
- "meta": {
3
- "title": "命令面板",
4
- "description": "按 ⌘K 快速检索会话、工作区、文件与操作,支持拼音/中英文混拼,并显示会话实时状态(工作中、待处理等)。"
5
- }
6
- }
1
+ {
2
+ "meta": {
3
+ "title": "命令面板",
4
+ "description": "按 ⌘K 快速检索会话、工作区、文件与操作,支持拼音/中英文混拼,并显示会话实时状态(工作中、待处理等)。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,78 +1,78 @@
1
- {
2
- "name": "@qzsy/dsh-command-palette",
3
- "version": "1.3.1",
4
- "description": "Command+K palette for recent sessions, workspaces, files, and actions with pinyin search and live session status.",
5
- "type": "module",
6
- "license": "MIT",
7
- "author": "qzsy",
8
- "contributors": [
9
- {
10
- "name": "qzsy"
11
- }
12
- ],
13
- "keywords": [
14
- "dsh",
15
- "deepseek-harness",
16
- "plugin",
17
- "command-palette",
18
- "pinyin"
19
- ],
20
- "repository": {
21
- "type": "git",
22
- "url": "https://codeup.aliyun.com/qzsy/dshmarket/deepseek-harness-market",
23
- "directory": "plugins/packages/dsh-command-palette"
24
- },
25
- "homepage": "https://codeup.aliyun.com/qzsy/dshmarket/deepseek-harness-market",
26
- "bugs": {
27
- "url": "https://codeup.aliyun.com/qzsy/dshmarket/deepseek-harness-market/issues"
28
- },
29
- "engines": {
30
- "node": ">=20.9.0"
31
- },
32
- "files": [
33
- "dist",
34
- "cordis.patch.yml",
35
- "README.md",
36
- "LICENSE",
37
- "locale/*.json",
38
- "icon.svg",
39
- "docs",
40
- "vendor",
41
- "scripts"
42
- ],
43
- "publishConfig": {
44
- "access": "public"
45
- },
46
- "dsh": {
47
- "bundle": {
48
- "patch": "./cordis.patch.yml"
49
- },
50
- "client": {
51
- "platform": "web",
52
- "immediately": true,
53
- "inject": [
54
- "@deepseek-ai/dsh-client-shortcuts",
55
- "@deepseek-ai/dsh-client-ui-workspace",
56
- "@deepseek-ai/dsh-client-ui-sidebar",
57
- "@deepseek-ai/dsh-client-ui-reference"
58
- ]
59
- }
60
- },
61
- "scripts": {
62
- "build": "bun run ../../scripts/build-package.mjs .",
63
- "typecheck": "bun exec tsc -p tsconfig.json --noEmit"
64
- },
65
- "dshBuild": {
66
- "host": "src/index.ts",
67
- "client": "runtime/client.js",
68
- "copy": []
69
- },
70
- "main": "./dist/index.js",
71
- "exports": {
72
- ".": "./dist/index.js",
73
- "./client": "./dist/client.js",
74
- "./locale/*.json": "./locale/*.json",
75
- "./icon": "./icon.svg",
76
- "./package.json": "./package.json"
77
- }
78
- }
1
+ {
2
+ "name": "@qzsy/dsh-command-palette",
3
+ "version": "1.4.1",
4
+ "description": "Command+K palette for recent sessions, workspaces, files, and actions with pinyin search and live session status.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "qzsy",
8
+ "contributors": [
9
+ {
10
+ "name": "qzsy"
11
+ }
12
+ ],
13
+ "keywords": [
14
+ "dsh",
15
+ "deepseek-harness",
16
+ "plugin",
17
+ "command-palette",
18
+ "pinyin"
19
+ ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "https://codeup.aliyun.com/qzsy/dshmarket/deepseek-harness-market",
23
+ "directory": "plugins/packages/dsh-command-palette"
24
+ },
25
+ "homepage": "https://codeup.aliyun.com/qzsy/dshmarket/deepseek-harness-market",
26
+ "bugs": {
27
+ "url": "https://codeup.aliyun.com/qzsy/dshmarket/deepseek-harness-market/issues"
28
+ },
29
+ "engines": {
30
+ "node": ">=20.9.0"
31
+ },
32
+ "files": [
33
+ "dist",
34
+ "cordis.patch.yml",
35
+ "README.md",
36
+ "LICENSE",
37
+ "locale/*.json",
38
+ "icon.svg",
39
+ "docs",
40
+ "vendor",
41
+ "scripts"
42
+ ],
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "dsh": {
47
+ "bundle": {
48
+ "patch": "./cordis.patch.yml"
49
+ },
50
+ "client": {
51
+ "platform": "web",
52
+ "immediately": true,
53
+ "inject": [
54
+ "@deepseek-ai/dsh-client-shortcuts",
55
+ "@deepseek-ai/dsh-client-ui-workspace",
56
+ "@deepseek-ai/dsh-client-ui-sidebar",
57
+ "@deepseek-ai/dsh-client-ui-reference"
58
+ ]
59
+ }
60
+ },
61
+ "scripts": {
62
+ "build": "bun run ../../scripts/build-package.mjs .",
63
+ "typecheck": "bun exec tsc -p tsconfig.json --noEmit"
64
+ },
65
+ "dshBuild": {
66
+ "host": "src/index.ts",
67
+ "client": "runtime/client.js",
68
+ "copy": []
69
+ },
70
+ "main": "./dist/index.js",
71
+ "exports": {
72
+ ".": "./dist/index.js",
73
+ "./client": "./dist/client.js",
74
+ "./locale/*.json": "./locale/*.json",
75
+ "./icon": "./icon.svg",
76
+ "./package.json": "./package.json"
77
+ }
78
+ }
@@ -1,45 +1,45 @@
1
- #!/usr/bin/env node
2
- /**
3
- * Inject the vendored browser build of text-search-engine into client.js.
4
- *
5
- * The Harness browser module table resolves only its own platform modules and
6
- * client-plugin rows, so a plain-JS plugin cannot `require('text-search-engine')`
7
- * at runtime. The package's minified browser IIFE is therefore copied into the
8
- * factory scope, where the generated `TextSearchEngine` const captures its
9
- * exports. Re-run this script after updating vendor/text-search-engine.min.js.
10
- */
11
- import { readFileSync, writeFileSync } from 'node:fs';
12
- import { dirname, join } from 'node:path';
13
- import { fileURLToPath } from 'node:url';
14
-
15
- const root = dirname(dirname(fileURLToPath(import.meta.url)));
16
- const clientPath = join(root, 'client.js');
17
- const enginePath = join(root, 'vendor', 'text-search-engine.min.js');
18
-
19
- const begin = '\t\t//#region vendor:text-search-engine:begin';
20
- const end = '\t\t//#endregion vendor:text-search-engine:end';
21
-
22
- const engine = readFileSync(enginePath, 'utf8').replace(/\/\/# sourceMappingURL=.*\s*$/u, '').trim();
23
- if (engine === '') throw new Error('vendor/text-search-engine.min.js is empty');
24
-
25
- const block = [
26
- begin,
27
- '\t\t/**',
28
- '\t\t * Vendored browser build of text-search-engine (MIT, cjinhuo); generated by',
29
- '\t\t * scripts/sync-vendor-engine.mjs from vendor/text-search-engine.min.js.',
30
- '\t\t * Do not edit this region by hand.',
31
- '\t\t */',
32
- '\t\tconst TextSearchEngine = (() => {',
33
- `\t\t\t${engine}`,
34
- '\t\t\treturn _TEXT_SEARCH_ENGINE_;',
35
- '\t\t})();',
36
- end
37
- ].join('\n');
38
-
39
- const source = readFileSync(clientPath, 'utf8');
40
- const start = source.indexOf(begin);
41
- const stop = source.indexOf(end);
42
- if (start < 0 || stop < 0 || stop < start) throw new Error('client.js is missing the vendored-engine markers');
43
- const next = `${source.slice(0, start)}${block}${source.slice(stop + end.length)}`;
44
- writeFileSync(clientPath, next);
45
- console.log(`injected ${engine.length} bytes from ${enginePath}`);
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Inject the vendored browser build of text-search-engine into client.js.
4
+ *
5
+ * The Harness browser module table resolves only its own platform modules and
6
+ * client-plugin rows, so a plain-JS plugin cannot `require('text-search-engine')`
7
+ * at runtime. The package's minified browser IIFE is therefore copied into the
8
+ * factory scope, where the generated `TextSearchEngine` const captures its
9
+ * exports. Re-run this script after updating vendor/text-search-engine.min.js.
10
+ */
11
+ import { readFileSync, writeFileSync } from 'node:fs';
12
+ import { dirname, join } from 'node:path';
13
+ import { fileURLToPath } from 'node:url';
14
+
15
+ const root = dirname(dirname(fileURLToPath(import.meta.url)));
16
+ const clientPath = join(root, 'client.js');
17
+ const enginePath = join(root, 'vendor', 'text-search-engine.min.js');
18
+
19
+ const begin = '\t\t//#region vendor:text-search-engine:begin';
20
+ const end = '\t\t//#endregion vendor:text-search-engine:end';
21
+
22
+ const engine = readFileSync(enginePath, 'utf8').replace(/\/\/# sourceMappingURL=.*\s*$/u, '').trim();
23
+ if (engine === '') throw new Error('vendor/text-search-engine.min.js is empty');
24
+
25
+ const block = [
26
+ begin,
27
+ '\t\t/**',
28
+ '\t\t * Vendored browser build of text-search-engine (MIT, cjinhuo); generated by',
29
+ '\t\t * scripts/sync-vendor-engine.mjs from vendor/text-search-engine.min.js.',
30
+ '\t\t * Do not edit this region by hand.',
31
+ '\t\t */',
32
+ '\t\tconst TextSearchEngine = (() => {',
33
+ `\t\t\t${engine}`,
34
+ '\t\t\treturn _TEXT_SEARCH_ENGINE_;',
35
+ '\t\t})();',
36
+ end
37
+ ].join('\n');
38
+
39
+ const source = readFileSync(clientPath, 'utf8');
40
+ const start = source.indexOf(begin);
41
+ const stop = source.indexOf(end);
42
+ if (start < 0 || stop < 0 || stop < start) throw new Error('client.js is missing the vendored-engine markers');
43
+ const next = `${source.slice(0, start)}${block}${source.slice(stop + end.length)}`;
44
+ writeFileSync(clientPath, next);
45
+ console.log(`injected ${engine.length} bytes from ${enginePath}`);