vome-core 0.1.53 → 0.1.55

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.
Files changed (78) hide show
  1. package/dist/admin/config/plugin-dev.js +1 -1
  2. package/dist/admin/crud/components/vm-date-calendar-panel.vue +96 -83
  3. package/dist/admin/crud/components/vm-date-picker.vue +21 -17
  4. package/dist/admin/crud/components/vm-date-range.vue +8 -11
  5. package/dist/admin/crud/components/vm-datetime-field.vue +20 -37
  6. package/dist/admin/crud/components/vm-richtext-extensions.js +1 -1
  7. package/dist/admin/crud/config.d.ts +0 -1
  8. package/dist/admin/crud/config.js +1 -1
  9. package/dist/admin/crud/confirm.js +1 -1
  10. package/dist/admin/crud/dict.js +1 -1
  11. package/dist/admin/crud/key.d.ts +0 -2
  12. package/dist/admin/crud/key.js +1 -1
  13. package/dist/admin/crud/plugins.js +1 -1
  14. package/dist/admin/crud/registry.d.ts +0 -2
  15. package/dist/admin/crud/registry.js +0 -2
  16. package/dist/admin/crud/span.js +1 -1
  17. package/dist/admin/crud/style.d.ts +2 -2
  18. package/dist/admin/crud/style.js +1 -1
  19. package/dist/admin/crud/validate.d.ts +0 -10
  20. package/dist/admin/crud/validate.js +1 -1
  21. package/dist/admin/crud/vm-crud.vue +1 -9
  22. package/dist/admin/directives/perm.js +1 -1
  23. package/dist/admin/hooks/useUpload.js +1 -1
  24. package/dist/admin/lib/browser.js +1 -1
  25. package/dist/admin/lib/cn.js +1 -1
  26. package/dist/admin/lib/dialog-float.js +1 -1
  27. package/dist/admin/lib/export-excel.d.ts +0 -2
  28. package/dist/admin/lib/export-excel.js +1 -1
  29. package/dist/admin/lib/file-preview.d.ts +2 -4
  30. package/dist/admin/lib/file-preview.js +11 -11
  31. package/dist/admin/lib/import-excel.d.ts +3 -2
  32. package/dist/admin/lib/import-excel.js +1 -1
  33. package/dist/admin/lib/json.js +1 -1
  34. package/dist/admin/lib/menu.js +1 -1
  35. package/dist/admin/lib/tree.js +1 -1
  36. package/dist/admin/lib/upload.d.ts +0 -1
  37. package/dist/admin/lib/upload.js +1 -1
  38. package/dist/admin/lib/video-frame.d.ts +0 -3
  39. package/dist/admin/lib/video-frame.js +1 -1
  40. package/dist/agent/constants.d.ts +0 -7
  41. package/dist/agent/index.d.ts +0 -1
  42. package/dist/agent/index.js +2 -25
  43. package/dist/agent/protocol.d.ts +0 -2
  44. package/dist/ai/adapters/auth-headers.d.ts +2 -2
  45. package/dist/ai/adapters/openai-compatible.d.ts +1 -2
  46. package/dist/ai/index.js +0 -7
  47. package/dist/ai/transport.d.ts +0 -6
  48. package/dist/ai/types.d.ts +0 -2
  49. package/dist/client/vite-admin.d.ts +0 -5
  50. package/dist/client/vite-admin.js +0 -6
  51. package/dist/client/vite-plugin-eps.d.ts +0 -23
  52. package/dist/client/vite-plugin-eps.js +1 -1
  53. package/dist/comm/daily-log.d.ts +0 -2
  54. package/dist/comm/format-time.d.ts +0 -1
  55. package/dist/core/context/index.d.ts +0 -8
  56. package/dist/ext/load-plugin.d.ts +0 -4
  57. package/dist/index.js +1 -1
  58. package/dist/ioc/metadata.d.ts +0 -1
  59. package/dist/orm/column-comments.d.ts +2 -1
  60. package/dist/orm/field-ref.d.ts +2 -1
  61. package/dist/orm/import-excel.d.ts +2 -6
  62. package/dist/orm/join-tables.d.ts +0 -3
  63. package/dist/server/index.js +1 -1
  64. package/dist/shared/datetime-picker.d.ts +5 -22
  65. package/dist/shared/datetime-picker.js +1 -1
  66. package/dist/shared/excel.js +1 -1
  67. package/dist/shared/index.d.ts +1 -1
  68. package/dist/shared/index.js +1 -1
  69. package/dist/shared/locale-json.js +1 -1
  70. package/dist/shared/tree.js +1 -1
  71. package/dist/typings/routing/crud.d.ts +1 -1
  72. package/package.json +1 -1
  73. package/typings/admin/comm/crud.d.ts +1 -1
  74. package/typings/admin/comm/crud.ts +1 -3
  75. package/typings/routing/crud.ts +1 -3
  76. package/dist/admin/crud/mitt.d.ts +0 -10
  77. package/dist/admin/crud/mitt.js +0 -1
  78. package/dist/agent/types.d.ts +0 -14
@@ -1,27 +1,5 @@
1
1
  import type { Plugin } from 'vite';
2
2
  export type EpsSide = 'admin' | 'app';
3
- type EpsApi = {
4
- method?: string;
5
- path?: string;
6
- summary?: string;
7
- perms?: string[];
8
- };
9
- type EpsColumn = {
10
- propertyName?: string;
11
- type?: string;
12
- comment?: string;
13
- nullable?: boolean;
14
- };
15
- type EpsEntity = {
16
- module?: string;
17
- prefix?: string;
18
- name?: string;
19
- api?: EpsApi[];
20
- columns?: EpsColumn[];
21
- pageColumns?: EpsColumn[];
22
- };
23
- /** 生成 declare namespace Eps(按 side 剥前缀) */
24
- export declare function buildEpsDts(map: Record<string, EpsEntity[]>, side: EpsSide): string;
25
3
  export type EpsVitePluginOptions = {
26
4
  /** 生成哪一侧的 d.ts;both 时 d.ts 仍以 dtsSide 为准,json 含双侧 */
27
5
  side?: EpsSide | 'both';
@@ -40,4 +18,3 @@ export type EpsVitePluginOptions = {
40
18
  * web / uniapp 用 side:'app';admin 可用 side:'both'
41
19
  */
42
20
  export declare function createEpsVitePlugin(options: EpsVitePluginOptions): Plugin;
43
- export {};
@@ -20,7 +20,7 @@ function tsType(col) {
20
20
  return "any";
21
21
  return "string";
22
22
  }
23
- export function buildEpsDts(map, side) {
23
+ function buildEpsDts(map, side) {
24
24
  const list = Object.values(map).flat().filter((e) => e.prefix);
25
25
  const entityBlocks = [];
26
26
  const serviceBlocks = [];
@@ -1,6 +1,4 @@
1
1
  import { Writable } from 'node:stream';
2
- /** 删除超过保留天数的日志文件(按文件名日期判断) */
3
- export declare function purgeOldLogs(dir: string, maxDays: number): void;
4
2
  /**
5
3
  * 按自然日写入日志:logging/2026-05-03.log
6
4
  * 跨日自动切换文件,启动时清理过期文件
@@ -2,7 +2,6 @@
2
2
  * API 时间格式:YYYY-MM-DD HH:mm:ss(Asia/Shanghai)
3
3
  * 仅在响应序列化时转换,不改库内 timestamptz。
4
4
  */
5
- export declare function formatDateTime(value: Date | string | number): string;
6
5
  /**
7
6
  * 递归把 Date / 时间字段 ISO 串转成可读时间。
8
7
  * 不解析 JSON 文本列(params/detail 等仍是字符串),避免误改内容。
@@ -1,19 +1,11 @@
1
1
  import type { ContextData } from '../../../typings/context/data';
2
2
  export type { ContextData };
3
- /** 从请求头 / 连接解析客户端 IP(不丢弃本机与内网) */
4
- export declare function resolveClientIp(request: Request, server?: {
5
- requestIP?: (request: Request) => {
6
- address?: string;
7
- } | null;
8
- } | null): string;
9
3
  /** @internal ALS 插件:从 Request 初始化上下文 */
10
4
  export declare function initContextFromRequest(request: Request, server?: {
11
5
  requestIP?: (request: Request) => {
12
6
  address?: string;
13
7
  } | null;
14
8
  } | null): ContextData;
15
- /** @internal ALS 插件:在指定上下文中执行 */
16
- export declare function enterContext<T>(ctx: ContextData, fn: () => T): T;
17
9
  /** @internal 进入请求上下文(onRequest 用,覆盖后续异步链) */
18
10
  export declare function enterContextWith(ctx: ContextData): void;
19
11
  declare function getContext(): ContextData | undefined;
@@ -3,10 +3,6 @@ import type { ModuleHandler } from '../../typings/ext/module';
3
3
  type PluginCtor = new () => {
4
4
  init: (info: PluginInfo, ctx?: unknown, app?: unknown, services?: Record<string, unknown>) => Promise<void>;
5
5
  };
6
- /** 混淆后 `vome-plugin-runtime` 可能进字符串数组,字面量替换失效;运行时拦截 require */
7
- export declare function pluginRequire(id: string): any;
8
- /** 剥 ESM、替换 CJS external(仅字符串内容 / 遗留 JSON 插件需要) */
9
- export declare function normalizePluginScript(content: string): string;
10
6
  /**
11
7
  * 从落盘 server/index.js 加载。
12
8
  * 读入后走内存编译,禁止 createRequire 落盘路径: