@sylphx/cli 0.1.5 → 0.1.6
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 +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ var import_commander16 = require("commander");
|
|
|
30
30
|
// package.json
|
|
31
31
|
var package_default = {
|
|
32
32
|
name: "@sylphx/cli",
|
|
33
|
-
version: "0.1.
|
|
33
|
+
version: "0.1.6",
|
|
34
34
|
description: "Sylphx Platform CLI \u2014 deploy, manage logs, env vars, and more",
|
|
35
35
|
type: "commonjs",
|
|
36
36
|
bin: {
|
|
@@ -351,7 +351,7 @@ var api = {
|
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
353
|
function createLogStream(projectId, envType) {
|
|
354
|
-
const params = new URLSearchParams({ envType,
|
|
354
|
+
const params = new URLSearchParams({ envType, stream: "true", limit: "200" });
|
|
355
355
|
return {
|
|
356
356
|
url: `${API_BASE}/projects/${projectId}/logs?${params.toString()}`,
|
|
357
357
|
token: config.getToken()
|
|
@@ -548,7 +548,7 @@ function formatLogEntry(raw) {
|
|
|
548
548
|
} catch {
|
|
549
549
|
return ` ${import_chalk2.default.white(raw)}`;
|
|
550
550
|
}
|
|
551
|
-
const message = entry.message ?? entry.msg ?? raw;
|
|
551
|
+
const message = entry.content ?? entry.message ?? entry.msg ?? raw;
|
|
552
552
|
const level = (entry.level ?? "info").toLowerCase();
|
|
553
553
|
const timestamp = entry.timestamp ?? entry.ts;
|
|
554
554
|
const prefix = timestamp ? `${import_chalk2.default.dim(`[${new Date(timestamp).toLocaleTimeString()}]`)} ` : "";
|