-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathextension.json
463 lines (463 loc) · 12.6 KB
/
extension.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
{
"name": "CreateWiki",
"author": [
"Southparkfan",
"John Lewis",
"Paladox",
"Universal Omega",
"Agent Isai",
"Alex"
],
"url": "https://github.com/miraheze/CreateWiki",
"descriptionmsg": "createwiki-desc",
"namemsg": "createwiki-extensionname",
"license-name": "GPL-3.0-or-later",
"type": "specialpage",
"requires": {
"MediaWiki": ">= 1.42.0",
"platform": {
"php": ">= 8.0"
}
},
"MessagesDirs": {
"CreateWiki": [
"i18n"
]
},
"ExtensionMessagesFiles": {
"CreateWikiMagic": "CreateWikiMagic.php"
},
"TranslationAliasesDirs": {
"CreateWikiAliases": "i18n/aliases"
},
"AutoloadNamespaces": {
"Miraheze\\CreateWiki\\": "includes/",
"Miraheze\\CreateWiki\\Maintenance\\": "maintenance/"
},
"TestAutoloadNamespaces": {
"Miraheze\\CreateWiki\\Tests\\": "tests/phpunit/"
},
"JobClasses": {
"CreateWikiJob": {
"class": "Miraheze\\CreateWiki\\Jobs\\CreateWikiJob",
"services": [
"WikiManagerFactory",
"WikiRequestManager"
],
"needsPage": false
},
"RequestWikiAIJob": {
"class": "Miraheze\\CreateWiki\\Jobs\\RequestWikiAIJob",
"services": [
"ConfigFactory",
"CreateWikiHookRunner",
"WikiRequestManager"
],
"needsPage": false
},
"RequestWikiRemoteAIJob": {
"class": "Miraheze\\CreateWiki\\Jobs\\RequestWikiRemoteAIJob",
"services": [
"ConfigFactory",
"WikiRequestManager",
"HttpRequestFactory"
],
"needsPage": false
},
"SetContainersAccessJob": {
"class": "Miraheze\\CreateWiki\\Jobs\\SetContainersAccessJob",
"services": [
"ConfigFactory",
"RepoGroup"
],
"needsPage": false
}
},
"GroupPermissions": {
"user": {
"requestwiki": true
}
},
"AvailableRights": [
"createwiki",
"createwiki-deleterequest",
"createwiki-suppressionlog",
"createwiki-suppressrequest",
"requestwiki"
],
"LogActionsHandlers": {
"farmer/createwiki": "LogFormatter",
"farmer/comment": "LogFormatter",
"farmer/create-failure": "LogFormatter",
"farmer/requestapprove": "LogFormatter",
"farmer/requestdecline": "LogFormatter",
"farmer/requestmoredetails": "LogFormatter",
"farmer/requestonhold": "LogFormatter",
"farmer/requestreopen": "LogFormatter",
"farmer/requestwiki": {
"class": "Miraheze\\CreateWiki\\CreateWiki\\CreateWikiLogFormatter",
"services": [
"LinkRenderer"
]
},
"farmersuppression/*": "LogFormatter"
},
"LogHeaders": {
"farmer": "farmer-log-header",
"farmersuppression": "farmersuppression-log-header"
},
"LogNames": {
"farmer": "farmer-log-name",
"farmersuppression": "farmersuppression-log-name"
},
"LogTypes": [
"farmer",
"farmersuppression"
],
"LogRestrictions": {
"farmersuppression": "createwiki-suppressionlog"
},
"ActionFilteredLogs": {
"farmer": {
"createwiki": [
"createwiki"
],
"comment": [
"comment"
],
"create-failure": [
"create-failure"
],
"requestapprove": [
"requestapprove"
],
"requestdecline": [
"requestdecline"
],
"requestmoredetails": [
"requestmoredetails"
],
"requestonhold": [
"requestonhold"
],
"requestreopen": [
"requestreopen"
],
"requestwiki": [
"requestwiki"
]
},
"farmersuppression": {
"delete": [
"delete"
],
"public": [
"public"
],
"suppress": [
"suppress"
]
}
},
"SpecialPages": {
"CreateWiki": {
"class": "Miraheze\\CreateWiki\\CreateWiki\\SpecialCreateWiki",
"services": [
"CreateWikiDatabaseUtils",
"WikiManagerFactory"
]
},
"RequestWiki": {
"class": "Miraheze\\CreateWiki\\RequestWiki\\Specials\\SpecialRequestWiki",
"services": [
"CreateWikiDatabaseUtils",
"CreateWikiHookRunner",
"WikiRequestManager"
]
},
"RequestWikiQueue": {
"class": "Miraheze\\CreateWiki\\RequestWiki\\Specials\\SpecialRequestWikiQueue",
"services": [
"ConnectionProvider",
"CreateWikiDatabaseUtils",
"CreateWikiHookRunner",
"LanguageNameUtils",
"PermissionManager",
"UserFactory",
"WikiManagerFactory",
"WikiRequestManager"
]
}
},
"Hooks": {
"BeforeCreateEchoEvent": {
"handler": "Notifications"
},
"GetAllBlockActions": {
"handler": "Main"
},
"GetMagicVariableIDs": {
"handler": "Main"
},
"LoadExtensionSchemaUpdates": {
"handler": "Installer"
},
"LoginFormValidErrorMessages": {
"handler": "Main"
},
"MakeGlobalVariablesScript": {
"handler": "Main"
},
"ParserGetVariableValueSwitch": {
"handler": "Main"
},
"SetupAfterCache": {
"handler": "Main"
},
"UserGetReservedNames": {
"handler": "Main"
}
},
"HookHandlers": {
"Installer": {
"class": "Miraheze\\CreateWiki\\Hooks\\Handlers\\Installer"
},
"Main": {
"class": "Miraheze\\CreateWiki\\Hooks\\Handlers\\Main",
"services": [
"ConfigFactory",
"ConnectionProvider",
"CreateWikiDataFactory",
"RemoteWikiFactory"
]
},
"Notifications": {
"class": "Miraheze\\CreateWiki\\Hooks\\Handlers\\Notifications"
}
},
"RestRoutes": [
{
"path": "/createwiki/v0/wiki_request/{id}",
"method": "GET",
"class": "Miraheze\\CreateWiki\\RequestWiki\\Handler\\RestWikiRequest",
"services": [
"ConnectionProvider",
"CreateWikiRestUtils",
"UserFactory"
]
},
{
"path": "/createwiki/v0/wiki_request/{id}/comment",
"method": "POST",
"class": "Miraheze\\CreateWiki\\RequestWiki\\Handler\\RestWikiRequestComment",
"services": [
"CreateWikiRestUtils",
"WikiRequestManager"
]
},
{
"path": "/createwiki/v0/wiki_requests/user/{username}",
"method": "GET",
"class": "Miraheze\\CreateWiki\\RequestWiki\\Handler\\RestWikiRequestsByUser",
"services": [
"CreateWikiRestUtils",
"UserFactory",
"WikiRequestManager"
]
}
],
"ResourceModules": {
"ext.createwiki.oouiform": {
"scripts": "ext.createwiki.oouiform.ooui.js",
"dependencies": [
"mediawiki.storage",
"oojs-ui-widgets"
]
},
"ext.createwiki.oouiform.styles": {
"styles": "ext.createwiki.oouiform.ooui.less"
},
"ext.createwiki.requestwiki.oouiform.styles": {
"styles": "ext.createwiki.requestwiki.oouiform.ooui.less"
}
},
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "CreateWiki/modules"
},
"config": {
"CreateWikiAIThreshold": {
"description": "Integer. Must be a positive integer. Minimum percentage point threshold for a request to be automatically approved when acceptable. 0 will disable auto approval.",
"value": 0
},
"CreateWikiAutoApprovalFilter": {
"description": "Array. Regexes in request descriptions to never auto approve if matched.",
"value": []
},
"CreateWikiCacheDirectory": {
"description": "String. The path to store CreateWiki cache files at.",
"value": ""
},
"CreateWikiCacheType": {
"description": "Index from $wgObjectCaches. If set, this will be used instead of $wgMainCacheType for CreateWiki cache.",
"value": null
},
"CreateWikiCannedResponses": {
"description": "Array. An array of default responses to give. If this is enabled (not an empty array), free-text options are removed.",
"value": []
},
"CreateWikiCategories": {
"description": "Array. An array of categories used for wiki categorization. If this is an empty array, categories will not be used at all.",
"value": []
},
"CreateWikiCollation": {
"description": "String. Sets the collation to use when creating the wiki database. Example is 'DEFAULT SET utf8mb4 COLLATE utf8mb4_unicode_ci'",
"value": ""
},
"CreateWikiContainers": {
"description": "Array. List of local containers to create. Format: <container>: <public/public-private/private>. public means directory will always be public. public-private is to support public/private and uses isPrivate check. private means directory is private regardless of wiki status. Defaults to MW default containers with most public apart from deleted and temp.",
"value": {
"local-public": "public-private",
"local-thumb": "public-private",
"local-transcoded": "public-private",
"local-temp": "private",
"local-deleted": "private"
}
},
"CreateWikiDatabaseClusters": {
"description": "Array. LBFactory clusters which CreateWiki considers active.",
"value": []
},
"CreateWikiDatabaseSuffix": {
"description": "String. Database suffix.",
"value": "wiki"
},
"CreateWikiDisallowedSubdomains": {
"description": "Array. Regexes to match for disallowed subdomains.",
"value": []
},
"CreateWikiEmailNotifications": {
"description": "Boolean. Whether to send emails for new wiki creations.",
"value": false
},
"CreateWikiEnableManageInactiveWikis": {
"description": "Boolean. Whether the manageInactiveWikis.php maintenance script be enabled. That script marks wikis as inactive, closed, or deleted per $wgCreateWikiStateDays.",
"value": false
},
"CreateWikiEnableRESTAPI": {
"description": "Boolean. Whether the CreateWiki REST API should be enabled.",
"value": true
},
"CreateWikiNotificationEmail": {
"description": "String. Email address to send internally generated notification emails to. Does not depend on $wgCreateWikiEmailNotifications.",
"value": "root@localhost"
},
"CreateWikiOpenAIConfig": {
"description": "Array. OpenAI configuration array, including dry run status, Assistant ID and API Key.",
"value": {
"dryrun": true,
"assistantid": null,
"apikey": null
}
},
"CreateWikiPersistentModelFile": {
"description": "String. Location to a file that can be overwritten to contain a persistent machine learning model.",
"value": ""
},
"CreateWikiPurposes": {
"description": "Array. List of identified purposes to show when requesting a wiki.",
"value": []
},
"CreateWikiRequestCountWarnThreshold": {
"description": "Integer. Amount of wiki requests a user can have before being flagged. 0 to disable.",
"value": 0
},
"CreateWikiShowBiographicalOption": {
"description": "Boolean. Whether to show a biographical person option when requesting a wiki.",
"value": false
},
"CreateWikiSQLFiles": {
"description": "Array. All SQLs to be loaded into every wiki by default.",
"value": []
},
"CreateWikiStateDays": {
"description": "Array. Integer values in days when a wiki is deemed inactive, closed, removed (hidden) and deleted. Number of days passed since last change - not from initial inactivity.",
"value": {
"inactive": 45,
"closed": 15,
"removed": 120,
"deleted": 7
}
},
"CreateWikiSubdomain": {
"description": "String. The master part of subdomains, e.g. wiki.example.com, example.com is the master part.",
"value": ""
},
"CreateWikiUseClosedWikis": {
"description": "Boolean. Whether to implement front end logic for closing wikis.",
"value": false
},
"CreateWikiUseEchoNotifications": {
"description": "Boolean. Whether to use Echo notifications.",
"value": false
},
"CreateWikiUseExperimental": {
"description": "Boolean. Whether to implement front-end logic for marking wikis as experimental.",
"value": false
},
"CreateWikiUseInactiveWikis": {
"description": "Boolean. Whether to implement front end logic for inactive wikis.",
"value": false
},
"CreateWikiUseJobQueue": {
"description": "Boolean. Whether to defer intensive tasks to the jobqueue.",
"value": false
},
"CreateWikiUsePrivateWikis": {
"description": "Boolean. Whether to implement front end logic for marking wikis as private.",
"value": false
},
"RequestWikiConfirmAgreement": {
"description": "Boolean. Whether to require users to confirm they will abide by farm policies.",
"value": false
},
"RequestWikiConfirmEmail": {
"description": "Boolean. Whether to require users to confirm emails before being able to request wikis.",
"value": true
},
"RequestWikiMinimumLength": {
"description": "Integer. Minimum length for the reason field within RequestWiki.",
"value": false
}
},
"ConfigRegistry": {
"CreateWiki": "MediaWiki\\Config\\GlobalVarConfig::newInstance"
},
"DefaultUserOptions": {
"echo-subscriptions-web-request-comment": true,
"echo-subscriptions-email-request-comment": false,
"echo-subscriptions-web-request-declined": true,
"echo-subscriptions-email-request-declined": true,
"echo-subscriptions-web-request-moredetails": true,
"echo-subscriptions-email-request-moredetails": true,
"echo-subscriptions-web-wiki-creation": true,
"echo-subscriptions-email-wiki-creation": false
},
"RateLimits": {
"requestwiki": {
"user": [
5,
60
]
}
},
"ServiceWiringFiles": [
"includes/ServiceWiring.php"
],
"DatabaseVirtualDomains": [
"virtual-createwiki",
"virtual-createwiki-central"
],
"load_composer_autoloader": true,
"manifest_version": 2
}