@1outres/dsh-plugin-mobile 0.0.0-stage → 0.6.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/lib/index.js ADDED
@@ -0,0 +1,34 @@
1
+ // src/index.ts
2
+ import z from "@deepseek-ai/schemastery";
3
+ var name = "mobile";
4
+ var Config = z.object({
5
+ mode: z.union(["auto", "always", "off"]).default("auto").description(
6
+ "When to use the phone layout: auto below the breakpoint width, always, or never (off)."
7
+ ).volatile(),
8
+ breakpoint: z.natural().min(360).max(1024).default(768).description("Viewport width in CSS pixels below which auto mode uses the phone layout.").volatile(),
9
+ enterKey: z.union(["newline", "send"]).default("newline").description(
10
+ "What Enter does in the composer on a touch screen in the phone layout: add a line (send with the button) or send."
11
+ ).volatile(),
12
+ swipe: z.boolean().default(true).description("Open the sidebar by swiping right from the left edge, close it by swiping left.").volatile(),
13
+ fitKeyboard: z.boolean().default(true).description(
14
+ "Fit the page to the area the on-screen keyboard leaves visible, so the header and the composer stay on screen."
15
+ ).volatile(),
16
+ blockPullToRefresh: z.boolean().default(true).description("Stop pull-to-refresh and overscroll bounce from reloading or moving the page.").volatile(),
17
+ autoFocusComposer: z.boolean().default(false).description(
18
+ "Let the composer take focus by itself on a touch screen in the phone layout, as on desktop: when a session opens or a composer button is pressed. Off keeps the on-screen keyboard closed until you tap the input."
19
+ ).volatile()
20
+ });
21
+ function apply(ctx) {
22
+ ctx.inject(["settings"], (child) => {
23
+ const settings = child.settings;
24
+ child.effect(
25
+ () => settings.configure({ auto: false }, ctx.fiber),
26
+ "mobile: settings page policy"
27
+ );
28
+ });
29
+ }
30
+ export {
31
+ Config,
32
+ apply,
33
+ name
34
+ };
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "Mobile",
4
+ "description": "Makes the Web UI comfortable on a phone. Below a set width the sidebar becomes a drawer opened from a menu button or an edge swipe, the conversation fits the visible area while the on-screen keyboard is up, Enter adds a line instead of sending, and controls avoid notches and the home indicator."
5
+ }
6
+ }
package/locale/ja.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "モバイル",
4
+ "description": "スマートフォンで Web UI を快適に使えるようにします。設定した幅より狭い画面では、サイドバーをメニューボタンか画面端からのスワイプで開くドロワーに変えます。オンスクリーンキーボードの表示中は会話を見える範囲に収め、Enter は送信せずに改行します。ノッチやホームインジケーターも避けて配置します。"
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "移动端",
4
+ "description": "让 Web UI 在手机上好用。屏幕窄于设定宽度时,侧边栏变为抽屉,可通过菜单按钮或从屏幕边缘滑动打开;屏幕键盘弹出时会话区域适配可见范围,Enter 换行而不发送;界面避开刘海和主屏幕指示条。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,64 @@
1
1
  {
2
2
  "name": "@1outres/dsh-plugin-mobile",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.6.0",
4
+ "description": "Makes the DeepSeek Harness Web UI work on phones: the sidebar becomes a swipeable drawer, the composer follows the on-screen keyboard and Enter adds a line, and the layout 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.1-rc.5 <0.3.0",
38
+ "node": ">=22"
39
+ },
40
+ "dependencies": {
41
+ "@deepseek-ai/schemastery": "~3.18.5"
42
+ },
43
+ "peerDependencies": {
44
+ "@deepseek-ai/cordis": "~4.0.5",
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
  }