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