@absolutejs/absolute 0.19.0-beta.453 → 0.19.0-beta.455
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/ai/index.js +19 -6
- package/dist/ai/index.js.map +4 -4
- package/dist/build.js +14 -2
- package/dist/build.js.map +3 -3
- package/dist/cli/index.js +24 -24
- package/dist/index.js +14 -2
- package/dist/index.js.map +4 -4
- package/dist/src/ai/rag/chat.d.ts +5 -0
- package/dist/src/core/prepare.d.ts +10 -1
- package/dist/types/ai.d.ts +7 -0
- package/dist/vue/components/index.js +7 -5
- package/dist/vue/components/index.js.map +4 -4
- package/dist/vue/index.js +20 -6
- package/dist/vue/index.js.map +5 -5
- package/dist/vue/server.js +14 -2
- package/dist/vue/server.js.map +3 -3
- package/package.json +7 -7
package/dist/cli/index.js
CHANGED
|
@@ -1072,22 +1072,20 @@ var run = async (name, command) => {
|
|
|
1072
1072
|
Found ${errorCount} error${suffix}.`;
|
|
1073
1073
|
}
|
|
1074
1074
|
return formatted;
|
|
1075
|
-
}, buildVueTscCheck = (cacheDir) => {
|
|
1075
|
+
}, TYPECHECK_EXCLUDE, TYPECHECK_INCLUDE, buildVueTscCheck = (cacheDir) => {
|
|
1076
1076
|
const vueTscBin = findBin("vue-tsc");
|
|
1077
1077
|
if (!vueTscBin) {
|
|
1078
1078
|
console.error("\x1B[31m\u2717\x1B[0m vue-tsc is required for Vue type checking. Install it: bun add -d vue-tsc");
|
|
1079
1079
|
process.exit(1);
|
|
1080
1080
|
}
|
|
1081
1081
|
const vueTsconfigPath = join7(cacheDir, "tsconfig.vue-check.json");
|
|
1082
|
-
const exclude = [
|
|
1083
|
-
"../**/.absolutejs/**/*",
|
|
1084
|
-
"../**/build/**/*",
|
|
1085
|
-
"../**/dist/**/*",
|
|
1086
|
-
"../**/generated/**/*"
|
|
1087
|
-
];
|
|
1088
1082
|
return writeFile(vueTsconfigPath, JSON.stringify({
|
|
1089
|
-
|
|
1090
|
-
|
|
1083
|
+
compilerOptions: {
|
|
1084
|
+
rootDir: ".."
|
|
1085
|
+
},
|
|
1086
|
+
exclude: TYPECHECK_EXCLUDE,
|
|
1087
|
+
extends: resolve7("tsconfig.json"),
|
|
1088
|
+
include: TYPECHECK_INCLUDE
|
|
1091
1089
|
}, null, "\t")).then(() => run("vue-tsc", [
|
|
1092
1090
|
vueTscBin,
|
|
1093
1091
|
"--noEmit",
|
|
@@ -1110,14 +1108,10 @@ Found ${errorCount} error${suffix}.`;
|
|
|
1110
1108
|
strictTemplates: true
|
|
1111
1109
|
},
|
|
1112
1110
|
compilerOptions: {
|
|
1113
|
-
noEmit: true
|
|
1111
|
+
noEmit: true,
|
|
1112
|
+
rootDir: ".."
|
|
1114
1113
|
},
|
|
1115
|
-
exclude:
|
|
1116
|
-
"../**/.absolutejs/**/*",
|
|
1117
|
-
"../**/build/**/*",
|
|
1118
|
-
"../**/dist/**/*",
|
|
1119
|
-
"../**/generated/**/*"
|
|
1120
|
-
],
|
|
1114
|
+
exclude: TYPECHECK_EXCLUDE,
|
|
1121
1115
|
extends: resolve7("tsconfig.json"),
|
|
1122
1116
|
include: [`../${angularDir}/**/*`]
|
|
1123
1117
|
}, null, "\t"));
|
|
@@ -1129,15 +1123,13 @@ Found ${errorCount} error${suffix}.`;
|
|
|
1129
1123
|
process.exit(1);
|
|
1130
1124
|
}
|
|
1131
1125
|
const tscConfigPath = join7(cacheDir, "tsconfig.typecheck.json");
|
|
1132
|
-
const exclude = [
|
|
1133
|
-
"../**/.absolutejs/**/*",
|
|
1134
|
-
"../**/build/**/*",
|
|
1135
|
-
"../**/dist/**/*",
|
|
1136
|
-
"../**/generated/**/*"
|
|
1137
|
-
];
|
|
1138
1126
|
return writeFile(tscConfigPath, JSON.stringify({
|
|
1139
|
-
|
|
1140
|
-
|
|
1127
|
+
compilerOptions: {
|
|
1128
|
+
rootDir: ".."
|
|
1129
|
+
},
|
|
1130
|
+
exclude: TYPECHECK_EXCLUDE,
|
|
1131
|
+
extends: resolve7("tsconfig.json"),
|
|
1132
|
+
include: TYPECHECK_INCLUDE
|
|
1141
1133
|
}, null, "\t")).then(() => run("tsc", [
|
|
1142
1134
|
tscBin,
|
|
1143
1135
|
"--noEmit",
|
|
@@ -1204,6 +1196,14 @@ Found ${errorCount} error${suffix}.`;
|
|
|
1204
1196
|
};
|
|
1205
1197
|
var init_typecheck = __esm(() => {
|
|
1206
1198
|
init_loadConfig();
|
|
1199
|
+
TYPECHECK_EXCLUDE = [
|
|
1200
|
+
"../node_modules/**/*",
|
|
1201
|
+
"../**/.absolutejs/**/*",
|
|
1202
|
+
"../**/build/**/*",
|
|
1203
|
+
"../**/dist/**/*",
|
|
1204
|
+
"../**/generated/**/*"
|
|
1205
|
+
];
|
|
1206
|
+
TYPECHECK_INCLUDE = ["../**/*"];
|
|
1207
1207
|
});
|
|
1208
1208
|
|
|
1209
1209
|
// src/cli/scripts/dev.ts
|
package/dist/index.js
CHANGED
|
@@ -177780,6 +177780,10 @@ var ssrDirty4 = false, isRecord10 = (value) => typeof value === "object" && valu
|
|
|
177780
177780
|
return new Response(html, {
|
|
177781
177781
|
headers: { "Content-Type": "text/html" }
|
|
177782
177782
|
});
|
|
177783
|
+
}, primeVueStream = async (stream) => {
|
|
177784
|
+
const reader = stream.getReader();
|
|
177785
|
+
const firstChunk = await reader.read();
|
|
177786
|
+
return { firstChunk, reader };
|
|
177783
177787
|
}, handleVuePageRequest = async (_PageComponent, pagePath, indexPath, headTag = "<head></head>", ...props) => {
|
|
177784
177788
|
const [maybeProps] = props;
|
|
177785
177789
|
if (ssrDirty4) {
|
|
@@ -177812,12 +177816,20 @@ var ssrDirty4 = false, isRecord10 = (value) => typeof value === "object" && valu
|
|
|
177812
177816
|
render: () => h(resolvedPage.component, maybeProps ?? null)
|
|
177813
177817
|
});
|
|
177814
177818
|
const bodyStream = renderToWebStream(app);
|
|
177819
|
+
const { firstChunk, reader } = await primeVueStream(bodyStream);
|
|
177815
177820
|
const head = `<!DOCTYPE html><html>${headTag}<body><div id="root">`;
|
|
177816
177821
|
const tail = `</div><script>window.__INITIAL_PROPS__=${JSON.stringify(maybeProps ?? {})}</script><script type="module" src="${indexPath}"></script></body></html>`;
|
|
177817
177822
|
const stream = new ReadableStream({
|
|
177818
177823
|
start(controller) {
|
|
177819
177824
|
controller.enqueue(head);
|
|
177820
|
-
|
|
177825
|
+
if (!firstChunk.done) {
|
|
177826
|
+
controller.enqueue(firstChunk.value);
|
|
177827
|
+
}
|
|
177828
|
+
if (firstChunk.done) {
|
|
177829
|
+
controller.enqueue(tail);
|
|
177830
|
+
controller.close();
|
|
177831
|
+
return;
|
|
177832
|
+
}
|
|
177821
177833
|
const pumpLoop = () => {
|
|
177822
177834
|
reader.read().then(({ done, value }) => done ? (controller.enqueue(tail), controller.close()) : (controller.enqueue(value), pumpLoop())).catch((err) => controller.error(err));
|
|
177823
177835
|
};
|
|
@@ -188547,5 +188559,5 @@ export {
|
|
|
188547
188559
|
ANGULAR_INIT_TIMEOUT_MS
|
|
188548
188560
|
};
|
|
188549
188561
|
|
|
188550
|
-
//# debugId=
|
|
188562
|
+
//# debugId=71F97CB428AA05DF64756E2164756E21
|
|
188551
188563
|
//# sourceMappingURL=index.js.map
|