@michengai/dsh-automation 0.1.13 → 0.1.15
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/CHANGELOG.md +38 -0
- package/CHANGELOG.zh-CN.md +38 -0
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/lib/client.js +10 -4
- package/lib/client.js.map +2 -2
- package/lib/types/client/locales.d.ts +3 -0
- package/lib/types/client/permissions.d.ts +3 -1
- package/package.json +4 -2
|
@@ -133,6 +133,9 @@ export declare const en: {
|
|
|
133
133
|
readonly 'form.days': "Weekdays";
|
|
134
134
|
readonly 'form.timeZone': "Time zone";
|
|
135
135
|
readonly 'form.permission': "Permission boundary";
|
|
136
|
+
readonly 'permission.readOnly': "Read Only";
|
|
137
|
+
readonly 'permission.workspaceWrite': "Workspace Write";
|
|
138
|
+
readonly 'permission.fullAccess': "Full access";
|
|
136
139
|
readonly 'form.cancel': "Cancel";
|
|
137
140
|
readonly 'form.submit': "Create automation";
|
|
138
141
|
readonly 'form.submitting': "Creating…";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { PermissionOption } from './protocol.js';
|
|
2
|
+
export type PermissionLocaleKey = 'permission.readOnly' | 'permission.workspaceWrite' | 'permission.fullAccess';
|
|
3
|
+
export type PermissionLabelTranslate = (key: PermissionLocaleKey, params?: Record<string, unknown>) => string;
|
|
2
4
|
export type PermissionTranslate = (key: string, params?: Record<string, unknown>) => string;
|
|
3
5
|
/** 与 Chat 一致:只本地化官方内置原名,自定义预设保留 Host 提供的名称。 */
|
|
4
|
-
export declare function permissionLabel(option: PermissionOption, t:
|
|
6
|
+
export declare function permissionLabel(option: PermissionOption, t: PermissionLabelTranslate): 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.15",
|
|
4
4
|
"description": "在独立 DSH Session 中按计划执行编码任务,支持 Web 设置页与 Agent 双入口管理。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
"README.md",
|
|
25
25
|
"README.zh-CN.md",
|
|
26
26
|
"LICENSE",
|
|
27
|
-
"NOTICE"
|
|
27
|
+
"NOTICE",
|
|
28
|
+
"CHANGELOG.md",
|
|
29
|
+
"CHANGELOG.zh-CN.md"
|
|
28
30
|
],
|
|
29
31
|
"license": "Apache-2.0",
|
|
30
32
|
"repository": {
|