autotel-terminal 47.0.0 → 47.0.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.
package/dist/cli.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const require_src = require('./src-Bc8CXv51.cjs');
2
+ const require_src = require('./src-BxNcIs34.cjs');
3
3
  let node_fs = require("node:fs");
4
4
  let node_http = require("node:http");
5
5
  let node_path = require("node:path");
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as getTerminalLogStream, i as renderTerminal } from "./src-DW1LpxYb.js";
2
+ import { a as getTerminalLogStream, i as renderTerminal } from "./src-dzZzhFoh.js";
3
3
  import { readFileSync } from "node:fs";
4
4
  import { createServer } from "node:http";
5
5
  import path from "node:path";
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_src = require('./src-Bc8CXv51.cjs');
2
+ const require_src = require('./src-BxNcIs34.cjs');
3
3
  let autotel_exporters = require("autotel/exporters");
4
4
  let autotel = require("autotel");
5
5
 
package/dist/index.d.cts CHANGED
@@ -26,7 +26,7 @@ type SpanAttributes = Record<string, AttributeValue>;
26
26
  * real-time streaming of spans to terminal dashboards, loggers, or other
27
27
  * consumers without interfering with normal span processing.
28
28
  */
29
- declare class StreamingSpanProcessor implements SpanProcessor {
29
+ export declare class StreamingSpanProcessor implements SpanProcessor {
30
30
  private wrappedProcessor;
31
31
  private subscribers;
32
32
  /**
@@ -138,7 +138,7 @@ interface TerminalSpanStream {
138
138
  * })
139
139
  * ```
140
140
  */
141
- declare function createTerminalSpanStream(processor: StreamingSpanProcessor): TerminalSpanStream;
141
+ export declare function createTerminalSpanStream(processor: StreamingSpanProcessor): TerminalSpanStream;
142
142
  //#endregion
143
143
  //#region src/ai/types.d.ts
144
144
  type AIProviderType = 'ollama' | 'openai' | 'openai-compatible';
@@ -214,13 +214,13 @@ declare class InMemoryTerminalLogStream implements TerminalLogStream {
214
214
  * });
215
215
  * ```
216
216
  */
217
- declare function getTerminalLogStream(): InMemoryTerminalLogStream;
217
+ export declare function getTerminalLogStream(): InMemoryTerminalLogStream;
218
218
  //#endregion
219
219
  //#region src/index.d.ts
220
220
  /**
221
221
  * Terminal dashboard options
222
222
  */
223
- interface TerminalOptions {
223
+ export interface TerminalOptions {
224
224
  /**
225
225
  * Dashboard title
226
226
  * @default 'Autotel Trace Inspector'
@@ -268,6 +268,6 @@ interface TerminalOptions {
268
268
  * renderTerminal({ title: 'my-app' }, createTerminalSpanStream(processor))
269
269
  * ```
270
270
  */
271
- declare function renderTerminal(options?: TerminalOptions, stream?: TerminalSpanStream): void;
271
+ export declare function renderTerminal(options?: TerminalOptions, stream?: TerminalSpanStream): void;
272
272
  //#endregion
273
- export { PrettyConsoleExporter, type PrettyConsoleExporterOptions, type ReadableSpan, type SpanEvent, SpanKind, type SpanLink, SpanStatusCode, StreamingSpanProcessor, type TerminalLogEvent, type TerminalLogStream, TerminalOptions, type TerminalSpanEvent, type TerminalSpanStream, createTerminalSpanStream, getTerminalLogStream, renderTerminal };
273
+ export { PrettyConsoleExporter, type PrettyConsoleExporterOptions, type ReadableSpan, type SpanEvent, SpanKind, type SpanLink, SpanStatusCode, type TerminalLogEvent, type TerminalLogStream, type TerminalSpanEvent, type TerminalSpanStream };
package/dist/index.d.ts CHANGED
@@ -26,7 +26,7 @@ type SpanAttributes = Record<string, AttributeValue>;
26
26
  * real-time streaming of spans to terminal dashboards, loggers, or other
27
27
  * consumers without interfering with normal span processing.
28
28
  */
29
- declare class StreamingSpanProcessor implements SpanProcessor {
29
+ export declare class StreamingSpanProcessor implements SpanProcessor {
30
30
  private wrappedProcessor;
31
31
  private subscribers;
32
32
  /**
@@ -138,7 +138,7 @@ interface TerminalSpanStream {
138
138
  * })
139
139
  * ```
140
140
  */
141
- declare function createTerminalSpanStream(processor: StreamingSpanProcessor): TerminalSpanStream;
141
+ export declare function createTerminalSpanStream(processor: StreamingSpanProcessor): TerminalSpanStream;
142
142
  //#endregion
143
143
  //#region src/ai/types.d.ts
144
144
  type AIProviderType = 'ollama' | 'openai' | 'openai-compatible';
@@ -214,13 +214,13 @@ declare class InMemoryTerminalLogStream implements TerminalLogStream {
214
214
  * });
215
215
  * ```
216
216
  */
217
- declare function getTerminalLogStream(): InMemoryTerminalLogStream;
217
+ export declare function getTerminalLogStream(): InMemoryTerminalLogStream;
218
218
  //#endregion
219
219
  //#region src/index.d.ts
220
220
  /**
221
221
  * Terminal dashboard options
222
222
  */
223
- interface TerminalOptions {
223
+ export interface TerminalOptions {
224
224
  /**
225
225
  * Dashboard title
226
226
  * @default 'Autotel Trace Inspector'
@@ -268,6 +268,6 @@ interface TerminalOptions {
268
268
  * renderTerminal({ title: 'my-app' }, createTerminalSpanStream(processor))
269
269
  * ```
270
270
  */
271
- declare function renderTerminal(options?: TerminalOptions, stream?: TerminalSpanStream): void;
271
+ export declare function renderTerminal(options?: TerminalOptions, stream?: TerminalSpanStream): void;
272
272
  //#endregion
273
- export { PrettyConsoleExporter, type PrettyConsoleExporterOptions, type ReadableSpan, type SpanEvent, SpanKind, type SpanLink, SpanStatusCode, StreamingSpanProcessor, type TerminalLogEvent, type TerminalLogStream, TerminalOptions, type TerminalSpanEvent, type TerminalSpanStream, createTerminalSpanStream, getTerminalLogStream, renderTerminal };
273
+ export { PrettyConsoleExporter, type PrettyConsoleExporterOptions, type ReadableSpan, type SpanEvent, SpanKind, type SpanLink, SpanStatusCode, type TerminalLogEvent, type TerminalLogStream, type TerminalSpanEvent, type TerminalSpanStream };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { a as getTerminalLogStream, i as renderTerminal, n as SpanKind, o as createTerminalSpanStream, r as SpanStatusCode, s as StreamingSpanProcessor, t as PrettyConsoleExporter } from "./src-DW1LpxYb.js";
1
+ import { a as getTerminalLogStream, i as renderTerminal, n as SpanKind, o as createTerminalSpanStream, r as SpanStatusCode, s as StreamingSpanProcessor, t as PrettyConsoleExporter } from "./src-dzZzhFoh.js";
2
2
 
3
3
  export { PrettyConsoleExporter, SpanKind, SpanStatusCode, StreamingSpanProcessor, createTerminalSpanStream, getTerminalLogStream, renderTerminal };
@@ -828,8 +828,7 @@ function renderNode(graph, serviceName, prefix, isRoot, lines, ancestors) {
828
828
  const label = svc ? formatServiceLine(svc) : `[${serviceName}]`;
829
829
  if (isRoot) lines.push(label);
830
830
  if (ancestors.has(serviceName)) return;
831
- const pathAncestors = new Set(ancestors);
832
- pathAncestors.add(serviceName);
831
+ const pathAncestors = /* @__PURE__ */ new Set([...ancestors, serviceName]);
833
832
  const outgoing = graph.edges.filter((e) => e.fromService === serviceName);
834
833
  for (let i = 0; i < outgoing.length; i++) {
835
834
  const edge = outgoing[i];
@@ -800,8 +800,7 @@ function renderNode(graph, serviceName, prefix, isRoot, lines, ancestors) {
800
800
  const label = svc ? formatServiceLine(svc) : `[${serviceName}]`;
801
801
  if (isRoot) lines.push(label);
802
802
  if (ancestors.has(serviceName)) return;
803
- const pathAncestors = new Set(ancestors);
804
- pathAncestors.add(serviceName);
803
+ const pathAncestors = /* @__PURE__ */ new Set([...ancestors, serviceName]);
805
804
  const outgoing = graph.edges.filter((e) => e.fromService === serviceName);
806
805
  for (let i = 0; i < outgoing.length; i++) {
807
806
  const edge = outgoing[i];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autotel-terminal",
3
- "version": "47.0.0",
3
+ "version": "47.0.1",
4
4
  "description": "Terminal dashboard for autotel traces using react-ink",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -42,37 +42,32 @@
42
42
  "author": "Jag Reehal<jag@jagreehal.com> (https://jagreehal.com)",
43
43
  "license": "Apache-2.0",
44
44
  "dependencies": {
45
- "@ai-sdk/openai": "^4.0.23",
46
- "@ai-sdk/openai-compatible": "^3.0.16",
47
- "@json-render/core": "^0.19.0",
48
- "@json-render/ink": "^0.19.0",
49
- "ai": "^7.0.41",
50
- "ai-sdk-ollama": "^4.1.0",
45
+ "@ai-sdk/openai": "^4.0.78",
46
+ "@ai-sdk/openai-compatible": "^3.0.57",
47
+ "@json-render/core": "^0.21.0",
48
+ "@json-render/ink": "^0.21.0",
49
+ "ai": "^7.0.118",
50
+ "ai-sdk-ollama": "^4.3.0",
51
51
  "ink": "^7.1.1",
52
- "react": "^19.2.8",
53
- "zod": "4.4.3"
52
+ "react": "^19.3.0",
53
+ "zod": "4.6.5"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@opentelemetry/api": "^1.9.1",
57
57
  "@opentelemetry/sdk-trace-base": "^2.11.0",
58
- "autotel": "7.9.0"
58
+ "autotel": "7.10.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@arethetypeswrong/cli": "^0.18.5",
62
62
  "@opentelemetry/api": "^1.9.1",
63
- "@types/node": "^26.1.2",
64
- "@types/react": "^19.2.17",
65
- "@typescript-eslint/eslint-plugin": "^8.65.0",
66
- "@typescript-eslint/parser": "^8.65.0",
67
- "autotel": "7.9.0",
68
- "eslint-config-prettier": "^10.1.8",
69
- "eslint-plugin-unicorn": "^64.0.0",
70
- "prettier": "^3.9.6",
63
+ "@types/node": "^26.6.3",
64
+ "@types/react": "^19.3.0",
65
+ "autotel": "7.10.0",
66
+ "prettier": "^3.9.9",
71
67
  "rimraf": "^6.1.3",
72
- "tsdown": "^0.22.14",
73
- "typescript": "^6.0.3",
74
- "typescript-eslint": "^8.65.0",
75
- "vitest": "^4.1.10"
68
+ "tsdown": "^0.23.0",
69
+ "typescript": "^7.0.2",
70
+ "vitest": "^5.0.2"
76
71
  },
77
72
  "repository": {
78
73
  "type": "git",
@@ -87,8 +82,8 @@
87
82
  "build": "tsdown",
88
83
  "dev": "tsdown --watch",
89
84
  "format:check": "prettier --check src/**/*.ts",
90
- "lint": "eslint src",
91
- "lint:fix": "eslint src --fix",
85
+ "lint": "oxlint -c oxlint.json --disable-nested-config src",
86
+ "lint:fix": "pnpm lint --fix",
92
87
  "type-check": "tsc --noEmit",
93
88
  "test": "vitest run",
94
89
  "test:watch": "vitest",