@botpress/runtime 1.6.3 → 1.6.4

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 (187) hide show
  1. package/dist/_types/actions.d.ts +1 -1
  2. package/dist/_types/actions.d.ts.map +1 -1
  3. package/dist/_types/channels.d.ts +1 -1
  4. package/dist/_types/channels.d.ts.map +1 -1
  5. package/dist/_types/conversations.d.ts +3 -3
  6. package/dist/_types/conversations.d.ts.map +1 -1
  7. package/dist/_types/events.d.ts +1 -1
  8. package/dist/_types/events.d.ts.map +1 -1
  9. package/dist/_types/integration-actions.d.ts +1 -1
  10. package/dist/_types/integration-actions.d.ts.map +1 -1
  11. package/dist/_types/integrations.d.ts +1 -1
  12. package/dist/_types/integrations.d.ts.map +1 -1
  13. package/dist/_types/state.d.ts +1 -1
  14. package/dist/_types/state.d.ts.map +1 -1
  15. package/dist/_types/tables.d.ts +1 -1
  16. package/dist/_types/tables.d.ts.map +1 -1
  17. package/dist/_types/triggers.d.ts +1 -1
  18. package/dist/_types/triggers.d.ts.map +1 -1
  19. package/dist/_types/workflows.d.ts +4 -4
  20. package/dist/_types/workflows.d.ts.map +1 -1
  21. package/dist/constants.d.ts.map +1 -1
  22. package/dist/consts.d.ts.map +1 -1
  23. package/dist/debugging/node-inspector.d.ts +1 -1
  24. package/dist/debugging/node-inspector.d.ts.map +1 -1
  25. package/dist/define-config.d.ts +3 -3
  26. package/dist/define-config.d.ts.map +1 -1
  27. package/dist/definition.d.ts +4 -4
  28. package/dist/definition.d.ts.map +1 -1
  29. package/dist/definition.js +137 -494
  30. package/dist/definition.js.map +2 -2
  31. package/dist/environment.d.ts +17 -17
  32. package/dist/environment.d.ts.map +1 -1
  33. package/dist/errors.d.ts +1 -1
  34. package/dist/errors.d.ts.map +1 -1
  35. package/dist/globals.d.ts.map +1 -1
  36. package/dist/internal.d.ts +9 -9
  37. package/dist/internal.d.ts.map +1 -1
  38. package/dist/internal.js +156 -549
  39. package/dist/internal.js.map +2 -2
  40. package/dist/library.d.ts +18 -18
  41. package/dist/library.d.ts.map +1 -1
  42. package/dist/library.js +141 -506
  43. package/dist/library.js.map +2 -2
  44. package/dist/primitives/action.d.ts +7 -7
  45. package/dist/primitives/action.d.ts.map +1 -1
  46. package/dist/primitives/asset.d.ts.map +1 -1
  47. package/dist/primitives/conversation-instance.d.ts +6 -6
  48. package/dist/primitives/conversation-instance.d.ts.map +1 -1
  49. package/dist/primitives/conversation.d.ts +15 -15
  50. package/dist/primitives/conversation.d.ts.map +1 -1
  51. package/dist/primitives/data-sources/index.d.ts +5 -5
  52. package/dist/primitives/data-sources/index.d.ts.map +1 -1
  53. package/dist/primitives/data-sources/source-base.d.ts +3 -3
  54. package/dist/primitives/data-sources/source-base.d.ts.map +1 -1
  55. package/dist/primitives/data-sources/source-directory.d.ts +1 -1
  56. package/dist/primitives/data-sources/source-directory.d.ts.map +1 -1
  57. package/dist/primitives/data-sources/source-table.d.ts +2 -2
  58. package/dist/primitives/data-sources/source-table.d.ts.map +1 -1
  59. package/dist/primitives/data-sources/source-website.d.ts +2 -2
  60. package/dist/primitives/data-sources/source-website.d.ts.map +1 -1
  61. package/dist/primitives/definition.d.ts +8 -8
  62. package/dist/primitives/definition.d.ts.map +1 -1
  63. package/dist/primitives/index.d.ts +18 -18
  64. package/dist/primitives/index.d.ts.map +1 -1
  65. package/dist/primitives/knowledge.d.ts +2 -2
  66. package/dist/primitives/knowledge.d.ts.map +1 -1
  67. package/dist/primitives/table.d.ts +31 -31
  68. package/dist/primitives/table.d.ts.map +1 -1
  69. package/dist/primitives/trigger.d.ts +5 -5
  70. package/dist/primitives/trigger.d.ts.map +1 -1
  71. package/dist/primitives/workflow-instance.d.ts +8 -8
  72. package/dist/primitives/workflow-instance.d.ts.map +1 -1
  73. package/dist/primitives/workflow-step.d.ts +4 -4
  74. package/dist/primitives/workflow-step.d.ts.map +1 -1
  75. package/dist/primitives/workflow-utils.d.ts +5 -5
  76. package/dist/primitives/workflow-utils.d.ts.map +1 -1
  77. package/dist/primitives/workflow.d.ts +13 -13
  78. package/dist/primitives/workflow.d.ts.map +1 -1
  79. package/dist/runtime/actions.d.ts +2 -2
  80. package/dist/runtime/actions.d.ts.map +1 -1
  81. package/dist/runtime/adk.d.ts +7 -7
  82. package/dist/runtime/adk.d.ts.map +1 -1
  83. package/dist/runtime/agent-registry.d.ts +1 -1
  84. package/dist/runtime/agent-registry.d.ts.map +1 -1
  85. package/dist/runtime/assets.d.ts.map +1 -1
  86. package/dist/runtime/autonomous.d.ts +16 -16
  87. package/dist/runtime/autonomous.d.ts.map +1 -1
  88. package/dist/runtime/chat/chat.d.ts +4 -4
  89. package/dist/runtime/chat/chat.d.ts.map +1 -1
  90. package/dist/runtime/chat/citations.d.ts +1 -1
  91. package/dist/runtime/chat/citations.d.ts.map +1 -1
  92. package/dist/runtime/chat/components.d.ts +21 -21
  93. package/dist/runtime/chat/components.d.ts.map +1 -1
  94. package/dist/runtime/chat/html.d.ts.map +1 -1
  95. package/dist/runtime/chat/index.d.ts +4 -4
  96. package/dist/runtime/chat/index.d.ts.map +1 -1
  97. package/dist/runtime/chat/messages.d.ts +2 -2
  98. package/dist/runtime/chat/messages.d.ts.map +1 -1
  99. package/dist/runtime/chat/transcript.d.ts +5 -5
  100. package/dist/runtime/chat/transcript.d.ts.map +1 -1
  101. package/dist/runtime/chat/truncate-object.d.ts.map +1 -1
  102. package/dist/runtime/chat/truncate-transcript.d.ts +1 -1
  103. package/dist/runtime/chat/truncate-transcript.d.ts.map +1 -1
  104. package/dist/runtime/config.d.ts.map +1 -1
  105. package/dist/runtime/context/cognitive.d.ts +1 -1
  106. package/dist/runtime/context/cognitive.d.ts.map +1 -1
  107. package/dist/runtime/context/context.d.ts +10 -10
  108. package/dist/runtime/context/context.d.ts.map +1 -1
  109. package/dist/runtime/context/handlers.d.ts +5 -5
  110. package/dist/runtime/context/handlers.d.ts.map +1 -1
  111. package/dist/runtime/context/http.d.ts +4 -4
  112. package/dist/runtime/context/http.d.ts.map +1 -1
  113. package/dist/runtime/context/inspector-handler.d.ts.map +1 -1
  114. package/dist/runtime/context/promises.d.ts.map +1 -1
  115. package/dist/runtime/events.d.ts.map +1 -1
  116. package/dist/runtime/handlers/conversation-matching.d.ts.map +1 -1
  117. package/dist/runtime/handlers/conversation.d.ts +1 -1
  118. package/dist/runtime/handlers/conversation.d.ts.map +1 -1
  119. package/dist/runtime/handlers/event.d.ts +1 -1
  120. package/dist/runtime/handlers/event.d.ts.map +1 -1
  121. package/dist/runtime/handlers/index.d.ts +4 -4
  122. package/dist/runtime/handlers/index.d.ts.map +1 -1
  123. package/dist/runtime/handlers/trigger.d.ts +1 -1
  124. package/dist/runtime/handlers/trigger.d.ts.map +1 -1
  125. package/dist/runtime/handlers/workflow.d.ts +1 -1
  126. package/dist/runtime/handlers/workflow.d.ts.map +1 -1
  127. package/dist/runtime/heavy-imports.d.ts.map +1 -1
  128. package/dist/runtime/index.d.ts +11 -11
  129. package/dist/runtime/index.d.ts.map +1 -1
  130. package/dist/runtime/interfaces.d.ts.map +1 -1
  131. package/dist/runtime/singletons.d.ts.map +1 -1
  132. package/dist/runtime/state.d.ts +1 -1
  133. package/dist/runtime/state.d.ts.map +1 -1
  134. package/dist/runtime/tracked-state-schema.d.ts.map +1 -1
  135. package/dist/runtime/tracked-state.d.ts +5 -5
  136. package/dist/runtime/tracked-state.d.ts.map +1 -1
  137. package/dist/runtime/workflows/index.d.ts +1 -1
  138. package/dist/runtime/workflows/index.d.ts.map +1 -1
  139. package/dist/runtime/workflows/knowledge-indexing.d.ts +1 -1
  140. package/dist/runtime/workflows/knowledge-indexing.d.ts.map +1 -1
  141. package/dist/runtime.d.ts +13 -13
  142. package/dist/runtime.d.ts.map +1 -1
  143. package/dist/runtime.js +223 -666
  144. package/dist/runtime.js.map +2 -2
  145. package/dist/telemetry/context-manager.d.ts +2 -2
  146. package/dist/telemetry/context-manager.d.ts.map +1 -1
  147. package/dist/telemetry/file-exporter.d.ts +1 -1
  148. package/dist/telemetry/file-exporter.d.ts.map +1 -1
  149. package/dist/telemetry/instrument-http.d.ts +1 -1
  150. package/dist/telemetry/instrument-http.d.ts.map +1 -1
  151. package/dist/telemetry/live-file-processor.d.ts +2 -2
  152. package/dist/telemetry/live-file-processor.d.ts.map +1 -1
  153. package/dist/telemetry/span-helpers.d.ts +8 -8
  154. package/dist/telemetry/span-helpers.d.ts.map +1 -1
  155. package/dist/telemetry/spans/factory.d.ts +11 -11
  156. package/dist/telemetry/spans/factory.d.ts.map +1 -1
  157. package/dist/telemetry/spans/index.d.ts +98 -98
  158. package/dist/telemetry/spans/index.d.ts.map +1 -1
  159. package/dist/telemetry/spans/well-known-attributes.d.ts +5 -5
  160. package/dist/telemetry/spans/well-known-attributes.d.ts.map +1 -1
  161. package/dist/telemetry/structured-logging.d.ts.map +1 -1
  162. package/dist/telemetry/tracing.d.ts +3 -3
  163. package/dist/telemetry/tracing.d.ts.map +1 -1
  164. package/dist/telemetry/utils.d.ts +1 -1
  165. package/dist/telemetry/utils.d.ts.map +1 -1
  166. package/dist/types.d.ts +4 -4
  167. package/dist/types.d.ts.map +1 -1
  168. package/dist/ui.d.ts +4 -4
  169. package/dist/ui.d.ts.map +1 -1
  170. package/dist/ui.js +9 -76
  171. package/dist/ui.js.map +2 -2
  172. package/dist/utilities/abort-signal.d.ts.map +1 -1
  173. package/dist/utilities/events.d.ts +2 -2
  174. package/dist/utilities/events.d.ts.map +1 -1
  175. package/dist/utilities/promises.d.ts.map +1 -1
  176. package/dist/utilities/size.d.ts.map +1 -1
  177. package/dist/utilities/strings.d.ts.map +1 -1
  178. package/dist/utilities/trigger-tags.d.ts.map +1 -1
  179. package/dist/utilities/types.d.ts.map +1 -1
  180. package/dist/workers/dev_worker.d.ts +1 -1
  181. package/dist/workers/dev_worker.d.ts.map +1 -1
  182. package/dist/workers/index.d.ts +3 -3
  183. package/dist/workers/index.d.ts.map +1 -1
  184. package/dist/workers/parent_worker.d.ts +1 -1
  185. package/dist/workers/parent_worker.d.ts.map +1 -1
  186. package/dist/workers/worker_pool.d.ts.map +1 -1
  187. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"well-known-attributes.d.ts","sourceRoot":"","sources":["../../../src/telemetry/spans/well-known-attributes.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,mBAAmB,CAAC;AAEtE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwE0C,CAAC"}
1
+ {"version":3,"file":"well-known-attributes.d.ts","sourceRoot":"","sources":["../../../src/telemetry/spans/well-known-attributes.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,mBAAmB,CAAA;AAErE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwE0C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"structured-logging.d.ts","sourceRoot":"","sources":["../../src/telemetry/structured-logging.ts"],"names":[],"mappings":"AA4GA;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAyB/C;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAMjD;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;CAAkB,CAAC"}
1
+ {"version":3,"file":"structured-logging.d.ts","sourceRoot":"","sources":["../../src/telemetry/structured-logging.ts"],"names":[],"mappings":"AAwGA;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAyB/C;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,IAAI,CAMjD;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;CAAkB,CAAA"}
@@ -1,6 +1,6 @@
1
- import { AsyncLocalStorageContextManager } from "./context-manager";
1
+ import { AsyncLocalStorageContextManager } from './context-manager';
2
2
  export declare const contextManager: AsyncLocalStorageContextManager;
3
3
  export declare const tracer: import("@opentelemetry/api").Tracer;
4
- export { span, createSpan } from "./span-helpers";
5
- export type { TypedSpan, DisposableSpan, SpanWithContext, } from "./span-helpers";
4
+ export { span, createSpan } from './span-helpers';
5
+ export type { TypedSpan, DisposableSpan, SpanWithContext } from './span-helpers';
6
6
  //# sourceMappingURL=tracing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/telemetry/tracing.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAC;AA6BpE,eAAO,MAAM,cAAc,iCAE1B,CAAC;AAcF,eAAO,MAAM,MAAM,qCAAmC,CAAC;AAMvD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,EACV,SAAS,EACT,cAAc,EACd,eAAe,GAChB,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/telemetry/tracing.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,+BAA+B,EAAE,MAAM,mBAAmB,CAAA;AA6BnE,eAAO,MAAM,cAAc,iCAE1B,CAAA;AAcD,eAAO,MAAM,MAAM,qCAAmC,CAAA;AAMtD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACjD,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA"}
@@ -1,3 +1,3 @@
1
- import { AttributeValue } from "@opentelemetry/api";
1
+ import { AttributeValue } from '@opentelemetry/api';
2
2
  export declare const truncateAttribute: <T>(value: T, maxLength?: number) => AttributeValue;
3
3
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/telemetry/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIpD,eAAO,MAAM,iBAAiB,GAAI,CAAC,EACjC,OAAO,CAAC,EACR,kBAAgB,KACf,cA0BF,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/telemetry/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAInD,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAE,OAAO,CAAC,EAAE,kBAAgB,KAAG,cA0BjE,CAAA"}
package/dist/types.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- import { type InterfacePackage, type IntegrationPackage } from "@botpress/sdk";
1
+ import { type InterfacePackage, type IntegrationPackage } from '@botpress/sdk';
2
2
  export type ZuiType<Output = any, Input = Output> = {
3
- readonly __type__: "ZuiType";
3
+ readonly __type__: 'ZuiType';
4
4
  readonly _output: Output;
5
5
  readonly _input: Input;
6
6
  };
7
7
  export type Integrations = never;
8
8
  export type Interfaces = never;
9
- export type { Events, EventName, EventPayload } from "./_types/events";
10
- export type { Triggers } from "./_types/triggers";
9
+ export type { Events, EventName, EventPayload } from './_types/events';
10
+ export type { Triggers } from './_types/triggers';
11
11
  export type RegisteredIntegration = IntegrationPackage & {
12
12
  alias: string;
13
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE/E,MAAM,MAAM,OAAO,CAAC,MAAM,GAAG,GAAG,EAAE,KAAK,GAAG,MAAM,IAAI;IAClD,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ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8 @@
3
3
  * This module only exports types and constants needed by the UI
4
4
  * to prevent bundling unnecessary code and dependencies
5
5
  */
6
- export { Spans as SpanDefinitions } from "./telemetry/spans/index";
7
- export type { Spans as SpanUnion, SpanOf } from "./telemetry/spans/index";
8
- export type { SpanDefinition, AttributeDefinition, AttributeType, GetSpanType, TypeForAttribute, } from "./telemetry/spans/factory";
9
- export type { SpanImportanceLevel } from "./telemetry/spans";
6
+ export { Spans as SpanDefinitions } from './telemetry/spans/index';
7
+ export type { Spans as SpanUnion, SpanOf } from './telemetry/spans/index';
8
+ export type { SpanDefinition, AttributeDefinition, AttributeType, GetSpanType, TypeForAttribute, } from './telemetry/spans/factory';
9
+ export type { SpanImportanceLevel } from './telemetry/spans';
10
10
  //# sourceMappingURL=ui.d.ts.map
package/dist/ui.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,KAAK,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAGnE,YAAY,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAG1E,YAAY,EACV,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AAGnC,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,KAAK,IAAI,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAGlE,YAAY,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAGzE,YAAY,EACV,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,WAAW,EACX,gBAAgB,GACjB,MAAM,2BAA2B,CAAA;AAGlC,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA"}
package/dist/ui.js CHANGED
@@ -108,15 +108,7 @@ var IncomingRequestSpan = {
108
108
  },
109
109
  "request.method": {
110
110
  type: "enum",
111
- enum: [
112
- "GET",
113
- "POST",
114
- "PUT",
115
- "DELETE",
116
- "PATCH",
117
- "HEAD",
118
- "OPTIONS"
119
- ],
111
+ enum: ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"],
120
112
  description: "The HTTP method",
121
113
  title: "HTTP Method",
122
114
  required: true
@@ -275,14 +267,7 @@ var BotpressClientSpan = {
275
267
  "botpress.request.body": { type: "string" },
276
268
  "botpress.response.body": { type: "string" },
277
269
  "trace.traceparent": { type: "string" },
278
- ...optional(
279
- "conversationId",
280
- "messageId",
281
- "workflowId",
282
- "userId",
283
- "eventId",
284
- "action.name"
285
- )
270
+ ...optional("conversationId", "messageId", "workflowId", "userId", "eventId", "action.name")
286
271
  }
287
272
  };
288
273
  var HttpSpan = {
@@ -314,21 +299,8 @@ var ConversationHandlerSpan = {
314
299
  name: "handler.conversation",
315
300
  importance: "high",
316
301
  attributes: {
317
- ...required(
318
- "botId",
319
- "conversationId",
320
- "eventId",
321
- "integration",
322
- "channel",
323
- "event.type"
324
- ),
325
- ...optional(
326
- "messageId",
327
- "userId",
328
- "event.payload",
329
- "message.payload",
330
- "message.type"
331
- )
302
+ ...required("botId", "conversationId", "eventId", "integration", "channel", "event.type"),
303
+ ...optional("messageId", "userId", "event.payload", "message.payload", "message.type")
332
304
  }
333
305
  };
334
306
  var TriggerHandlerSpan = {
@@ -336,15 +308,7 @@ var TriggerHandlerSpan = {
336
308
  importance: "high",
337
309
  attributes: {
338
310
  ...required("botId", "eventId", "event.type"),
339
- ...optional(
340
- "conversationId",
341
- "messageId",
342
- "userId",
343
- "integration",
344
- "channel",
345
- "workflowId",
346
- "parentWorkflowId"
347
- )
311
+ ...optional("conversationId", "messageId", "userId", "integration", "channel", "workflowId", "parentWorkflowId")
348
312
  }
349
313
  };
350
314
  var EventHandlerSpan = {
@@ -352,15 +316,7 @@ var EventHandlerSpan = {
352
316
  importance: "high",
353
317
  attributes: {
354
318
  ...required("botId", "eventId", "event.type"),
355
- ...optional(
356
- "conversationId",
357
- "messageId",
358
- "userId",
359
- "integration",
360
- "channel",
361
- "workflowId",
362
- "parentWorkflowId"
363
- )
319
+ ...optional("conversationId", "messageId", "userId", "integration", "channel", "workflowId", "parentWorkflowId")
364
320
  }
365
321
  };
366
322
  var WorkflowHandlerSpan = {
@@ -368,27 +324,11 @@ var WorkflowHandlerSpan = {
368
324
  importance: "high",
369
325
  attributes: {
370
326
  ...required("botId", "workflowId", "eventId", "event.type"),
371
- ...optional(
372
- "messageId",
373
- "userId",
374
- "integration",
375
- "channel",
376
- "conversationId",
377
- "parentWorkflowId"
378
- ),
327
+ ...optional("messageId", "userId", "integration", "channel", "conversationId", "parentWorkflowId"),
379
328
  "workflow.name": { type: "string" },
380
329
  "workflow.status.initial": {
381
330
  type: "enum",
382
- enum: [
383
- "pending",
384
- "in_progress",
385
- "listening",
386
- "paused",
387
- "completed",
388
- "failed",
389
- "timedout",
390
- "cancelled"
391
- ]
331
+ enum: ["pending", "in_progress", "listening", "paused", "completed", "failed", "timedout", "cancelled"]
392
332
  },
393
333
  "workflow.status.final": {
394
334
  type: "enum",
@@ -414,14 +354,7 @@ var ActionHandlerSpan = {
414
354
  importance: "high",
415
355
  attributes: {
416
356
  ...required("botId", "workflowId", "eventId", "event.type"),
417
- ...optional(
418
- "messageId",
419
- "userId",
420
- "integration",
421
- "channel",
422
- "conversationId",
423
- "parentWorkflowId"
424
- ),
357
+ ...optional("messageId", "userId", "integration", "channel", "conversationId", "parentWorkflowId"),
425
358
  "action.name": { type: "string", required: true },
426
359
  "action.input": { type: "json", required: true }
427
360
  }
package/dist/ui.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/telemetry/spans/well-known-attributes.ts", "../src/telemetry/spans/factory.ts", "../src/telemetry/spans/index.ts"],
4
- "sourcesContent": ["import { AttributeDefinition } from \"./factory\";\n\n/**\n * Type representing all well-known attribute names\n */\nexport type WellKnownAttributeName = keyof typeof WellKnownAttributes;\n\nexport const WellKnownAttributes = {\n conversationId: {\n type: \"string\",\n description: \"The current conversation the execution is part of\",\n title: \"Conversation ID\",\n default: \"\",\n },\n workflowId: {\n type: \"string\",\n description: \"The current workflow the execution is part of\",\n title: \"Workflow ID\",\n },\n eventId: {\n type: \"string\",\n description: \"The current incoming event the execution is part of\",\n title: \"Workflow ID\",\n },\n userId: {\n type: \"string\",\n description: \"The user attached to the event/message of the execution\",\n title: \"User ID\",\n },\n messageId: {\n type: \"string\",\n description: \"The message attached to the event/message of the execution\",\n title: \"Message ID\",\n },\n botId: {\n type: \"string\",\n description: \"The bot running the execution\",\n title: \"Bot ID\",\n },\n parentWorkflowId: {\n type: \"string\",\n description: \"The parent workflow the execution is part of\",\n title: \"Parent Workflow ID\",\n },\n \"event.type\": {\n type: \"string\",\n description: \"The type of the event the execution is part of\",\n title: \"Event Type\",\n },\n \"message.type\": {\n type: \"string\",\n description: \"The type of the message received\",\n title: \"Message Type\",\n },\n integration: {\n type: \"string\",\n description: \"The integration originating the event\",\n title: \"Integration\",\n },\n channel: {\n type: \"string\",\n description: \"The integration channel originating the event\",\n title: \"Channel\",\n },\n \"action.name\": {\n type: \"string\",\n description: \"The name of the action being called\",\n title: \"Action Name\",\n },\n \"event.payload\": {\n type: \"json\",\n description: \"The payload of the event received\",\n title: \"Event Payload\",\n },\n \"message.payload\": {\n type: \"json\",\n description: \"The payload of the message received\",\n title: \"Message Payload\",\n },\n} as const satisfies Record<string, Omit<AttributeDefinition, \"required\">>;\n", "import { WellKnownAttributes } from \"./well-known-attributes\";\n\nexport type RequiredWellKnownAttributes = {\n [K in keyof typeof WellKnownAttributes]: Omit<\n (typeof WellKnownAttributes)[K],\n \"required\"\n > & { required: true };\n};\n\nexport const required = <T extends keyof typeof WellKnownAttributes>(\n ...keys: T[]\n): Pick<RequiredWellKnownAttributes, T> => {\n const result: Partial<typeof WellKnownAttributes> = {};\n for (const key of keys) {\n result[key] = { ...WellKnownAttributes[key], required: true };\n }\n return result as Pick<RequiredWellKnownAttributes, T>;\n};\n\nexport const optional = <T extends keyof typeof WellKnownAttributes>(\n ...keys: T[]\n): Pick<typeof WellKnownAttributes, T> => {\n const result: Partial<typeof WellKnownAttributes> = {};\n for (const key of keys) {\n result[key] = { ...WellKnownAttributes[key], required: true };\n }\n return result as Pick<typeof WellKnownAttributes, T>;\n};\n\nexport type AttributeType =\n | \"string\"\n | \"enum\"\n | \"number\"\n | \"boolean\"\n | \"object\"\n | \"date\"\n | \"json\";\n\nexport type AttributeDefinition<\n T extends AttributeType = AttributeType,\n Enum = ReadonlyArray<string>,\n> = {\n type: T;\n enum?: Enum;\n title?: string;\n description?: string;\n required?: boolean;\n default?: TypeForAttribute<T, Enum>;\n};\n\nexport type SpanDefinition = {\n name: string;\n importance: \"debug\" | \"low\" | \"medium\" | \"high\";\n attributes: Record<string, AttributeDefinition>;\n};\n\n/**\n * Type representing valid span importance levels\n */\nexport type SpanImportanceLevel = SpanDefinition[\"importance\"];\n\nexport type TypeForAttribute<\n T extends AttributeType,\n Enum = ReadonlyArray<string>,\n> = T extends \"string\"\n ? string\n : T extends \"enum\"\n ? Enum extends ReadonlyArray<string>\n ? Enum[number]\n : never\n : T extends \"number\"\n ? number\n : T extends \"boolean\"\n ? boolean\n : T extends \"object\"\n ? Record<string, any>\n : T extends \"date\"\n ? Date\n : T extends \"json\"\n ? any\n : never;\n\nexport type GetSpanType<T extends SpanDefinition> = {\n name: T[\"name\"];\n attributes: {\n -readonly [K in keyof T[\"attributes\"] as T[\"attributes\"][K] extends {\n required: true;\n }\n ? K\n : never]: TypeForAttribute<\n T[\"attributes\"][K][\"type\"],\n T[\"attributes\"][K] extends { enum: infer E } ? E : never\n >;\n } & {\n -readonly [K in keyof T[\"attributes\"] as T[\"attributes\"][K] extends {\n required: true;\n }\n ? never\n : K]?: TypeForAttribute<\n T[\"attributes\"][K][\"type\"],\n T[\"attributes\"][K] extends { enum: infer E } ? E : never\n > | undefined;\n };\n};\n", "import { IterationStatus } from \"llmz\";\nimport { GetSpanType, optional, required, SpanDefinition } from \"./factory\";\n\ntype Name = Spans[\"name\"];\nexport type SpanOf<T extends Name> = Extract<Spans, { name: T }>;\nexport type Spans = {\n [K in keyof typeof Spans]: GetSpanType<(typeof Spans)[K]>;\n}[keyof typeof Spans];\n\nconst IncomingRequestSpan = {\n name: \"request.incoming\",\n importance: \"high\",\n attributes: {\n \"request.operation\": {\n type: \"enum\",\n enum: [\"register\", \"event_received\", \"ping\", \"action_triggered\"] as const,\n description: \"The operation being performed\",\n title: \"Operation\",\n required: true,\n },\n \"request.type\": {\n type: \"string\",\n description: \"The request type (e.g., message_created)\",\n title: \"Request Type\",\n },\n \"request.method\": {\n type: \"enum\",\n enum: [\n \"GET\",\n \"POST\",\n \"PUT\",\n \"DELETE\",\n \"PATCH\",\n \"HEAD\",\n \"OPTIONS\",\n ] as const,\n description: \"The HTTP method\",\n title: \"HTTP Method\",\n required: true,\n },\n \"request.path\": {\n type: \"string\",\n description: \"The request path\",\n title: \"Request Path\",\n required: true,\n },\n botId: {\n type: \"string\",\n description: \"The bot ID\",\n title: \"Bot ID\",\n required: true,\n },\n webhookId: {\n type: \"string\",\n description: \"The webhook ID if applicable\",\n title: \"Webhook ID\",\n },\n \"memory.rss\": {\n type: \"number\",\n description: \"The resident set size memory usage in bytes\",\n title: \"Memory RSS (bytes)\",\n },\n \"memory.heapTotal\": {\n type: \"number\",\n description: \"The total heap size memory usage in bytes\",\n title: \"Memory Heap Total (bytes)\",\n },\n \"cpu.count\": {\n type: \"number\",\n description: \"The number of CPU cores\",\n title: \"CPU Count\",\n required: true,\n },\n \"requests.total\": {\n type: \"number\",\n description: \"The total number of requests handled by the process\",\n title: \"Total Requests\",\n required: true,\n },\n },\n} as const satisfies SpanDefinition;\n\nconst CognitiveSpan = {\n name: \"cognitive.request\",\n importance: \"high\",\n attributes: {\n \"ai.model\": {\n type: \"string\",\n description: \"The AI model used for the request\",\n title: \"AI Model\",\n },\n \"ai.provider\": {\n type: \"string\",\n description: \"The AI provider used for the request\",\n title: \"AI Provider\",\n },\n \"ai.temperature\": {\n type: \"number\",\n description: \"The temperature setting for the AI model\",\n title: \"AI Temperature\",\n },\n \"ai.max_tokens\": {\n type: \"number\",\n description: \"The maximum number of tokens to generate\",\n title: \"AI Max Tokens\",\n },\n \"ai.top_p\": {\n type: \"number\",\n description: \"The top_p (nucleus sampling) parameter\",\n title: \"AI Top P\",\n },\n \"ai.system_length\": {\n type: \"number\",\n description: \"The length of the system prompt in characters\",\n title: \"AI System Prompt Length\",\n },\n \"ai.messages_count\": {\n type: \"number\",\n description: \"The number of messages in the conversation\",\n title: \"AI Messages Count\",\n },\n \"ai.input_length\": {\n type: \"number\",\n description: \"The total length of input messages in characters\",\n title: \"AI Input Length\",\n },\n \"ai.input_tokens\": {\n type: \"number\",\n description: \"The number of input tokens used for the request\",\n title: \"AI Input Tokens\",\n },\n \"ai.output_tokens\": {\n type: \"number\",\n description: \"The number of output tokens used for the request\",\n title: \"AI Output Tokens\",\n },\n \"ai.cost_input\": {\n type: \"number\",\n description: \"The cost of input tokens in USD\",\n title: \"AI Input Cost (USD)\",\n },\n \"ai.cost_output\": {\n type: \"number\",\n description: \"The cost of output tokens in USD\",\n title: \"AI Output Cost (USD)\",\n },\n \"ai.cost\": {\n type: \"number\",\n description: \"The total cost of the request in USD\",\n title: \"AI Cost (USD)\",\n },\n \"ai.cached\": {\n type: \"boolean\",\n description: \"Whether the response was served from cache\",\n title: \"AI Cached\",\n },\n \"ai.prompt_category\": {\n type: \"string\",\n description: \"The category of the prompt\",\n title: \"AI Prompt Category\",\n },\n \"ai.prompt_source\": {\n type: \"string\",\n description: \"The source of the prompt\",\n title: \"AI Prompt Source\",\n },\n \"ai.instructions\": {\n type: \"string\",\n description: \"The system prompt/instructions for the AI model\",\n title: \"AI Instructions\",\n },\n \"ai.tools\": {\n type: \"json\",\n description: \"The tools available to the AI model\",\n title: \"AI Tools\",\n },\n },\n} as const satisfies SpanDefinition;\n\nconst BotpressClientSpan = {\n name: \"botpress.client\",\n importance: \"medium\",\n attributes: {\n \"botpress.method\": {\n type: \"enum\",\n enum: [\"GET\", \"POST\", \"PUT\", \"OPTIONS\", \"DELETE\"] as const,\n required: true,\n },\n \"botpress.url\": { type: \"string\" },\n \"botpress.status_code\": { type: \"number\", default: \"\" },\n \"botpress.duration_ms\": { type: \"number\" },\n \"botpress.error\": { type: \"string\" },\n \"botpress.via\": { type: \"string\" },\n \"botpress.request.body\": { type: \"string\" },\n \"botpress.response.body\": { type: \"string\" },\n \"trace.traceparent\": { type: \"string\" },\n ...optional(\n \"conversationId\",\n \"messageId\",\n \"workflowId\",\n \"userId\",\n \"eventId\",\n \"action.name\"\n ),\n },\n} as const satisfies SpanDefinition;\n\nconst HttpSpan = {\n name: \"http.client\",\n importance: \"medium\",\n attributes: {\n \"http.method\": {\n type: \"enum\",\n enum: [\"GET\", \"POST\", \"PUT\", \"OPTIONS\", \"DELETE\"] as const,\n required: true,\n },\n \"http.url\": { type: \"string\", required: true },\n \"http.query\": { type: \"json\" },\n \"http.request.headers\": { type: \"json\" },\n \"http.response.headers\": { type: \"json\" },\n \"http.request.body\": { type: \"string\" },\n \"http.response.body\": { type: \"string\" },\n \"http.status_code\": { type: \"number\" },\n \"http.error\": { type: \"string\" },\n \"http.via\": {\n type: \"enum\",\n enum: [\"http\", \"undici\"] as const,\n required: true,\n },\n \"trace.traceparent\": { type: \"string\" },\n },\n} as const satisfies SpanDefinition;\n\nconst ConversationHandlerSpan = {\n name: \"handler.conversation\",\n importance: \"high\",\n attributes: {\n ...required(\n \"botId\",\n \"conversationId\",\n \"eventId\",\n \"integration\",\n \"channel\",\n \"event.type\"\n ),\n ...optional(\n \"messageId\",\n \"userId\",\n \"event.payload\",\n \"message.payload\",\n \"message.type\"\n ),\n },\n} as const satisfies SpanDefinition;\n\nconst TriggerHandlerSpan = {\n name: \"handler.trigger\",\n importance: \"high\",\n attributes: {\n ...required(\"botId\", \"eventId\", \"event.type\"),\n ...optional(\n \"conversationId\",\n \"messageId\",\n \"userId\",\n \"integration\",\n \"channel\",\n \"workflowId\",\n \"parentWorkflowId\"\n ),\n },\n} as const satisfies SpanDefinition;\n\nconst EventHandlerSpan = {\n name: \"handler.event\",\n importance: \"high\",\n attributes: {\n ...required(\"botId\", \"eventId\", \"event.type\"),\n ...optional(\n \"conversationId\",\n \"messageId\",\n \"userId\",\n \"integration\",\n \"channel\",\n \"workflowId\",\n \"parentWorkflowId\"\n ),\n },\n} as const satisfies SpanDefinition;\n\nconst WorkflowHandlerSpan = {\n name: \"handler.workflow\",\n importance: \"high\",\n attributes: {\n ...required(\"botId\", \"workflowId\", \"eventId\", \"event.type\"),\n ...optional(\n \"messageId\",\n \"userId\",\n \"integration\",\n \"channel\",\n \"conversationId\",\n \"parentWorkflowId\"\n ),\n \"workflow.name\": { type: \"string\" },\n \"workflow.status.initial\": {\n type: \"enum\",\n enum: [\n \"pending\",\n \"in_progress\",\n \"listening\",\n \"paused\",\n \"completed\",\n \"failed\",\n \"timedout\",\n \"cancelled\",\n ] as const,\n },\n \"workflow.status.final\": {\n type: \"enum\",\n enum: [\"continue\", \"completed\", \"failed\"] as const,\n },\n },\n} as const satisfies SpanDefinition;\n\nconst WorkflowStepSpan = {\n name: \"handler.workflow.step\",\n importance: \"high\",\n attributes: {\n ...required(\"workflowId\"),\n \"workflow.step\": { type: \"string\", required: true },\n \"workflow.step.type\": { type: \"string\", required: true },\n \"workflow.step.attempt\": { type: \"number\", required: true },\n \"workflow.step.output\": { type: \"json\" },\n \"workflow.step.max_attempts\": { type: \"number\" },\n \"workflow.step.error\": { type: \"string\" },\n },\n} as const satisfies SpanDefinition;\n\nconst ActionHandlerSpan = {\n name: \"handler.action\",\n importance: \"high\",\n attributes: {\n ...required(\"botId\", \"workflowId\", \"eventId\", \"event.type\"),\n ...optional(\n \"messageId\",\n \"userId\",\n \"integration\",\n \"channel\",\n \"conversationId\",\n \"parentWorkflowId\"\n ),\n \"action.name\": { type: \"string\", required: true },\n \"action.input\": { type: \"json\", required: true },\n },\n} as const satisfies SpanDefinition;\n\nconst AutonomousExecutionSpan = {\n name: \"autonomous.execution\",\n importance: \"high\",\n attributes: {\n \"autonomous.max_loops\": {\n type: \"number\",\n title: \"Max Loops\",\n description: \"The maximum number of loops allowed\",\n required: true,\n },\n \"autonomous.mode\": {\n type: \"enum\",\n title: \"Mode\",\n description: \"The mode LLMz is running in (chat or worker)\",\n enum: [\"chat\", \"worker\"] as const,\n required: true,\n },\n \"autonomous.message_types\": {\n type: \"json\",\n title: \"Message Types\",\n description: \"The types of messages LLMz can send\",\n },\n \"autonomous.iterations\": {\n type: \"number\",\n title: \"Iterations\",\n description: \"The number of iterations performed\",\n },\n \"autonomous.execution_id\": {\n type: \"string\",\n title: \"Execution ID\",\n description: \"The unique ID for this execution\",\n },\n },\n} as const satisfies SpanDefinition;\n\nconst AutonomousIterationSpan = {\n name: \"autonomous.iteration\",\n importance: \"high\",\n attributes: {\n \"autonomous.iteration\": {\n type: \"number\",\n title: \"Iteration\",\n description: \"The current iteration number\",\n required: true,\n },\n \"autonomous.instructions\": {\n type: \"string\",\n title: \"Instructions\",\n description: \"The instructions provided to the agent\",\n },\n \"autonomous.exits\": {\n type: \"json\",\n title: \"Exits\",\n description: \"The possible exit points for the agent\",\n },\n \"autonomous.code\": {\n type: \"string\",\n title: \"Code\",\n description: \"The code generated in this iteration\",\n },\n \"autonomous.tools\": {\n type: \"json\",\n title: \"Tools\",\n description: \"The tools available to the agent\",\n },\n \"autonomous.thoughts\": {\n type: \"string\",\n title: \"Thoughts\",\n description: \"The thoughts generated in this iteration\",\n },\n \"autonomous.status\": {\n type: \"enum\",\n enum: [\n \"pending\",\n \"generation_error\",\n \"execution_error\",\n \"invalid_code_error\",\n \"thinking_requested\",\n \"callback_requested\",\n \"exit_success\",\n \"exit_error\",\n \"aborted\",\n ] as const satisfies IterationStatus[\"type\"][],\n title: \"Error Type\",\n description: \"The type of error encountered, if any\",\n },\n \"autonomous.error\": {\n type: \"string\",\n title: \"Error Message\",\n description: \"The error message, if any\",\n },\n \"autonomous.exit.name\": {\n type: \"string\",\n title: \"Exit Name\",\n description: \"The name of the exit point if exiting\",\n },\n \"autonomous.exit.value\": {\n type: \"json\",\n title: \"Exit Value\",\n description: \"The value returned upon exit\",\n },\n \"ai.model\": {\n type: \"string\",\n title: \"AI Model\",\n description: \"The AI model used for this iteration\",\n },\n \"ai.tokens\": {\n type: \"number\",\n title: \"Input Tokens\",\n description: \"Number of input tokens used\",\n },\n \"ai.cost\": {\n type: \"number\",\n title: \"Cost\",\n description: \"Total cost of this iteration in USD\",\n },\n },\n} as const satisfies SpanDefinition;\n\nconst AutonomousToolSpan = {\n name: \"autonomous.tool\",\n importance: \"high\",\n attributes: {\n \"autonomous.tool.object\": {\n type: \"string\",\n title: \"Object Name\",\n description: \"The name of the object being used\",\n required: false,\n },\n \"autonomous.tool.name\": {\n type: \"string\",\n title: \"Tool Name\",\n description: \"The name of the tool being used\",\n required: true,\n },\n \"autonomous.tool.input\": {\n type: \"json\",\n title: \"Tool Input\",\n description: \"The input provided to the tool\",\n },\n \"autonomous.tool.output\": {\n type: \"json\",\n title: \"Tool Output\",\n description: \"The output returned by the tool\",\n },\n \"autonomous.tool.status\": {\n type: \"enum\",\n enum: [\"think\", \"success\", \"error\"] as const,\n title: \"Tool Status\",\n description: \"The status of the tool execution\",\n },\n \"autonomous.tool.error\": {\n type: \"string\",\n title: \"Tool Error\",\n description: \"The error message if the tool failed\",\n },\n },\n} as const satisfies SpanDefinition;\n\nconst InterruptionCheckSpan = {\n name: \"interruption.check\",\n importance: \"medium\",\n attributes: {\n ...required(\"conversationId\"),\n \"interruption.detected\": {\n type: \"boolean\",\n title: \"Interruption Detected\",\n description: \"Whether an interruption was detected\",\n },\n \"interruption.events_count\": {\n type: \"number\",\n title: \"New Events Count\",\n description: \"The number of new events detected\",\n },\n \"interruption.event_ids\": {\n type: \"json\",\n title: \"New Event IDs\",\n description: \"The IDs of the new events that caused the interruption\",\n },\n },\n} as const satisfies SpanDefinition;\n\nconst ChatFetchTranscriptSpan = {\n name: \"chat.fetchTranscript\",\n importance: \"medium\",\n attributes: {\n ...required(\"conversationId\"),\n },\n} as const satisfies SpanDefinition;\n\nconst ChatCompactTranscriptSpan = {\n name: \"chat.compactTranscript\",\n importance: \"medium\",\n attributes: {\n ...required(\"conversationId\"),\n },\n} as const satisfies SpanDefinition;\n\nconst ChatSaveTranscriptSpan = {\n name: \"chat.saveTranscript\",\n importance: \"medium\",\n attributes: {\n ...required(\"conversationId\"),\n },\n} as const satisfies SpanDefinition;\n\nconst ChatSendMessageSpan = {\n name: \"chat.sendMessage\",\n importance: \"high\",\n attributes: {\n ...required(\"conversationId\"),\n ...optional(\"messageId\", \"integration\", \"channel\", \"userId\", \"botId\"),\n \"message.type\": {\n type: \"string\",\n description: \"The type of message being sent\",\n title: \"Message Type\",\n },\n direction: {\n type: \"enum\",\n enum: [\"incoming\", \"outgoing\"] as const,\n description: \"The direction of the message\",\n title: \"Direction\",\n },\n },\n} as const satisfies SpanDefinition;\n\nconst TrackedStateLoadSpan = {\n name: \"state.load\",\n importance: \"medium\",\n attributes: {\n type: {\n type: \"enum\",\n enum: [\"bot\", \"user\", \"conversation\", \"workflow\"] as const,\n description: \"The type of state being loaded\",\n title: \"State Type\",\n required: true,\n },\n name: {\n type: \"string\",\n description: \"The name of the state\",\n title: \"State Name\",\n required: true,\n },\n location: {\n type: \"enum\",\n enum: [\"state\", \"file\"] as const,\n description: \"Where the state is stored\",\n title: \"Storage Location\",\n },\n has_value: {\n type: \"boolean\",\n description: \"Whether the state has a value\",\n title: \"Has Value\",\n },\n },\n} as const satisfies SpanDefinition;\n\nconst TrackedStateSaveSpan = {\n name: \"state.save\",\n importance: \"medium\",\n attributes: {\n type: {\n type: \"enum\",\n enum: [\"bot\", \"user\", \"conversation\", \"workflow\"] as const,\n description: \"The type of state being saved\",\n title: \"State Type\",\n required: true,\n },\n name: {\n type: \"string\",\n description: \"The name of the state\",\n title: \"State Name\",\n required: true,\n },\n state_size_bytes: {\n type: \"number\",\n description: \"The size of the state in bytes\",\n title: \"State Size (bytes)\",\n },\n swapped_to_file: {\n type: \"boolean\",\n description: \"Whether the state was swapped to a file\",\n title: \"Swapped to File\",\n },\n },\n} as const satisfies SpanDefinition;\n\nconst TrackedStateSaveAllDirtySpan = {\n name: \"state.saveAllDirty\",\n importance: \"medium\",\n attributes: {\n states_count: {\n type: \"number\",\n description: \"The number of dirty states being saved\",\n title: \"States Count\",\n required: true,\n },\n states: {\n type: \"json\",\n description: \"The list of states being saved (type/id/name)\",\n title: \"States\",\n },\n },\n} as const satisfies SpanDefinition;\n\nconst TrackedStateLoadAllSpan = {\n name: \"state.loadAll\",\n importance: \"medium\",\n attributes: {},\n} as const satisfies SpanDefinition;\n\nexport const Spans = {\n IncomingRequestSpan,\n CognitiveSpan,\n HttpSpan,\n BotpressClientSpan,\n ConversationHandlerSpan,\n TriggerHandlerSpan,\n WorkflowHandlerSpan,\n WorkflowStepSpan,\n ActionHandlerSpan,\n EventHandlerSpan,\n AutonomousExecutionSpan,\n AutonomousIterationSpan,\n AutonomousToolSpan,\n InterruptionCheckSpan,\n ChatFetchTranscriptSpan,\n ChatCompactTranscriptSpan,\n ChatSaveTranscriptSpan,\n ChatSendMessageSpan,\n TrackedStateLoadSpan,\n TrackedStateSaveSpan,\n TrackedStateSaveAllDirtySpan,\n TrackedStateLoadAllSpan,\n} as const;\n\n// Re-export types for convenience\nexport type { WellKnownAttributeName } from \"./well-known-attributes\";\nexport type { SpanImportanceLevel } from \"./factory\";\n"],
5
- "mappings": ";AAOO,IAAM,sBAAsB;AAAA,EACjC,gBAAgB;AAAA,IACd,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,IAC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,IAAM,0BAA0B;AAAA,EAC9B,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,YAAY,CAAC;AACf;AAEO,IAAM,QAAQ;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
4
+ "sourcesContent": ["import { AttributeDefinition } from './factory'\n\n/**\n * Type representing all well-known attribute names\n */\nexport type WellKnownAttributeName = keyof typeof WellKnownAttributes\n\nexport const WellKnownAttributes = {\n conversationId: {\n type: 'string',\n description: 'The current conversation the execution is part of',\n title: 'Conversation ID',\n default: '',\n },\n workflowId: {\n type: 'string',\n description: 'The current workflow the execution is part of',\n title: 'Workflow ID',\n },\n eventId: {\n type: 'string',\n description: 'The current incoming event the execution is part of',\n title: 'Workflow ID',\n },\n userId: {\n type: 'string',\n description: 'The user attached to the event/message of the execution',\n title: 'User ID',\n },\n messageId: {\n type: 'string',\n description: 'The message attached to the event/message of the execution',\n title: 'Message ID',\n },\n botId: {\n type: 'string',\n description: 'The bot running the execution',\n title: 'Bot ID',\n },\n parentWorkflowId: {\n type: 'string',\n description: 'The parent workflow the execution is part of',\n title: 'Parent Workflow ID',\n },\n 'event.type': {\n type: 'string',\n description: 'The type of the event the execution is part of',\n title: 'Event Type',\n },\n 'message.type': {\n type: 'string',\n description: 'The type of the message received',\n title: 'Message Type',\n },\n integration: {\n type: 'string',\n description: 'The integration originating the event',\n title: 'Integration',\n },\n channel: {\n type: 'string',\n description: 'The integration channel originating the event',\n title: 'Channel',\n },\n 'action.name': {\n type: 'string',\n description: 'The name of the action being called',\n title: 'Action Name',\n },\n 'event.payload': {\n type: 'json',\n description: 'The payload of the event received',\n title: 'Event Payload',\n },\n 'message.payload': {\n type: 'json',\n description: 'The payload of the message received',\n title: 'Message Payload',\n },\n} as const satisfies Record<string, Omit<AttributeDefinition, 'required'>>\n", "import { WellKnownAttributes } from './well-known-attributes'\n\nexport type RequiredWellKnownAttributes = {\n [K in keyof typeof WellKnownAttributes]: Omit<(typeof WellKnownAttributes)[K], 'required'> & { required: true }\n}\n\nexport const required = <T extends keyof typeof WellKnownAttributes>(\n ...keys: T[]\n): Pick<RequiredWellKnownAttributes, T> => {\n const result: Partial<typeof WellKnownAttributes> = {}\n for (const key of keys) {\n result[key] = { ...WellKnownAttributes[key], required: true }\n }\n return result as Pick<RequiredWellKnownAttributes, T>\n}\n\nexport const optional = <T extends keyof typeof WellKnownAttributes>(\n ...keys: T[]\n): Pick<typeof WellKnownAttributes, T> => {\n const result: Partial<typeof WellKnownAttributes> = {}\n for (const key of keys) {\n result[key] = { ...WellKnownAttributes[key], required: true }\n }\n return result as Pick<typeof WellKnownAttributes, T>\n}\n\nexport type AttributeType = 'string' | 'enum' | 'number' | 'boolean' | 'object' | 'date' | 'json'\n\nexport type AttributeDefinition<T extends AttributeType = AttributeType, Enum = ReadonlyArray<string>> = {\n type: T\n enum?: Enum\n title?: string\n description?: string\n required?: boolean\n default?: TypeForAttribute<T, Enum>\n}\n\nexport type SpanDefinition = {\n name: string\n importance: 'debug' | 'low' | 'medium' | 'high'\n attributes: Record<string, AttributeDefinition>\n}\n\n/**\n * Type representing valid span importance levels\n */\nexport type SpanImportanceLevel = SpanDefinition['importance']\n\nexport type TypeForAttribute<T extends AttributeType, Enum = ReadonlyArray<string>> = T extends 'string'\n ? string\n : T extends 'enum'\n ? Enum extends ReadonlyArray<string>\n ? Enum[number]\n : never\n : T extends 'number'\n ? number\n : T extends 'boolean'\n ? boolean\n : T extends 'object'\n ? Record<string, any>\n : T extends 'date'\n ? Date\n : T extends 'json'\n ? any\n : never\n\nexport type GetSpanType<T extends SpanDefinition> = {\n name: T['name']\n attributes: {\n -readonly [K in keyof T['attributes'] as T['attributes'][K] extends {\n required: true\n }\n ? K\n : never]: TypeForAttribute<T['attributes'][K]['type'], T['attributes'][K] extends { enum: infer E } ? E : never>\n } & {\n -readonly [K in keyof T['attributes'] as T['attributes'][K] extends {\n required: true\n }\n ? never\n : K]?:\n | TypeForAttribute<T['attributes'][K]['type'], T['attributes'][K] extends { enum: infer E } ? E : never>\n | undefined\n }\n}\n", "import { IterationStatus } from 'llmz'\nimport { GetSpanType, optional, required, SpanDefinition } from './factory'\n\ntype Name = Spans['name']\nexport type SpanOf<T extends Name> = Extract<Spans, { name: T }>\nexport type Spans = {\n [K in keyof typeof Spans]: GetSpanType<(typeof Spans)[K]>\n}[keyof typeof Spans]\n\nconst IncomingRequestSpan = {\n name: 'request.incoming',\n importance: 'high',\n attributes: {\n 'request.operation': {\n type: 'enum',\n enum: ['register', 'event_received', 'ping', 'action_triggered'] as const,\n description: 'The operation being performed',\n title: 'Operation',\n required: true,\n },\n 'request.type': {\n type: 'string',\n description: 'The request type (e.g., message_created)',\n title: 'Request Type',\n },\n 'request.method': {\n type: 'enum',\n enum: ['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'HEAD', 'OPTIONS'] as const,\n description: 'The HTTP method',\n title: 'HTTP Method',\n required: true,\n },\n 'request.path': {\n type: 'string',\n description: 'The request path',\n title: 'Request Path',\n required: true,\n },\n botId: {\n type: 'string',\n description: 'The bot ID',\n title: 'Bot ID',\n required: true,\n },\n webhookId: {\n type: 'string',\n description: 'The webhook ID if applicable',\n title: 'Webhook ID',\n },\n 'memory.rss': {\n type: 'number',\n description: 'The resident set size memory usage in bytes',\n title: 'Memory RSS (bytes)',\n },\n 'memory.heapTotal': {\n type: 'number',\n description: 'The total heap size memory usage in bytes',\n title: 'Memory Heap Total (bytes)',\n },\n 'cpu.count': {\n type: 'number',\n description: 'The number of CPU cores',\n title: 'CPU Count',\n required: true,\n },\n 'requests.total': {\n type: 'number',\n description: 'The total number of requests handled by the process',\n title: 'Total Requests',\n required: true,\n },\n },\n} as const satisfies SpanDefinition\n\nconst CognitiveSpan = {\n name: 'cognitive.request',\n importance: 'high',\n attributes: {\n 'ai.model': {\n type: 'string',\n description: 'The AI model used for the request',\n title: 'AI Model',\n },\n 'ai.provider': {\n type: 'string',\n description: 'The AI provider used for the request',\n title: 'AI Provider',\n },\n 'ai.temperature': {\n type: 'number',\n description: 'The temperature setting for the AI model',\n title: 'AI Temperature',\n },\n 'ai.max_tokens': {\n type: 'number',\n description: 'The maximum number of tokens to generate',\n title: 'AI Max Tokens',\n },\n 'ai.top_p': {\n type: 'number',\n description: 'The top_p (nucleus sampling) parameter',\n title: 'AI Top P',\n },\n 'ai.system_length': {\n type: 'number',\n description: 'The length of the system prompt in characters',\n title: 'AI System Prompt Length',\n },\n 'ai.messages_count': {\n type: 'number',\n description: 'The number of messages in the conversation',\n title: 'AI Messages Count',\n },\n 'ai.input_length': {\n type: 'number',\n description: 'The total length of input messages in characters',\n title: 'AI Input Length',\n },\n 'ai.input_tokens': {\n type: 'number',\n description: 'The number of input tokens used for the request',\n title: 'AI Input Tokens',\n },\n 'ai.output_tokens': {\n type: 'number',\n description: 'The number of output tokens used for the request',\n title: 'AI Output Tokens',\n },\n 'ai.cost_input': {\n type: 'number',\n description: 'The cost of input tokens in USD',\n title: 'AI Input Cost (USD)',\n },\n 'ai.cost_output': {\n type: 'number',\n description: 'The cost of output tokens in USD',\n title: 'AI Output Cost (USD)',\n },\n 'ai.cost': {\n type: 'number',\n description: 'The total cost of the request in USD',\n title: 'AI Cost (USD)',\n },\n 'ai.cached': {\n type: 'boolean',\n description: 'Whether the response was served from cache',\n title: 'AI Cached',\n },\n 'ai.prompt_category': {\n type: 'string',\n description: 'The category of the prompt',\n title: 'AI Prompt Category',\n },\n 'ai.prompt_source': {\n type: 'string',\n description: 'The source of the prompt',\n title: 'AI Prompt Source',\n },\n 'ai.instructions': {\n type: 'string',\n description: 'The system prompt/instructions for the AI model',\n title: 'AI Instructions',\n },\n 'ai.tools': {\n type: 'json',\n description: 'The tools available to the AI model',\n title: 'AI Tools',\n },\n },\n} as const satisfies SpanDefinition\n\nconst BotpressClientSpan = {\n name: 'botpress.client',\n importance: 'medium',\n attributes: {\n 'botpress.method': {\n type: 'enum',\n enum: ['GET', 'POST', 'PUT', 'OPTIONS', 'DELETE'] as const,\n required: true,\n },\n 'botpress.url': { type: 'string' },\n 'botpress.status_code': { type: 'number', default: '' },\n 'botpress.duration_ms': { type: 'number' },\n 'botpress.error': { type: 'string' },\n 'botpress.via': { type: 'string' },\n 'botpress.request.body': { type: 'string' },\n 'botpress.response.body': { type: 'string' },\n 'trace.traceparent': { type: 'string' },\n ...optional('conversationId', 'messageId', 'workflowId', 'userId', 'eventId', 'action.name'),\n },\n} as const satisfies SpanDefinition\n\nconst HttpSpan = {\n name: 'http.client',\n importance: 'medium',\n attributes: {\n 'http.method': {\n type: 'enum',\n enum: ['GET', 'POST', 'PUT', 'OPTIONS', 'DELETE'] as const,\n required: true,\n },\n 'http.url': { type: 'string', required: true },\n 'http.query': { type: 'json' },\n 'http.request.headers': { type: 'json' },\n 'http.response.headers': { type: 'json' },\n 'http.request.body': { type: 'string' },\n 'http.response.body': { type: 'string' },\n 'http.status_code': { type: 'number' },\n 'http.error': { type: 'string' },\n 'http.via': {\n type: 'enum',\n enum: ['http', 'undici'] as const,\n required: true,\n },\n 'trace.traceparent': { type: 'string' },\n },\n} as const satisfies SpanDefinition\n\nconst ConversationHandlerSpan = {\n name: 'handler.conversation',\n importance: 'high',\n attributes: {\n ...required('botId', 'conversationId', 'eventId', 'integration', 'channel', 'event.type'),\n ...optional('messageId', 'userId', 'event.payload', 'message.payload', 'message.type'),\n },\n} as const satisfies SpanDefinition\n\nconst TriggerHandlerSpan = {\n name: 'handler.trigger',\n importance: 'high',\n attributes: {\n ...required('botId', 'eventId', 'event.type'),\n ...optional('conversationId', 'messageId', 'userId', 'integration', 'channel', 'workflowId', 'parentWorkflowId'),\n },\n} as const satisfies SpanDefinition\n\nconst EventHandlerSpan = {\n name: 'handler.event',\n importance: 'high',\n attributes: {\n ...required('botId', 'eventId', 'event.type'),\n ...optional('conversationId', 'messageId', 'userId', 'integration', 'channel', 'workflowId', 'parentWorkflowId'),\n },\n} as const satisfies SpanDefinition\n\nconst WorkflowHandlerSpan = {\n name: 'handler.workflow',\n importance: 'high',\n attributes: {\n ...required('botId', 'workflowId', 'eventId', 'event.type'),\n ...optional('messageId', 'userId', 'integration', 'channel', 'conversationId', 'parentWorkflowId'),\n 'workflow.name': { type: 'string' },\n 'workflow.status.initial': {\n type: 'enum',\n enum: ['pending', 'in_progress', 'listening', 'paused', 'completed', 'failed', 'timedout', 'cancelled'] as const,\n },\n 'workflow.status.final': {\n type: 'enum',\n enum: ['continue', 'completed', 'failed'] as const,\n },\n },\n} as const satisfies SpanDefinition\n\nconst WorkflowStepSpan = {\n name: 'handler.workflow.step',\n importance: 'high',\n attributes: {\n ...required('workflowId'),\n 'workflow.step': { type: 'string', required: true },\n 'workflow.step.type': { type: 'string', required: true },\n 'workflow.step.attempt': { type: 'number', required: true },\n 'workflow.step.output': { type: 'json' },\n 'workflow.step.max_attempts': { type: 'number' },\n 'workflow.step.error': { type: 'string' },\n },\n} as const satisfies SpanDefinition\n\nconst ActionHandlerSpan = {\n name: 'handler.action',\n importance: 'high',\n attributes: {\n ...required('botId', 'workflowId', 'eventId', 'event.type'),\n ...optional('messageId', 'userId', 'integration', 'channel', 'conversationId', 'parentWorkflowId'),\n 'action.name': { type: 'string', required: true },\n 'action.input': { type: 'json', required: true },\n },\n} as const satisfies SpanDefinition\n\nconst AutonomousExecutionSpan = {\n name: 'autonomous.execution',\n importance: 'high',\n attributes: {\n 'autonomous.max_loops': {\n type: 'number',\n title: 'Max Loops',\n description: 'The maximum number of loops allowed',\n required: true,\n },\n 'autonomous.mode': {\n type: 'enum',\n title: 'Mode',\n description: 'The mode LLMz is running in (chat or worker)',\n enum: ['chat', 'worker'] as const,\n required: true,\n },\n 'autonomous.message_types': {\n type: 'json',\n title: 'Message Types',\n description: 'The types of messages LLMz can send',\n },\n 'autonomous.iterations': {\n type: 'number',\n title: 'Iterations',\n description: 'The number of iterations performed',\n },\n 'autonomous.execution_id': {\n type: 'string',\n title: 'Execution ID',\n description: 'The unique ID for this execution',\n },\n },\n} as const satisfies SpanDefinition\n\nconst AutonomousIterationSpan = {\n name: 'autonomous.iteration',\n importance: 'high',\n attributes: {\n 'autonomous.iteration': {\n type: 'number',\n title: 'Iteration',\n description: 'The current iteration number',\n required: true,\n },\n 'autonomous.instructions': {\n type: 'string',\n title: 'Instructions',\n description: 'The instructions provided to the agent',\n },\n 'autonomous.exits': {\n type: 'json',\n title: 'Exits',\n description: 'The possible exit points for the agent',\n },\n 'autonomous.code': {\n type: 'string',\n title: 'Code',\n description: 'The code generated in this iteration',\n },\n 'autonomous.tools': {\n type: 'json',\n title: 'Tools',\n description: 'The tools available to the agent',\n },\n 'autonomous.thoughts': {\n type: 'string',\n title: 'Thoughts',\n description: 'The thoughts generated in this iteration',\n },\n 'autonomous.status': {\n type: 'enum',\n enum: [\n 'pending',\n 'generation_error',\n 'execution_error',\n 'invalid_code_error',\n 'thinking_requested',\n 'callback_requested',\n 'exit_success',\n 'exit_error',\n 'aborted',\n ] as const satisfies IterationStatus['type'][],\n title: 'Error Type',\n description: 'The type of error encountered, if any',\n },\n 'autonomous.error': {\n type: 'string',\n title: 'Error Message',\n description: 'The error message, if any',\n },\n 'autonomous.exit.name': {\n type: 'string',\n title: 'Exit Name',\n description: 'The name of the exit point if exiting',\n },\n 'autonomous.exit.value': {\n type: 'json',\n title: 'Exit Value',\n description: 'The value returned upon exit',\n },\n 'ai.model': {\n type: 'string',\n title: 'AI Model',\n description: 'The AI model used for this iteration',\n },\n 'ai.tokens': {\n type: 'number',\n title: 'Input Tokens',\n description: 'Number of input tokens used',\n },\n 'ai.cost': {\n type: 'number',\n title: 'Cost',\n description: 'Total cost of this iteration in USD',\n },\n },\n} as const satisfies SpanDefinition\n\nconst AutonomousToolSpan = {\n name: 'autonomous.tool',\n importance: 'high',\n attributes: {\n 'autonomous.tool.object': {\n type: 'string',\n title: 'Object Name',\n description: 'The name of the object being used',\n required: false,\n },\n 'autonomous.tool.name': {\n type: 'string',\n title: 'Tool Name',\n description: 'The name of the tool being used',\n required: true,\n },\n 'autonomous.tool.input': {\n type: 'json',\n title: 'Tool Input',\n description: 'The input provided to the tool',\n },\n 'autonomous.tool.output': {\n type: 'json',\n title: 'Tool Output',\n description: 'The output returned by the tool',\n },\n 'autonomous.tool.status': {\n type: 'enum',\n enum: ['think', 'success', 'error'] as const,\n title: 'Tool Status',\n description: 'The status of the tool execution',\n },\n 'autonomous.tool.error': {\n type: 'string',\n title: 'Tool Error',\n description: 'The error message if the tool failed',\n },\n },\n} as const satisfies SpanDefinition\n\nconst InterruptionCheckSpan = {\n name: 'interruption.check',\n importance: 'medium',\n attributes: {\n ...required('conversationId'),\n 'interruption.detected': {\n type: 'boolean',\n title: 'Interruption Detected',\n description: 'Whether an interruption was detected',\n },\n 'interruption.events_count': {\n type: 'number',\n title: 'New Events Count',\n description: 'The number of new events detected',\n },\n 'interruption.event_ids': {\n type: 'json',\n title: 'New Event IDs',\n description: 'The IDs of the new events that caused the interruption',\n },\n },\n} as const satisfies SpanDefinition\n\nconst ChatFetchTranscriptSpan = {\n name: 'chat.fetchTranscript',\n importance: 'medium',\n attributes: {\n ...required('conversationId'),\n },\n} as const satisfies SpanDefinition\n\nconst ChatCompactTranscriptSpan = {\n name: 'chat.compactTranscript',\n importance: 'medium',\n attributes: {\n ...required('conversationId'),\n },\n} as const satisfies SpanDefinition\n\nconst ChatSaveTranscriptSpan = {\n name: 'chat.saveTranscript',\n importance: 'medium',\n attributes: {\n ...required('conversationId'),\n },\n} as const satisfies SpanDefinition\n\nconst ChatSendMessageSpan = {\n name: 'chat.sendMessage',\n importance: 'high',\n attributes: {\n ...required('conversationId'),\n ...optional('messageId', 'integration', 'channel', 'userId', 'botId'),\n 'message.type': {\n type: 'string',\n description: 'The type of message being sent',\n title: 'Message Type',\n },\n direction: {\n type: 'enum',\n enum: ['incoming', 'outgoing'] as const,\n description: 'The direction of the message',\n title: 'Direction',\n },\n },\n} as const satisfies SpanDefinition\n\nconst TrackedStateLoadSpan = {\n name: 'state.load',\n importance: 'medium',\n attributes: {\n type: {\n type: 'enum',\n enum: ['bot', 'user', 'conversation', 'workflow'] as const,\n description: 'The type of state being loaded',\n title: 'State Type',\n required: true,\n },\n name: {\n type: 'string',\n description: 'The name of the state',\n title: 'State Name',\n required: true,\n },\n location: {\n type: 'enum',\n enum: ['state', 'file'] as const,\n description: 'Where the state is stored',\n title: 'Storage Location',\n },\n has_value: {\n type: 'boolean',\n description: 'Whether the state has a value',\n title: 'Has Value',\n },\n },\n} as const satisfies SpanDefinition\n\nconst TrackedStateSaveSpan = {\n name: 'state.save',\n importance: 'medium',\n attributes: {\n type: {\n type: 'enum',\n enum: ['bot', 'user', 'conversation', 'workflow'] as const,\n description: 'The type of state being saved',\n title: 'State Type',\n required: true,\n },\n name: {\n type: 'string',\n description: 'The name of the state',\n title: 'State Name',\n required: true,\n },\n state_size_bytes: {\n type: 'number',\n description: 'The size of the state in bytes',\n title: 'State Size (bytes)',\n },\n swapped_to_file: {\n type: 'boolean',\n description: 'Whether the state was swapped to a file',\n title: 'Swapped to File',\n },\n },\n} as const satisfies SpanDefinition\n\nconst TrackedStateSaveAllDirtySpan = {\n name: 'state.saveAllDirty',\n importance: 'medium',\n attributes: {\n states_count: {\n type: 'number',\n description: 'The number of dirty states being saved',\n title: 'States Count',\n required: true,\n },\n states: {\n type: 'json',\n description: 'The list of states being saved (type/id/name)',\n title: 'States',\n },\n },\n} as const satisfies SpanDefinition\n\nconst TrackedStateLoadAllSpan = {\n name: 'state.loadAll',\n importance: 'medium',\n attributes: {},\n} as const satisfies SpanDefinition\n\nexport const Spans = {\n IncomingRequestSpan,\n CognitiveSpan,\n HttpSpan,\n BotpressClientSpan,\n ConversationHandlerSpan,\n TriggerHandlerSpan,\n WorkflowHandlerSpan,\n WorkflowStepSpan,\n ActionHandlerSpan,\n EventHandlerSpan,\n AutonomousExecutionSpan,\n AutonomousIterationSpan,\n AutonomousToolSpan,\n InterruptionCheckSpan,\n ChatFetchTranscriptSpan,\n ChatCompactTranscriptSpan,\n ChatSaveTranscriptSpan,\n ChatSendMessageSpan,\n TrackedStateLoadSpan,\n TrackedStateSaveSpan,\n TrackedStateSaveAllDirtySpan,\n TrackedStateLoadAllSpan,\n} as const\n\n// Re-export types for convenience\nexport type { WellKnownAttributeName } from './well-known-attributes'\nexport type { SpanImportanceLevel } from './factory'\n"],
5
+ "mappings": ";AAOO,IAAM,sBAAsB;AAAA,EACjC,gBAAgB;AAAA,IACd,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AAAA,EACA,YAAY;AAAA,IACV,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT;AAAA,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT;AAAA,EACA,WAAW;AAAA,IACT,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT;AAAA,EACA,OAAO;AAAA,IACL,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT;AAAA,EACA,kBAAkB;AAAA,IAChB,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT;AAAA,EACA,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT;AAAA,EACA,gBAAgB;AAAA,IACd,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT;AAAA,EACA,aAAa;AAAA,IACX,MAAM;AAAA,IACN,aAAa;AAAA,IACb,OAAO;AAAA,EACT;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AA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c;AAAA,MACZ,MAAM;AAAA,MACN,aAAa;AAAA,MACb,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,aAAa;AAAA,MACb,OAAO;AAAA,IACT;AAAA,EACF;AACF;AAEA,IAAM,0BAA0B;AAAA,EAC9B,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,YAAY,CAAC;AACf;AAEO,IAAM,QAAQ;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
6
6
  "names": []
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"abort-signal.d.ts","sourceRoot":"","sources":["../../src/utilities/abort-signal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,CAAC,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,GAC1C,eAAe,CA8CjB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,CAAC,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,GAC1C,WAAW,CAEb"}
1
+ {"version":3,"file":"abort-signal.d.ts","sourceRoot":"","sources":["../../src/utilities/abort-signal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,CAAC,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,GAAG,eAAe,CA4CxG;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,CAAC,WAAW,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,GAAG,WAAW,CAEhG"}
@@ -1,7 +1,7 @@
1
- import { Event, Message } from "@botpress/client";
1
+ import { Event, Message } from '@botpress/client';
2
2
  export declare function isEvent(event: unknown): event is Event;
3
3
  export declare function isEventMessage(event: Event): event is Event & {
4
- type: "message_created";
4
+ type: 'message_created';
5
5
  payload: {
6
6
  message: Message;
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/utilities/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAIlD,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAQtD;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,KAAK,GACX,KAAK,IAAI,KAAK,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,OAAO,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAA;CAAE,CAY7E;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,OAAO,CAQ9D"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/utilities/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAIjD,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAEtD;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,KAAK,GACX,KAAK,IAAI,KAAK,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,OAAO,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAA;CAAE,CAQ7E;AAED,wBAAgB,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,OAAO,CAE9D"}
@@ -1 +1 @@
1
- {"version":3,"file":"promises.d.ts","sourceRoot":"","sources":["../../src/utilities/promises.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,GAAI,QAAQ,WAAW,qBAWjD,CAAC;AAEL,eAAO,MAAM,OAAO,GAAI,IAAI,MAAM,EAAE,SAAS,WAAW,qBAiBvD,CAAC"}
1
+ {"version":3,"file":"promises.d.ts","sourceRoot":"","sources":["../../src/utilities/promises.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,GAAI,QAAQ,WAAW,qBAWjD,CAAA;AAEJ,eAAO,MAAM,OAAO,GAAI,IAAI,MAAM,EAAE,SAAS,WAAW,qBAiBvD,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../src/utilities/size.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;CAWf,CAAC;AAEX,eAAO,MAAM,aAAa,GACxB,OAAO,OAAO,KACb,KAAK,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CASxC,CAAC;AAIF,eAAO,MAAM,gBAAgB,GAAI,KAAK,OAAO,EAAE,QAAO,MAAU,KAAG,OAmClE,CAAC"}
1
+ {"version":3,"file":"size.d.ts","sourceRoot":"","sources":["../../src/utilities/size.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;CAWf,CAAA;AAEV,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAOpF,CAAA;AAID,eAAO,MAAM,gBAAgB,GAAI,KAAK,OAAO,EAAE,QAAO,MAAU,KAAG,OA8BlE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/utilities/strings.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE;IACJ,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GACA,MAAM,CAwOR"}
1
+ {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/utilities/strings.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,OAAO,EACd,IAAI,EAAE;IACJ,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,GACA,MAAM,CA+NR"}
@@ -1 +1 @@
1
- {"version":3,"file":"trigger-tags.d.ts","sourceRoot":"","sources":["../../src/utilities/trigger-tags.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,aAAa,MAAM,KAAG,MAEvD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,KAAG,MAEjD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GACrC,aAAa,MAAM,EACnB,MAAM,MAAM;;;CAMb,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,GAC5C,kBAAkB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACxC,aAAa,MAAM,EACnB,aAAa,MAAM,KAClB,OAUF,CAAC"}
1
+ {"version":3,"file":"trigger-tags.d.ts","sourceRoot":"","sources":["../../src/utilities/trigger-tags.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,aAAa,MAAM,KAAG,MAEvD,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,KAAG,MAEjD,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,GAAI,aAAa,MAAM,EAAE,MAAM,MAAM;;;CAK3E,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,iCAAiC,GAC5C,kBAAkB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACxC,aAAa,MAAM,EACnB,aAAa,MAAM,KAClB,OAUF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utilities/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utilities/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Bot } from "@botpress/sdk";
1
+ import { Bot } from '@botpress/sdk';
2
2
  /**
3
3
  * Main worker execution
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dev_worker.d.ts","sourceRoot":"","sources":["../../src/workers/dev_worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AA2BpC;;GAEG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAqFxC"}
1
+ {"version":3,"file":"dev_worker.d.ts","sourceRoot":"","sources":["../../src/workers/dev_worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AA0BnC;;GAEG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAqFxC"}
@@ -1,5 +1,5 @@
1
- export { isMainThread } from "worker_threads";
1
+ export { isMainThread } from 'worker_threads';
2
2
  export declare const isWorkerMode: () => boolean;
3
- export { initializeParentWorker } from "./parent_worker";
4
- export { runWorker } from "./dev_worker";
3
+ export { initializeParentWorker } from './parent_worker';
4
+ export { runWorker } from './dev_worker';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,YAAY,eAGxB,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,eAAO,MAAM,YAAY,eAGxB,CAAA;AAED,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA"}
@@ -1,4 +1,4 @@
1
- import { WorkerPool } from "./worker_pool";
1
+ import { WorkerPool } from './worker_pool';
2
2
  /**
3
3
  * Get the global worker pool instance (for stats queries)
4
4
  */
@@ -1 +1 @@
1
- {"version":3,"file":"parent_worker.d.ts","sourceRoot":"","sources":["../../src/workers/parent_worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAgB3C;;GAEG;AACH,wBAAgB,aAAa,IAAI,UAAU,GAAG,IAAI,CAEjD;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CA2DrD"}
1
+ {"version":3,"file":"parent_worker.d.ts","sourceRoot":"","sources":["../../src/workers/parent_worker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAe1C;;GAEG;AACH,wBAAgB,aAAa,IAAI,UAAU,GAAG,IAAI,CAEjD;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI,CAsDrD"}
@@ -1 +1 @@
1
- {"version":3,"file":"worker_pool.d.ts","sourceRoot":"","sources":["../../src/workers/worker_pool.ts"],"names":[],"mappings":"AAkBA,2CAA2C;AAC3C,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,2DAA2D;AAC3D,eAAO,MAAM,kBAAkB,QAEd,CAAC;AAElB,+EAA+E;AAC/E,eAAO,MAAM,sBAAsB,QAAY,CAAC;AAEhD,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB,QAAW,CAAC;AAE9C,+EAA+E;AAC/E,eAAO,MAAM,sBAAsB,QAAgB,CAAC;AAEpD,gEAAgE;AAChE,eAAO,MAAM,+BAA+B,QAAY,CAAC;AAEzD,qEAAqE;AACrE,eAAO,MAAM,gBAAgB,QAAY,CAAC;AAkC1C,UAAU,cAAc;IAEtB,gBAAgB,EAAE,MAAM,CAAC;IACzB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,eAAe,EAAE,MAAM,EAAE,C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AK,CAWZ;gBAEW,YAAY,CAAC,EAAE,MAAM;IAOjC;;OAEG;IACH,OAAO,CAAC,UAAU;IAUlB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAUxB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAoBzB;;OAEG;IACH,OAAO,CAAC,YAAY;IAmDpB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAyG3B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IA0BzB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAyC9B;;OAEG;IACH,OAAO,CAAC,aAAa;IAmBrB;;OAEG;IACH,OAAO,CAAC,YAAY;IAsCpB;;OAEG;IACH,OAAO,CAAC,gBAAgB;IA+DxB;;OAEG;IACU,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAmDlD;;OAEG;IACU,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAgCtC;;OAEG;IACI,cAAc,IAAI;QACvB,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,EAAE,MAAM,CAAA;QACZ,UAAU,EAAE,MAAM,CAAA;KACnB;IAeD;;OAEG;IACI,QAAQ,IAAI,cAAc;IA0BjC;;OAEG;IACI,eAAe,IAAI,MAAM;CAkEjC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/runtime",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "Lightweight runtime library for ADK-based Botpress agents",
5
5
  "type": "module",
6
6
  "files": [
@@ -60,9 +60,9 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@botpress/client": "^1.27.0",
63
- "@botpress/cognitive": "^0.1.50",
63
+ "@botpress/cognitive": "^0.2.0",
64
64
  "@botpress/sdk": "^4.17.3",
65
- "@botpress/zai": "^2.3.0",
65
+ "@botpress/zai": "^2.4.0",
66
66
  "@bpinternal/const": "^0.3.3",
67
67
  "@bpinternal/thicktoken": "^1.0.0",
68
68
  "@bpinternal/zui": "^1.2.2",