@buka/nestjs-kit 4.7.1 → 4.8.0
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/.agents/skills/ask-matt/PHASE-BOUNDARIES.md +55 -0
- package/.agents/skills/ask-matt/SKILL.md +97 -0
- package/.agents/skills/ask-matt/agents/openai.yaml +5 -0
- package/.agents/skills/code-review/SKILL.md +89 -0
- package/.agents/skills/code-review/agents/openai.yaml +3 -0
- package/.agents/skills/codebase-design/DEEPENING.md +37 -0
- package/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +44 -0
- package/.agents/skills/codebase-design/SKILL.md +114 -0
- package/.agents/skills/codebase-design/agents/openai.yaml +3 -0
- package/.agents/skills/diagnosing-bugs/SKILL.md +138 -0
- package/.agents/skills/diagnosing-bugs/agents/openai.yaml +3 -0
- package/.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +44 -0
- package/.agents/skills/domain-modeling/ADR-FORMAT.md +47 -0
- package/.agents/skills/domain-modeling/GLOSSARY-FORMAT.md +60 -0
- package/.agents/skills/domain-modeling/SKILL.md +74 -0
- package/.agents/skills/domain-modeling/agents/openai.yaml +3 -0
- package/.agents/skills/grill-me/SKILL.md +7 -0
- package/.agents/skills/grill-me/agents/openai.yaml +5 -0
- package/.agents/skills/grill-with-docs/SKILL.md +7 -0
- package/.agents/skills/grill-with-docs/agents/openai.yaml +5 -0
- package/.agents/skills/grilling/SKILL.md +30 -0
- package/.agents/skills/grilling/agents/openai.yaml +3 -0
- package/.agents/skills/handoff/SKILL.md +16 -0
- package/.agents/skills/handoff/agents/openai.yaml +5 -0
- package/.agents/skills/implement/SKILL.md +17 -0
- package/.agents/skills/implement/agents/openai.yaml +5 -0
- package/.agents/skills/implement-spec/SKILL.md +42 -0
- package/.agents/skills/implement-spec/agents/openai.yaml +5 -0
- package/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +123 -0
- package/.agents/skills/improve-codebase-architecture/SKILL.md +71 -0
- package/.agents/skills/improve-codebase-architecture/agents/openai.yaml +5 -0
- package/.agents/skills/pr/CREDITS.md +3 -0
- package/.agents/skills/pr/SKILL.md +170 -0
- package/.agents/skills/pr/agents/openai.yaml +3 -0
- package/.agents/skills/prototype/LOGIC.md +67 -0
- package/.agents/skills/prototype/SKILL.md +26 -0
- package/.agents/skills/prototype/UI.md +112 -0
- package/.agents/skills/prototype/agents/openai.yaml +3 -0
- package/.agents/skills/research/SKILL.md +12 -0
- package/.agents/skills/research/agents/openai.yaml +3 -0
- package/.agents/skills/retro/SKILL.md +44 -0
- package/.agents/skills/retro/agents/openai.yaml +5 -0
- package/.agents/skills/setup-matt-pocock-skills/SKILL.md +120 -0
- package/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +5 -0
- package/.agents/skills/setup-matt-pocock-skills/domain.md +51 -0
- package/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +50 -0
- package/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +46 -0
- package/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +30 -0
- package/.agents/skills/setup-matt-pocock-skills/triage-labels.md +15 -0
- package/.agents/skills/tdd/SKILL.md +38 -0
- package/.agents/skills/tdd/agents/openai.yaml +3 -0
- package/.agents/skills/tdd/mocking.md +59 -0
- package/.agents/skills/tdd/tests.md +77 -0
- package/.agents/skills/teach/GLOSSARY-FORMAT.md +35 -0
- package/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +46 -0
- package/.agents/skills/teach/MISSION-FORMAT.md +31 -0
- package/.agents/skills/teach/RESOURCES-FORMAT.md +32 -0
- package/.agents/skills/teach/SKILL.md +140 -0
- package/.agents/skills/teach/agents/openai.yaml +5 -0
- package/.agents/skills/to-questionnaire/SKILL.md +54 -0
- package/.agents/skills/to-questionnaire/agents/openai.yaml +5 -0
- package/.agents/skills/to-spec/SKILL.md +75 -0
- package/.agents/skills/to-spec/agents/openai.yaml +5 -0
- package/.agents/skills/to-tickets/SKILL.md +105 -0
- package/.agents/skills/to-tickets/agents/openai.yaml +5 -0
- package/.agents/skills/triage/AGENT-BRIEF.md +207 -0
- package/.agents/skills/triage/OUT-OF-SCOPE.md +105 -0
- package/.agents/skills/triage/SKILL.md +112 -0
- package/.agents/skills/triage/agents/openai.yaml +5 -0
- package/.agents/skills/wait-what/SKILL.md +7 -0
- package/.agents/skills/wait-what/agents/openai.yaml +5 -0
- package/.agents/skills/wayfinder/SKILL.md +128 -0
- package/.agents/skills/wayfinder/agents/openai.yaml +5 -0
- package/.agents/skills/wizard/SKILL.md +44 -0
- package/.agents/skills/wizard/agents/openai.yaml +3 -0
- package/.agents/skills/wizard/template.sh +223 -0
- package/.agents/skills/writing-for-agents/SKILL-MECHANICS.md +22 -0
- package/.agents/skills/writing-for-agents/SKILL.md +81 -0
- package/.agents/skills/writing-for-agents/agents/openai.yaml +3 -0
- package/AGENTS.md +13 -0
- package/CHANGELOG.md +7 -0
- package/GLOSSARY.md +21 -0
- package/README.md +1 -1
- package/dist/index.d.mts +91 -1
- package/dist/index.d.ts +91 -1
- package/dist/index.js +71 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -1
- package/dist/index.mjs.map +1 -1
- package/docs/agents/domain.md +51 -0
- package/docs/agents/issue-tracker.md +50 -0
- package/docs/agents/triage-labels.md +15 -0
- package/docs/exception.md +26 -1
- package/package.json +1 -1
- package/skills/nestjs-kit-coding-standards/SKILL.md +94 -44
- package/skills/nestjs-kit-coding-standards/references/controller.md +2 -2
- package/skills/nestjs-kit-coding-standards/references/dto.md +2 -2
- package/skills/nestjs-kit-coding-standards/references/entity.md +2 -2
- package/skills/nestjs-kit-coding-standards/references/query.md +2 -2
- package/skills/nestjs-kit-coding-standards/references/service.md +4 -3
- package/skills/nestjs-kit-crypto/SKILL.md +1 -5
- package/skills/nestjs-kit-exception/SKILL.md +15 -8
- package/skills/nestjs-kit-http/SKILL.md +1 -5
- package/skills/nestjs-kit-logger/SKILL.md +1 -4
- package/skills/nestjs-kit-object-storage/SKILL.md +1 -5
- package/skills/nestjs-kit-open-bao/SKILL.md +1 -5
- package/skills/nestjs-kit-swagger/SKILL.md +1 -6
- package/skills/nestjs-kit-urn/SKILL.md +1 -3
- package/skills-lock.json +167 -0
package/dist/index.mjs
CHANGED
|
@@ -7923,6 +7923,71 @@ let BukaExceptions = class BukaExceptions {
|
|
|
7923
7923
|
};
|
|
7924
7924
|
BukaExceptions = __decorate([ModuleExceptions({ moduleId: 0 })], BukaExceptions);
|
|
7925
7925
|
//#endregion
|
|
7926
|
+
//#region src/modules/exception/client-gate.exceptions.ts
|
|
7927
|
+
let ClientGateExceptions = class ClientGateExceptions {
|
|
7928
|
+
/**
|
|
7929
|
+
* 客户端版本过低
|
|
7930
|
+
*
|
|
7931
|
+
* 客户端应展示不可关闭的全屏阻断页,并引导更新。
|
|
7932
|
+
*/
|
|
7933
|
+
static ClientVersionRejected = FeatureException({
|
|
7934
|
+
sequenceId: 1,
|
|
7935
|
+
messageFactory: (minVersion, currentVersion) => `当前版本已停止服务,请更新 App 后继续使用(最低支持 ${minVersion},当前 ${currentVersion})`,
|
|
7936
|
+
description: "客户端版本低于服务端声明的最低支持版本;需要更新客户端后才能继续使用"
|
|
7937
|
+
});
|
|
7938
|
+
/**
|
|
7939
|
+
* 需要付费资格
|
|
7940
|
+
*
|
|
7941
|
+
* 用于仅对付费方案开放的专属能力;免费方案本就合法的情况用「已达当前方案上限」。
|
|
7942
|
+
*/
|
|
7943
|
+
static EntitlementRequired = FeatureException({
|
|
7944
|
+
sequenceId: 2,
|
|
7945
|
+
messageFactory: () => "该功能需要开通付费方案后使用",
|
|
7946
|
+
description: "缺少使用该能力所需的付费资格;需要开通付费方案"
|
|
7947
|
+
});
|
|
7948
|
+
/**
|
|
7949
|
+
* 付费资格已失效
|
|
7950
|
+
*
|
|
7951
|
+
* 到期后按软降级处理:存量数据可读可改可删,只在触发受限动作时阻断。
|
|
7952
|
+
*/
|
|
7953
|
+
static EntitlementExpired = FeatureException({
|
|
7954
|
+
sequenceId: 3,
|
|
7955
|
+
messageFactory: () => "付费方案已失效,请续费后继续使用",
|
|
7956
|
+
description: "付费方案已过期;需要续费,存量数据不受影响"
|
|
7957
|
+
});
|
|
7958
|
+
/**
|
|
7959
|
+
* 服务维护中
|
|
7960
|
+
*
|
|
7961
|
+
* 维护的主通道是客户端启动时拉取维护窗口(后端在维护中往往不可用),本码只在前端漏判时兜底。
|
|
7962
|
+
*/
|
|
7963
|
+
static Maintenance = FeatureException({
|
|
7964
|
+
sequenceId: 4,
|
|
7965
|
+
messageFactory: () => "服务正在维护,请稍后重试",
|
|
7966
|
+
description: "服务处于计划内维护窗口;客户端应展示阻断页并自动重试"
|
|
7967
|
+
});
|
|
7968
|
+
/**
|
|
7969
|
+
* 功能未开放
|
|
7970
|
+
*
|
|
7971
|
+
* 客户端版本已满足要求,但该能力在当前配置下未开启(按版本关闭、灰度等)。
|
|
7972
|
+
*/
|
|
7973
|
+
static CapabilityUnavailable = FeatureException({
|
|
7974
|
+
sequenceId: 5,
|
|
7975
|
+
messageFactory: () => "该功能暂未开放",
|
|
7976
|
+
description: "能力在当前版本或配置下未开启;用户无需做任何操作"
|
|
7977
|
+
});
|
|
7978
|
+
/**
|
|
7979
|
+
* 已达当前方案上限
|
|
7980
|
+
*
|
|
7981
|
+
* 资源名与资源标识都由调用方给出:库只提供文案模板,不持有任何产品的资源词汇。
|
|
7982
|
+
*/
|
|
7983
|
+
static PlanLimitReached = FeatureException({
|
|
7984
|
+
sequenceId: 6,
|
|
7985
|
+
messageFactory: (resourceLabel, current, max) => `${resourceLabel}数量已达上限(${current}/${max}),请提升方案后继续操作`,
|
|
7986
|
+
description: "资源数量达到当前方案上限;需要提升方案或清理存量"
|
|
7987
|
+
});
|
|
7988
|
+
};
|
|
7989
|
+
ClientGateExceptions = __decorate([ModuleExceptions({ moduleId: 1 })], ClientGateExceptions);
|
|
7990
|
+
//#endregion
|
|
7926
7991
|
//#region src/modules/envelope-encryption/entities/key-envelope.embeddable.ts
|
|
7927
7992
|
var _ref$4;
|
|
7928
7993
|
let KeyEnvelope = class KeyEnvelope {
|
|
@@ -8638,6 +8703,6 @@ function throwOnResponseError(options) {
|
|
|
8638
8703
|
return middleware;
|
|
8639
8704
|
}
|
|
8640
8705
|
//#endregion
|
|
8641
|
-
export { AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaPageQueryValidationPipe, BukaRequestException, BukaValidationPipe, BusinessException, Cardinality, Column, Composite, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, DegradeException, Dictionary, DiscreteEntity, EncryptedPayload, EntityDto, EntityRef, Enum, EnvelopeEncryptionModule, EnvelopeEncryptionService, ErrorCategory, ErrorCode, ErrorCodeController, ErrorCodeExceptionFilter, ErrorCodeDefinitionDto as ErrorCodeItemDto, ErrorCodeMetadataDto, ErrorCodePartsDto, ErrorCodeRegistry, ErrorResponseSchema, ExceptionDetailSchema, ExceptionModule, FeatureException, FilterQuery, FilterQueryOperators, FilterQueryOperatorsMetadataKey, FilterQueryTransformPipe, HAS_ANY_KEY, HasAnyKey, HttpException, IS_CROCKFORD_BASE32, IS_DOMAIN_URN, IS_ENUM_COLUMN, IS_SCALAR_DICTIONARY, IS_URN, InjectLogger, IntersectionType, IsBrowserRequest, IsCrockfordBase32, IsDomainUrn, IsEnumColumn, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, MatchJsonSchema, MatchesUrn, Model, ModelRegister, ModuleExceptions, NextCursorPageSchema, ObjectStorageModule, ObjectStorageModuleConfig, ObjectStorageService, OffsetPageSchema, OffsetPagination, OmitType, OpenBaoAppRoleAuthConfig, OpenBaoHttpClient, OpenBaoKubernetesAuthConfig, OpenBaoModule, OpenBaoModuleConfig, OpenBaoTokenAuthConfig, OpenBaoTokenManager, OpenBaoUserpassAuthConfig, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, RateLimitException, ResponseBodyType, SKIP_UNIFIED_EXCEPTION_RESPONSE_EXTENSION, SaltedHash, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, SkipUnifiedExceptionResponse, Slice, SwaggerPatcher, SystemException, ThirdPartyException, TimestampedEntity, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify, throwOnResponseError };
|
|
8706
|
+
export { AuthException, BUKA_MODULE_OPTIONS_TOKEN, Base32, BlindIndex, BlindIndexModule, BlindIndexService, BlindIndexV1Hasher, BukaConfigurableModuleClass, BukaExceptions, BukaModule, BukaPageQueryValidationPipe, BukaRequestException, BukaValidationPipe, BusinessException, Cardinality, ClientGateExceptions, Column, Composite, ConfigurableModuleClass, ConflictException, CursorPagination, DatabaseConfig, DegradeException, Dictionary, DiscreteEntity, EncryptedPayload, EntityDto, EntityRef, Enum, EnvelopeEncryptionModule, EnvelopeEncryptionService, ErrorCategory, ErrorCode, ErrorCodeController, ErrorCodeExceptionFilter, ErrorCodeDefinitionDto as ErrorCodeItemDto, ErrorCodeMetadataDto, ErrorCodePartsDto, ErrorCodeRegistry, ErrorResponseSchema, ExceptionDetailSchema, ExceptionModule, FeatureException, FilterQuery, FilterQueryOperators, FilterQueryOperatorsMetadataKey, FilterQueryTransformPipe, HAS_ANY_KEY, HasAnyKey, HttpException, IS_CROCKFORD_BASE32, IS_DOMAIN_URN, IS_ENUM_COLUMN, IS_SCALAR_DICTIONARY, IS_URN, InjectLogger, IntersectionType, IsBrowserRequest, IsCrockfordBase32, IsDomainUrn, IsEnumColumn, IsScalar, IsScalarDictionary, IsUrn, KeyEnvelope, LinearEntity, List, ListErrorCodesResponseDto, ListResponseBodyType, Logger, LoggerConfig, LoggerErrorInterceptor, LoggerModule, MATCH_JSON_SCHEMA, MODULE_OPTIONS_TOKEN, MatchJsonSchema, MatchesUrn, Model, ModelRegister, ModuleExceptions, NextCursorPageSchema, ObjectStorageModule, ObjectStorageModuleConfig, ObjectStorageService, OffsetPageSchema, OffsetPagination, OmitType, OpenBaoAppRoleAuthConfig, OpenBaoHttpClient, OpenBaoKubernetesAuthConfig, OpenBaoModule, OpenBaoModuleConfig, OpenBaoTokenAuthConfig, OpenBaoTokenManager, OpenBaoUserpassAuthConfig, OptionalPageQuery, OrderQueryType, PageQuery, ParseUUIDv7Pipe, PartialType, PendingException, PickType, PreviousCursorPageSchema, PrimaryKeyType, PrimaryKeyTypeClassMetadataPropertyKey, Property, RateLimitException, ResponseBodyType, SKIP_UNIFIED_EXCEPTION_RESPONSE_EXTENSION, SaltedHash, SaltedHashModule, SaltedHashService, SaltedHashV1Hasher, SkipUnifiedExceptionResponse, Slice, SwaggerPatcher, SystemException, ThirdPartyException, TimestampedEntity, Urn, VALIDATE_NESTED_DICTIONARY, ValidateNestedDictionary, ValidationException, getExceptionModuleId, getFilterQueryOperators, isScalarClass, serializeModel, setOpenBaoToken, stableStringify, throwOnResponseError };
|
|
8642
8707
|
|
|
8643
8708
|
//# sourceMappingURL=index.mjs.map
|