codewave-openclaw-installer 2.1.7 → 2.1.9
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/bin/install-lib.mjs +88 -87
- package/package.json +1 -1
package/bin/install-lib.mjs
CHANGED
|
@@ -14,93 +14,94 @@ export const SKILL_SUMMARIES = [
|
|
|
14
14
|
'yidun-skill-sec — 代码包安全扫描(易盾)',
|
|
15
15
|
];
|
|
16
16
|
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
: [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
: [
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
17
|
+
export function createChannelDefinitions(platform = process.platform) {
|
|
18
|
+
return {
|
|
19
|
+
lark: {
|
|
20
|
+
label: '飞书',
|
|
21
|
+
detectCommands: ['openclaw-lark', 'lark-cli'],
|
|
22
|
+
runtimeCommands: ['openclaw-lark', 'lark-cli', 'openclaw'],
|
|
23
|
+
desktopAppCandidates: ['Feishu.app', 'Lark.app', '飞书.app'],
|
|
24
|
+
desktopAppWindowsCandidates: [
|
|
25
|
+
'Feishu.exe',
|
|
26
|
+
'FeishuLauncher.exe',
|
|
27
|
+
'Feishu/Feishu.exe',
|
|
28
|
+
'Feishu/FeishuLauncher.exe',
|
|
29
|
+
'Lark.exe',
|
|
30
|
+
'LarkLauncher.exe',
|
|
31
|
+
'Lark/Lark.exe',
|
|
32
|
+
'Lark/LarkLauncher.exe',
|
|
33
|
+
'Programs/Feishu/Feishu.exe',
|
|
34
|
+
'Programs/Feishu/FeishuLauncher.exe',
|
|
35
|
+
'Programs/Lark/Lark.exe',
|
|
36
|
+
'Programs/Lark/LarkLauncher.exe',
|
|
37
|
+
],
|
|
38
|
+
desktopAppWindowsRegistryNames: ['Feishu', 'Lark', '飞书'],
|
|
39
|
+
configPaths: [
|
|
40
|
+
join(homedir(), '.openclaw', 'lark.json'),
|
|
41
|
+
join(homedir(), '.openclaw', 'extensions', '@openclaw', 'feishu'),
|
|
42
|
+
join(homedir(), '.openclaw', 'extensions', 'openclaw-lark'),
|
|
43
|
+
],
|
|
44
|
+
envVars: ['LARK_APP_ID', 'LARK_APP_SECRET', 'FEISHU_APP_ID', 'FEISHU_APP_SECRET'],
|
|
45
|
+
installCommand: ['npx', ['-y', '-p', '@larksuite/openclaw-lark-tools', 'feishu-plugin-onboard', 'install']],
|
|
46
|
+
initCandidates: [
|
|
47
|
+
['openclaw-lark', ['auth', 'login', '--recommend']],
|
|
48
|
+
['lark-cli', ['auth', 'login', '--recommend']],
|
|
49
|
+
],
|
|
50
|
+
qrCandidates: [],
|
|
51
|
+
},
|
|
52
|
+
dingtalk: {
|
|
53
|
+
label: '钉钉',
|
|
54
|
+
detectCommands: ['dws', 'dingtalk', 'dingtalk-workspace-cli'],
|
|
55
|
+
runtimeCommands: ['dws', 'dingtalk', 'dingtalk-workspace-cli'],
|
|
56
|
+
desktopAppCandidates: ['DingTalk.app', '钉钉.app'],
|
|
57
|
+
desktopAppWindowsCandidates: [
|
|
58
|
+
'DingTalk.exe',
|
|
59
|
+
'DingtalkLauncher.exe',
|
|
60
|
+
'DingDing/DingTalk.exe',
|
|
61
|
+
'DingDing/DingtalkLauncher.exe',
|
|
62
|
+
'Programs/DingTalk/DingTalk.exe',
|
|
63
|
+
'Programs/DingTalk/DingtalkLauncher.exe',
|
|
64
|
+
],
|
|
65
|
+
desktopAppWindowsRegistryNames: ['DingTalk', 'Dingtalk', '钉钉'],
|
|
66
|
+
configPaths: [
|
|
67
|
+
join(homedir(), '.dws'),
|
|
68
|
+
join(homedir(), '.dingtalk'),
|
|
69
|
+
join(homedir(), '.config', 'dingtalk-workspace-cli'),
|
|
70
|
+
],
|
|
71
|
+
envVars: ['DWS_CLIENT_ID', 'DWS_CLIENT_SECRET'],
|
|
72
|
+
installCommand: platform === 'win32'
|
|
73
|
+
? ['powershell', ['-Command', 'irm https://raw.githubusercontent.com/DingTalk-Real-AI/dingtalk-workspace-cli/main/scripts/install.ps1 | iex']]
|
|
74
|
+
: ['sh', ['-c', 'curl -fsSL https://raw.githubusercontent.com/DingTalk-Real-AI/dingtalk-workspace-cli/main/scripts/install.sh | sh']],
|
|
75
|
+
initCandidates: [
|
|
76
|
+
['dws', ['auth', 'login', '--force']],
|
|
77
|
+
['dingtalk', ['auth', 'login']],
|
|
78
|
+
['dingtalk-workspace-cli', ['auth', 'login']],
|
|
79
|
+
],
|
|
80
|
+
qrCandidates: [],
|
|
81
|
+
},
|
|
82
|
+
wecom: {
|
|
83
|
+
label: '企业微信',
|
|
84
|
+
detectCommands: ['wecom-cli'],
|
|
85
|
+
runtimeCommands: ['wecom-cli'],
|
|
86
|
+
desktopAppCandidates: ['企业微信.app', 'WeCom.app', 'WeChatWork.app'],
|
|
87
|
+
desktopAppWindowsCandidates: [
|
|
88
|
+
'WXWork.exe',
|
|
89
|
+
'WeCom.exe',
|
|
90
|
+
'D:\\WXWork\\WXWork.exe',
|
|
91
|
+
'Programs/WeCom/WeCom.exe',
|
|
92
|
+
'Programs/WXWork/WXWork.exe',
|
|
93
|
+
],
|
|
94
|
+
desktopAppWindowsRegistryNames: ['企业微信', 'WeCom', 'WeChat Work'],
|
|
95
|
+
configPaths: [],
|
|
96
|
+
envVars: [],
|
|
97
|
+
installCommand: ['npx', ['-y', '-p', '@wecom/cli', 'wecom-cli', 'init']],
|
|
98
|
+
initCandidates: [],
|
|
99
|
+
qrCandidates: [],
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export const CHANNEL_DEFINITIONS = createChannelDefinitions();
|
|
104
105
|
|
|
105
106
|
export function createInstallContext(platform) {
|
|
106
107
|
return {
|