Skip to content

Commit d8e67cf

Browse files
committed
refactor(reef): drop hand-maintained manifest schema copies
The reef manifest duplicated the full channel config schema into both configSchema and channelConfigs.reef.schema, and the channelConfigs copy silently overrode the zod-derived generated bundled channel metadata in config validation - three surfaces to keep in sync by hand (the trap that bit #131167). Match sibling bundled channel plugins: stub plugin-level configSchema, no channelConfigs copy; the generated metadata (from the zod schema, CI-checked) is the single channel-schema source.
1 parent 4377b64 commit d8e67cf

1 file changed

Lines changed: 1 addition & 176 deletions

File tree

‎extensions/reef/openclaw.plugin.json‎

Lines changed: 1 addition & 176 deletions
Original file line numberDiff line numberDiff line change
@@ -25,182 +25,7 @@
2525
"configSchema": {
2626
"type": "object",
2727
"additionalProperties": false,
28-
"properties": {
29-
"relayUrl": {
30-
"type": "string",
31-
"format": "uri",
32-
"pattern": "^[hH][tT][tT][pP][sS]?://[^\\\\/?#@]+/?$",
33-
"default": "https://reefwire.ai"
34-
},
35-
"handle": {
36-
"type": "string",
37-
"pattern": "^[a-z0-9][a-z0-9_-]{0,62}$"
38-
},
39-
"email": {
40-
"type": "string",
41-
"format": "email"
42-
},
43-
"guard": {
44-
"type": "object",
45-
"additionalProperties": false,
46-
"required": [
47-
"provider",
48-
"pinnedModel",
49-
"apiKeyEnv",
50-
"policyVersion",
51-
"timeoutMs"
52-
],
53-
"properties": {
54-
"provider": {
55-
"enum": [
56-
"anthropic",
57-
"openai"
58-
]
59-
},
60-
"pinnedModel": {
61-
"type": "string",
62-
"minLength": 1
63-
},
64-
"apiKeyEnv": {
65-
"type": "string",
66-
"pattern": "^[A-Z_][A-Z0-9_]*$"
67-
},
68-
"policyVersion": {
69-
"type": "string",
70-
"minLength": 1
71-
},
72-
"timeoutMs": {
73-
"type": "integer",
74-
"minimum": 100,
75-
"maximum": 120000
76-
},
77-
"rules": {
78-
"type": "object",
79-
"additionalProperties": false,
80-
"properties": {
81-
"outbound": {
82-
"type": "string",
83-
"maxLength": 2000,
84-
"pattern": "\\S"
85-
},
86-
"inbound": {
87-
"type": "string",
88-
"maxLength": 2000,
89-
"pattern": "\\S"
90-
}
91-
}
92-
}
93-
}
94-
},
95-
"stateDir": {
96-
"type": "string",
97-
"minLength": 1
98-
},
99-
"requestPolicy": {
100-
"enum": [
101-
"code-only",
102-
"friends-of-friends",
103-
"open"
104-
],
105-
"default": "code-only"
106-
},
107-
"enabled": {
108-
"type": "boolean",
109-
"default": true
110-
}
111-
}
112-
},
113-
"channelConfigs": {
114-
"reef": {
115-
"schema": {
116-
"type": "object",
117-
"additionalProperties": false,
118-
"properties": {
119-
"relayUrl": {
120-
"type": "string",
121-
"format": "uri",
122-
"pattern": "^[hH][tT][tT][pP][sS]?://[^\\\\/?#@]+/?$",
123-
"default": "https://reefwire.ai"
124-
},
125-
"handle": {
126-
"type": "string",
127-
"pattern": "^[a-z0-9][a-z0-9_-]{0,62}$"
128-
},
129-
"email": {
130-
"type": "string",
131-
"format": "email"
132-
},
133-
"guard": {
134-
"type": "object",
135-
"additionalProperties": false,
136-
"required": [
137-
"provider",
138-
"pinnedModel",
139-
"apiKeyEnv",
140-
"policyVersion",
141-
"timeoutMs"
142-
],
143-
"properties": {
144-
"provider": {
145-
"enum": [
146-
"anthropic",
147-
"openai"
148-
]
149-
},
150-
"pinnedModel": {
151-
"type": "string",
152-
"minLength": 1
153-
},
154-
"apiKeyEnv": {
155-
"type": "string",
156-
"pattern": "^[A-Z_][A-Z0-9_]*$"
157-
},
158-
"policyVersion": {
159-
"type": "string",
160-
"minLength": 1
161-
},
162-
"timeoutMs": {
163-
"type": "integer",
164-
"minimum": 100,
165-
"maximum": 120000
166-
},
167-
"rules": {
168-
"type": "object",
169-
"additionalProperties": false,
170-
"properties": {
171-
"outbound": {
172-
"type": "string",
173-
"maxLength": 2000,
174-
"pattern": "\\S"
175-
},
176-
"inbound": {
177-
"type": "string",
178-
"maxLength": 2000,
179-
"pattern": "\\S"
180-
}
181-
}
182-
}
183-
}
184-
},
185-
"stateDir": {
186-
"type": "string",
187-
"minLength": 1
188-
},
189-
"requestPolicy": {
190-
"enum": [
191-
"code-only",
192-
"friends-of-friends",
193-
"open"
194-
],
195-
"default": "code-only"
196-
},
197-
"enabled": {
198-
"type": "boolean",
199-
"default": true
200-
}
201-
}
202-
}
203-
}
28+
"properties": {}
20429
},
20530
"commandAliases": [
20631
{

0 commit comments

Comments
 (0)