@mondaydotcomorg/z2h-shared-utils 0.12.0 → 0.14.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.
@@ -71,6 +71,13 @@ export declare const Z2hServiceEvents: {
71
71
  readonly captureDurationMs: "z2h_screenshot_capture_duration_ms";
72
72
  readonly captureFailed: "z2h_screenshot_capture_failed";
73
73
  };
74
+ readonly slackUnfurl: {
75
+ readonly socketState: "z2h_slack_socket_state";
76
+ readonly posted: "z2h_slack_unfurl_posted";
77
+ readonly skipped: "z2h_slack_unfurl_skipped";
78
+ readonly failed: "z2h_slack_unfurl_failed";
79
+ readonly imageUploaded: "z2h_slack_unfurl_image_uploaded";
80
+ };
74
81
  };
75
82
  /** Metric/event emitted by `bigbrain-zth-agent`. */
76
83
  export declare const Z2hAgentEvents: {
@@ -86,16 +93,6 @@ export declare const Z2hAgentEvents: {
86
93
  readonly softFailureMetric: "z2h.agent_tool_call.soft_failure";
87
94
  readonly biEvent: "z2h_agent_tool_call";
88
95
  };
89
- readonly asyncRun: {
90
- readonly started: "z2h.agent_run.started";
91
- readonly finished: "z2h.agent_run.finished";
92
- readonly durationMs: "z2h.agent_run.duration_ms";
93
- readonly sendMessageResponse: "z2h.send_message.response";
94
- readonly busyRejected: "z2h.agent_run.busy_rejected";
95
- readonly leaseHeartbeatFailed: "z2h.agent_run.lease_heartbeat_failed";
96
- readonly redisUnavailable: "z2h.agent_run.redis_unavailable";
97
- readonly statusPoll: "z2h.agent_status.poll";
98
- };
99
96
  };
100
97
  /**
101
98
  * BI events tracked in `z2h-cli`. Every event the CLI sends is named here.
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;CAuBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;CAwBjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAajB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
@@ -71,6 +71,13 @@ const Z2hServiceEvents = {
71
71
  captureDurationMs: 'z2h_screenshot_capture_duration_ms',
72
72
  captureFailed: 'z2h_screenshot_capture_failed',
73
73
  },
74
+ slackUnfurl: {
75
+ socketState: 'z2h_slack_socket_state',
76
+ posted: 'z2h_slack_unfurl_posted',
77
+ skipped: 'z2h_slack_unfurl_skipped',
78
+ failed: 'z2h_slack_unfurl_failed',
79
+ imageUploaded: 'z2h_slack_unfurl_image_uploaded',
80
+ },
74
81
  };
75
82
  /** Metric/event emitted by `bigbrain-zth-agent`. */
76
83
  const Z2hAgentEvents = {
@@ -86,17 +93,6 @@ const Z2hAgentEvents = {
86
93
  softFailureMetric: 'z2h.agent_tool_call.soft_failure',
87
94
  biEvent: 'z2h_agent_tool_call',
88
95
  },
89
- // send_message / get_message_status wait-or-jobId flow (active-run lease in Redis).
90
- asyncRun: {
91
- started: 'z2h.agent_run.started',
92
- finished: 'z2h.agent_run.finished',
93
- durationMs: 'z2h.agent_run.duration_ms',
94
- sendMessageResponse: 'z2h.send_message.response',
95
- busyRejected: 'z2h.agent_run.busy_rejected',
96
- leaseHeartbeatFailed: 'z2h.agent_run.lease_heartbeat_failed',
97
- redisUnavailable: 'z2h.agent_run.redis_unavailable',
98
- statusPoll: 'z2h.agent_status.poll',
99
- },
100
96
  };
101
97
  /**
102
98
  * BI events tracked in `z2h-cli`. Every event the CLI sends is named here.
@@ -71,6 +71,13 @@ export declare const Z2hServiceEvents: {
71
71
  readonly captureDurationMs: "z2h_screenshot_capture_duration_ms";
72
72
  readonly captureFailed: "z2h_screenshot_capture_failed";
73
73
  };
74
+ readonly slackUnfurl: {
75
+ readonly socketState: "z2h_slack_socket_state";
76
+ readonly posted: "z2h_slack_unfurl_posted";
77
+ readonly skipped: "z2h_slack_unfurl_skipped";
78
+ readonly failed: "z2h_slack_unfurl_failed";
79
+ readonly imageUploaded: "z2h_slack_unfurl_image_uploaded";
80
+ };
74
81
  };
75
82
  /** Metric/event emitted by `bigbrain-zth-agent`. */
76
83
  export declare const Z2hAgentEvents: {
@@ -86,16 +93,6 @@ export declare const Z2hAgentEvents: {
86
93
  readonly softFailureMetric: "z2h.agent_tool_call.soft_failure";
87
94
  readonly biEvent: "z2h_agent_tool_call";
88
95
  };
89
- readonly asyncRun: {
90
- readonly started: "z2h.agent_run.started";
91
- readonly finished: "z2h.agent_run.finished";
92
- readonly durationMs: "z2h.agent_run.duration_ms";
93
- readonly sendMessageResponse: "z2h.send_message.response";
94
- readonly busyRejected: "z2h.agent_run.busy_rejected";
95
- readonly leaseHeartbeatFailed: "z2h.agent_run.lease_heartbeat_failed";
96
- readonly redisUnavailable: "z2h.agent_run.redis_unavailable";
97
- readonly statusPoll: "z2h.agent_status.poll";
98
- };
99
96
  };
100
97
  /**
101
98
  * BI events tracked in `z2h-cli`. Every event the CLI sends is named here.
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;CAuBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;CAwBjB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAajB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;CAWf,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
@@ -73,6 +73,13 @@ const Z2hServiceEvents = {
73
73
  captureDurationMs: 'z2h_screenshot_capture_duration_ms',
74
74
  captureFailed: 'z2h_screenshot_capture_failed',
75
75
  },
76
+ slackUnfurl: {
77
+ socketState: 'z2h_slack_socket_state',
78
+ posted: 'z2h_slack_unfurl_posted',
79
+ skipped: 'z2h_slack_unfurl_skipped',
80
+ failed: 'z2h_slack_unfurl_failed',
81
+ imageUploaded: 'z2h_slack_unfurl_image_uploaded',
82
+ },
76
83
  };
77
84
  /** Metric/event emitted by `bigbrain-zth-agent`. */
78
85
  const Z2hAgentEvents = {
@@ -88,17 +95,6 @@ const Z2hAgentEvents = {
88
95
  softFailureMetric: 'z2h.agent_tool_call.soft_failure',
89
96
  biEvent: 'z2h_agent_tool_call',
90
97
  },
91
- // send_message / get_message_status wait-or-jobId flow (active-run lease in Redis).
92
- asyncRun: {
93
- started: 'z2h.agent_run.started',
94
- finished: 'z2h.agent_run.finished',
95
- durationMs: 'z2h.agent_run.duration_ms',
96
- sendMessageResponse: 'z2h.send_message.response',
97
- busyRejected: 'z2h.agent_run.busy_rejected',
98
- leaseHeartbeatFailed: 'z2h.agent_run.lease_heartbeat_failed',
99
- redisUnavailable: 'z2h.agent_run.redis_unavailable',
100
- statusPoll: 'z2h.agent_status.poll',
101
- },
102
98
  };
103
99
  /**
104
100
  * BI events tracked in `z2h-cli`. Every event the CLI sends is named here.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondaydotcomorg/z2h-shared-utils",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -72,6 +72,13 @@ export const Z2hServiceEvents = {
72
72
  captureDurationMs: 'z2h_screenshot_capture_duration_ms',
73
73
  captureFailed: 'z2h_screenshot_capture_failed',
74
74
  },
75
+ slackUnfurl: {
76
+ socketState: 'z2h_slack_socket_state',
77
+ posted: 'z2h_slack_unfurl_posted',
78
+ skipped: 'z2h_slack_unfurl_skipped',
79
+ failed: 'z2h_slack_unfurl_failed',
80
+ imageUploaded: 'z2h_slack_unfurl_image_uploaded',
81
+ },
75
82
  } as const;
76
83
 
77
84
  /** Metric/event emitted by `bigbrain-zth-agent`. */
@@ -88,17 +95,6 @@ export const Z2hAgentEvents = {
88
95
  softFailureMetric: 'z2h.agent_tool_call.soft_failure',
89
96
  biEvent: 'z2h_agent_tool_call',
90
97
  },
91
- // send_message / get_message_status wait-or-jobId flow (active-run lease in Redis).
92
- asyncRun: {
93
- started: 'z2h.agent_run.started',
94
- finished: 'z2h.agent_run.finished',
95
- durationMs: 'z2h.agent_run.duration_ms',
96
- sendMessageResponse: 'z2h.send_message.response',
97
- busyRejected: 'z2h.agent_run.busy_rejected',
98
- leaseHeartbeatFailed: 'z2h.agent_run.lease_heartbeat_failed',
99
- redisUnavailable: 'z2h.agent_run.redis_unavailable',
100
- statusPoll: 'z2h.agent_status.poll',
101
- },
102
98
  } as const;
103
99
 
104
100
  /**