@m6d/cortex-server 1.0.0 → 1.1.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/src/config.d.ts +1 -0
- package/dist/src/factory.d.ts +1 -0
- package/package.json +1 -1
- package/src/config.ts +1 -0
- package/src/factory.ts +4 -0
package/dist/src/config.d.ts
CHANGED
package/dist/src/factory.d.ts
CHANGED
package/package.json
CHANGED
package/src/config.ts
CHANGED
package/src/factory.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { extractEndpoints as extractEndpointsFn } from "./cli/extract-endpoints.
|
|
|
18
18
|
export type CortexInstance = {
|
|
19
19
|
serve(): Promise<{
|
|
20
20
|
app: Hono<AppEnv>;
|
|
21
|
+
port: number;
|
|
21
22
|
fetch: Hono<AppEnv>["fetch"];
|
|
22
23
|
websocket: typeof websocket;
|
|
23
24
|
}>;
|
|
@@ -104,8 +105,11 @@ export function createCortex(config: CortexConfig): CortexInstance {
|
|
|
104
105
|
|
|
105
106
|
app.route("/agents/:agentId", agentApp);
|
|
106
107
|
|
|
108
|
+
const port = config.port ?? 3000;
|
|
109
|
+
|
|
107
110
|
return {
|
|
108
111
|
app,
|
|
112
|
+
port,
|
|
109
113
|
fetch: app.fetch,
|
|
110
114
|
websocket,
|
|
111
115
|
};
|