@milkio/astra 1.0.0-alpha.98 → 1.0.0-alpha.99
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/index.ts +2 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { format } from "date-fns";
|
|
|
9
9
|
import type { CookbookOptions } from "./utils/cookbook-dto-types";
|
|
10
10
|
|
|
11
11
|
export type AstraOptionsInit = {
|
|
12
|
-
stargate: { $types: any; execute: any; ping: any;
|
|
12
|
+
stargate: { $types: any; execute: any; ping: any; __cookbook: any };
|
|
13
13
|
bootstrap: () => Promise<Record<string, any>>;
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -148,7 +148,7 @@ export async function createAstra<AstraOptions extends AstraOptionsInit, Generat
|
|
|
148
148
|
options.params.$milkioGenerateParams = "enable";
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
const results = await this.options.stargate.
|
|
151
|
+
const results = await this.options.stargate.__cookbook.subscribe(`http://localhost:${cookbookOptions.general.cookbookPort}`);
|
|
152
152
|
void (async () => {
|
|
153
153
|
for await (const result of results) {
|
|
154
154
|
if (result.type !== "milkio@logger") continue;
|