@1outres/dsh-plugin-mobile 0.0.0-stage → 0.7.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 +134 -2
- package/cordis.patch.yml +6 -0
- package/icon.svg +12 -0
- package/lib/client.js +1084 -0
- package/lib/index.js +32 -0
- package/locale/en.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +61 -3
package/lib/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import z from "@deepseek-ai/schemastery";
|
|
3
|
+
var name = "mobile";
|
|
4
|
+
var Config = z.object({
|
|
5
|
+
enterKey: z.union(["newline", "send"]).default("newline").description(
|
|
6
|
+
"What Enter does in the composer on a touch screen in the phone layout: add a line (send with the button) or send."
|
|
7
|
+
).volatile(),
|
|
8
|
+
swipe: z.boolean().default(true).description(
|
|
9
|
+
"Open the Harness navigation drawer by swiping right from the left edge, close it by swiping left."
|
|
10
|
+
).volatile(),
|
|
11
|
+
fitKeyboard: z.boolean().default(true).description(
|
|
12
|
+
"Fit the page to the area the on-screen keyboard leaves visible, so the header and the composer stay on screen."
|
|
13
|
+
).volatile(),
|
|
14
|
+
blockPullToRefresh: z.boolean().default(true).description("Stop pull-to-refresh and overscroll bounce from reloading or moving the page.").volatile(),
|
|
15
|
+
autoFocusComposer: z.boolean().default(false).description(
|
|
16
|
+
"Let the Harness focus the composer on a touch screen in the phone layout, as on desktop, when a composer control or another action moves focus to it. Off keeps the on-screen keyboard closed until you tap the input."
|
|
17
|
+
).volatile()
|
|
18
|
+
});
|
|
19
|
+
function apply(ctx) {
|
|
20
|
+
ctx.inject(["settings"], (child) => {
|
|
21
|
+
const settings = child.settings;
|
|
22
|
+
child.effect(
|
|
23
|
+
() => settings.configure({ auto: false }, ctx.fiber),
|
|
24
|
+
"mobile: settings page policy"
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
Config,
|
|
30
|
+
apply,
|
|
31
|
+
name
|
|
32
|
+
};
|
package/locale/en.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "Mobile",
|
|
4
|
+
"description": "Adds phone refinements to the Harness Web UI: fits the page to the on-screen keyboard, makes Enter add a line, keeps the keyboard closed until the composer is tapped, adds edge swipes to the Harness navigation drawer, and respects notches and touch."
|
|
5
|
+
}
|
|
6
|
+
}
|
package/locale/ja.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,64 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1outres/dsh-plugin-mobile",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "Adds phone refinements to the DeepSeek Harness Web UI: fits the page to the on-screen keyboard, makes Enter add a line, keeps the keyboard closed until the composer is tapped, adds edge swipes to the Harness navigation drawer, and respects notches and touch.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/1outres/my-dsh-plugins.git",
|
|
8
|
+
"directory": "packages/dsh-plugin-mobile"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "lib/index.js",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./lib/index.js",
|
|
14
|
+
"./client": "./lib/client.js",
|
|
15
|
+
"./locale/*.json": "./locale/*.json",
|
|
16
|
+
"./icon": "./icon.svg",
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"lib",
|
|
21
|
+
"cordis.patch.yml",
|
|
22
|
+
"locale/*.json",
|
|
23
|
+
"icon.svg"
|
|
24
|
+
],
|
|
25
|
+
"keywords": [
|
|
26
|
+
"dsh",
|
|
27
|
+
"dsh-plugin",
|
|
28
|
+
"mobile",
|
|
29
|
+
"responsive",
|
|
30
|
+
"deepseek-harness"
|
|
31
|
+
],
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"dsh": ">=0.2.2-rc.1 <0.3.0",
|
|
38
|
+
"node": ">=22"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@deepseek-ai/schemastery": "~3.18.5"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@deepseek-ai/cordis": "~4.1.0",
|
|
45
|
+
"react": "^18.2.0"
|
|
46
|
+
},
|
|
47
|
+
"dsh": {
|
|
48
|
+
"bundle": {
|
|
49
|
+
"patch": [
|
|
50
|
+
"./cordis.patch.yml"
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"client": {
|
|
54
|
+
"platform": "web",
|
|
55
|
+
"inject": [
|
|
56
|
+
"@deepseek-ai/dsh-client-ui-renderer",
|
|
57
|
+
"@deepseek-ai/dsh-client-ui-layout",
|
|
58
|
+
"@deepseek-ai/dsh-client-ui-conversation",
|
|
59
|
+
"@deepseek-ai/dsh-client-ui-settings"
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"scripts": {}
|
|
6
64
|
}
|