@bluelibs/runner-dev 4.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 (215) hide show
  1. package/AI.md +411 -0
  2. package/README.md +1103 -0
  3. package/dist/cli.d.ts +2 -0
  4. package/dist/cli.js +58 -0
  5. package/dist/cli.js.map +1 -0
  6. package/dist/client/documentation.d.ts +8 -0
  7. package/dist/client/documentation.js +144 -0
  8. package/dist/client/documentation.js.map +1 -0
  9. package/dist/components/Documentation/Documentation.d.ts +8 -0
  10. package/dist/components/Documentation/Documentation.js +283 -0
  11. package/dist/components/Documentation/Documentation.js.map +1 -0
  12. package/dist/components/Documentation/components/DiagnosticsPanel.d.ts +7 -0
  13. package/dist/components/Documentation/components/DiagnosticsPanel.js +126 -0
  14. package/dist/components/Documentation/components/DiagnosticsPanel.js.map +1 -0
  15. package/dist/components/Documentation/components/EventCard.d.ts +8 -0
  16. package/dist/components/Documentation/components/EventCard.js +164 -0
  17. package/dist/components/Documentation/components/EventCard.js.map +1 -0
  18. package/dist/components/Documentation/components/HookCard.d.ts +8 -0
  19. package/dist/components/Documentation/components/HookCard.js +111 -0
  20. package/dist/components/Documentation/components/HookCard.js.map +1 -0
  21. package/dist/components/Documentation/components/MiddlewareCard.d.ts +8 -0
  22. package/dist/components/Documentation/components/MiddlewareCard.js +159 -0
  23. package/dist/components/Documentation/components/MiddlewareCard.js.map +1 -0
  24. package/dist/components/Documentation/components/ResourceCard.d.ts +8 -0
  25. package/dist/components/Documentation/components/ResourceCard.js +94 -0
  26. package/dist/components/Documentation/components/ResourceCard.js.map +1 -0
  27. package/dist/components/Documentation/components/Sidebar.d.ts +13 -0
  28. package/dist/components/Documentation/components/Sidebar.js +129 -0
  29. package/dist/components/Documentation/components/Sidebar.js.map +1 -0
  30. package/dist/components/Documentation/components/TagCard.d.ts +7 -0
  31. package/dist/components/Documentation/components/TagCard.js +75 -0
  32. package/dist/components/Documentation/components/TagCard.js.map +1 -0
  33. package/dist/components/Documentation/components/TaskCard.d.ts +8 -0
  34. package/dist/components/Documentation/components/TaskCard.js +77 -0
  35. package/dist/components/Documentation/components/TaskCard.js.map +1 -0
  36. package/dist/components/Documentation/index.d.ts +2 -0
  37. package/dist/components/Documentation/index.js +6 -0
  38. package/dist/components/Documentation/index.js.map +1 -0
  39. package/dist/components/Documentation/utils/formatting.d.ts +8 -0
  40. package/dist/components/Documentation/utils/formatting.js +84 -0
  41. package/dist/components/Documentation/utils/formatting.js.map +1 -0
  42. package/dist/components/ExampleComponent.d.ts +10 -0
  43. package/dist/components/ExampleComponent.js +48 -0
  44. package/dist/components/ExampleComponent.js.map +1 -0
  45. package/dist/generated/resolvers-types.d.ts +1523 -0
  46. package/dist/generated/resolvers-types.js +3 -0
  47. package/dist/generated/resolvers-types.js.map +1 -0
  48. package/dist/index.d.ts +61 -0
  49. package/dist/index.js +22 -0
  50. package/dist/index.js.map +1 -0
  51. package/dist/main.d.ts +1 -0
  52. package/dist/main.js +3 -0
  53. package/dist/main.js.map +1 -0
  54. package/dist/mcp/env.d.ts +5 -0
  55. package/dist/mcp/env.js +42 -0
  56. package/dist/mcp/env.js.map +1 -0
  57. package/dist/mcp/format.d.ts +50 -0
  58. package/dist/mcp/format.js +249 -0
  59. package/dist/mcp/format.js.map +1 -0
  60. package/dist/mcp/help.d.ts +20 -0
  61. package/dist/mcp/help.js +121 -0
  62. package/dist/mcp/help.js.map +1 -0
  63. package/dist/mcp/http.d.ts +6 -0
  64. package/dist/mcp/http.js +47 -0
  65. package/dist/mcp/http.js.map +1 -0
  66. package/dist/mcp/projectOverview.d.ts +2 -0
  67. package/dist/mcp/projectOverview.js +210 -0
  68. package/dist/mcp/projectOverview.js.map +1 -0
  69. package/dist/mcp/schema.d.ts +1 -0
  70. package/dist/mcp/schema.js +17 -0
  71. package/dist/mcp/schema.js.map +1 -0
  72. package/dist/mcp/tools/graphql.introspect.d.ts +2 -0
  73. package/dist/mcp/tools/graphql.introspect.js +19 -0
  74. package/dist/mcp/tools/graphql.introspect.js.map +1 -0
  75. package/dist/mcp/tools/graphql.mutation.d.ts +2 -0
  76. package/dist/mcp/tools/graphql.mutation.js +43 -0
  77. package/dist/mcp/tools/graphql.mutation.js.map +1 -0
  78. package/dist/mcp/tools/graphql.ping.d.ts +2 -0
  79. package/dist/mcp/tools/graphql.ping.js +23 -0
  80. package/dist/mcp/tools/graphql.ping.js.map +1 -0
  81. package/dist/mcp/tools/graphql.query.d.ts +2 -0
  82. package/dist/mcp/tools/graphql.query.js +42 -0
  83. package/dist/mcp/tools/graphql.query.js.map +1 -0
  84. package/dist/mcp/tools/graphql.schemaSdl.d.ts +2 -0
  85. package/dist/mcp/tools/graphql.schemaSdl.js +15 -0
  86. package/dist/mcp/tools/graphql.schemaSdl.js.map +1 -0
  87. package/dist/mcp/tools/help.read.d.ts +2 -0
  88. package/dist/mcp/tools/help.read.js +67 -0
  89. package/dist/mcp/tools/help.read.js.map +1 -0
  90. package/dist/mcp/tools/help.runner.d.ts +2 -0
  91. package/dist/mcp/tools/help.runner.js +55 -0
  92. package/dist/mcp/tools/help.runner.js.map +1 -0
  93. package/dist/mcp/tools/help.runnerDev.d.ts +2 -0
  94. package/dist/mcp/tools/help.runnerDev.js +56 -0
  95. package/dist/mcp/tools/help.runnerDev.js.map +1 -0
  96. package/dist/mcp.d.ts +1 -0
  97. package/dist/mcp.js +75 -0
  98. package/dist/mcp.js.map +1 -0
  99. package/dist/resources/dev.resource.d.ts +5 -0
  100. package/dist/resources/dev.resource.js +26 -0
  101. package/dist/resources/dev.resource.js.map +1 -0
  102. package/dist/resources/docs.generator.resource.d.ts +17 -0
  103. package/dist/resources/docs.generator.resource.js +230 -0
  104. package/dist/resources/docs.generator.resource.js.map +1 -0
  105. package/dist/resources/graphql-accumulator.resource.d.ts +7 -0
  106. package/dist/resources/graphql-accumulator.resource.js +41 -0
  107. package/dist/resources/graphql-accumulator.resource.js.map +1 -0
  108. package/dist/resources/introspector.resource.d.ts +129 -0
  109. package/dist/resources/introspector.resource.js +266 -0
  110. package/dist/resources/introspector.resource.js.map +1 -0
  111. package/dist/resources/introspector.tools.d.ts +47 -0
  112. package/dist/resources/introspector.tools.js +505 -0
  113. package/dist/resources/introspector.tools.js.map +1 -0
  114. package/dist/resources/live.resource.d.ts +80 -0
  115. package/dist/resources/live.resource.js +231 -0
  116. package/dist/resources/live.resource.js.map +1 -0
  117. package/dist/resources/server.resource.d.ts +38 -0
  118. package/dist/resources/server.resource.js +106 -0
  119. package/dist/resources/server.resource.js.map +1 -0
  120. package/dist/resources/swap.resource.d.ts +43 -0
  121. package/dist/resources/swap.resource.js +251 -0
  122. package/dist/resources/swap.resource.js.map +1 -0
  123. package/dist/resources/swap.tools.d.ts +31 -0
  124. package/dist/resources/swap.tools.js +207 -0
  125. package/dist/resources/swap.tools.js.map +1 -0
  126. package/dist/resources/telemetry.chain.d.ts +13 -0
  127. package/dist/resources/telemetry.chain.js +32 -0
  128. package/dist/resources/telemetry.chain.js.map +1 -0
  129. package/dist/resources/telemetry.resource.d.ts +1 -0
  130. package/dist/resources/telemetry.resource.js +90 -0
  131. package/dist/resources/telemetry.resource.js.map +1 -0
  132. package/dist/schema/context.d.ts +11 -0
  133. package/dist/schema/context.js +3 -0
  134. package/dist/schema/context.js.map +1 -0
  135. package/dist/schema/index.d.ts +7 -0
  136. package/dist/schema/index.js +72 -0
  137. package/dist/schema/index.js.map +1 -0
  138. package/dist/schema/model.d.ts +97 -0
  139. package/dist/schema/model.js +5 -0
  140. package/dist/schema/model.js.map +1 -0
  141. package/dist/schema/mutation.d.ts +3 -0
  142. package/dist/schema/mutation.js +112 -0
  143. package/dist/schema/mutation.js.map +1 -0
  144. package/dist/schema/query.d.ts +3 -0
  145. package/dist/schema/query.js +295 -0
  146. package/dist/schema/query.js.map +1 -0
  147. package/dist/schema/types/AllType.d.ts +3 -0
  148. package/dist/schema/types/AllType.js +149 -0
  149. package/dist/schema/types/AllType.js.map +1 -0
  150. package/dist/schema/types/BaseElementCommon.d.ts +11 -0
  151. package/dist/schema/types/BaseElementCommon.js +61 -0
  152. package/dist/schema/types/BaseElementCommon.js.map +1 -0
  153. package/dist/schema/types/DiagnosticsType.d.ts +2 -0
  154. package/dist/schema/types/DiagnosticsType.js +15 -0
  155. package/dist/schema/types/DiagnosticsType.js.map +1 -0
  156. package/dist/schema/types/EventType.d.ts +4 -0
  157. package/dist/schema/types/EventType.js +97 -0
  158. package/dist/schema/types/EventType.js.map +1 -0
  159. package/dist/schema/types/HookType.d.ts +4 -0
  160. package/dist/schema/types/HookType.js +123 -0
  161. package/dist/schema/types/HookType.js.map +1 -0
  162. package/dist/schema/types/LiveType.d.ts +33 -0
  163. package/dist/schema/types/LiveType.js +553 -0
  164. package/dist/schema/types/LiveType.js.map +1 -0
  165. package/dist/schema/types/MetaType.d.ts +3 -0
  166. package/dist/schema/types/MetaType.js +31 -0
  167. package/dist/schema/types/MetaType.js.map +1 -0
  168. package/dist/schema/types/MiddlewareType.d.ts +4 -0
  169. package/dist/schema/types/MiddlewareType.js +26 -0
  170. package/dist/schema/types/MiddlewareType.js.map +1 -0
  171. package/dist/schema/types/ResourceType.d.ts +2 -0
  172. package/dist/schema/types/ResourceType.js +145 -0
  173. package/dist/schema/types/ResourceType.js.map +1 -0
  174. package/dist/schema/types/RunTypes.d.ts +7 -0
  175. package/dist/schema/types/RunTypes.js +95 -0
  176. package/dist/schema/types/RunTypes.js.map +1 -0
  177. package/dist/schema/types/SwapType.d.ts +5 -0
  178. package/dist/schema/types/SwapType.js +42 -0
  179. package/dist/schema/types/SwapType.js.map +1 -0
  180. package/dist/schema/types/TagType.d.ts +6 -0
  181. package/dist/schema/types/TagType.js +48 -0
  182. package/dist/schema/types/TagType.js.map +1 -0
  183. package/dist/schema/types/TaskLikeCommon.d.ts +7 -0
  184. package/dist/schema/types/TaskLikeCommon.js +86 -0
  185. package/dist/schema/types/TaskLikeCommon.js.map +1 -0
  186. package/dist/schema/types/TaskType.d.ts +11 -0
  187. package/dist/schema/types/TaskType.js +188 -0
  188. package/dist/schema/types/TaskType.js.map +1 -0
  189. package/dist/schema/types/index.d.ts +13 -0
  190. package/dist/schema/types/index.js +44 -0
  191. package/dist/schema/types/index.js.map +1 -0
  192. package/dist/schema/types/middleware/UsageTypes.d.ts +3 -0
  193. package/dist/schema/types/middleware/UsageTypes.js +23 -0
  194. package/dist/schema/types/middleware/UsageTypes.js.map +1 -0
  195. package/dist/schema/types/middleware/common.d.ts +6 -0
  196. package/dist/schema/types/middleware/common.js +156 -0
  197. package/dist/schema/types/middleware/common.js.map +1 -0
  198. package/dist/schema/utils.d.ts +12 -0
  199. package/dist/schema/utils.js +35 -0
  200. package/dist/schema/utils.js.map +1 -0
  201. package/dist/ui/index.html +20 -0
  202. package/dist/ui/static/index-D-NS5aw1.js +40 -0
  203. package/dist/utils/json-schema-to-readable.d.ts +1 -0
  204. package/dist/utils/json-schema-to-readable.js +256 -0
  205. package/dist/utils/json-schema-to-readable.js.map +1 -0
  206. package/dist/utils/path.d.ts +16 -0
  207. package/dist/utils/path.js +101 -0
  208. package/dist/utils/path.js.map +1 -0
  209. package/dist/utils/react-ssr.d.ts +9 -0
  210. package/dist/utils/react-ssr.js +36 -0
  211. package/dist/utils/react-ssr.js.map +1 -0
  212. package/dist/utils/zod.d.ts +6 -0
  213. package/dist/utils/zod.js +39 -0
  214. package/dist/utils/zod.js.map +1 -0
  215. package/package.json +83 -0
@@ -0,0 +1,553 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.ErrorFilterInput = exports.EmissionFilterInput = exports.LogFilterInput = exports.SourceKindEnum = exports.LogLevelEnum = exports.LiveType = exports.GcStatsType = exports.EventLoopStatsType = exports.CpuStatsType = exports.MemoryStatsType = exports.ErrorEntryType = exports.EmissionEntryType = exports.LogEntryType = void 0;
27
+ const graphql_1 = require("graphql");
28
+ const AllType_1 = require("./AllType");
29
+ const EventType_1 = require("./EventType");
30
+ const RunTypes_1 = require("./RunTypes");
31
+ const os = __importStar(require("node:os"));
32
+ const node_perf_hooks_1 = require("node:perf_hooks");
33
+ exports.LogEntryType = new graphql_1.GraphQLObjectType({
34
+ name: "LogEntry",
35
+ fields: () => ({
36
+ timestampMs: {
37
+ description: "Log creation time (milliseconds since epoch)",
38
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLFloat),
39
+ },
40
+ level: {
41
+ description: "Log level",
42
+ type: new graphql_1.GraphQLNonNull(exports.LogLevelEnum),
43
+ },
44
+ message: {
45
+ description: "Log message",
46
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLString),
47
+ },
48
+ data: {
49
+ description: "Stringified JSON if object",
50
+ type: graphql_1.GraphQLString,
51
+ resolve: (node) => node?.data == null
52
+ ? null
53
+ : typeof node.data === "string"
54
+ ? node.data
55
+ : safeStringify(node.data),
56
+ },
57
+ correlationId: {
58
+ description: "Correlation id for tracing",
59
+ type: graphql_1.GraphQLString,
60
+ },
61
+ }),
62
+ });
63
+ exports.EmissionEntryType = new graphql_1.GraphQLObjectType({
64
+ name: "EmissionEntry",
65
+ fields: () => ({
66
+ timestampMs: {
67
+ description: "Emission time (milliseconds since epoch)",
68
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLFloat),
69
+ },
70
+ eventId: {
71
+ description: "Emitted event id",
72
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLString),
73
+ },
74
+ emitterId: {
75
+ description: "Emitter id when available",
76
+ type: graphql_1.GraphQLString,
77
+ },
78
+ payload: {
79
+ description: "Stringified JSON if object",
80
+ type: graphql_1.GraphQLString,
81
+ resolve: (node) => node?.payload == null
82
+ ? null
83
+ : typeof node.payload === "string"
84
+ ? node.payload
85
+ : safeStringify(node.payload),
86
+ },
87
+ correlationId: {
88
+ description: "Correlation id for tracing",
89
+ type: graphql_1.GraphQLString,
90
+ },
91
+ eventResolved: {
92
+ description: "Resolved event from eventId",
93
+ type: EventType_1.EventType,
94
+ resolve: (node, _args, ctx) => ctx.introspector.getEvent(String(node.eventId)),
95
+ },
96
+ emitterResolved: {
97
+ description: "Resolved emitter node (task/hook/resource/middleware) if known; otherwise returns a minimal All node",
98
+ type: AllType_1.BaseElementInterface,
99
+ resolve: (node, _args, ctx) => {
100
+ const id = node?.emitterId ? String(node.emitterId) : null;
101
+ if (!id)
102
+ return null;
103
+ return (ctx.introspector.getTask(id) ||
104
+ ctx.introspector.getHooksByIds([id])[0] ||
105
+ ctx.introspector.getResource(id) ||
106
+ ctx.introspector.getMiddleware(id) ||
107
+ ctx.introspector.getEvent(id) || { id, meta: null, filePath: null });
108
+ },
109
+ },
110
+ }),
111
+ });
112
+ exports.ErrorEntryType = new graphql_1.GraphQLObjectType({
113
+ name: "ErrorEntry",
114
+ fields: () => ({
115
+ timestampMs: {
116
+ description: "Error time (milliseconds since epoch)",
117
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLFloat),
118
+ },
119
+ sourceId: {
120
+ description: "Id of the source that emitted the error",
121
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID),
122
+ },
123
+ sourceKind: {
124
+ description: "Kind of source (task/hook/resource/middleware/internal)",
125
+ type: new graphql_1.GraphQLNonNull(exports.SourceKindEnum),
126
+ },
127
+ message: {
128
+ description: "Error message",
129
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLString),
130
+ },
131
+ stack: { description: "Error stack when available", type: graphql_1.GraphQLString },
132
+ data: {
133
+ description: "Stringified JSON if object",
134
+ type: graphql_1.GraphQLString,
135
+ resolve: (node) => node?.data == null
136
+ ? null
137
+ : typeof node.data === "string"
138
+ ? node.data
139
+ : safeStringify(node.data),
140
+ },
141
+ correlationId: {
142
+ description: "Correlation id for tracing",
143
+ type: graphql_1.GraphQLString,
144
+ },
145
+ sourceResolved: {
146
+ description: "Resolved source node (task/hook/resource/middleware), else minimal All",
147
+ type: AllType_1.BaseElementInterface,
148
+ resolve: (node, _args, ctx) => {
149
+ const id = String(node.sourceId);
150
+ switch (node.sourceKind) {
151
+ case "TASK":
152
+ return (ctx.introspector.getTask(id) || {
153
+ id,
154
+ meta: null,
155
+ filePath: null,
156
+ });
157
+ case "HOOK":
158
+ return (ctx.introspector.getHooksByIds([id])[0] || {
159
+ id,
160
+ meta: null,
161
+ filePath: null,
162
+ });
163
+ case "RESOURCE":
164
+ return (ctx.introspector.getResource(id) || {
165
+ id,
166
+ meta: null,
167
+ filePath: null,
168
+ });
169
+ case "MIDDLEWARE":
170
+ return (ctx.introspector.getMiddleware(id) || {
171
+ id,
172
+ meta: null,
173
+ filePath: null,
174
+ });
175
+ default:
176
+ return { id, meta: null, filePath: null };
177
+ }
178
+ },
179
+ },
180
+ }),
181
+ });
182
+ // Event loop delay histogram (nanoseconds)
183
+ const __eventLoopDelayHistogram = (() => {
184
+ try {
185
+ const h = (0, node_perf_hooks_1.monitorEventLoopDelay)({ resolution: 10 });
186
+ h.enable();
187
+ return h;
188
+ }
189
+ catch {
190
+ return undefined;
191
+ }
192
+ })();
193
+ // GC observer to aggregate stats since process start
194
+ let __gcCollections = 0;
195
+ let __gcDurationMs = 0;
196
+ const __gcEvents = [];
197
+ const __gcEventsMax = 10000;
198
+ function pushGcEvent(duration) {
199
+ __gcEvents.push({ ts: Date.now(), duration });
200
+ if (__gcEvents.length > __gcEventsMax) {
201
+ // Trim 10% oldest to amortize cost
202
+ __gcEvents.splice(0, Math.floor(__gcEventsMax * 0.1));
203
+ }
204
+ }
205
+ try {
206
+ const obs = new node_perf_hooks_1.PerformanceObserver((list) => {
207
+ for (const entry of list.getEntries()) {
208
+ __gcCollections += 1;
209
+ __gcDurationMs += entry.duration;
210
+ pushGcEvent(entry.duration);
211
+ }
212
+ });
213
+ // buffered picks up prior GC entries as well
214
+ obs.observe({ entryTypes: ["gc"], buffered: true });
215
+ }
216
+ catch {
217
+ // noop if unsupported
218
+ }
219
+ let __prevElu = undefined;
220
+ function getCpuEluUtilization() {
221
+ try {
222
+ const current = node_perf_hooks_1.performance.eventLoopUtilization(__prevElu);
223
+ __prevElu = current;
224
+ return Number.isFinite(current.utilization) ? current.utilization : 0;
225
+ }
226
+ catch {
227
+ return 0;
228
+ }
229
+ }
230
+ exports.MemoryStatsType = new graphql_1.GraphQLObjectType({
231
+ name: "MemoryStats",
232
+ fields: () => ({
233
+ heapUsed: {
234
+ description: "V8 heap used in bytes",
235
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLFloat),
236
+ },
237
+ heapTotal: {
238
+ description: "V8 heap total in bytes",
239
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLFloat),
240
+ },
241
+ rss: {
242
+ description: "Resident Set Size in bytes",
243
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLFloat),
244
+ },
245
+ }),
246
+ });
247
+ exports.CpuStatsType = new graphql_1.GraphQLObjectType({
248
+ name: "CpuStats",
249
+ fields: () => ({
250
+ usage: {
251
+ description: "Event loop utilization ratio (0..1) since last sample or process start",
252
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLFloat),
253
+ },
254
+ loadAverage: {
255
+ description: "System 1-minute load average",
256
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLFloat),
257
+ },
258
+ }),
259
+ });
260
+ exports.EventLoopStatsType = new graphql_1.GraphQLObjectType({
261
+ name: "EventLoopStats",
262
+ fields: () => ({
263
+ lag: {
264
+ description: "Average event loop delay (ms) measured via monitorEventLoopDelay",
265
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLFloat),
266
+ },
267
+ }),
268
+ });
269
+ exports.GcStatsType = new graphql_1.GraphQLObjectType({
270
+ name: "GcStats",
271
+ fields: () => ({
272
+ collections: {
273
+ description: "Number of GC cycles since process start",
274
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLInt),
275
+ },
276
+ duration: {
277
+ description: "Total time spent in GC (ms) since process start",
278
+ type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLFloat),
279
+ },
280
+ }),
281
+ });
282
+ exports.LiveType = new graphql_1.GraphQLObjectType({
283
+ name: "Live",
284
+ description: "Real-time telemetry access: logs, event emissions, errors, runs, and system health.",
285
+ fields: () => ({
286
+ memory: {
287
+ description: "Process memory usage",
288
+ type: new graphql_1.GraphQLNonNull(exports.MemoryStatsType),
289
+ resolve: () => {
290
+ const m = process.memoryUsage();
291
+ const node = {
292
+ heapUsed: m.heapUsed,
293
+ heapTotal: m.heapTotal,
294
+ rss: m.rss,
295
+ };
296
+ return node;
297
+ },
298
+ },
299
+ cpu: {
300
+ description: "CPU-related statistics",
301
+ type: new graphql_1.GraphQLNonNull(exports.CpuStatsType),
302
+ resolve: () => {
303
+ const node = {
304
+ usage: getCpuEluUtilization(),
305
+ loadAverage: os.loadavg()[0] ?? 0,
306
+ };
307
+ return node;
308
+ },
309
+ },
310
+ eventLoop: {
311
+ description: "Event loop statistics",
312
+ args: {
313
+ reset: {
314
+ description: "Reset accumulated event loop delay histogram after read",
315
+ type: graphql_1.GraphQLBoolean,
316
+ },
317
+ },
318
+ type: new graphql_1.GraphQLNonNull(exports.EventLoopStatsType),
319
+ resolve: (_root, args) => {
320
+ const meanNs = __eventLoopDelayHistogram?.mean ?? 0;
321
+ const node = {
322
+ lag: Number.isFinite(meanNs) ? meanNs / 1e6 : 0,
323
+ };
324
+ if (args?.reset) {
325
+ try {
326
+ __eventLoopDelayHistogram?.reset();
327
+ }
328
+ catch {
329
+ // ignore
330
+ }
331
+ }
332
+ return node;
333
+ },
334
+ },
335
+ gc: {
336
+ description: "Garbage collector statistics. By default totals since process start; when windowMs provided, returns stats within that window.",
337
+ args: {
338
+ windowMs: {
339
+ description: "Optional window in milliseconds to compute stats over recent period.",
340
+ type: graphql_1.GraphQLFloat,
341
+ },
342
+ },
343
+ type: new graphql_1.GraphQLNonNull(exports.GcStatsType),
344
+ resolve: (_root, args) => {
345
+ const w = args?.windowMs;
346
+ if (typeof w === "number" && w > 0) {
347
+ const since = Date.now() - w;
348
+ let collections = 0;
349
+ let duration = 0;
350
+ // __gcEvents is time-ordered; find first index >= since
351
+ // Linear scan is fine for modest sizes
352
+ for (let i = __gcEvents.length - 1; i >= 0; i--) {
353
+ const ev = __gcEvents[i];
354
+ if (ev.ts < since)
355
+ break;
356
+ collections += 1;
357
+ duration += ev.duration;
358
+ }
359
+ return { collections, duration };
360
+ }
361
+ const node = {
362
+ collections: __gcCollections,
363
+ duration: __gcDurationMs,
364
+ };
365
+ return node;
366
+ },
367
+ },
368
+ logs: {
369
+ description: "Live logs with optional timestamp cursor, filters and last N",
370
+ args: {
371
+ afterTimestamp: { type: graphql_1.GraphQLFloat },
372
+ last: { type: graphql_1.GraphQLInt },
373
+ filter: { type: exports.LogFilterInput },
374
+ },
375
+ type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(exports.LogEntryType))),
376
+ resolve: (_root, args, ctx) => {
377
+ if (args.last == null &&
378
+ (args.filter == null || Object.keys(args.filter).length === 0)) {
379
+ // Preserve backward-compat fast-path when only afterTimestamp is used
380
+ return ctx.live.getLogs(args.afterTimestamp ?? undefined);
381
+ }
382
+ return ctx.live.getLogs({
383
+ afterTimestamp: args.afterTimestamp ?? undefined,
384
+ last: args.last ?? undefined,
385
+ levels: args.filter?.levels ?? undefined,
386
+ messageIncludes: args.filter?.messageIncludes ?? undefined,
387
+ correlationIds: args.filter?.correlationIds ?? undefined,
388
+ });
389
+ },
390
+ },
391
+ emissions: {
392
+ description: "Event emissions with optional timestamp cursor, filters and last N",
393
+ args: {
394
+ afterTimestamp: { type: graphql_1.GraphQLFloat },
395
+ last: { type: graphql_1.GraphQLInt },
396
+ filter: { type: exports.EmissionFilterInput },
397
+ },
398
+ type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(exports.EmissionEntryType))),
399
+ resolve: (_root, args, ctx) => {
400
+ if (args.last == null &&
401
+ (args.filter == null || Object.keys(args.filter).length === 0)) {
402
+ return ctx.live.getEmissions(args.afterTimestamp ?? undefined);
403
+ }
404
+ return ctx.live.getEmissions({
405
+ afterTimestamp: args.afterTimestamp ?? undefined,
406
+ last: args.last ?? undefined,
407
+ eventIds: args.filter?.eventIds ?? undefined,
408
+ emitterIds: args.filter?.emitterIds ?? undefined,
409
+ });
410
+ },
411
+ },
412
+ errors: {
413
+ description: "Errors captured with optional timestamp cursor, filters and last N",
414
+ args: {
415
+ afterTimestamp: { type: graphql_1.GraphQLFloat },
416
+ last: { type: graphql_1.GraphQLInt },
417
+ filter: { type: exports.ErrorFilterInput },
418
+ },
419
+ type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(exports.ErrorEntryType))),
420
+ resolve: (_root, args, ctx) => {
421
+ if (args.last == null &&
422
+ (args.filter == null || Object.keys(args.filter).length === 0)) {
423
+ return ctx.live.getErrors(args.afterTimestamp ?? undefined);
424
+ }
425
+ return ctx.live.getErrors({
426
+ afterTimestamp: args.afterTimestamp ?? undefined,
427
+ last: args.last ?? undefined,
428
+ sourceKinds: args.filter?.sourceKinds ?? undefined,
429
+ sourceIds: args.filter?.sourceIds ?? undefined,
430
+ messageIncludes: args.filter?.messageIncludes ?? undefined,
431
+ });
432
+ },
433
+ },
434
+ runs: {
435
+ description: "Execution run records with optional timestamp cursor, filters and last N",
436
+ args: {
437
+ afterTimestamp: { type: graphql_1.GraphQLFloat },
438
+ last: { type: graphql_1.GraphQLInt },
439
+ filter: { type: RunTypes_1.RunFilterInput },
440
+ },
441
+ type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(RunTypes_1.RunRecordType))),
442
+ resolve: (_root, args, ctx) => {
443
+ if (args.last == null &&
444
+ (args.filter == null || Object.keys(args.filter).length === 0)) {
445
+ return ctx.live.getRuns(args.afterTimestamp ?? undefined);
446
+ }
447
+ return ctx.live.getRuns({
448
+ afterTimestamp: args.afterTimestamp ?? undefined,
449
+ last: args.last ?? undefined,
450
+ nodeKinds: args.filter?.nodeKinds ?? undefined,
451
+ nodeIds: args.filter?.nodeIds ?? undefined,
452
+ ok: args.filter?.ok ?? undefined,
453
+ parentIds: args.filter?.parentIds ?? undefined,
454
+ rootIds: args.filter?.rootIds ?? undefined,
455
+ });
456
+ },
457
+ },
458
+ }),
459
+ });
460
+ function safeStringify(value) {
461
+ try {
462
+ return JSON.stringify(value);
463
+ }
464
+ catch {
465
+ return String(value);
466
+ }
467
+ }
468
+ // Enums and filter inputs
469
+ exports.LogLevelEnum = new graphql_1.GraphQLEnumType({
470
+ name: "LogLevelEnum",
471
+ description: "Supported log levels",
472
+ values: {
473
+ trace: { value: "trace" },
474
+ debug: { value: "debug" },
475
+ info: { value: "info" },
476
+ warn: { value: "warn" },
477
+ error: { value: "error" },
478
+ fatal: { value: "fatal" },
479
+ log: { value: "log" },
480
+ },
481
+ });
482
+ exports.SourceKindEnum = new graphql_1.GraphQLEnumType({
483
+ name: "SourceKindEnum",
484
+ description: "Kinds of sources that can emit errors",
485
+ values: {
486
+ TASK: { value: "TASK" },
487
+ HOOK: { value: "HOOK" },
488
+ RESOURCE: { value: "RESOURCE" },
489
+ MIDDLEWARE: { value: "MIDDLEWARE" },
490
+ INTERNAL: { value: "INTERNAL" },
491
+ },
492
+ });
493
+ // NodeKindEnum moved to RunTypes.ts
494
+ exports.LogFilterInput = new graphql_1.GraphQLInputObjectType({
495
+ name: "LogFilterInput",
496
+ description: "Filters for logs",
497
+ fields: {
498
+ levels: {
499
+ description: "Only include specific levels",
500
+ type: new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(exports.LogLevelEnum)),
501
+ },
502
+ messageIncludes: {
503
+ description: "Substring match inside message",
504
+ type: graphql_1.GraphQLString,
505
+ },
506
+ correlationIds: {
507
+ description: "Filter by correlation ids",
508
+ type: new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(graphql_1.GraphQLString)),
509
+ },
510
+ },
511
+ });
512
+ exports.EmissionFilterInput = new graphql_1.GraphQLInputObjectType({
513
+ name: "EmissionFilterInput",
514
+ description: "Filters for event emissions",
515
+ fields: {
516
+ eventIds: {
517
+ description: "Only include specific event ids",
518
+ type: new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(graphql_1.GraphQLString)),
519
+ },
520
+ emitterIds: {
521
+ description: "Only include specific emitter ids",
522
+ type: new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(graphql_1.GraphQLString)),
523
+ },
524
+ correlationIds: {
525
+ description: "Filter by correlation ids",
526
+ type: new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(graphql_1.GraphQLString)),
527
+ },
528
+ },
529
+ });
530
+ exports.ErrorFilterInput = new graphql_1.GraphQLInputObjectType({
531
+ name: "ErrorFilterInput",
532
+ description: "Filters for captured errors",
533
+ fields: {
534
+ sourceKinds: {
535
+ description: "Only include errors from specific source kinds",
536
+ type: new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(exports.SourceKindEnum)),
537
+ },
538
+ sourceIds: {
539
+ description: "Only include errors from specific source ids",
540
+ type: new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(graphql_1.GraphQLID)),
541
+ },
542
+ messageIncludes: {
543
+ description: "Substring match inside error message",
544
+ type: graphql_1.GraphQLString,
545
+ },
546
+ correlationIds: {
547
+ description: "Filter by correlation ids",
548
+ type: new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(graphql_1.GraphQLString)),
549
+ },
550
+ },
551
+ });
552
+ // RunFilterInput moved to RunTypes.ts
553
+ //# sourceMappingURL=LiveType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LiveType.js","sourceRoot":"","sources":["../../../src/schema/types/LiveType.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAWiB;AAcjB,uCAA0D;AAE1D,2CAAwC;AACxC,yCAAyE;AACzE,4CAA8B;AAC9B,qDAKyB;AAEZ,QAAA,YAAY,GAAG,IAAI,2BAAiB,CAG/C;IACA,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;QACb,WAAW,EAAE;YACX,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,IAAI,wBAAc,CAAC,sBAAY,CAAC;SACvC;QACD,KAAK,EAAE;YACL,WAAW,EAAE,WAAW;YACxB,IAAI,EAAE,IAAI,wBAAc,CAAC,oBAAY,CAAC;SACvC;QACD,OAAO,EAAE;YACP,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,IAAI,wBAAc,CAAC,uBAAa,CAAC;SACxC;QACD,IAAI,EAAE;YACJ,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,uBAAa;YACnB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAChB,IAAI,EAAE,IAAI,IAAI,IAAI;gBAChB,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ;oBAC/B,CAAC,CAAC,IAAI,CAAC,IAAI;oBACX,CAAC,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;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QACN,WAAW,EAAE;YACX,WAAW,EAAE,gDAAgD;YAC7D,IAAI,EAAE,IAAI,qBAAW,CAAC,IAAI,wBAAc,CAAC,sBAAc,CAAC,CAAC;SAC1D;QACD,SAAS,EAAE;YACT,WAAW,EAAE,8CAA8C;YAC3D,IAAI,EAAE,IAAI,qBAAW,CAAC,IAAI,wBAAc,CAAC,mBAAS,CAAC,CAAC;SACrD;QACD,eAAe,EAAE;YACf,WAAW,EAAE,sCAAsC;YACnD,IAAI,EAAE,uBAAa;SACpB;QACD,cAAc,EAAE;YACd,WAAW,EAAE,2BAA2B;YACxC,IAAI,EAAE,IAAI,qBAAW,CAAC,IAAI,wBAAc,CAAC,uBAAa,CAAC,CAAC;SACzD;KACF;CACF,CAAC,CAAC;AAEH,sCAAsC"}
@@ -0,0 +1,3 @@
1
+ import { GraphQLObjectType } from "graphql";
2
+ export declare const MetaTagUsageType: GraphQLObjectType;
3
+ export declare const MetaType: GraphQLObjectType;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MetaType = exports.MetaTagUsageType = void 0;
4
+ const graphql_1 = require("graphql");
5
+ exports.MetaTagUsageType = new graphql_1.GraphQLObjectType({
6
+ name: "MetaTagUsage",
7
+ fields: () => ({
8
+ id: { type: new graphql_1.GraphQLNonNull(graphql_1.GraphQLID) },
9
+ config: { type: graphql_1.GraphQLString },
10
+ }),
11
+ });
12
+ exports.MetaType = new graphql_1.GraphQLObjectType({
13
+ name: "Meta",
14
+ fields: () => ({
15
+ title: { description: "Human-readable title", type: graphql_1.GraphQLString },
16
+ description: { description: "Longer description", type: graphql_1.GraphQLString },
17
+ tags: {
18
+ description: "Tags attached to the element with optional serialized config",
19
+ type: new graphql_1.GraphQLNonNull(new graphql_1.GraphQLList(new graphql_1.GraphQLNonNull(exports.MetaTagUsageType))),
20
+ resolve: (node) => {
21
+ if (Array.isArray(node?.tagsDetailed))
22
+ return node.tagsDetailed;
23
+ if (Array.isArray(node?.tags)) {
24
+ return node.tags.map((id) => ({ id, config: null }));
25
+ }
26
+ return [];
27
+ },
28
+ },
29
+ }),
30
+ });
31
+ //# sourceMappingURL=MetaType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MetaType.js","sourceRoot":"","sources":["../../../src/schema/types/MetaType.ts"],"names":[],"mappings":";;;AAAA,qCAOiB;AAEJ,QAAA,gBAAgB,GAAsB,IAAI,2BAAiB,CAAC;IACvE,IAAI,EAAE,cAAc;IACpB,MAAM,EAAE,GAAoC,EAAE,CAAC,CAAC;QAC9C,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,wBAAc,CAAC,mBAAS,CAAC,EAAE;QAC3C,MAAM,EAAE,EAAE,IAAI,EAAE,uBAAa,EAAE;KAChC,CAAC;CACH,CAAC,CAAC;AAEU,QAAA,QAAQ,GAAsB,IAAI,2BAAiB,CAAC;IAC/D,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,GAAoC,EAAE,CAAC,CAAC;QAC9C,KAAK,EAAE,EAAE,WAAW,EAAE,sBAAsB,EAAE,IAAI,EAAE,uBAAa,EAAE;QACnE,WAAW,EAAE,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE,uBAAa,EAAE;QACvE,IAAI,EAAE;YACJ,WAAW,EACT,8DAA8D;YAChE,IAAI,EAAE,IAAI,wBAAc,CACtB,IAAI,qBAAW,CAAC,IAAI,wBAAc,CAAC,wBAAgB,CAAC,CAAC,CACtD;YACD,OAAO,EAAE,CAAC,IAGT,EAAE,EAAE;gBACH,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,YAAY,CAAC;oBAAE,OAAO,IAAI,CAAC,YAAY,CAAC;gBAChE,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC;oBAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;gBACvD,CAAC;gBACD,OAAO,EAAE,CAAC;YACZ,CAAC;SACF;KACF,CAAC;CACH,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { GraphQLObjectType } from "graphql";
2
+ export declare const TaskMiddlewareType: GraphQLObjectType;
3
+ export declare const ResourceMiddlewareType: GraphQLObjectType;
4
+ export declare const MiddlewareType: GraphQLObjectType;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MiddlewareType = exports.ResourceMiddlewareType = exports.TaskMiddlewareType = void 0;
4
+ const common_1 = require("./middleware/common");
5
+ const graphql_1 = require("graphql");
6
+ const AllType_1 = require("./AllType");
7
+ exports.TaskMiddlewareType = new graphql_1.GraphQLObjectType({
8
+ name: "TaskMiddleware",
9
+ interfaces: () => [AllType_1.BaseElementInterface],
10
+ isTypeOf: (value) => Boolean(value?.usedByTasks),
11
+ fields: () => (0, common_1.buildTaskMiddlewareFields)(),
12
+ });
13
+ exports.ResourceMiddlewareType = new graphql_1.GraphQLObjectType({
14
+ name: "ResourceMiddleware",
15
+ interfaces: () => [AllType_1.BaseElementInterface],
16
+ isTypeOf: (value) => Boolean(value?.usedByResources),
17
+ fields: () => (0, common_1.buildResourceMiddlewareFields)(),
18
+ });
19
+ // Backward-compatibility combined type
20
+ exports.MiddlewareType = new graphql_1.GraphQLObjectType({
21
+ name: "Middleware",
22
+ interfaces: () => [AllType_1.BaseElementInterface],
23
+ isTypeOf: (value) => Boolean(value?.usedByTasks && value?.usedByResources),
24
+ fields: () => (0, common_1.buildLegacyCombinedMiddlewareFields)(),
25
+ });
26
+ //# sourceMappingURL=MiddlewareType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MiddlewareType.js","sourceRoot":"","sources":["../../../src/schema/types/MiddlewareType.ts"],"names":[],"mappings":";;;AAAA,gDAK6B;AAK7B,qCAKiB;AACjB,uCAAiD;AAEpC,QAAA,kBAAkB,GAAsB,IAAI,2BAAiB,CAAC;IACzE,IAAI,EAAE,gBAAgB;IACtB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,8BAAoB,CAAC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAE,KAAa,EAAE,WAAW,CAAC;IACzD,MAAM,EAAE,GAAoC,EAAE,CAAC,IAAA,kCAAyB,GAAE;CAC3E,CAAC,CAAC;AAEU,QAAA,sBAAsB,GAAsB,IAAI,2BAAiB,CAAC;IAC7E,IAAI,EAAE,oBAAoB;IAC1B,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,8BAAoB,CAAC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAE,KAAa,EAAE,eAAe,CAAC;IAC7D,MAAM,EAAE,GAAoC,EAAE,CAC5C,IAAA,sCAA6B,GAAE;CAClC,CAAC,CAAC;AAEH,uCAAuC;AAC1B,QAAA,cAAc,GAAsB,IAAI,2BAAiB,CAAC;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,8BAAoB,CAAC;IACxC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAClB,OAAO,CAAE,KAAa,EAAE,WAAW,IAAK,KAAa,EAAE,eAAe,CAAC;IACzE,MAAM,EAAE,GAAoC,EAAE,CAC5C,IAAA,4CAAmC,GAAE;CACxC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { GraphQLObjectType } from "graphql";
2
+ export declare const ResourceType: GraphQLObjectType;