hardness 1.0.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.md +129 -0
- package/CHANGELOG.md +27 -0
- package/LICENSE +21 -0
- package/README.md +269 -0
- package/node_modules/@hardness/analyzers/README.md +31 -0
- package/node_modules/@hardness/analyzers/dist/generic.d.ts +6 -0
- package/node_modules/@hardness/analyzers/dist/generic.js +13 -0
- package/node_modules/@hardness/analyzers/dist/generic.js.map +1 -0
- package/node_modules/@hardness/analyzers/dist/index.d.ts +26 -0
- package/node_modules/@hardness/analyzers/dist/index.js +40 -0
- package/node_modules/@hardness/analyzers/dist/index.js.map +1 -0
- package/node_modules/@hardness/analyzers/dist/typescript-node.d.ts +6 -0
- package/node_modules/@hardness/analyzers/dist/typescript-node.js +110 -0
- package/node_modules/@hardness/analyzers/dist/typescript-node.js.map +1 -0
- package/node_modules/@hardness/analyzers/package.json +47 -0
- package/node_modules/@hardness/core/README.md +20 -0
- package/node_modules/@hardness/core/dist/agent/adapter.d.ts +12 -0
- package/node_modules/@hardness/core/dist/agent/adapter.js +32 -0
- package/node_modules/@hardness/core/dist/agent/adapter.js.map +1 -0
- package/node_modules/@hardness/core/dist/agent/context-gen.d.ts +7 -0
- package/node_modules/@hardness/core/dist/agent/context-gen.js +12 -0
- package/node_modules/@hardness/core/dist/agent/context-gen.js.map +1 -0
- package/node_modules/@hardness/core/dist/common/logger.d.ts +17 -0
- package/node_modules/@hardness/core/dist/common/logger.js +59 -0
- package/node_modules/@hardness/core/dist/common/logger.js.map +1 -0
- package/node_modules/@hardness/core/dist/common/paths.d.ts +22 -0
- package/node_modules/@hardness/core/dist/common/paths.js +72 -0
- package/node_modules/@hardness/core/dist/common/paths.js.map +1 -0
- package/node_modules/@hardness/core/dist/common/preflight.d.ts +9 -0
- package/node_modules/@hardness/core/dist/common/preflight.js +69 -0
- package/node_modules/@hardness/core/dist/common/preflight.js.map +1 -0
- package/node_modules/@hardness/core/dist/common/subprocess.d.ts +18 -0
- package/node_modules/@hardness/core/dist/common/subprocess.js +79 -0
- package/node_modules/@hardness/core/dist/common/subprocess.js.map +1 -0
- package/node_modules/@hardness/core/dist/common/types.d.ts +77 -0
- package/node_modules/@hardness/core/dist/common/types.js +2 -0
- package/node_modules/@hardness/core/dist/common/types.js.map +1 -0
- package/node_modules/@hardness/core/dist/config/manager.d.ts +31 -0
- package/node_modules/@hardness/core/dist/config/manager.js +97 -0
- package/node_modules/@hardness/core/dist/config/manager.js.map +1 -0
- package/node_modules/@hardness/core/dist/config/schema.d.ts +210 -0
- package/node_modules/@hardness/core/dist/config/schema.js +41 -0
- package/node_modules/@hardness/core/dist/config/schema.js.map +1 -0
- package/node_modules/@hardness/core/dist/gates/analyzer-gate.d.ts +6 -0
- package/node_modules/@hardness/core/dist/gates/analyzer-gate.js +37 -0
- package/node_modules/@hardness/core/dist/gates/analyzer-gate.js.map +1 -0
- package/node_modules/@hardness/core/dist/gates/dependency.d.ts +5 -0
- package/node_modules/@hardness/core/dist/gates/dependency.js +71 -0
- package/node_modules/@hardness/core/dist/gates/dependency.js.map +1 -0
- package/node_modules/@hardness/core/dist/gates/engine.d.ts +26 -0
- package/node_modules/@hardness/core/dist/gates/engine.js +68 -0
- package/node_modules/@hardness/core/dist/gates/engine.js.map +1 -0
- package/node_modules/@hardness/core/dist/gates/execution.d.ts +9 -0
- package/node_modules/@hardness/core/dist/gates/execution.js +88 -0
- package/node_modules/@hardness/core/dist/gates/execution.js.map +1 -0
- package/node_modules/@hardness/core/dist/gates/generic.d.ts +21 -0
- package/node_modules/@hardness/core/dist/gates/generic.js +204 -0
- package/node_modules/@hardness/core/dist/gates/generic.js.map +1 -0
- package/node_modules/@hardness/core/dist/gates/import-resolver.d.ts +6 -0
- package/node_modules/@hardness/core/dist/gates/import-resolver.js +78 -0
- package/node_modules/@hardness/core/dist/gates/import-resolver.js.map +1 -0
- package/node_modules/@hardness/core/dist/index.d.ts +23 -0
- package/node_modules/@hardness/core/dist/index.js +30 -0
- package/node_modules/@hardness/core/dist/index.js.map +1 -0
- package/node_modules/@hardness/core/dist/locks/harness-guard.d.ts +32 -0
- package/node_modules/@hardness/core/dist/locks/harness-guard.js +121 -0
- package/node_modules/@hardness/core/dist/locks/harness-guard.js.map +1 -0
- package/node_modules/@hardness/core/dist/locks/sprint-lock.d.ts +39 -0
- package/node_modules/@hardness/core/dist/locks/sprint-lock.js +143 -0
- package/node_modules/@hardness/core/dist/locks/sprint-lock.js.map +1 -0
- package/node_modules/@hardness/core/dist/orchestrator.d.ts +8 -0
- package/node_modules/@hardness/core/dist/orchestrator.js +160 -0
- package/node_modules/@hardness/core/dist/orchestrator.js.map +1 -0
- package/node_modules/@hardness/core/dist/security/policy.d.ts +10 -0
- package/node_modules/@hardness/core/dist/security/policy.js +32 -0
- package/node_modules/@hardness/core/dist/security/policy.js.map +1 -0
- package/node_modules/@hardness/core/dist/security/redactor.d.ts +5 -0
- package/node_modules/@hardness/core/dist/security/redactor.js +40 -0
- package/node_modules/@hardness/core/dist/security/redactor.js.map +1 -0
- package/node_modules/@hardness/core/dist/sprint/context.d.ts +27 -0
- package/node_modules/@hardness/core/dist/sprint/context.js +119 -0
- package/node_modules/@hardness/core/dist/sprint/context.js.map +1 -0
- package/node_modules/@hardness/core/dist/sprint/scorer.d.ts +20 -0
- package/node_modules/@hardness/core/dist/sprint/scorer.js +109 -0
- package/node_modules/@hardness/core/dist/sprint/scorer.js.map +1 -0
- package/node_modules/@hardness/core/dist/sprint/status.d.ts +20 -0
- package/node_modules/@hardness/core/dist/sprint/status.js +81 -0
- package/node_modules/@hardness/core/dist/sprint/status.js.map +1 -0
- package/node_modules/@hardness/core/dist/sprint/validator.d.ts +17 -0
- package/node_modules/@hardness/core/dist/sprint/validator.js +239 -0
- package/node_modules/@hardness/core/dist/sprint/validator.js.map +1 -0
- package/node_modules/@hardness/core/package.json +53 -0
- package/node_modules/@hardness/prompts/README.md +30 -0
- package/node_modules/@hardness/prompts/dist/index.d.ts +21 -0
- package/node_modules/@hardness/prompts/dist/index.js +63 -0
- package/node_modules/@hardness/prompts/dist/index.js.map +1 -0
- package/node_modules/@hardness/prompts/package.json +46 -0
- package/node_modules/picocolors/LICENSE +15 -0
- package/node_modules/picocolors/README.md +21 -0
- package/node_modules/picocolors/package.json +25 -0
- package/node_modules/picocolors/picocolors.browser.js +4 -0
- package/node_modules/picocolors/picocolors.d.ts +5 -0
- package/node_modules/picocolors/picocolors.js +75 -0
- package/node_modules/picocolors/types.d.ts +51 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +208 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/package.json +118 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/zod/v4-mini/index.js +1 -0
- package/package.json +80 -0
- package/packages/analyzers/README.md +31 -0
- package/packages/analyzers/dist/generic.d.ts +6 -0
- package/packages/analyzers/dist/generic.js +13 -0
- package/packages/analyzers/dist/generic.js.map +1 -0
- package/packages/analyzers/dist/index.d.ts +26 -0
- package/packages/analyzers/dist/index.js +40 -0
- package/packages/analyzers/dist/index.js.map +1 -0
- package/packages/analyzers/dist/typescript-node.d.ts +6 -0
- package/packages/analyzers/dist/typescript-node.js +110 -0
- package/packages/analyzers/dist/typescript-node.js.map +1 -0
- package/packages/analyzers/package.json +47 -0
- package/packages/cli/README.md +27 -0
- package/packages/cli/dist/commands/audit.d.ts +2 -0
- package/packages/cli/dist/commands/audit.js +36 -0
- package/packages/cli/dist/commands/audit.js.map +1 -0
- package/packages/cli/dist/commands/discover.d.ts +2 -0
- package/packages/cli/dist/commands/discover.js +12 -0
- package/packages/cli/dist/commands/discover.js.map +1 -0
- package/packages/cli/dist/commands/dry-run.d.ts +2 -0
- package/packages/cli/dist/commands/dry-run.js +47 -0
- package/packages/cli/dist/commands/dry-run.js.map +1 -0
- package/packages/cli/dist/commands/init.d.ts +2 -0
- package/packages/cli/dist/commands/init.js +93 -0
- package/packages/cli/dist/commands/init.js.map +1 -0
- package/packages/cli/dist/commands/plan.d.ts +2 -0
- package/packages/cli/dist/commands/plan.js +12 -0
- package/packages/cli/dist/commands/plan.js.map +1 -0
- package/packages/cli/dist/commands/run.d.ts +2 -0
- package/packages/cli/dist/commands/run.js +23 -0
- package/packages/cli/dist/commands/run.js.map +1 -0
- package/packages/cli/dist/commands/score.d.ts +2 -0
- package/packages/cli/dist/commands/score.js +51 -0
- package/packages/cli/dist/commands/score.js.map +1 -0
- package/packages/cli/dist/commands/spec.d.ts +2 -0
- package/packages/cli/dist/commands/spec.js +12 -0
- package/packages/cli/dist/commands/spec.js.map +1 -0
- package/packages/cli/dist/commands/status.d.ts +2 -0
- package/packages/cli/dist/commands/status.js +48 -0
- package/packages/cli/dist/commands/status.js.map +1 -0
- package/packages/cli/dist/commands/validate.d.ts +2 -0
- package/packages/cli/dist/commands/validate.js +57 -0
- package/packages/cli/dist/commands/validate.js.map +1 -0
- package/packages/cli/dist/dispatcher.d.ts +1 -0
- package/packages/cli/dist/dispatcher.js +128 -0
- package/packages/cli/dist/dispatcher.js.map +1 -0
- package/packages/cli/dist/index.d.ts +3 -0
- package/packages/cli/dist/index.js +60 -0
- package/packages/cli/dist/index.js.map +1 -0
- package/packages/cli/package.json +58 -0
- package/packages/core/README.md +20 -0
- package/packages/core/dist/agent/adapter.d.ts +12 -0
- package/packages/core/dist/agent/adapter.js +32 -0
- package/packages/core/dist/agent/adapter.js.map +1 -0
- package/packages/core/dist/agent/context-gen.d.ts +7 -0
- package/packages/core/dist/agent/context-gen.js +12 -0
- package/packages/core/dist/agent/context-gen.js.map +1 -0
- package/packages/core/dist/common/logger.d.ts +17 -0
- package/packages/core/dist/common/logger.js +59 -0
- package/packages/core/dist/common/logger.js.map +1 -0
- package/packages/core/dist/common/paths.d.ts +22 -0
- package/packages/core/dist/common/paths.js +72 -0
- package/packages/core/dist/common/paths.js.map +1 -0
- package/packages/core/dist/common/preflight.d.ts +9 -0
- package/packages/core/dist/common/preflight.js +69 -0
- package/packages/core/dist/common/preflight.js.map +1 -0
- package/packages/core/dist/common/subprocess.d.ts +18 -0
- package/packages/core/dist/common/subprocess.js +79 -0
- package/packages/core/dist/common/subprocess.js.map +1 -0
- package/packages/core/dist/common/types.d.ts +77 -0
- package/packages/core/dist/common/types.js +2 -0
- package/packages/core/dist/common/types.js.map +1 -0
- package/packages/core/dist/config/manager.d.ts +31 -0
- package/packages/core/dist/config/manager.js +97 -0
- package/packages/core/dist/config/manager.js.map +1 -0
- package/packages/core/dist/config/schema.d.ts +210 -0
- package/packages/core/dist/config/schema.js +41 -0
- package/packages/core/dist/config/schema.js.map +1 -0
- package/packages/core/dist/gates/analyzer-gate.d.ts +6 -0
- package/packages/core/dist/gates/analyzer-gate.js +37 -0
- package/packages/core/dist/gates/analyzer-gate.js.map +1 -0
- package/packages/core/dist/gates/dependency.d.ts +5 -0
- package/packages/core/dist/gates/dependency.js +71 -0
- package/packages/core/dist/gates/dependency.js.map +1 -0
- package/packages/core/dist/gates/engine.d.ts +26 -0
- package/packages/core/dist/gates/engine.js +68 -0
- package/packages/core/dist/gates/engine.js.map +1 -0
- package/packages/core/dist/gates/execution.d.ts +9 -0
- package/packages/core/dist/gates/execution.js +88 -0
- package/packages/core/dist/gates/execution.js.map +1 -0
- package/packages/core/dist/gates/generic.d.ts +21 -0
- package/packages/core/dist/gates/generic.js +204 -0
- package/packages/core/dist/gates/generic.js.map +1 -0
- package/packages/core/dist/gates/import-resolver.d.ts +6 -0
- package/packages/core/dist/gates/import-resolver.js +78 -0
- package/packages/core/dist/gates/import-resolver.js.map +1 -0
- package/packages/core/dist/index.d.ts +23 -0
- package/packages/core/dist/index.js +30 -0
- package/packages/core/dist/index.js.map +1 -0
- package/packages/core/dist/locks/harness-guard.d.ts +32 -0
- package/packages/core/dist/locks/harness-guard.js +121 -0
- package/packages/core/dist/locks/harness-guard.js.map +1 -0
- package/packages/core/dist/locks/sprint-lock.d.ts +39 -0
- package/packages/core/dist/locks/sprint-lock.js +143 -0
- package/packages/core/dist/locks/sprint-lock.js.map +1 -0
- package/packages/core/dist/orchestrator.d.ts +8 -0
- package/packages/core/dist/orchestrator.js +160 -0
- package/packages/core/dist/orchestrator.js.map +1 -0
- package/packages/core/dist/security/policy.d.ts +10 -0
- package/packages/core/dist/security/policy.js +32 -0
- package/packages/core/dist/security/policy.js.map +1 -0
- package/packages/core/dist/security/redactor.d.ts +5 -0
- package/packages/core/dist/security/redactor.js +40 -0
- package/packages/core/dist/security/redactor.js.map +1 -0
- package/packages/core/dist/sprint/context.d.ts +27 -0
- package/packages/core/dist/sprint/context.js +119 -0
- package/packages/core/dist/sprint/context.js.map +1 -0
- package/packages/core/dist/sprint/scorer.d.ts +20 -0
- package/packages/core/dist/sprint/scorer.js +109 -0
- package/packages/core/dist/sprint/scorer.js.map +1 -0
- package/packages/core/dist/sprint/status.d.ts +20 -0
- package/packages/core/dist/sprint/status.js +81 -0
- package/packages/core/dist/sprint/status.js.map +1 -0
- package/packages/core/dist/sprint/validator.d.ts +17 -0
- package/packages/core/dist/sprint/validator.js +239 -0
- package/packages/core/dist/sprint/validator.js.map +1 -0
- package/packages/core/package.json +53 -0
- package/packages/prompts/README.md +30 -0
- package/packages/prompts/dist/index.d.ts +21 -0
- package/packages/prompts/dist/index.js +63 -0
- package/packages/prompts/dist/index.js.map +1 -0
- package/packages/prompts/package.json +46 -0
- package/schemas/config.schema.json +62 -0
- package/schemas/context.schema.json +36 -0
- package/schemas/index.schema.json +29 -0
- package/schemas/sprint.schema.json +109 -0
- package/templates/PRD-TEMPLATE.md +36 -0
- package/templates/SPEC-TEMPLATE.md +59 -0
- package/templates/SPRINT-TEMPLATE.json +62 -0
- package/templates/config.example.json +30 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export const name = '@hardness/prompts';
|
|
2
|
+
/**
|
|
3
|
+
* Renders a template by substituting the provided variables.
|
|
4
|
+
*/
|
|
5
|
+
export function renderPrompt(template, vars) {
|
|
6
|
+
let result = template;
|
|
7
|
+
for (const [key, value] of Object.entries(vars)) {
|
|
8
|
+
result = result.split(`{${key}}`).join(value || '');
|
|
9
|
+
}
|
|
10
|
+
return result;
|
|
11
|
+
}
|
|
12
|
+
export const IMPLEMENTER_TEMPLATE = `
|
|
13
|
+
# AGENT IMPLEMENTATION INSTRUCTIONS
|
|
14
|
+
You are an elite software development agent operating under the **Hardness** orchestrator.
|
|
15
|
+
Your task is to implement the current feature, strictly following the security, quality and constraint rules below.
|
|
16
|
+
|
|
17
|
+
## Project Information
|
|
18
|
+
- Project: {projectName}
|
|
19
|
+
- Active sprint: Sprint {sprintIndex}
|
|
20
|
+
- Feature: {featureId} - {featureTitle}
|
|
21
|
+
- Feature description: {featureDescription}
|
|
22
|
+
|
|
23
|
+
## Acceptance Criteria
|
|
24
|
+
{acceptanceCriteria}
|
|
25
|
+
|
|
26
|
+
## Development Hints
|
|
27
|
+
{hints}
|
|
28
|
+
|
|
29
|
+
## Related excerpt from SPEC.md
|
|
30
|
+
{specExcerpt}
|
|
31
|
+
|
|
32
|
+
## Editable Files
|
|
33
|
+
Only the files listed in the feature above may be created or modified:
|
|
34
|
+
{existingFiles}
|
|
35
|
+
|
|
36
|
+
## Global Rules and Policies
|
|
37
|
+
{rules}
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
IMPORTANT:
|
|
41
|
+
1. DO NOT modify files that are not listed in the feature above (violation triggers a critical gate failure).
|
|
42
|
+
2. Do not add dependencies not listed without authorization.
|
|
43
|
+
3. Do not use console.log without necessity; prefer a formal logger.
|
|
44
|
+
`;
|
|
45
|
+
export const REVIEWER_TEMPLATE = `
|
|
46
|
+
# CODE REVIEW (REVIEWER)
|
|
47
|
+
Review the code changes made for feature {featureId} - {featureTitle}.
|
|
48
|
+
Ensure that the acceptance criteria have been fully met.
|
|
49
|
+
|
|
50
|
+
Criteria:
|
|
51
|
+
{acceptanceCriteria}
|
|
52
|
+
|
|
53
|
+
Check:
|
|
54
|
+
1. Whether formatting rules were maintained.
|
|
55
|
+
2. Whether there are leaked keys or secrets.
|
|
56
|
+
3. Whether unit tests cover the new behavior.
|
|
57
|
+
`;
|
|
58
|
+
export const AUDITOR_TEMPLATE = `
|
|
59
|
+
# FINAL CONSISTENCY AUDIT (AUDITOR)
|
|
60
|
+
Analyze the overall state of project {projectName} after the implementations of sprint {sprintIndex}.
|
|
61
|
+
Ensure the code is clean, that there are no pending circular imports and that the project conventions are consistent.
|
|
62
|
+
`;
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,mBAAmB,CAAC;AAgBxC;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,QAAgB,EAAE,IAA4B;IACzE,IAAI,MAAM,GAAG,QAAQ,CAAC;IACtB,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAChD,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;IACtD,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCnC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;CAYhC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;CAI/B,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hardness/prompts",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Hardness Prompts — role-based prompt templates for the agent",
|
|
5
|
+
"author": "cmt-t",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc --build",
|
|
22
|
+
"clean": "tsc --build --clean"
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/node": "^20.12.7"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=20.0.0"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/cmt-t/HardNess.git",
|
|
34
|
+
"directory": "packages/prompts"
|
|
35
|
+
},
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/cmt-t/HardNess/issues"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://github.com/cmt-t/HardNess#readme",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"prompts",
|
|
42
|
+
"templates",
|
|
43
|
+
"agent",
|
|
44
|
+
"renderer"
|
|
45
|
+
]
|
|
46
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "HardnessConfig",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"properties": {
|
|
7
|
+
"agent": {
|
|
8
|
+
"type": "object",
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"agentCommand": { "type": "string", "description": "Comando invocado para executar o agente. Variáveis: {context_file}, {cwd}, {timeout}." },
|
|
12
|
+
"thinkingLevel": { "type": "string", "enum": ["none", "low", "medium", "high", "xhigh"] },
|
|
13
|
+
"timeout": { "type": "number", "minimum": 1, "description": "Timeout em segundos" },
|
|
14
|
+
"retries": { "type": "number", "minimum": 0 }
|
|
15
|
+
},
|
|
16
|
+
"required": ["agentCommand", "thinkingLevel", "timeout", "retries"]
|
|
17
|
+
},
|
|
18
|
+
"stack": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"additionalProperties": false,
|
|
21
|
+
"properties": {
|
|
22
|
+
"stackProfile": { "type": "string", "enum": ["typescript-node", "generic"] },
|
|
23
|
+
"typecheckCommand": { "type": "string" },
|
|
24
|
+
"typecheckTimeout": { "type": "number", "minimum": 1 },
|
|
25
|
+
"ignoreDirs": { "type": "array", "items": { "type": "string" } },
|
|
26
|
+
"sourceExtensions": { "type": "array", "items": { "type": "string" } }
|
|
27
|
+
},
|
|
28
|
+
"required": ["stackProfile", "typecheckCommand", "typecheckTimeout", "ignoreDirs", "sourceExtensions"]
|
|
29
|
+
},
|
|
30
|
+
"security": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"properties": {
|
|
34
|
+
"allowedCommandPrefixes": { "type": "array", "items": { "type": "string" } },
|
|
35
|
+
"blockedPatterns": { "type": "array", "items": { "type": "string" } },
|
|
36
|
+
"requireTrustedForUnknown": { "type": "boolean" }
|
|
37
|
+
},
|
|
38
|
+
"required": ["allowedCommandPrefixes", "blockedPatterns", "requireTrustedForUnknown"]
|
|
39
|
+
},
|
|
40
|
+
"logs": {
|
|
41
|
+
"type": "object",
|
|
42
|
+
"additionalProperties": false,
|
|
43
|
+
"properties": {
|
|
44
|
+
"logDir": { "type": "string" },
|
|
45
|
+
"redactSecrets": { "type": "boolean" },
|
|
46
|
+
"redactPatterns": { "type": "array", "items": { "type": "string" } },
|
|
47
|
+
"retentionDays": { "type": "number", "minimum": 1 }
|
|
48
|
+
},
|
|
49
|
+
"required": ["logDir", "redactSecrets", "redactPatterns", "retentionDays"]
|
|
50
|
+
},
|
|
51
|
+
"scoring": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"properties": {
|
|
55
|
+
"minScore": { "type": "number", "minimum": 0, "maximum": 10 },
|
|
56
|
+
"blockBelowMin": { "type": "boolean" }
|
|
57
|
+
},
|
|
58
|
+
"required": ["minScore", "blockBelowMin"]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": ["agent", "stack", "security", "logs", "scoring"]
|
|
62
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "HardnessAgentContext",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"sprint": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"index": { "type": "integer" },
|
|
10
|
+
"name": { "type": "string" }
|
|
11
|
+
},
|
|
12
|
+
"required": ["index", "name"]
|
|
13
|
+
},
|
|
14
|
+
"feature": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"properties": {
|
|
17
|
+
"id": { "type": "string" },
|
|
18
|
+
"title": { "type": "string" },
|
|
19
|
+
"description": { "type": "string" },
|
|
20
|
+
"specLines": { "type": "string" },
|
|
21
|
+
"status": { "type": "string" },
|
|
22
|
+
"files": { "type": "array" },
|
|
23
|
+
"acceptanceCriteria": { "type": "array" },
|
|
24
|
+
"hints": { "type": "array" }
|
|
25
|
+
},
|
|
26
|
+
"required": ["id", "title", "description", "status", "files", "acceptanceCriteria", "hints"]
|
|
27
|
+
},
|
|
28
|
+
"specExcerpt": { "type": "string" },
|
|
29
|
+
"rulesExcerpt": { "type": "string" },
|
|
30
|
+
"existingFiles": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": { "type": "string" }
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": ["sprint", "feature", "specExcerpt", "rulesExcerpt", "existingFiles"]
|
|
36
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "HardnessSprintIndex",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"properties": {
|
|
7
|
+
"projectName": { "type": "string", "minLength": 1 },
|
|
8
|
+
"specPath": { "type": "string", "description": "Caminho (relativo à raiz) para SPEC.md" },
|
|
9
|
+
"totalSprints": { "type": "number", "minimum": 0 },
|
|
10
|
+
"schemaVersion": { "type": "number" },
|
|
11
|
+
"description": { "type": "string" },
|
|
12
|
+
"sprints": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"additionalProperties": false,
|
|
17
|
+
"properties": {
|
|
18
|
+
"index": { "type": "number", "minimum": 0 },
|
|
19
|
+
"file": { "type": "string", "pattern": "^\\d{2}-[a-z0-9-]+\\.json$" },
|
|
20
|
+
"name": { "type": "string", "minLength": 1 },
|
|
21
|
+
"status": { "type": "string", "enum": ["pending", "in-progress", "done"] },
|
|
22
|
+
"featuresCount": { "type": "number", "minimum": 0 }
|
|
23
|
+
},
|
|
24
|
+
"required": ["index", "file", "name", "status", "featuresCount"]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"required": ["projectName", "specPath", "totalSprints", "schemaVersion", "description", "sprints"]
|
|
29
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "HardnessSprint",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"properties": {
|
|
7
|
+
"index": { "type": "number", "minimum": 0, "description": "Índice da sprint (0-based)" },
|
|
8
|
+
"name": { "type": "string", "minLength": 1, "description": "Nome legível da sprint" },
|
|
9
|
+
"status": { "type": "string", "enum": ["pending", "in-progress", "done"] },
|
|
10
|
+
"description": { "type": "string" },
|
|
11
|
+
"crossCutting": {
|
|
12
|
+
"type": "array",
|
|
13
|
+
"items": { "type": "string" },
|
|
14
|
+
"description": "Regras que valem para todas as features desta sprint"
|
|
15
|
+
},
|
|
16
|
+
"features": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"items": { "$ref": "#/definitions/feature" }
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["index", "name", "status", "description", "features"],
|
|
22
|
+
"definitions": {
|
|
23
|
+
"feature": {
|
|
24
|
+
"type": "object",
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"properties": {
|
|
27
|
+
"id": { "type": "string", "pattern": "^feat-\\d{3}[a-z]?$", "description": "Identificador único na sprint (ex: feat-001)" },
|
|
28
|
+
"title": { "type": "string", "minLength": 1 },
|
|
29
|
+
"description": { "type": "string" },
|
|
30
|
+
"specLines": { "type": "string", "description": "Intervalo de linhas na SPEC.md (ex: \"10-25\" ou \"1,3,5-7\")" },
|
|
31
|
+
"status": { "type": "string", "enum": ["pending", "in-progress", "done"] },
|
|
32
|
+
"startedAt": { "type": "string" },
|
|
33
|
+
"completedAt": { "type": "string" },
|
|
34
|
+
"files": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"oneOf": [
|
|
38
|
+
{ "type": "string", "description": "Caminho relativo do arquivo" },
|
|
39
|
+
{
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"properties": {
|
|
43
|
+
"file": { "type": "string" },
|
|
44
|
+
"lines": { "type": "string", "description": "Intervalo de linhas ou \"new\" para arquivo novo" }
|
|
45
|
+
},
|
|
46
|
+
"required": ["file", "lines"]
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"acceptanceCriteria": { "type": "array", "items": { "type": "string" } },
|
|
52
|
+
"hints": { "type": "array", "items": { "type": "string" } },
|
|
53
|
+
"verification": { "$ref": "#/definitions/verification" }
|
|
54
|
+
},
|
|
55
|
+
"required": ["id", "title", "description", "specLines", "status", "files", "acceptanceCriteria", "hints", "verification"]
|
|
56
|
+
},
|
|
57
|
+
"verification": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"additionalProperties": false,
|
|
60
|
+
"properties": {
|
|
61
|
+
"typecheck": { "type": "boolean" },
|
|
62
|
+
"typecheckCommand": { "type": "string" },
|
|
63
|
+
"parseable": { "type": "boolean", "description": "Exige que os arquivos sejam parseáveis (sintaxe válida)" },
|
|
64
|
+
"grepMustMatch": { "type": "array", "items": { "type": "string" } },
|
|
65
|
+
"grepMustNotMatch": { "type": "array", "items": { "type": "string" } },
|
|
66
|
+
"grepFiles": { "type": "array", "items": { "type": "string" } },
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"additionalProperties": false,
|
|
72
|
+
"properties": {
|
|
73
|
+
"name": { "type": "string" },
|
|
74
|
+
"manifest": { "type": "string" }
|
|
75
|
+
},
|
|
76
|
+
"required": ["name"]
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"smoke": {
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"properties": {
|
|
83
|
+
"command": { "type": "string" },
|
|
84
|
+
"executedBy": { "type": "string", "enum": ["workflow", "agent"] },
|
|
85
|
+
"timeoutSeconds": { "type": "number", "minimum": 1 }
|
|
86
|
+
},
|
|
87
|
+
"required": ["command", "executedBy"]
|
|
88
|
+
},
|
|
89
|
+
"auditCategory": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"additionalProperties": false,
|
|
92
|
+
"properties": {
|
|
93
|
+
"category": { "type": "string" },
|
|
94
|
+
"failOnSeverityAtOrAbove": { "type": "string", "enum": ["LOW", "MED", "HIGH", "NONE"] }
|
|
95
|
+
},
|
|
96
|
+
"required": ["category", "failOnSeverityAtOrAbove"]
|
|
97
|
+
},
|
|
98
|
+
"auditFinal": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"additionalProperties": false,
|
|
101
|
+
"properties": {
|
|
102
|
+
"failOnSeverityAtOrAbove": { "type": "string", "enum": ["LOW", "MED", "HIGH", "NONE"] }
|
|
103
|
+
},
|
|
104
|
+
"required": ["failOnSeverityAtOrAbove"]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# PRD — <Project Name>
|
|
2
|
+
|
|
3
|
+
> Product Requirements Document. Generated by `hardness discover` or written manually.
|
|
4
|
+
> This template is the input for `hardness spec`.
|
|
5
|
+
|
|
6
|
+
## 1. Overview
|
|
7
|
+
|
|
8
|
+
Describe in 1-2 paragraphs what the product is, who it is for, and what problem it solves.
|
|
9
|
+
|
|
10
|
+
## 2. Personas
|
|
11
|
+
|
|
12
|
+
| Persona | Description | Needs |
|
|
13
|
+
|---|---|---|
|
|
14
|
+
| <persona 1> | <description> | <needs> |
|
|
15
|
+
|
|
16
|
+
## 3. Functional Requirements
|
|
17
|
+
|
|
18
|
+
- **FR-001**: <requirement description>
|
|
19
|
+
- **FR-002**: <requirement description>
|
|
20
|
+
|
|
21
|
+
## 4. Non-Functional Requirements
|
|
22
|
+
|
|
23
|
+
- **NFR-001**: <description> (e.g. performance, security, observability)
|
|
24
|
+
|
|
25
|
+
## 5. Out of Scope (v1.0)
|
|
26
|
+
|
|
27
|
+
- <explicitly excluded item>
|
|
28
|
+
|
|
29
|
+
## 6. Product Acceptance Criteria
|
|
30
|
+
|
|
31
|
+
- [ ] <measurable acceptance criterion>
|
|
32
|
+
|
|
33
|
+
## 7. Assumptions and Risks
|
|
34
|
+
|
|
35
|
+
- **Assumptions**: <assumption>
|
|
36
|
+
- **Risks**: <risk> — <mitigation>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# SPEC — <Project Name>
|
|
2
|
+
|
|
3
|
+
> Technical specification. Generated by `hardness spec` from PRD.md, or written manually.
|
|
4
|
+
> This template is the input for `hardness plan`. The `specLines` in each feature reference lines from this file.
|
|
5
|
+
|
|
6
|
+
## 1. Architectural Vision
|
|
7
|
+
|
|
8
|
+
Describe the target architecture: component diagram, layers, data flow.
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
<ascii/mermaid diagram>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## 2. Tech Stack
|
|
15
|
+
|
|
16
|
+
- **Language**: <e.g. TypeScript 5.4 / Node 20>
|
|
17
|
+
- **Framework**: <e.g. Fastify / Express / none>
|
|
18
|
+
- **Tests**: <e.g. Vitest>
|
|
19
|
+
- **Database**: <e.g. none / SQLite>
|
|
20
|
+
- **Others**: <e.g. Zod, picocolors>
|
|
21
|
+
|
|
22
|
+
## 3. Modules / Packages
|
|
23
|
+
|
|
24
|
+
| Module | Responsibility |
|
|
25
|
+
|---|---|
|
|
26
|
+
| <module 1> | <responsibility> |
|
|
27
|
+
|
|
28
|
+
## 4. Data Model
|
|
29
|
+
|
|
30
|
+
<description of entities, schema, configuration file format>
|
|
31
|
+
|
|
32
|
+
## 5. Main Flows
|
|
33
|
+
|
|
34
|
+
### 5.1 <Flow 1>
|
|
35
|
+
1. <step>
|
|
36
|
+
2. <step>
|
|
37
|
+
|
|
38
|
+
## 6. Integration Contracts
|
|
39
|
+
|
|
40
|
+
- **CLI**: <commands and flags>
|
|
41
|
+
- **Config**: <path and format>
|
|
42
|
+
|
|
43
|
+
## 7. Detailed Technical Requirements
|
|
44
|
+
|
|
45
|
+
(The lines below will be referenced by `specLines` in the sprints.)
|
|
46
|
+
|
|
47
|
+
1. <technical requirement 1>
|
|
48
|
+
2. <technical requirement 2>
|
|
49
|
+
3. <technical requirement 3>
|
|
50
|
+
4. <technical requirement 4>
|
|
51
|
+
5. <technical requirement 5>
|
|
52
|
+
6. <technical requirement 6>
|
|
53
|
+
7. <technical requirement 7>
|
|
54
|
+
8. <technical requirement 8>
|
|
55
|
+
9. <technical requirement 9>
|
|
56
|
+
10. <technical requirement 10>
|
|
57
|
+
|
|
58
|
+
> Keep numbering as needed. The `specLines` in features reference
|
|
59
|
+
> these numbers (e.g. `"specLines": "10-25"`).
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"index": 0,
|
|
3
|
+
"name": "Sprint 00 — Bootstrap",
|
|
4
|
+
"status": "pending",
|
|
5
|
+
"description": "Project foundation: monorepo setup, build, tests and first commands.",
|
|
6
|
+
"crossCutting": [
|
|
7
|
+
"Do not add dependencies without review",
|
|
8
|
+
"All new code must have tests"
|
|
9
|
+
],
|
|
10
|
+
"features": [
|
|
11
|
+
{
|
|
12
|
+
"id": "feat-001",
|
|
13
|
+
"title": "Initialize monorepo",
|
|
14
|
+
"description": "Create root package.json, tsconfig and packages structure.",
|
|
15
|
+
"specLines": "1-5",
|
|
16
|
+
"status": "pending",
|
|
17
|
+
"files": [
|
|
18
|
+
"package.json",
|
|
19
|
+
"tsconfig.base.json"
|
|
20
|
+
],
|
|
21
|
+
"acceptanceCriteria": [
|
|
22
|
+
"npm install runs without errors",
|
|
23
|
+
"npm run build compiles all packages"
|
|
24
|
+
],
|
|
25
|
+
"hints": [
|
|
26
|
+
"Use npm workspaces",
|
|
27
|
+
"Configure strict mode in tsconfig"
|
|
28
|
+
],
|
|
29
|
+
"verification": {
|
|
30
|
+
"typecheck": true,
|
|
31
|
+
"parseable": true,
|
|
32
|
+
"grepMustMatch": [],
|
|
33
|
+
"grepMustNotMatch": [],
|
|
34
|
+
"grepFiles": []
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "feat-002",
|
|
39
|
+
"title": "Configure tests",
|
|
40
|
+
"description": "Install vitest and create a smoke test.",
|
|
41
|
+
"specLines": "6-8",
|
|
42
|
+
"status": "pending",
|
|
43
|
+
"files": [
|
|
44
|
+
{ "file": "vitest.workspace.ts", "lines": "new" }
|
|
45
|
+
],
|
|
46
|
+
"acceptanceCriteria": [
|
|
47
|
+
"npm test runs and passes"
|
|
48
|
+
],
|
|
49
|
+
"hints": [
|
|
50
|
+
"Create a smoke test in each package"
|
|
51
|
+
],
|
|
52
|
+
"verification": {
|
|
53
|
+
"typecheck": true,
|
|
54
|
+
"smoke": {
|
|
55
|
+
"command": "npm test",
|
|
56
|
+
"executedBy": "workflow",
|
|
57
|
+
"timeoutSeconds": 60
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"agent": {
|
|
3
|
+
"agentCommand": "echo \"[hardness] Configure agentCommand aqui. Use getPresetConfig('claude-code' | 'codex' | 'manual') para presets. Contexto em: {context_file}\"",
|
|
4
|
+
"thinkingLevel": "high",
|
|
5
|
+
"timeout": 2400,
|
|
6
|
+
"retries": 4
|
|
7
|
+
},
|
|
8
|
+
"stack": {
|
|
9
|
+
"stackProfile": "typescript-node",
|
|
10
|
+
"typecheckCommand": "npm run typecheck",
|
|
11
|
+
"typecheckTimeout": 180,
|
|
12
|
+
"ignoreDirs": ["node_modules", "dist", ".git", ".hardness"],
|
|
13
|
+
"sourceExtensions": [".ts", ".tsx", ".js", ".jsx", ".json", ".yaml", ".toml"]
|
|
14
|
+
},
|
|
15
|
+
"security": {
|
|
16
|
+
"allowedCommandPrefixes": ["grep", "cat", "node", "npm", "npx", "tsc", "python"],
|
|
17
|
+
"blockedPatterns": ["rm\\s+-rf", "curl.*\\|.*sh", "wget.*\\|.*sh", "sudo\\s+"],
|
|
18
|
+
"requireTrustedForUnknown": true
|
|
19
|
+
},
|
|
20
|
+
"logs": {
|
|
21
|
+
"logDir": ".hardness/logs",
|
|
22
|
+
"redactSecrets": true,
|
|
23
|
+
"redactPatterns": ["(?i)(api[_-]?key|token|secret|password|auth)\\s*[:=]\\s*\\S+"],
|
|
24
|
+
"retentionDays": 30
|
|
25
|
+
},
|
|
26
|
+
"scoring": {
|
|
27
|
+
"minScore": 6.0,
|
|
28
|
+
"blockBelowMin": true
|
|
29
|
+
}
|
|
30
|
+
}
|