@interactive-inc/claude-funnel 0.41.0 → 0.50.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/README.md +34 -9
- package/dist/bin.js +255 -256
- package/dist/claude-CB1WkV77.d.ts +115 -0
- package/dist/claude.d.ts +59 -0
- package/dist/claude.js +322 -0
- package/dist/{connector-diagnostic-log-OPpPi9V9.d.ts → connector-diagnostic-log-yTOojKUR.d.ts} +14 -14
- package/dist/{logger-Czli2OKh.js → connector-listener-DU54DN-f.js} +1 -9
- package/dist/connectors/discord.d.ts +3 -3
- package/dist/connectors/discord.js +2 -1
- package/dist/connectors/gh.d.ts +4 -3
- package/dist/connectors/gh.js +2 -1
- package/dist/connectors/schedule.d.ts +1 -1
- package/dist/connectors/schedule.js +2 -1
- package/dist/connectors/slack.d.ts +2 -2
- package/dist/connectors/slack.js +2 -1
- package/dist/discord-connector-schema-CBDyGdOI.js +21 -0
- package/dist/{discord-connector-schema-BeThExJp.js → discord-listener-_jSE3HsQ.js} +2 -22
- package/dist/file-system-BeOKXjlV.d.ts +26 -0
- package/dist/file-system-PWKKU7lA.js +9 -0
- package/dist/gateway/daemon.js +151 -152
- package/dist/gateway.d.ts +3 -0
- package/dist/gateway.js +2 -0
- package/dist/gh-connector-schema-eoTtHbY6.d.ts +14 -0
- package/dist/{gh-connector-schema-eYE4g77K.js → gh-connector-schema-o3Q1-ojL.js} +1 -176
- package/dist/gh-listener-DH-fClQm.js +178 -0
- package/dist/index-ChomoTZ5.d.ts +3404 -0
- package/dist/index.d.ts +11 -4214
- package/dist/index.js +195 -3869
- package/dist/local-config-json-schema-8IHjS4Q7.js +439 -0
- package/dist/local-config-sync-BdsrDZOu.d.ts +381 -0
- package/dist/local-config.d.ts +3 -0
- package/dist/local-config.js +3 -0
- package/dist/logger-BP6SisKt.js +9 -0
- package/dist/mcp-Dr-nIBwN.js +253 -0
- package/dist/memory-connector-diagnostic-log-CrW1ltLM.js +2245 -0
- package/dist/memory-token-prompter-B5FFCsGP.d.ts +57 -0
- package/dist/memory-token-prompter-CLerGsgM.js +61 -0
- package/dist/node-file-system-BcrmWN9I.js +48 -0
- package/dist/{gh-connector-schema-CQmEWzdV.d.ts → process-runner-DfniuWVU.d.ts} +1 -14
- package/dist/profiles-f0mNmEyP.d.ts +64 -0
- package/dist/profiles-wMRnjSid.js +129 -0
- package/dist/profiles.d.ts +2 -0
- package/dist/profiles.js +2 -0
- package/dist/schedule-connector-schema-iCI61gzU.js +31 -0
- package/dist/{schedule-listener-3M6WkH1Y.d.ts → schedule-listener-CUyUFFR1.d.ts} +22 -46
- package/dist/{schedule-connector-schema-CM-sRkac.js → schedule-listener-ePAjians.js} +3 -86
- package/dist/settings-reader-BSU6JyvM.d.ts +167 -0
- package/dist/settings-reader-DPqrpV7s.js +11 -0
- package/dist/settings-store-D2XSXTyt.js +186 -0
- package/dist/slack-connector-schema-BCNWluHM.js +32 -0
- package/dist/{slack-listener-9UdAn_ui.d.ts → slack-listener-Bv5xI9gC.d.ts} +31 -31
- package/dist/{slack-connector-schema-DDbSGPZn.js → slack-listener-ClQuHhEF.js} +2 -32
- package/package.json +16 -1
- /package/dist/{connector-adapter-VA6undzc.d.ts → connector-adapter-DKgsVuMH.d.ts} +0 -0
- /package/dist/{discord-connector-schema-DF4pL3Sc.d.ts → discord-connector-schema-R0Uu-3ns.d.ts} +0 -0
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { t as FunnelConnectorAdapter } from "./connector-adapter-D5Utumgz.js";
|
|
2
2
|
import { t as resolveConnectorToken } from "./resolve-connector-token-BHmZLRrV.js";
|
|
3
|
-
import {
|
|
3
|
+
import { t as FunnelConnectorListener } from "./connector-listener-DU54DN-f.js";
|
|
4
4
|
import { Client, GatewayIntentBits, Partials } from "discord.js";
|
|
5
|
-
import { z } from "zod";
|
|
6
5
|
//#region lib/engine/http/http-client.ts
|
|
7
6
|
var FunnelHttpClient = class {};
|
|
8
7
|
//#endregion
|
|
@@ -225,23 +224,4 @@ const messageOf = (error) => {
|
|
|
225
224
|
return error instanceof Error ? error.message : String(error);
|
|
226
225
|
};
|
|
227
226
|
//#endregion
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Like slack, a discord connector holds either a literal `botToken` or a
|
|
231
|
-
* `botTokenEnv` reference resolved from `process.env` at listener start. The
|
|
232
|
-
* reference form keeps the secret out of settings.json, but is only set through
|
|
233
|
-
* the engine API (`new Funnel(...)`); funnel.json and the `fnl` CLI produce
|
|
234
|
-
* literals.
|
|
235
|
-
*/
|
|
236
|
-
const discordConnectorSchema = z.object({
|
|
237
|
-
id: z.string(),
|
|
238
|
-
name: z.string(),
|
|
239
|
-
type: z.literal("discord"),
|
|
240
|
-
botToken: z.string().min(10).optional(),
|
|
241
|
-
/** Name of the env var holding the bot token, resolved at listener start. */
|
|
242
|
-
botTokenEnv: z.string().optional(),
|
|
243
|
-
createdAt: z.string().datetime().optional(),
|
|
244
|
-
updatedAt: z.string().datetime().optional()
|
|
245
|
-
});
|
|
246
|
-
//#endregion
|
|
247
|
-
export { FunnelDiscordAdapter as i, FunnelDiscordListener as n, FunnelDiscordEventProcessor as r, discordConnectorSchema as t };
|
|
227
|
+
export { FunnelDiscordEventProcessor as n, FunnelDiscordAdapter as r, FunnelDiscordListener as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region lib/engine/fs/file-system.d.ts
|
|
2
|
+
type FileStat = {
|
|
3
|
+
mtimeMs: number; /** POSIX mode bits (e.g. 0o600). `null` when the underlying FS does not expose mode. */
|
|
4
|
+
mode: number | null;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Filesystem boundary used everywhere funnel reads or writes.
|
|
8
|
+
* Default is NodeFunnelFileSystem (real `node:fs`); MemoryFunnelFileSystem
|
|
9
|
+
* provides a sandbox for tests and embedded use.
|
|
10
|
+
*/
|
|
11
|
+
declare abstract class FunnelFileSystem {
|
|
12
|
+
abstract existsSync(path: string): boolean;
|
|
13
|
+
abstract readFileSync(path: string): string;
|
|
14
|
+
abstract writeFileSync(path: string, data: string): void;
|
|
15
|
+
/** Write `data` and ensure the resulting file is owner-only (0600). Use for tokens and any file that may contain secrets. */
|
|
16
|
+
abstract writeSecretFileSync(path: string, data: string): void;
|
|
17
|
+
abstract appendFileSync(path: string, data: string): void;
|
|
18
|
+
abstract unlink(path: string): void;
|
|
19
|
+
abstract mkdirSync(path: string, options?: {
|
|
20
|
+
recursive?: boolean;
|
|
21
|
+
}): void;
|
|
22
|
+
abstract readdirSync(path: string): string[];
|
|
23
|
+
abstract statSync(path: string): FileStat;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { FunnelFileSystem as n, FileStat as t };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region lib/engine/fs/file-system.ts
|
|
2
|
+
/**
|
|
3
|
+
* Filesystem boundary used everywhere funnel reads or writes.
|
|
4
|
+
* Default is NodeFunnelFileSystem (real `node:fs`); MemoryFunnelFileSystem
|
|
5
|
+
* provides a sandbox for tests and embedded use.
|
|
6
|
+
*/
|
|
7
|
+
var FunnelFileSystem = class {};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { FunnelFileSystem as t };
|