autotel-devtools 23.1.0 → 24.0.0

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 (33) hide show
  1. package/dist/cli.cjs +2 -2
  2. package/dist/cli.js +2 -2
  3. package/dist/{error-aggregator-DSwUvgFF.d.cts → error-aggregator-C0at0wzF.d.cts} +1 -1
  4. package/dist/{error-aggregator-B52JI8jL.d.ts → error-aggregator-C25_JiVI.d.ts} +1 -1
  5. package/dist/{exporter-OoWkSMCR.d.cts → exporter-AkgWRDpc.d.cts} +25 -2
  6. package/dist/{exporter-C88W22vY.d.ts → exporter-yo7lLDIs.d.ts} +25 -2
  7. package/dist/fullpage.global.js +37 -30
  8. package/dist/genai/index.d.cts +1 -1
  9. package/dist/genai/index.d.ts +1 -1
  10. package/dist/{grpc-D0B3P9sI.cjs → grpc-CSW1Evnt.cjs} +1 -1
  11. package/dist/{grpc-DY-C1jSU.js → grpc-D1tt8UPi.js} +1 -1
  12. package/dist/{http-1afd_01N.cjs → http-CahjEnpE.cjs} +237 -0
  13. package/dist/{http-gk1xapnA.js → http-z8UbJsqk.js} +238 -1
  14. package/dist/index.cjs +1 -1
  15. package/dist/index.d.cts +4 -4
  16. package/dist/index.d.ts +4 -4
  17. package/dist/index.js +1 -1
  18. package/dist/server/exporter.d.cts +1 -1
  19. package/dist/server/exporter.d.ts +1 -1
  20. package/dist/server/index.cjs +2 -2
  21. package/dist/server/index.d.cts +4 -4
  22. package/dist/server/index.d.ts +4 -4
  23. package/dist/server/index.js +2 -2
  24. package/dist/types-B86Qkqg5.d.cts +120 -0
  25. package/dist/types-B86Qkqg5.d.ts +120 -0
  26. package/dist/{types-DM8y4A9Z.d.ts → types-BhbHVeiy.d.ts} +1 -1
  27. package/dist/{types-B0tjwFqj.d.cts → types-C-ORUrT2.d.cts} +1 -1
  28. package/dist/widget.global.js +14 -14
  29. package/dist/wire/index.d.cts +1 -1
  30. package/dist/wire/index.d.ts +1 -1
  31. package/package.json +2 -2
  32. package/dist/types-DHDvZnnn.d.cts +0 -47
  33. package/dist/types-DHDvZnnn.d.ts +0 -47
@@ -0,0 +1,120 @@
1
+ import { AgentSession } from "autotel-agents";
2
+ //#region src/widget/types.d.ts
3
+ /**
4
+ * What a span attribute holds once it has crossed OTLP. The widget is
5
+ * browser-safe and does not depend on the OTel API package, so the value type
6
+ * is named here rather than imported.
7
+ */
8
+ type AttributeValue = string | number | boolean | null | undefined | Uint8Array | Array<AttributeValue> | {
9
+ [key: string]: AttributeValue;
10
+ };
11
+ /**
12
+ * A span's attribute bag as the devtools receives it. Wider than OpenTelemetry's
13
+ * own `Attributes` on purpose: OTLP's kvlist and array values decode to nested
14
+ * maps and lists, and the devtools displays whatever actually arrived.
15
+ */
16
+ type SpanAttributes = Record<string, AttributeValue>;
17
+ interface SpanData {
18
+ traceId: string;
19
+ spanId: string;
20
+ parentSpanId?: string;
21
+ name: string;
22
+ kind: 'INTERNAL' | 'SERVER' | 'CLIENT' | 'PRODUCER' | 'CONSUMER';
23
+ startTime: number;
24
+ endTime: number;
25
+ duration: number;
26
+ attributes: SpanAttributes;
27
+ status: {
28
+ code: 'OK' | 'ERROR' | 'UNSET';
29
+ message?: string;
30
+ };
31
+ events?: Array<{
32
+ name: string;
33
+ timestamp: number;
34
+ attributes?: SpanAttributes;
35
+ }>;
36
+ links?: Array<{
37
+ traceId: string;
38
+ spanId: string;
39
+ attributes?: SpanAttributes;
40
+ }>;
41
+ scope?: {
42
+ name?: string;
43
+ version?: string;
44
+ };
45
+ }
46
+ /**
47
+ * The WebMCP tool surface, as folded by `server/webmcp-aggregator`.
48
+ *
49
+ * A tool is not a span: it is a name whose lifecycle spans a registration, any
50
+ * number of executions and possibly a withdrawal, and it is only meaningful
51
+ * within the installation (page load) that registered it.
52
+ */
53
+ interface WebMcpCall {
54
+ timestamp: number;
55
+ durationMs: number;
56
+ resultBytes: number;
57
+ resultType?: string;
58
+ envelope: boolean;
59
+ substituted: boolean;
60
+ error: boolean;
61
+ /** Present only when the app opted into payload capture. Render masked. */
62
+ input?: string;
63
+ /** The exact string the agent received. Present only with payload capture. */
64
+ result?: string;
65
+ traceId: string;
66
+ spanId: string;
67
+ }
68
+ interface WebMcpTool {
69
+ name: string;
70
+ /** Installation (page load) this record belongs to. */
71
+ installationId: string;
72
+ service: string;
73
+ sessionId?: string;
74
+ /** False when the tool was only ever seen executing — see the module note. */
75
+ observedAtRegistration: boolean;
76
+ /** True while the tool is offered: registered, and not since withdrawn. */
77
+ offered: boolean;
78
+ firstSeen: number;
79
+ lastSeen: number;
80
+ descriptionLength?: number;
81
+ hasInputSchema?: boolean;
82
+ annotationsSent: string[];
83
+ /** Annotations the browser discarded. Available nowhere else. */
84
+ annotationsDropped: string[];
85
+ calls: number;
86
+ errors: number;
87
+ /** Executions whose result was an unwrapped MCP `{ content: [...] }` envelope. */
88
+ envelopeCalls: number;
89
+ /** Of `resultBytes`, the part that is envelope wrapper rather than content. */
90
+ envelopeBytes: number;
91
+ /** Executions where the browser replaced an empty result with its own text. */
92
+ substitutedCalls: number;
93
+ /** UTF-8 bytes of result the agent has paid for across every call. */
94
+ resultBytes: number;
95
+ medianResultBytes: number;
96
+ /** The last few executions, newest first. Bounded — this is not a call log. */
97
+ recentCalls: WebMcpCall[];
98
+ traceId?: string;
99
+ spanId?: string;
100
+ }
101
+ interface WebMcpSummary {
102
+ installations: number;
103
+ /** Installations that registered nothing — the "instrumented too late" signature. */
104
+ emptyInstallations: number;
105
+ toolsOffered: number;
106
+ toolsWithdrawn: number;
107
+ calls: number;
108
+ errors: number;
109
+ resultBytes: number;
110
+ /** Bytes that are envelope wrapper rather than content. See `envelopeOverhead`. */
111
+ envelopeBytes: number;
112
+ toolsWithDroppedAnnotations: number;
113
+ toolsWithoutInputSchema: number;
114
+ }
115
+ interface WebMcpInventory {
116
+ tools: WebMcpTool[];
117
+ summary: WebMcpSummary;
118
+ }
119
+ //#endregion
120
+ export { WebMcpInventory as i, SpanAttributes as n, SpanData as r, AttributeValue as t };
@@ -0,0 +1,120 @@
1
+ import { AgentSession } from "autotel-agents";
2
+ //#region src/widget/types.d.ts
3
+ /**
4
+ * What a span attribute holds once it has crossed OTLP. The widget is
5
+ * browser-safe and does not depend on the OTel API package, so the value type
6
+ * is named here rather than imported.
7
+ */
8
+ type AttributeValue = string | number | boolean | null | undefined | Uint8Array | Array<AttributeValue> | {
9
+ [key: string]: AttributeValue;
10
+ };
11
+ /**
12
+ * A span's attribute bag as the devtools receives it. Wider than OpenTelemetry's
13
+ * own `Attributes` on purpose: OTLP's kvlist and array values decode to nested
14
+ * maps and lists, and the devtools displays whatever actually arrived.
15
+ */
16
+ type SpanAttributes = Record<string, AttributeValue>;
17
+ interface SpanData {
18
+ traceId: string;
19
+ spanId: string;
20
+ parentSpanId?: string;
21
+ name: string;
22
+ kind: 'INTERNAL' | 'SERVER' | 'CLIENT' | 'PRODUCER' | 'CONSUMER';
23
+ startTime: number;
24
+ endTime: number;
25
+ duration: number;
26
+ attributes: SpanAttributes;
27
+ status: {
28
+ code: 'OK' | 'ERROR' | 'UNSET';
29
+ message?: string;
30
+ };
31
+ events?: Array<{
32
+ name: string;
33
+ timestamp: number;
34
+ attributes?: SpanAttributes;
35
+ }>;
36
+ links?: Array<{
37
+ traceId: string;
38
+ spanId: string;
39
+ attributes?: SpanAttributes;
40
+ }>;
41
+ scope?: {
42
+ name?: string;
43
+ version?: string;
44
+ };
45
+ }
46
+ /**
47
+ * The WebMCP tool surface, as folded by `server/webmcp-aggregator`.
48
+ *
49
+ * A tool is not a span: it is a name whose lifecycle spans a registration, any
50
+ * number of executions and possibly a withdrawal, and it is only meaningful
51
+ * within the installation (page load) that registered it.
52
+ */
53
+ interface WebMcpCall {
54
+ timestamp: number;
55
+ durationMs: number;
56
+ resultBytes: number;
57
+ resultType?: string;
58
+ envelope: boolean;
59
+ substituted: boolean;
60
+ error: boolean;
61
+ /** Present only when the app opted into payload capture. Render masked. */
62
+ input?: string;
63
+ /** The exact string the agent received. Present only with payload capture. */
64
+ result?: string;
65
+ traceId: string;
66
+ spanId: string;
67
+ }
68
+ interface WebMcpTool {
69
+ name: string;
70
+ /** Installation (page load) this record belongs to. */
71
+ installationId: string;
72
+ service: string;
73
+ sessionId?: string;
74
+ /** False when the tool was only ever seen executing — see the module note. */
75
+ observedAtRegistration: boolean;
76
+ /** True while the tool is offered: registered, and not since withdrawn. */
77
+ offered: boolean;
78
+ firstSeen: number;
79
+ lastSeen: number;
80
+ descriptionLength?: number;
81
+ hasInputSchema?: boolean;
82
+ annotationsSent: string[];
83
+ /** Annotations the browser discarded. Available nowhere else. */
84
+ annotationsDropped: string[];
85
+ calls: number;
86
+ errors: number;
87
+ /** Executions whose result was an unwrapped MCP `{ content: [...] }` envelope. */
88
+ envelopeCalls: number;
89
+ /** Of `resultBytes`, the part that is envelope wrapper rather than content. */
90
+ envelopeBytes: number;
91
+ /** Executions where the browser replaced an empty result with its own text. */
92
+ substitutedCalls: number;
93
+ /** UTF-8 bytes of result the agent has paid for across every call. */
94
+ resultBytes: number;
95
+ medianResultBytes: number;
96
+ /** The last few executions, newest first. Bounded — this is not a call log. */
97
+ recentCalls: WebMcpCall[];
98
+ traceId?: string;
99
+ spanId?: string;
100
+ }
101
+ interface WebMcpSummary {
102
+ installations: number;
103
+ /** Installations that registered nothing — the "instrumented too late" signature. */
104
+ emptyInstallations: number;
105
+ toolsOffered: number;
106
+ toolsWithdrawn: number;
107
+ calls: number;
108
+ errors: number;
109
+ resultBytes: number;
110
+ /** Bytes that are envelope wrapper rather than content. See `envelopeOverhead`. */
111
+ envelopeBytes: number;
112
+ toolsWithDroppedAnnotations: number;
113
+ toolsWithoutInputSchema: number;
114
+ }
115
+ interface WebMcpInventory {
116
+ tools: WebMcpTool[];
117
+ summary: WebMcpSummary;
118
+ }
119
+ //#endregion
120
+ export { WebMcpInventory as i, SpanAttributes as n, SpanData as r, AttributeValue as t };
@@ -1,4 +1,4 @@
1
- import { n as SpanAttributes } from "./types-DHDvZnnn.js";
1
+ import { n as SpanAttributes } from "./types-B86Qkqg5.js";
2
2
  import { AgentSession } from "autotel-agents";
3
3
  //#region src/server/types.d.ts
4
4
  interface SpanData {
@@ -1,4 +1,4 @@
1
- import { n as SpanAttributes } from "./types-DHDvZnnn.cjs";
1
+ import { n as SpanAttributes } from "./types-B86Qkqg5.cjs";
2
2
  import { AgentSession } from "autotel-agents";
3
3
  //#region src/server/types.d.ts
4
4
  interface SpanData {