@lvnt/release-radar 1.9.7 → 1.9.9
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/config/downloads.json +12 -8
- package/dist/index.js +30 -0
- package/dist/storage.d.ts +2 -0
- package/dist/storage.js +16 -0
- package/package.json +1 -1
package/config/downloads.json
CHANGED
|
@@ -118,37 +118,41 @@
|
|
|
118
118
|
"Python": {
|
|
119
119
|
"displayName": "Python Extension",
|
|
120
120
|
"downloadUrl": "{{MIRROR_URL}}",
|
|
121
|
-
"filename": "python-{{VERSION}}.vsix",
|
|
121
|
+
"filename": "python-{{VERSION}}-win32-x64.vsix",
|
|
122
122
|
"mirror": {
|
|
123
123
|
"sourceUrl": "marketplace-api",
|
|
124
|
-
"extensionId": "ms-python.python"
|
|
124
|
+
"extensionId": "ms-python.python",
|
|
125
|
+
"targetPlatform": "win32-x64"
|
|
125
126
|
}
|
|
126
127
|
},
|
|
127
128
|
"Python Debugger": {
|
|
128
129
|
"displayName": "Python Debugger",
|
|
129
130
|
"downloadUrl": "{{MIRROR_URL}}",
|
|
130
|
-
"filename": "debugpy-{{VERSION}}.vsix",
|
|
131
|
+
"filename": "debugpy-{{VERSION}}-win32-x64.vsix",
|
|
131
132
|
"mirror": {
|
|
132
133
|
"sourceUrl": "marketplace-api",
|
|
133
|
-
"extensionId": "ms-python.debugpy"
|
|
134
|
+
"extensionId": "ms-python.debugpy",
|
|
135
|
+
"targetPlatform": "win32-x64"
|
|
134
136
|
}
|
|
135
137
|
},
|
|
136
138
|
"Python Environments": {
|
|
137
139
|
"displayName": "Python Environments",
|
|
138
140
|
"downloadUrl": "{{MIRROR_URL}}",
|
|
139
|
-
"filename": "vscode-python-envs-{{VERSION}}.vsix",
|
|
141
|
+
"filename": "vscode-python-envs-{{VERSION}}-win32-x64.vsix",
|
|
140
142
|
"mirror": {
|
|
141
143
|
"sourceUrl": "marketplace-api",
|
|
142
|
-
"extensionId": "ms-python.vscode-python-envs"
|
|
144
|
+
"extensionId": "ms-python.vscode-python-envs",
|
|
145
|
+
"targetPlatform": "win32-x64"
|
|
143
146
|
}
|
|
144
147
|
},
|
|
145
148
|
"Pylance": {
|
|
146
149
|
"displayName": "Pylance",
|
|
147
150
|
"downloadUrl": "{{MIRROR_URL}}",
|
|
148
|
-
"filename": "vscode-pylance-{{VERSION}}.vsix",
|
|
151
|
+
"filename": "vscode-pylance-{{VERSION}}-win32-x64.vsix",
|
|
149
152
|
"mirror": {
|
|
150
153
|
"sourceUrl": "marketplace-api",
|
|
151
|
-
"extensionId": "ms-python.vscode-pylance"
|
|
154
|
+
"extensionId": "ms-python.vscode-pylance",
|
|
155
|
+
"targetPlatform": "win32-x64"
|
|
152
156
|
}
|
|
153
157
|
},
|
|
154
158
|
"isort": {
|
package/dist/index.js
CHANGED
|
@@ -494,6 +494,36 @@ bot.onText(/\/mirror(?:\s+(.+))?/, async (msg, match) => {
|
|
|
494
494
|
await bot.sendMessage(validatedChatId, `❌ Mirror failed: ${result.error}`);
|
|
495
495
|
}
|
|
496
496
|
});
|
|
497
|
+
bot.onText(/\/resetversion(?:\s+(.+))?/, async (msg, match) => {
|
|
498
|
+
if (msg.chat.id.toString() !== validatedChatId)
|
|
499
|
+
return;
|
|
500
|
+
const toolName = match?.[1]?.trim();
|
|
501
|
+
if (!toolName) {
|
|
502
|
+
await bot.sendMessage(validatedChatId, 'Usage: /resetversion <toolname>\nExample: /resetversion Python\n\nThis clears the stored version so the next /check will re-fetch it.');
|
|
503
|
+
return;
|
|
504
|
+
}
|
|
505
|
+
const deleted = storage.deleteVersion(toolName);
|
|
506
|
+
if (deleted) {
|
|
507
|
+
await bot.sendMessage(validatedChatId, `✅ Reset "${toolName}". Run /check to fetch the current version.`);
|
|
508
|
+
}
|
|
509
|
+
else {
|
|
510
|
+
await bot.sendMessage(validatedChatId, `Tool "${toolName}" not found in storage.`);
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
bot.onText(/\/resetall/, async (msg) => {
|
|
514
|
+
if (msg.chat.id.toString() !== validatedChatId)
|
|
515
|
+
return;
|
|
516
|
+
const versions = storage.getAllVersions();
|
|
517
|
+
const toolNames = Object.keys(versions);
|
|
518
|
+
if (toolNames.length === 0) {
|
|
519
|
+
await bot.sendMessage(validatedChatId, 'No versions stored.');
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
522
|
+
for (const toolName of toolNames) {
|
|
523
|
+
storage.deleteVersion(toolName);
|
|
524
|
+
}
|
|
525
|
+
await bot.sendMessage(validatedChatId, `✅ Reset ${toolNames.length} tools. Run /check to re-fetch all versions.`);
|
|
526
|
+
});
|
|
497
527
|
// Start scheduled checks
|
|
498
528
|
scheduleChecks();
|
|
499
529
|
const mode = configData.scheduleMode || 'interval';
|
package/dist/storage.d.ts
CHANGED
|
@@ -15,4 +15,6 @@ export declare class Storage {
|
|
|
15
15
|
getMirrorUrl(toolName: string): string | null;
|
|
16
16
|
setMirrorUrl(toolName: string, url: string): void;
|
|
17
17
|
getAllMirrorUrls(): Record<string, string>;
|
|
18
|
+
deleteVersion(toolName: string): boolean;
|
|
19
|
+
getAllVersions(): Record<string, string>;
|
|
18
20
|
}
|
package/dist/storage.js
CHANGED
|
@@ -53,4 +53,20 @@ export class Storage {
|
|
|
53
53
|
const state = this.ensureLoaded();
|
|
54
54
|
return state.mirrorUrls ?? {};
|
|
55
55
|
}
|
|
56
|
+
deleteVersion(toolName) {
|
|
57
|
+
const state = this.ensureLoaded();
|
|
58
|
+
if (toolName in state.versions) {
|
|
59
|
+
delete state.versions[toolName];
|
|
60
|
+
if (state.mirrorUrls && toolName in state.mirrorUrls) {
|
|
61
|
+
delete state.mirrorUrls[toolName];
|
|
62
|
+
}
|
|
63
|
+
this.save(state);
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
getAllVersions() {
|
|
69
|
+
const state = this.ensureLoaded();
|
|
70
|
+
return state.versions;
|
|
71
|
+
}
|
|
56
72
|
}
|