@junando/webhook 0.16.3 → 0.16.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 (2) hide show
  1. package/dist/handler.cjs +29 -12
  2. package/package.json +2 -2
package/dist/handler.cjs CHANGED
@@ -67842,19 +67842,36 @@ var SlackNotifier = class {
67842
67842
  }
67843
67843
  buildFallbackMessage(cluster) {
67844
67844
  const safeEndpointPath = sanitizeEndpointPath(cluster.endpointPath);
67845
- return { blocks: [{
67846
- type: "header",
67847
- text: {
67848
- type: "plain_text",
67849
- text: `⚠️ Incident — ${cluster.serviceName} (no AI diagnosis)`
67850
- }
67851
- }, {
67852
- type: "section",
67853
- text: {
67854
- type: "mrkdwn",
67855
- text: `*${cluster.alertCount} alerts* on \`${safeEndpointPath}\` since ${cluster.firstSeenAt}\nLLM analysis unavailable — manual investigation required.`
67845
+ return { blocks: [
67846
+ {
67847
+ type: "header",
67848
+ text: {
67849
+ type: "plain_text",
67850
+ text: `⚠️ Incident — ${cluster.serviceName} (no AI diagnosis)`
67851
+ }
67852
+ },
67853
+ {
67854
+ type: "section",
67855
+ text: {
67856
+ type: "mrkdwn",
67857
+ text: `*${cluster.alertCount} alerts* on \`${safeEndpointPath}\` since ${cluster.firstSeenAt}\nLLM analysis unavailable — manual investigation required.`
67858
+ }
67859
+ },
67860
+ { type: "divider" },
67861
+ {
67862
+ type: "actions",
67863
+ elements: [{
67864
+ type: "button",
67865
+ text: {
67866
+ type: "plain_text",
67867
+ text: "✅ Acknowledge"
67868
+ },
67869
+ style: "primary",
67870
+ action_id: "acknowledge",
67871
+ value: cluster.fingerprint
67872
+ }]
67856
67873
  }
67857
- }] };
67874
+ ] };
67858
67875
  }
67859
67876
  };
67860
67877
  var ConsoleNotifier = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junando/webhook",
3
- "version": "0.16.3",
3
+ "version": "0.16.4",
4
4
  "description": "AWS Lambda webhook handler — receives and enqueues external alert payloads for Junando",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@aws-sdk/client-sqs": "^3.1131.0",
22
22
  "zod": "^4.6.4",
23
- "@junando/core": "0.16.3"
23
+ "@junando/core": "0.16.4"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/aws-lambda": "^8.10.163",