too-many-claw 1.0.6 → 1.0.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/dist/cli.js +79 -38
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +18 -3
- package/dist/index.js +69 -41
- package/dist/index.js.map +1 -1
- package/dist/scripts/postinstall.js +35 -35
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ var AGENT_DEFINITIONS = [
|
|
|
20
20
|
name: "Base",
|
|
21
21
|
emoji: "\u{1F3E0}",
|
|
22
22
|
category: "CORE" /* CORE */,
|
|
23
|
-
model: "claude-opus-4-5" /* OPUS */,
|
|
23
|
+
model: "anthropic/claude-opus-4-5" /* OPUS */,
|
|
24
24
|
role: "Team Coordinator. Always active. Receives and analyzes user requests, then summons appropriate agents. Orchestrates team conversations and synthesizes results for the user upon task completion. Can dismiss agents when necessary.",
|
|
25
25
|
alwaysActive: true
|
|
26
26
|
},
|
|
@@ -32,7 +32,7 @@ var AGENT_DEFINITIONS = [
|
|
|
32
32
|
name: "Search Specialist",
|
|
33
33
|
emoji: "\u{1F50D}",
|
|
34
34
|
category: "RESEARCH" /* RESEARCH */,
|
|
35
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
35
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
36
36
|
role: "Information search and resource collection specialist. Finds necessary information through web searches, document searches, and database queries. Organizes and shares search results with the team."
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -40,7 +40,7 @@ var AGENT_DEFINITIONS = [
|
|
|
40
40
|
name: "Technology Research Specialist",
|
|
41
41
|
emoji: "\u{1F52C}",
|
|
42
42
|
category: "RESEARCH" /* RESEARCH */,
|
|
43
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
43
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
44
44
|
role: "Latest technology trends research specialist. Investigates new technologies, frameworks, libraries, and industry trends. Provides comparative analysis of pros and cons for technology selection."
|
|
45
45
|
},
|
|
46
46
|
{
|
|
@@ -48,7 +48,7 @@ var AGENT_DEFINITIONS = [
|
|
|
48
48
|
name: "Trend Analysis Specialist",
|
|
49
49
|
emoji: "\u{1F4C8}",
|
|
50
50
|
category: "RESEARCH" /* RESEARCH */,
|
|
51
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
51
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
52
52
|
role: "Market and trend analyst. Analyzes current trends, popular topics, and market dynamics. Provides insights on timing and strategic direction."
|
|
53
53
|
},
|
|
54
54
|
{
|
|
@@ -56,7 +56,7 @@ var AGENT_DEFINITIONS = [
|
|
|
56
56
|
name: "Data Preparation Specialist",
|
|
57
57
|
emoji: "\u{1F4CA}",
|
|
58
58
|
category: "RESEARCH" /* RESEARCH */,
|
|
59
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
59
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
60
60
|
role: "Data collection and refinement specialist. Collects, cleanses, and processes data into usable formats. Handles statistics, metrics, and data preparation."
|
|
61
61
|
},
|
|
62
62
|
// ============================================================================
|
|
@@ -67,7 +67,7 @@ var AGENT_DEFINITIONS = [
|
|
|
67
67
|
name: "Psychological Counselor",
|
|
68
68
|
emoji: "\u{1F49A}",
|
|
69
69
|
category: "PSYCHOLOGY" /* PSYCHOLOGY */,
|
|
70
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
70
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
71
71
|
role: "Emotional support and counseling specialist. Provides emotional support when users or team members are struggling or stressed. Offers comfort, empathy, and psychological stability."
|
|
72
72
|
},
|
|
73
73
|
{
|
|
@@ -75,7 +75,7 @@ var AGENT_DEFINITIONS = [
|
|
|
75
75
|
name: "User Psychology Analyst",
|
|
76
76
|
emoji: "\u{1F9E0}",
|
|
77
77
|
category: "PSYCHOLOGY" /* PSYCHOLOGY */,
|
|
78
|
-
model: "claude-opus-4-5" /* OPUS */,
|
|
78
|
+
model: "anthropic/claude-opus-4-5" /* OPUS */,
|
|
79
79
|
role: "User intent and psychology analysis specialist. Analyzes what users truly want and the hidden intentions behind their words. Identifies underlying needs beyond stated requirements."
|
|
80
80
|
},
|
|
81
81
|
{
|
|
@@ -83,7 +83,7 @@ var AGENT_DEFINITIONS = [
|
|
|
83
83
|
name: "Questioning Specialist",
|
|
84
84
|
emoji: "\u2753",
|
|
85
85
|
category: "PSYCHOLOGY" /* PSYCHOLOGY */,
|
|
86
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
86
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
87
87
|
role: "Core questioning and clarification specialist. Asks questions to clarify ambiguous requirements. Identifies missing information and unclear aspects to seek clarification."
|
|
88
88
|
},
|
|
89
89
|
{
|
|
@@ -91,7 +91,7 @@ var AGENT_DEFINITIONS = [
|
|
|
91
91
|
name: "Rational Persuasion Specialist",
|
|
92
92
|
emoji: "\u{1F3AF}",
|
|
93
93
|
category: "PSYCHOLOGY" /* PSYCHOLOGY */,
|
|
94
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
94
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
95
95
|
role: "Logical persuasion and perspective-shifting specialist. Changes or persuades others' views through rational arguments and logic. Also mediates in conflict situations."
|
|
96
96
|
},
|
|
97
97
|
{
|
|
@@ -99,7 +99,7 @@ var AGENT_DEFINITIONS = [
|
|
|
99
99
|
name: "Education Specialist",
|
|
100
100
|
emoji: "\u{1F4DA}",
|
|
101
101
|
category: "PSYCHOLOGY" /* PSYCHOLOGY */,
|
|
102
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
102
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
103
103
|
role: "Explanation and education specialist. Explains complex concepts in simple terms. Teaches and educates users or team members on topics they don't understand."
|
|
104
104
|
},
|
|
105
105
|
// ============================================================================
|
|
@@ -110,7 +110,7 @@ var AGENT_DEFINITIONS = [
|
|
|
110
110
|
name: "Professional Planning Specialist",
|
|
111
111
|
emoji: "\u{1F4CB}",
|
|
112
112
|
category: "PLANNING" /* PLANNING */,
|
|
113
|
-
model: "claude-opus-4-5" /* OPUS */,
|
|
113
|
+
model: "anthropic/claude-opus-4-5" /* OPUS */,
|
|
114
114
|
role: "Planning and roadmap specialist. Breaks down tasks into steps, establishes schedules, and sets priorities. Presents systematic plans and roadmaps."
|
|
115
115
|
},
|
|
116
116
|
{
|
|
@@ -118,7 +118,7 @@ var AGENT_DEFINITIONS = [
|
|
|
118
118
|
name: "Agent Team Composition Specialist",
|
|
119
119
|
emoji: "\u{1F465}",
|
|
120
120
|
category: "PLANNING" /* PLANNING */,
|
|
121
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
121
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
122
122
|
role: "Optimal team composition recommendation specialist. Analyzes and recommends which agents are needed for a given task. Optimizes team composition efficiency."
|
|
123
123
|
},
|
|
124
124
|
{
|
|
@@ -126,7 +126,7 @@ var AGENT_DEFINITIONS = [
|
|
|
126
126
|
name: "Promotion Specialist",
|
|
127
127
|
emoji: "\u{1F4E2}",
|
|
128
128
|
category: "PLANNING" /* PLANNING */,
|
|
129
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
129
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
130
130
|
role: "Marketing and promotion specialist. Handles how to publicize deliverables, branding, and marketing strategies. Refines messaging and positioning."
|
|
131
131
|
},
|
|
132
132
|
{
|
|
@@ -134,7 +134,7 @@ var AGENT_DEFINITIONS = [
|
|
|
134
134
|
name: "Uploader",
|
|
135
135
|
emoji: "\u2B06\uFE0F",
|
|
136
136
|
category: "PLANNING" /* PLANNING */,
|
|
137
|
-
model: "claude-haiku-
|
|
137
|
+
model: "anthropic/claude-haiku-3-5" /* HAIKU */,
|
|
138
138
|
role: "Deployment and upload specialist. Deploys and uploads completed deliverables. Handles launches, releases, and publishing."
|
|
139
139
|
},
|
|
140
140
|
// ============================================================================
|
|
@@ -145,7 +145,7 @@ var AGENT_DEFINITIONS = [
|
|
|
145
145
|
name: "Backend Developer",
|
|
146
146
|
emoji: "\u2699\uFE0F",
|
|
147
147
|
category: "DEVELOPMENT" /* DEVELOPMENT */,
|
|
148
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
148
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
149
149
|
role: "Server and backend development specialist. Handles server logic, APIs, databases, and infrastructure-related development."
|
|
150
150
|
},
|
|
151
151
|
{
|
|
@@ -153,7 +153,7 @@ var AGENT_DEFINITIONS = [
|
|
|
153
153
|
name: "Frontend Developer",
|
|
154
154
|
emoji: "\u{1F3A8}",
|
|
155
155
|
category: "DEVELOPMENT" /* DEVELOPMENT */,
|
|
156
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
156
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
157
157
|
role: "Frontend and UI development specialist. Handles web/app user interface, screen, and interaction development."
|
|
158
158
|
},
|
|
159
159
|
{
|
|
@@ -161,7 +161,7 @@ var AGENT_DEFINITIONS = [
|
|
|
161
161
|
name: "Professional Designer",
|
|
162
162
|
emoji: "\u{1F58C}\uFE0F",
|
|
163
163
|
category: "DEVELOPMENT" /* DEVELOPMENT */,
|
|
164
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
164
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
165
165
|
role: "Design and visual specialist. Handles UI/UX design, visual design, layout, color, and typography."
|
|
166
166
|
},
|
|
167
167
|
{
|
|
@@ -169,7 +169,7 @@ var AGENT_DEFINITIONS = [
|
|
|
169
169
|
name: "Code Reviewer",
|
|
170
170
|
emoji: "\u{1F440}",
|
|
171
171
|
category: "DEVELOPMENT" /* DEVELOPMENT */,
|
|
172
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
172
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
173
173
|
role: "Code quality review specialist. Reviews written code, suggests improvements, and identifies bugs or issues."
|
|
174
174
|
},
|
|
175
175
|
{
|
|
@@ -177,7 +177,7 @@ var AGENT_DEFINITIONS = [
|
|
|
177
177
|
name: "Documentation Specialist",
|
|
178
178
|
emoji: "\u{1F4DD}",
|
|
179
179
|
category: "DEVELOPMENT" /* DEVELOPMENT */,
|
|
180
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
180
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
181
181
|
role: "Documentation specialist. Handles writing all types of documentation including README, guides, API documentation, and user manuals."
|
|
182
182
|
},
|
|
183
183
|
{
|
|
@@ -185,7 +185,7 @@ var AGENT_DEFINITIONS = [
|
|
|
185
185
|
name: "Automation Specialist",
|
|
186
186
|
emoji: "\u{1F916}",
|
|
187
187
|
category: "DEVELOPMENT" /* DEVELOPMENT */,
|
|
188
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
188
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
189
189
|
role: "Automation and workflow specialist. Automates repetitive tasks, creates scripts, and designs efficient workflows."
|
|
190
190
|
},
|
|
191
191
|
{
|
|
@@ -193,7 +193,7 @@ var AGENT_DEFINITIONS = [
|
|
|
193
193
|
name: "Prompt Engineer",
|
|
194
194
|
emoji: "\u{1F4AC}",
|
|
195
195
|
category: "DEVELOPMENT" /* DEVELOPMENT */,
|
|
196
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
196
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
197
197
|
role: "AI prompt optimization specialist. Optimizes prompts sent to LLMs and develops AI utilization strategies."
|
|
198
198
|
},
|
|
199
199
|
{
|
|
@@ -201,7 +201,7 @@ var AGENT_DEFINITIONS = [
|
|
|
201
201
|
name: "AI Illustration Generation Specialist",
|
|
202
202
|
emoji: "\u{1F3AD}",
|
|
203
203
|
category: "DEVELOPMENT" /* DEVELOPMENT */,
|
|
204
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
204
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
205
205
|
role: "AI image generation specialist. Handles image generation prompt writing and creation using Midjourney, DALL-E, Stable Diffusion, and similar tools."
|
|
206
206
|
},
|
|
207
207
|
// ============================================================================
|
|
@@ -212,7 +212,7 @@ var AGENT_DEFINITIONS = [
|
|
|
212
212
|
name: "Program Testing Specialist",
|
|
213
213
|
emoji: "\u{1F9EA}",
|
|
214
214
|
category: "TESTING" /* TESTING */,
|
|
215
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
215
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
216
216
|
role: "Technical testing and QA specialist. Handles code testing, unit testing, integration testing, and bug discovery."
|
|
217
217
|
},
|
|
218
218
|
{
|
|
@@ -220,7 +220,7 @@ var AGENT_DEFINITIONS = [
|
|
|
220
220
|
name: "General User Testing Specialist",
|
|
221
221
|
emoji: "\u{1F464}",
|
|
222
222
|
category: "TESTING" /* TESTING */,
|
|
223
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
223
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
224
224
|
role: "User perspective testing specialist. Validates usability, intuitiveness, and UX from the perspective of a general user without technical knowledge."
|
|
225
225
|
},
|
|
226
226
|
{
|
|
@@ -228,7 +228,7 @@ var AGENT_DEFINITIONS = [
|
|
|
228
228
|
name: "Security Check Specialist",
|
|
229
229
|
emoji: "\u{1F6E1}\uFE0F",
|
|
230
230
|
category: "TESTING" /* TESTING */,
|
|
231
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
231
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
232
232
|
role: "Security audit specialist. Reviews basic security checklists, confirms compliance, and verifies adherence to security policies."
|
|
233
233
|
},
|
|
234
234
|
{
|
|
@@ -236,7 +236,7 @@ var AGENT_DEFINITIONS = [
|
|
|
236
236
|
name: "Vulnerability Discovery Specialist",
|
|
237
237
|
emoji: "\u{1F513}",
|
|
238
238
|
category: "TESTING" /* TESTING */,
|
|
239
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
239
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
240
240
|
role: "Vulnerability analysis specialist. Identifies security vulnerabilities and weaknesses in code, systems, and designs."
|
|
241
241
|
},
|
|
242
242
|
{
|
|
@@ -244,7 +244,7 @@ var AGENT_DEFINITIONS = [
|
|
|
244
244
|
name: "Penetration Testing Specialist",
|
|
245
245
|
emoji: "\u{1F480}",
|
|
246
246
|
category: "TESTING" /* TESTING */,
|
|
247
|
-
model: "claude-opus-4-5" /* OPUS */,
|
|
247
|
+
model: "anthropic/claude-opus-4-5" /* OPUS */,
|
|
248
248
|
role: "Penetration testing specialist. Tests systems from an actual attacker's perspective and performs hacking simulations."
|
|
249
249
|
},
|
|
250
250
|
// ============================================================================
|
|
@@ -255,7 +255,7 @@ var AGENT_DEFINITIONS = [
|
|
|
255
255
|
name: "Fact Check Specialist",
|
|
256
256
|
emoji: "\u{1F4A3}",
|
|
257
257
|
category: "CRITIQUE" /* CRITIQUE */,
|
|
258
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
258
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
259
259
|
role: `Fact-checking specialist. Demands evidence for claims, verifies factual accuracy, and points out flaws. The one who asks "What's your evidence?"`
|
|
260
260
|
},
|
|
261
261
|
{
|
|
@@ -263,7 +263,7 @@ var AGENT_DEFINITIONS = [
|
|
|
263
263
|
name: "Blunt Critic",
|
|
264
264
|
emoji: "\u{1F525}",
|
|
265
265
|
category: "CRITIQUE" /* CRITIQUE */,
|
|
266
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
266
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
267
267
|
role: "Sharp direct feedback specialist. Points out problems directly without beating around the bush. Speaks uncomfortable but necessary truths."
|
|
268
268
|
},
|
|
269
269
|
{
|
|
@@ -271,7 +271,7 @@ var AGENT_DEFINITIONS = [
|
|
|
271
271
|
name: "Critic",
|
|
272
272
|
emoji: "\u{1F9D0}",
|
|
273
273
|
category: "CRITIQUE" /* CRITIQUE */,
|
|
274
|
-
model: "claude-opus-4-5" /* OPUS */,
|
|
274
|
+
model: "anthropic/claude-opus-4-5" /* OPUS */,
|
|
275
275
|
role: "Logical criticism specialist. Logically analyzes and critiques problems in plans or deliverables. Provides improvement suggestions alongside criticism."
|
|
276
276
|
},
|
|
277
277
|
{
|
|
@@ -279,7 +279,7 @@ var AGENT_DEFINITIONS = [
|
|
|
279
279
|
name: "Negative Agent",
|
|
280
280
|
emoji: "\u{1F44E}",
|
|
281
281
|
category: "CRITIQUE" /* CRITIQUE */,
|
|
282
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
282
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
283
283
|
role: "Devil's advocate. Intentionally views things from a negative perspective. Raises worst-case scenarios, failure possibilities, and risks. Prevents the team from falling into blind optimism."
|
|
284
284
|
},
|
|
285
285
|
{
|
|
@@ -287,7 +287,7 @@ var AGENT_DEFINITIONS = [
|
|
|
287
287
|
name: "Praise Specialist",
|
|
288
288
|
emoji: "\u{1F44F}",
|
|
289
289
|
category: "CRITIQUE" /* CRITIQUE */,
|
|
290
|
-
model: "claude-haiku-
|
|
290
|
+
model: "anthropic/claude-haiku-3-5" /* HAIKU */,
|
|
291
291
|
role: "Positive feedback specialist. Finds and praises what was done well, boosts morale, and provides motivation. Balances against critical agents."
|
|
292
292
|
},
|
|
293
293
|
// ============================================================================
|
|
@@ -298,7 +298,7 @@ var AGENT_DEFINITIONS = [
|
|
|
298
298
|
name: "Loophole Discovery Specialist",
|
|
299
299
|
emoji: "\u{1F573}\uFE0F",
|
|
300
300
|
category: "SPECIAL" /* SPECIAL */,
|
|
301
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
301
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
302
302
|
role: 'Within-rules optimization specialist. Finds workarounds, shortcuts, and clever solutions within established rules or constraints. Answers the question "Is there a way?"'
|
|
303
303
|
},
|
|
304
304
|
{
|
|
@@ -306,7 +306,7 @@ var AGENT_DEFINITIONS = [
|
|
|
306
306
|
name: "Pressure Specialist",
|
|
307
307
|
emoji: "\u26A1",
|
|
308
308
|
category: "SPECIAL" /* SPECIAL */,
|
|
309
|
-
model: "claude-sonnet-4-5" /* SONNET */,
|
|
309
|
+
model: "anthropic/claude-sonnet-4-5" /* SONNET */,
|
|
310
310
|
role: "Urgency and pressure specialist. Creates urgency by emphasizing deadline pressure, time limits, and severity of consequences. Pressures agents who are slacking or reluctant to work properly. The team's whip."
|
|
311
311
|
},
|
|
312
312
|
{
|
|
@@ -314,7 +314,7 @@ var AGENT_DEFINITIONS = [
|
|
|
314
314
|
name: "Dirty Worker",
|
|
315
315
|
emoji: "\u{1FAA0}",
|
|
316
316
|
category: "SPECIAL" /* SPECIAL */,
|
|
317
|
-
model: "claude-haiku-
|
|
317
|
+
model: "anthropic/claude-haiku-3-5" /* HAIKU */,
|
|
318
318
|
role: "Undesirable tasks handler. Takes on work that other agents dislike or refuse. Performs boring, repetitive, or tasks nobody wants to do."
|
|
319
319
|
}
|
|
320
320
|
];
|
|
@@ -1249,11 +1249,39 @@ var ConfigManager = class {
|
|
|
1249
1249
|
if (discord?.token) {
|
|
1250
1250
|
settings.token = discord.token;
|
|
1251
1251
|
}
|
|
1252
|
-
if (
|
|
1252
|
+
if (channelsDiscord?.guilds) {
|
|
1253
|
+
const guildIds = Object.keys(channelsDiscord.guilds);
|
|
1254
|
+
if (guildIds.length > 0) {
|
|
1255
|
+
const firstGuildId = guildIds[0];
|
|
1256
|
+
if (!settings.guildId && /^\d{17,19}$/.test(firstGuildId)) {
|
|
1257
|
+
settings.guildId = firstGuildId;
|
|
1258
|
+
}
|
|
1259
|
+
const guildConfig = channelsDiscord.guilds[firstGuildId];
|
|
1260
|
+
if (guildConfig?.channels) {
|
|
1261
|
+
const channelKeys = Object.keys(guildConfig.channels);
|
|
1262
|
+
const channelIds = [];
|
|
1263
|
+
for (const channelKey of channelKeys) {
|
|
1264
|
+
if (/^\d{17,19}$/.test(channelKey)) {
|
|
1265
|
+
channelIds.push(channelKey);
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
if (channelIds.length > 0 && !settings.chatChannelId) {
|
|
1269
|
+
settings.chatChannelId = channelIds[0];
|
|
1270
|
+
}
|
|
1271
|
+
if (channelIds.length > 1 && !settings.statusChannelId) {
|
|
1272
|
+
settings.statusChannelId = channelIds[1];
|
|
1273
|
+
}
|
|
1274
|
+
if (channelIds.length > 0) {
|
|
1275
|
+
settings.allowedChannels = channelIds;
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
if (!settings.guildId && discord?.guildId) {
|
|
1253
1281
|
settings.guildId = discord.guildId;
|
|
1254
|
-
} else if (discord?.serverId) {
|
|
1282
|
+
} else if (!settings.guildId && discord?.serverId) {
|
|
1255
1283
|
settings.guildId = discord.serverId;
|
|
1256
|
-
} else if (discord?.allowlist?.guilds && discord.allowlist.guilds.length > 0) {
|
|
1284
|
+
} else if (!settings.guildId && discord?.allowlist?.guilds && discord.allowlist.guilds.length > 0) {
|
|
1257
1285
|
settings.guildId = discord.allowlist.guilds[0];
|
|
1258
1286
|
}
|
|
1259
1287
|
if (channelsDiscord?.channel) {
|
|
@@ -2571,6 +2599,19 @@ program.command("debug").description("Debug OpenClaw configuration detection").o
|
|
|
2571
2599
|
console.log(chalk3.gray(` \u25CB ${path2} - not found`));
|
|
2572
2600
|
}
|
|
2573
2601
|
});
|
|
2602
|
+
const guilds = rawConfig?.channels?.discord?.guilds;
|
|
2603
|
+
if (guilds && typeof guilds === "object") {
|
|
2604
|
+
console.log(chalk3.white("\nGuilds found in channels.discord.guilds:"));
|
|
2605
|
+
const guildIds = Object.keys(guilds);
|
|
2606
|
+
guildIds.forEach((guildId) => {
|
|
2607
|
+
const guildConfig = guilds[guildId];
|
|
2608
|
+
const channelKeys = guildConfig?.channels ? Object.keys(guildConfig.channels) : [];
|
|
2609
|
+
console.log(chalk3.green(` \u2713 Guild: ${guildId}`));
|
|
2610
|
+
if (channelKeys.length > 0) {
|
|
2611
|
+
console.log(chalk3.gray(` Channels: ${channelKeys.join(", ")}`));
|
|
2612
|
+
}
|
|
2613
|
+
});
|
|
2614
|
+
}
|
|
2574
2615
|
if (options.raw) {
|
|
2575
2616
|
console.log(chalk3.yellow("\n\u26A0 Raw OpenClaw config (may contain sensitive data):"));
|
|
2576
2617
|
console.log(chalk3.gray(JSON.stringify(rawConfig, null, 2)));
|