@mondaydotcomorg/z2h-shared-utils 0.13.0 → 0.15.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.
- package/dist/esm/observability/events.d.ts +8 -0
- package/dist/esm/observability/events.d.ts.map +1 -1
- package/dist/esm/observability/events.mjs +10 -0
- package/dist/observability/events.d.ts +8 -0
- package/dist/observability/events.d.ts.map +1 -1
- package/dist/observability/events.js +10 -0
- package/package.json +1 -1
- package/src/observability/events.ts +10 -0
|
@@ -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,6 +93,7 @@ export declare const Z2hAgentEvents: {
|
|
|
86
93
|
readonly softFailureMetric: "z2h.agent_tool_call.soft_failure";
|
|
87
94
|
readonly biEvent: "z2h_agent_tool_call";
|
|
88
95
|
};
|
|
96
|
+
readonly gitSync: "z2h.agent_git_sync";
|
|
89
97
|
};
|
|
90
98
|
/**
|
|
91
99
|
* 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
|
|
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;;;;;;;;;;;;;;CAgBjB,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,6 +93,9 @@ const Z2hAgentEvents = {
|
|
|
86
93
|
softFailureMetric: 'z2h.agent_tool_call.soft_failure',
|
|
87
94
|
biEvent: 'z2h_agent_tool_call',
|
|
88
95
|
},
|
|
96
|
+
// Distribution of a CLI call's duration in ms, tagged by phase (pull, push), status (success, failure) and,
|
|
97
|
+
// on a pull, cold: whether it had to clone the app. A push that lost a race is retried inside the CLI.
|
|
98
|
+
gitSync: 'z2h.agent_git_sync',
|
|
89
99
|
};
|
|
90
100
|
/**
|
|
91
101
|
* 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,6 +93,7 @@ export declare const Z2hAgentEvents: {
|
|
|
86
93
|
readonly softFailureMetric: "z2h.agent_tool_call.soft_failure";
|
|
87
94
|
readonly biEvent: "z2h_agent_tool_call";
|
|
88
95
|
};
|
|
96
|
+
readonly gitSync: "z2h.agent_git_sync";
|
|
89
97
|
};
|
|
90
98
|
/**
|
|
91
99
|
* 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
|
|
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;;;;;;;;;;;;;;CAgBjB,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,6 +95,9 @@ const Z2hAgentEvents = {
|
|
|
88
95
|
softFailureMetric: 'z2h.agent_tool_call.soft_failure',
|
|
89
96
|
biEvent: 'z2h_agent_tool_call',
|
|
90
97
|
},
|
|
98
|
+
// Distribution of a CLI call's duration in ms, tagged by phase (pull, push), status (success, failure) and,
|
|
99
|
+
// on a pull, cold: whether it had to clone the app. A push that lost a race is retried inside the CLI.
|
|
100
|
+
gitSync: 'z2h.agent_git_sync',
|
|
91
101
|
};
|
|
92
102
|
/**
|
|
93
103
|
* BI events tracked in `z2h-cli`. Every event the CLI sends is named here.
|
package/package.json
CHANGED
|
@@ -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,6 +95,9 @@ export const Z2hAgentEvents = {
|
|
|
88
95
|
softFailureMetric: 'z2h.agent_tool_call.soft_failure',
|
|
89
96
|
biEvent: 'z2h_agent_tool_call',
|
|
90
97
|
},
|
|
98
|
+
// Distribution of a CLI call's duration in ms, tagged by phase (pull, push), status (success, failure) and,
|
|
99
|
+
// on a pull, cold: whether it had to clone the app. A push that lost a race is retried inside the CLI.
|
|
100
|
+
gitSync: 'z2h.agent_git_sync',
|
|
91
101
|
} as const;
|
|
92
102
|
|
|
93
103
|
/**
|