codewave-openclaw-installer 2.1.7 → 2.1.8
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 +87 -87
- package/package.json +1 -1
package/bin/install-lib.mjs
CHANGED
|
@@ -14,93 +14,93 @@ 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: ['lark-cli'],
|
|
22
|
+
runtimeCommands: ['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', '@larksuite/openclaw-lark', 'install']],
|
|
46
|
+
initCandidates: [
|
|
47
|
+
['lark-cli', ['auth', 'login', '--recommend']],
|
|
48
|
+
],
|
|
49
|
+
qrCandidates: [],
|
|
50
|
+
},
|
|
51
|
+
dingtalk: {
|
|
52
|
+
label: '钉钉',
|
|
53
|
+
detectCommands: ['dws', 'dingtalk', 'dingtalk-workspace-cli'],
|
|
54
|
+
runtimeCommands: ['dws', 'dingtalk', 'dingtalk-workspace-cli'],
|
|
55
|
+
desktopAppCandidates: ['DingTalk.app', '钉钉.app'],
|
|
56
|
+
desktopAppWindowsCandidates: [
|
|
57
|
+
'DingTalk.exe',
|
|
58
|
+
'DingtalkLauncher.exe',
|
|
59
|
+
'DingDing/DingTalk.exe',
|
|
60
|
+
'DingDing/DingtalkLauncher.exe',
|
|
61
|
+
'Programs/DingTalk/DingTalk.exe',
|
|
62
|
+
'Programs/DingTalk/DingtalkLauncher.exe',
|
|
63
|
+
],
|
|
64
|
+
desktopAppWindowsRegistryNames: ['DingTalk', 'Dingtalk', '钉钉'],
|
|
65
|
+
configPaths: [
|
|
66
|
+
join(homedir(), '.dws'),
|
|
67
|
+
join(homedir(), '.dingtalk'),
|
|
68
|
+
join(homedir(), '.config', 'dingtalk-workspace-cli'),
|
|
69
|
+
],
|
|
70
|
+
envVars: ['DWS_CLIENT_ID', 'DWS_CLIENT_SECRET'],
|
|
71
|
+
installCommand: platform === 'win32'
|
|
72
|
+
? ['powershell', ['-Command', 'irm https://raw.githubusercontent.com/DingTalk-Real-AI/dingtalk-workspace-cli/main/scripts/install.ps1 | iex']]
|
|
73
|
+
: ['sh', ['-c', 'curl -fsSL https://raw.githubusercontent.com/DingTalk-Real-AI/dingtalk-workspace-cli/main/scripts/install.sh | sh']],
|
|
74
|
+
initCandidates: [
|
|
75
|
+
['dws', ['auth', 'login', '--force']],
|
|
76
|
+
['dingtalk', ['auth', 'login']],
|
|
77
|
+
['dingtalk-workspace-cli', ['auth', 'login']],
|
|
78
|
+
],
|
|
79
|
+
qrCandidates: [],
|
|
80
|
+
},
|
|
81
|
+
wecom: {
|
|
82
|
+
label: '企业微信',
|
|
83
|
+
detectCommands: ['wecom-cli'],
|
|
84
|
+
runtimeCommands: ['wecom-cli'],
|
|
85
|
+
desktopAppCandidates: ['企业微信.app', 'WeCom.app', 'WeChatWork.app'],
|
|
86
|
+
desktopAppWindowsCandidates: [
|
|
87
|
+
'WXWork.exe',
|
|
88
|
+
'WeCom.exe',
|
|
89
|
+
'D:\\WXWork\\WXWork.exe',
|
|
90
|
+
'Programs/WeCom/WeCom.exe',
|
|
91
|
+
'Programs/WXWork/WXWork.exe',
|
|
92
|
+
],
|
|
93
|
+
desktopAppWindowsRegistryNames: ['企业微信', 'WeCom', 'WeChat Work'],
|
|
94
|
+
configPaths: [],
|
|
95
|
+
envVars: [],
|
|
96
|
+
installCommand: ['npx', ['-y', '@wecom/cli', 'init']],
|
|
97
|
+
initCandidates: [],
|
|
98
|
+
qrCandidates: [],
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export const CHANNEL_DEFINITIONS = createChannelDefinitions();
|
|
104
104
|
|
|
105
105
|
export function createInstallContext(platform) {
|
|
106
106
|
return {
|