@interactive-inc/claude-funnel 0.51.0 → 0.52.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/dist/gateway.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { _ as connectorConnectionEventSchema, a as ConnectorConnectionStatus, c as ConnectorProcessedQuery, d as ConnectorRawEvent, f as ConnectorRawQuery, g as StoredRawEvent, h as StoredProcessedEvent, i as ConnectorConnectionRecord, l as ConnectorProcessedRecord, m as StoredConnectionEvent, n as ConnectorConnectionEvent, o as ConnectorDiagnosticLog, p as ConnectorRawRecord, r as ConnectorConnectionQuery, s as ConnectorProcessedEvent, t as CONNECTOR_CONNECTION_STATUSES, u as ConnectorQuery, v as connectorProcessedEventSchema, y as connectorRawEventSchema } from "./connector-diagnostic-log-yTOojKUR.js";
2
- import { $ as FunnelGatewayToken, G as SqliteFunnelEventLog, H as MemoryConnectorDiagnosticLog, J as PublishResponse, K as FunnelChannelPublisher, Q as DEFAULT_GATEWAY_TOKEN_PATH, U as SqliteConnectorDiagnosticLog, W as MemoryFunnelEventLog, X as publishRequestSchema, Y as PublishResult, Z as publishResponseSchema, at as Env, ct as FunnelListenerSupervisor, dt as FunnelBroadcaster, et as FunnelGatewayServer, ft as ReplayableEvent, it as funnelEventSchema, lt as BroadcastEvent, nt as FunnelEventLog, ot as GatewayEmitInput, q as PublishRequest, rt as FunnelEventRecord, st as GatewayRouteDeps, t as GatewayApp, tt as FunnelEvent, ut as BroadcastSubscriber } from "./index-BM0-f6KL.js";
2
+ import { $ as FunnelGatewayToken, G as SqliteFunnelEventLog, H as MemoryConnectorDiagnosticLog, J as PublishResponse, K as FunnelChannelPublisher, Q as DEFAULT_GATEWAY_TOKEN_PATH, U as SqliteConnectorDiagnosticLog, W as MemoryFunnelEventLog, X as publishRequestSchema, Y as PublishResult, Z as publishResponseSchema, at as Env, ct as FunnelListenerSupervisor, dt as FunnelBroadcaster, et as FunnelGatewayServer, ft as ReplayableEvent, it as funnelEventSchema, lt as BroadcastEvent, nt as FunnelEventLog, ot as GatewayEmitInput, q as PublishRequest, rt as FunnelEventRecord, st as GatewayRouteDeps, t as GatewayApp, tt as FunnelEvent, ut as BroadcastSubscriber } from "./index-NFs2jzCa.js";
3
3
  export { BroadcastEvent, BroadcastSubscriber, CONNECTOR_CONNECTION_STATUSES, ConnectorConnectionEvent, ConnectorConnectionQuery, ConnectorConnectionRecord, ConnectorConnectionStatus, ConnectorDiagnosticLog, ConnectorProcessedEvent, ConnectorProcessedQuery, ConnectorProcessedRecord, ConnectorQuery, ConnectorRawEvent, ConnectorRawQuery, ConnectorRawRecord, DEFAULT_GATEWAY_TOKEN_PATH, FunnelBroadcaster, FunnelChannelPublisher, FunnelEvent, FunnelEventLog, FunnelEventRecord, FunnelGatewayServer, FunnelGatewayToken, FunnelListenerSupervisor, type GatewayApp, type GatewayEmitInput, type GatewayRouteDeps, type Env as GatewayServerEnv, MemoryConnectorDiagnosticLog, MemoryFunnelEventLog, PublishRequest, PublishResponse, PublishResult, ReplayableEvent, SqliteConnectorDiagnosticLog, SqliteFunnelEventLog, StoredConnectionEvent, StoredProcessedEvent, StoredRawEvent, connectorConnectionEventSchema, connectorProcessedEventSchema, connectorRawEventSchema, funnelEventSchema, publishRequestSchema, publishResponseSchema };
@@ -1,5 +1,5 @@
1
1
  import { n as FunnelIdGenerator, s as Settings, t as FunnelSettingsReader } from "./settings-reader-BSU6JyvM.js";
2
- import { t as FunnelClaude } from "./claude-CB1WkV77.js";
2
+ import { n as FunnelClaude, t as FileProcessGuard } from "./file-process-guard-BgrVHe9I.js";
3
3
  import { S as FunnelLogger, b as FunnelConnectorListener, c as ConnectorProcessedQuery, f as ConnectorRawQuery, g as StoredRawEvent, h as StoredProcessedEvent, i as ConnectorConnectionRecord, l as ConnectorProcessedRecord, m as StoredConnectionEvent, o as ConnectorDiagnosticLog, p as ConnectorRawRecord, r as ConnectorConnectionQuery } from "./connector-diagnostic-log-yTOojKUR.js";
4
4
  import { a as RunOptions, i as ProcessSnapshot, n as DetachOptions, o as RunResult, r as FunnelProcessRunner, t as AttachOptions } from "./process-runner-DfniuWVU.js";
5
5
  import { n as FunnelFileSystem, t as FileStat } from "./file-system-BeOKXjlV.js";
@@ -891,6 +891,12 @@ declare class Funnel {
891
891
  eventLog?: FunnelEventLog;
892
892
  extraRoutes?: Hono<Env$1>;
893
893
  }): FunnelGatewayServer;
894
+ /**
895
+ * Create a ProcessGuard scoped to this Funnel's home directory.
896
+ * Useful for hosts that need to check or manage singleton PID files
897
+ * independently of FunnelClaude (e.g. checking if a named profile is running).
898
+ */
899
+ createProcessGuard(): FileProcessGuard;
894
900
  /**
895
901
  * Run the gateway daemon in the foreground (tied to this terminal).
896
902
  * For background daemon management, use `funnel.gateway.start()` instead.
@@ -1246,7 +1252,7 @@ declare const routes: _$hono_hono_base0.HonoBase<Env, {
1246
1252
  connectors: {
1247
1253
  id: string;
1248
1254
  name: string;
1249
- type: "slack" | "gh" | "schedule" | "discord";
1255
+ type: "schedule" | "slack" | "discord" | "gh";
1250
1256
  }[];
1251
1257
  }[];
1252
1258
  outputFormat: "json";
package/dist/index.d.ts CHANGED
@@ -7,5 +7,5 @@ import { a as ScheduleEntry, c as scheduleEntrySchema, i as ScheduleConnectorCon
7
7
  import { a as slackConnectorSchema, c as SlackProcessedEmit, d as SlackSkipReason, i as SlackConnectorConfig, l as SlackProcessedSkip, o as FunnelSlackEventProcessor, s as SlackProcessed, u as SlackRawEvent } from "./slack-listener-Bv5xI9gC.js";
8
8
  import { n as discordConnectorSchema, t as DiscordConnectorConfig } from "./discord-connector-schema-R0Uu-3ns.js";
9
9
  import { n as ghConnectorSchema, t as GhConnectorConfig } from "./gh-connector-schema-eoTtHbY6.js";
10
- import { $ as FunnelGatewayToken, A as FUNNEL_DIR, B as ListenerOpResult, C as ProcessListStub, D as MockFunnelSettingsReader, E as NodeFunnelFileSystem, F as Funnel, G as SqliteFunnelEventLog, H as MemoryConnectorDiagnosticLog, I as FunnelDebugReport, J as PublishResponse, K as FunnelChannelPublisher, L as FunnelListenersClient, M as SETTINGS_PATH, N as resolveFunnelDir, O as createSettings, P as resolveFunnelPort, Q as DEFAULT_GATEWAY_TOKEN_PATH, R as ListListenersResult, S as MemoryProcessSyncHandler, T as MemoryFunnelFileSystem, U as SqliteConnectorDiagnosticLog, V as FunnelGateway, W as MemoryFunnelEventLog, X as publishRequestSchema, Y as PublishResult, Z as publishResponseSchema, _ as AliveStub, a as toRequest, at as Env$1, b as MemoryProcessHandler, c as ConnectorDiagnosticSqlReader, ct as FunnelListenerSupervisor, d as MemoryFunnelClock, dt as FunnelBroadcaster, et as FunnelGatewayServer, f as NodeFunnelClock, ft as ReplayableEvent, g as NodeFunnelLogger, h as MemoryFunnelLogger, i as queryToCliArgs, it as funnelEventSchema, j as FunnelSettingsStore, k as DEFAULT_GATEWAY_PORT, l as MemoryFunnelIdGenerator, lt as BroadcastEvent, m as LogEntry, n as CliApp, nt as FunnelEventLog, o as Env, ot as GatewayEmitInput, p as NoopFunnelLogger, pt as OnFunnelError, q as PublishRequest, r as routes, rt as FunnelEventRecord, s as factory, st as GatewayRouteDeps, t as GatewayApp, tt as FunnelEvent, u as NodeFunnelIdGenerator, ut as BroadcastSubscriber, v as MemoryFunnelProcessRunner, w as NodeFunnelProcessRunner, x as MemoryProcessResponse, y as MemoryProcessCall, z as ListenerEntry } from "./index-BM0-f6KL.js";
10
+ import { $ as FunnelGatewayToken, A as FUNNEL_DIR, B as ListenerOpResult, C as ProcessListStub, D as MockFunnelSettingsReader, E as NodeFunnelFileSystem, F as Funnel, G as SqliteFunnelEventLog, H as MemoryConnectorDiagnosticLog, I as FunnelDebugReport, J as PublishResponse, K as FunnelChannelPublisher, L as FunnelListenersClient, M as SETTINGS_PATH, N as resolveFunnelDir, O as createSettings, P as resolveFunnelPort, Q as DEFAULT_GATEWAY_TOKEN_PATH, R as ListListenersResult, S as MemoryProcessSyncHandler, T as MemoryFunnelFileSystem, U as SqliteConnectorDiagnosticLog, V as FunnelGateway, W as MemoryFunnelEventLog, X as publishRequestSchema, Y as PublishResult, Z as publishResponseSchema, _ as AliveStub, a as toRequest, at as Env$1, b as MemoryProcessHandler, c as ConnectorDiagnosticSqlReader, ct as FunnelListenerSupervisor, d as MemoryFunnelClock, dt as FunnelBroadcaster, et as FunnelGatewayServer, f as NodeFunnelClock, ft as ReplayableEvent, g as NodeFunnelLogger, h as MemoryFunnelLogger, i as queryToCliArgs, it as funnelEventSchema, j as FunnelSettingsStore, k as DEFAULT_GATEWAY_PORT, l as MemoryFunnelIdGenerator, lt as BroadcastEvent, m as LogEntry, n as CliApp, nt as FunnelEventLog, o as Env, ot as GatewayEmitInput, p as NoopFunnelLogger, pt as OnFunnelError, q as PublishRequest, r as routes, rt as FunnelEventRecord, s as factory, st as GatewayRouteDeps, t as GatewayApp, tt as FunnelEvent, u as NodeFunnelIdGenerator, ut as BroadcastSubscriber, v as MemoryFunnelProcessRunner, w as NodeFunnelProcessRunner, x as MemoryProcessResponse, y as MemoryProcessCall, z as ListenerEntry } from "./index-NFs2jzCa.js";
11
11
  export { AliveStub, AttachOptions, BroadcastEvent, BroadcastSubscriber, CONNECTOR_CONNECTION_STATUSES, ChannelConfig, ChannelConnectorView, ChannelDeliveryMode, CliApp, ConnectorConfig, ConnectorConnectionEvent, ConnectorConnectionQuery, ConnectorConnectionRecord, ConnectorConnectionStatus, ConnectorDiagnosticLog, ConnectorDiagnosticSqlReader, ConnectorProcessedEvent, ConnectorProcessedQuery, ConnectorProcessedRecord, ConnectorQuery, ConnectorRawEvent, ConnectorRawQuery, ConnectorRawRecord, ConnectorType, DEFAULT_GATEWAY_PORT, DEFAULT_GATEWAY_TOKEN_PATH, DetachOptions, DiscordConnectorConfig, Env, FUNNEL_DIR, FileStat, Funnel, FunnelBroadcaster, FunnelChannelPublisher, FunnelChannels, FunnelClock, FunnelConnectorFactory, FunnelConnectorListener, FunnelDebugReport, FunnelEvent, FunnelEventLog, FunnelEventRecord, FunnelFileSystem, FunnelGateway, FunnelGatewayServer, FunnelGatewayToken, FunnelIdGenerator, FunnelListenerSupervisor, FunnelListenersClient, FunnelLogger, FunnelProcessRunner, FunnelSettingsReader, FunnelSettingsStore, FunnelSlackEventProcessor, GatewayApp, GatewayEmitInput, GatewayRouteDeps, Env$1 as GatewayServerEnv, GhConnectorConfig, ListListenersResult, ListenerEntry, ListenerOpResult, LogEntry, MemoryConnectorDiagnosticLog, MemoryFunnelClock, MemoryFunnelEventLog, MemoryFunnelFileSystem, MemoryFunnelIdGenerator, MemoryFunnelLogger, MemoryFunnelProcessRunner, MemoryProcessCall, MemoryProcessHandler, MemoryProcessResponse, MemoryProcessSyncHandler, MockFunnelSettingsReader, NodeFunnelClock, NodeFunnelFileSystem, NodeFunnelIdGenerator, NodeFunnelLogger, NodeFunnelProcessRunner, NoopFunnelLogger, NotifyFn, OnFunnelError, ProcessListStub, ProcessSnapshot, ProfileConfig, PublishRequest, PublishResponse, PublishResult, ReplayableEvent, RunOptions, RunResult, SETTINGS_PATH, SETTINGS_VERSION, ScheduleCatchupPolicy, ScheduleConnectorConfig, ScheduleEntry, ScheduleListenerOptions, Settings, SlackConnectorConfig, SlackListenerOptions, SlackProcessed, SlackProcessedEmit, SlackProcessedSkip, SlackRawEvent, SlackSkipReason, SqliteConnectorDiagnosticLog, SqliteFunnelEventLog, StoredConnectionEvent, StoredProcessedEvent, StoredRawEvent, channelConfigSchema, channelDeliveryModeSchema, routes as cliRoutes, connectorConfigSchema, connectorConnectionEventSchema, connectorProcessedEventSchema, connectorRawEventSchema, createSettings, discordConnectorSchema, factory, funnelEventSchema, ghConnectorSchema, profileConfigSchema, publishRequestSchema, publishResponseSchema, queryToCliArgs, resolveFunnelDir, resolveFunnelPort, scheduleCatchupPolicySchema, scheduleConnectorSchema, scheduleEntrySchema, settingsSchema, slackConnectorSchema, toRequest };
package/dist/index.js CHANGED
@@ -1236,6 +1236,18 @@ var Funnel = class Funnel {
1236
1236
  });
1237
1237
  }
1238
1238
  /**
1239
+ * Create a ProcessGuard scoped to this Funnel's home directory.
1240
+ * Useful for hosts that need to check or manage singleton PID files
1241
+ * independently of FunnelClaude (e.g. checking if a named profile is running).
1242
+ */
1243
+ createProcessGuard() {
1244
+ return new FileProcessGuard({
1245
+ fs: this.fs,
1246
+ process: this.process,
1247
+ dir: this.paths.dir
1248
+ });
1249
+ }
1250
+ /**
1239
1251
  * Run the gateway daemon in the foreground (tied to this terminal).
1240
1252
  * For background daemon management, use `funnel.gateway.start()` instead.
1241
1253
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interactive-inc/claude-funnel",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "description": "Hub CLI that routes external events (Slack / GitHub / Discord) to Claude Code agents through subscription channels over MCP.",
5
5
  "keywords": [
6
6
  "bun",