@interactive-inc/claude-funnel 0.68.0 → 0.68.2
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/bin.js +165 -165
- package/dist/claude.js +1 -1
- package/dist/connectors/slack.js +1 -1
- package/dist/diagnostics.js +1 -1
- package/dist/{funnel-diagnostics-CAG7hJP0.js → funnel-diagnostics-DremV1of.js} +23 -15
- package/dist/gateway/daemon.js +29 -29
- package/dist/gateway.js +1 -1
- package/dist/index.js +2 -2
- package/dist/{slack-connector-CC3V2VXQ.js → slack-connector-BTtUiXAU.js} +1 -1
- package/dist/{sqlite-diagnostic-log-Qs4cf9I_.js → sqlite-diagnostic-log-B4p3bdCq.js} +3 -9
- package/package.json +1 -1
package/dist/gateway.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as gatewayLoopbackUrl } from "./loopback-fetch-HP-bo9Kv.js";
|
|
2
|
-
import { S as connectorRawEventSchema, _ as MemoryConnectorDiagnosticLog, a as DEFAULT_GATEWAY_TOKEN_PATH, b as connectorConnectionEventSchema, c as FunnelListenerRegistry, d as funnelEventSchema, f as FunnelBroadcaster, g as publishResponseSchema, h as publishRequestSchema, i as channelWsUrl, l as SqliteFunnelEventLog, m as FunnelChannelPublisher, n as MemoryFunnelEventLog, o as FunnelGatewayToken, r as channelWsProtocols, s as FunnelGatewayServer, t as SqliteConnectorDiagnosticLog, u as FunnelEventLog, v as CONNECTOR_CONNECTION_STATUSES, x as connectorProcessedEventSchema, y as ConnectorDiagnosticLog } from "./sqlite-diagnostic-log-
|
|
2
|
+
import { S as connectorRawEventSchema, _ as MemoryConnectorDiagnosticLog, a as DEFAULT_GATEWAY_TOKEN_PATH, b as connectorConnectionEventSchema, c as FunnelListenerRegistry, d as funnelEventSchema, f as FunnelBroadcaster, g as publishResponseSchema, h as publishRequestSchema, i as channelWsUrl, l as SqliteFunnelEventLog, m as FunnelChannelPublisher, n as MemoryFunnelEventLog, o as FunnelGatewayToken, r as channelWsProtocols, s as FunnelGatewayServer, t as SqliteConnectorDiagnosticLog, u as FunnelEventLog, v as CONNECTOR_CONNECTION_STATUSES, x as connectorProcessedEventSchema, y as ConnectorDiagnosticLog } from "./sqlite-diagnostic-log-B4p3bdCq.js";
|
|
3
3
|
export { CONNECTOR_CONNECTION_STATUSES, ConnectorDiagnosticLog, DEFAULT_GATEWAY_TOKEN_PATH, FunnelBroadcaster, FunnelChannelPublisher, FunnelEventLog, FunnelGatewayServer, FunnelGatewayToken, FunnelListenerRegistry, MemoryConnectorDiagnosticLog, MemoryFunnelEventLog, SqliteConnectorDiagnosticLog, SqliteFunnelEventLog, channelWsProtocols, channelWsUrl, connectorConnectionEventSchema, connectorProcessedEventSchema, connectorRawEventSchema, funnelEventSchema, gatewayLoopbackUrl, publishRequestSchema, publishResponseSchema };
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { a as FunnelConnectorTypeMismatchError, c as FunnelTokenCollisionError,
|
|
|
7
7
|
import { a as FunnelMcp, o as FunnelFileProcessGuard, s as FunnelClaude, t as renderYaml } from "./yaml-render-DxxRQT-V.js";
|
|
8
8
|
import { n as sessionFileExists, t as FunnelProfiles } from "./profiles-KpN7_gBw.js";
|
|
9
9
|
import { a as queryRows, i as previewOf, n as diagnosticEventOfProcessed, o as toDiagnosticConnectionError, r as diagnosticEventOfRaw, s as toDiagnosticEvent, t as diagnosticConnectionEventOf } from "./diagnostic-event-CxMM5Bl2.js";
|
|
10
|
-
import { t as FunnelDiagnostics } from "./funnel-diagnostics-
|
|
10
|
+
import { t as FunnelDiagnostics } from "./funnel-diagnostics-DremV1of.js";
|
|
11
11
|
import { t as FunnelDoctor } from "./funnel-doctor-Csw5qjcH.js";
|
|
12
12
|
import { t as FunnelDocs } from "./funnel-docs-CI4hMkhq.js";
|
|
13
13
|
import { a as FunnelTokenPrompter, i as FunnelLocalConfigSync, n as MemoryFunnelTokenPrompter, o as FunnelLocalConfig, r as NodeFunnelTokenPrompter, t as funnelJsonSchema } from "./local-config-json-schema-_-YVHX4c.js";
|
|
@@ -15,7 +15,7 @@ import { t as discordConnectorSchema } from "./discord-connector-schema-saAGuPmJ
|
|
|
15
15
|
import { t as ghConnectorSchema } from "./gh-connector-schema-DmZTrzUu.js";
|
|
16
16
|
import { t as slackConnectorSchema } from "./slack-connector-schema-EGVuuqSX.js";
|
|
17
17
|
import { t as FunnelRecovery } from "./funnel-recovery-DYbSYGWC.js";
|
|
18
|
-
import { C as funnelTmpDir, S as connectorRawEventSchema, _ as MemoryConnectorDiagnosticLog, a as DEFAULT_GATEWAY_TOKEN_PATH, b as connectorConnectionEventSchema, c as FunnelListenerRegistry, d as funnelEventSchema, f as FunnelBroadcaster, g as publishResponseSchema, h as publishRequestSchema, i as channelWsUrl, l as SqliteFunnelEventLog, m as FunnelChannelPublisher, n as MemoryFunnelEventLog, o as FunnelGatewayToken, p as requireBearerToken, r as channelWsProtocols, s as FunnelGatewayServer, t as SqliteConnectorDiagnosticLog, u as FunnelEventLog, v as CONNECTOR_CONNECTION_STATUSES, x as connectorProcessedEventSchema, y as ConnectorDiagnosticLog } from "./sqlite-diagnostic-log-
|
|
18
|
+
import { C as funnelTmpDir, S as connectorRawEventSchema, _ as MemoryConnectorDiagnosticLog, a as DEFAULT_GATEWAY_TOKEN_PATH, b as connectorConnectionEventSchema, c as FunnelListenerRegistry, d as funnelEventSchema, f as FunnelBroadcaster, g as publishResponseSchema, h as publishRequestSchema, i as channelWsUrl, l as SqliteFunnelEventLog, m as FunnelChannelPublisher, n as MemoryFunnelEventLog, o as FunnelGatewayToken, p as requireBearerToken, r as channelWsProtocols, s as FunnelGatewayServer, t as SqliteConnectorDiagnosticLog, u as FunnelEventLog, v as CONNECTOR_CONNECTION_STATUSES, x as connectorProcessedEventSchema, y as ConnectorDiagnosticLog } from "./sqlite-diagnostic-log-B4p3bdCq.js";
|
|
19
19
|
import { t as FunnelConnectorAdapter } from "./connector-adapter-BL2ehMej.js";
|
|
20
20
|
import { t as FunnelConnectorListener } from "./connector-listener-BcQMzY6Q.js";
|
|
21
21
|
import { t as FunnelSlackEventProcessor } from "./slack-event-processor-Cs_YuI3w.js";
|
|
@@ -219,7 +219,7 @@ var FunnelFlumeSlackListener = class extends FunnelFlumeSourceListener {
|
|
|
219
219
|
}
|
|
220
220
|
})).text();
|
|
221
221
|
} catch (error) {
|
|
222
|
-
this.diagnostics.recordConnection("
|
|
222
|
+
this.diagnostics.recordConnection("error", errorMessageOf(error));
|
|
223
223
|
throw error;
|
|
224
224
|
}
|
|
225
225
|
const parsed = authTestResponseSchema.safeParse(safeJsonParse(text));
|
|
@@ -1198,19 +1198,13 @@ const channelsPublishHandler = factory.createHandlers(zParam(z.object({ channel:
|
|
|
1198
1198
|
//#region lib/gateway/routes/debug.ts
|
|
1199
1199
|
const buildChannelDiagnosis = (channel) => {
|
|
1200
1200
|
const rootCause = (channel.connectionErrors[channel.connectionErrors.length - 1] ?? null)?.detail ?? null;
|
|
1201
|
-
if (channel.connectors.length
|
|
1202
|
-
status: "warn",
|
|
1203
|
-
message: "no connectors configured on this channel",
|
|
1204
|
-
nextActions: [`fnl channels ${channel.name} connectors add <name> --type=slack ...`],
|
|
1205
|
-
rootCause: null
|
|
1206
|
-
};
|
|
1207
|
-
if (!channel.listener) return {
|
|
1201
|
+
if (channel.connectors.length > 0 && !channel.listener) return {
|
|
1208
1202
|
status: "error",
|
|
1209
1203
|
message: "no listener running for this channel",
|
|
1210
1204
|
nextActions: ["fnl gateway restart"],
|
|
1211
1205
|
rootCause
|
|
1212
1206
|
};
|
|
1213
|
-
if (!channel.listener.alive) return {
|
|
1207
|
+
if (channel.listener && !channel.listener.alive) return {
|
|
1214
1208
|
status: "error",
|
|
1215
1209
|
message: "listener is dead",
|
|
1216
1210
|
nextActions: ["fnl gateway logs", "fnl gateway restart"],
|
|
@@ -1222,7 +1216,7 @@ const buildChannelDiagnosis = (channel) => {
|
|
|
1222
1216
|
nextActions: [`fnl claude --channel ${channel.name}`],
|
|
1223
1217
|
rootCause: null
|
|
1224
1218
|
};
|
|
1225
|
-
if (channel.listener.errors > 0) return {
|
|
1219
|
+
if (channel.listener && channel.listener.errors > 0) return {
|
|
1226
1220
|
status: "warn",
|
|
1227
1221
|
message: "listener has errors",
|
|
1228
1222
|
nextActions: ["fnl gateway logs"],
|
package/package.json
CHANGED