@loguro/cli 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/dist/index.js +33 -19
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -72102,29 +72102,43 @@ function LogsLiveView({ ctx, goto, params }) {
72102
72102
  }, undefined, false, undefined, this) : slice.map((log, i2) => {
72103
72103
  const idx = safeStart + i2;
72104
72104
  const selected = idx === cursor;
72105
+ const ts = new Date(log.timestamp).toLocaleTimeString([], { hour12: false });
72105
72106
  return /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Box_default, {
72106
72107
  children: [
72107
- /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
72108
- color: selected ? "cyan" : "gray",
72109
- children: selected ? "▶ " : " "
72108
+ /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Box_default, {
72109
+ width: 2,
72110
+ flexShrink: 0,
72111
+ children: /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
72112
+ color: selected ? "cyan" : "gray",
72113
+ children: selected ? "▶" : " "
72114
+ }, undefined, false, undefined, this)
72110
72115
  }, undefined, false, undefined, this),
72111
- /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
72112
- dimColor: true,
72113
- children: [
72114
- new Date(log.timestamp).toLocaleTimeString(),
72115
- " "
72116
- ]
72117
- }, undefined, true, undefined, this),
72118
- /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
72119
- color: levelColor2(log.level),
72120
- children: log.level.toUpperCase().padEnd(5)
72116
+ /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Box_default, {
72117
+ width: 9,
72118
+ flexShrink: 0,
72119
+ children: /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
72120
+ dimColor: true,
72121
+ children: ts
72122
+ }, undefined, false, undefined, this)
72121
72123
  }, undefined, false, undefined, this),
72122
- /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
72123
- children: [
72124
- " ",
72125
- log.message
72126
- ]
72127
- }, undefined, true, undefined, this)
72124
+ /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Box_default, {
72125
+ width: 10,
72126
+ flexShrink: 0,
72127
+ children: /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
72128
+ color: levelColor2(log.level),
72129
+ bold: true,
72130
+ children: log.level.toUpperCase()
72131
+ }, undefined, false, undefined, this)
72132
+ }, undefined, false, undefined, this),
72133
+ /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Box_default, {
72134
+ flexGrow: 1,
72135
+ overflow: "hidden",
72136
+ children: /* @__PURE__ */ jsx_dev_runtime11.jsxDEV(Text, {
72137
+ wrap: "truncate-end",
72138
+ color: selected ? "white" : undefined,
72139
+ children: log.message
72140
+ }, undefined, false, undefined, this)
72141
+ }, undefined, false, undefined, this)
72128
72142
  ]
72129
72143
  }, log.id, true, undefined, this);
72130
72144
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loguro/cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Powerful command-line tool for Loguro: query logs, AI investigation, alerts, sharing, interactive TUI, charts, replay, and more.",
5
5
  "keywords": [
6
6
  "loguro",