@adminforth/mcp 1.0.3 → 1.0.4
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.
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
>
|
|
37
37
|
<template #cell:name="{ item }">
|
|
38
38
|
<p class="font-medium text-gray-900 dark:text-white">{{ item.name }}</p>
|
|
39
|
-
<p class="mt-0.5 text-xs text-gray-500 dark:text-gray-400">{{
|
|
39
|
+
<p class="mt-0.5 text-xs text-gray-500 dark:text-gray-400">{{ formatDateTime(item.createdAt) }}</p>
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
42
|
<template #cell:lastUsedByAgent="{ item }">
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</template>
|
|
49
49
|
|
|
50
50
|
<template #cell:lastUsedAt="{ item }">
|
|
51
|
-
{{ item.lastUsedAt ?
|
|
51
|
+
{{ item.lastUsedAt ? formatDateTime(item.lastUsedAt) : $t('Never') }}
|
|
52
52
|
</template>
|
|
53
53
|
|
|
54
54
|
<template #cell:actions="{ item }">
|
|
@@ -97,7 +97,7 @@ import { computed, onMounted, ref } from 'vue';
|
|
|
97
97
|
import { useI18n } from 'vue-i18n';
|
|
98
98
|
import { Button, Dialog, Input, Table } from '@/afcl';
|
|
99
99
|
import adminforth from '@/adminforth';
|
|
100
|
-
import { callAdminForthApi } from '@/utils';
|
|
100
|
+
import { callAdminForthApi, formatDateTime } from '@/utils';
|
|
101
101
|
import claudeCodeIcon from './icons/claude-code.svg';
|
|
102
102
|
import codexIcon from './icons/codex.svg';
|
|
103
103
|
import geminiIcon from './icons/gemini.svg';
|
|
@@ -238,10 +238,6 @@ function describeAgent(agent: Agent) {
|
|
|
238
238
|
return { label: agent.ver ? `${name} v${agent.ver}` : name, icon };
|
|
239
239
|
}
|
|
240
240
|
|
|
241
|
-
function formatDate(value: string) {
|
|
242
|
-
return new Date(value).toLocaleString();
|
|
243
|
-
}
|
|
244
|
-
|
|
245
241
|
async function copy(value: string, message: string) {
|
|
246
242
|
await navigator.clipboard.writeText(value);
|
|
247
243
|
adminforth.alert({ message, variant: 'success' });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><linearGradient id="gemini" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop stop-color="#4285F4"/><stop offset=".52" stop-color="#9B72CB"/><stop offset="1" stop-color="#D96570"/></linearGradient></defs><path fill="url(#gemini)" d="M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81"/></svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Expose AdminForth APIs as an authenticated MCP server",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typescript": "^5.7.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"adminforth": "^3.
|
|
50
|
+
"adminforth": "^3.22.0"
|
|
51
51
|
},
|
|
52
52
|
"release": {
|
|
53
53
|
"plugins": [
|