- Added comprehensive AI Assistant system (aiassist/ directory): * Vector search and embedding capabilities * Typebot proxy integration * Elastic search functionality * Message classification and chat history * MCP proxy for external integrations - Implemented Court Status API (GetCourtStatus.php): * Real-time court document status checking * Integration with external court systems * Comprehensive error handling and logging - Enhanced S3 integration: * Improved file backup system with metadata * Batch processing capabilities * Enhanced error logging and recovery * Copy operations with URL fixing - Added Telegram contact creation API - Improved error logging across all modules - Enhanced callback system for AI responses - Extensive backup file storage with timestamps - Updated documentation and README files - File storage improvements: * Thousands of backup files with proper metadata * Fix operations for broken file references * Project-specific backup and recovery systems * Comprehensive file integrity checking Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
53 lines
1.6 KiB
JavaScript
53 lines
1.6 KiB
JavaScript
#!/usr/bin/env node
|
|
|
|
var fs = require("fs"), child = require("child_process");
|
|
|
|
var number, bumpOnly;
|
|
|
|
for (var i = 2; i < process.argv.length; i++) {
|
|
if (process.argv[i] == "-bump") bumpOnly = true;
|
|
else if (/^\d+\.\d+\.\d+$/.test(process.argv[i])) number = process.argv[i];
|
|
else {
|
|
console.log("Bogus command line arg: " + process.argv[i]);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
if (!number) {
|
|
console.log("Must give a version");
|
|
process.exit(1);
|
|
}
|
|
|
|
function rewrite(file, f) {
|
|
fs.writeFileSync(file, f(fs.readFileSync(file, "utf8")), "utf8");
|
|
}
|
|
|
|
rewrite("lib/codemirror.js", function (lib) {
|
|
return lib.replace(/CodeMirror\.version = "\d+\.\d+\.\d+"/,
|
|
"CodeMirror.version = \"" + number + "\"");
|
|
});
|
|
|
|
function rewriteJSON(pack) {
|
|
return pack.replace(/"version":"\d+\.\d+\.\d+"/, "\"version\":\"" + number + "\"");
|
|
}
|
|
|
|
rewrite("package.json", rewriteJSON);
|
|
rewrite("doc/manual.html", function (manual) {
|
|
return manual.replace(/>version \d+\.\d+\.\d+<\/span>/, ">version " + number + "</span>");
|
|
});
|
|
|
|
if (bumpOnly) process.exit(0);
|
|
|
|
child.exec("bash bin/authors.sh", function () {
|
|
});
|
|
|
|
rewrite("doc/compress.html", function (cmp) {
|
|
return cmp.replace(/<option value="http:\/\/codemirror.net\/">HEAD<\/option>/,
|
|
"<option value=\"http://codemirror.net/\">HEAD</option>\n <option value=\"http://marijnhaverbeke.nl/git/codemirror?a=blob_plain;hb=" + number + ";f=\">" + number + "</option>");
|
|
});
|
|
|
|
rewrite("index.html", function (index) {
|
|
return index.replace(/\.zip">\d+\.\d+\.\d+<\/a>/,
|
|
".zip\">" + number + "</a>");
|
|
});
|