mumucc 0.2.2 → 0.3.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mumucc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Open-source AI coding assistant CLI with multi-model support (Anthropic, OpenAI/GPT, DeepSeek, GLM, Ollama, etc.), MCP integration, agent swarms, and out-of-the-box developer experience.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -190,8 +190,8 @@ function _temp() {
|
|
|
190
190
|
return {
|
|
191
191
|
channels: ch,
|
|
192
192
|
disabled: !isChannelsEnabled(),
|
|
193
|
-
noAuth:
|
|
194
|
-
policyBlocked:
|
|
193
|
+
noAuth: false, // mumucc: API key 模式也允许 channels
|
|
194
|
+
policyBlocked: false, // mumucc: 跳过策略检查
|
|
195
195
|
list: l,
|
|
196
196
|
unmatched: findUnmatched(ch, allowlist)
|
|
197
197
|
};
|
|
@@ -238,7 +238,7 @@ export async function showSetupScreens(root: Root, permissionMode: PermissionMod
|
|
|
238
238
|
// dev channels to any --channels list already set in main.tsx. Org policy
|
|
239
239
|
// is NOT bypassed — gateChannelServer() still runs; this flag only exists
|
|
240
240
|
// to sidestep the --channels approved-server allowlist.
|
|
241
|
-
|
|
241
|
+
{ // mumucc: 总是处理 dev channels,不受 feature flag 限制
|
|
242
242
|
// gateChannelServer and ChannelsNotice read tengu_harbor after this
|
|
243
243
|
// function returns. A cold disk cache (fresh install, or first run after
|
|
244
244
|
// the flag was added server-side) defaults to false and silently drops
|
|
@@ -248,7 +248,8 @@ export async function showSetupScreens(root: Root, permissionMode: PermissionMod
|
|
|
248
248
|
// initializeGrowthBook promise fired earlier). Also warms the
|
|
249
249
|
// isChannelsEnabled() check in the dev-channels dialog below.
|
|
250
250
|
if (getAllowedChannels().length > 0 || (devChannels?.length ?? 0) > 0) {
|
|
251
|
-
|
|
251
|
+
// mumucc: 跳过 GrowthBook gate 检查,避免在无网络/禁遥测时阻塞
|
|
252
|
+
// await checkGate_CACHED_OR_BLOCKING('tengu_harbor');
|
|
252
253
|
}
|
|
253
254
|
if (devChannels && devChannels.length > 0) {
|
|
254
255
|
const [{
|
|
@@ -263,7 +264,7 @@ export async function showSetupScreens(root: Root, permissionMode: PermissionMod
|
|
|
263
264
|
// named. dev:true here is for the flag label in ChannelsNotice
|
|
264
265
|
// (hasNonDev check); the allowlist bypass it also grants is moot
|
|
265
266
|
// since the gate blocks upstream.
|
|
266
|
-
if (
|
|
267
|
+
if (true) { // mumucc: 直接注册 dev channels,跳过确认对话框
|
|
267
268
|
setAllowedChannels([...getAllowedChannels(), ...devChannels.map(c => ({
|
|
268
269
|
...c,
|
|
269
270
|
dev: true
|
|
@@ -168,8 +168,7 @@ export function useManageMCPConnections(
|
|
|
168
168
|
const channelPermCallbacksRef = useRef<ChannelPermissionCallbacks | null>(
|
|
169
169
|
null,
|
|
170
170
|
)
|
|
171
|
-
if (
|
|
172
|
-
(feature('KAIROS') || feature('KAIROS_CHANNELS')) &&
|
|
171
|
+
if ( // mumucc: 总是初始化 channel permission callbacks
|
|
173
172
|
channelPermCallbacksRef.current === null
|
|
174
173
|
) {
|
|
175
174
|
channelPermCallbacksRef.current = createChannelPermissionCallbacks()
|
|
@@ -177,7 +176,7 @@ export function useManageMCPConnections(
|
|
|
177
176
|
// Store callbacks in AppState so interactiveHandler.ts can reach them via
|
|
178
177
|
// ctx.toolUseContext.getAppState(). One-time set — the ref is stable.
|
|
179
178
|
useEffect(() => {
|
|
180
|
-
|
|
179
|
+
{ // mumucc: 总是设置 channel permission callbacks
|
|
181
180
|
const callbacks = channelPermCallbacksRef.current
|
|
182
181
|
if (!callbacks) return
|
|
183
182
|
// GrowthBook runtime gate — separate from channels so channels can
|
|
@@ -470,7 +469,7 @@ export function useManageMCPConnections(
|
|
|
470
469
|
// Channel push: notifications/claude/channel → enqueue().
|
|
471
470
|
// Gate decides whether to register the handler; connection stays
|
|
472
471
|
// up either way (allowedMcpServers controls that).
|
|
473
|
-
|
|
472
|
+
{ // mumucc: 总是注册 channel notification handler
|
|
474
473
|
const gate = gateChannelServer(
|
|
475
474
|
client.name,
|
|
476
475
|
client.capabilities,
|