Extension inventory: Difference between revisions

From Freephile Wiki
gray out the unused extensions
Create some content from simple script
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page serves to inventory and assess the mix of extensions that are in use for the DCS wiki. Code for "regular" extensions are hosted on Gerrit at the WMF (which is also mirrored to GitHub) with documentation at https://www.mediawiki.org/wiki. Code for the DCS extensions is in the [https://github.com/debtcompliance/mediawiki/tree/master/extensions private Debt Compliance GitHub repo]; and the Organic Design extensions are in the [https://github.com/OrganicDesign/extensions/tree/master/MediaWiki 'MediaWiki' tree of the Organic Design GitHub repo].
This is just a one-off example of how we compiled a list of 'missing' extensions for [[Meza]]
 
== File Types ==
In the '''DCS custom extensions''' (only), here are the file counts by file-type:
 
    14 .css  Cascading Style Sheets (design / UI )
      6 .gif    Graphic
      1 .ico    Icon
      1 .jpg    Graphic
      9 .js      JavaScript (functionality in the browser - client-side v. server-side)
    43 .json  JavaScript Object Notation (configuration / programming)
    69 .php  PHP - programming language for MediaWiki
      8 .pl      Perl - programming language
      4 .png    Graphic
      1 .svg    Graphic
 
 
== Source Code Summary ==
{| class="wikitable sortable"
|+ Source Lines of Code (SLOC)
|-
! SLOC !! Directory !! SLOC-by-Language (Sorted)
|-
|  1873 || DcsJobAdmin || perl=985,php=779,javascript=109
|-
|  751 || DcsCommon || php=548,javascript=203
|-
|  551 || DcsSearch || javascript=282,php=269
|-
|  481 || DcsNamespaces || php=425,javascript=56
|-
|  379 || DcsAmmendments || php=203,javascript=176
|-
|  315 || DcsTitle || php=315
|-
|  269 || DcsSingleSignOn || php=269
|-
|  258 || DcsSection || php=258
|-
|  230 || DcsNuke || php=230
|-
|  208 || DcsComplianceChecklist || php=208
|-
|  178 || DcsExportTerms || php=178
|-
|  168 || DcsComplianceChecklist2 || php=168
|-
|  158 || DcsGroupAdmin || php=158
|-
|  139 || DcsWatchComments || php=139
|-
|  123 || DcsUserDisable || php=78,javascript=45
|-
|  110 || DcsLoanPages || php=110
|-
|  104 || DcsBaskets || php=57,javascript=47
|-
|  90 || DcsSkin || php=90
|-
|  88 || DcsFindTitle || php=88
|-
|  70 || DcsUploadedFiles || php=70
|-
|  40 || DcsEmailLink || php=40
|-
|  0 || DcsSection2 || (none)
|}
 
 
{| class="wikitable sortable"
|+ Totals grouped by language (dominant language first)
|-
! php:
| 4680 (71.09%)
|-
! perl:
| 985 (14.96%)
|-
! javascript:
| 918 (13.95%)
|}


Given a list of 'Bundled' extensions to MediaWiki
<pre>
<pre>
Total Physical Source Lines of Code (SLOC)                = 6,583
# This is a list of bundled extensions from
Development Effort Estimate, Person-Years (Person-Months) = 1.45 (17.36)
# https://www.mediawiki.org/wiki/Bundled_extensions_and_skins
  (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
AbuseFilter
Schedule Estimate, Years (Months)                        = 0.62 (7.40)
CategoryTree
  (Basic COCOMO model, Months = 2.5 * (person-months**0.38))
CheckUser
Estimated Average Number of Developers (Effort/Schedule)  = 2.35
Cite
Total Estimated Cost to Develop                          = $ 195,428
CiteThisPage
  (average salary = $56,286/year, overhead = 2.40; calculated in 2004 dollars)
CodeEditor
ConfirmEdit
DiscussionTools
Echo
Gadgets
ImageMap
InputBox
Linter
LoginNotify
Math
MultimediaViewer
Nuke
OATHAuth
PageImages
ParserFunctions
PdfHandler
Poem
ReplaceText
Scribunto
SecureLinkFixer
SpamBlacklist
SyntaxHighlight
TemplateData
TemplateStyles
TextExtracts
Thanks
TitleBlacklist
VisualEditor
WikiEditor
</pre>
</pre>


=== And for the 'tools' directory ===
And given a [[YAML]] file that contains a list of [https://github.com/freephile/meza/blob/main/config/MezaCoreExtensions.yml our own project extensions].
Part of the DCS wiki system, there is a directory called 'tools' which is a collection of Perl scripts that Aran developed for various web projects. The entire collection is [https://github.com/OrganicDesign/tools available on GitHub]
{| class="wikitable sortable"
|+ Source Lines of Code (SLOC)
|-
! SLOC !! Directory !! SLOC-by-Language (Sorted)
|-
| 4817 || top_dir || perl=3838,php=648,sh=331
|-
| 345 || crowdrating.org || perl=345
|-
| 172 || jobs || perl=121,php=51
|-
| 63 || bm-gateway || python=63
|-
| 4 || meditation || perl=4
|-
| 3 || docker || sh=3
|-
| 0 || atom || (none)
|-
| 0 || icons || (none)
|-
| 0 || nginx || (none)
|}
 
{| class="wikitable sortable"
|+ Totals grouped by language (dominant language first)
|-
! perl:
| 4308 (79.72%)
|-
! php:
|  699 (12.93%)
|-
! sh:
| 334 (6.18%)
|-
!python:
| 63 (1.17%)
|}
 
 
<pre>
Total Physical Source Lines of Code (SLOC)                = 5,404
Development Effort Estimate, Person-Years (Person-Months) = 1.18 (14.11)
(Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
Schedule Estimate, Years (Months)                        = 0.57 (6.84)
(Basic COCOMO model, Months = 2.5 * (person-months**0.38))
Estimated Average Number of Developers (Effort/Schedule)  = 2.06
Total Estimated Cost to Develop                          = $ 158,852
(average salary = $56,286/year, overhead = 2.40).
</pre>
 
 
== "Regular" Extensions ==
Regular is in quotes because ''all'' extensions modify the behavior and capabilities of MediaWiki. Those that are used by the WMF in their projects or are distributed in the official download should be considered stable, and well-maintained.
 
{| class="wikitable sortable"
|-
! Extension
! Used by WMF projects?
! What does it do?
! Maintenance / Last release
! Used by Meza
! Used by QualityBox
! In use? Alternatives?
|-
| [https://www.mediawiki.org/wiki/Extension:CirrusSearch CirrusSearch]
| Yes
| Extends the core search for MediaWiki to be able to use [https://en.wikipedia.org/wiki/Elasticsearch Elasticsearch]
| Continuous
| Yes
| Yes
| Yes
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:Cite Cite]
| Bundled in the official tarball release of MediaWiki (aka 'the download').
| Provides <nowiki><references /> and <ref></ref></nowiki> tags
| Continuous
| Yes
| Yes
| UNUSED
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:CiteThisPage CiteThisPage]
| Bundled
| Provides [https://demo.qualitybox.us/wiki/Special:CiteThisPage Cite This Page] Special Page.
| Continuous
| No
| Yes
| UNUSED
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:ConfirmEdit ConfirmEdit]
| Bundled
| Adds CAPTCHAs for page saves and other user actions to protect against spam and password-guessing
| Continuous
| No
| Yes
| UNUSED
|-
| [https://www.mediawiki.org/wiki/Extension:Elastica Elastica]
| Yes
| Base Elasticsearch functionality by providing the Elastica library; required by CirrusSearch.
| Continuous
| Yes
| Yes
| Yes
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:Gadgets Gadgets]
| Bundled
| Provides a way for users to pick JavaScript or CSS based "gadgets" that other wiki users provide.
| Continuous
| No
| Yes
| UNUSED
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:ImageMap ImageMap]
| Bundled
| The ImageMap extension allows clickable image maps.
| Continuous
| Yes
| Yes
| UNUSED
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:InputBox InputBox ]
| Bundled
| The InputBox extension adds already created HTML forms to wiki pages.  So, for [https://www.mediawiki.org/wiki/MediaWiki_1.30#Subpages example], a search box on a page or category with many subpages; preconfigured to "Search this space".
| Continuous
| Yes
| Yes
| UNUSED
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:Interwiki Interwiki]
| Bundled
| The Interwiki extension adds the "Special:Interwiki" page to MediaWiki, to view and edit the interwiki table, and a log of any actions made with it.
| Continuous
| Yes
| Yes
| UNUSED
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:LocalisationUpdate LocalisationUpdate]
| Bundled
| Allows to update the localizations for MediaWiki messages at any time, without needing to upgrade the MediaWiki software.
| Continuous
| No
| No
| UNUSED
|-
| [https://www.mediawiki.org/wiki/Extension:Nuke Nuke]
| Bundled
| The Nuke extension makes it possible for sysops to [https://demo.qualitybox.us/wiki/Special:Nuke mass delete pages].
| Continuous
| No
| Yes
| For whatever reason, the DCSNuke extension intercepts page requests for the Nuke special page. DCSNuke has no added functionality. The DCSNuke code is roughly equivalent to the REL1_20 release of Nuke; and the current Nuke extension offers more functionality. I thought that potentially the reason to use a cloned extension was to totally customize the interface language strings, but that's not the case<ref>meld <(curl https://raw.githubusercontent.com/debtcompliance/mediawiki/master/extensions/DcsNuke/i18n/en.json?token=AACV4LWLt32dJzNg2zqcDRP_QZ6ecfOvks5bDx4MwA%3D%3D) <(curl https://raw.githubusercontent.com/wikimedia/mediawiki-extensions-Nuke/master/i18n/en.json)</ref>. Remove DCSNuke.
|-
| [https://www.mediawiki.org/wiki/Extension:ParserFunctions ParserFunctions]
| Bundled
| Enhances the wikitext parser with helpful functions, mostly related to logic and string-handling.
| Continuous maintenance
| Yes
| Yes
| Yes
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:PdfHandler PdfHandler]
| Bundled
| The PdfHandler extension shows uploaded pdf files in a multipage preview layout.
 
With the Proofread Page extension, pdfs can be displayed side-by-side with text. This allows users to transcribe books and other documents.
| Continuous
| Disabled
| Yes
| UNUSED
|-
| [https://www.mediawiki.org/wiki/Extension:Pipe_Escape PipeEscape]
| Bundled
| The Pipe Escape extension allows for pipe characters in parser function arguments (and template argument calls) avoid being interpreted as an argument delimiter. This is primarily for the purpose of using wiki tables (or parts thereof) inside parser function calls or templates.
| Old but stable
| Yes
| Yes
| Included via DcsSetup
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:Poem Poem]
| Bundled
| The Poem extension allows easy formatting of poems and similar material within Wikitext. Once the extension is enabled, you can put any block of text within <nowiki><poem></poem></nowiki> tags
| Continuous updates
| No
| Yes
| UNUSED
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:Renameuser Renameuser]
| Bundled
| The Renameuser extension provides a special page which allows authorized users to rename user accounts. This will cause page histories, etc. to be updated. If you want to rename an account "into" another, already existing one, you need the User Merge and Delete extension.
| Continuous updates
| No
| Yes
| UNUSED
|-
| [https://www.mediawiki.org/wiki/Extension:SimpleMathJax SimpleMathJax]
| No, WMF uses the Math extension
| The SimpleMathJax extension enables MathJax, a Javascript library, for typesetting TeX formula in MediaWiki inside math environments. This extension will load resources from cdnjs.cloudflare.com on all wiki pages that have math or chem tags.
| Regular maintenance
| Yes
| Yes
| included by DcsSetup.php
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:SpamBlacklist SpamBlacklist]
| Bundled
| The SpamBlacklist extension prevents edits that contain URLs whose domains match regular expression patterns defined in specified files or wiki pages and registration by users using specified email addresses.
 
When someone tries to save a page, SpamBlacklist checks the text against a (potentially very large) list of illegal host names. If there is a match, the extension displays an error message to the user and refuses to save the page.
| Continuous updates
| No
| No
| UNUSED
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight SyntaxHighlight_GeSHi] (now known simply as SyntaxHighlight)
| Bundled
| Provides rich formatting of source code using the <nowiki><syntaxhighlight></nowiki> tag. It is powered by the Pygments library and supports hundreds of different programming languages and file formats.
| continuous updates
| Yes
| Yes
| UNUSED
|- style="background:#90989e;"
| [https://www.mediawiki.org/wiki/Extension:TitleBlacklist TitleBlacklist]
| Bundled
| Combat spam and vandalism. Allows wiki administrators to block the creation, movement and upload of pages, the title of which matches one or more regular expressions, as well as blocking creation of accounts with matching usernames. (Prevent account creation by "he who shall not be named" or prevent pages like "Sh*t".
| 1.5.0 (2014-03-29) some oversight by WMF
| No
| No
| UNUSED
|-
| [https://www.mediawiki.org/wiki/Extension:WikiEditor WikiEditor]
| Bundled
| The WikiEditor extension provides an improved interface for editing wikitext. It is the wikitext editing interface that Wikipedia started using in 2010 for desktop users, and so it is sometimes called the "2010 wikitext editor".
| 0.5.1 (2016-04-15) some oversight by WMF
| Yes
| Yes
| Yes
|-
|}
 
== Custom DCS Extensions ==
 
{| class="wikitable sortable"
|-
! Extension
! Purpose
! Last release
! Example usage + notes
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsamendments DcsAmmendments]
| Adds ammendments section to DCS loan pages. Sysop (only) can add/delete/edit/re-order (up/down) the ammendments; UX [https://github.com/debtcompliance/mediawiki/blob/master/extensions/DcsAmmendments/modules/dcsammendments.js implemented in JavaScript]. Extends the API with the same functions. Adds new log type: amendments; and logs all actions.
| Jan 2018 - new sort functionality ready for testing
| https://clienttest.dm.dcstemporary.com/ARCA14:1.5_Time_References
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsbaskets DcsBaskets]
| This extension allows the utilization column of the Baskets tables to be edited directly using AJAX and saving values into 'basket' tables rather than in the traditional wiki-text revision tables.
| 1.4.3, 2018-05-25
| "Baskets" can be found in the hierarchy list of the leftnav under the 'Compliance' folder. The page name, by convention, is 'Baskets' e.g. https://clienttest.dm.dcstemporary.com/Baskets  This is really neat, and very advanced.  However, now that Visual Editor is available, I'd suspect that the user experience of editing large tables in Visual Editor would be much better. '''Replace Baskets with Visual Editor'''
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcscommon DcsCommon]
| Cookie handling was [https://github.com/debtcompliance/mediawiki/commit/41b4c2a9af447c25143da7e39d959dae3affd0c8#diff-dfec3a4f5a263c72b06f5ceafcac3408 added on June 14, 2017]. The code (the cookie.js part) is from a project called [https://github.com/js-cookie/js-cookie/blob/master/src/js.cookie.js  js-cookie]. So, we could update that code. Or, we could replace it with internal functions so we don't rely on 3rd party code. See the API documentation for [https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.cookie mw.cookie] (Does '''not''' use the $wgCookieSecure configuration variable since 'detect' could not work with
ResourceLoaderStartUpModule; as module cache is not fragmented by protocol.) The mw.cookie (JavaScript) code is syntactically and functionally similar to the server-side cookie API (`[https://doc.wikimedia.org/mediawiki-core/master/php/classWebRequest.html#aa952980c6053a1e23c3ce673eb0f1d6d WebRequest#getCookie]` and `[https://doc.wikimedia.org/mediawiki-core/master/php/classWebResponse.html#a92cfd006677a1d96c3cee8ee3edcccd3 WebResponse#setcookie]`).
 
https://www.mediawiki.org/wiki/Manual:Hooks/UserSetCookies is deprecated as of REL1_27, and session-handling extensions should be subclassing CookieSessionProvider. [https://www.mediawiki.org/wiki/Manual:$wgSessionProviders $wgSessionProviders]
 
The class creates methods for outputting messages, notices, dates, getting [https://gerrit.wikimedia.org/g/mediawiki/core/+/master/includes/content/ContentHandler.php#86 raw content].
 
It loads some javascript (through resource loader). That [https://github.com/debtcompliance/mediawiki/blob/master/extensions/DcsCommon/modules/dcscommon.js javascript] could more easily be maintained as MediaWiki:Common.js? although there may be load order issues.  The JS defines like-named methods with varying features. E.g. <blockquote>Check if the passed page title string is in a loan namespace, returns boolean. Note that this function only checks if the namespace is in the list of all loan namespaces, it doesn't do any checks for whether the namespace is in use, or whether the title is in a DCS_TOC article like the DcsCommon::isLoanPage PHP function.</blockquote>
 
The series of extensions create [https://github.com/debtcompliance/mediawiki/blob/bf8a1096e71d2e997c626b9d6e33b4799ba4a87e/extensions/DcsEmailLink/DcsEmailLink.php#L4 DcsInit()] (in DcsEmailLink), DcsBlockPageAccess(), and DcsReady() hook functions. DcsReady() implementations are different across different classes from Basket to [https://github.com/debtcompliance/mediawiki/blob/93999818fd46c2075638120b12d4f684968daa90/extensions/DcsSingleSignOn/DcsSingleSignOn.php#L42 DcsSingleSignOn].
 
The 'common' extension creates a singleton instance of the DcsCommon class that does a bunch of things according to [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcscommon notes in the wiki]. The permissions shouldn't really be hidden away in the class code. They should simply be in LocalSettings.php. onUserGetRights() is a big function.  The 'self:cache' is mostly called in connection with 'isLocal'. Any true caching should just be offloaded to APC and memcache. Although there is no 'dcs' table in the database on dcsTemporary, the [https://github.com/debtcompliance/mediawiki/blob/master/extensions/DcsCommon/DcsCommon.php#L653 setData()] method is used throughout the codebase so should update [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcscommon wiki] about where this data is stored.
| recent
| pervasive
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Compliance-Checklist DcsComplianceChecklist]
| Provides a dropdown list of loans and responsibility terms by which the table can be filtered on the Checklist page (by convention). The parser function creates the page contents and form controls.
| recent (2017 - 2018)
| e.g. https://clienttest.dm.dcstemporary.com/Checklist
|-
| DcsComplianceChecklist2
| purpose?
| release?
| only used in the '''checktest''' subdomain, or when `wgLocalTesting`; intention is to use a timestamp condition
|-
| [https://github.com/debtcompliance/mediawiki/tree/master/extensions/DcsEmailLink DcsEmailLink]
| Allows you to send a link to a page in the wiki. Activated by the "Email Link" item in the primary navigation across the top of the page. Similar to the "Email Page" extension by Aran, which is also used.
| 11 months ago
| visit any page
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsexportterms DcsExportTerms]
| Allows terms to be downloaded in Comma Separated Value (CSV) format. CSV is easily imported to a spreadsheet.
| recent
| Visit https://clienttest.dm.dcstemporary.com/Category:Terms and you will see a "Export Terms" action in the primary navigation across the top of the page.
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsfindtitle DcsFindTitle]
| helps to find a title regardless of case-sensitivity of the system.
| recent
| integrates with the API, however I'm unsure where it's visible/usable to the user. I believe it's used from the Ruby side to create links that will match a wiki page even if there is a case mismatch.  If you wish to navigate to https://clienttest.dm.dcstemporary.com/ARCA14:TOC but request https://clienttest.dm.dcstemporary.com/arca14:toc instead, you'll get a 404 Not Found error. If you request https://clienttest.dm.dcstemporary.com/arca14:toc?action=findtitle then you will be redirected to the proper article.
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsgroupadmin DcsGroupAdmin]
| Leverages the DcsBlockPageAccess hook to allow/disallow access to files and namespaces.
| recent
| https://clienttest.dm.dcstemporary.com/Special:DcsGroupAdmin/equality
|-
| [https://github.com/debtcompliance/mediawiki/tree/master/extensions/DcsJobAdmin DcsJobAdmin]
| See [https://github.com/debtcompliance/mediawiki/wiki/Background-jobs Background info on Background jobs]. Creates a Special Page [https://clienttest.dm.dcstemporary.com/Special:DcsJobAdmin Special:DcsJobAdmin] where you can start a new job; or view current and historical jobs. Each job type loads it's own form into the Admin page. The job runner extends the Maintenance class, and loops over running jobs to provide some progress reporting. It saves the most recent 10 jobs to a 'history' list.
There are functions in the code for:
* Return a list of the currently running jobs sorted by start time.
* Add a job to the 'history' list of jobs executed (list is limited to 10 items).
* Get a 'history' list of the last 10 jobs
* Get job data (both current and history)
* shell_exec() to the process table to find DcsJobRunner. Return the currently running jobs by Process ID (PID)
* register the PHP code classes for each job type:
** Change Namespace
** EditTest
** Import
** ImportXML
** Links
** PhpTest
** ReplaceText
** UpgradeAttachments
 
Each (or almost all?) PHP file is backed by a perl file which was the basis for the PHP development. Everything is written twice because it all started back when the best framework for handling MediaWiki jobs was a perl bot framework. Things have changed significantly over the recent past for [https://www.mediawiki.org/wiki/Manual:Job_queue MediaWiki's job queue].
 
According to [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsjobadmin the documentation], it allows you to manage jobs. But, I'm wondering how much this is actually used? The job queue should be run automatically by cron, and the administrative user shouldn't have to worry about it really. If there is a usage pattern where job execution is time sensitive, there is a use for an Admin function; but I'm curious about the usage patterns that create large or numerous jobs.  Otherwise, set wgJobRunRate to zero, and put it into cron `0 0 * * * root /usr/bin/php /var/www/example.com/www/w/maintenance/runJobs.php > /var/log/runJobs.log 2>&1`
| 2018-05-25
| yes
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsloanpages DcsLoanPages]
| creates "backlinks" which are links to content that contain a particular keyword or phrase found in a loan document. It also creates the <nowiki>"< Prev" and "Next >"</nowiki> navigation links (called 'breadcrumbs' in the code, but actually these are 'pager' links not breadcrumbs).
| recent
| If you go to a page like https://clienttest.dm.dcstemporary.com/ARCA14:Agreement You will see a large section of content called '''Index to ARCA14 pages containing "Agreement""'' So, in other words, it's a list of links to pages of the ARCA14 loan that have the word "Agreement" in them. These links are created by the extension.
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsnamespaces DcsNamespaces]
| Manages the segregation of loan documents into their own separate namespaces. Also provides some functionality around moving/deleting/renaming namespaces via the https://clienttest.dm.dcstemporary.com/Special:DcsNamespaces special page.
| recent
| e.g. https://clienttest.dm.dcstemporary.com/Special:DcsNamespaces
|-
| DcsNuke
| purpose?
| release?
| yes. REPLACE with [https://www.mediawiki.org/wiki/Extension:Nuke standard Nuke extension]
|-
| DcsSearch
| Extends the Elasticsearch backend with additional business logic, and new features and UX (saving search "favorites" and indexing link paths traversed in connection with a search query). See https://github.com/debtcompliance/mediawiki/wiki/Search-&-sorting
| a year ago
| e.g. See the "heart" symbol next to the search box which implements the "favorites" feature.
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcssection DcsSection]
| Allows for loan documents to be imported into the wiki as multiple articles.  Creates a 'section reference' capability.
| in progress (v2)
|
|-
| DcsSection2
| purpose?
| release?
| NO - at least not on the development machine which is a clone of production.
|-
| [https://github.com/debtcompliance/mediawiki/wiki/SSO-2017-specification DcsSingleSignOn]
| Create a master/slave relationship with the Ruby on Rails application as the authentication and group mangement source; with the MediaWiki application synchronizing user information into it's local database.
| 2017 major update
| For testing, you can access /wiki/extensions/dcs/DcsSingleSignOn/testLogin.php
|-
| [https://github.com/debtcompliance/mediawiki/wiki#the-dcs-skin DcsSkin]
| Custom 'style' to match DCS website / frontend
| recent
| Yes
|-
| [https://github.com/debtcompliance/mediawiki/wiki/The-DcsTitle-class DcsTitle]
| Extends the regular MediaWiki title object class. Creates a custom cache of the TOC.
| recent
| yes
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcsuploadedfiles DcsUploadedFiles]
| Creates a special page listing all the files uploaded to loan documents orderd by loan namepsace then by article
| a year ago
| https://clienttest.dm.dcstemporary.com/Special:DcsUploadedFiles
|-
| DcsUserDisable
| Adds 'enable/disable' links to the User list
| a year ago
| https://clienttest.dm.dcstemporary.com/Special:ListUsers Why not use the [https://clienttest.dm.dcstemporary.com/Special:Block Special:Block] functionality built into core?I believe it's every bit as accessible through the API and thus could be used from QAR.
|-
| [https://github.com/debtcompliance/mediawiki/wiki/Extensions#dcswatchcomments DcsWatchComments]
| Adds subscription to talk pages.
| release?
| When I view my normal [https://clienttest.dm.dcstemporary.com/Special:EditWatchlist MediaWiki 'WatchList'], I don't see any loan talk pages added. I only see my user page.
|-
|}
 
== Organic Design extensions ==
ONLY extensions marked with ** are actually used by DCS
 
# Accordian
# AddLinkClasses
# [https://github.com/OrganicDesign/extensions/tree/master/MediaWiki/AjaxComments AjaxComments] **
# ArticleProperties
# Bliki
# CodeTidy
# CurrentPages
# CurrentUsers
# Download
# [https://www.mediawiki.org/wiki/Extension:EmailPage EmailPage] ** Adds a special page that allows you to send the rendered contents of a wiki page to a recipient. Activated by the "Email" item in the primary navigation across the top of the page.
# EmailToWiki
# EximMailList
# [https://github.com/OrganicDesign/extensions/blob/master/MediaWiki/ExtraMagic/ExtraMagic_body.php ExtraMagic] ** Adds extra [https://www.mediawiki.org/wiki/Help:Magic_words Magic Words] and Parser functions.
# FaceBook
# FileAttach
# FormMailer
# HighlightJS
# InterWiki
# [https://github.com/OrganicDesign/extensions/tree/master/MediaWiki/jQueryUpload jQueryUpload] ** v1.4.5, 2016-08-28
# jQueryUpload2
# Ligmincha
# LinkAttributes
# LinkTree
# NukeDPL
# ODMaps
# OrganicDesign
# [https://www.mediawiki.org/wiki/Extension:PdfBook PdfBook] ** The PdfBook extension composes a book from articles in a category and exports as a PDF file.
# RecentActivity
# SimpleCalendar
# TransformChanges
# [https://www.mediawiki.org/wiki/Extension:TreeAndMenu TreeAndMenu] ** makes bullet lists into folder trees or dynamic drop-down menus.<br /><br />The drop-down menu functionality uses Son of Suckerfish which is 99% CSS, and the tree component is now using the FancyTree jQuery plugin rather than the dTree used in previous version of the TreeAndMenu extension. The new FancyTree has many options and plugins and is very extendable, please view the site and examples for more detail.
# UserLoginLog
# UserProfiles
# Variables
# WebSocket
# WikiaAdmin
# WikiaInfo
 
 
 
 
 
== Special:Version ==
This is what you'll see reported by the "[https://clienttest.dm.dcstemporary.com/Special:Version Special:Version]" page of the wiki
 
=== Installed skins ===


{| class="wikitable sortable"
We generated a list of the missing ones
|-
<syntaxhighlight lang="php">
| align=center| '''Skin'''
<?php
| align=center| '''Version'''
// Script to find extensions in bundled_extensions.txt that are NOT in MezaCoreExtensions.yml
| align=center| '''License'''
| align=center| '''Description'''
| align=center| '''Authors'''
|-
|  | [https://www.mediawiki.org/wiki/Skin:Cologne_Blue Cologne Blue]
|  | –
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Cologne_Blue GPL-2.0+]
|  | A lightweight skin with minimal formatting
|  | Lee Daniel Crocker and others
|-
|  | [http://www.debtcompliance.com/ DcsSkin]
|  | 3.0.2, 2016-07-01
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | DCS skin desgined to match the QAR app
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [https://www.mediawiki.org/wiki/Skin:Modern Modern]
|  | –
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Modern GPL-2.0+]
|  | A blue/gray theme with sidebar and top bar. Derived from MonoBook
|  | River Tarnell and others
|-
|  | [https://www.mediawiki.org/wiki/Skin:MonoBook MonoBook]
|  | –
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/MonoBook GPL-2.0+]
|  | The classic MediaWiki skin since 2004, named after the black-and-white photo of a book in the page background
|  | Gabriel Wicke and others
|-
|  | [https://www.mediawiki.org/wiki/Skin:Vector Vector]
|  | –
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Vector GPL-2.0+]
|  | Modern version of MonoBook with fresh look and many usability improvements
|  | Trevor Parscal, Roan Kattouw and others


function extractExtensionNamesFromYaml($filePath) {
    $yamlContent = file_get_contents($filePath);
    $extensions = yaml_parse($yamlContent);
    $names = [];
    if (isset($extensions['list'])) {
        foreach ($extensions['list'] as $extension) {
            if (isset($extension['name'])) {
                $names[] = $extension['name'];
            }
        }
    }
    return $names;
}


|-
function extractExtensionNamesFromTxt($filePath) {
|}
    $lines = file($filePath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
    $names = [];
    foreach ($lines as $line) {
        $line = trim($line);
        // Skip comments and empty lines
        if ($line === '' || strpos($line, '#') === 0) {
            continue;
        }
        $names[] = $line;
    }
    return $names;
}


=== Installed extensions ===
// Path to files
$bundledFile = '/opt/meza/src/scripts/bundled_extensions.txt';
$coreYaml = '/opt/meza/config/MezaCoreExtensions.yml';


{| class="wikitable sortable"
$bundled = extractExtensionNamesFromTxt($bundledFile);
|-
$core = extractExtensionNamesFromYaml($coreYaml);
| colspan="5"  align=center| '''Special pages'''
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
| align=center| '''Extension'''
| align=center| '''Version'''
| align=center| '''License'''
| align=center| '''Description'''
| align=center| '''Authors'''
|-
|  | [http://www.debtcompliance.com/ DcsGroupAdmin]
|  | 1.2.0, 2015-06-26
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | A special page for managing DCS groups and access
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsJobAdmin]
|  | 4.0.0, 2017-06-28
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | A special page for managing DCS jobs that run in the background
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsSearch]
|  | 2.4.2, 2017-01-27
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | Renders the search dropdown with favourite terms list, and allows users to track the pages they've visited from search results of their favorite terms
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsUploadedFiles]
|  | 1.3.0, 2017-07-08
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | A special page for listing the files uploaded to loan pages
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [https://www.mediawiki.org/wiki/Extension:EmailPage EmailPage]
|  | 2.4.4, 2017-04-26
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/EmailPage GPL-2.0+]
|  | Send rendered HTML page to an e-mail address or list of addresses using&nbsp;[http://phpmailer.sourceforge.net/ phpmailer]
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.organicdesign.co.nz/jQueryUpload jQueryUpload]
|  | 1.4.5, 2016-08-28
|  | [https://www.gnu.org/licenses/gpl-2.0.html GNU ][https://www.gnu.org/licenses/gpl-2.0.html General Public Licence 2.0]&nbsp;or later
|  | Allows files to be uploaded to the wiki or to specific pages using the jQueryFileUpload module
|  | [http://www.organicdesign.co.nz/aran Aran ][http://www.organicdesign.co.nz/aran Dunkley]&nbsp;and&nbsp;[http://blueimp.net/ Sebastian Tschan]
|-
|  | [https://www.mediawiki.org/wiki/Extension:Nuke Nuke]
|  | 1.2.0
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Nuke GPL-2.0+]
|  | Gives administrators the ability to&nbsp;[https://clienttest.dm.dcstemporary.com/Special:Nuke mass delete]&nbsp;pages
|  | Brion Vibber and Jeroen De Dauw
|-
| colspan="5" |
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
| colspan="5"  align=center| '''Parser hooks'''
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
| align=center| '''Extension'''
| align=center| '''Version'''
| align=center| '''License'''
| align=center| '''Description'''
| align=center| '''Authors'''
|-
|  | [http://www.debtcompliance.com/ DcsComplianceChecklist]
|  | 1.24.2, 2016-05-10
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | Creates the #ComplianceChecklist parser-function
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.organicdesign.co.nz/Extension:ExtraMagic.php ExtraMagic]
|  | 3.8.0, 2015-010-04
|  | [https://www.gnu.org/licenses/gpl-2.0.html GNU General Public Licence 2.0]&nbsp;or later
|  | Adds useful variables and parser functions
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [https://www.mediawiki.org/wiki/Extension:ParserFunctions ParserFunctions]
|  | 1.6.0
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/ParserFunctions GPL-2.0]
|  | Enhance parser with logical functions
|  | Tim Starling, Robert Rohde, Ross McClure and Juraj Simlovic
|-
|  | [http://www.mediawiki.org/wiki/Extension:TreeAndMenu PdfBook]
|  | 1.5.2, 2017-05-15
|  | [https://www.gnu.org/licenses/gpl-2.0.html GNU General Public Licence 2.0]&nbsp;or later
|  | pdfbook-desc
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [https://www.mediawiki.org/wiki/Extension:Pipe_Escape Pipe Escape]
|  | 2.0.0.&nbsp;[https://phabricator.wikimedia.org/r/revision/mediawiki/extensions/PipeEscape;a36d2d6969fa0b86e1ac293b34b6b77f2df26576 (a36d2d6)]23:54, 4 May 2016
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Pipe_Escape GPL-2.0+]
|  | Parser function&nbsp;<span style="background-color:#f9f9f9;"><tt><nowiki>#!</nowiki></tt></span>&nbsp;for when you want a pipe character to be just a pipe character
|  | David M. Sledge and Purodha Blissenbach
|-
|  | [http://www.mediawiki.org/wiki/Extension:TreeAndMenu TreeAndMenu]
|  | 4.2.1, 2016-05-24
|  | [https://www.gnu.org/licenses/gpl-2.0.html GNU General Public Licence 2.0]&nbsp;or later
|  | Adds&nbsp;<span style="background-color:#f9f9f9;"><tt><nowiki>#tree</nowiki></tt></span>&nbsp;and&nbsp;<span style="background-color:#f9f9f9;"><tt><nowiki>#menu</nowiki></tt></span>&nbsp;parser functions which contain bullet-lists to be rendered as collapsible treeviews or dropdown menus. The treeviews use the&nbsp;[http://wwwendt.de/tech/fancytree FancyTree]&nbsp;JavaScript tree menu, and the dropdown menus use&nbsp;[http://www.htmldog.com/articles/suckerfish/dropdowns/ Son of Suckerfish]
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
| colspan="5" |
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
| colspan="5"  align=center| '''Other'''
|- style="background-color:#f2f2f2;border:0.05pt solid #aaaaaa;padding:0.0194in;"
| align=center| '''Extension'''
| align=center| '''Version'''
| align=center| '''License'''
| align=center| '''Description'''
| align=center| '''Authors'''
|-
|  | [http://www.mediawiki.org/wiki/Extension:AjaxComments AjaxComments]
|  | 2.7.2, 2017-03-08
|  | [https://www.gnu.org/licenses/gpl-2.0.html GNU General Public Licence 2.0]&nbsp;or later
|  | Add comments to the end of the page that can be edited, deleted or replied to instead of using the talk pages
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [https://www.mediawiki.org/wiki/Extension:CirrusSearch CirrusSearch]
|  | 0.2&nbsp;[https://phabricator.wikimedia.org/r/revision/mediawiki/extensions/CirrusSearch;dcb0cf934a76a326aee728166e517fd1b74422e2 (dcb0cf9)]21:22, 4 May 2016
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/CirrusSearch GPL-2.0+]
|  | Elasticsearch-powered search for MediaWiki
|  | Nik Everett, Chad Horohoe, Erik Bernhardson and&nbsp;[https://clienttest.dm.dcstemporary.com/Special:Version/Credits/CirrusSearch others]
|-
|  | [http://www.debtcompliance.com/ DcsAmmendments]
|  | 1.1.0, 2018-01-20
|  | [http://www.debtcompliance.com/ Copyright © 2015-2018 Debt Compliance Services]
|  | Adds ammendments section to DCS loan pages
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsBaskets]
|  | 1.4.2, 2016-08-08
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | Allows fields in Baskets table to be updated via AJAX
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsCommon]
|  | 5.1.1, 2018-01-25
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | DCS common functionality
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsEmailLink]
|  | 0.0.1, 2017-07-12
|  | [http://www.debtcompliance.com/ Copyright © 2017-2018 Debt Compliance Services]
|  | Adds a new "EmailLink" action which can match a title case-insensitvely
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsExportTerms]
|  | 2.0.1, 2017-03-20
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | Add an export action to the that allows terms to be downloaded in CSV format
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsFindTitle]
|  | 1.1.0, 2017-01-30
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | Adds a new "find" action which can match a title case-insensitvely
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsLoanPages]
|  | 2.5.2, 2016-05-17
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | Adds breadcrumbs, comments and backlinks to DCS loan pages
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsNamespaces]
|  | 2.5.0, 2015-12-12
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | A special page for administering loan documents in their own namepsaces
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsNuke]
|  | 1.2.2, 2017-01-19
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | Gives administrators the ability to mass delete pages
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsSection2]
|  | 2.0.0, 2018-01-12
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | DCS article section handling extension - new version 2 with individual sub-section article support removed
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsSingleSignOn]
|  | 5.1.5, 2017-07-14
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | Allows the Rails application to manage the login, logout and session expiry for the DCS wikis
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsTitle]
|  | 1.0.0, 2017-02-13
|  | [http://www.debtcompliance.com/ Copyright © 2017-2018 Debt Compliance Services]
|  | Creates a new DCS-specific Title class that includes TOC info such as sortkey, next and prev
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsUserDisable]
|  | 1.3.0, 2015-06-26
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | Adds acount enable/disable links to the user list
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [http://www.debtcompliance.com/ DcsWatchComments]
|  | 1.4, 2017-03-09
|  | [http://www.debtcompliance.com/ Copyright © 2007-2018 Debt Compliance Services]
|  | Removes default watchlist functionality and makes all loan comment articles auto-watched
|  | [http://www.organicdesign.co.nz/aran Aran Dunkley]
|-
|  | [https://www.mediawiki.org/wiki/Extension:Elastica Elastica]
|  | 1.3.0.0&nbsp;[https://phabricator.wikimedia.org/r/revision/mediawiki/extensions/Elastica;4607acf9efef0ad5cc236352ada9afe2f1dfdc2b (4607acf)]22:52, 4 May 2016
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/Elastica GPL-2.0+]
|  | Base&nbsp;[http://www.elasticsearch.org/ Elasticsearch]&nbsp;functionality for other extensions by providing&nbsp;[http://elastica.io/ Elastica]&nbsp;library
|  | Nik Everett and Chad Horohoe
|-
|  | [https://www.mediawiki.org/wiki/Extension:WikiEditor WikiEditor]
|  | 0.5.0
|  | [https://clienttest.dm.dcstemporary.com/Special:Version/License/WikiEditor GPL-2.0+]
|  | Provides an extendable wikitext editing interface and many feature-providing modules
|  | Derk-Jan Hartman, Trevor Parscal, Roan Kattouw, Nimish Gautam and Adam Miller
|-
|}


== References ==
// Find bundled extensions not in core
<references />
$toAdd = array_diff($bundled, $core);


[[Category:Remove table formatting]]
// Output results
[[Category:Replace with class wikitable]]
if (count($toAdd) === 0) {
    echo "All bundled extensions are already in core.\n";
} else {
    echo "Extensions to add to core (" . count($toAdd) . "):\n";
    foreach ($toAdd as $name) {
        echo "- $name\n";
    }
}
</syntaxhighlight>
[[Category:MediaWiki]]
[[Category:Tools]]
[[Category:Scripting]]
[[Category:Meza]]

Latest revision as of 18:00, 12 September 2025

This is just a one-off example of how we compiled a list of 'missing' extensions for Meza

Given a list of 'Bundled' extensions to MediaWiki

# This is a list of bundled extensions from 
# https://www.mediawiki.org/wiki/Bundled_extensions_and_skins
AbuseFilter
CategoryTree
CheckUser
Cite
CiteThisPage
CodeEditor
ConfirmEdit
DiscussionTools
Echo
Gadgets
ImageMap
InputBox
Linter
LoginNotify
Math
MultimediaViewer
Nuke
OATHAuth
PageImages
ParserFunctions
PdfHandler
Poem
ReplaceText
Scribunto
SecureLinkFixer
SpamBlacklist
SyntaxHighlight
TemplateData
TemplateStyles
TextExtracts
Thanks
TitleBlacklist
VisualEditor
WikiEditor

And given a Yaml file that contains a list of our own project extensions.

We generated a list of the missing ones

<?php
// Script to find extensions in bundled_extensions.txt that are NOT in MezaCoreExtensions.yml

function extractExtensionNamesFromYaml($filePath) {
    $yamlContent = file_get_contents($filePath);
    $extensions = yaml_parse($yamlContent);
    $names = [];
    if (isset($extensions['list'])) {
        foreach ($extensions['list'] as $extension) {
            if (isset($extension['name'])) {
                $names[] = $extension['name'];
            }
        }
    }
    return $names;
}

function extractExtensionNamesFromTxt($filePath) {
    $lines = file($filePath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
    $names = [];
    foreach ($lines as $line) {
        $line = trim($line);
        // Skip comments and empty lines
        if ($line === '' || strpos($line, '#') === 0) {
            continue;
        }
        $names[] = $line;
    }
    return $names;
}

// Path to files
$bundledFile = '/opt/meza/src/scripts/bundled_extensions.txt';
$coreYaml = '/opt/meza/config/MezaCoreExtensions.yml';

$bundled = extractExtensionNamesFromTxt($bundledFile);
$core = extractExtensionNamesFromYaml($coreYaml);

// Find bundled extensions not in core
$toAdd = array_diff($bundled, $core);

// Output results
if (count($toAdd) === 0) {
    echo "All bundled extensions are already in core.\n";
} else {
    echo "Extensions to add to core (" . count($toAdd) . "):\n";
    foreach ($toAdd as $name) {
        echo "- $name\n";
    }
}