@michengai/dsh-automation 0.1.0 → 0.1.2
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/docs/00-/344/272/244/346/216/245/345/205/245/345/217/243/02-/345/275/223/345/211/215/347/212/266/346/200/201.md +3 -3
- package/docs/01-/345/275/223/345/211/215/345/267/245/344/275/234/I001-/344/273/273/345/212/241/350/207/252/345/212/250/345/214/226/346/217/222/344/273/266/00-/350/277/255/344/273/243/346/200/273/350/247/210.md +5 -3
- package/lib/client.js +95 -32
- package/lib/client.js.map +4 -4
- package/lib/types/client/native-session-list.d.ts +1 -1
- package/lib/types/client/native-session-menu.d.ts +13 -0
- package/package.json +19 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Translate } from './contracts.js';
|
|
2
2
|
import type { AutomationRuntime } from './runtime.js';
|
|
3
|
-
export
|
|
3
|
+
export { nativeSessionMenuStyle, nextOpenSessionMenuId, relativeTime, resolveEventElement, shouldCloseNativeSessionMenu, } from './native-session-menu.js';
|
|
4
4
|
export declare function NativeScheduleSessionList(props: {
|
|
5
5
|
readonly t: Translate;
|
|
6
6
|
readonly runtime: AutomationRuntime;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
/** 把点击目标收成元素节点,避免标题文本节点没有 closest 导致关闭逻辑中断。 */
|
|
3
|
+
export declare function resolveEventElement(target: unknown): object | null;
|
|
4
|
+
/** 点击不在当前行或当前菜单内时,应关闭已打开的菜单。 */
|
|
5
|
+
export declare function shouldCloseNativeSessionMenu(target: unknown, keepInside: readonly unknown[]): boolean;
|
|
6
|
+
/** 侧栏同一时间只保留一条会话菜单。再点同一条则关闭。 */
|
|
7
|
+
export declare function nextOpenSessionMenuId(current: string | null, clicked: string): string | null;
|
|
8
|
+
/** 用视口坐标固定菜单,避免被侧栏 overflow 裁切后叠到下一条会话上。 */
|
|
9
|
+
export declare function nativeSessionMenuStyle(box: {
|
|
10
|
+
readonly bottom: number;
|
|
11
|
+
readonly right: number;
|
|
12
|
+
}, viewportWidth: number): CSSProperties;
|
|
13
|
+
export declare function relativeTime(value: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-automation",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "在独立 DSH Session 中按计划执行编码任务,支持 Web 设置页与 Agent 双入口管理。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -63,6 +63,23 @@
|
|
|
63
63
|
"zod": "^4.1.5"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
67
|
+
"@deepseek-ai/dsh-agent": ">=0.1.0-rc.5 <0.2.0",
|
|
68
|
+
"@deepseek-ai/dsh-agent-default-model": ">=0.1.0-rc.5 <0.2.0",
|
|
69
|
+
"@deepseek-ai/dsh-agent-presets": ">=0.1.0-rc.5 <0.2.0",
|
|
70
|
+
"@deepseek-ai/dsh-client-connection": ">=0.1.0-rc.5 <0.2.0",
|
|
71
|
+
"@deepseek-ai/dsh-client-locale": ">=0.1.0-rc.5 <0.2.0",
|
|
72
|
+
"@deepseek-ai/dsh-client-runtime": ">=0.1.0-rc.5 <0.2.0",
|
|
73
|
+
"@deepseek-ai/dsh-client-ui-conversation": ">=0.1.0-rc.5 <0.2.0",
|
|
74
|
+
"@deepseek-ai/dsh-client-ui-settings": ">=0.1.0-rc.5 <0.2.0",
|
|
75
|
+
"@deepseek-ai/dsh-llm": ">=0.1.0-rc.5 <0.2.0",
|
|
76
|
+
"@deepseek-ai/dsh-sandbox-policy": ">=0.1.0-rc.5 <0.2.0",
|
|
77
|
+
"@deepseek-ai/dsh-session": ">=0.1.0-rc.5 <0.2.0",
|
|
78
|
+
"@deepseek-ai/dsh-storage-domain": ">=0.1.0-rc.5 <0.2.0",
|
|
79
|
+
"@deepseek-ai/dsh-tools": ">=0.1.0-rc.5 <0.2.0",
|
|
80
|
+
"@deepseek-ai/dsh-user-approval": ">=0.1.0-rc.5 <0.2.0",
|
|
81
|
+
"@deepseek-ai/dsh-workspace": ">=0.1.0-rc.5 <0.2.0",
|
|
82
|
+
"@deepseek-ai/schemastery": "^3.18.1",
|
|
66
83
|
"react": "^18.2.0"
|
|
67
84
|
},
|
|
68
85
|
"peerDependenciesMeta": {
|
|
@@ -97,3 +114,4 @@
|
|
|
97
114
|
]
|
|
98
115
|
}
|
|
99
116
|
}
|
|
117
|
+
|