@interactive-inc/claude-funnel 0.10.1 → 0.15.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/README.md +116 -56
- package/dist/bin.js +532 -505
- package/dist/connectors/schedule.d.ts +2 -49
- package/dist/connectors/schedule.js +1 -1
- package/dist/connectors/slack.d.ts +4 -20
- package/dist/connectors/slack.js +1 -1
- package/dist/gateway/daemon.js +214 -212
- package/dist/index.d.ts +463 -164
- package/dist/index.js +561 -36
- package/dist/{schedule-connector-schema-CkuIQ0JQ.js → schedule-connector-schema-FxP7LPlx.js} +11 -0
- package/dist/{file-system-Co60LrmR.d.ts → schedule-listener-BPodvbld.d.ts} +56 -1
- package/dist/{slack-connector-schema-Cd22WiHB.js → slack-connector-schema-B4hsf3AY.js} +10 -1
- package/dist/slack-listener-CHj6uMY-.d.ts +74 -0
- package/funnel.schema.json +144 -0
- package/package.json +2 -1
- package/dist/slack-event-processor-CS-bAit9.d.ts +0 -43
|
@@ -1,53 +1,6 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
import { a as ScheduleEntry, c as scheduleEntrySchema, i as ScheduleConnectorConfig, n as FunnelFileSystem, o as scheduleCatchupPolicySchema, r as ScheduleCatchupPolicy, s as scheduleConnectorSchema } from "../file-system-Co60LrmR.js";
|
|
1
|
+
import { c as ScheduleEntry, d as scheduleEntrySchema, l as scheduleCatchupPolicySchema, n as ScheduleOnFired, o as ScheduleCatchupPolicy, r as ScheduleStateStore, s as ScheduleConnectorConfig, t as FunnelScheduleListener, u as scheduleConnectorSchema } from "../schedule-listener-BPodvbld.js";
|
|
3
2
|
|
|
4
3
|
//#region lib/connectors/match-cron.d.ts
|
|
5
4
|
declare const matchCron: (expr: string, date: Date) => boolean;
|
|
6
5
|
//#endregion
|
|
7
|
-
|
|
8
|
-
type Deps$1 = {
|
|
9
|
-
path: string;
|
|
10
|
-
fs?: FunnelFileSystem;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Per-connector lastFiredAt persistence for the schedule listener. The path is
|
|
14
|
-
* passed in by FunnelConnectorFactory so this store does not know about the
|
|
15
|
-
* funnel directory layout (`channels/<id>/connectors/<id>/state.json` lives
|
|
16
|
-
* outside this class).
|
|
17
|
-
*/
|
|
18
|
-
declare class ScheduleStateStore {
|
|
19
|
-
private readonly path;
|
|
20
|
-
private readonly fs;
|
|
21
|
-
constructor(deps: Deps$1);
|
|
22
|
-
load(): Map<string, Date>;
|
|
23
|
-
save(state: Map<string, Date>): void;
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region lib/connectors/schedule-listener.d.ts
|
|
27
|
-
type Deps = {
|
|
28
|
-
config: ScheduleConnectorConfig;
|
|
29
|
-
lastFiredStore: ScheduleStateStore;
|
|
30
|
-
logger?: FunnelLogger;
|
|
31
|
-
now?: () => Date;
|
|
32
|
-
};
|
|
33
|
-
declare class FunnelScheduleListener extends FunnelConnectorListener {
|
|
34
|
-
private readonly config;
|
|
35
|
-
private readonly lastFiredStore;
|
|
36
|
-
private readonly logger;
|
|
37
|
-
private readonly now;
|
|
38
|
-
private timer;
|
|
39
|
-
private stopped;
|
|
40
|
-
constructor(deps: Deps);
|
|
41
|
-
start(notify: NotifyFn): Promise<void>;
|
|
42
|
-
stop(): Promise<void>;
|
|
43
|
-
isAlive(): boolean;
|
|
44
|
-
tick(notify: NotifyFn): Promise<void>;
|
|
45
|
-
private fireEntry;
|
|
46
|
-
private notifyOne;
|
|
47
|
-
private findMostRecentMatch;
|
|
48
|
-
private findAllMatches;
|
|
49
|
-
private logInvalidCron;
|
|
50
|
-
private truncateToMinute;
|
|
51
|
-
}
|
|
52
|
-
//#endregion
|
|
53
|
-
export { FunnelScheduleListener, ScheduleCatchupPolicy, ScheduleConnectorConfig, ScheduleEntry, ScheduleStateStore, matchCron, scheduleCatchupPolicySchema, scheduleConnectorSchema, scheduleEntrySchema };
|
|
6
|
+
export { FunnelScheduleListener, ScheduleCatchupPolicy, ScheduleConnectorConfig, ScheduleEntry, ScheduleOnFired, ScheduleStateStore, matchCron, scheduleCatchupPolicySchema, scheduleConnectorSchema, scheduleEntrySchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ScheduleStateStore, c as matchCron, i as FunnelScheduleListener, n as scheduleConnectorSchema, r as scheduleEntrySchema, t as scheduleCatchupPolicySchema } from "../schedule-connector-schema-
|
|
1
|
+
import { a as ScheduleStateStore, c as matchCron, i as FunnelScheduleListener, n as scheduleConnectorSchema, r as scheduleEntrySchema, t as scheduleCatchupPolicySchema } from "../schedule-connector-schema-FxP7LPlx.js";
|
|
2
2
|
export { FunnelScheduleListener, ScheduleStateStore, matchCron, scheduleCatchupPolicySchema, scheduleConnectorSchema, scheduleEntrySchema };
|
|
@@ -1,34 +1,18 @@
|
|
|
1
1
|
import { n as FunnelConnectorAdapter, t as CallInput } from "../connector-adapter-CXB-q_XC.js";
|
|
2
|
-
import { n as
|
|
3
|
-
import { a as SlackRawEvent, i as SlackProcessedSkip, n as SlackProcessed, o as SlackConnectorConfig, r as SlackProcessedEmit, s as slackConnectorSchema, t as FunnelSlackEventProcessor } from "../slack-event-processor-CS-bAit9.js";
|
|
2
|
+
import { a as SlackProcessed, c as SlackRawEvent, i as FunnelSlackEventProcessor, l as SlackConnectorConfig, n as SlackOnAppCreated, o as SlackProcessedEmit, r as SlackPreprocessEvent, s as SlackProcessedSkip, t as FunnelSlackListener, u as slackConnectorSchema } from "../slack-listener-CHj6uMY-.js";
|
|
4
3
|
|
|
5
4
|
//#region lib/connectors/slack-adapter.d.ts
|
|
6
5
|
type SlackWebClientLike = {
|
|
7
6
|
apiCall: (method: string, options?: Record<string, unknown>) => Promise<unknown>;
|
|
8
7
|
};
|
|
9
|
-
type Deps
|
|
8
|
+
type Deps = {
|
|
10
9
|
config: SlackConnectorConfig;
|
|
11
10
|
client?: SlackWebClientLike;
|
|
12
11
|
};
|
|
13
12
|
declare class FunnelSlackAdapter extends FunnelConnectorAdapter {
|
|
14
13
|
private readonly client;
|
|
15
|
-
constructor(deps: Deps$1);
|
|
16
|
-
call(input: CallInput): Promise<unknown>;
|
|
17
|
-
}
|
|
18
|
-
//#endregion
|
|
19
|
-
//#region lib/connectors/slack-listener.d.ts
|
|
20
|
-
type Deps = {
|
|
21
|
-
config: SlackConnectorConfig;
|
|
22
|
-
logger?: FunnelLogger;
|
|
23
|
-
};
|
|
24
|
-
declare class FunnelSlackListener extends FunnelConnectorListener {
|
|
25
|
-
private readonly config;
|
|
26
|
-
private readonly logger;
|
|
27
|
-
private app;
|
|
28
14
|
constructor(deps: Deps);
|
|
29
|
-
|
|
30
|
-
stop(): Promise<void>;
|
|
31
|
-
isAlive(): boolean;
|
|
15
|
+
call(input: CallInput): Promise<unknown>;
|
|
32
16
|
}
|
|
33
17
|
//#endregion
|
|
34
|
-
export { FunnelSlackAdapter, FunnelSlackEventProcessor, FunnelSlackListener, SlackConnectorConfig, SlackProcessed, SlackProcessedEmit, SlackProcessedSkip, SlackRawEvent, SlackWebClientLike, slackConnectorSchema };
|
|
18
|
+
export { FunnelSlackAdapter, FunnelSlackEventProcessor, FunnelSlackListener, SlackConnectorConfig, SlackOnAppCreated, SlackPreprocessEvent, SlackProcessed, SlackProcessedEmit, SlackProcessedSkip, SlackRawEvent, SlackWebClientLike, slackConnectorSchema };
|
package/dist/connectors/slack.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as FunnelSlackAdapter, n as FunnelSlackListener, r as FunnelSlackEventProcessor, t as slackConnectorSchema } from "../slack-connector-schema-
|
|
1
|
+
import { i as FunnelSlackAdapter, n as FunnelSlackListener, r as FunnelSlackEventProcessor, t as slackConnectorSchema } from "../slack-connector-schema-B4hsf3AY.js";
|
|
2
2
|
export { FunnelSlackAdapter, FunnelSlackEventProcessor, FunnelSlackListener, slackConnectorSchema };
|