@loreai/gateway 0.14.0 → 0.15.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.
@@ -0,0 +1,21 @@
1
+ export type GatewayConfig = {
2
+ /** Port to listen on. Defaults to 4141. */
3
+ port?: number;
4
+ /** Host to bind to. Defaults to "127.0.0.1". */
5
+ host?: string;
6
+ };
7
+
8
+ /** Load Lore gateway configuration from the environment. */
9
+ export declare function loadConfig(): GatewayConfig;
10
+
11
+ /** Start the Lore gateway server. */
12
+ export declare function startServer(config?: GatewayConfig): Promise<void>;
13
+
14
+ /** Handle an incoming request through the Lore pipeline. */
15
+ export declare function handleRequest(req: Request): Promise<Response>;
16
+
17
+ /** Reset internal pipeline state (for testing). */
18
+ export declare function resetPipelineState(): void;
19
+
20
+ /** CLI entry point — called by dist/bin.cjs. */
21
+ export declare function _cli(): Promise<void>;
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "@loreai/gateway",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "license": "FSL-1.1-Apache-2.0",
6
6
  "description": "Lore as a transparent LLM proxy — context management for any AI coding client",
7
- "main": "./dist/index.js",
8
- "types": "./dist/index.d.ts",
7
+ "main": "./dist/index.cjs",
8
+ "types": "./dist/index.d.cts",
9
9
  "exports": {
10
10
  ".": {
11
11
  "bun": "./src/index.ts",
12
- "default": "./dist/index.js"
12
+ "types": "./dist/index.d.cts",
13
+ "require": "./dist/index.cjs",
14
+ "default": "./dist/index.cjs"
13
15
  }
14
16
  },
15
17
  "bin": {
@@ -25,11 +27,9 @@
25
27
  },
26
28
  "dependencies": {},
27
29
  "files": [
28
- "src/",
29
- "dist/",
30
- "!dist/**/*.map",
31
- "README.md",
32
- "LICENSE"
30
+ "dist/bin.cjs",
31
+ "dist/index.cjs",
32
+ "dist/index.d.cts"
33
33
  ],
34
34
  "engines": {
35
35
  "node": ">=22.15",
@@ -54,7 +54,7 @@
54
54
  ],
55
55
  "author": "BYK",
56
56
  "devDependencies": {
57
- "@loreai/core": "0.14.0",
57
+ "@loreai/core": "0.15.0",
58
58
  "@sentry/bun": "^10.52.0",
59
59
  "binpunch": "^1.0.0"
60
60
  }