discord-ops 0.14.2 → 0.14.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # discord-ops
2
2
 
3
+ ## 0.14.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 6bd5a54: fix: add "alert" to NotificationType enum — global config with alert in notify_owners_on caused config parse failure and MCP startup crash
8
+ - 6bd5a54: Fix stale npx cache — use `discord-ops@latest` in MCP config
9
+
10
+ Without `@latest`, npx may serve a cached older version indefinitely, causing MCP clients to run stale code even after new releases are published. All MCP config examples in the README updated to use `discord-ops@latest`.
11
+
3
12
  ## 0.14.2
4
13
 
5
14
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const NotificationType: z.ZodEnum<["ci_build", "deploy", "release", "error", "announcement", "dev"]>;
2
+ export declare const NotificationType: z.ZodEnum<["ci_build", "deploy", "release", "error", "alert", "announcement", "dev"]>;
3
3
  export type NotificationType = z.infer<typeof NotificationType>;
4
4
  export declare const ProjectConfigSchema: z.ZodObject<{
5
5
  guild_id: z.ZodString;
@@ -7,21 +7,21 @@ export declare const ProjectConfigSchema: z.ZodObject<{
7
7
  default_channel: z.ZodOptional<z.ZodString>;
8
8
  token_env: z.ZodOptional<z.ZodString>;
9
9
  owners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10
- notify_owners_on: z.ZodOptional<z.ZodArray<z.ZodEnum<["ci_build", "deploy", "release", "error", "announcement", "dev"]>, "many">>;
10
+ notify_owners_on: z.ZodOptional<z.ZodArray<z.ZodEnum<["ci_build", "deploy", "release", "error", "alert", "announcement", "dev"]>, "many">>;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  guild_id: string;
13
13
  channels: Record<string, string>;
14
14
  default_channel?: string | undefined;
15
15
  token_env?: string | undefined;
16
16
  owners?: string[] | undefined;
17
- notify_owners_on?: ("error" | "ci_build" | "deploy" | "release" | "announcement" | "dev")[] | undefined;
17
+ notify_owners_on?: ("error" | "ci_build" | "deploy" | "release" | "alert" | "announcement" | "dev")[] | undefined;
18
18
  }, {
19
19
  guild_id: string;
20
20
  channels: Record<string, string>;
21
21
  default_channel?: string | undefined;
22
22
  token_env?: string | undefined;
23
23
  owners?: string[] | undefined;
24
- notify_owners_on?: ("error" | "ci_build" | "deploy" | "release" | "announcement" | "dev")[] | undefined;
24
+ notify_owners_on?: ("error" | "ci_build" | "deploy" | "release" | "alert" | "announcement" | "dev")[] | undefined;
25
25
  }>;
26
26
  export type ProjectConfig = z.infer<typeof ProjectConfigSchema>;
27
27
  export declare const ToolProfileEnum: z.ZodEnum<["full", "monitoring", "readonly", "moderation"]>;
@@ -32,24 +32,24 @@ export declare const GlobalConfigSchema: z.ZodObject<{
32
32
  default_channel: z.ZodOptional<z.ZodString>;
33
33
  token_env: z.ZodOptional<z.ZodString>;
34
34
  owners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
35
- notify_owners_on: z.ZodOptional<z.ZodArray<z.ZodEnum<["ci_build", "deploy", "release", "error", "announcement", "dev"]>, "many">>;
35
+ notify_owners_on: z.ZodOptional<z.ZodArray<z.ZodEnum<["ci_build", "deploy", "release", "error", "alert", "announcement", "dev"]>, "many">>;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  guild_id: string;
38
38
  channels: Record<string, string>;
39
39
  default_channel?: string | undefined;
40
40
  token_env?: string | undefined;
41
41
  owners?: string[] | undefined;
42
- notify_owners_on?: ("error" | "ci_build" | "deploy" | "release" | "announcement" | "dev")[] | undefined;
42
+ notify_owners_on?: ("error" | "ci_build" | "deploy" | "release" | "alert" | "announcement" | "dev")[] | undefined;
43
43
  }, {
44
44
  guild_id: string;
45
45
  channels: Record<string, string>;
46
46
  default_channel?: string | undefined;
47
47
  token_env?: string | undefined;
48
48
  owners?: string[] | undefined;
49
- notify_owners_on?: ("error" | "ci_build" | "deploy" | "release" | "announcement" | "dev")[] | undefined;
49
+ notify_owners_on?: ("error" | "ci_build" | "deploy" | "release" | "alert" | "announcement" | "dev")[] | undefined;
50
50
  }>>;
51
51
  default_project: z.ZodOptional<z.ZodString>;
52
- notification_routing: z.ZodOptional<z.ZodRecord<z.ZodEnum<["ci_build", "deploy", "release", "error", "announcement", "dev"]>, z.ZodString>>;
52
+ notification_routing: z.ZodOptional<z.ZodRecord<z.ZodEnum<["ci_build", "deploy", "release", "error", "alert", "announcement", "dev"]>, z.ZodString>>;
53
53
  tool_profile: z.ZodOptional<z.ZodEnum<["full", "monitoring", "readonly", "moderation"]>>;
54
54
  tool_profile_add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
55
55
  tool_profile_remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -60,10 +60,10 @@ export declare const GlobalConfigSchema: z.ZodObject<{
60
60
  default_channel?: string | undefined;
61
61
  token_env?: string | undefined;
62
62
  owners?: string[] | undefined;
63
- notify_owners_on?: ("error" | "ci_build" | "deploy" | "release" | "announcement" | "dev")[] | undefined;
63
+ notify_owners_on?: ("error" | "ci_build" | "deploy" | "release" | "alert" | "announcement" | "dev")[] | undefined;
64
64
  }>;
65
65
  default_project?: string | undefined;
66
- notification_routing?: Partial<Record<"error" | "ci_build" | "deploy" | "release" | "announcement" | "dev", string>> | undefined;
66
+ notification_routing?: Partial<Record<"error" | "ci_build" | "deploy" | "release" | "alert" | "announcement" | "dev", string>> | undefined;
67
67
  tool_profile?: "full" | "monitoring" | "readonly" | "moderation" | undefined;
68
68
  tool_profile_add?: string[] | undefined;
69
69
  tool_profile_remove?: string[] | undefined;
@@ -74,10 +74,10 @@ export declare const GlobalConfigSchema: z.ZodObject<{
74
74
  default_channel?: string | undefined;
75
75
  token_env?: string | undefined;
76
76
  owners?: string[] | undefined;
77
- notify_owners_on?: ("error" | "ci_build" | "deploy" | "release" | "announcement" | "dev")[] | undefined;
77
+ notify_owners_on?: ("error" | "ci_build" | "deploy" | "release" | "alert" | "announcement" | "dev")[] | undefined;
78
78
  }>;
79
79
  default_project?: string | undefined;
80
- notification_routing?: Partial<Record<"error" | "ci_build" | "deploy" | "release" | "announcement" | "dev", string>> | undefined;
80
+ notification_routing?: Partial<Record<"error" | "ci_build" | "deploy" | "release" | "alert" | "announcement" | "dev", string>> | undefined;
81
81
  tool_profile?: "full" | "monitoring" | "readonly" | "moderation" | undefined;
82
82
  tool_profile_add?: string[] | undefined;
83
83
  tool_profile_remove?: string[] | undefined;
@@ -85,19 +85,19 @@ export declare const GlobalConfigSchema: z.ZodObject<{
85
85
  export type GlobalConfig = z.infer<typeof GlobalConfigSchema>;
86
86
  export declare const PerProjectConfigSchema: z.ZodObject<{
87
87
  project: z.ZodString;
88
- notification_routing: z.ZodOptional<z.ZodRecord<z.ZodEnum<["ci_build", "deploy", "release", "error", "announcement", "dev"]>, z.ZodString>>;
88
+ notification_routing: z.ZodOptional<z.ZodRecord<z.ZodEnum<["ci_build", "deploy", "release", "error", "alert", "announcement", "dev"]>, z.ZodString>>;
89
89
  tool_profile: z.ZodOptional<z.ZodEnum<["full", "monitoring", "readonly", "moderation"]>>;
90
90
  tool_profile_add: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
91
91
  tool_profile_remove: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
92
92
  }, "strip", z.ZodTypeAny, {
93
93
  project: string;
94
- notification_routing?: Partial<Record<"error" | "ci_build" | "deploy" | "release" | "announcement" | "dev", string>> | undefined;
94
+ notification_routing?: Partial<Record<"error" | "ci_build" | "deploy" | "release" | "alert" | "announcement" | "dev", string>> | undefined;
95
95
  tool_profile?: "full" | "monitoring" | "readonly" | "moderation" | undefined;
96
96
  tool_profile_add?: string[] | undefined;
97
97
  tool_profile_remove?: string[] | undefined;
98
98
  }, {
99
99
  project: string;
100
- notification_routing?: Partial<Record<"error" | "ci_build" | "deploy" | "release" | "announcement" | "dev", string>> | undefined;
100
+ notification_routing?: Partial<Record<"error" | "ci_build" | "deploy" | "release" | "alert" | "announcement" | "dev", string>> | undefined;
101
101
  tool_profile?: "full" | "monitoring" | "readonly" | "moderation" | undefined;
102
102
  tool_profile_add?: string[] | undefined;
103
103
  tool_profile_remove?: string[] | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,8EAO3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAO9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,eAAe,6DAA2D,CAAC;AAExF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAM1B,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gBAAgB,uFAQ3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;EAO9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,eAAe,6DAA2D,CAAC;AAExF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAM1B,CAAC"}
@@ -4,6 +4,7 @@ export const NotificationType = z.enum([
4
4
  "deploy",
5
5
  "release",
6
6
  "error",
7
+ "alert",
7
8
  "announcement",
8
9
  "dev",
9
10
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC;IACrC,UAAU;IACV,QAAQ;IACR,SAAS;IACT,OAAO;IACP,cAAc;IACd,KAAK;CACN,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,aAAa,EAAE,sCAAsC,CAAC;IACjF,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;IAC/D,eAA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oB,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvE,YAAY,EAAE,eAAe,CAAC,QAAQ,EAAE;IACxC,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpD,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5C,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,qBAAqB,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5E,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-ops",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "description": "Agency-grade Discord MCP server with multi-guild project routing",
5
5
  "type": "module",
6
6
  "license": "MIT",