@lark-apaas/fullstack-cli 1.1.68-alpha.20261020063206 → 1.1.68-alpha.20261020115248
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/index.js +5 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -7789,6 +7789,7 @@ function readJsonLinesTailByLevel(filePath, maxLines, offset, levels) {
|
|
|
7789
7789
|
// src/commands/read-logs/std-level.ts
|
|
7790
7790
|
var STD_LEVEL_SCAN_LINES = 2e3;
|
|
7791
7791
|
var ANSI_PATTERN = /\u001b\[[0-?]*[ -/]*[@-~]/g;
|
|
7792
|
+
var TIMESTAMP_PREFIX_PATTERN = /^\[(?:\d{4}-\d{2}-\d{2}[ T][^\]]*|\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:\s*(?:AM|PM))?)\]\s?/i;
|
|
7792
7793
|
var TRANSIENT_CONNECTION_ERROR_PATTERN = /ECONNREFUSED|ECONNRESET|ETIMEDOUT|ENETUNREACH|socket hang up|proxy error(?!.*ENOTFOUND)|\[Proxy\] (?:Error:\s*$|Error during|Connection error|Non-connection error|Headers already sent|Service (?:recovered|did not recover))/i;
|
|
7793
7794
|
var ERROR_PATTERNS = [
|
|
7794
7795
|
/compiled with errors/i,
|
|
@@ -7816,14 +7817,15 @@ function comparableText(line) {
|
|
|
7816
7817
|
return line.replace(ANSI_PATTERN, "");
|
|
7817
7818
|
}
|
|
7818
7819
|
function contentWithoutTimestamp(line) {
|
|
7819
|
-
return comparableText(line).replace(
|
|
7820
|
+
return comparableText(line).replace(TIMESTAMP_PREFIX_PATTERN, "");
|
|
7820
7821
|
}
|
|
7821
7822
|
function isTransientStdLine(line) {
|
|
7822
7823
|
return TRANSIENT_CONNECTION_ERROR_PATTERN.test(comparableText(line));
|
|
7823
7824
|
}
|
|
7824
7825
|
function classifyStdLine(line) {
|
|
7825
|
-
const
|
|
7826
|
-
|
|
7826
|
+
const comparable = comparableText(line);
|
|
7827
|
+
const text = contentWithoutTimestamp(comparable).trim();
|
|
7828
|
+
if (!text || isTransientStdLine(comparable) || IGNORE_PATTERNS.some((pattern) => pattern.test(text))) {
|
|
7827
7829
|
return void 0;
|
|
7828
7830
|
}
|
|
7829
7831
|
if (WARN_PATTERNS.some((pattern) => pattern.test(text))) return "warn";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/fullstack-cli",
|
|
3
|
-
"version": "1.1.68-alpha.
|
|
3
|
+
"version": "1.1.68-alpha.20261020115248",
|
|
4
4
|
"description": "CLI tool for fullstack template management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@lark-apaas/http-client": "
|
|
34
|
+
"@lark-apaas/http-client": "0.1.8-alpha.20261020115251",
|
|
35
35
|
"@lydell/node-pty": "1.1.0",
|
|
36
36
|
"@vercel/nft": "^0.30.3",
|
|
37
37
|
"commander": "^13.0.0",
|