@pi-unipi/web-api 0.1.4 → 0.1.5
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/package.json +1 -1
- package/src/commands.ts +2 -4
package/package.json
CHANGED
package/src/commands.ts
CHANGED
|
@@ -20,8 +20,7 @@ export const WEB_COMMANDS = {
|
|
|
20
20
|
*/
|
|
21
21
|
export function registerWebCommands(pi: ExtensionAPI): void {
|
|
22
22
|
// --- /unipi:web-settings command ---
|
|
23
|
-
pi.registerCommand({
|
|
24
|
-
name: `${UNIPI_PREFIX}${WEB_COMMANDS.SETTINGS}`,
|
|
23
|
+
pi.registerCommand(`${UNIPI_PREFIX}${WEB_COMMANDS.SETTINGS}`, {
|
|
25
24
|
description: "Configure web API providers and API keys",
|
|
26
25
|
handler: async (_args, _ctx) => {
|
|
27
26
|
await showSettingsDialog(pi);
|
|
@@ -29,8 +28,7 @@ export function registerWebCommands(pi: ExtensionAPI): void {
|
|
|
29
28
|
});
|
|
30
29
|
|
|
31
30
|
// --- /unipi:web-cache-clear command ---
|
|
32
|
-
pi.registerCommand({
|
|
33
|
-
name: `${UNIPI_PREFIX}${WEB_COMMANDS.CACHE_CLEAR}`,
|
|
31
|
+
pi.registerCommand(`${UNIPI_PREFIX}${WEB_COMMANDS.CACHE_CLEAR}`, {
|
|
34
32
|
description: "Clear all cached web content",
|
|
35
33
|
handler: async (_args, _ctx) => {
|
|
36
34
|
const stats = webCache.getStats();
|