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.
Files changed (2) hide show
  1. package/bin/install-lib.mjs +88 -87
  2. package/package.json +1 -1
@@ -14,93 +14,94 @@ 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: process.platform === 'win32'
45
- ? ['npx', ['-y', '"@larksuite/openclaw-lark"', 'install']]
46
- : ['npx', ['-y', '@larksuite/openclaw-lark', 'install']],
47
- initCandidates: [
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: process.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: process.platform === 'win32'
98
- ? ['npx', ['-y', '"@wecom/cli"', 'init']]
99
- : ['npx', ['-y', '@wecom/cli', 'init']],
100
- initCandidates: [],
101
- qrCandidates: [],
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codewave-openclaw-installer",
3
- "version": "2.1.7",
3
+ "version": "2.1.9",
4
4
  "description": "网易智企 CodeWave OpenClaw 扩展:Skills + CLI 依赖一键安装",
5
5
  "type": "module",
6
6
  "main": "index.js",