@qimen-lab/core 0.1.1 → 0.1.2

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 (55) hide show
  1. package/dist/cache/BaseCacheProvider.esm.js +1 -1
  2. package/dist/cache/CacheFactory.esm.js +1 -1
  3. package/dist/composable/ComposableBase.esm.js +1 -1
  4. package/dist/composable/types/composable.d.ts +1 -1
  5. package/dist/context/RequestContextBuilder.esm.js +1 -1
  6. package/dist/data-processor-abp/index.d.ts +3 -3
  7. package/dist/data-processor-abp/index.esm.js +3 -3
  8. package/dist/data-processor-spring/index.d.ts +3 -3
  9. package/dist/data-processor-spring/index.esm.js +3 -3
  10. package/dist/events/EventBus.d.ts +1 -1
  11. package/dist/events/EventBus.esm.js +1 -1
  12. package/dist/events/EventScope.d.ts +1 -1
  13. package/dist/events/EventScope.esm.js +1 -1
  14. package/dist/events/GlobalEventBus.esm.js +1 -1
  15. package/dist/http/HttpActionRegistrar.d.ts +1 -1
  16. package/dist/http/HttpActionRegistrar.esm.js +1 -1
  17. package/dist/http/HttpClient.d.ts +1 -1
  18. package/dist/http/HttpClient.esm.js +1 -1
  19. package/dist/http/HttpExecutor.d.ts +1 -1
  20. package/dist/http/HttpExecutor.esm.js +1 -1
  21. package/dist/http/StreamClient.d.ts +1 -1
  22. package/dist/http/StreamClient.esm.js +1 -1
  23. package/dist/http/actions/align/DownloadInterceptor.d.ts +1 -1
  24. package/dist/http/actions/exchange/FetchTransport.d.ts +1 -1
  25. package/dist/http/actions/exchange/XhrTransport.d.ts +1 -1
  26. package/dist/http/actions/prepare/CommonParamsEnricher.d.ts +1 -1
  27. package/dist/http/actions/prepare/TokenInjector.d.ts +1 -1
  28. package/dist/http/actions/prepare/UrlBuilder.d.ts +1 -1
  29. package/dist/http/actions/process/DataParser.d.ts +1 -1
  30. package/dist/http/actions/process/ResponseAnalyzer.d.ts +1 -1
  31. package/dist/http/factory.d.ts +1 -1
  32. package/dist/http/types/http-context.d.ts +1 -1
  33. package/dist/http/types/http.d.ts +1 -1
  34. package/dist/mime/MimeTypeRegistrar.d.ts +1 -1
  35. package/dist/mime/MimeTypeRegistrar.esm.js +2 -2
  36. package/dist/pattern/PatternRegistrar.d.ts +1 -1
  37. package/dist/pattern/PatternRegistrar.esm.js +2 -2
  38. package/dist/registry/errors.d.ts +1 -1
  39. package/dist/registry/errors.esm.js +1 -1
  40. package/dist/registry/registrars/errors.d.ts +1 -1
  41. package/dist/schema/SchemaRegistrar.d.ts +1 -1
  42. package/dist/schema/SchemaRegistrar.esm.js +1 -1
  43. package/dist/task/errors/WorkerError.d.ts +1 -1
  44. package/dist/task/errors/WorkerInitializationError.d.ts +1 -1
  45. package/dist/task/hash-task/errors/ResourceNotAcquiredError.d.ts +1 -1
  46. package/dist/task/hash-task/errors/ResourceUnavailableError.d.ts +1 -1
  47. package/dist/task/hash-task/errors/TaskStateError.d.ts +1 -1
  48. package/dist/task/hash-task/hash/HashTaskResources.d.ts +1 -1
  49. package/dist/task/worker/WorkerManagerBase.d.ts +1 -1
  50. package/dist/validation/core/ValidatorRegistrar.d.ts +1 -1
  51. package/dist/validation/index.esm.js +1 -1
  52. package/dist/validation/types/context.d.ts +2 -2
  53. package/dist/validation/types/index.d.ts +2 -2
  54. package/dist/validation/types/validate.d.ts +1 -1
  55. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { string } from '@qimenjs/utils';
1
+ import { string } from '../utils/index.esm.js';
2
2
  export class BaseCacheProvider {
3
3
  constructor() {
4
4
  this.id = '';
@@ -1,4 +1,4 @@
1
- import { Logger } from '@qimenjs/logger';
1
+ import { Logger } from '../logger/index.esm.js';
2
2
  import { MemoryProvider } from './MemoryProvider';
3
3
  export class CacheFactory {
4
4
  static async create(type, _offline = false) {
@@ -1,5 +1,5 @@
1
1
  import { Logger } from '@/logger';
2
- import { debounce as debounceFn } from '@qimenjs/async';
2
+ import { debounce as debounceFn } from '../async/index.esm.js';
3
3
  /**
4
4
  * Symbol 用于存储能力私有状态
5
5
  * @internal
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 可组合能力系统类型定义
3
3
  */
4
- import type { ILogger } from '@qimenjs/logger';
4
+ import type { ILogger } from '../../logger/index.d.ts';
5
5
  /**
6
6
  * 可组合基类接口
7
7
  */
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @module context/RequestContextBuilder
8
8
  */
9
- import { Registry } from '@qimenjs/registry';
9
+ import { Registry } from '../registry/index.esm.js';
10
10
  /**
11
11
  * 请求上下文构建器
12
12
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @qimenjs/data-processor-abp
2
+ * ../data-processor/index.d.ts-abp
3
3
  *
4
4
  * ABP (ASP.NET Boilerplate) 数据处理管道处理器
5
5
  *
@@ -13,10 +13,10 @@
13
13
  * @example
14
14
  * ```ts
15
15
  * // 默认配置(引入即生效)
16
- * import '@qimenjs/data-processor-abp';
16
+ * import '../data-processor/index.d.ts-abp';
17
17
  *
18
18
  * // 自定义配置
19
- * import { registerAbpHandlers } from '@qimenjs/data-processor-abp';
19
+ * import { registerAbpHandlers } from '../data-processor/index.d.ts-abp';
20
20
  * registerAbpHandlers({ tenantId: 'my-tenant', defaultPageSize: 20 });
21
21
  * ```
22
22
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @qimenjs/data-processor-abp
2
+ * ../data-processor/index.esm.js-abp
3
3
  *
4
4
  * ABP (ASP.NET Boilerplate) 数据处理管道处理器
5
5
  *
@@ -13,10 +13,10 @@
13
13
  * @example
14
14
  * ```ts
15
15
  * // 默认配置(引入即生效)
16
- * import '@qimenjs/data-processor-abp';
16
+ * import '../data-processor/index.esm.js-abp';
17
17
  *
18
18
  * // 自定义配置
19
- * import { registerAbpHandlers } from '@qimenjs/data-processor-abp';
19
+ * import { registerAbpHandlers } from '../data-processor/index.esm.js-abp';
20
20
  * registerAbpHandlers({ tenantId: 'my-tenant', defaultPageSize: 20 });
21
21
  * ```
22
22
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @qimenjs/data-processor-spring
2
+ * ../data-processor/index.d.ts-spring
3
3
  *
4
4
  * Spring (Spring Boot / Spring Data) 数据处理管道处理器
5
5
  *
@@ -13,10 +13,10 @@
13
13
  * @example
14
14
  * ```ts
15
15
  * // 默认配置(引入即生效)
16
- * import '@qimenjs/data-processor-spring';
16
+ * import '../data-processor/index.d.ts-spring';
17
17
  *
18
18
  * // 自定义配置
19
- * import { registerSpringHandlers } from '@qimenjs/data-processor-spring';
19
+ * import { registerSpringHandlers } from '../data-processor/index.d.ts-spring';
20
20
  * registerSpringHandlers({ defaultPageSize: 20 });
21
21
  * ```
22
22
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @qimenjs/data-processor-spring
2
+ * ../data-processor/index.esm.js-spring
3
3
  *
4
4
  * Spring (Spring Boot / Spring Data) 数据处理管道处理器
5
5
  *
@@ -13,10 +13,10 @@
13
13
  * @example
14
14
  * ```ts
15
15
  * // 默认配置(引入即生效)
16
- * import '@qimenjs/data-processor-spring';
16
+ * import '../data-processor/index.esm.js-spring';
17
17
  *
18
18
  * // 自定义配置
19
- * import { registerSpringHandlers } from '@qimenjs/data-processor-spring';
19
+ * import { registerSpringHandlers } from '../data-processor/index.esm.js-spring';
20
20
  * registerSpringHandlers({ defaultPageSize: 20 });
21
21
  * ```
22
22
  */
@@ -1,5 +1,5 @@
1
1
  import { BusAction, EventHandler, EventLogAction, IEventScope } from './types';
2
- import { ILogger, LogLevel } from '@qimenjs/logger';
2
+ import { ILogger, LogLevel } from '../logger/index.d.ts';
3
3
  /**
4
4
  * 事件总线 - 用于管理事件订阅、发布和取消订阅的核心类
5
5
  *
@@ -1,5 +1,5 @@
1
1
  import { EventScope } from './EventScope';
2
- import { string } from '@qimenjs/utils';
2
+ import { string } from '../utils/index.esm.js';
3
3
  /**
4
4
  * 事件总线 - 用于管理事件订阅、发布和取消订阅的核心类
5
5
  *
@@ -1,6 +1,6 @@
1
1
  import { EventBus } from './EventBus';
2
2
  import { EventHandler, IEventScope, ScopeLogAction } from './types';
3
- import { ILogger, LogLevel } from '@qimenjs/logger';
3
+ import { ILogger, LogLevel } from '../logger/index.d.ts';
4
4
  /**
5
5
  * 事件作用域 - 用于管理一组相关事件的生命周期
6
6
  *
@@ -1,4 +1,4 @@
1
- import { string } from '@qimenjs/utils';
1
+ import { string } from '../utils/index.esm.js';
2
2
  /**
3
3
  * 事件作用域 - 用于管理一组相关事件的生命周期
4
4
  *
@@ -1,4 +1,4 @@
1
- import { Logger } from '@qimenjs/logger';
1
+ import { Logger } from '../logger/index.esm.js';
2
2
  import { EventBus } from './EventBus';
3
3
  /**
4
4
  * 全局事件总线 - 提供应用级别的单例事件总线
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * 纯粹的 HTTP 处理器注册表
5
5
  */
6
- import { RegistrarBase } from '@qimenjs/registry';
6
+ import { RegistrarBase } from '../registry/index.d.ts';
7
7
  /**
8
8
  * HTTP Action 类别
9
9
  */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * 纯粹的 HTTP 处理器注册表
5
5
  */
6
- import { RegistrarBase } from '@qimenjs/registry';
6
+ import { RegistrarBase } from '../registry/index.esm.js';
7
7
  /**
8
8
  * HTTP Action 类别
9
9
  */
@@ -6,7 +6,7 @@
6
6
  * - 调用 HttpExecutor 执行请求
7
7
  * - 保持简单的 API
8
8
  */
9
- import { type RequestContext } from '@qimenjs/context';
9
+ import { type RequestContext } from '../context/index.d.ts';
10
10
  import type { HttpMethod } from './types/http-context';
11
11
  /**
12
12
  * HTTP 请求选项(简化版,用于 HttpClient)
@@ -6,7 +6,7 @@
6
6
  * - 调用 HttpExecutor 执行请求
7
7
  * - 保持简单的 API
8
8
  */
9
- import { RequestContextBuilder } from '@qimenjs/context';
9
+ import { RequestContextBuilder } from '../context/index.esm.js';
10
10
  import { HttpExecutor } from './HttpExecutor';
11
11
  /**
12
12
  * HttpClient 类
@@ -8,7 +8,7 @@
8
8
  * - 执行管道
9
9
  * - 返回处理后的上下文
10
10
  */
11
- import type { RequestContext } from '@qimenjs/context';
11
+ import type { RequestContext } from '../context/index.d.ts';
12
12
  /**
13
13
  * HTTP 执行结果
14
14
  */
@@ -8,7 +8,7 @@
8
8
  * - 执行管道
9
9
  * - 返回处理后的上下文
10
10
  */
11
- import { pipeline } from '@qimenjs/pipeline';
11
+ import { pipeline } from '../pipeline/index.esm.js';
12
12
  import { HttpActionRegistrar } from './HttpActionRegistrar';
13
13
  /**
14
14
  * HttpExecutor 核心类
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * @module http/StreamClient
10
10
  */
11
- import { type RequestContext } from '@qimenjs/context';
11
+ import { type RequestContext } from '../context/index.d.ts';
12
12
  import type { HttpMethod } from './types/http-context';
13
13
  /**
14
14
  * 流式请求选项
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * @module http/StreamClient
10
10
  */
11
- import { RequestContextBuilder } from '@qimenjs/context';
11
+ import { RequestContextBuilder } from '../context/index.esm.js';
12
12
  import { HttpExecutor } from './HttpExecutor';
13
13
  /**
14
14
  * StreamClient 类
@@ -4,6 +4,6 @@
4
4
  * 该文件实现了下载拦截器,用于处理被识别为下载类型的响应。
5
5
  * 当响应被标记为下载且包含有效的Blob数据时,它会触发浏览器的文件下载功能。
6
6
  */
7
- import type { RequestContext } from '@qimenjs/context';
7
+ import type { RequestContext } from '../../../context/index.d.ts';
8
8
  export declare const DownloadInterceptorHandler: (context: RequestContext) => Promise<void>;
9
9
  //# sourceMappingURL=DownloadInterceptor.d.ts.map
@@ -5,6 +5,6 @@
5
5
  * 它支持请求超时控制、错误处理和响应数据填充等功能。
6
6
  * 注意:仅适用于非上传和下载任务。
7
7
  */
8
- import type { RequestContext } from '@qimenjs/context';
8
+ import type { RequestContext } from '../../../context/index.d.ts';
9
9
  export declare const FetchTransportHandler: (context: RequestContext) => Promise<void>;
10
10
  //# sourceMappingURL=FetchTransport.d.ts.map
@@ -4,6 +4,6 @@
4
4
  * 该文件实现了基于XMLHttpRequest的数据传输处理器,主要用于处理上传和下载任务。
5
5
  * 它提供了对进度监控、超时控制、错误处理和响应解析的支持。
6
6
  */
7
- import type { RequestContext } from '@qimenjs/context';
7
+ import type { RequestContext } from '../../../context/index.d.ts';
8
8
  export declare const XhrTransportHandler: (context: RequestContext) => Promise<void>;
9
9
  //# sourceMappingURL=XhrTransport.d.ts.map
@@ -4,6 +4,6 @@
4
4
  * 该文件实现了公共参数增强器,负责将全局配置的公共参数(如queryParams和body参数)合并到HTTP请求中。
5
5
  * 支持静态参数和动态函数返回参数两种形式。
6
6
  */
7
- import type { RequestContext } from '@qimenjs/context';
7
+ import type { RequestContext } from '../../../context/index.d.ts';
8
8
  export declare const CommonParamsEnricherHandler: (context: RequestContext) => Promise<void>;
9
9
  //# sourceMappingURL=CommonParamsEnricher.d.ts.map
@@ -5,7 +5,7 @@
5
5
  * - 从 DomainConfig 读取 token
6
6
  * - 根据 authInjector 配置注入到请求中
7
7
  */
8
- import type { RequestContext } from '@qimenjs/context';
8
+ import type { RequestContext } from '../../../context/index.d.ts';
9
9
  /**
10
10
  * TokenInjector 处理器
11
11
  */
@@ -4,6 +4,6 @@
4
4
  * 该文件负责构建完整的请求URL,包括基础URL、路径参数和查询参数。
5
5
  * 它会规范化基础URL路径、拼接路径参数并处理查询参数的编码和组装。
6
6
  */
7
- import type { RequestContext } from '@qimenjs/context';
7
+ import type { RequestContext } from '../../../context/index.d.ts';
8
8
  export declare const UrlBuilderHandler: (context: RequestContext) => Promise<void>;
9
9
  //# sourceMappingURL=UrlBuilder.d.ts.map
@@ -4,6 +4,6 @@
4
4
  * 该文件实现了数据解析处理器,负责将原始响应数据解析为适当的数据格式。
5
5
  * 支持JSON、Blob和文本等多种数据类型的解析,并处理可能出现的解析错误。
6
6
  */
7
- import type { RequestContext } from '@qimenjs/context';
7
+ import type { RequestContext } from '../../../context/index.d.ts';
8
8
  export declare const DataParserHandler: (context: RequestContext) => Promise<void>;
9
9
  //# sourceMappingURL=DataParser.d.ts.map
@@ -5,6 +5,6 @@
5
5
  * 它会识别响应类型(JSON、Blob、文本)、判断是否为下载内容、解析文件名等,
6
6
  * 并设置相应的元数据标志供后续处理步骤使用。
7
7
  */
8
- import type { RequestContext } from '@qimenjs/context';
8
+ import type { RequestContext } from '../../../context/index.d.ts';
9
9
  export declare const ResponseAnalyzerHandler: (context: RequestContext) => Promise<void>;
10
10
  //# sourceMappingURL=ResponseAnalyzer.d.ts.map
@@ -4,7 +4,7 @@
4
4
  * HTTP 工厂类,提供创建 HTTP 客户端和相关工具的静态方法
5
5
  * 作为 HTTP 功能的统一入口,封装了高级功能如重试、轮询等
6
6
  */
7
- import type { RequestContext } from '@qimenjs/context';
7
+ import type { RequestContext } from '../context/index.d.ts';
8
8
  import type { HttpMethod } from './types/http-context';
9
9
  import { type SimpleRequestOptions } from './HttpClient';
10
10
  /**
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @module http/types/http-context
5
5
  */
6
- import type { BaseContext } from '@qimenjs/context';
6
+ import type { BaseContext } from '../../context/index.d.ts';
7
7
  /**
8
8
  * HTTP 方法类型
9
9
  */
@@ -1,4 +1,4 @@
1
- import { TaskPriority } from '@qimenjs/task';
1
+ import { TaskPriority } from '../../task/index.d.ts';
2
2
  /**
3
3
  * HTTP 方法类型定义
4
4
  * 包含常见的 HTTP 请求方法
@@ -6,7 +6,7 @@
6
6
  * - 支持正向查找(扩展名 → MIME)和反向查找(MIME → 扩展名)
7
7
  * - 适用于文件上传下载、内容类型识别等场景
8
8
  */
9
- import { RegistrarBase } from '@qimenjs/registry';
9
+ import { RegistrarBase } from '../registry/index.d.ts';
10
10
  /**
11
11
  * MIME 类型注册器名称
12
12
  */
@@ -6,8 +6,8 @@
6
6
  * - 支持正向查找(扩展名 → MIME)和反向查找(MIME → 扩展名)
7
7
  * - 适用于文件上传下载、内容类型识别等场景
8
8
  */
9
- import { RegistrarBase } from '@qimenjs/registry';
10
- import { RegistrarInvalidArgumentError } from '@qimenjs/registry';
9
+ import { RegistrarBase } from '../registry/index.esm.js';
10
+ import { RegistrarInvalidArgumentError } from '../registry/index.esm.js';
11
11
  /**
12
12
  * MIME 类型注册器名称
13
13
  */
@@ -5,7 +5,7 @@
5
5
  * - 管理命名正则表达式的注册和检索
6
6
  * - 用于集中管理应用程序中使用的各种正则表达式模式
7
7
  */
8
- import { RegistrarBase } from '@qimenjs/registry';
8
+ import { RegistrarBase } from '../registry/index.d.ts';
9
9
  /**
10
10
  * 模式注册器名称
11
11
  */
@@ -5,8 +5,8 @@
5
5
  * - 管理命名正则表达式的注册和检索
6
6
  * - 用于集中管理应用程序中使用的各种正则表达式模式
7
7
  */
8
- import { RegistrarBase } from '@qimenjs/registry';
9
- import { RegistrarInvalidArgumentError, RegistrarNotFoundError } from '@qimenjs/registry';
8
+ import { RegistrarBase } from '../registry/index.esm.js';
9
+ import { RegistrarInvalidArgumentError, RegistrarNotFoundError } from '../registry/index.esm.js';
10
10
  /**
11
11
  * 模式注册器名称
12
12
  */
@@ -1,4 +1,4 @@
1
- import { ErrorBase } from '@qimenjs/error';
1
+ import { ErrorBase } from '../error/index.d.ts';
2
2
  /**
3
3
  * RegistryHub错误的错误代码枚举
4
4
  * 定义了注册中心可能遇到的各种错误情况
@@ -1,4 +1,4 @@
1
- import { ErrorBase } from '@qimenjs/error';
1
+ import { ErrorBase } from '../error/index.esm.js';
2
2
  /**
3
3
  * RegistryHub错误的错误代码枚举
4
4
  * 定义了注册中心可能遇到的各种错误情况
@@ -1,4 +1,4 @@
1
- import { ErrorBase } from '@qimenjs/error';
1
+ import { ErrorBase } from '../../error/index.d.ts';
2
2
  /**
3
3
  * 注册器错误代码枚举
4
4
  * 定义了注册器系统中可能出现的各种错误类型
@@ -4,7 +4,7 @@
4
4
  * 管理实体 Schema 和字段组的注册与检索
5
5
  * 继承自 RegistrarBase,保持架构一致性
6
6
  */
7
- import { RegistrarBase } from '@qimenjs/registry';
7
+ import { RegistrarBase } from '../registry/index.d.ts';
8
8
  import type { RegistrSchema, FieldDefinition, SchemaCache } from './types';
9
9
  /**
10
10
  * Schema 注册器存储结构
@@ -4,7 +4,7 @@
4
4
  * 管理实体 Schema 和字段组的注册与检索
5
5
  * 继承自 RegistrarBase,保持架构一致性
6
6
  */
7
- import { RegistrarBase } from '@qimenjs/registry';
7
+ import { RegistrarBase } from '../registry/index.esm.js';
8
8
  /**
9
9
  * Schema 注册器名称常量
10
10
  */
@@ -1,4 +1,4 @@
1
- import { ErrorBase } from '@qimenjs/error';
1
+ import { ErrorBase } from '../../error/index.d.ts';
2
2
  /**
3
3
  * Worker相关错误类
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ErrorBase } from '@qimenjs/error';
1
+ import { ErrorBase } from '../../error/index.d.ts';
2
2
  /**
3
3
  * Worker初始化错误类
4
4
  *
@@ -4,7 +4,7 @@
4
4
  * 这种情况通常发生在资源管理或任务处理过程中,
5
5
  * 当尝试使用尚未正确初始化或获取的资源时会触发此错误。
6
6
  */
7
- import { ErrorBase } from '@qimenjs/error';
7
+ import { ErrorBase } from '../../../error/index.d.ts';
8
8
  /**
9
9
  * 资源未获取错误类
10
10
  * 当尝试访问尚未获取的资源时抛出此错误
@@ -3,7 +3,7 @@
3
3
  * 用于在系统资源不可用时抛出错误。
4
4
  * 该错误通常在任务执行过程中检测到关键资源(如内存或工作线程)不足时触发。
5
5
  */
6
- import { ErrorBase } from '@qimenjs/error';
6
+ import { ErrorBase } from '../../../error/index.d.ts';
7
7
  /**
8
8
  * 资源不可用错误类
9
9
  * 当指定类型的资源不可用时抛出此错误
@@ -4,7 +4,7 @@
4
4
  * 这种错误通常发生在任务执行过程中,当尝试对任务执行不适当的操作时触发,
5
5
  * 例如尝试取消已完成的任务,或在任务未初始化时开始执行。
6
6
  */
7
- import { ErrorBase } from '@qimenjs/error';
7
+ import { ErrorBase } from '../../../error/index.d.ts';
8
8
  /**
9
9
  * 任务状态错误类
10
10
  * 当任务状态不正确或不一致时抛出此错误
@@ -1,4 +1,4 @@
1
- import { MemoryManager } from '@qimenjs/runtime';
1
+ import { MemoryManager } from '../../../runtime/index.d.ts';
2
2
  import { WorkerHandle, WorkerPool } from '../worker';
3
3
  /**
4
4
  * HashTaskResources 只做 3 件事:
@@ -1,4 +1,4 @@
1
- import { ILogger } from '@qimenjs/logger';
1
+ import { ILogger } from '../../logger/index.d.ts';
2
2
  /**
3
3
  * Worker管理器基类
4
4
  *
@@ -1,4 +1,4 @@
1
- import { RegistrarBase } from '@qimenjs/registry';
1
+ import { RegistrarBase } from '../../registry/index.d.ts';
2
2
  import { ValidationProcessorEntry } from '../types';
3
3
  export declare class ValidatorRegistrar extends RegistrarBase<ValidationProcessorEntry[]> {
4
4
  private static chainCache;
@@ -4,7 +4,7 @@ export * from './core';
4
4
  export * from './types';
5
5
  import * as AllEntries from './processors';
6
6
  import { ValidatorRegistrar } from './core';
7
- import { RegistryHub } from '@qimenjs/registry';
7
+ import { RegistryHub } from '../registry/index.esm.js';
8
8
  export const bootstrapValidators = () => {
9
9
  // AllEntries 现在是一个对象,Key 是变量名,Value 是 Entry 对象
10
10
  Object.values(AllEntries).forEach((entry) => {
@@ -1,5 +1,5 @@
1
- import type { ValidationRule } from '@qimenjs/schema';
2
- import type { BaseContext, ExecutionStep } from '@qimenjs/context';
1
+ import type { ValidationRule } from '../../schema/index.d.ts';
2
+ import type { BaseContext, ExecutionStep } from '../../context/index.d.ts';
3
3
  export { ExecutionStep };
4
4
  /**
5
5
  * 验证错误信息接口
@@ -3,8 +3,8 @@
3
3
  *
4
4
  * 验证规则类型从 schema 包导入
5
5
  */
6
- export type { ValidationRule, StringRule, NumberRule, BooleanRule, DateRule, ArrayRule, ObjectRule, PasswordRule, CompareRule, FileRule, SplitRule, FormatRule, BaseValidationRule, ValidationTag, CustomValidationFunction, PatternSwitches, } from '@qimenjs/schema';
7
- export { ValidationPatternType } from '@qimenjs/schema';
6
+ export type { ValidationRule, StringRule, NumberRule, BooleanRule, DateRule, ArrayRule, ObjectRule, PasswordRule, CompareRule, FileRule, SplitRule, FormatRule, BaseValidationRule, ValidationTag, CustomValidationFunction, PatternSwitches, } from '../../schema/index.d.ts';
7
+ export { ValidationPatternType } from '../../schema/index.d.ts';
8
8
  export * from './context';
9
9
  export * from './processor';
10
10
  export * from './validate';
@@ -1,5 +1,5 @@
1
1
  import { IValidationError, ValidationContext } from './context';
2
- import type { ValidationRule } from '@qimenjs/schema';
2
+ import type { ValidationRule } from '../../schema/index.d.ts';
3
3
  export declare const ValidatorRegistrarName: "validator";
4
4
  export interface ValidationResult {
5
5
  isValid: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qimen-lab/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "QimenJS - Modern TypeScript infrastructure library inspired by Qimen Dunjia",
5
5
  "keywords": [
6
6
  "qimenjs",
@@ -212,4 +212,4 @@
212
212
  "engines": {
213
213
  "node": ">=14.0.0"
214
214
  }
215
- }
215
+ }